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
797dba364a35de9f5dedbb3196009b7f9fc151c3
9,731
py
Python
sis_provisioner/test/dao/test_canvas.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
null
null
null
sis_provisioner/test/dao/test_canvas.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
451
2016-10-25T22:08:19.000Z
2022-03-23T20:27:52.000Z
sis_provisioner/test/dao/test_canvas.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase, override_settings from sis_provisioner.dao.canvas import * from sis_provisioner.dao.course import get_section_by_label from uw_pws import PWS from uw_pws.util import fdao_pws_override from uw_sws.ut...
40.210744
79
0.696537
797dba54d6bf9e5d3d8d54af04a47aa997334145
763
py
Python
2019/day04.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day04.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day04.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
def matches(start, end): c1, c2 = 0, 0 for x in range(start, end + 1): d1, d2, d3, d4, d5, d6 = list(str(x)) if d2 >= d1 and d3 >= d2 and d4 >= d3 and d5 >= d4 and d6 >= d5: if d1 == d2 or d2 == d3 or d3 == d4 or d4 == d5 or d5 == d6: c1 += 1 if ((d1 =...
40.157895
72
0.406291
797dbaad45ebdaaae277b2bcf954298c6fd09579
4,393
py
Python
scripts/yum_pkglist_from_ks.py
perfsonar/toolkit-building
aca87d58649d3bc95c5b6768bf307702331f2535
[ "Apache-2.0" ]
2
2017-09-25T09:18:22.000Z
2019-12-16T11:14:13.000Z
scripts/yum_pkglist_from_ks.py
perfsonar/toolkit-building
aca87d58649d3bc95c5b6768bf307702331f2535
[ "Apache-2.0" ]
7
2015-03-19T01:43:16.000Z
2020-12-08T20:15:45.000Z
scripts/yum_pkglist_from_ks.py
perfsonar/toolkit-building
aca87d58649d3bc95c5b6768bf307702331f2535
[ "Apache-2.0" ]
3
2017-07-06T09:32:10.000Z
2018-11-08T13:38:25.000Z
######################################################################################### # Name: yum_pkglist_from_ks.py # Usage: python yum_pkglist_from_ks.py [options] kickstart outfile # Description: # This script takes a kickstart file, extracts the package list, and finds all the # dependencies in the dependenc...
33.534351
138
0.596403
797dbaec257043cf7192b343b986fc86d2a7fb56
773
py
Python
app/cache/cluster_adapter.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
43
2017-12-27T13:20:15.000Z
2021-04-15T03:02:03.000Z
app/cache/cluster_adapter.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
null
null
null
app/cache/cluster_adapter.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
4
2018-03-28T08:46:07.000Z
2018-10-12T09:33:38.000Z
# -*- coding: utf-8 -*- import logging from redis.lock import LuaLock logger = logging.getLogger(__name__) class RedisLuaLock(LuaLock): @classmethod def lua_acquire(cls, keys, args, client): args = tuple(keys) + tuple(args) return client.eval(cls.LUA_ACQUIRE_SCRIPT, len(keys), *args) @cl...
27.607143
68
0.639069
797dbb73d06334a8598da4820c8f22f10e22b284
23,761
py
Python
picoscope/ps5000.py
jpsecher/pico-python
372308de50614301a099234cc8f8403fc83e2f22
[ "BSD-2-Clause" ]
null
null
null
picoscope/ps5000.py
jpsecher/pico-python
372308de50614301a099234cc8f8403fc83e2f22
[ "BSD-2-Clause" ]
null
null
null
picoscope/ps5000.py
jpsecher/pico-python
372308de50614301a099234cc8f8403fc83e2f22
[ "BSD-2-Clause" ]
null
null
null
# This is the instrument-specific file for the PS5000 series of instruments. # # pico-python is Copyright (c) 2013-2014 By: # Colin O'Flynn <coflynn@newae.com> # Mark Harfouche <mark.harfouche@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are pe...
38.635772
79
0.59867
797dbba7811d283336ea487cc4b0603651efce7a
1,844
py
Python
main.py
Brian-Yee/lute-of-pythagoras
90b55d7c8ec1fe930dc650fefedd9168692c6e8e
[ "MIT" ]
null
null
null
main.py
Brian-Yee/lute-of-pythagoras
90b55d7c8ec1fe930dc650fefedd9168692c6e8e
[ "MIT" ]
null
null
null
main.py
Brian-Yee/lute-of-pythagoras
90b55d7c8ec1fe930dc650fefedd9168692c6e8e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Generates a figure of The Lute of Pythagoras. """ import argparse import cmath from src.renderer import plot_pentagons from src.complex_util import create_polygon, rotate_points def main(num_pentagrams, fpath): """ Create a Lute of Pythagoras image. Arguments: num_pent...
24.263158
86
0.661063
797dbbded0c041ec35bb58f46ae03968e608a0c4
4,749
py
Python
lambdatool/command.py
muckamuck/lambda-tool
0b28c81d178aa61f6f264191c0cbeef894944f73
[ "Apache-2.0" ]
2
2018-03-06T23:42:23.000Z
2019-08-13T03:39:48.000Z
lambdatool/command.py
muckamuck/lambda-tool
0b28c81d178aa61f6f264191c0cbeef894944f73
[ "Apache-2.0" ]
3
2018-07-18T17:31:21.000Z
2018-07-24T02:50:30.000Z
lambdatool/command.py
muckamuck/lambda-tool
0b28c81d178aa61f6f264191c0cbeef894944f73
[ "Apache-2.0" ]
2
2018-07-21T17:50:49.000Z
2018-11-27T21:15:17.000Z
""" The command line interface to stackility. Major help from: https://www.youtube.com/watch?v=kNke39OZ2k0 """ import lambdatool from lambdatool.lambda_creator import LambdaCreator from lambdatool.lambda_deployer import LambdaDeployer import click import boto3 import logging import sys import os import json default_s...
29.867925
176
0.643293
797dbcb9c994ebaa327945ff057fd4acce85fb62
3,961
py
Python
examples/training/train_ner.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
2
2019-01-21T14:52:45.000Z
2019-01-21T14:52:49.000Z
examples/training/train_ner.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
null
null
null
examples/training/train_ner.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
1
2021-03-30T23:58:34.000Z
2021-03-30T23:58:34.000Z
#!/usr/bin/env python # coding: utf8 """Example of training spaCy's named entity recognizer, starting off with an existing model or a blank model. For more details, see the documentation: * Training: https://spacy.io/usage/training * NER: https://spacy.io/usage/linguistic-features#named-entities Compatible with: spaC...
35.684685
83
0.595557
797dbce730476ae7a0ab2f81d29470738567cc94
883
py
Python
old_msg_server/client/test.py
sopergoras123/webchatapp
029a8f39baa6e10b55c61d10d16d7286a0ac2580
[ "MIT" ]
2
2020-12-04T17:33:20.000Z
2020-12-04T17:33:31.000Z
old_msg_server/client/test.py
sopergoras123/webchatapp
029a8f39baa6e10b55c61d10d16d7286a0ac2580
[ "MIT" ]
null
null
null
old_msg_server/client/test.py
sopergoras123/webchatapp
029a8f39baa6e10b55c61d10d16d7286a0ac2580
[ "MIT" ]
null
null
null
from old_msg_server.client import Client import time from threading import Thread c1 = Client("tim") c2 = Client("name") def update_messages(): """ updates the local list of messages :return: None """ msgs = [] run = True while run: time.sleep(0.1) # update every 1/10 of a second...
21.02381
76
0.635334
797dbe1bdcdfe017b96a3c9cf8536a7a3e00c951
4,419
py
Python
blockapi/api/amberdata.py
daveusa31/blockapi
83178b2f3b2ebc3f4653cf0b994ab77ff5e728d5
[ "MIT" ]
13
2019-09-23T09:42:19.000Z
2022-03-28T15:55:56.000Z
blockapi/api/amberdata.py
daveusa31/blockapi
83178b2f3b2ebc3f4653cf0b994ab77ff5e728d5
[ "MIT" ]
3
2019-10-23T09:10:39.000Z
2020-06-08T11:23:55.000Z
blockapi/api/amberdata.py
daveusa31/blockapi
83178b2f3b2ebc3f4653cf0b994ab77ff5e728d5
[ "MIT" ]
9
2019-11-28T12:08:15.000Z
2022-01-20T14:40:37.000Z
from blockapi.services import BlockchainAPI class AmberdataAPI(BlockchainAPI): """ Ethereum API docs: https://docs.amberdata.io/reference#get-all-addresses """ symbol = 'ETH' base_url = 'https://web3api.io/api/v2' # 3 reqs per second with free api key, but doesn't work well rate_limit...
28.882353
90
0.539941
797dbe27a8a8feb97e2d97851d98f009a242a5a9
766
py
Python
fdk_client/application/models/Coupon.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/Coupon.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/Coupon.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Application Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class Coupon(BaseSchema): # Cart swagger.json sub_title = fields.Str(required=False) title = fields.Str(r...
14.185185
53
0.67624
797dc161fbc858b6a657c26647c0216c2e912605
3,021
py
Python
model/segnet.py
maguirre1/deepLAI
ff6961ffdf6d0f215c4bd295d84aa547d2049325
[ "MIT" ]
6
2020-11-05T13:41:24.000Z
2022-01-04T17:21:44.000Z
model/segnet.py
maguirre1/deepLAI
ff6961ffdf6d0f215c4bd295d84aa547d2049325
[ "MIT" ]
1
2022-01-04T17:19:27.000Z
2022-01-04T17:19:27.000Z
model/segnet.py
maguirre1/deepLAI
ff6961ffdf6d0f215c4bd295d84aa547d2049325
[ "MIT" ]
null
null
null
#!/usr/bin/env python import tensorflow as tf from tensorflow import keras from tensorflow.keras import regularizers from tensorflow.keras.layers import Input, Dense, Activation, BatchNormalization, Conv1D from tensorflow.keras.layers import concatenate, MaxPooling1D, UpSampling1D, Dropout from tensorflow.keras.activat...
44.426471
114
0.641509
797dc1b48f5de5be2c76fa233c2d3527f61510ae
2,297
py
Python
snakemake_wrapper_utils/java.py
fgvieira/snakemake-wrapper-utils
fa8617d576944bdb1d814b60c2ee68b916c0ffe6
[ "MIT" ]
null
null
null
snakemake_wrapper_utils/java.py
fgvieira/snakemake-wrapper-utils
fa8617d576944bdb1d814b60c2ee68b916c0ffe6
[ "MIT" ]
null
null
null
snakemake_wrapper_utils/java.py
fgvieira/snakemake-wrapper-utils
fa8617d576944bdb1d814b60c2ee68b916c0ffe6
[ "MIT" ]
null
null
null
import sys def get_java_opts(snakemake): """Obtain java_opts from params, and handle resource definitions in resources.""" java_opts = snakemake.params.get("java_opts", "") extra = snakemake.params.get("extra", "") # Getting memory in megabytes, if java opts is not filled with -Xmx parameter # By...
60.447368
183
0.700479
797dc1b79f5c03af411f70e12223b9a6b3905053
93,975
py
Python
ER.py
gjpcbecq/Robinson
a7e9a15e7086002cbb4f4407a5c762ff6ac4e0c6
[ "CECILL-B" ]
null
null
null
ER.py
gjpcbecq/Robinson
a7e9a15e7086002cbb4f4407a5c762ff6ac4e0c6
[ "CECILL-B" ]
null
null
null
ER.py
gjpcbecq/Robinson
a7e9a15e7086002cbb4f4407a5c762ff6ac4e0c6
[ "CECILL-B" ]
null
null
null
""" Enders A. Robinson """ #_______________________________________________________________________________ #_______________________________________________________________________________ import numpy import math import matplotlib.pyplot as plt from temp import * #______________________________________________________...
34.210047
642
0.474147
797dc34e814424ff0892e6ac9838f4607837049a
7,062
py
Python
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
main.py
rorro/legacy-gauntlet
82898408acee5ddd0c629c15521c7f5f7a8982fe
[ "MIT" ]
null
null
null
import json import os import time from configparser import ConfigParser import discord from discord.ext import tasks, commands from dotenv import load_dotenv from datetime import datetime load_dotenv() TOKEN = os.getenv('TOKEN') CONFIG_FILE = 'config.ini' # Config config_parser = ConfigParser() config_parser.read(CO...
33.15493
125
0.717927
797dc41c07201c6610f5182545893f1b1d7983b1
7,610
py
Python
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/docutils/error_reporting.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
2
2015-08-06T04:19:21.000Z
2020-04-29T23:52:10.000Z
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/docutils/error_reporting.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/docutils/error_reporting.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Id: $Id: error_reporting.py 7423 2012-05-03 11:01:54Z milde $ # :Copyright: © 2011 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted ...
36.586538
129
0.59343
797dc46b7263164cafb8a32468ecda6284ebc362
2,920
py
Python
cpovc_help/views.py
yashpatel12/CPIMS-api-newtest
d5129eb3aa034f70414a2471a72c0a74ad95f6ca
[ "Apache-2.0" ]
null
null
null
cpovc_help/views.py
yashpatel12/CPIMS-api-newtest
d5129eb3aa034f70414a2471a72c0a74ad95f6ca
[ "Apache-2.0" ]
null
null
null
cpovc_help/views.py
yashpatel12/CPIMS-api-newtest
d5129eb3aa034f70414a2471a72c0a74ad95f6ca
[ "Apache-2.0" ]
null
null
null
import os import urllib import mimetypes from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.conf import settings from django.http import HttpResponse from models import OVCDownloads, OVCFAQ @login_required def help_home(request): """Method to do pivot repor...
31.73913
75
0.606507
797dc4ac10084830ff1fb8cb175a7b41d2eea7ce
186
py
Python
Easy/Lowercase/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/Lowercase/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/Lowercase/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: print(line.lower()) lines.close()
20.666667
52
0.532258
797dc54c930e939b4318d8696eaa62bb40134b89
8,153
py
Python
meiduo_mall/meiduo_mall/apps/cart/views.py
Zasling/meiduo_mall
c222b10588a9a5835ec7266b07019dc8b8ca7d65
[ "MIT" ]
1
2019-04-12T08:56:29.000Z
2019-04-12T08:56:29.000Z
meiduo_mall/meiduo_mall/apps/cart/views.py
Zasling/meiduo_mall
c222b10588a9a5835ec7266b07019dc8b8ca7d65
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/cart/views.py
Zasling/meiduo_mall
c222b10588a9a5835ec7266b07019dc8b8ca7d65
[ "MIT" ]
1
2020-03-30T14:35:22.000Z
2020-03-30T14:35:22.000Z
import pickle import base64 from rest_framework.response import Response from rest_framework.views import APIView from rest_framework_jwt.views import ObtainJSONWebToken from goods.models import SKU from .serializers import CartSerializer, CartSKUSerializer, CartDeleteSerializer, CartSelectAllSerializer from django_re...
32.875
105
0.523366
797dc5a6e1cee093907457ef23a97fb106033aa9
4,936
py
Python
lib/model/rpn/rpn.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
10
2022-03-09T13:25:58.000Z
2022-03-23T11:36:31.000Z
lib/model/rpn/rpn.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
1
2022-03-13T12:15:58.000Z
2022-03-18T13:07:02.000Z
lib/model/rpn/rpn.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
2
2022-03-14T02:20:28.000Z
2022-03-21T07:47:20.000Z
from __future__ import absolute_import import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from model.utils.config import cfg from .proposal_layer import _ProposalLayer from .anchor_target_layer import _AnchorTargetLayer from model.utils.net_utils import _smooth_l1_lo...
37.393939
109
0.663088
797dc61557d16a2a3826daa372354a5599d0d0b1
3,846
py
Python
src/evaluators/evaluatorWithType.py
sfu-natlang/HMM-Aligner
ca6bb678749b8d8af07b9e56762013aa43d2cabe
[ "MIT" ]
11
2017-06-24T20:17:59.000Z
2022-01-05T14:08:09.000Z
src/evaluators/evaluatorWithType.py
sfu-natlang/HMM-Aligner
ca6bb678749b8d8af07b9e56762013aa43d2cabe
[ "MIT" ]
2
2017-06-15T18:10:43.000Z
2017-07-05T18:44:54.000Z
src/evaluators/evaluatorWithType.py
sfu-natlang/HMM-Aligner
ca6bb678749b8d8af07b9e56762013aa43d2cabe
[ "MIT" ]
4
2018-02-11T22:54:59.000Z
2020-05-05T13:43:56.000Z
import os import sys import inspect import optparse currentdir = os.path.dirname( os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from fileIO import exportToFile, loadAlignment from loggers import logging, init_logger if __name__ == '__...
34.648649
75
0.596204
797dc84a45f935c009ee8351f4d2d5581ab25e87
11,251
py
Python
tests/test_tools.py
jeeb/EasyClangComplete
0d0e4338c31e8fcffd9809cbce9d8a02b0e69fe2
[ "MIT" ]
null
null
null
tests/test_tools.py
jeeb/EasyClangComplete
0d0e4338c31e8fcffd9809cbce9d8a02b0e69fe2
[ "MIT" ]
null
null
null
tests/test_tools.py
jeeb/EasyClangComplete
0d0e4338c31e8fcffd9809cbce9d8a02b0e69fe2
[ "MIT" ]
null
null
null
"""Test tools. Attributes: easy_clang_complete (module): this plugin module SublBridge (SublBridge): class for subl bridge """ import sublime import time import imp import platform from os import path from unittest import TestCase from EasyClangComplete.plugin import tools from EasyClangComplete.plugin.settin...
35.269592
77
0.615501
797dc84da71bdb74e0e44b09e890792d19bb994b
556
py
Python
lib/medipy/gui/dicom/__init__.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
lib/medipy/gui/dicom/__init__.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
lib/medipy/gui/dicom/__init__.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
1
2022-03-04T05:47:08.000Z
2022-03-04T05:47:08.000Z
########################################################################## # MediPy - Copyright (C) Universite de Strasbourg # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for de...
42.769231
74
0.593525
797dca1cc4daf04e68fd6c87637765557aa0511a
4,261
py
Python
engine/taskengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
3
2020-05-08T16:20:07.000Z
2021-10-06T11:16:10.000Z
engine/taskengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
null
null
null
engine/taskengine.py
asedighi/azure_realtime_batch
c2cf4c8edc2bbded8377842fcad6370fd35af44e
[ "MIT" ]
null
null
null
import importlib import json import os from os.path import isfile import ntpath import socket from os import walk from inspect import getmembers, isfunction import sys from azure.servicebus import ServiceBusClient from azure.servicebus import Message from azure.servicebus.common.constants import ReceiveSettleMode ...
32.526718
181
0.561371
797dcbd119cbe5b884aa076176da69b9cf6ffc0a
9,174
py
Python
config/settings/base.py
zee93/wallapp
b0ae24537acf747c265cd5f49cdb16c6f49f5b65
[ "MIT" ]
1
2017-03-28T17:11:58.000Z
2017-03-28T17:11:58.000Z
config/settings/base.py
zee93/wallapp
b0ae24537acf747c265cd5f49cdb16c6f49f5b65
[ "MIT" ]
1
2018-01-04T14:55:58.000Z
2018-01-04T14:56:15.000Z
config/settings/base.py
zee93/wallapp
b0ae24537acf747c265cd5f49cdb16c6f49f5b65
[ "MIT" ]
null
null
null
""" Django settings for wallapp project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (wallapp/config/se...
35.976471
105
0.613255
797dcc0ebc4e95c7a21e8b9226c3df935748c36c
5,144
py
Python
models/experimental/mask_rcnn/mask_rcnn_params.py
NadimOvi/tpu
cfde494b3b0098afe272efb16124883ea3cbd38f
[ "Apache-2.0" ]
1
2021-11-04T02:52:15.000Z
2021-11-04T02:52:15.000Z
models/experimental/mask_rcnn/mask_rcnn_params.py
NadimOvi/tpu
cfde494b3b0098afe272efb16124883ea3cbd38f
[ "Apache-2.0" ]
null
null
null
models/experimental/mask_rcnn/mask_rcnn_params.py
NadimOvi/tpu
cfde494b3b0098afe272efb16124883ea3cbd38f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
39.267176
80
0.676322
797dcc4f8f1a10040b24878cdd9ecfdf9bc73e42
1,854
py
Python
tests/integration/test_core2models.py
vleseg/zmsavings
eb41f516fae2a7d97e107de682dbe15fa6a85719
[ "Apache-2.0" ]
1
2018-11-04T12:28:45.000Z
2018-11-04T12:28:45.000Z
tests/integration/test_core2models.py
vleseg/zmsavings
eb41f516fae2a7d97e107de682dbe15fa6a85719
[ "Apache-2.0" ]
1
2017-12-01T05:49:25.000Z
2017-12-01T05:49:25.000Z
tests/integration/test_core2models.py
vleseg/zmsavings
eb41f516fae2a7d97e107de682dbe15fa6a85719
[ "Apache-2.0" ]
null
null
null
from datetime import date # Third-party imports from mock import patch import pytest # Project imports from zmsavings.core import ( _select_transactions_for_goal, Account, Goal, Transaction) patch.object = patch.object @pytest.fixture() def accounts(): patcher = patch.object(Account, 'all') mock_all = pa...
34.333333
78
0.708738
797dcc93475f01316095b37b33fc4a8b4ca36442
1,629
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ListViewItemConverter.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ListViewItemConverter.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ListViewItemConverter.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class ListViewItemConverter(ExpandableObjectConverter): """ Provides a type converter to convert System.Windows.Forms.ListViewItem objects to and from various other representations. ListViewItemConverter() """ def Instance(self): """ This function has been arbitrarily put into the stubs""" return L...
46.542857
257
0.752609
797dcd0921d20e6369edf5a9db2e43e2742f4695
6,322
py
Python
trajax/tvlqr.py
froystig/trajax
67fd5ed4867914f1ce1ab78819551c12206a7773
[ "ECL-2.0", "Apache-2.0" ]
63
2021-08-04T19:33:26.000Z
2022-03-30T17:26:40.000Z
trajax/tvlqr.py
froystig/trajax
67fd5ed4867914f1ce1ab78819551c12206a7773
[ "ECL-2.0", "Apache-2.0" ]
3
2021-08-06T18:30:51.000Z
2021-08-20T07:40:08.000Z
trajax/tvlqr.py
froystig/trajax
67fd5ed4867914f1ce1ab78819551c12206a7773
[ "ECL-2.0", "Apache-2.0" ]
6
2021-08-04T22:41:58.000Z
2022-03-10T16:04:18.000Z
# Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.133641
80
0.545555
797dcd39453d592827b970cdf97f3203aa3d4600
666
py
Python
plot.py
TAdeJong/python-ising
e8689bd293bb5b4c5816a51e2deb4cbde375ad0d
[ "MIT" ]
null
null
null
plot.py
TAdeJong/python-ising
e8689bd293bb5b4c5816a51e2deb4cbde375ad0d
[ "MIT" ]
null
null
null
plot.py
TAdeJong/python-ising
e8689bd293bb5b4c5816a51e2deb4cbde375ad0d
[ "MIT" ]
null
null
null
from numpy import * import matplotlib.pyplot as plot import __builtin__ as std import sys n = 40 name = sys.argv[1] print name if len(sys.argv) > 2 : n = sys.argv[2] d = 2 steps = 20*n**d grootte = n**d Mabs = load(name+'_'+'Mabs'+'.npy') #E = load(name+'_'+'E'+'.npy') beta = load(name+'_'+'beta'+'.npy') Chi = load...
19.588235
48
0.635135
797dce00000de55df03a531fca3612e7d0b116eb
522
py
Python
fib.py
nitinrohan/fibonacci-series
488c2a43c7db6972fd63e0e507cc4e1550b2a527
[ "MIT" ]
null
null
null
fib.py
nitinrohan/fibonacci-series
488c2a43c7db6972fd63e0e507cc4e1550b2a527
[ "MIT" ]
null
null
null
fib.py
nitinrohan/fibonacci-series
488c2a43c7db6972fd63e0e507cc4e1550b2a527
[ "MIT" ]
null
null
null
#a project to calculate the fibonacci series for the given numbers nterms = int(input("no. of terms? ")) # first two terms n1, n2 = 0, 1 count = 0 # check if the number of terms is valid if nterms <= 0: print("Please enter a positive integer") elif nterms == 1: print("Fibonacci sequence upto",nterms,...
22.695652
67
0.588123
797dce8a925db8443f148424c1362e8e3f68bc1a
39,532
py
Python
var/spack/repos/builtin/packages/trilinos/package.py
grid5000/spack
c163f49d53e77220b3e49a4414f1863e759d73b7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/trilinos/package.py
grid5000/spack
c163f49d53e77220b3e49a4414f1863e759d73b7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/trilinos/package.py
grid5000/spack
c163f49d53e77220b3e49a4414f1863e759d73b7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import sys from spack import * from spack.build_environment import dso_suffix from spack.error import NoHeaders...
47.743961
120
0.60981
797dcf1c9b7a26eb8d2cd051b1426cf0bea7a0d6
10,150
py
Python
models/litho_model.py
phdyang007/pytorch-CycleGAN-and-pix2pix
8057392a37d47a17ac0e8f7cc4642bec86bf2e43
[ "BSD-3-Clause" ]
1
2022-01-26T00:45:06.000Z
2022-01-26T00:45:06.000Z
models/litho_model.py
phdyang007/pytorch-CycleGAN-and-pix2pix
8057392a37d47a17ac0e8f7cc4642bec86bf2e43
[ "BSD-3-Clause" ]
null
null
null
models/litho_model.py
phdyang007/pytorch-CycleGAN-and-pix2pix
8057392a37d47a17ac0e8f7cc4642bec86bf2e43
[ "BSD-3-Clause" ]
null
null
null
import torch import itertools from util.image_pool import ImagePool from util.util import mkdir from .base_model import BaseModel from . import networks import os import sys #sys.path.append('./models/src') sys.path.append('./models/develset') import hydra import numpy as np import torchvision from PIL i...
45.515695
362
0.629557
797dcf5a5acd8fe497e136a36769b812eddce558
3,584
py
Python
Day_3_Boolean_Logic_Conditionals/booleans.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/booleans.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
Day_3_Boolean_Logic_Conditionals/booleans.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
is_raining = False is_sunny = True is_summer = False # # false = True # legal name for variable but not not recommended... # # False = False # not legal at all, print(is_raining, is_sunny) print(type(is_raining), type(is_sunny), type(is_summer)) print(2 * 2 == 4) # notice double == , this is comparison this is not as...
38.537634
137
0.620815
797dcffacff6b5fcf7e24612f22d9ce0522a0d13
91,332
py
Python
venv/Lib/site-packages/tensorflow/compiler/tf2xla/ops/gen_xla_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/compiler/tf2xla/ops/gen_xla_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/compiler/tf2xla/ops/gen_xla_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: gen_xla_ops.cc """ import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from ...
42.579021
232
0.69036
797dd0493d045ca016d66140470f0470f01dfc4b
10,368
py
Python
app/tests/testDatabaseSearchFacets.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
null
null
null
app/tests/testDatabaseSearchFacets.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
115
2020-09-02T20:01:26.000Z
2022-03-30T11:47:23.000Z
app/tests/testDatabaseSearchFacets.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
2
2020-10-15T13:52:10.000Z
2020-10-20T13:42:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import requests from unitTestConfig import base_api, base_plus_endpoint_encoded, headers class TestDatabaseSearchFacets(unittest.TestCase): def test_1a_facet_art_sourcecode(self): # Send a request to the API server and store the response. ...
53.720207
124
0.677855
797dd0f9e8dc789ccac61f6026849a8c42fd2b8f
146
py
Python
app.py
mishrasunny174/TerminalBlog
2c6e9f254aede0287d899f0e5d3827d17f51ec3d
[ "MIT" ]
1
2018-07-06T06:00:22.000Z
2018-07-06T06:00:22.000Z
app.py
mishrasunny174/TerminalBlog
2c6e9f254aede0287d899f0e5d3827d17f51ec3d
[ "MIT" ]
null
null
null
app.py
mishrasunny174/TerminalBlog
2c6e9f254aede0287d899f0e5d3827d17f51ec3d
[ "MIT" ]
null
null
null
__author__ = "sunny mishra" from database import Database from Menu import Menu Database.initialize() menu = Menu() menu.run_menu()
13.272727
30
0.705479
797dd187ba6437dd02af9739c60a004656388277
8,521
py
Python
src/sqlfluff/dialects/dialect_redshift_keywords.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_redshift_keywords.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_redshift_keywords.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
"""A list of all SQL key words.""" redshift_reserved_keywords = """AES128 AES256 ALL ALLOWOVERWRITE ANALYSE ANALYZE AND ANY ARRAY AS ASC AUTHORIZATION AUTO AVRO AZ64 BACKUP BETWEEN BINARY BLANKSASNULL BOTH BYTEDICT BZIP2 CASE CASE_INSENSITIVE CASE_SENSITIVE CAST CHECK COLLATE COLUMN COMPOUND CONSTRAINT CREATE CREDENTI...
8.712679
38
0.881587
797dd1b74918fa6ac9b9444928fc92e214662d32
2,511
py
Python
python/phonenumbers/data/region_CH.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/data/region_CH.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_CH.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. CH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CH = PhoneMetadata(id='CH', country_code=41, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-9]\\d{8}|860\\d{9}', possible_number_p...
109.173913
195
0.715651
797dd215183662c605dab177fdf8185424afc1ed
1,209
py
Python
core/components/exit.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/components/exit.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/components/exit.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.components import listing, Component from core.direction import Direction @listing.register class Exit(Component): """ A component that maps triggers to move an object to another level/position """ NAME = "exit" __slots__ = () def __init__(self, exits=None): super().__init__...
26.282609
78
0.610422
797dd222b53a379625c0aa6d48a61903cf817e6d
375
py
Python
helperBot/Converter.py
dariakhaetskaya/HelperBot
8b75a9a5b3566a4737320430e36dfd72af559964
[ "MIT" ]
2
2021-11-07T12:04:07.000Z
2021-12-27T15:42:31.000Z
helperBot/Converter.py
dariakhaetskaya/HelperBot
8b75a9a5b3566a4737320430e36dfd72af559964
[ "MIT" ]
null
null
null
helperBot/Converter.py
dariakhaetskaya/HelperBot
8b75a9a5b3566a4737320430e36dfd72af559964
[ "MIT" ]
null
null
null
class Converter: def __init__(self): """ """ def convert(self, data): """ :param data: VKMessage :return: Message """ message = "" return message def convert(self, data): """ :param data: Message :return: VKMessage ...
16.304348
30
0.445333
797dd27fa6dbaa31ae1dce090d462b89cf64aec9
4,780
py
Python
src/make-linux-comparison-figure.py
mmakowski/svpnm
0640023111b58734427265e78569e9d20aacf01d
[ "Apache-2.0" ]
null
null
null
src/make-linux-comparison-figure.py
mmakowski/svpnm
0640023111b58734427265e78569e9d20aacf01d
[ "Apache-2.0" ]
null
null
null
src/make-linux-comparison-figure.py
mmakowski/svpnm
0640023111b58734427265e78569e9d20aacf01d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import os import sys import pandas as pd import seaborn as sns import sklearn.metrics import report_resources import matplotlib.pyplot as plt SCORES_COLS = ('id', 'label', 'score') METRICS_COLS = ('Release', 'Model', 'Metric', 'Score') def main(drf_results_dir: str, crnn_...
44.259259
137
0.625523
797dd30644b211f297c1d1b429a4065c9dd6ea7a
96
py
Python
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/8b/8c/2d/059021ad22e17303d070807c9d2dddbb8790c27db2613dbb2a449ec525
96
96
0.895833
797dd391d4f33e973a6c7ea7a725701c6b90785c
4,426
py
Python
bin/.local/bin/light.py
kcierzan/dotfiles
d9b0e8bb6b26c5a5078ffd0a713bf7223e84138d
[ "Apache-2.0" ]
4
2017-04-26T20:41:39.000Z
2019-08-18T12:05:21.000Z
bin/.local/bin/light.py
kcierzan/dotfiles
d9b0e8bb6b26c5a5078ffd0a713bf7223e84138d
[ "Apache-2.0" ]
null
null
null
bin/.local/bin/light.py
kcierzan/dotfiles
d9b0e8bb6b26c5a5078ffd0a713bf7223e84138d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import copy import argparse import subprocess PRESETS = [ {"temp": 1500, "gamma": [1.0, 0.5, 0.0]}, {"temp": 2000, "gamma": [1.0, 0.5, 0.2]}, {"temp": 2500, "gamma": [1.0, 0.6, 0.4]}, {"temp": 3500, "gamma": [1.0, 0.7, 0.5]}, {"temp": 4000, "gamma": [1.0, 0.8, 0.6]}, {"te...
31.390071
81
0.4939
797dd3fbeff78b0af5ca767dd93a21673ea819db
7,705
py
Python
test/command_line/test_merge.py
RobertRosca/dials
5d21188a655cb3962a215fc035393e6fcdcfd95e
[ "BSD-3-Clause" ]
2
2021-03-17T11:25:46.000Z
2021-11-18T04:20:54.000Z
test/command_line/test_merge.py
elena-pascal/dials
c125d54b0aea4f83bec52918a589c95c45412232
[ "BSD-3-Clause" ]
null
null
null
test/command_line/test_merge.py
elena-pascal/dials
c125d54b0aea4f83bec52918a589c95c45412232
[ "BSD-3-Clause" ]
null
null
null
"""Tests for dials.merge command line program.""" from __future__ import absolute_import, division, print_function import procrunner import pytest from cctbx import uctbx from dxtbx.model.experiment_list import ExperimentListFactory from iotbx import mtz from dials.array_family import flex def validate_mtz(mtz_fi...
33.211207
86
0.666191
797dd43a81b9bc7d21680ce289bd8b65f0a460aa
432
py
Python
configs/fvnet/_base_/schedules/step_200e.py
jhkim-spa/FVNet_v2
2f3ef6f00107fab4ce3566a8ff42b5c44ae346c2
[ "Apache-2.0" ]
2
2022-01-26T03:20:15.000Z
2022-03-08T14:12:38.000Z
configs/fvnet/_base_/schedules/step_200e.py
jhkim-spa/FVNet_v2
2f3ef6f00107fab4ce3566a8ff42b5c44ae346c2
[ "Apache-2.0" ]
null
null
null
configs/fvnet/_base_/schedules/step_200e.py
jhkim-spa/FVNet_v2
2f3ef6f00107fab4ce3566a8ff42b5c44ae346c2
[ "Apache-2.0" ]
null
null
null
# optimizer lr = 0.001 optimizer = dict(type='AdamW', lr=lr, weight_decay=0.001) # max_norm=10 is better for SECOND optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2)) lr_config = dict( policy='step', warmup='linear', warmup_iters=1000, warmup_ratio=1.0 / 1000, gamma=0.5, step=[50,...
27
65
0.701389
797dd49a672b9fcd243c0eaae6020fd4ce5ca57d
9,946
py
Python
oarepo_communities/cli.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
null
null
null
oarepo_communities/cli.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
24
2021-02-01T17:30:33.000Z
2022-02-08T09:54:22.000Z
oarepo_communities/cli.py
oarepo/oarepo-communities
eb05dbdd5caf29e8741df5213456220d8f359cfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CESNET. # # OARepo-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """OArepo module that adds support for communities""" import click import sqlalchemy from flask.cli import w...
34.534722
104
0.666197
797dd4d843ce088c2247197b7909c4f8336b6d35
5,273
py
Python
examples/per_task_retry_policy.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
5
2015-02-26T18:52:56.000Z
2017-07-07T05:47:18.000Z
examples/per_task_retry_policy.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
6
2015-02-10T17:09:21.000Z
2022-03-22T10:16:09.000Z
examples/per_task_retry_policy.py
alanbbr/luigi
49276c9044d68623dc182cb54c777094b2bc9756
[ "Apache-2.0" ]
9
2015-01-26T14:47:57.000Z
2020-07-07T17:01:25.000Z
# -*- coding: utf-8 -*- """ You can run this example like this: .. code:: console $ luigi --module examples.per_task_retry_policy examples.PerTaskRetryPolicy --worker-keep-alive \ --local-scheduler --scheduler-retry-delay 5 --logging-conf-file test/testconfig/logging.cfg ......
32.751553
109
0.619382
797dd50643581e6f6e5402b2ea4d3c8f1f9a694c
552
py
Python
cli/viper.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
25
2019-06-23T15:17:06.000Z
2020-06-05T22:41:21.000Z
cli/viper.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
null
null
null
cli/viper.py
Youngestdev/viper
7855dd0f87f54c926caf04b0e21742b1a2646751
[ "Apache-2.0" ]
3
2019-07-29T16:03:30.000Z
2019-10-04T15:00:32.000Z
#! /usr/bin/env pipenv run -- python3 import click @click.command() @click.option('--version', '-v', flag_value=True, help="Show Viper version") @click.argument('args', nargs=-1) def app(version, args): if version: click.echo('Viper 0.0.1') elif args: click.echo(f"I know I'm supposed to compi...
23
79
0.594203
797dd5bbeae3f0af1cdaba2d11529cf41245aced
1,574
py
Python
follow_repos_by_search_term.py
mrthankyou/lgtm_hack_scripts
4cbdb21de819645ca1ffdb95047d7028e6999de9
[ "MIT" ]
20
2020-09-05T20:33:31.000Z
2022-02-11T13:32:00.000Z
follow_repos_by_search_term.py
mrthankyou/lgtm_hack_scripts
4cbdb21de819645ca1ffdb95047d7028e6999de9
[ "MIT" ]
17
2021-01-25T23:03:05.000Z
2021-04-26T16:03:25.000Z
follow_repos_by_search_term.py
mrthankyou/lgtm_hack_scripts
4cbdb21de819645ca1ffdb95047d7028e6999de9
[ "MIT" ]
5
2021-01-25T21:09:41.000Z
2021-09-14T08:45:42.000Z
from typing import List from lgtm import LGTMSite import utils.github_dates import utils.github_api import sys import time def save_project_to_lgtm(site: 'LGTMSite', repo_name: str): print("About to save: " + repo_name) # Another throttle. Considering we are sending a request to Github # owned properties ...
34.217391
118
0.707751
797dd5d08fc2b7e4597da691ecafcf6c2d13bb97
23,031
py
Python
lektor/cli.py
maikelwever/lektor
83a2ba58eb964e2c7b8ae258aead456677d267a6
[ "BSD-3-Clause" ]
1
2020-06-19T05:58:50.000Z
2020-06-19T05:58:50.000Z
lektor/cli.py
maikelwever/lektor
83a2ba58eb964e2c7b8ae258aead456677d267a6
[ "BSD-3-Clause" ]
2
2021-03-11T04:37:34.000Z
2021-05-11T22:11:24.000Z
lektor/cli.py
maikelwever/lektor
83a2ba58eb964e2c7b8ae258aead456677d267a6
[ "BSD-3-Clause" ]
1
2019-07-30T03:20:23.000Z
2019-07-30T03:20:23.000Z
import os import sys import json import time import itertools import warnings import click import pkg_resources from .i18n import get_default_lang, is_valid_language from .utils import secure_url from .project import Project version = pkg_resources.get_distribution('Lektor').version # pylint: disable=no-member de...
36.155416
87
0.640311
797dd636fcef5efe4fb3e5d634d05264e59922e9
2,777
py
Python
Python2/data_structures.py
jdsandifer/HackerRank
948db95330ae448075ebd2fd9edfd3b888d89051
[ "MIT" ]
null
null
null
Python2/data_structures.py
jdsandifer/HackerRank
948db95330ae448075ebd2fd9edfd3b888d89051
[ "MIT" ]
null
null
null
Python2/data_structures.py
jdsandifer/HackerRank
948db95330ae448075ebd2fd9edfd3b888d89051
[ "MIT" ]
null
null
null
# Read list commands from STDIN and perform them on a list. n = int(raw_input()) command = [] theList = [] for i in range(0, n): command = raw_input().split() if command[0] == "insert": theList.insert(int(command[1]), int(command[2])) elif command[0] == "print": print(theList) elif comm...
29.231579
78
0.664746
797dd752205fd39bdbda951194ac8a98de8a3c11
1,607
py
Python
domains/rescue/problems/auto/problem25_SR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/rescue/problems/auto/problem25_SR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/rescue/problems/auto/problem25_SR.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_searchAndRescue import * from timer import DURATION from state import state def GetCostOfMove(r, l1, l2, dist): return dist DURATION.COUNTER = { 'giveSupportToPerson': 15, 'clearLocation': 5, 'inspectPerson': 20, 'moveEuclidean': GetCostOfMove, 'moveCurved': G...
26.344262
91
0.582452
797dd948ac44a49e926e4b700c3e429a0d7cc9c8
6,148
py
Python
plugin/fiftyone/app/worker.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/app/worker.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/app/worker.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
import csv import math from pathlib import Path from typing import List, Dict, Tuple import xmltodict from celery import current_app as current_celery_app from celery import shared_task from fiftyone import Dataset, Sample, Polyline, Polylines from fiftyone.core.metadata import ImageMetadata from app.models.schemas i...
30.435644
104
0.628497
797dd97211d2b76affa75ba66923498a4323e29d
4,835
py
Python
src/python/pants/backend/core/targets/doc.py
qma/pants
604f58a366b66bc5cfa83e7250cb8af8130832cf
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/core/targets/doc.py
qma/pants
604f58a366b66bc5cfa83e7250cb8af8130832cf
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/core/targets/doc.py
qma/pants
604f58a366b66bc5cfa83e7250cb8af8130832cf
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.base.payl...
34.29078
99
0.652534
797dd9f041201ae1e5ecfeb85efdf9fb599813a9
1,281
py
Python
tests/test_ogcapi_features_pygeoapi.py
mlefort/OWSLib
79f9430c089b89845b844abdbc7ac9e9d49120a3
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
mlefort/OWSLib
79f9430c089b89845b844abdbc7ac9e9d49120a3
[ "BSD-3-Clause" ]
null
null
null
tests/test_ogcapi_features_pygeoapi.py
mlefort/OWSLib
79f9430c089b89845b844abdbc7ac9e9d49120a3
[ "BSD-3-Clause" ]
null
null
null
from tests.utils import service_ok import pytest from owslib.ogcapi.features import Features SERVICE_URL = 'https://demo.pygeoapi.io/master' @pytest.mark.online @pytest.mark.skipif(not service_ok(SERVICE_URL), reason='service is unreachable') def test_ogcapi_features_pygeoapi(): w = Feature...
29.113636
70
0.68306
797dda6ab3a227d7a946e550d0e525e7f72e7a38
5,353
py
Python
custom_components/magic_lights/plugin_effects/transitions/__init__.py
justanotherariel/hass_MagicLights
61ac0db1f7c3575e52912b372176d45e647b728e
[ "MIT" ]
null
null
null
custom_components/magic_lights/plugin_effects/transitions/__init__.py
justanotherariel/hass_MagicLights
61ac0db1f7c3575e52912b372176d45e647b728e
[ "MIT" ]
null
null
null
custom_components/magic_lights/plugin_effects/transitions/__init__.py
justanotherariel/hass_MagicLights
61ac0db1f7c3575e52912b372176d45e647b728e
[ "MIT" ]
null
null
null
import asyncio import enum from custom_components.magic_lights.plugin_effects import Effect import logging from typing import Callable, List import numpy as np import re from colorspacious import cspace_convert CONFIG_SCHEMA = None PLUGIN_DOMAIN = "transitions" PLUGIN_NAME = "Transitions" PLUGIN_DESCRIPTION = "Smooth...
31.863095
150
0.582103
797ddb286a1015fff04f1ae1c7d4183f8cf8dbe9
2,676
py
Python
tcex/batch/attribute.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
18
2017-01-09T22:17:49.000Z
2022-01-24T20:46:42.000Z
tcex/batch/attribute.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
84
2017-04-11T13:47:49.000Z
2022-03-21T20:12:57.000Z
tcex/batch/attribute.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
43
2017-01-05T20:40:26.000Z
2022-03-31T19:18:02.000Z
"""ThreatConnect Batch Import Module""" # standard library import json from typing import Callable, Optional class Attribute: """ThreatConnect Batch Attribute Object""" __slots__ = ['_attribute_data', '_valid'] def __init__( self, attr_type: str, attr_value: str, displaye...
30.067416
82
0.602765
797ddbbb77efa6123ba39e57a1001459f69f3f38
44,795
py
Python
tests/test_monitoring_tools.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
tests/test_monitoring_tools.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
tests/test_monitoring_tools.py
sofyat/paasta
6765ed992ec224bf78741ffcd615a6a6c6ffb780
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
40.174888
95
0.659136
797ddc7c4d251a6a3a2d701d88f1a2e338712bde
6,974
py
Python
autoPyTorch/data_management/data_converter.py
AIIP-DEV/Auto-PyTorch
4a130145c106a813fc237114d1e062b30ab9d629
[ "Apache-2.0" ]
null
null
null
autoPyTorch/data_management/data_converter.py
AIIP-DEV/Auto-PyTorch
4a130145c106a813fc237114d1e062b30ab9d629
[ "Apache-2.0" ]
null
null
null
autoPyTorch/data_management/data_converter.py
AIIP-DEV/Auto-PyTorch
4a130145c106a813fc237114d1e062b30ab9d629
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd __author__ = "Max Dippel, Michael Burkart and Matthias Urban" __version__ = "0.0.1" __license__ = "BSD" class DataConverter(object): def __init__(self, is_classification=None, numerical_min_unique_values=3, force_numerical=None, ...
44.705128
111
0.580155
797ddcfbf6514de041fc033825e8f5e3bf1a19d0
91,991
py
Python
src/sentry/south_migrations/0282_auto__add_field_releasefile_organization__add_field_releaseenvironment.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
src/sentry/south_migrations/0282_auto__add_field_releasefile_organization__add_field_releaseenvironment.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/south_migrations/0282_auto__add_field_releasefile_organization__add_field_releaseenvironment.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ReleaseFile.organization' db.add_column( 'sent...
36.766986
97
0.403279
797ddd5ac8e6128a54b43dcff1ab76b02713cea5
2,401
py
Python
example.py
Kipok/expline
0cd7705b5a787f8b9835e3e453b371c45d6a237b
[ "MIT" ]
2
2017-12-11T03:47:52.000Z
2018-04-13T23:01:48.000Z
example.py
Kipok/expline
0cd7705b5a787f8b9835e3e453b371c45d6a237b
[ "MIT" ]
6
2017-11-03T17:51:25.000Z
2017-11-04T19:07:49.000Z
example.py
Kipok/expline
0cd7705b5a787f8b9835e3e453b371c45d6a237b
[ "MIT" ]
null
null
null
from __future__ import print_function from six.moves import range import numpy as np import argparse from expline.base import BaseExperiment class ExampleExperiment(BaseExperiment): """Example experiment demostrating how to correctly inherit BaseExperiment. This class just runs a gradient descent on a simpl...
32.013333
77
0.637234
797dde15244872031408186aef9dab4e3a61937c
6,900
py
Python
timesketch/lib/forms.py
ethicalhackeragnidhra/Timesketch
182fc88edc11e59234e41718593b046ebbadbb3e
[ "Apache-2.0" ]
1
2020-12-18T00:38:34.000Z
2020-12-18T00:38:34.000Z
timesketch/lib/forms.py
ethicalhackeragnidhra/Timesketch
182fc88edc11e59234e41718593b046ebbadbb3e
[ "Apache-2.0" ]
null
null
null
timesketch/lib/forms.py
ethicalhackeragnidhra/Timesketch
182fc88edc11e59234e41718593b046ebbadbb3e
[ "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...
32.54717
79
0.679565
797dded4f7680ac24b1513a954cc5583345e9575
22,827
py
Python
homeassistant/components/hunterdouglas_powerview/cover.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hunterdouglas_powerview/cover.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hunterdouglas_powerview/cover.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""Support for hunter douglas shades.""" from __future__ import annotations import asyncio from collections.abc import Iterable from contextlib import suppress from datetime import timedelta import logging from typing import Any from aiopvapi.helpers.constants import ( ATTR_POSITION1, ATTR_POSITION2, ATTR...
36.758454
88
0.682525
797ddeec8bdfbe2d2dabc5a2caef7aa043fd9590
606
py
Python
yellowbrick/model_selection/__init__.py
abatula/yellowbrick
b1deb4cbf78e57f9c31b895b16f73c35c9b06936
[ "Apache-2.0" ]
null
null
null
yellowbrick/model_selection/__init__.py
abatula/yellowbrick
b1deb4cbf78e57f9c31b895b16f73c35c9b06936
[ "Apache-2.0" ]
null
null
null
yellowbrick/model_selection/__init__.py
abatula/yellowbrick
b1deb4cbf78e57f9c31b895b16f73c35c9b06936
[ "Apache-2.0" ]
null
null
null
# yellowbrick.model_selection # Visualizers that wrap the model selection libraries of Scikit-Learn # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Fri Mar 30 10:36:12 2018 -0400 # # ID: __init__.py [] benjamin@bengfort.com $ """ Visualizers that wrap the model selection libraries of Scikit-Learn """...
31.894737
74
0.590759
797ddf19c573c5fcd86a03106a3d6df45e4da0e2
1,776
py
Python
ServidorPython/python32_web/Lib/site-packages/ipykernel/tests/test_start_kernel.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
ServidorPython/python32_web/Lib/site-packages/ipykernel/tests/test_start_kernel.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
ServidorPython/python32_web/Lib/site-packages/ipykernel/tests/test_start_kernel.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
from .test_embed_kernel import setup_kernel TIMEOUT = 15 def test_ipython_start_kernel_userns(): cmd = ('from IPython import start_kernel\n' 'ns = {"tre": 123}\n' 'start_kernel(user_ns=ns)') with setup_kernel(cmd) as client: msg_id = client.inspect('tre') msg = client.ge...
37.787234
70
0.631194
797de0374aa50b8776257cfc37c9bd2f9eae79bb
217
py
Python
simulation/simulation/utils/test/test_rand_lif_spikes_single.py
HaoGao1996/NeuronNetSimulation
6a86d03aac8875ee96d2681a897ab91bb05287d3
[ "MIT" ]
null
null
null
simulation/simulation/utils/test/test_rand_lif_spikes_single.py
HaoGao1996/NeuronNetSimulation
6a86d03aac8875ee96d2681a897ab91bb05287d3
[ "MIT" ]
null
null
null
simulation/simulation/utils/test/test_rand_lif_spikes_single.py
HaoGao1996/NeuronNetSimulation
6a86d03aac8875ee96d2681a897ab91bb05287d3
[ "MIT" ]
null
null
null
from fishSimulation.utils import generator as gen import matplotlib.pyplot as plt sp = gen.rand_lif_spikes_single(size=(10000, 4), f=15, delta_tb=1, num=10, ratio=(0.8, 0.5)) print(sp.size) plt.plot(sp) plt.show()
21.7
92
0.737327
797de0dde486401cf117f3d0e0803bd320dd11d8
1,304
py
Python
tests/spin_paired/test_spin_paired.py
wangenau/eminus
57b6876093e52a14fc044cac94d1963b94b4ce8a
[ "Apache-2.0" ]
null
null
null
tests/spin_paired/test_spin_paired.py
wangenau/eminus
57b6876093e52a14fc044cac94d1963b94b4ce8a
[ "Apache-2.0" ]
null
null
null
tests/spin_paired/test_spin_paired.py
wangenau/eminus
57b6876093e52a14fc044cac94d1963b94b4ce8a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 '''Test total energies for a small set of systems.''' import eminus from eminus import Atoms, read_xyz, SCF from numpy.testing import assert_allclose # Total energies calculated with PWDFT.jl for He, H2, LiH, CH4, and Ne with same parameters as below Etot_ref = [-2.54356557, -1.10228799, -0.7659...
22.482759
100
0.64954
797de1b1932f2beca6c73c142246190a895de6e7
1,623
py
Python
face_register/guest_sampling.py
SeonghoBaek/RealtimeCamera
1b371b58eafdddf94330f008495dc9ad593ea8e1
[ "Apache-2.0" ]
18
2017-01-11T18:31:06.000Z
2021-05-06T11:27:34.000Z
face_register/guest_sampling.py
SeonghoBaek/RealtimeCamera
1b371b58eafdddf94330f008495dc9ad593ea8e1
[ "Apache-2.0" ]
2
2021-04-30T20:33:54.000Z
2022-02-11T03:39:24.000Z
face_register/guest_sampling.py
SeonghoBaek/RealtimeCamera
1b371b58eafdddf94330f008495dc9ad593ea8e1
[ "Apache-2.0" ]
3
2017-08-22T13:19:15.000Z
2020-01-28T12:41:27.000Z
import os import shutil import random def guest_sampling(path, size): label_dir_list = [d for d in os.listdir(path) if os.path.isdir(path+d) and d != 'User'] label_dir_size = len(label_dir_list) label_list = [] sample_list = [] index = 0 for d in label_dir_list: listing = [path + d + ...
28.473684
112
0.593962
797de26a5d4e26b09bc4486e6ac179afe371c922
19,554
py
Python
tests/test_dcos_e2e/backends/docker/test_docker.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
tests/test_dcos_e2e/backends/docker/test_docker.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
tests/test_dcos_e2e/backends/docker/test_docker.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
""" Tests for the Docker backend. This module contains tests for Docker backend features which are not covered by sibling modules. """ import subprocess import uuid from pathlib import Path from typing import Iterator # See https://github.com/PyCQA/pylint/issues/1536 for details on why the errors # are disabled. imp...
34.731794
79
0.609134
797de2f489d7ec25997e766b662d8497184dd951
2,290
py
Python
downloadr.py
shr-NaHCO3/hello-time
508860e61a1f8ba5a381799f8e1300382769177b
[ "MIT" ]
null
null
null
downloadr.py
shr-NaHCO3/hello-time
508860e61a1f8ba5a381799f8e1300382769177b
[ "MIT" ]
null
null
null
downloadr.py
shr-NaHCO3/hello-time
508860e61a1f8ba5a381799f8e1300382769177b
[ "MIT" ]
null
null
null
import requests, re, os, time, shutil url = "https://unpkg.com/" mod = "vue" version = "" headers = {'Accept-Language': 'zh-CN,zh;q=0.8', 'Content-Type': 'text/html;Charset=utf-8', "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safa...
30.131579
137
0.531441
797de43127d24ab02512e097887f49ae8e8b17da
638
py
Python
397.Integer-Replacement.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
18
2018-07-14T12:45:37.000Z
2022-03-26T14:51:04.000Z
397.Integer-Replacement.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
null
null
null
397.Integer-Replacement.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
3
2019-05-29T04:09:22.000Z
2021-06-07T23:37:46.000Z
# https://leetcode.com/problems/integer-replacement/description/ # # algorithms # Medium (30.67%) # Total Accepted: 34.5k # Total Submissions: 112.5k # beats 100.0% of python submissions class Solution(object): def integerReplacement(self, n): """ :type n: int :rtype: int """ ...
23.62963
64
0.432602
797de4e68792d0a5d86d26e21738799b3d97e919
124
py
Python
tensorkit/variational/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/variational/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/variational/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
2
2020-10-15T06:41:32.000Z
2021-01-27T12:55:11.000Z
from .chain import * from .estimators import * from .evaluation import * from .inference import * from .objectives import *
20.666667
25
0.758065
797de5179c7d3780bb854c4fbf4477adfee7c4f6
2,200
py
Python
bk7084/graphics/lights/directional_light.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
1
2022-03-29T10:25:10.000Z
2022-03-29T10:25:10.000Z
bk7084/graphics/lights/directional_light.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
3
2021-11-18T23:35:40.000Z
2021-12-02T20:00:06.000Z
bk7084/graphics/lights/directional_light.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
null
null
null
from .light import Light from ...math import Vec3, Mat4 from ...misc import Color, PaletteSvg class DirectionalLight(Light): def __init__(self, position: Vec3 = Vec3(8.0, 8.0, 8.0), direction: Vec3 = Vec3(-1.0, -1.0, -1.0), color: Color = PaletteSvg.White.as_color(), sm_width=20.0, sm_height=20.0...
31.884058
113
0.551818
797de532b21ae5885238cb4a41979040742a27dc
2,282
py
Python
main.py
belerico/insertion-matcher
3e117c8ff41ebcd06eca0a861250fd6f8bd0e4a8
[ "Apache-2.0" ]
3
2020-01-24T22:06:57.000Z
2020-11-29T00:23:02.000Z
main.py
belerico/aml-project
3e117c8ff41ebcd06eca0a861250fd6f8bd0e4a8
[ "Apache-2.0" ]
null
null
null
main.py
belerico/aml-project
3e117c8ff41ebcd06eca0a861250fd6f8bd0e4a8
[ "Apache-2.0" ]
null
null
null
from dataset import get_data, get_iterators from fitness import fit, evaluate from utils import load_embedding import pickle if __name__ == "__main__": config = { "embedding_path": "./dataset/embeddings/w2v/w2v_title_300Epochs_1MinCount_9ContextWindow_100d.txt", "epochs": 30, "lr": 1e-03, ...
35.107692
107
0.627958
797de5c4d64951d83a51175d977929a3e7b6323f
9,016
py
Python
litex_boards/targets/xilinx_alveo_u280.py
zhbeiluo/litex-boards
c564dc1f9244f8fb9b405ab6427cd872d72d7fdd
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/xilinx_alveo_u280.py
zhbeiluo/litex-boards
c564dc1f9244f8fb9b405ab6427cd872d72d7fdd
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/xilinx_alveo_u280.py
zhbeiluo/litex-boards
c564dc1f9244f8fb9b405ab6427cd872d72d7fdd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2021 Sergiu Mosanu <sm7ed@virginia.edu> # Copyright (c) 2020-2021 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2020 Antmicro <www.antmicro.com> # # SPDX-License-Identifier: BSD-2-Clause # To interface via the serial port u...
45.766497
146
0.577529
797de5d4a7fb749a3781c800c6bb0c8e060ea1c2
51,198
py
Python
deformdemo/app.py
benzheren/deform
79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4
[ "CC-BY-3.0" ]
1
2017-10-27T13:20:33.000Z
2017-10-27T13:20:33.000Z
deformdemo/app.py
benzheren/deform
79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4
[ "CC-BY-3.0" ]
null
null
null
deformdemo/app.py
benzheren/deform
79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ A Pyramid app that demonstrates various Deform widgets and capabilities """ import inspect import sys import csv import StringIO from pkg_resources import resource_filename from pyramid.config import Configurator from pyramid.renderers import get_renderer from pyramid.i18n import get_loc...
39.383077
86
0.580784
797de8f37b59ce157ec8598a2c6b213b05f2e535
4,714
py
Python
ucsmsdk/mometa/network/NetworkLanNeighborEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/network/NetworkLanNeighborEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/network/NetworkLanNeighborEntry.py
anoop1984/python_sdk
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for NetworkLanNeighborEntry ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class NetworkLanNeighborEntryConsts(): pass class NetworkLanNeighborEn...
60.435897
248
0.66801
797de9b00b756ff855bdaae9c57f3150d9cd7a70
1,108
py
Python
models/model_strong_baseline/__init__.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
15
2020-08-24T22:47:39.000Z
2021-04-19T07:51:32.000Z
models/model_strong_baseline/__init__.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
1
2021-10-14T03:07:12.000Z
2021-11-05T13:59:55.000Z
models/model_strong_baseline/__init__.py
qychen13/ClusterAlignReID
9dca1a39b7f1035c9579d80bbb73aa45480a616c
[ "MIT" ]
1
2020-08-26T02:48:40.000Z
2020-08-26T02:48:40.000Z
from .baseline import Baseline def resnet50(num_classes): return Baseline(num_classes, 1, '../modelzoo/resnet50-19c8e357.pth', 'bnneck', 'after', 'resnet50', 'imagenet') def resnet50v1(num_classes): return Baseline(num_classes, 1, '../modelzoo/resnet50-19c8e357.pth', 'bnneck', 'after-v1', 'resnet50', 'image...
44.32
128
0.723827
797dea3c007d31c84f8ead7ca24b25c8be28a8a6
219
py
Python
examples/src/school/__init__.py
e8johan/pydoc-markdown
a48298bd58252bbf8832658528e8110f86766047
[ "MIT" ]
null
null
null
examples/src/school/__init__.py
e8johan/pydoc-markdown
a48298bd58252bbf8832658528e8110f86766047
[ "MIT" ]
1
2020-10-27T20:33:53.000Z
2020-10-27T20:33:53.000Z
examples/src/school/__init__.py
e8johan/pydoc-markdown
a48298bd58252bbf8832658528e8110f86766047
[ "MIT" ]
1
2020-08-16T18:44:57.000Z
2020-08-16T18:44:57.000Z
""" This package models a school for the purpose of generating API documentation using Pydoc Markdown. """ from ._class import Class from ._pupil import Pupil from ._teacher import Teacher from ._school import School
21.9
98
0.789954
797deaa009eb34694c3159858122c2f9a7d56115
6,302
py
Python
collman14v2/201710/synaptogramCubes.py
neurodata-dev/synaptome-stats
7637432355d4ccc169e5c3847dd123616f4594cb
[ "Apache-2.0" ]
null
null
null
collman14v2/201710/synaptogramCubes.py
neurodata-dev/synaptome-stats
7637432355d4ccc169e5c3847dd123616f4594cb
[ "Apache-2.0" ]
null
null
null
collman14v2/201710/synaptogramCubes.py
neurodata-dev/synaptome-stats
7637432355d4ccc169e5c3847dd123616f4594cb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ### ### ### ### Jesse Leigh Patsolic ### 2017 <jpatsol1@jhu.edu> ### S.D.G # import argparse import math from intern.remote.boss import BossRemote from intern.resource.boss.resource import * import configparser #import grequests # for async requests, conflicts with requests somehow import req...
35.011111
106
0.603777
797deb3485bb27ffe26c319bbefd3277c53a4c9a
11,643
py
Python
gcp-cli/client/util/util_dpm.py
lacework/csp-integrations
bae91bc849d25bfdc76c9e0b643a635137311708
[ "Apache-2.0" ]
1
2020-05-14T20:39:58.000Z
2020-05-14T20:39:58.000Z
gcp-cli/client/util/util_dpm.py
lacework/csp-integrations
bae91bc849d25bfdc76c9e0b643a635137311708
[ "Apache-2.0" ]
1
2019-04-03T21:53:09.000Z
2019-04-03T21:53:09.000Z
gcp-cli/client/util/util_dpm.py
lacework/csp-integrations
bae91bc849d25bfdc76c9e0b643a635137311708
[ "Apache-2.0" ]
3
2020-08-13T16:52:00.000Z
2021-04-09T15:21:09.000Z
from __future__ import print_function from __future__ import absolute_import from builtins import input from builtins import str import logging from .util_base import UtilBase from . import util_template HTTP_GET_METHOD = "GET" HTTP_POST_METHOD = "POST" HTTP_DELETE_METHOD = "DELETE" SERVICE_ACCOUNT_ID = "lacework-cfg-...
58.507538
161
0.653869
797deb538995199cad2d0d528a915e72dea863c0
3,082
py
Python
code/jupyt/update_2019-Sep-17/model_prediction_vox_fluoro_norm_mse.py
john-drago/fluoro
b757af60940c4395101a39a15f3ac4213f40fdce
[ "MIT" ]
4
2021-03-01T15:34:37.000Z
2021-06-03T08:56:39.000Z
code/jupyt/update_2019-Sep-17/model_prediction_vox_fluoro_norm_mse.py
john-drago/fluoro
b757af60940c4395101a39a15f3ac4213f40fdce
[ "MIT" ]
null
null
null
code/jupyt/update_2019-Sep-17/model_prediction_vox_fluoro_norm_mse.py
john-drago/fluoro
b757af60940c4395101a39a15f3ac4213f40fdce
[ "MIT" ]
null
null
null
''' This module will attempt to predict model parameters by using a trained model. ''' import tensorflow as tf import os import h5py import numpy as np import pickle base_dir = os.path.expanduser('~/fluoro/data/compilation') file_base_name = 'vox_fluoro_norm_mse' hist_path = os.path.join(os.path.expanduser('~/fluor...
32.787234
135
0.721934
797debaba7d2fb3996e76e27eacde37f7f457e65
801
py
Python
gvolib/tags.py
gr33ndata/gvolib
7138dab507ab1eaf0a71ba7b20614aa181aa818f
[ "MIT" ]
null
null
null
gvolib/tags.py
gr33ndata/gvolib
7138dab507ab1eaf0a71ba7b20614aa181aa818f
[ "MIT" ]
null
null
null
gvolib/tags.py
gr33ndata/gvolib
7138dab507ab1eaf0a71ba7b20614aa181aa818f
[ "MIT" ]
null
null
null
from gvolib.dist import Dist class Tags(Dist): def __init__(self, feed): Dist.__init__(self, feed) self.data = {} for p in feed: for t in p.tags: self.data[t] = self.data.get(t, []) + [p] def __len__(self): 'Returns number of tags' return...
26.7
66
0.593009
797debc28193e06c7e371e25fe9d69963988eb4e
505
py
Python
example/app/migrations/0003_tag.py
xrmx/django-admin-json-editor
163a33c11e007b4b797243ec14f5ae0412c93ffa
[ "MIT" ]
160
2017-06-05T01:24:46.000Z
2022-03-31T19:35:49.000Z
example/app/migrations/0003_tag.py
xrmx/django-admin-json-editor
163a33c11e007b4b797243ec14f5ae0412c93ffa
[ "MIT" ]
37
2017-10-03T18:39:39.000Z
2022-03-23T08:11:13.000Z
example/app/migrations/0003_tag.py
xrmx/django-admin-json-editor
163a33c11e007b4b797243ec14f5ae0412c93ffa
[ "MIT" ]
58
2017-06-04T14:07:43.000Z
2022-03-09T16:27:47.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_roles'), ] operations = [ migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, ...
25.25
79
0.512871
797ded8590d84b8813b6ef8489710ee09a90a2b9
2,867
py
Python
packaging/setup_aimet_torch.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
null
null
null
packaging/setup_aimet_torch.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
null
null
null
packaging/setup_aimet_torch.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
null
null
null
#============================================================================== # @@-COPYRIGHT-START-@@ # # Copyright (c) 2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
44.107692
121
0.703523
797ded955feb56e7adf661077f3fc8a5c7c265fc
398
py
Python
Kooleposhti/accounts/migrations/0005_alter_user_phone_no.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
Kooleposhti/accounts/migrations/0005_alter_user_phone_no.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
Kooleposhti/accounts/migrations/0005_alter_user_phone_no.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-06 18:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20211103_2205'), ] operations = [ migrations.AlterField( model_name='user', name='phone_no', ...
20.947368
61
0.603015
797dedd8584226eb886836b6304f6e8189b28597
392
py
Python
zerver/migrations/0080_realm_description_length.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
6
2019-05-09T20:43:20.000Z
2022-03-29T05:53:50.000Z
zerver/migrations/0080_realm_description_length.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
2
2016-10-18T04:01:56.000Z
2016-10-20T18:19:09.000Z
zerver/migrations/0080_realm_description_length.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
7
2016-08-10T02:24:32.000Z
2022-03-28T15:14:18.000Z
# Generated by Django 1.10.5 on 2017-05-11 20:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zerver', '0079_remove_old_scheduled_jobs'), ] operations = [ migrations.AlterField( model_name='realm', name='descri...
21.777778
53
0.607143
797df0e935f93f6de10ac7290c9c61d3ff20ceb9
3,607
py
Python
dataset/rebalance_splits.py
RostislavStoyanov/deep_learning_tensorflow
5ec062489441cdec954b92b1ca836fcc3ab3417e
[ "MIT" ]
null
null
null
dataset/rebalance_splits.py
RostislavStoyanov/deep_learning_tensorflow
5ec062489441cdec954b92b1ca836fcc3ab3417e
[ "MIT" ]
null
null
null
dataset/rebalance_splits.py
RostislavStoyanov/deep_learning_tensorflow
5ec062489441cdec954b92b1ca836fcc3ab3417e
[ "MIT" ]
null
null
null
import sys,getopt import os import random import shutil import math sys.path.insert(0,'..') from global_vars import genres from shared_func import print_and_exit help_msg = 'rebalance_splits.py -d <dir>, where dir is the directory containing the train, valid, eval subdirs' eps = 1e-3 def maybe_create...
33.398148
114
0.683116
797df117eee83e9efd3bb52d0965e4787efd8aff
269
py
Python
virl/cli/definitions/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
133
2018-07-01T06:08:49.000Z
2022-03-26T15:22:21.000Z
virl/cli/definitions/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
76
2018-06-28T16:41:57.000Z
2022-03-26T17:23:06.000Z
virl/cli/definitions/__init__.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
43
2018-06-27T20:40:52.000Z
2022-02-22T06:16:11.000Z
import click from virl.cli.definitions.nodes import nodes from virl.cli.definitions.images import images @click.group() def definitions(): """ manage image and node definitions """ pass definitions.add_command(nodes) definitions.add_command(images)
16.8125
46
0.747212
797df1749438834c60958836875d94fb9b06eac8
9,645
py
Python
Games/Slide Puzzle/slider_puzzle.py
linyuan5856/FunnyGames-Python
7f349cbfc4da3b7614706bc62d698afdd8f45b58
[ "MIT" ]
null
null
null
Games/Slide Puzzle/slider_puzzle.py
linyuan5856/FunnyGames-Python
7f349cbfc4da3b7614706bc62d698afdd8f45b58
[ "MIT" ]
null
null
null
Games/Slide Puzzle/slider_puzzle.py
linyuan5856/FunnyGames-Python
7f349cbfc4da3b7614706bc62d698afdd8f45b58
[ "MIT" ]
null
null
null
import pygame, sys, random, GameColor from pygame.locals import * BOARDWIDTH = 3 BOARDHEIGHT = 4 TILESIZE = 80 WINDOWWIDTH = 1280 WINDOWHEIGHT = 720 FPS = 30 BLANK = None BGCOLOR = GameColor.DARKTURQUOISE TILECOLOR = GameColor.GREEN TEXTCOLOR = GameColor.WHITE BORDERCOLOR = GameColor.WHITE BASICFONTSIZE = 20 BUTTONC...
33.14433
111
0.609435
797df18f505bf0624426b6f688043fd94c446130
4,272
py
Python
devel/lib/python2.7/dist-packages/racecar_potential_field_controller/cfg/RacecarPotentialFieldControllerConfig.py
burakekincioglu/Autonomous-Car-with-ROS
83d8d497819ffe30851ffc4d453e01c28783d7c7
[ "Unlicense" ]
1
2021-08-09T09:30:09.000Z
2021-08-09T09:30:09.000Z
devel/lib/python2.7/dist-packages/racecar_potential_field_controller/cfg/RacecarPotentialFieldControllerConfig.py
burakekincioglu/Autonomous-Car-with-ROS
83d8d497819ffe30851ffc4d453e01c28783d7c7
[ "Unlicense" ]
null
null
null
devel/lib/python2.7/dist-packages/racecar_potential_field_controller/cfg/RacecarPotentialFieldControllerConfig.py
burakekincioglu/Autonomous-Car-with-ROS
83d8d497819ffe30851ffc4d453e01c28783d7c7
[ "Unlicense" ]
null
null
null
## ********************************************************* ## ## File autogenerated for the racecar_potential_field_controller package ## by the dynamic_reconfigure package. ## Please do not edit. ## ## ********************************************************/ from dynamic_reconfigure.encoding import extract_params ...
115.459459
3,374
0.65426
797df1adf4f985c8dc2fede2358e94a39f5d3eca
8,618
py
Python
AIXOR/UIXOR/MLPNotebookContent.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
AIXOR/UIXOR/MLPNotebookContent.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
AIXOR/UIXOR/MLPNotebookContent.py
scando1993/MLPXORGate
0a1eefe32941f45be3c28b40d4f0637b23446fca
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import gi import os import sys gi.require_version('Gtk', '3.0') from gi.repository import Gtk from Constants import MAIN_CONTENT_FILE from ..MLXOR.XOR import XOR from AIXOR.Utils.FileHandler import FileHandler import threading from io import StringIO accepted_files = ("*.txt","*....
38.81982
105
0.668717
797df23bb108b8f25c0b7f57e8d15557856436cd
680
py
Python
docs/examples/compute/openstack/force_base_url.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
1,435
2015-01-07T05:32:51.000Z
2022-03-25T19:39:34.000Z
docs/examples/compute/openstack/force_base_url.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
1,158
2015-01-04T18:08:42.000Z
2022-03-24T14:34:57.000Z
docs/examples/compute/openstack/force_base_url.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
832
2015-01-05T09:20:21.000Z
2022-03-24T19:22:19.000Z
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver import libcloud.security # This assumes you don't have SSL set up. # Note: Code like this poses a security risk (MITM attack) and # that's the reason why you should never use it for anything else # besides testing. You have ...
40
74
0.727941
797df273fcbefc18fb37f255cbf8c4f49d48b1dc
22,907
py
Python
geotrek/tourism/models.py
mviadere-openig/Geotrek-admin
7f2343db50e97bb407e66dc499ab3684e1629661
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
mviadere-openig/Geotrek-admin
7f2343db50e97bb407e66dc499ab3684e1629661
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
mviadere-openig/Geotrek-admin
7f2343db50e97bb407e66dc499ab3684e1629661
[ "BSD-2-Clause" ]
null
null
null
import os import re import logging from django.conf import settings from django.contrib.gis.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.formats import date_format from colorfield.fields import ColorField from easy_thumbnails.alias import aliases from easy_thumbnails.exce...
43.54943
170
0.654036
797df49ac66347c942bcce02f2e1915f5c42d32e
1,852
py
Python
data/data_loader_test.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
data/data_loader_test.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
data/data_loader_test.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
import sys sys.path.append('./') import params dataset_path = params.dataset_path import os from PIL import Image # import matplotlib.image as mpimg import numpy as np import cv2 from scipy.misc import imresize,imread # ---------------------------------------- def get_reshaped(im): if(len(im.shape)==3): im_new = n...
24.051948
134
0.646868
797df58f1eda7546553c4a3ea57c70001038822b
5,479
py
Python
rl_server/server/tcp_client_server.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
9
2019-03-11T11:02:12.000Z
2022-03-10T12:53:25.000Z
rl_server/server/tcp_client_server.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
1
2021-01-06T20:18:33.000Z
2021-01-06T20:19:53.000Z
rl_server/server/tcp_client_server.py
parilo/tars-rl
17595905a0d1bdc90fe3d8f793acb60de96ea897
[ "MIT" ]
3
2019-01-19T03:32:26.000Z
2020-11-29T18:15:57.000Z
# Copyright (c) 2017 Computer Vision Center (CVC) # at the Universitat Autonoma de # Barcelona (UAB), and the INTEL Visual Computing Lab. # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """Basic TCP client and server""" import logging import socke...
34.459119
94
0.586968
797df5c36043b4ce911b9af073649962cd872501
8,710
py
Python
tests/integration_test.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
3
2021-05-22T11:14:10.000Z
2022-02-18T00:32:10.000Z
tests/integration_test.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
1
2021-06-20T07:18:58.000Z
2021-09-19T12:24:03.000Z
tests/integration_test.py
3Peso/mosk
24eccf2f2898f2508f32b52f55de30815475cddb
[ "CC0-1.0" ]
1
2021-06-09T07:43:03.000Z
2021-06-09T07:43:03.000Z
import os import os.path import glob import logging import platform import shutil import unittest from unittest import TestCase from artefact.network.system import TimeFromNTPServer class TestMoskIntegrationTest(TestCase): _specific_error_messages = { "TemperatureFromOpenWeatherDotCom - API Key not set":...
41.674641
120
0.619633
797df6bbb8b58c635da0b5303b1f4340a6e3a7dc
13,445
py
Python
test/functional/rpc_decodescript.py
heidi-dang/ocide-sample
584f5c57bc8d7f5193a075b7605a6955b6c752b8
[ "MIT" ]
1
2020-06-28T07:20:53.000Z
2020-06-28T07:20:53.000Z
test/functional/rpc_decodescript.py
heidi-dang/ocide-sample
584f5c57bc8d7f5193a075b7605a6955b6c752b8
[ "MIT" ]
null
null
null
test/functional/rpc_decodescript.py
heidi-dang/ocide-sample
584f5c57bc8d7f5193a075b7605a6955b6c752b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.test_framework import OCIDE...
74.694444
761
0.775084
797df7772bc09b058ac1da2548d90cf691cbca7d
6,179
py
Python
falmer/search/utils.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
2
2017-04-27T19:35:59.000Z
2017-06-13T16:19:33.000Z
falmer/search/utils.py
sussexstudent/falmer
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
975
2017-04-13T11:31:07.000Z
2022-02-10T07:46:18.000Z
falmer/search/utils.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
3
2018-05-09T06:42:25.000Z
2020-12-10T18:29:30.000Z
import uuid from collections import namedtuple import requests import bs4 import arrow from django.db.models import Q from django.utils import timezone from fuzzywuzzy import process from falmer.content.models.core import Page from wagtail.search.backends import get_search_backend from falmer.events.models import Eve...
32.867021
161
0.642013