hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796b39ad9384cf98f5a97cce66bc061f0e03c094
6,576
py
Python
docs/tests/test_forms_conditions.py
jayvdb/django-formidable
df8bcd0c882990d72d302be47aeb4fb11915b1fa
[ "MIT" ]
11
2018-02-14T08:15:23.000Z
2021-09-10T02:16:38.000Z
docs/tests/test_forms_conditions.py
jayvdb/django-formidable
df8bcd0c882990d72d302be47aeb4fb11915b1fa
[ "MIT" ]
61
2017-11-27T10:15:43.000Z
2021-06-28T14:17:25.000Z
docs/tests/test_forms_conditions.py
jayvdb/django-formidable
df8bcd0c882990d72d302be47aeb4fb11915b1fa
[ "MIT" ]
2
2019-04-06T11:17:05.000Z
2020-10-10T08:36:27.000Z
from copy import deepcopy from . import validator, _load_fixture def test_simple_condition(): form = _load_fixture('0020_simple_condition.json') errors = sorted(validator.iter_errors(form), key=lambda e: e.path) assert len(errors) == 0 # An empty list should still validate form['conditions'] = [...
35.165775
70
0.701034
796b39de2ad2ab41735107046228f84b643ba5cc
6,840
py
Python
jsons/deserializers/default_object.py
cinatic/jsons
e1435c314d99f6b99724fca97b3043e598e5d4c7
[ "MIT" ]
null
null
null
jsons/deserializers/default_object.py
cinatic/jsons
e1435c314d99f6b99724fca97b3043e598e5d4c7
[ "MIT" ]
null
null
null
jsons/deserializers/default_object.py
cinatic/jsons
e1435c314d99f6b99724fca97b3043e598e5d4c7
[ "MIT" ]
null
null
null
import inspect from functools import partial from typing import Optional, Callable, Tuple from jsons._compatibility_impl import get_type_hints from jsons._load_impl import load from jsons.exceptions import SignatureMismatchError, UnfulfilledArgumentError from jsons._common_impl import ( get_class_name, META_ATT...
39.767442
79
0.608333
796b39f193ccd32a2a3d2d4dc921e041f9b9f3f5
13,570
py
Python
selfdrive/controls/lib/pathplanner.py
DS1SQM/OPKR081R3_201223
cf800a89db5d754317143648eae4e1f981def8df
[ "MIT" ]
null
null
null
selfdrive/controls/lib/pathplanner.py
DS1SQM/OPKR081R3_201223
cf800a89db5d754317143648eae4e1f981def8df
[ "MIT" ]
null
null
null
selfdrive/controls/lib/pathplanner.py
DS1SQM/OPKR081R3_201223
cf800a89db5d754317143648eae4e1f981def8df
[ "MIT" ]
null
null
null
import os import math from common.numpy_fast import interp from common.realtime import sec_since_boot, DT_MDL from selfdrive.swaglog import cloudlog from selfdrive.controls.lib.lateral_mpc import libmpc_py from selfdrive.controls.lib.drive_helpers import MPC_COST_LAT from selfdrive.controls.lib.lane_planner import Lane...
42.274143
167
0.725792
796b3adef2c80f472da77f0922ae8b6b7c22fe13
776
py
Python
KIES/adj_matrix.py
RingBDStack/PPGCN
dd0614c2a000f694d382117952f290d24e1f75b3
[ "MIT" ]
15
2019-05-20T08:34:58.000Z
2022-03-30T16:43:40.000Z
KIES/adj_matrix.py
RingBDStack/PPGCN
dd0614c2a000f694d382117952f290d24e1f75b3
[ "MIT" ]
1
2021-03-04T09:16:41.000Z
2021-03-04T09:16:41.000Z
KIES/adj_matrix.py
RingBDStack/PPGCN
dd0614c2a000f694d382117952f290d24e1f75b3
[ "MIT" ]
11
2019-05-20T08:35:03.000Z
2022-03-30T16:43:41.000Z
import numpy as np import os mete_path_size = 13 # adj_data = np.zeros([mete_path_size,node_size,node_size]).astype(float) # for i in range(mete_path_size): def d_matrix_pro(adj_data): d_matrix = np.sum(adj_data,1) d_h = np.power(d_matrix,-0.5) t = [] for i in range(node_size): t.ap...
19.4
74
0.581186
796b3af18eb8b800da5cae4e9eba0e327693e702
7,996
py
Python
tests/scripts/thread-cert/network_layer.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
1
2020-02-01T04:33:01.000Z
2020-02-01T04:33:01.000Z
tests/scripts/thread-cert/network_layer.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/network_layer.py
ltaoti/openthread
b24192267d56c9a175739d8b2a285bc4b701deaf
[ "BSD-3-Clause" ]
1
2019-08-08T22:45:06.000Z
2019-08-08T22:45:06.000Z
#!/usr/bin/env python # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
25.223975
113
0.686593
796b3bcce8c483b9662a4a7f6ae763c1ea4dbac4
6,591
py
Python
videoanalyst/data/target/target_impl/utils/make_densebox_target.py
GZHermit/video_analyst
6233b19320e3d07b95fb1f782efd89b052a8cf4e
[ "MIT" ]
1
2020-04-08T02:57:59.000Z
2020-04-08T02:57:59.000Z
videoanalyst/data/target/target_impl/utils/make_densebox_target.py
GZHermit/video_analyst
6233b19320e3d07b95fb1f782efd89b052a8cf4e
[ "MIT" ]
null
null
null
videoanalyst/data/target/target_impl/utils/make_densebox_target.py
GZHermit/video_analyst
6233b19320e3d07b95fb1f782efd89b052a8cf4e
[ "MIT" ]
null
null
null
# encoding: utf-8 from typing import Tuple, Dict import numpy as np def make_densebox_target(gt_boxes: np.array, config: Dict) -> Tuple: """ Model training target generation function Arguments --------- gt_boxes : np.array ground truth bounding boxes with class, shape=(N, 5), order=(x0, ...
37.448864
136
0.568199
796b3c0d737baaffffb26ec60378022fbc790dba
1,794
py
Python
tsvis/logger/x2num.py
hdu-jinminghu/TS-VIS-master
c717722f86ee6996afc052ec946fbaefc1b5d3dc
[ "Apache-2.0" ]
2
2022-02-06T05:57:40.000Z
2022-03-18T07:42:11.000Z
tsvis/logger/x2num.py
hdu-jinminghu/TS-VIS-master
c717722f86ee6996afc052ec946fbaefc1b5d3dc
[ "Apache-2.0" ]
null
null
null
tsvis/logger/x2num.py
hdu-jinminghu/TS-VIS-master
c717722f86ee6996afc052ec946fbaefc1b5d3dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Copyright 2021 Tianshu AI Platform. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless req...
26.776119
76
0.676143
796b3c7ebfacd7f5c4f4a36a688856128e82a290
2,236
py
Python
perm_test_classifier_transitivity_post.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
perm_test_classifier_transitivity_post.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
perm_test_classifier_transitivity_post.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import bct from sklearn.externals import joblib from my_settings import * from sklearn.ensemble import AdaBoostClassifier from sklearn.cross_validation import (StratifiedShuffleSplit, cross_val_score, permutation_test_score) from sklearn.grid_search import GridS...
33.373134
78
0.546512
796b3dc487c837f6a4a91a2aaef72bb995940085
4,320
py
Python
Arena.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
Arena.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
Arena.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
import numpy as np from pytorch_classification.utils import Bar, AverageMeter import time class Arena(): """ An Arena class where any 2 agents can be pit against each other. """ def __init__(self, player1, player2, game, display=None): """ Input: player 1,2: two functions th...
36.302521
144
0.515278
796b3f78366292661a38d0e39b47fb45270892ae
1,217
py
Python
cogs/utils/checks.py
lichi1993315/MangoByte
e9c17bafcd5002dfae9f7686abd41fed8e242604
[ "MIT" ]
1
2019-04-19T17:34:29.000Z
2019-04-19T17:34:29.000Z
cogs/utils/checks.py
lichi1993315/MangoByte
e9c17bafcd5002dfae9f7686abd41fed8e242604
[ "MIT" ]
null
null
null
cogs/utils/checks.py
lichi1993315/MangoByte
e9c17bafcd5002dfae9f7686abd41fed8e242604
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from __main__ import botdata # # This is a "heavily" modified version of checks.py, originally made by Rapptz # # https://github.com/Rapptz # https://github.com/Rapptz/RoboDanny/tree/async # def is_owner_check(author): return author.id == 15215...
29.682927
99
0.754314
796b3f7f006b9e9e58a6a526a0d34794b33b4bfb
4,490
py
Python
app/main/views.py
OwenMur21/Blog
90713881b5767777ae1b9db7994fd5bf2ad89adb
[ "Unlicense" ]
null
null
null
app/main/views.py
OwenMur21/Blog
90713881b5767777ae1b9db7994fd5bf2ad89adb
[ "Unlicense" ]
null
null
null
app/main/views.py
OwenMur21/Blog
90713881b5767777ae1b9db7994fd5bf2ad89adb
[ "Unlicense" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from . import main from flask_login import login_required, current_user from .. import db,photos from ..models import User, Blog, Comments, Subscription from .forms import PitchForm, CommentForm, UpdateProfile, SubscribeForm from app.email import mail_mes...
29.155844
100
0.65902
796b406818284b5cbe3e7b4b415f246d28c5f9b5
33,925
py
Python
google/cloud/compute_v1/services/vpn_tunnels/client.py
TheJokersThief/python-compute
76a1d29909ab1346a7de55c15198aa057a4a50e1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/vpn_tunnels/client.py
TheJokersThief/python-compute
76a1d29909ab1346a7de55c15198aa057a4a50e1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/vpn_tunnels/client.py
TheJokersThief/python-compute
76a1d29909ab1346a7de55c15198aa057a4a50e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
43.05203
107
0.619248
796b40b342bdff9a97ec477265954963e9063c3e
5,074
py
Python
test/functional/test_framework/netutil.py
AsyncNetwork/bitcoin-abc
fc056a416e00793e97268dacbe526fac988eab82
[ "MIT" ]
null
null
null
test/functional/test_framework/netutil.py
AsyncNetwork/bitcoin-abc
fc056a416e00793e97268dacbe526fac988eab82
[ "MIT" ]
null
null
null
test/functional/test_framework/netutil.py
AsyncNetwork/bitcoin-abc
fc056a416e00793e97268dacbe526fac988eab82
[ "MIT" ]
2
2018-03-16T05:06:09.000Z
2018-03-16T05:35:56.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Linux network utilities import sys import socket import fcntl import struct import array import os fro...
30.202381
113
0.597753
796b40f672993bd94089981b30df45a90fc146ac
693
py
Python
matrixMultiplyStrassen.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
6
2017-11-12T05:13:27.000Z
2022-03-13T07:58:31.000Z
matrixMultiplyStrassen.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
null
null
null
matrixMultiplyStrassen.py
aadishgoel2013/Algos-with-Python
19541607c8ede9a76a8cbbe047e01343080cfd5b
[ "Apache-2.0" ]
null
null
null
x1, y1, x2, y2 = map(int,input().split()) a = [list(map(int,input().split())) for _ in range(x1)] b = [list(map(int,input().split())) for _ in range(x2)] def multiply (a,b): #x=len(a) #y=len(a[0]) #z=len(b) data = [[0, 0], [0, 0]] p= (a[0][0]+a[1][1])*(b[0][0]+b[1][1]) q= (a[1][0]+a[1...
26.653846
56
0.415584
796b423764e9f555aa4e6bc516bd40020c8e23a5
4,110
py
Python
Enhancement_models/target_loss/roi_data_layer/roidb.py
yeyekurong/Guoqiang_PTD-Net
825c6e9b11c7152067e9d0875dff21137965222c
[ "MIT" ]
2
2022-01-03T13:44:50.000Z
2022-03-23T03:48:23.000Z
Enhancement_models/target_loss/roi_data_layer/roidb.py
yeyekurong/Guoqiang_PTD-Net
825c6e9b11c7152067e9d0875dff21137965222c
[ "MIT" ]
null
null
null
Enhancement_models/target_loss/roi_data_layer/roidb.py
yeyekurong/Guoqiang_PTD-Net
825c6e9b11c7152067e9d0875dff21137965222c
[ "MIT" ]
null
null
null
"""Transform a roidb into a trainable roidb by adding a bunch of metadata.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import datasets import numpy as np from model.utils.config import cfg from datasets.factory import get_imdb import PIL import pdb d...
30.902256
77
0.667397
796b42bf6b0a593d2bc33fb9d8aa394db2772940
627
py
Python
chipy_org/apps/subgroups/models.py
SarthakAdhikari/chipy.org
e6ef9bce7b84cdcd3e98caf18f177c197666b819
[ "MIT" ]
null
null
null
chipy_org/apps/subgroups/models.py
SarthakAdhikari/chipy.org
e6ef9bce7b84cdcd3e98caf18f177c197666b819
[ "MIT" ]
null
null
null
chipy_org/apps/subgroups/models.py
SarthakAdhikari/chipy.org
e6ef9bce7b84cdcd3e98caf18f177c197666b819
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from chipy_org.libs.models import CommonModel class SubGroup(CommonModel): name = models.CharField(max_length=64) image = models.ImageField(upload_to="group_images", blank=True, null=True,) slug = models.SlugField(max_length=64, un...
29.857143
79
0.711324
796b43b2e33b80459e6b1d1ebe39e047eca252c6
44,573
py
Python
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py
eliagrady/azure-sdk-for-python
64d0c78ce4a9b409dbc96864d7b65098891863f9
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_models.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- # pylint: ...
44.842052
136
0.687008
796b45d1a17e334a634efb0eef6fc724ec2f2b80
16,610
py
Python
localstack/services/infra.py
wapmesquita/localstack
0d67b3da8fefa05a077968be41220cf46764722a
[ "Apache-2.0" ]
null
null
null
localstack/services/infra.py
wapmesquita/localstack
0d67b3da8fefa05a077968be41220cf46764722a
[ "Apache-2.0" ]
null
null
null
localstack/services/infra.py
wapmesquita/localstack
0d67b3da8fefa05a077968be41220cf46764722a
[ "Apache-2.0" ]
null
null
null
import os import re import sys import json import time import signal import traceback import logging import boto3 import subprocess from requests.models import Response from localstack import constants, config from localstack.constants import ( ENV_DEV, LOCALSTACK_VENV_FOLDER, ENV_INTERNAL_TEST_RUN, LOCALSTACK_INFR...
35.340426
118
0.690307
796b46879b825859737e1c794294a85a383d9687
9,083
py
Python
sdc/ysdc_dataset_api/evaluation/utils.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
null
null
null
sdc/ysdc_dataset_api/evaluation/utils.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
null
null
null
sdc/ysdc_dataset_api/evaluation/utils.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from typing import Dict, Sequence, Tuple import numpy as np from ..dataset import MotionPredictionDataset from ..proto import (ObjectPrediction, Submission, Trajectory, Vector3, WeightedTrajectory) from ..utils.map import repeated_points_to_array from .metrics ...
40.013216
97
0.707916
796b4695da79f5589f2964b85fff6f2486cc06dc
21,799
py
Python
autodist/graph_item.py
jessezbj/autodist
67b3ac2614beece8b1f64a889cf5a3436950d587
[ "Apache-2.0" ]
127
2020-07-16T16:33:10.000Z
2022-03-25T09:58:50.000Z
autodist/graph_item.py
jessezbj/autodist
67b3ac2614beece8b1f64a889cf5a3436950d587
[ "Apache-2.0" ]
17
2020-07-16T20:03:44.000Z
2021-02-24T19:53:12.000Z
autodist/graph_item.py
jessezbj/autodist
67b3ac2614beece8b1f64a889cf5a3436950d587
[ "Apache-2.0" ]
26
2020-07-21T01:23:55.000Z
2022-02-24T03:43:08.000Z
# Copyright 2020 Petuum, 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...
39.348375
118
0.642094
796b470e79ea273dd3745cb073b303515b82bff9
3,476
py
Python
src/hyperparams.py
DeepVoltaire/OnCloudN
9595fcf03467cff7b770c36bb8492bc0644caba4
[ "MIT" ]
5
2021-12-20T20:31:48.000Z
2022-01-31T20:08:58.000Z
src/hyperparams.py
DeepVoltaire/OnCloudN
9595fcf03467cff7b770c36bb8492bc0644caba4
[ "MIT" ]
null
null
null
src/hyperparams.py
DeepVoltaire/OnCloudN
9595fcf03467cff7b770c36bb8492bc0644caba4
[ "MIT" ]
4
2022-01-04T09:01:27.000Z
2022-02-10T10:22:22.000Z
import attr import cv2 import yaml import os import pprint import glob from attr.validators import in_ @attr.s class HyperParams(object): """Class for easily transporting hyperparameters""" ######################################################################### ### Data ############################...
34.078431
110
0.602992
796b498f779899eb4705757aef45949b427680de
2,741
py
Python
biyeta/spiders/biye.py
hizbul25/biyeta
1e9343b5833895d799a03b01a025be9a5521974b
[ "MIT" ]
1
2016-10-19T06:07:18.000Z
2016-10-19T06:07:18.000Z
biyeta/spiders/biye.py
hizbul25/biyeta
1e9343b5833895d799a03b01a025be9a5521974b
[ "MIT" ]
null
null
null
biyeta/spiders/biye.py
hizbul25/biyeta
1e9343b5833895d799a03b01a025be9a5521974b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from urllib.parse import urljoin from scrapy.http import Request from ..items import BiyetaItem from .. import settings USER_NAME = 'sonju2011@gmail.com' PASSWORD = 'sonju10@' BASE_URL = 'http://www.biyeta.com' class BiyeSpider(scrapy.Spider): name = 'biye' allowed_domai...
44.934426
151
0.612185
796b49d4cfd35d17efd75d271cc9ea346cffc4d7
890
py
Python
sysrev/widgets.py
iliawnek/SystematicReview
b69da8a9651ca640c8d43441d7624b5902ad0844
[ "MIT" ]
null
null
null
sysrev/widgets.py
iliawnek/SystematicReview
b69da8a9651ca640c8d43441d7624b5902ad0844
[ "MIT" ]
7
2016-03-21T10:54:27.000Z
2017-01-28T13:05:16.000Z
sysrev/widgets.py
iliawnek/SystematicReview
b69da8a9651ca640c8d43441d7624b5902ad0844
[ "MIT" ]
null
null
null
from django.forms import widgets from django.utils.safestring import * # See static/js/querywidget.js # TODO: Use AJAX to show count of returned papers as query is entered class QueryWidget(widgets.Textarea): def __init__(self, attrs=None): default_attrs = {'class': "queryWidget"} if attrs: ...
42.380952
120
0.667416
796b4b8fe348400556830cd908dab17bb08790f7
218
py
Python
api/serializers.py
my4ever/altkraft_api
191d8db62b5dd15791c5bd276df119570b569ad3
[ "MIT" ]
null
null
null
api/serializers.py
my4ever/altkraft_api
191d8db62b5dd15791c5bd276df119570b569ad3
[ "MIT" ]
null
null
null
api/serializers.py
my4ever/altkraft_api
191d8db62b5dd15791c5bd276df119570b569ad3
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Link class CodeSerializer(serializers.ModelSerializer): code = serializers.CharField() class Meta: fields = ('code',) model = Link
18.166667
50
0.697248
796b4c3db5e37730ab9b511f13161a6e4365976a
1,584
py
Python
pythontutorials/books/AutomateTheBoringStuff/Ch07/P1_isPhoneNumber.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
2
2017-04-20T02:57:19.000Z
2018-10-12T20:15:47.000Z
pythontutorials/books/AutomateTheBoringStuff/Ch07/P1_isPhoneNumber.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
8
2021-03-18T21:50:16.000Z
2022-03-11T23:38:01.000Z
pythontutorials/books/AutomateTheBoringStuff/Ch07/P1_isPhoneNumber.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
3
2018-08-30T20:30:50.000Z
2022-01-18T13:40:51.000Z
"""Is phone number This program demonstrates :meth:`isPhoneNumber` which returns True if a string is a phone number and False if not. However, :meth:`isPhoneNumber` is not very efficient because it uses if statements and for loops to check 12-segment chunks for a phone number pattern. """ def isPhoneNumber(text: ...
26.4
83
0.618687
796b4c57f122666d61139964697505f05b38f64a
1,340
py
Python
tadacode/tadaa/urls.py
ahmad88me/cat
5791749bf1683c93476f05d90afb3a1477f74d8b
[ "MIT" ]
1
2020-02-05T14:59:58.000Z
2020-02-05T14:59:58.000Z
tadacode/tadaa/urls.py
ahmad88me/cat
5791749bf1683c93476f05d90afb3a1477f74d8b
[ "MIT" ]
1
2018-01-30T08:56:38.000Z
2018-01-30T18:49:57.000Z
tadacode/tadaa/urls.py
ahmad88me/cat
5791749bf1683c93476f05d90afb3a1477f74d8b
[ "MIT" ]
3
2017-05-10T17:48:42.000Z
2020-10-09T10:27:18.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin import views urlpatterns = patterns('', url(r'^add_model_abox', 'tadaa.views.add_model_abox'), url(r'^add_model', 'tadaa.views.add_model'), url(r'^list_models', 'tadaa.views.list_models', name='list_models'), url(r'^ab...
44.666667
93
0.715672
796b4d931ab9ffde2bbb03a914bfda33c2468c8d
6,422
py
Python
ML/sixthnn.py
apnatvar/ML-AI-Deep-Learning
1e780b58c36b29c538a6b48342e90d1176c5677f
[ "MIT" ]
null
null
null
ML/sixthnn.py
apnatvar/ML-AI-Deep-Learning
1e780b58c36b29c538a6b48342e90d1176c5677f
[ "MIT" ]
null
null
null
ML/sixthnn.py
apnatvar/ML-AI-Deep-Learning
1e780b58c36b29c538a6b48342e90d1176c5677f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import tensorflow as tf from tensorflow.keras import layers from matplotlib import pyplot as plt import seaborn as sns pd.options.display.max_rows = 10 pd.options.display.float_format = "{:.1f}".format print("Modules Imported") train_df = pd.read_csv("https://downlo...
39.398773
103
0.693242
796b4db25730e0a100809531f4a841848dc48a49
9,263
py
Python
tests/app/main/test_permissions.py
TechforgoodCAST/notifications-admin
0a9e06aafd79d0fbe50c26a85bf757aaeaa59340
[ "MIT" ]
null
null
null
tests/app/main/test_permissions.py
TechforgoodCAST/notifications-admin
0a9e06aafd79d0fbe50c26a85bf757aaeaa59340
[ "MIT" ]
1
2021-10-19T13:34:15.000Z
2021-10-19T13:34:15.000Z
tests/app/main/test_permissions.py
TechforgoodCAST/notifications-admin
0a9e06aafd79d0fbe50c26a85bf757aaeaa59340
[ "MIT" ]
1
2021-03-05T13:18:44.000Z
2021-03-05T13:18:44.000Z
import ast import inspect import re import pytest from flask import current_app from tests import service_json from tests.conftest import ( ORGANISATION_ID, ORGANISATION_TWO_ID, SERVICE_ONE_ID, SERVICE_TWO_ID, ) @pytest.mark.parametrize( 'user_services, user_organisations, expected_status, organ...
30.672185
117
0.649358
796b4f35fb44c26c48644eeee81563eb23cf44bf
17,106
py
Python
tests/hwsim/test_ap_hs20.py
ab791520b4/hostap
87e2de6f955b85d23a5f00b52280711ee4243bfb
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_hs20.py
ab791520b4/hostap
87e2de6f955b85d23a5f00b52280711ee4243bfb
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_hs20.py
ab791520b4/hostap
87e2de6f955b85d23a5f00b52280711ee4243bfb
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # # Hotspot 2.0 tests # Copyright (c) 2013, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. import time import subprocess import logging logger = logging.getLogger() import os.path import subprocess import hostapd def h...
38.097996
87
0.607915
796b513968f70ad6686e9cb71b3ac9d415dcf1ee
2,322
py
Python
tests/test_rfc2040.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
2
2021-06-15T16:24:39.000Z
2022-03-28T04:41:59.000Z
tests/test_rfc2040.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
null
null
null
tests/test_rfc2040.py
CBonnell/pyasn1-alt-modules
cd3773ceaa6ab31b80b0b4013818ac47ee6215b8
[ "BSD-2-Clause" ]
1
2022-01-25T16:00:09.000Z
2022-01-25T16:00:09.000Z
# # This file is part of pyasn1-alt-modules software. # # Created by Russ Housley # Copyright (c) 2021-2022, Vigil Security, LLC # License: http://vigilsec.com/pyasn1-alt-modules-license.txt # import sys import unittest from pyasn1.codec.der.decoder import decode as der_decoder from pyasn1.codec.der.encoder import enc...
34.147059
77
0.715762
796b51510c061b0c833504118df8955feb8fe330
5,918
py
Python
run_param_master.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
3
2021-09-26T10:50:35.000Z
2022-01-25T02:44:37.000Z
run_param_master.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
1
2021-09-09T14:19:31.000Z
2021-09-09T14:19:31.000Z
run_param_master.py
jadnohra/daisy
105c0f37c6adbe85ce830375c5e2fc89cbcc6cc9
[ "MIT" ]
null
null
null
#!./dev/venv/bin/python import subprocess import queue import threading import time from util.arg import * import util.logging as logging from param.net_msg import Receiver from param.param_master import CartesianEngine import param.param_protocol as protocol def capture_scenario_params(scenario, ip_port): def la...
40.813793
133
0.592599
796b524adfdd680033371897cd17162f9e43f9de
4,653
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200301/get_network_watcher.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20200301/get_network_watcher.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20200301/get_network_watcher.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
32.3125
144
0.630131
796b524daf658fcce7b4cf1c67dcf1a4c2f893f8
10,152
py
Python
pypy/module/_cppyy/test/test_fragile.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
pypy/module/_cppyy/test/test_fragile.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
pypy/module/_cppyy/test/test_fragile.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import py, os, sys from .support import setup_make, soext currpath = py.path.local(__file__).dirpath() test_dct = str(currpath.join("fragileDict"))+soext def setup_module(mod): setup_make("fragile") class AppTestFRAGILE: spaceconfig = dict(usemodules=['_cppyy', '_rawffi', 'itertools']) def setup_class(...
33.50495
92
0.614854
796b52a84ba7c0c339fad5892c405ca3f7002c07
814
py
Python
vrtManager/LogFacility.py
catborise/backupvm2
dba325888affd63ae3435c41159ae59f96db5e45
[ "MIT" ]
null
null
null
vrtManager/LogFacility.py
catborise/backupvm2
dba325888affd63ae3435c41159ae59f96db5e45
[ "MIT" ]
null
null
null
vrtManager/LogFacility.py
catborise/backupvm2
dba325888affd63ae3435c41159ae59f96db5e45
[ "MIT" ]
null
null
null
import logging class Log(object): def __init__(self, log_level="DEBUG", log_filename="backupjob.log", log_file_mode="a"): # Logger create self.logger = logging.getLogger("BackupLogs") # Console log config ch = logging.StreamHandler() ch.setLevel(getattr(logging, log_level...
35.391304
167
0.65602
796b53393d27c4c71bcd8190be73e1a969722c90
3,309
py
Python
stock.py
atifadib/stock-sentiment
3ed95c5f4f12f84670b743ddbe748197e1c9c27a
[ "Apache-2.0" ]
3
2017-11-12T13:48:32.000Z
2019-06-04T09:38:42.000Z
stock.py
atifadib/stock-sentiment
3ed95c5f4f12f84670b743ddbe748197e1c9c27a
[ "Apache-2.0" ]
null
null
null
stock.py
atifadib/stock-sentiment
3ed95c5f4f12f84670b743ddbe748197e1c9c27a
[ "Apache-2.0" ]
3
2017-12-12T05:12:04.000Z
2020-03-30T07:45:02.000Z
import requests import sys import numpy as np import tweepy import os from keras.models import Sequential from keras.layers import Dense from textblob import TextBlob global user consumer_key = "lMikOtj0ma5TIHpA19RwtOI4I" comsumer_secret = "l0BEwFO5Uf3n7r5jsixQdXa1Q3yGahECJfzQkeLwkdosXmQEAo" access_token...
30.357798
112
0.624056
796b54e8abc064b11b8d2fed9700f7a3cd776290
3,128
py
Python
Escola/Escola/settings.py
lucirenejose1993/Escola_Claudio
014efd5adcf6d003b6d7323e65270d374eab2715
[ "Apache-2.0" ]
null
null
null
Escola/Escola/settings.py
lucirenejose1993/Escola_Claudio
014efd5adcf6d003b6d7323e65270d374eab2715
[ "Apache-2.0" ]
null
null
null
Escola/Escola/settings.py
lucirenejose1993/Escola_Claudio
014efd5adcf6d003b6d7323e65270d374eab2715
[ "Apache-2.0" ]
null
null
null
""" Django settings for Escola project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bu...
25.639344
91
0.696931
796b556a3258ead9f4480a919cb4b6ff9090732c
850
py
Python
test/visualization/test_influence.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
2,350
2021-09-12T08:32:50.000Z
2022-03-31T18:09:36.000Z
test/visualization/test_influence.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
588
2021-09-12T08:49:08.000Z
2022-03-31T21:02:13.000Z
test/visualization/test_influence.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
505
2021-09-13T13:13:32.000Z
2022-03-31T15:54:00.000Z
import torch from torch_geometric.datasets import KarateClub from torch_geometric.nn import GCNConv from torch_geometric.visualization import influence class Net(torch.nn.Module): def __init__(self, in_channels, out_channels): super().__init__() self.conv1 = GCNConv(in_channels, out_channels) ...
30.357143
70
0.675294
796b56ee2cb939c1e989bb0b57ae97845472767e
2,789
py
Python
computePartialDerivativesXZ.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
null
null
null
computePartialDerivativesXZ.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
null
null
null
computePartialDerivativesXZ.py
jeguerra/nonlinearMtnWavesSolver
e2fe83d1f7c3c57cbe9ba0299a1b9179cf4b5869
[ "MIT" ]
1
2019-09-30T05:04:44.000Z
2019-09-30T05:04:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 2 17:10:18 2019 @author: TempestGuerra """ import numpy as np import scipy.sparse as sps def computePartialDerivativesXZ(DIMS, REFS, DDX_1D, DDZ_1D): # Get the dimensions NX = DIMS[3] + 1 NZ = DIMS[4] OPS = NX * NZ ...
32.430233
79
0.533166
796b57e3a128a747d2ebc39ed21b077e33870375
3,324
py
Python
google/cloud/aiplatform/__init__.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
google/cloud/aiplatform/__init__.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/__init__.py
connor-mccarthy/python-aiplatform
184f7f327aa00b4c8d1acc24dcb1c4c4be6c5bcc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 o...
26.592
74
0.759326
796b57f60ded79a8788127a5c8cb4d785d55668a
2,706
py
Python
SquidskiBot/SquidskiBotMain/Commands/currency.py
18swenskiq/Squidski-Bot-PY
f711d6c837c8e04fdeada7a76c278923b4e2220e
[ "MIT" ]
1
2019-04-29T18:07:28.000Z
2019-04-29T18:07:28.000Z
SquidskiBot/SquidskiBotMain/Commands/currency.py
18swenskiq/Squidski-Bot-PY
f711d6c837c8e04fdeada7a76c278923b4e2220e
[ "MIT" ]
null
null
null
SquidskiBot/SquidskiBotMain/Commands/currency.py
18swenskiq/Squidski-Bot-PY
f711d6c837c8e04fdeada7a76c278923b4e2220e
[ "MIT" ]
2
2019-06-17T16:22:13.000Z
2019-08-27T15:58:36.000Z
import discord import json import http3 class currency(): async def currencyConverter(self, message): messageArray = message.content.split(" ") if(not len(message.content.split(" ")) == 3): await message.channel.send("Incorrect number of parameters! Format currency requests as `>currency...
57.574468
258
0.584627
796b58f588ce7d5cfb6c06e29ab927e685e06eb6
455
py
Python
fms/apps/core/views.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
null
null
null
fms/apps/core/views.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
4
2021-03-18T20:49:57.000Z
2022-03-11T23:26:45.000Z
fms/apps/core/views.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
1
2018-08-20T08:12:58.000Z
2018-08-20T08:12:58.000Z
from flask import redirect, session, g, url_for, request, flash, render_template, Blueprint from fms import app main_blueprint = Blueprint('main_blueprint', __name__) @main_blueprint.route('/') def main(): if session.get('user_id'): return redirect('/home') else: return render_template('index.html') @mai...
23.947368
91
0.720879
796b5974777835319e9e9865bc2e409837e60937
8,598
py
Python
datasets/egogesture.py
GibranBenitez/Real-time-GesRec
2c24ea75cb9373c310f3fe903ef9512da5d65385
[ "MIT" ]
1
2020-02-16T01:39:47.000Z
2020-02-16T01:39:47.000Z
datasets/egogesture.py
silky/Real-time-GesRec
81803a59a5d58e271e7b80cd193d51ab0088ec7d
[ "MIT" ]
null
null
null
datasets/egogesture.py
silky/Real-time-GesRec
81803a59a5d58e271e7b80cd193d51ab0088ec7d
[ "MIT" ]
3
2019-06-17T16:02:44.000Z
2019-08-13T19:39:57.000Z
import torch import torch.utils.data as data from PIL import Image from spatial_transforms import * import os import math import functools import json import copy from numpy.random import randint import numpy as np import random import glob import pdb def pil_loader(path, modality): # open path as file to avoid ...
34.392
144
0.602466
796b598049e9023fc2c122fdc0e4a82678d4a1fa
8,116
py
Python
venv1/Lib/site-packages/tensorflow/contrib/model_pruning/python/learning.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/contrib/model_pruning/python/learning.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/contrib/model_pruning/python/learning.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
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...
42.941799
81
0.68482
796b5a8535859eafa56b2506aaa32f9d1f2bef7f
59,880
py
Python
tests/python/frontend/pytorch/test_forward.py
samskalicky/tvm
96a76e3100fa9aff447d59f2d3344a32f36d788c
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/pytorch/test_forward.py
samskalicky/tvm
96a76e3100fa9aff447d59f2d3344a32f36d788c
[ "Apache-2.0" ]
null
null
null
tests/python/frontend/pytorch/test_forward.py
samskalicky/tvm
96a76e3100fa9aff447d59f2d3344a32f36d788c
[ "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...
33.248195
115
0.620959
796b5b15353a9bb796f1bb5567b4973bdb58c314
21,284
py
Python
testbase/util.py
beijixing0202/QTAF
2744091abffd86c509f4abee1ae84de55130f73d
[ "BSD-3-Clause" ]
1
2020-09-01T01:50:13.000Z
2020-09-01T01:50:13.000Z
testbase/util.py
github653224/QTAF
dafa1b270032e3bf52b3dab9b7e7ac30ab118e05
[ "BSD-3-Clause" ]
null
null
null
testbase/util.py
github653224/QTAF
dafa1b270032e3bf52b3dab9b7e7ac30ab118e05
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QTA available. # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may not use this # file except in compliance with the License. You may ...
31.3
135
0.586732
796b5dc46077acaac29347e4f270bfdeda7603df
352
py
Python
symphony/integration/pytests/utils/constant.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
null
null
null
symphony/integration/pytests/utils/constant.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
null
null
null
symphony/integration/pytests/utils/constant.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2004-present Facebook All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os TEST_USER_EMAIL = "fbuser@fb.com" PLATFORM_SERVER_HEALTH_CHECK_URL = os.getenv( "PLATFORM_SERVER_HEALTH_CHECK_URL", "ht...
27.076923
72
0.767045
796b5fe7737199c471487c31ef1906e106c38631
664
py
Python
setup.py
eaybek/mngr
76a166e76bc481fef362678f798946b37fe97433
[ "MIT" ]
null
null
null
setup.py
eaybek/mngr
76a166e76bc481fef362678f798946b37fe97433
[ "MIT" ]
null
null
null
setup.py
eaybek/mngr
76a166e76bc481fef362678f798946b37fe97433
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mngr", version="0.0.1", author="Erdem Aybek", author_email="eaybek@gmail.com", description=" ".join(["Nothing"]), long_description=long_description, long_description_content_type="...
27.666667
50
0.63253
796b5fe79822b3e6f3079dd4de6b89135fd650a0
1,178
py
Python
shortcuts/actions/date.py
alexander-akhmetov/python-shortcuts
6d7b45fcf4e34d92e84370e147397422f096ba64
[ "MIT" ]
588
2018-09-23T20:39:15.000Z
2022-03-27T13:02:48.000Z
shortcuts/actions/date.py
alexander-akhmetov/python-shortcuts
6d7b45fcf4e34d92e84370e147397422f096ba64
[ "MIT" ]
63
2018-09-27T20:13:56.000Z
2022-03-29T03:22:32.000Z
shortcuts/actions/date.py
alexander-akhmetov/python-shortcuts
6d7b45fcf4e34d92e84370e147397422f096ba64
[ "MIT" ]
35
2018-09-24T03:37:49.000Z
2021-07-05T07:32:04.000Z
from shortcuts.actions.base import BaseAction, ChoiceField, Field, VariablesField class DateAction(BaseAction): '''Date''' itype = 'is.workflow.actions.date' keyword = 'date' default_answer = VariablesField('WFAskActionDefaultAnswer', required=False) class FormatDateAction(BaseAction): '''Form...
20.666667
81
0.66893
796b6074ce89c932ff959bdc673dac8a28b83ff4
1,693
py
Python
social/backends/reddit.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
41
2015-01-31T08:23:04.000Z
2021-03-20T08:55:23.000Z
social/backends/reddit.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
null
null
null
social/backends/reddit.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
19
2015-01-17T11:50:35.000Z
2019-05-01T22:49:02.000Z
""" Reddit OAuth2 support as detailed at: https://github.com/reddit/reddit/wiki/OAuth2 """ import base64 from social.backends.oauth import BaseOAuth2 class RedditOAuth2(BaseOAuth2): """Reddit OAuth2 authentication backend""" name = 'reddit' AUTHORIZATION_URL = 'https://ssl.reddit.com/api/v1/authorize...
32.557692
78
0.609569
796b63ccfeeeb4443b5065f5599a15d0ed6d82d5
2,029
py
Python
xknx/remote_value/remote_value_color_rgb.py
jonppe/xknx
b08a122b0f3c170d91aae6213a60c7038e451c93
[ "MIT" ]
null
null
null
xknx/remote_value/remote_value_color_rgb.py
jonppe/xknx
b08a122b0f3c170d91aae6213a60c7038e451c93
[ "MIT" ]
1
2019-01-06T11:40:16.000Z
2019-01-06T11:40:16.000Z
xknx/remote_value/remote_value_color_rgb.py
jonppe/xknx
b08a122b0f3c170d91aae6213a60c7038e451c93
[ "MIT" ]
null
null
null
""" Module for managing an RGB remote value. DPT 232.600. """ from xknx.dpt import DPTArray from xknx.exceptions import ConversionError from .remote_value import RemoteValue class RemoteValueColorRGB(RemoteValue): """Abstraction for remote value of KNX DPT 232.600 (DPT_Color_RGB).""" def __init__( ...
30.283582
76
0.579596
796b66b81728bfc8f6fee69887b488a38c9075e2
2,436
py
Python
cssenv/Scripts/csaplication/Estudiante/views.py
Daniela-Sanchez/ClienteServidor
a3b849a78a1830ef9c18b18ff421d4ace73e307f
[ "MIT" ]
null
null
null
cssenv/Scripts/csaplication/Estudiante/views.py
Daniela-Sanchez/ClienteServidor
a3b849a78a1830ef9c18b18ff421d4ace73e307f
[ "MIT" ]
11
2020-02-12T00:27:50.000Z
2022-02-10T09:43:00.000Z
cssenv/Scripts/csaplication/Estudiante/views.py
Daniela-Sanchez/ClienteServidor
a3b849a78a1830ef9c18b18ff421d4ace73e307f
[ "MIT" ]
null
null
null
#-----------------------LIBRERIAS----------------------- from django.shortcuts import get_object_or_404 from django.contrib.auth.models import User from django.http import Http404 from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework ...
37.476923
95
0.654762
796b67a267144b43299c8e3597521222001f05a9
1,904
py
Python
tests/bugs/gh_6838_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_6838_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_6838_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.gh_6838 # title: Deleting multiple rows from a view with triggers may cause triggers to fire just once # decription: # https://github.com/FirebirdSQL/firebird/issues/6838 # # Confirmed bug on 4.1.0.2468, 5.0.0.56. # ...
24.101266
122
0.582458
796b67b9479d04170cd02e4d71dc7ae51ab5fc75
13,795
py
Python
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-12-01T03:30:34.000Z
2017-12-01T03:30:34.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
1
2017-11-13T18:46:39.000Z
2017-11-13T18:46:39.000Z
src/util.py
lambertwang/mastery
772bdeb10e014391835d267069afc820a113d2b2
[ "MIT" ]
null
null
null
import random import re import json from combat import * from travel import * from pdb import set_trace def load_words(path): with open(path, 'r') as f: for line in f: clean_line = line.strip() if clean_line and not clean_line[0] == "#": yield clean_line class Mark...
35.01269
174
0.58137
796b67f21235c6bb42ee854eab599cfe22728f14
7,566
py
Python
api/src/memory/repository/MemoryRepository.py
SamuelJansen/queue-manager-api
53e95eacb90025e2464b9d32fe0e37df4f344d18
[ "MIT" ]
null
null
null
api/src/memory/repository/MemoryRepository.py
SamuelJansen/queue-manager-api
53e95eacb90025e2464b9d32fe0e37df4f344d18
[ "MIT" ]
null
null
null
api/src/memory/repository/MemoryRepository.py
SamuelJansen/queue-manager-api
53e95eacb90025e2464b9d32fe0e37df4f344d18
[ "MIT" ]
null
null
null
from python_helper import ObjectHelper from python_framework import Repository from enumeration.ModelState import ModelState MESSAGE_MODEL = 'message' EMISSION_MODEL = 'emission' @Repository() class MemoryRepository: data = {} def existsMessageByQueueKeyAndMessageKey(self, queueKey, messageKey): ...
34.081081
139
0.669046
796b680d5fa250a2846e45dde72fc632e3d587ef
65
py
Python
z.py
romaintailhurat/pogues-ui-test
e4be39d66aed8c0ac6fb2d402b5e7bd1202ed551
[ "MIT" ]
null
null
null
z.py
romaintailhurat/pogues-ui-test
e4be39d66aed8c0ac6fb2d402b5e7bd1202ed551
[ "MIT" ]
null
null
null
z.py
romaintailhurat/pogues-ui-test
e4be39d66aed8c0ac6fb2d402b5e7bd1202ed551
[ "MIT" ]
null
null
null
from src.HomePage import HomePage hp = HomePage() print(hp.url)
13
33
0.753846
796b68a0bcbbe8d18215cb64dfdd115be883434c
4,514
py
Python
spyder/plugins/outlineexplorer/plugin.py
MarkMoretto/spyder-master
5f8c64edc0bbd203a97607950b53a9fcec9d2f0b
[ "MIT" ]
1
2020-08-14T14:11:20.000Z
2020-08-14T14:11:20.000Z
spyder/plugins/outlineexplorer/plugin.py
MarkMoretto/spyder-master
5f8c64edc0bbd203a97607950b53a9fcec9d2f0b
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/plugin.py
MarkMoretto/spyder-master
5f8c64edc0bbd203a97607950b53a9fcec9d2f0b
[ "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) """Outline Explorer Plugin Data for outline are provided by the outlineexplorer data of highlighter of assigned editor. For example, for Python files code editor use...
37.305785
84
0.648206
796b690f8f6c193a83ec0d42320ddd4798ce0e6e
37,793
py
Python
locations/spiders/spar.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/spar.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
locations/spiders/spar.py
mfjackson/alltheplaces
37c90b4041c80a574e6e4c2f886883e97df4b636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import json import re import logging from locations.items import GeojsonPointItem UK_POSTCODES = [ "AB10", "AB11", "AB12", "AB15", "AB16", "AB21", "AB22", "AB23", "AB24", "AB25", "AB99", "AB13", "AB14", "AB30", "AB31", ...
11.914565
122
0.320165
796b6917af4f5d45b70825af1734f823799469db
7,244
py
Python
p3/management/commands/guidebook_csv.py
sm6xmm/epcon
8bec4391f8a1fd234e644198a438c7613258655a
[ "BSD-2-Clause" ]
null
null
null
p3/management/commands/guidebook_csv.py
sm6xmm/epcon
8bec4391f8a1fd234e644198a438c7613258655a
[ "BSD-2-Clause" ]
null
null
null
p3/management/commands/guidebook_csv.py
sm6xmm/epcon
8bec4391f8a1fd234e644198a438c7613258655a
[ "BSD-2-Clause" ]
null
null
null
""" Export a Guidebook schedule CSV file with the currently accepted talks. Usage: manage.py guidebook_csv ep2015 gb.csv Guidebook CSV format (UTF-8 encoded): ------------------------------------- Session Title,Date,Time Start,Time End,Room/Location,Schedule Track (Optional),Description (Optiona...
29.567347
168
0.574821
796b6a46576f6fa41c32eddfd4b86afb6292258f
7,427
py
Python
storm/ssh_config.py
pauloconnor/storm
796e24af0130c67b96c1866853921b7352c38ce0
[ "MIT" ]
null
null
null
storm/ssh_config.py
pauloconnor/storm
796e24af0130c67b96c1866853921b7352c38ce0
[ "MIT" ]
null
null
null
storm/ssh_config.py
pauloconnor/storm
796e24af0130c67b96c1866853921b7352c38ce0
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from os import makedirs from os.path import dirname from os.path import expanduser from os.path import exists from paramiko.config import SSHConfig from operator import itemgetter import getpass from exceptions import StormValueError from paramiko.config import proxy_re class StormConfig(SSHC...
32.574561
82
0.4932
796b6bb7689d20e4ac5dc4d43f30824c2d0010d2
12,074
py
Python
simplechat/core.py
drowolath/simplechat
8ae66e54ec12c022604463d4b1d0e2e0802eb6ee
[ "Apache-2.0" ]
1
2020-01-23T09:32:55.000Z
2020-01-23T09:32:55.000Z
simplechat/core.py
drowolath/simplechat
8ae66e54ec12c022604463d4b1d0e2e0802eb6ee
[ "Apache-2.0" ]
null
null
null
simplechat/core.py
drowolath/simplechat
8ae66e54ec12c022604463d4b1d0e2e0802eb6ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ Simple chat server with a backend built with Redis PubSub. Each chatroom is backed up by a Redis channel to which users are subscribed. By default, every new user is subscribed to the 'default' pubsub. Every message is stored as a dictionnary with 'name' and 'text' as keys ...
33.632312
80
0.509856
796b6dcae4d826a2ff04b1c869f0314d718acd07
30,233
py
Python
test/functional/rpc_rawtransaction.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_rawtransaction.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_rawtransaction.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the rawtransaction RPCs. Test the following RPCs: - createrawtransaction - signrawtransacti...
58.704854
601
0.655046
796b6ddd4ac931a9b4b1e848b9f49ad0f837e41a
4,941
py
Python
lib/googlecloudsdk/command_lib/meta/debug.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/meta/debug.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/meta/debug.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2016 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 requir...
35.292857
104
0.547662
796b6deefe1963fd49a3ed51ddadece658ee74b3
147
py
Python
tests/parser/bug.32.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/bug.32.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/bug.32.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ x(1,2,3,4,5,6,7,8,9,10,11,12). j :- not j23456789012. """ output = """ x(1,2,3,4,5,6,7,8,9,10,11,12). j :- not j23456789012. """
16.333333
31
0.510204
796b6f62800f8de1f07255629ddd50836de4c7f7
1,164
py
Python
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
2
2018-12-06T11:17:56.000Z
2020-06-04T15:18:04.000Z
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
null
null
null
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() from time import time import gevent from geventwebsocket import WebSocketServer, WebSocketApplication, Resource from monitor import get_monitor class Application(WebSocketApplication): """ Web App class """ def on_open(self): """ On socket...
24.25
84
0.598797
796b6f720c38428ad357454dc2210efa47c35e0b
5,263
py
Python
indico/modules/attachments/clone.py
CrownedSilverFox/conference-platform
1858a2908763dc7e4c29d3157369e9aab6064933
[ "MIT" ]
1
2021-02-24T10:20:14.000Z
2021-02-24T10:20:14.000Z
indico/modules/attachments/clone.py
CrownedSilverFox/conference-platform
1858a2908763dc7e4c29d3157369e9aab6064933
[ "MIT" ]
2
2015-01-20T22:25:18.000Z
2020-07-20T15:27:20.000Z
indico/modules/attachments/clone.py
andrea-guarino-sonarsource/indico
2dada1f293daea913dec85ebb33c29a9f2cb92ac
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from sqlalchemy.orm import joinedload, subqueryload from indico.core.db import db from indico.core.db.sql...
51.598039
119
0.66768
796b70b31492aa1176a921bf0979b38c523eb1c3
277
py
Python
__init__.py
iN1k1/pytorch-cnn-visualizations
b7f9ace2902c671e71795d46122dcc451b8cb95e
[ "MIT" ]
null
null
null
__init__.py
iN1k1/pytorch-cnn-visualizations
b7f9ace2902c671e71795d46122dcc451b8cb95e
[ "MIT" ]
null
null
null
__init__.py
iN1k1/pytorch-cnn-visualizations
b7f9ace2902c671e71795d46122dcc451b8cb95e
[ "MIT" ]
1
2019-12-27T03:13:56.000Z
2019-12-27T03:13:56.000Z
from .src.cnn_layer_visualization import CNNLayerVisualization from .src.gradcam import GradCam from .src.guided_gradcam import guided_grad_cam from .src.guided_backprop import GuidedBackprop __all__ = ['CNNLayerVisualization', 'GradCam', 'GuidedBackprop', 'guided_grad_cam']
39.571429
83
0.837545
796b7237a46f5d6992b1daed64c86afe70d87d2e
36,589
py
Python
plots/SP__K3_T10000_N100__4_algos/configuration_nonstationary__env1-2_4385165385477300355.py
98k-bot/SMPyBandits
35e675bde29dafbec68288fcfcd14ef3b0f058b2
[ "MIT" ]
2
2021-02-07T17:14:32.000Z
2021-05-05T02:03:40.000Z
plots/SP__K3_T10000_N100__4_algos/configuration_nonstationary__env2-2_4385165385477300355.py
98k-bot/SMPyBandits
35e675bde29dafbec68288fcfcd14ef3b0f058b2
[ "MIT" ]
null
null
null
plots/SP__K3_T10000_N100__4_algos/configuration_nonstationary__env2-2_4385165385477300355.py
98k-bot/SMPyBandits
35e675bde29dafbec68288fcfcd14ef3b0f058b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Configuration for the simulations, for the piecewise stationary single-player case. """ from __future__ import division, print_function # Python 2 compatibility __author__ = "Lilian Besson" __version__ = "0.9" # Tries to know number of CPU try: from multiprocessing import cpu_count ...
45.679151
248
0.51715
796b7304c7ce463c6da002ac7e6c412ca3e383c5
6,452
py
Python
code_dev/Peak-Evaluation/syntheticdata_threegaussian_noshift_broadpeak.py
liud16/capstone18
f40092ec6513621910fcfd4665bc349301bae9b0
[ "MIT" ]
null
null
null
code_dev/Peak-Evaluation/syntheticdata_threegaussian_noshift_broadpeak.py
liud16/capstone18
f40092ec6513621910fcfd4665bc349301bae9b0
[ "MIT" ]
3
2018-06-20T23:44:58.000Z
2018-06-28T20:57:47.000Z
code_dev/Peak-Evaluation/syntheticdata_threegaussian_noshift_broadpeak.py
liud16/peakaboo
f40092ec6513621910fcfd4665bc349301bae9b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Apr 18 15:33:37 2017 @author: lyundemi """ import numpy as np import matplotlib.pyplot as plt def find_nearest(array,value): """ find the nearest value to a given value Returns: the index of the nearest value in the array """ idx = (np.abs(array...
25.603175
140
0.675294
796b73718a3641c81e2a108408ce441d5e4f2903
39
py
Python
akashrajput25/Some_py_prog/slice.py
TechGirl007/Hacktoberfest-2024
5d7cbfc8552dd6fb0eebbdc7353c699748b1b51d
[ "MIT" ]
40
2021-09-25T04:50:35.000Z
2021-11-08T12:47:52.000Z
akashrajput25/Some_py_prog/slice.py
TechGirl007/Hacktoberfest-2024
5d7cbfc8552dd6fb0eebbdc7353c699748b1b51d
[ "MIT" ]
18
2021-09-26T05:50:29.000Z
2021-10-05T07:03:22.000Z
akashrajput25/Some_py_prog/slice.py
TechGirl007/Hacktoberfest-2024
5d7cbfc8552dd6fb0eebbdc7353c699748b1b51d
[ "MIT" ]
213
2021-09-24T06:27:35.000Z
2021-10-31T17:59:38.000Z
x="akash is a good boy" print(x[1:6:2])
19.5
23
0.641026
796b738232a23e83b3f9491a80bf949cf4ad8fb7
1,317
py
Python
tests/strategies.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/strategies.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
tests/strategies.py
lycantropos/rene
c73c616f3e360b994e92c950a3616a8ccb1136b9
[ "MIT" ]
null
null
null
from functools import partial from operator import (attrgetter, itemgetter) from ground.base import (Context, Mode) from hypothesis import strategies from hypothesis_geometry import planar from rithm import (Fraction, Int) from rene.exact import (Conto...
37.628571
77
0.604404
796b738bbcbbeb3b48c45e5fb1ce9632c138ddc0
3,445
py
Python
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
null
null
null
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
null
null
null
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
1
2021-10-01T18:11:12.000Z
2021-10-01T18:11:12.000Z
from treasureisland.IdentifyGI import IdentifyGI import pickle import pandas as pd from Bio import SeqIO import os from . import models from importlib import resources import time class Predictor: def __init__(self, input_file_path, output_file_path="output"): self.input_file_path = input_file_path ...
37.445652
101
0.62119
796b73e2ea6c838101cb4f3002495a89d652a9f6
2,456
py
Python
resources/lib/channelui.py
cheese1/plugin.video.mediathekview
2b0931c24478e5e8ad8ea83633e7fbe10ace1c27
[ "MIT" ]
null
null
null
resources/lib/channelui.py
cheese1/plugin.video.mediathekview
2b0931c24478e5e8ad8ea83633e7fbe10ace1c27
[ "MIT" ]
null
null
null
resources/lib/channelui.py
cheese1/plugin.video.mediathekview
2b0931c24478e5e8ad8ea83633e7fbe10ace1c27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The channel model UI module Copyright 2017-2018, Leo Moll and Dominik Schlösser SPDX-License-Identifier: MIT """ # pylint: disable=import-error import os import xbmcgui import xbmcplugin import resources.lib.mvutils as mvutils from resources.lib.channel import Channel class ChannelUI(C...
26.989011
74
0.585505
796b742314c202672a5e9bf3ec7f2ad5ac940c84
868
py
Python
my_qt/utils.py
AlberLC/flanasounds
1967c02f682e0cee10f70d68bd67245f533f2755
[ "MIT" ]
2
2021-06-29T21:06:54.000Z
2021-06-29T21:06:59.000Z
my_qt/utils.py
AlberLC/flanasounds
1967c02f682e0cee10f70d68bd67245f533f2755
[ "MIT" ]
null
null
null
my_qt/utils.py
AlberLC/flanasounds
1967c02f682e0cee10f70d68bd67245f533f2755
[ "MIT" ]
null
null
null
from PySide2 import QtGui def set_active_style(widget): palette = widget.palette() palette.setColor(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight, palette.color(QtGui.QPalette.Active, QtGui.QPalette.Highlight)) palette.setColor(QtGui.QPalette.Inactive, QtGui.QPalette.HighlightedTe...
43.4
92
0.723502
796b74e1b72b8873e52ffa56699fc0159f692bc3
631
py
Python
manage.py
kdbalabanov/DjangoReactTemplate
152f5fdf384a15ebc3353ecb16fcf27f18b46172
[ "MIT" ]
null
null
null
manage.py
kdbalabanov/DjangoReactTemplate
152f5fdf384a15ebc3353ecb16fcf27f18b46172
[ "MIT" ]
5
2020-09-05T02:05:43.000Z
2022-02-26T12:12:42.000Z
manage.py
jkingz/another_django_react
7348a1dc94117c9146bbdf32f36d2c2d9167dbbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoreact.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
28.681818
75
0.684628
796b751022df7389f15849bcb75b35cc05c881e4
3,440
py
Python
covid19-etl/etl/chestxray8.py
West-Loop-Strategy/covid19-tools
a8f30c97fbc5d4e775003fea95cb57f5df88332a
[ "Apache-2.0" ]
2
2021-07-06T16:40:04.000Z
2021-12-02T17:45:46.000Z
covid19-etl/etl/chestxray8.py
West-Loop-Strategy/covid19-tools
a8f30c97fbc5d4e775003fea95cb57f5df88332a
[ "Apache-2.0" ]
208
2020-04-08T02:54:14.000Z
2022-03-17T19:21:38.000Z
covid19-etl/etl/chestxray8.py
West-Loop-Strategy/covid19-tools
a8f30c97fbc5d4e775003fea95cb57f5df88332a
[ "Apache-2.0" ]
5
2020-04-08T14:39:01.000Z
2021-04-20T21:48:03.000Z
from pathlib import Path from etl import base from utils.file_helper import FileHelper from utils.format_helper import format_submitter_id from utils.metadata_helper import MetadataHelper CHESTXRAY8_DATA_PATH = "../data" class CHESTXRAY8(base.BaseETL): def __init__(self, base_url, access_token, s3_bucket): ...
36.989247
88
0.577616
796b760c2de0797faff557df58faf51cd7b17deb
1,027
py
Python
server/src/tests/samples/expressions1.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
1
2020-12-28T16:58:24.000Z
2020-12-28T16:58:24.000Z
server/src/tests/samples/expressions1.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
3
2022-03-03T03:03:24.000Z
2022-03-25T14:43:54.000Z
server/src/tests/samples/expressions1.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
null
null
null
# This sample tests various arithmetic expressions. def returnsInt1() -> int: a = 1 b = 2 return a + b % b // a - b // a def returnsInt2() -> int: a = 1.0 b = 2 # This should generate an error because # it should evaluate to a float, which is # not compatible with the specified retu...
18.339286
55
0.571568
796b763e1c64e34d1de7e81113d81970761da95e
4,691
py
Python
src/salary_prediction_model.py
khalidcawl/salary_predictor_canada
4a7aad5791061e7fe5f1a770c61c9b97d98d5767
[ "MIT" ]
3
2021-11-21T07:14:28.000Z
2021-12-04T20:22:08.000Z
src/salary_prediction_model.py
khalidcawl/salary_predictor_canada
4a7aad5791061e7fe5f1a770c61c9b97d98d5767
[ "MIT" ]
33
2021-11-19T06:55:33.000Z
2021-12-10T21:12:03.000Z
src/salary_prediction_model.py
khalidcawl/salary_predictor_canada
4a7aad5791061e7fe5f1a770c61c9b97d98d5767
[ "MIT" ]
4
2021-11-19T20:11:28.000Z
2021-11-21T18:35:28.000Z
# author: Khalid Abdilahi # date: 2021-11-28 """Builds multiple regression model to predict salary based on features Usage: src/salary_prediction_model.py --train=<train> --out_dir=<out_dir> --test=<test> Options: --train=<train> Path (including filename) to training data (which needs to be saved as a csv file...
31.066225
102
0.70518
796b767566876e97978f90d9a90f196ec71e3709
618
py
Python
String/541. Reverse String II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
String/541. Reverse String II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
String/541. Reverse String II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 541. Reverse String II Example: Input: s = "abcdefg", k = 2 Output: "bacdfeg" """ class Solution: def reverseStr(self, s, k): """ :type s: str :type k: int :rtype: str """ i = 0 s = list(s) while i < len(s): s[i: i+k...
20.6
80
0.404531
796b77cc439c9390e8f21147519c26425d79348e
23,693
py
Python
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_secret_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_secret_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
.infra/setup/playbooks/roles/ansible.kubernetes-modules/library/k8s_v1_secret_list.py
cvicens/lab-knative
ef98aa111e566c6d33fd72c61f9c0d93a2c05b2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException DOCUMENTATION = ''' module: k8s_v1_secret_list short_description: Kubernetes SecretList description: - Retrieve a list of secrets. List operations provide a snapshot read of the un...
47.386
100
0.562529
796b78ad27668b7a3fc659ac3f4a94230109b491
4,373
py
Python
src/primaires/scripting/actions/creer_perturbation.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
14
2015-08-21T19:15:21.000Z
2017-11-26T13:59:17.000Z
src/primaires/scripting/actions/creer_perturbation.py
vincent-lg/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
20
2015-09-29T20:50:45.000Z
2018-06-21T12:58:30.000Z
src/primaires/scripting/actions/creer_perturbation.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
3
2015-05-02T19:42:03.000Z
2018-09-06T10:55:00.000Z
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
42.456311
79
0.702035
796b79bc23a1668a69ab2586e32922ac482b9c6c
1,018
py
Python
tests/test_get_device_capabilities.py
Pubmatic-Dhruv-Sonone/dfp-prebid-setup
bff688831f40ae067459072632b48675ca26175d
[ "MIT" ]
5
2020-08-17T18:35:02.000Z
2021-08-17T10:35:09.000Z
tests/test_get_device_capabilities.py
Pubmatic-Dhruv-Sonone/dfp-prebid-setup
bff688831f40ae067459072632b48675ca26175d
[ "MIT" ]
5
2020-03-05T09:17:23.000Z
2021-12-27T09:30:18.000Z
tests/test_get_device_capabilities.py
Pubmatic-Dhruv-Sonone/dfp-prebid-setup
bff688831f40ae067459072632b48675ca26175d
[ "MIT" ]
5
2019-11-25T11:56:37.000Z
2021-08-20T10:33:15.000Z
from unittest import TestCase from googleads import ad_manager from mock import MagicMock, Mock, patch import settings import dfp.get_device_capabilities @patch('googleads.ad_manager.AdManagerClient.LoadFromStorage') class DFPGetDeviceCapabilitiesTests(TestCase): def test_get_device_capabilities(self, mock_dfp_cl...
29.085714
141
0.710216
796b79e673196ce8a4c2cee3541e23a2f6e99555
1,090
py
Python
lesscpy/lessc/formatter.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2018-11-27T06:30:23.000Z
2021-05-30T15:56:32.000Z
lesscpy/lessc/formatter.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
lesscpy/lessc/formatter.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2018-04-04T12:38:47.000Z
2018-04-04T12:38:47.000Z
# -*- coding: utf8 -*- """ .. module:: lesscpy.lessc.formatter :synopsis: CSS Formatter class. Copyright (c) See LICENSE for details. .. moduleauthor:: Johann T. Mariusson <jtm@robot.is> """ class Formatter(object): def __init__(self, args): self.args = args def format(self, parse): ...
23.695652
73
0.410092
796b79e68dd9fe8fcb2cfd2a6128c70dd376b15d
2,082
py
Python
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2015-01-18T08:52:30.000Z
2015-01-18T08:52:30.000Z
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
# coding=utf-8 from unittest import TestCase from similarityPy.measure.numerical_data.squared_euclidean_distance import SquaredEuclideanDistance from tests import test_logger __author__ = 'cenk' class SquaredEuclideanDistanceTest(TestCase): def test_algorithm(self): test_logger.debug("SquaredEuclideanD...
40.038462
103
0.667627
796b7acc3e1ea5538c95782c1b17434fe049bce6
373
py
Python
problems/Codeforces/A. Hulk.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
6
2020-06-25T14:52:09.000Z
2021-08-05T20:54:15.000Z
problems/Codeforces/A. Hulk.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
problems/Codeforces/A. Hulk.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
import sys n=int(input()) fast = "I " last=" it" mid=" hate " i=int(2); if n==1 : print("I hate it") sys.exit(0) else : while 1<i<=n : # print("1") if (i%2)==0 : mid = mid + " that I love " # print("2") else : mid = mid + " that I hate " ...
14.92
39
0.410188
796b7bf23b1d3107f5502dc693de4ef6f024bed8
7,371
py
Python
sam/sim/test/test.py
weiya711/scadi_graph
5ce78fe09286e9722c2627f7f959c4ad3f2288eb
[ "MIT" ]
null
null
null
sam/sim/test/test.py
weiya711/scadi_graph
5ce78fe09286e9722c2627f7f959c4ad3f2288eb
[ "MIT" ]
null
null
null
sam/sim/test/test.py
weiya711/scadi_graph
5ce78fe09286e9722c2627f7f959c4ad3f2288eb
[ "MIT" ]
null
null
null
import copy import random import numpy as np from sam.sim.src.wr_scanner import WrScan, CompressWrScan from sam.sim.src.array import Array TIMEOUT = 10000000 def check_arr(arr_obj, gold): assert (isinstance(arr_obj, WrScan) or isinstance(arr_obj, Array)) # Assert the array stores values with the rest of th...
28.680934
100
0.606566
796b7bf5d6cf034f0b60d3131c90d030a86e1158
8,352
py
Python
python/pyarrow/tests/test_json.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
1
2019-11-05T08:13:55.000Z
2019-11-05T08:13:55.000Z
python/pyarrow/tests/test_json.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
3
2018-10-25T13:52:14.000Z
2018-10-27T08:44:27.000Z
python/pyarrow/tests/test_json.py
LuoZijun/arrow
8219a8b878d9344fe73e07def34a18a71a8f85a8
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
1
2020-02-27T02:00:20.000Z
2020-02-27T02:00:20.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 u...
36
79
0.563218
796b7cbde335a2a2de1a290b7eea8bef20f5ce89
1,665
py
Python
tg_subreddit/poller.py
bcho/tg-subreddit
030d39eaafe87e3cc02c831dfaff3df655aef999
[ "MIT" ]
1
2021-09-20T06:02:08.000Z
2021-09-20T06:02:08.000Z
tg_subreddit/poller.py
bcho/tg-subreddit
030d39eaafe87e3cc02c831dfaff3df655aef999
[ "MIT" ]
null
null
null
tg_subreddit/poller.py
bcho/tg-subreddit
030d39eaafe87e3cc02c831dfaff3df655aef999
[ "MIT" ]
null
null
null
from loguru import logger import praw import random import time from typing import Callable from . import config from .models import RedditPostPollSettingsGroup from .reddit import RedditPostPoller from .reddit import RedditPostStorageSqlite from .telegram import TelegramBot logger = logger.bind(service="poller") ...
30.833333
79
0.695495
796b7d94dedbdcf4d73cac7af191fe8e6da6c9a1
138,224
py
Python
skidl/libs/actel_sklib.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
700
2016-08-16T21:12:50.000Z
2021-10-10T02:15:18.000Z
skidl/libs/actel_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
118
2016-08-16T20:51:05.000Z
2021-10-10T08:07:18.000Z
skidl/libs/actel_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
94
2016-08-25T14:02:28.000Z
2021-09-12T05:17:08.000Z
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' actel = SchLib(tool=SKIDL).add_parts(*[ Part(name='A3P030-VQG100',dest=TEMPLATE,tool=SKIDL,keywords='ProASIC3 ACTEL FLASH',description='Actel ProASIC3 Flash Family FPGAs, 256 MCLB, 100pin QFP100',ref_prefix='U',num_units=1,fplist...
68.870952
227
0.591829
796b7eb3ed7c78a5b83da02b3b82e0f303ae926b
2,052
py
Python
SmartObjectFramework/ObjectService/SmartObject/ObservableProperty.py
OSIOT/OBSOLETE-IoT-Toolkit
f6cfb116a9f115d5ce288d990b57e0f6855283cc
[ "Apache-2.0" ]
1
2019-06-12T19:37:58.000Z
2019-06-12T19:37:58.000Z
SmartObjectFramework/ObjectService/SmartObject/ObservableProperty.py
OSIOT/OBSOLETE-IoT-Toolkit
f6cfb116a9f115d5ce288d990b57e0f6855283cc
[ "Apache-2.0" ]
null
null
null
SmartObjectFramework/ObjectService/SmartObject/ObservableProperty.py
OSIOT/OBSOLETE-IoT-Toolkit
f6cfb116a9f115d5ce288d990b57e0f6855283cc
[ "Apache-2.0" ]
null
null
null
''' Created on Sep 15, 2012 ObservableProperty class to hold the PropertyOfInterest and it's description and potential observers The Descriptor Property is the ObservableProperty, which has it's value as it's Descriptor Property allowing the value of the ObservableProperty to be it's Descriptor Property Thus the ...
34.779661
95
0.710039
796b7eee51b108bbd869041750feaba1e709937d
3,505
py
Python
sebaba/ml/collaborative_filtering.py
noelnamai/machine-learning
02743dfd99429846cff4bf0c8fca544d45a1db27
[ "MIT" ]
null
null
null
sebaba/ml/collaborative_filtering.py
noelnamai/machine-learning
02743dfd99429846cff4bf0c8fca544d45a1db27
[ "MIT" ]
null
null
null
sebaba/ml/collaborative_filtering.py
noelnamai/machine-learning
02743dfd99429846cff4bf0c8fca544d45a1db27
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from scipy.optimize import minimize class CollaborativeFiltering(object): """ Implementation of the Collaborative Filtering algorithm using Low-Rank Matrix Factorization and Conjugate Gradient Descent. Parameters ----------------------------------------...
36.134021
98
0.518402
796b7f7bbef60aa1a1718fc9bd08b94f99273247
1,197
py
Python
datapackage_pipelines_ukds/oai_utils.py
frictionlessdata/pilot-ukds
b2834a325d1f31ba0da41aba622b806b7c6947a5
[ "MIT" ]
1
2017-08-29T12:57:19.000Z
2017-08-29T12:57:19.000Z
datapackage_pipelines_ukds/oai_utils.py
frictionlessdata/pilot-ukds
b2834a325d1f31ba0da41aba622b806b7c6947a5
[ "MIT" ]
4
2017-09-04T12:39:09.000Z
2017-09-15T13:17:34.000Z
datapackage_pipelines_ukds/oai_utils.py
frictionlessdata/pilot-ukds
b2834a325d1f31ba0da41aba622b806b7c6947a5
[ "MIT" ]
null
null
null
from functools import lru_cache from sickle import Sickle import logging log = logging.getLogger(__name__) METADATA_PREFIX = 'oai_dc' class OAI_Repository(): def __init__(self, oai_url): self.repository = Sickle(oai_url) @lru_cache(maxsize=32) def _get_oai_identify_object(self): ''' ...
26.6
71
0.670008
796b7f9208bdd87e5b05980de506098ff62e6e3d
1,014
py
Python
azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # C...
36.214286
148
0.579882
796b7f9fa352ca8637b3b04db8e8d5f9d7098af1
202
py
Python
Uche Clare/Phase 2/String/Day 34/Task 2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Uche Clare/Phase 2/String/Day 34/Task 2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Uche Clare/Phase 2/String/Day 34/Task 2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#Write a Python program to print all permutations with given repetition number of characters of a given string. import itertools string = "123" print() print(tuple(itertools.permutations(string, 2)))
25.25
111
0.787129
796b80c70b0f798542e402e65dbd4f561b7877c8
452
py
Python
catalog/bindings/gmd/abstract_solid_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_solid_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/abstract_solid_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.abstract_geometric_primitive_type import ( AbstractGeometricPrimitiveType, ) __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class AbstractSolidType(AbstractGeometricPrimitiveType): """gml:AbstractSolidType is an abstraction of a solid to support th...
26.588235
72
0.774336
796b819438ad054f6a29a4ed40681776d3ca3b1e
2,047
py
Python
app_system/utils.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
1
2018-05-15T08:34:14.000Z
2018-05-15T08:34:14.000Z
app_system/utils.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
7
2020-06-05T18:09:20.000Z
2022-03-11T23:20:49.000Z
app_system/utils.py
visoon0012/plover.cloud
04542628758d969085eb6172928165fddb5d2677
[ "Apache-2.0" ]
null
null
null
# from time import sleep # # import paramiko # # # def config_ss(system_ip, system_name, system_pass, ss_port, ss_pass, is_share): # # 创建SSH对象 # ssh = paramiko.SSHClient() # # 允许连接不在know_hosts文件中的主机 # ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # # 连接服务器 # ssh.connect(hostname=syst...
30.552239
90
0.604299
796b81ed73aea2ff19af27175c830dc28d8a7326
14,921
py
Python
fiftyone/core/config.py
ErfanTagh/fiftyone
e911fb084850f97fa392ab29701f8e471e131e9a
[ "Apache-2.0" ]
null
null
null
fiftyone/core/config.py
ErfanTagh/fiftyone
e911fb084850f97fa392ab29701f8e471e131e9a
[ "Apache-2.0" ]
null
null
null
fiftyone/core/config.py
ErfanTagh/fiftyone
e911fb084850f97fa392ab29701f8e471e131e9a
[ "Apache-2.0" ]
null
null
null
""" FiftyOne config. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import logging import os try: from importlib import metadata as importlib_metadata # Python 3.8 except ImportError: import importlib_metadata # Python < 3.8 import eta import eta.core.config as etac imp...
28.805019
79
0.607399
796b820f253dcfd87eaf64eae9dca22b50adf5c4
669
py
Python
tests/functional/test_get_email_list.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
8
2017-11-28T11:05:52.000Z
2021-11-16T13:52:45.000Z
tests/functional/test_get_email_list.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
4
2018-12-23T14:52:11.000Z
2019-08-09T21:01:44.000Z
tests/functional/test_get_email_list.py
antonku/ncssl_api_client
c463b000960d50368d39bde2a180499f1da3a29a
[ "MIT" ]
2
2017-11-28T14:38:24.000Z
2017-11-29T09:03:20.000Z
import unittest import mock import sys from ncssl_api_client.__main__ import main @mock.patch('ncssl_api_client.api.api_client.ApiClient.send_call', return_value='test api response') @mock.patch('ncssl_api_client.config.manager.ConfigManager.get_api_command_config') @mock.patch('ncssl_api_client.config.manager.Config...
41.8125
117
0.77429
796b82a5d3f77a7e05fd804985d5ff3485615966
6,136
py
Python
utils/ribovision.py
RNAcentral/R2DT
ecaa069e28c07cb7c52a6fdbf0e8c55c061178e6
[ "Apache-2.0" ]
25
2020-06-30T15:34:43.000Z
2022-02-15T01:06:03.000Z
utils/ribovision.py
RNAcentral/R2DT
ecaa069e28c07cb7c52a6fdbf0e8c55c061178e6
[ "Apache-2.0" ]
33
2020-06-30T09:21:58.000Z
2022-03-25T15:03:14.000Z
utils/ribovision.py
RNAcentral/R2DT
ecaa069e28c07cb7c52a6fdbf0e8c55c061178e6
[ "Apache-2.0" ]
5
2021-02-16T04:51:16.000Z
2021-11-10T11:39:26.000Z
""" Copyright [2009-present] EMBL-European Bioinformatics Institute 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...
37.187879
142
0.631519
796b82ada0bca17db1cb0a000866922dfadb8770
1,817
py
Python
vmware_nsx/extensions/routertype.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/extensions/routertype.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
null
null
null
vmware_nsx/extensions/routertype.py
mail2nsrajesh/vmware-nsx
63154b510b9fd95c10fffae86bfc49073cafeb40
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2015 VMware, 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 a...
28.84127
78
0.652724
796b836d9dca0918f1e31eeca02df715df87c25c
20,648
py
Python
sdk/python/pulumi_aws/get_ami.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/get_ami.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/get_ami.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from . import _...
39.7842
578
0.64074