hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
e7282d517f520af2d0d52900f706afdb00f27340
1,459
py
Python
code/7T/con2png.py
chfc-cmi/cmr-seg-tl
0a2293a6cfec12e0e13c51ca87c9bb4648a0e880
[ "MIT" ]
1
2021-05-27T20:58:51.000Z
2021-05-27T20:58:51.000Z
code/7T/con2png.py
chfc-cmi/cmr-seg-tl
0a2293a6cfec12e0e13c51ca87c9bb4648a0e880
[ "MIT" ]
null
null
null
code/7T/con2png.py
chfc-cmi/cmr-seg-tl
0a2293a6cfec12e0e13c51ca87c9bb4648a0e880
[ "MIT" ]
null
null
null
import os import pandas as pd import matplotlib.pyplot as plt from PIL import Image, ImageDraw import numpy as np from tqdm import tqdm volunteers = pd.read_csv("resolution.tsv",sep="\t",index_col="id") os.makedirs('../masks', exist_ok=True) Image.new('I', (472,512), 0).save('../masks/empty_472x512.png') Image.new('I...
44.212121
108
0.612063
62fed9b3f099834b943432bfb0a7706679d4eaa9
15,555
py
Python
DSFDv2_r18/operations.py
MinliangLin/lightDSFD
5f04ab89ac08eaf69d16c96f6c9e237701f80281
[ "MIT" ]
87
2019-11-15T13:09:22.000Z
2022-03-02T14:44:56.000Z
DSFDv2_r18/operations.py
MinliangLin/lightDSFD
5f04ab89ac08eaf69d16c96f6c9e237701f80281
[ "MIT" ]
6
2020-01-16T06:49:09.000Z
2021-06-06T14:16:11.000Z
DSFDv2_r18/operations.py
MinliangLin/lightDSFD
5f04ab89ac08eaf69d16c96f6c9e237701f80281
[ "MIT" ]
31
2019-11-18T07:55:46.000Z
2022-01-31T15:53:07.000Z
import torch import torch.nn as nn import torch.nn.functional as F from dataset.config import widerface_640 as cfg # from layers.DCNv2 import DCN RELU_FIRST = True OPS = { "none": lambda C, stride, affine: Zero(stride), "avg_pool_3x3": lambda C, stride, affine: nn.AvgPool2d(3, stride=stride, padding=1, count...
42.154472
133
0.555963
da6929de8c67d458d4310b9d67374c32b719175b
2,753
py
Python
flask/app/views.py
nokiam9/forester
117dc5c60f5cba633f0f760c488775f30510149c
[ "MIT" ]
1
2020-11-22T16:17:09.000Z
2020-11-22T16:17:09.000Z
flask/app/views.py
nokiam9/forester
117dc5c60f5cba633f0f760c488775f30510149c
[ "MIT" ]
2
2019-10-20T17:22:10.000Z
2022-03-02T14:56:35.000Z
flask/app/views.py
nokiam9/forester
117dc5c60f5cba633f0f760c488775f30510149c
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- from flask import request, render_template, abort from mongoengine.errors import NotUniqueError from models import BidNotice import json, datetime NOTICE_TYPE_CONFIG = { '0': '全部招标公告', '1': '单一来源采购公告', '2': '采购公告', '7': '中标结果公示', '3': '资格预审公告', '8': '供应商信息收集', '...
30.588889
106
0.601526
4e4a74e2ad0642d6c581d3cc9a7d55d2e374924b
5,765
py
Python
coders/extended_grid.py
susannahsoon/oldperth
a09ea03e8b0f96ffe235755a1120569a61a0dd79
[ "Apache-2.0" ]
302
2015-03-19T20:40:47.000Z
2022-03-27T23:31:21.000Z
coders/extended_grid.py
gegilligan/oldnyc
a09ea03e8b0f96ffe235755a1120569a61a0dd79
[ "Apache-2.0" ]
88
2015-02-23T18:29:23.000Z
2020-08-23T18:32:18.000Z
coders/extended_grid.py
gegilligan/oldnyc
a09ea03e8b0f96ffe235755a1120569a61a0dd79
[ "Apache-2.0" ]
186
2015-02-12T11:16:39.000Z
2022-02-12T16:21:08.000Z
#!/usr/bin/python '''Geocode intersections by extending the existing NYC grid. This lets us cover intersections which no longer exist, but may have in the past, e.g. 15th Street and Avenue A 20th Street and 4th Avenue This requires grid/intersections.json, which is generated by grid/extrapolate.py. ''' import j...
28.399015
96
0.581266
7293f7ede2821fe189a4b94f501aa6829d340e3b
5,034
py
Python
evohomeclient2/__init__.py
andrew-blake/evohome-client
5ca24cccad2a49223222880bc059ab0396efd7f0
[ "Apache-2.0" ]
null
null
null
evohomeclient2/__init__.py
andrew-blake/evohome-client
5ca24cccad2a49223222880bc059ab0396efd7f0
[ "Apache-2.0" ]
null
null
null
evohomeclient2/__init__.py
andrew-blake/evohome-client
5ca24cccad2a49223222880bc059ab0396efd7f0
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import requests import json import codecs from .location import Location from .base import EvohomeBase class EvohomeClient(EvohomeBase): def __init__(self, username, password, debug=False): super(EvohomeClient, self).__init__(debug) self.username = username ...
38.427481
220
0.665276
c8eae13c99af7e9a4258761ea47b53799c651dcf
875
py
Python
vpo/__init__.py
xgid/vpo
5d13a28d36d87cad55dd08b82a47b706b8a3b8aa
[ "MIT" ]
null
null
null
vpo/__init__.py
xgid/vpo
5d13a28d36d87cad55dd08b82a47b706b8a3b8aa
[ "MIT" ]
null
null
null
vpo/__init__.py
xgid/vpo
5d13a28d36d87cad55dd08b82a47b706b8a3b8aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ vpo ~~~~~~~~~~~~~~~~~~~ Prueba de paquete Python con cookiecutter plantilla pyvanguard :copyright: (c) 2015 by xgid :licence: MIT, see LICENCE for more details """ from __future__ import absolute_import, unicode_literals import logging # Generate your own AsciiArt at: # patorjk.com/softwa...
24.305556
78
0.668571
95e23fe83346d0f11155f62a0eb29f11889f6408
63
py
Python
src/transformers/additions/__init__.py
ashim95/wordsalad
77dc1cbc77d50fa2546a0ef6eee22b983c56fa61
[ "Apache-2.0" ]
13
2021-06-18T08:18:32.000Z
2022-02-18T22:17:11.000Z
src/transformers/additions/__init__.py
ashim95/wordsalad
77dc1cbc77d50fa2546a0ef6eee22b983c56fa61
[ "Apache-2.0" ]
1
2021-06-18T01:38:40.000Z
2021-06-18T01:38:40.000Z
src/transformers/additions/__init__.py
ashim95/wordsalad
77dc1cbc77d50fa2546a0ef6eee22b983c56fa61
[ "Apache-2.0" ]
4
2021-06-18T06:22:29.000Z
2022-03-25T22:37:25.000Z
from .additional_utils import replace_tokens, freeze_full_bert
31.5
62
0.888889
55b446d88e67ca14e2099fbad0ac6f9fb7b277a7
568
py
Python
tests/developer_tools/designer/components/test_title_component.py
nickderobertis/awesome-panel-extensions
07a4898b5539b9b6f2f55c5fedfda4a7b0b240e9
[ "CC-BY-4.0" ]
3
2020-07-16T07:28:45.000Z
2020-07-17T12:53:56.000Z
tests/developer_tools/designer/components/test_title_component.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
tests/developer_tools/designer/components/test_title_component.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
# pylint: disable=redefined-outer-name,protected-access # pylint: disable=missing-function-docstring,missing-module-docstring,missing-class-docstring import pytest from awesome_panel_extensions.developer_tools.designer.components import TitleComponent @pytest.fixture def title_component(): return TitleComponent(...
31.555556
93
0.820423
3690133cec5f1c6906f91745189f33d6093c3457
1,953
py
Python
helpers/combine_docfiles.py
zachberger/terraform-google-event-function
b2a4306c7c774aa287b0f5166ae8b82b544f0041
[ "Apache-2.0" ]
null
null
null
helpers/combine_docfiles.py
zachberger/terraform-google-event-function
b2a4306c7c774aa287b0f5166ae8b82b544f0041
[ "Apache-2.0" ]
null
null
null
helpers/combine_docfiles.py
zachberger/terraform-google-event-function
b2a4306c7c774aa287b0f5166ae8b82b544f0041
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 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 o...
32.55
122
0.72299
0837df2bc943bec22411b08401a10f2d9460c418
2,696
py
Python
samples/result_visualisation/plot_precision_recall_curve.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
samples/result_visualisation/plot_precision_recall_curve.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
samples/result_visualisation/plot_precision_recall_curve.py
reithmeier/Mask_RCNN
4e7d93adf8c244dc541c7fcc959d5e994c8dd9b1
[ "MIT" ]
null
null
null
# ********************************************************************************************************************** # # brief: simple script to plot the optimizer runs # # author: Lukas Reithmeier # date: 29.09.2020 # # **************************************************************************************...
39.072464
120
0.655415
4ef2e1d75a340f7e464bc74538f9aa9342dbac32
62,690
py
Python
ibm_watson/personality_insights_v3.py
johann-petrak/python-sdk
e8a2f1883822f0ad2d655d31a595dbd93f5c81c9
[ "Apache-2.0" ]
1,579
2015-10-08T14:02:17.000Z
2022-02-28T10:49:21.000Z
ibm_watson/personality_insights_v3.py
johann-petrak/python-sdk
e8a2f1883822f0ad2d655d31a595dbd93f5c81c9
[ "Apache-2.0" ]
749
2015-10-08T20:00:24.000Z
2022-03-21T21:33:17.000Z
ibm_watson/personality_insights_v3.py
johann-petrak/python-sdk
e8a2f1883822f0ad2d655d31a595dbd93f5c81c9
[ "Apache-2.0" ]
1,006
2015-10-24T06:30:58.000Z
2022-03-23T07:10:04.000Z
# coding: utf-8 # (C) Copyright IBM Corp. 2016, 2021. # # 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 la...
46.679077
217
0.631807
a9c18fc04e233796d2e1f70acc0bdfa46104c855
11,050
py
Python
kinow_client/models/blog_page.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
1
2017-05-03T12:48:22.000Z
2017-05-03T12:48:22.000Z
kinow_client/models/blog_page.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
kinow_client/models/blog_page.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 2.0.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class BlogPage(object): """ NOTE: This class is auto gen...
24.610245
274
0.556018
34b1f67b2cf638441dd771fcfc95dce8f62f6b9e
1,122
py
Python
src/injecta/config/ImportDefinitionResolver.py
DataSentics/injecta
090eeac6c76c43d40be71df678222a07b0a3c783
[ "MIT" ]
3
2021-09-27T12:55:00.000Z
2022-01-31T19:13:23.000Z
src/injecta/config/ImportDefinitionResolver.py
DataSentics/injecta
090eeac6c76c43d40be71df678222a07b0a3c783
[ "MIT" ]
null
null
null
src/injecta/config/ImportDefinitionResolver.py
DataSentics/injecta
090eeac6c76c43d40be71df678222a07b0a3c783
[ "MIT" ]
1
2021-03-04T09:12:05.000Z
2021-03-04T09:12:05.000Z
from pathlib import Path from injecta.package.real_resource_path_resolver import resolve_real_resource_path class ImportDefinitionResolver: def resolve(self, import_definition, base_dir: Path) -> set: if isinstance(import_definition, str): if import_definition[0:1] == "@": retu...
43.153846
123
0.678253
2905dba6ac46cf8cf9e98748926e71eaae13cffb
30,171
py
Python
tests/integration/test_google_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
tests/integration/test_google_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
tests/integration/test_google_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
from pytest import fixture from tests.integration.utilities.utilities import get_io_dir_paths, create_dir, remove_dir, run_google_searcher, assert_report_file_content_equals test_suite = 'google_page' test_cases = ['no_result', 'no_result_twice', 'single_result', 'single_res...
46.345622
146
0.555732
7af881feb31cd701b3745c9fdb2f521fb6e438e9
5,663
py
Python
src/olympia/legacy_api/utils.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
1
2020-04-07T07:21:25.000Z
2020-04-07T07:21:25.000Z
src/olympia/legacy_api/utils.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
null
null
null
src/olympia/legacy_api/utils.py
Rob--W/addons-server
cc104705e17ddeeb57254403ed292acb904a9a41
[ "BSD-3-Clause" ]
2
2018-03-04T00:11:22.000Z
2019-12-14T09:45:55.000Z
import re from django.conf import settings from django.utils.html import strip_tags from olympia import amo from olympia.amo.helpers import absolutify from olympia.amo.urlresolvers import reverse from olympia.amo.utils import urlparams, epoch from olympia.tags.models import Tag from olympia.versions.compare import ve...
33.91018
78
0.616987
ce49f86e05134b930e7bd9fc0154f56602ec04be
152
py
Python
lab02/ejercicios/apps.py
AlexanderRod/TECSUP-DAE-2021-2
47b2cce717ff012c1b40394955388d8b2a8beb63
[ "MIT" ]
null
null
null
lab02/ejercicios/apps.py
AlexanderRod/TECSUP-DAE-2021-2
47b2cce717ff012c1b40394955388d8b2a8beb63
[ "MIT" ]
null
null
null
lab02/ejercicios/apps.py
AlexanderRod/TECSUP-DAE-2021-2
47b2cce717ff012c1b40394955388d8b2a8beb63
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EjerciciosConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ejercicios'
21.714286
56
0.769737
8d51f6d9f2c1e47db94f09d41aef877c93205498
1,541
py
Python
botcord/ext/commands.py
KEN-2000l/BotCord
5184a0fc5af03e31ff216469f5dec6c12490e918
[ "MIT" ]
null
null
null
botcord/ext/commands.py
KEN-2000l/BotCord
5184a0fc5af03e31ff216469f5dec6c12490e918
[ "MIT" ]
null
null
null
botcord/ext/commands.py
KEN-2000l/BotCord
5184a0fc5af03e31ff216469f5dec6c12490e918
[ "MIT" ]
null
null
null
import os from discord.ext.commands import Cog as _Cog from botcord.configs import YAML, recursive_update # noinspection PyAttributeOutsideInit class Cog(_Cog): def config_init(self, file, path='configs.yml'): """PASS THE __file__ VARIABLE IN AS AN ARGUMENT FROM THE EXTENSION FILE, SO THE CONFIG...
33.5
122
0.625568
e22ad34aeeea2777d6ccbf13008e44ca5ec9b456
6,805
py
Python
howdy/tv/cli/get_tv_batch.py
tanimislam/plexstuff
811dd504e8464df1270a27084ef465c15299b00a
[ "BSD-2-Clause" ]
9
2019-11-10T16:41:24.000Z
2020-06-17T12:35:42.000Z
howdy/tv/cli/get_tv_batch.py
tanimislam/plexstuff
811dd504e8464df1270a27084ef465c15299b00a
[ "BSD-2-Clause" ]
2
2020-06-27T15:52:22.000Z
2020-07-29T20:36:07.000Z
howdy/tv/cli/get_tv_batch.py
tanimislam/plexstuff
811dd504e8464df1270a27084ef465c15299b00a
[ "BSD-2-Clause" ]
2
2019-10-28T10:03:06.000Z
2020-05-22T18:32:40.000Z
import sys, signal from howdy import signal_handler signal.signal( signal.SIGINT, signal_handler ) import os, numpy, glob, time, datetime import multiprocessing, logging from argparse import ArgumentParser # from howdy.core import core from howdy.tv import tv, get_token def finish_statement( step ): return '%d, fi...
51.165414
194
0.591036
fa03e88b928fbfa2e527ce8113fab56d9f1394cb
367
py
Python
30 days of code/Day 25 Running Time and Complexity.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
76
2018-06-28T04:29:14.000Z
2022-03-21T01:57:27.000Z
30 days of code/Day 25 Running Time and Complexity.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
31
2018-10-01T09:12:05.000Z
2022-03-08T23:39:01.000Z
30 days of code/Day 25 Running Time and Complexity.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
44
2018-07-09T11:31:20.000Z
2022-01-12T19:21:20.000Z
import math def check_prime(num): if num==1: return "Not prime" elif num==2: return "Prime" else: for i in range(2,int(math.sqrt(num))+1): if num%i==0: return "Not prime" return "Prime" t=int(input()) for i in range(t): n=int(inpu...
22.9375
49
0.479564
c9c0a4de60a46831f2eb6ccaf567a83e40c70589
6,645
py
Python
pandas/tests/extension/test_integer.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/extension/test_integer.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/extension/test_integer.py
IamJasonBian/pandas
21024d5a8e05f611d0fef5ddf884ffa237643772
[ "BSD-3-Clause" ]
null
null
null
""" This file contains a minimal set of tests for compliance with the extension array interface test suite, and should contain no other tests. The test suite for the full functionality of the array is located in `pandas/tests/arrays/`. The tests in this file are inherited from the BaseExtensionTests, and only minimal ...
26.474104
82
0.660346
a11e4e122c090694f9b5ac44863851e5c16510d7
17
py
Python
cosivina/options.py
cosivina/cosivina_python
0fa88a012f9c48774487fe4947ef36f398b21f49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
cosivina/options.py
cosivina/cosivina_python
0fa88a012f9c48774487fe4947ef36f398b21f49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
cosivina/options.py
cosivina/cosivina_python
0fa88a012f9c48774487fe4947ef36f398b21f49
[ "BSD-2-Clause-FreeBSD" ]
1
2022-01-13T00:35:50.000Z
2022-01-13T00:35:50.000Z
useNumba = False
8.5
16
0.764706
17637d0e548fca0da887278a378ec38947fe7563
16,359
py
Python
packages/w3af/w3af/core/data/fuzzer/tests/test_fuzzer.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/data/fuzzer/tests/test_fuzzer.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/data/fuzzer/tests/test_fuzzer.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_fuzzer.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope that...
41
82
0.63274
3a7ef2b98e8a4b8b411391f30c5d3a22364fd460
1,569
py
Python
test/test_coins_forwarding_automations_limit_reached.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
test/test_coins_forwarding_automations_limit_reached.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
test/test_coins_forwarding_automations_limit_reached.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
40.230769
484
0.793499
08843696e00d64f211f18db087d90b1b3a29c9de
3,808
py
Python
opensilexClientToolsPython/models/infrastructure_facility_named_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
null
null
null
opensilexClientToolsPython/models/infrastructure_facility_named_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
7
2021-05-25T14:06:04.000Z
2021-11-05T15:42:14.000Z
opensilexClientToolsPython/models/infrastructure_facility_named_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ OpenSilex API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: INSTANCE-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F4...
26.816901
119
0.565651
b61640f0828ba362065d84fcdf7e1967c7d99071
19,524
py
Python
model.py
enijkamp/glow
b12a2768fdb4bbe5419d40c81f3b6f219def2057
[ "MIT" ]
null
null
null
model.py
enijkamp/glow
b12a2768fdb4bbe5419d40c81f3b6f219def2057
[ "MIT" ]
null
null
null
model.py
enijkamp/glow
b12a2768fdb4bbe5419d40c81f3b6f219def2057
[ "MIT" ]
null
null
null
import tensorflow as tf import tfops as Z import optim import numpy as np # import horovod.tensorflow as hvd from tensorflow.contrib.framework.python.ops import add_arg_scope ''' f_loss: function with as input the (x,y,reuse=False), and as output a list/tuple whose first element is the loss. ''' def abstract_model...
33.374359
113
0.522997
76c012b75bfb8de221a3fa27d87c1fb47c5dbefd
8,233
py
Python
python/federatedml/statistic/intersect/base_intersect.py
jat001/FATE
b402362fb82869651ba6122f4ec1cf5499a644da
[ "Apache-2.0" ]
null
null
null
python/federatedml/statistic/intersect/base_intersect.py
jat001/FATE
b402362fb82869651ba6122f4ec1cf5499a644da
[ "Apache-2.0" ]
null
null
null
python/federatedml/statistic/intersect/base_intersect.py
jat001/FATE
b402362fb82869651ba6122f4ec1cf5499a644da
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.487069
125
0.672052
45d54b512b40eda5adccfcc4abb1b118168ab4bd
2,211
py
Python
salt/modules/tuned.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
salt/modules/tuned.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/modules/tuned.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' Interface to Red Hat tuned-adm module :maintainer: Syed Ali <alicsyed@gmail.com> :maturity: new :depends: tuned-adm :platform: Linux ''' # Import Python libs from __future__ import absolute_import import re # Import Salt libs import salt.utils __func_alias__ = { 'l...
20.1
109
0.604251
74f4dfcb81f48122d44b0cc2dba14b0320b2fb51
1,776
py
Python
polling_stations/apps/data_collection/management/commands/import_waltham_forest.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_waltham_forest.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_waltham_forest.py
mtravis/UK-Polling-Stations
26e0331dc29253dc436a0462ffaa01e974c5dc52
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E09000031" addresses_name = ( "local.2018-05-03/Version 2/Democracy_Club__03May2018 (1) Waltham Forest.tsv" ...
30.101695
85
0.609234
0e9e5e8e5e012bc5085c5275a4e98859392c1d69
6,000
py
Python
homeassistant/components/solarlog/const.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
homeassistant/components/solarlog/const.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
87
2020-07-15T13:43:35.000Z
2022-03-23T07:43:10.000Z
homeassistant/components/solarlog/const.py
marecabo/home-assistant
e33774a61e7fcc88aff752dfa4618dd26a746872
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Constants for the Solar-Log integration.""" from __future__ import annotations from dataclasses import dataclass from homeassistant.components.sensor import ( STATE_CLASS_MEASUREMENT, STATE_CLASS_TOTAL, SensorEntityDescription, ) from homeassistant.const import ( DEVICE_CLASS_ENERGY, DEVICE_CLA...
30.150754
63
0.6795
7b4f4996d71d7498a7fdc16f86a58d791179c046
15,095
py
Python
django/utils/http.py
Elorex/django
16454ac35f6a24a04b23a9340b0d62c33edbc1ea
[ "PSF-2.0", "BSD-3-Clause" ]
2
2019-05-08T02:16:55.000Z
2020-05-18T01:10:26.000Z
django/utils/http.py
Elorex/django
16454ac35f6a24a04b23a9340b0d62c33edbc1ea
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-01-31T11:30:21.000Z
2020-01-31T11:30:21.000Z
django/utils/http.py
Elorex/django
16454ac35f6a24a04b23a9340b0d62c33edbc1ea
[ "PSF-2.0", "BSD-3-Clause" ]
1
2019-01-20T13:03:39.000Z
2019-01-20T13:03:39.000Z
import base64 import calendar import datetime import re import unicodedata from binascii import Error as BinasciiError from email.utils import formatdate from urllib.parse import ( ParseResult, SplitResult, _coerce_args, _splitnetloc, _splitparams, quote, quote_plus, scheme_chars, unquote, unquote_plus, url...
34.46347
93
0.629149
fb2c5570b339118e422670b03ae9cb4dfd4d2ce2
402
py
Python
club/migrations/0030_auto_20200109_0957.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
2
2020-01-29T20:14:35.000Z
2020-02-15T23:01:42.000Z
club/migrations/0030_auto_20200109_0957.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
62
2019-11-26T17:47:58.000Z
2022-01-13T02:05:51.000Z
club/migrations/0030_auto_20200109_0957.py
DSC-RPI/dsc-portal
bf2d0c067d10dd199317ccc00863d85db0d07094
[ "MIT" ]
1
2020-01-23T17:12:38.000Z
2020-01-23T17:12:38.000Z
# Generated by Django 3.0.2 on 2020-01-09 14:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('club', '0029_question'), ] operations = [ migrations.AlterField( model_name='question', name='answer', f...
21.157895
77
0.597015
f0ad0ec962cd1054ee1d646d7ce325ce958a2817
4,192
py
Python
algorithms_without_visualisation/divide_and_conquer_convex_hull_algorithm.py
SzymczakJ/Geometric_algorithms_project
b1f5fd89c2a6d4ef281d092d350b45e0a069bdcb
[ "MIT" ]
null
null
null
algorithms_without_visualisation/divide_and_conquer_convex_hull_algorithm.py
SzymczakJ/Geometric_algorithms_project
b1f5fd89c2a6d4ef281d092d350b45e0a069bdcb
[ "MIT" ]
null
null
null
algorithms_without_visualisation/divide_and_conquer_convex_hull_algorithm.py
SzymczakJ/Geometric_algorithms_project
b1f5fd89c2a6d4ef281d092d350b45e0a069bdcb
[ "MIT" ]
1
2022-03-23T10:27:51.000Z
2022-03-23T10:27:51.000Z
from algorithms_without_visualisation.incremental_convex_hull_algorithm import incremental_convex_hull from additional_functions.additional_functions import * def merge_hulls(left_convex_hull, right_convex_hull, epsilon): right_n = len(right_convex_hull) left_n = len(left_convex_hull) rightmost_point = 0 ...
49.317647
102
0.684399
1422cd4f933fb4ec1103e001f370b1318c7fc00e
141
py
Python
qlib/contrib/meta/__init__.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
2
2021-06-12T20:48:26.000Z
2021-06-25T02:26:09.000Z
qlib/contrib/meta/__init__.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
1
2022-03-10T03:57:50.000Z
2022-03-10T03:57:50.000Z
qlib/contrib/meta/__init__.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
1
2022-02-22T11:57:15.000Z
2022-02-22T11:57:15.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from .data_selection import MetaTaskDS, MetaDatasetDS, MetaModelDS
28.2
66
0.808511
fe864f94506fb3b33381a3324f0c9b022e3efccf
345
py
Python
core/__init__.py
Forestjylee/scut_spider
8b37f4d714da0dd93451f22cabbc05acfd40b129
[ "MIT" ]
1
2019-04-20T03:39:14.000Z
2019-04-20T03:39:14.000Z
core/__init__.py
Forest75/scut_spider
8b37f4d714da0dd93451f22cabbc05acfd40b129
[ "MIT" ]
2
2021-03-31T19:12:04.000Z
2021-12-13T20:02:09.000Z
core/__init__.py
Forest75/scut_spider
8b37f4d714da0dd93451f22cabbc05acfd40b129
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @file: __init__.py.py @time: 2019/4/18 16:52 Created by ___ _ |_ | (_) | | _ _ _ __ _ _ _ | || | | || '_ \ | | | || | /\__/ /| |_| || | | || |_| || | \____/ \__,_||_| |_| \__, ||_| __/ | ...
23
31
0.249275
5be64a0ce8955951759e9610e8a9c2187dcffe79
45,604
py
Python
jenkins_jobs/modules/properties.py
koying-mrmc/jenkins-job-builder
2cec182a3f2622681111da7d16bc3d45e23bc054
[ "Apache-2.0" ]
null
null
null
jenkins_jobs/modules/properties.py
koying-mrmc/jenkins-job-builder
2cec182a3f2622681111da7d16bc3d45e23bc054
[ "Apache-2.0" ]
null
null
null
jenkins_jobs/modules/properties.py
koying-mrmc/jenkins-job-builder
2cec182a3f2622681111da7d16bc3d45e23bc054
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Hewlett-Packard Development Company, L.P. # # 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...
35.655981
97
0.664372
b71dacf8e651440e1d27f1d7df9d0e4cb3e98d0c
522
py
Python
tournaments/bfsComponentSize/bfsComponentSize.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
5
2020-02-06T09:51:22.000Z
2021-03-19T00:18:44.000Z
tournaments/bfsComponentSize/bfsComponentSize.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
null
null
null
tournaments/bfsComponentSize/bfsComponentSize.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
3
2019-09-27T13:06:21.000Z
2021-04-20T23:13:17.000Z
def bfsComponentSize(matrix): visited = [ False for i in range(len(matrix))] queue = [] componentSize = 0 visited[1] = True queue.append(1) while len(queue) > 0: currentVertex = queue.pop() visited[currentVertex] = True componentSize += 1 for nextVertex in range(...
29
77
0.60728
e2a81306a96bf5231d94fa6a46289aa2114f45c4
2,607
py
Python
mayaside/CharacterAdaptionPreious.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
mayaside/CharacterAdaptionPreious.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
mayaside/CharacterAdaptionPreious.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
#CharacterAdaptionPreious.py #Introdaction #An python C script that can #0.load a scene with the furniture # ->and the character #1.import a Character & import obj #2.move & rotate it to where you want #3.duplicate one Charactor and make it a white model #4.let the White Charactor do # ->what the Color Charac...
28.336957
78
0.740315
c8d53db37c614f3c6a8cba5aa09275650b08700e
12,116
py
Python
delphi/apps/rest_api/models.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
null
null
null
delphi/apps/rest_api/models.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
null
null
null
delphi/apps/rest_api/models.py
mwdchang/delphi
c6177f2d614118883eaaa7f5300f3e46f10ddc7e
[ "Apache-2.0" ]
1
2019-07-18T19:13:13.000Z
2019-07-18T19:13:13.000Z
import json from uuid import uuid4 from enum import Enum, unique from typing import Optional, List from dataclasses import dataclass, field, asdict from flask_sqlalchemy import SQLAlchemy from delphi.apps.rest_api import db from sqlalchemy import PickleType from sqlalchemy.inspection import inspect from sqlalchemy.ext ...
33.285714
132
0.685127
b6e0f29a1d3ce4088ab0cc3b03974a1afa83d557
80,222
py
Python
cellpack/mgl_tools/upy/ucsfchimera/chimeraHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
cellpack/mgl_tools/upy/ucsfchimera/chimeraHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
cellpack/mgl_tools/upy/ucsfchimera/chimeraHelper.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
""" Copyright (C) <2010> Autin L. TSRI This file git_upy/ucsfchimera/chimeraHelper.py is part of upy. upy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License,...
40.721827
147
0.519072
8f792e948b24ceb5a378af4d236018ea53586a80
877
py
Python
Scripts/rst2xetex.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
1
2019-04-23T21:50:08.000Z
2019-04-23T21:50:08.000Z
Scripts/rst2xetex.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
null
null
null
Scripts/rst2xetex.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
2
2019-02-14T08:13:33.000Z
2019-04-23T21:47:48.000Z
#!g:\python27\python.exe # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import locale locale.setlocale(locale.LC_ALL, '') excep...
31.321429
77
0.670468
01f0ae72905a0e7ab33ab0a7c00391e471f0cc24
1,611
py
Python
safeai/utils/distribution.py
HanbumKo/SafeAI
ad7e5d66abcfe82b0de260b606853bddb68e68ee
[ "MIT" ]
13
2018-11-02T12:10:01.000Z
2020-05-18T17:38:25.000Z
safeai/utils/distribution.py
HanbumKo/SafeAI
ad7e5d66abcfe82b0de260b606853bddb68e68ee
[ "MIT" ]
2
2018-11-15T06:16:06.000Z
2018-11-19T15:23:04.000Z
safeai/utils/distribution.py
HanbumKo/SafeAI
ad7e5d66abcfe82b0de260b606853bddb68e68ee
[ "MIT" ]
4
2018-11-23T05:59:43.000Z
2020-08-28T04:21:27.000Z
# Copyright (c) 2018 Episys Science, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
53.7
102
0.782744
0bf4ff856c601025337985af647f330321c4c72e
889
py
Python
008 Controle de tela/triangulo.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
008 Controle de tela/triangulo.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
4
2020-06-09T19:10:04.000Z
2020-06-17T18:23:47.000Z
008 Controle de tela/triangulo.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
# encoding: utf-8 # usando python 3 # Triângulo com iniciais - Faça um programa que lê valores de linha e coluna, # além das iniciais de um nome (até 3 caracteres) e desenha um triângulo ("bole" o desenho) # com um vértice na linha e coluna lidas e com as iniciais dentro. import os os.system('clear') linha = int(i...
30.655172
92
0.622047
1d113f6d8b42620d1d1375a9ab9f23de391627d3
2,981
py
Python
backend/logger/settings/base.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
null
null
null
backend/logger/settings/base.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
1
2016-10-31T11:17:13.000Z
2016-10-31T11:17:13.000Z
backend/logger/settings/base.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
null
null
null
""" Django settings for logger project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
29.81
85
0.705468
d3522c39e6e5a4b7109e944275d42224bf7ce7ec
19,370
py
Python
asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
1
2019-12-09T11:40:28.000Z
2019-12-09T11:40:28.000Z
asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
null
null
null
asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py
hzyi-google/google-cloud-python
aa3c3ca303b385a6b118204ce91fa803c1d001b9
[ "Apache-2.0" ]
1
2021-12-27T05:31:45.000Z
2021-12-27T05:31:45.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 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...
44.837963
163
0.630924
78778b057da7a3a6280e31daca547a104102c7c1
3,000
py
Python
libica/openapi/libgds/test/test_create_volume_response.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
libica/openapi/libgds/test/test_create_volume_response.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
4
2021-11-15T10:47:51.000Z
2022-02-22T04:43:20.000Z
libica/openapi/libgds/test/test_create_volume_response.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
# coding: utf-8 """ Genomic Data Store Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import im...
37.037037
155
0.569333
fcc90fa61a37d13e8ec9adbb16efc035cbae4713
496
py
Python
applications/FluidTransportApplication/FluidTransportApplication.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
2
2019-10-25T09:28:10.000Z
2019-11-21T12:51:46.000Z
applications/FluidTransportApplication/FluidTransportApplication.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
13
2019-10-07T12:06:51.000Z
2020-02-18T08:48:33.000Z
applications/FluidTransportApplication/FluidTransportApplication.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
null
null
null
# makes KratosMultiphysics backward compatible with python 2.6 and 2.7 from __future__ import print_function, absolute_import, division # Application dependent names and paths import KratosMultiphysics as KM from KratosFluidTransportApplication import * application = KratosFluidTransportApplication() application_name ...
45.090909
90
0.866935
6ddf651f2168fb6f3bc7d4498c1f43442b950ecf
333
py
Python
nlidbTranslator/api/adapters/IRNet/constants.py
DataManagementLab/univerSQL
1e37f089c1f1dfc8756c183db019a90e5a9a2c2c
[ "MIT" ]
null
null
null
nlidbTranslator/api/adapters/IRNet/constants.py
DataManagementLab/univerSQL
1e37f089c1f1dfc8756c183db019a90e5a9a2c2c
[ "MIT" ]
null
null
null
nlidbTranslator/api/adapters/IRNet/constants.py
DataManagementLab/univerSQL
1e37f089c1f1dfc8756c183db019a90e5a9a2c2c
[ "MIT" ]
null
null
null
import os from pathlib import Path from api.paths import TRANSLATORS_DIR CURRENT_DIR = os.path.dirname(__file__) #Paths IRNET_BASE_DIR = Path(TRANSLATORS_DIR) / "IRNet" PATH_TO_CONCEPTNET = str(Path(IRNET_BASE_DIR) / "./conceptNet/") PATH_TO_PRETRAINED_MODEL = Path(IRNET_BASE_DIR) / "saved_model" / "IRNet_pretraine...
19.588235
90
0.780781
c6b111132bb07cfb621f7069861877320d4b055e
1,499
py
Python
main.py
BurnySc2/strawberry-subscription
77f07de62187e1f7ac1273f18144f5183d3c294c
[ "MIT" ]
null
null
null
main.py
BurnySc2/strawberry-subscription
77f07de62187e1f7ac1273f18144f5183d3c294c
[ "MIT" ]
null
null
null
main.py
BurnySc2/strawberry-subscription
77f07de62187e1f7ac1273f18144f5183d3c294c
[ "MIT" ]
null
null
null
from typing import AsyncGenerator, Set import uvicorn from fastapi import FastAPI from loguru import logger import strawberry from strawberry.fastapi import GraphQLRouter from broadcaster import Broadcast, Subscriber, BroadcastEvent active_users: Set[str] = set() broadcast = Broadcast() @strawberry.type class Quer...
25.844828
79
0.679787
04946f555b0e3eaa7fdb8497fb6c5f29e5a7ad76
445
py
Python
aggregables/captures/matplotlib/timelines.py
nevesnunes/aggregables
8fb7ea1f97ceeb16c719312d0075294b19d098b3
[ "MIT" ]
null
null
null
aggregables/captures/matplotlib/timelines.py
nevesnunes/aggregables
8fb7ea1f97ceeb16c719312d0075294b19d098b3
[ "MIT" ]
null
null
null
aggregables/captures/matplotlib/timelines.py
nevesnunes/aggregables
8fb7ea1f97ceeb16c719312d0075294b19d098b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import matplotlib.pyplot as plt import numpy as np import sys if __name__ == "__main__": filename = sys.argv[1] data = np.genfromtxt(filename, delimiter=",", names=True) begin = data[data.dtype.names[0]] end = data[data.dtype.names[1]] event = ["{}".format(i) for i in range(...
27.8125
61
0.653933
9aba9d63556da7022eadedef3e6bfb84c7458932
34,431
py
Python
env/Lib/site-packages/sqlalchemy/orm/state.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
null
null
null
env/Lib/site-packages/sqlalchemy/orm/state.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
null
null
null
env/Lib/site-packages/sqlalchemy/orm/state.py
m4573rn3rd/flaskaiml
076c4064a52e8717a80fc5e79304e1c5d889116c
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
# orm/state.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Defines instrumentation of instances. This module is usually not directly ...
33.624023
80
0.589236
49001d6360760fe6592bbf956a28b9904e1940e9
690
py
Python
RegisterSchedules.py
timmo/gardeningPI
9a72660087c4cf8fb60ec50c74446416c5f1b53c
[ "Apache-2.0" ]
null
null
null
RegisterSchedules.py
timmo/gardeningPI
9a72660087c4cf8fb60ec50c74446416c5f1b53c
[ "Apache-2.0" ]
null
null
null
RegisterSchedules.py
timmo/gardeningPI
9a72660087c4cf8fb60ec50c74446416c5f1b53c
[ "Apache-2.0" ]
null
null
null
import schedule class RegisterSchedules(): @staticmethod def registerSchedules(schedules): for toBeScheduled in schedules: RegisterSchedules.registerSchedule(toBeScheduled) @staticmethod def registerSchedule(toBeScheduled): schedule.every( toBeScheduled.recurrenceInDays)....
38.333333
162
0.766667
fd09c2f5163bf6f8487898970da8ded984a0c3ea
6,317
py
Python
src/datadog_api_client/v2/model/incident_teams_response.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
32
2021-01-07T15:09:56.000Z
2022-01-30T05:49:23.000Z
src/datadog_api_client/v2/model/incident_teams_response.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
228
2020-09-03T14:03:54.000Z
2022-03-31T20:16:12.000Z
src/datadog_api_client/v2/model/incident_teams_response.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
12
2020-09-15T21:36:03.000Z
2022-03-31T17:13:17.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v2.model_utils import ( # noqa: F401 ApiTypeError, Mo...
41.559211
130
0.613107
b84cbbe1d09a0a44d5dc7db8be132b012e8065dd
5,323
py
Python
nova/api/openstack/compute/flavors.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
1
2018-12-28T06:47:39.000Z
2018-12-28T06:47:39.000Z
nova/api/openstack/compute/flavors.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
nova/api/openstack/compute/flavors.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2010 OpenStack Foundation # 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 requ...
39.139706
78
0.656585
8c2314679e3d80d5f013361816aff2da47c8dcea
3,009
py
Python
linorobot2_bringup/launch/bringup.launch.py
robofoundry/linorobot2
678fad08822da891842bbdafa024ad3aefb9ac00
[ "Apache-2.0" ]
null
null
null
linorobot2_bringup/launch/bringup.launch.py
robofoundry/linorobot2
678fad08822da891842bbdafa024ad3aefb9ac00
[ "Apache-2.0" ]
null
null
null
linorobot2_bringup/launch/bringup.launch.py
robofoundry/linorobot2
678fad08822da891842bbdafa024ad3aefb9ac00
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Juan Miguel Jimeno # # 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...
34.193182
92
0.674975
b3a7f1920715cb4f688467c72f8e6a2b5e2bff33
5,680
py
Python
tests/llvm/test_random.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/llvm/test_random.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/llvm/test_random.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import ctypes import numpy as np import pytest import random from psyneulink.core import llvm as pnlvm SEED = 0 @pytest.mark.llvm @pytest.mark.benchmark(group="Mersenne Twister integer PRNG") @pytest.mark.parametrize('mode', ['numpy', pytest.param('LLVM', marks=p...
40.571429
81
0.644366
73ac6776d0ffbaafa30acac519e1b4187bb867e1
8,340
py
Python
gamestonk_terminal/fundamental_analysis/fa_menu.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
gamestonk_terminal/fundamental_analysis/fa_menu.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
gamestonk_terminal/fundamental_analysis/fa_menu.py
sandsturm/GamestonkTerminal
1969ff3b251711099a448024ec71e5b4e50413f7
[ "MIT" ]
null
null
null
import argparse from gamestonk_terminal.fundamental_analysis import alpha_vantage_api as av_api from gamestonk_terminal.fundamental_analysis import business_insider_api as bi_api from gamestonk_terminal.fundamental_analysis import ( financial_modeling_prep_api as fmp_api, ) from gamestonk_terminal.fundamental_anal...
33.36
88
0.611391
2f5538556fa6d304a1620ae227e2e21616ef19d7
13,776
py
Python
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/reshape/tile.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/reshape/tile.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas-0.21.0.dev0+412.g062f6f118-py3.6-macosx-10.12.6-x86_64.egg/pandas/core/reshape/tile.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Quantilization functions and related stuff """ from pandas.core.dtypes.missing import isna from pandas.core.dtypes.common import ( is_integer, is_scalar, is_categorical_dtype, is_datetime64_dtype, is_timedelta64_dtype, _ensure_int64) import pandas.core.algorithms as algos import pandas.cor...
33.115385
79
0.60119
1562cbf064f2af3d5de088682077de2cab6dbdf7
3,197
py
Python
segment_text_line/data_conversion.py
hushukai/Chinese-ancient-book-recognition-HSK
de5b6474dc4346524d95b405223c721aae5b500b
[ "Apache-2.0" ]
2
2020-04-12T08:33:50.000Z
2020-07-03T09:15:56.000Z
segment_text_line/data_conversion.py
hushukai/Chinese-ancient-book-recognition-HSK
de5b6474dc4346524d95b405223c721aae5b500b
[ "Apache-2.0" ]
null
null
null
segment_text_line/data_conversion.py
hushukai/Chinese-ancient-book-recognition-HSK
de5b6474dc4346524d95b405223c721aae5b500b
[ "Apache-2.0" ]
4
2020-07-03T09:15:58.000Z
2020-07-17T09:24:08.000Z
# -*- encoding: utf-8 -*- # Author: hushukai import os from PIL import Image from segment_base.data_pipeline import get_image_and_split_pos from segment_base.data_pipeline import rotate_90_degrees from segment_base.visualize import draw_split_lines from util import check_or_makedirs from config import SEGMENT_TEXT_L...
44.402778
130
0.713794
50cfa6fec7275376c7d47d4732a442ba28baa5d4
906
py
Python
Sword.py
victorgscorreia/cgtrab2
9def410124f1a2b125a47b4716fe7714529cb292
[ "MIT" ]
null
null
null
Sword.py
victorgscorreia/cgtrab2
9def410124f1a2b125a47b4716fe7714529cb292
[ "MIT" ]
null
null
null
Sword.py
victorgscorreia/cgtrab2
9def410124f1a2b125a47b4716fe7714529cb292
[ "MIT" ]
null
null
null
from Base import * from Object import * ''' Esta funcao cria um objeto do tipo Sword e o retorna @PARAMETROS id_tex_livre - primeiro id de textura nao utilizado - passado como lista de tamanho 1 vertices_list - lista de coordenadas de vertices textures_coord_list - lista de coordenadas de textura norma...
39.391304
169
0.745033
52da9374b4fddbc28d9c09566fce4263a379d978
3,774
py
Python
tlopu/backprop.py
lightonai/transfer-learning-opu
15b6093cb6f69cd35b4d9af168c45055800b4567
[ "MIT" ]
26
2020-02-20T21:42:43.000Z
2022-01-11T03:38:05.000Z
tlopu/backprop.py
lightonai/transfer-learning-opu
15b6093cb6f69cd35b4d9af168c45055800b4567
[ "MIT" ]
4
2020-06-28T01:51:20.000Z
2022-03-12T00:16:19.000Z
tlopu/backprop.py
lightonai/transfer-learning-opu
15b6093cb6f69cd35b4d9af168c45055800b4567
[ "MIT" ]
3
2020-12-20T13:34:21.000Z
2021-05-04T09:42:29.000Z
from time import time import torch def train_model(model, train_loader, criterion, optimizer, device='cpu'): """ Trains the given model for one epoch on the given dataset. Parameters ---------- model: Pytorch model, neural net model. train_loader: torch Dataloader, contains t...
27.347826
82
0.627186
88e1dc8fe07a087aa16380c52491a1f840cad70b
8,253
py
Python
tests/shared/nlu/training_data/test_message.py
musa-atlihan/rasa
7b4d6bf783055da5afbe73aab104e2eb855a3ad9
[ "Apache-2.0" ]
null
null
null
tests/shared/nlu/training_data/test_message.py
musa-atlihan/rasa
7b4d6bf783055da5afbe73aab104e2eb855a3ad9
[ "Apache-2.0" ]
187
2020-02-25T16:07:06.000Z
2022-03-01T13:42:41.000Z
tests/shared/nlu/training_data/test_message.py
musa-atlihan/rasa
7b4d6bf783055da5afbe73aab104e2eb855a3ad9
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Text, List import pytest import numpy as np import scipy.sparse from rasa.shared.nlu.training_data.features import Features from rasa.shared.nlu.constants import ( TEXT, FEATURE_TYPE_SENTENCE, FEATURE_TYPE_SEQUENCE, ACTION_TEXT, ACTION_NAME, INTENT, RESPONSE, ...
28.65625
85
0.491458
561f9e890e2ae2751b23a30346efa749b390ec9c
807
py
Python
pyprob/distributions/gamma.py
FrancescoPinto/pyprob
5288264695fe27148286ff88ecead01b7ac475c6
[ "BSD-2-Clause" ]
null
null
null
pyprob/distributions/gamma.py
FrancescoPinto/pyprob
5288264695fe27148286ff88ecead01b7ac475c6
[ "BSD-2-Clause" ]
null
null
null
pyprob/distributions/gamma.py
FrancescoPinto/pyprob
5288264695fe27148286ff88ecead01b7ac475c6
[ "BSD-2-Clause" ]
null
null
null
import torch from . import Distribution from .. import util class Gamma(Distribution): def __init__(self, concentration, rate): concentration = util.to_tensor(concentration) rate = util.to_tensor(rate) super().__init__(name='Gamma', address_suffix='Gamma', torch_dist=torch.distributions.G...
31.038462
140
0.695167
ba85a0ee38b05189c94c980aa3ab81686d3e0bcc
14,355
py
Python
core/dbt/adapters/base/relation.py
jmcarp/dbt
46d36cd4123e3ee3cdb293e9555115905efbaf0d
[ "Apache-2.0" ]
null
null
null
core/dbt/adapters/base/relation.py
jmcarp/dbt
46d36cd4123e3ee3cdb293e9555115905efbaf0d
[ "Apache-2.0" ]
1
2021-02-01T17:57:50.000Z
2021-02-01T17:57:50.000Z
core/dbt/adapters/base/relation.py
jmcarp/dbt
46d36cd4123e3ee3cdb293e9555115905efbaf0d
[ "Apache-2.0" ]
1
2021-02-01T17:54:24.000Z
2021-02-01T17:54:24.000Z
from collections.abc import Hashable from dataclasses import dataclass from typing import ( Optional, TypeVar, Any, Type, Dict, Union, Iterator, Tuple, Set ) from dbt.contracts.graph.compiled import CompiledNode from dbt.contracts.graph.parsed import ParsedSourceDefinition, ParsedNode from dbt.contracts.relation i...
31.480263
79
0.61233
0f85bedf4ed309613e84863ae31b1adfeffec596
3,226
py
Python
modules/swar/doc/sort.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/swar/doc/sort.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/swar/doc/sort.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '1', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'T', }, 'special' : ['swar'], 'simd_types' : ['gt_16_'], 'type_defs' : [], '...
40.325
96
0.322381
b3612692d1213150b0fcf639a1e7004dfe0aa0a4
252
py
Python
examples/confluence/confluence_page_create.py
Kudesnick/atlassian-python-api
0ff7cf4ef39d8374e948d8c7ad467944159a3b8b
[ "Apache-2.0" ]
779
2018-10-05T02:45:01.000Z
2022-03-31T22:30:42.000Z
examples/confluence/confluence_page_create.py
Kudesnick/atlassian-python-api
0ff7cf4ef39d8374e948d8c7ad467944159a3b8b
[ "Apache-2.0" ]
659
2018-10-05T09:58:15.000Z
2022-03-29T13:20:00.000Z
examples/confluence/confluence_page_create.py
Kudesnick/atlassian-python-api
0ff7cf4ef39d8374e948d8c7ad467944159a3b8b
[ "Apache-2.0" ]
502
2018-10-08T16:08:32.000Z
2022-03-31T08:24:13.000Z
# coding=utf-8 from atlassian import Confluence confluence = Confluence(url="http://localhost:8090", username="admin", password="admin") status = confluence.create_page(space="DEMO", title="This is the title", body="This is the body") print(status)
28
97
0.746032
c32aac15632033565cf768ddd359e0aebdf174db
6,023
py
Python
tutorials/exchange-tutorial-python/exchange_tutorial.py
TP-Lab/enumivo
76d81a36d2db8cea93fb54cd95a6ec5f6c407f97
[ "MIT" ]
8
2018-08-02T02:31:19.000Z
2018-08-16T03:31:02.000Z
tutorials/exchange-tutorial-python/exchange_tutorial.py
TP-Lab/enumivo
76d81a36d2db8cea93fb54cd95a6ec5f6c407f97
[ "MIT" ]
null
null
null
tutorials/exchange-tutorial-python/exchange_tutorial.py
TP-Lab/enumivo
76d81a36d2db8cea93fb54cd95a6ec5f6c407f97
[ "MIT" ]
null
null
null
import json import pprint import os import sys import subprocess import time from subprocess import PIPE # This key would be different for each user. KEY_TO_INTERNAL_ACCOUNT='12345' DEMO_USER='scott' def main(): try: command = sys.argv[1] if command == 'monitor': setup() w...
32.037234
118
0.637058
6499e3ce8411400014e23e45b84e1233a901dc58
1,789
py
Python
prepro/prepro_det.py
Canadalynx/NeuralBabyTalk
e56346c44bfe373c0550dbe506b77218f481a9e8
[ "MIT" ]
null
null
null
prepro/prepro_det.py
Canadalynx/NeuralBabyTalk
e56346c44bfe373c0550dbe506b77218f481a9e8
[ "MIT" ]
null
null
null
prepro/prepro_det.py
Canadalynx/NeuralBabyTalk
e56346c44bfe373c0550dbe506b77218f481a9e8
[ "MIT" ]
null
null
null
import json import pdb import numpy as np import h5py dataset = 'coco' if dataset == 'coco': det_train = json.load(open('data/coco_noc/coco_detection_noc_train.json')) det_val = json.load(open('data/coco_noc/coco_detection_noc_val.json')) info = json.load(open('data/coco_noc/dic_coco.json')) det = []...
28.396825
78
0.658468
fff2056c8775165433c9e6e61d1f58bb71a63667
619
py
Python
travis_ci/settings.py
ExCiteS/geokey-cartodb
c6a40a18a08abd1ac547c0f814f74a5a139fb82b
[ "MIT" ]
null
null
null
travis_ci/settings.py
ExCiteS/geokey-cartodb
c6a40a18a08abd1ac547c0f814f74a5a139fb82b
[ "MIT" ]
null
null
null
travis_ci/settings.py
ExCiteS/geokey-cartodb
c6a40a18a08abd1ac547c0f814f74a5a139fb82b
[ "MIT" ]
null
null
null
"""GeoKey settings.""" from geokey.core.settings.dev import * DEFAULT_FROM_EMAIL = 'no-reply@travis-ci.org' ACCOUNT_EMAIL_VERIFICATION = 'optional' SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx' DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'geokey', '...
19.34375
74
0.630048
dc85b59bb741084026202b4f34fd88c678d3a27d
14,242
py
Python
foundation/organisation/migrations/0019_auto__del_field_networkgroupmembership_role.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/organisation/migrations/0019_auto__del_field_networkgroupmembership_role.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
foundation/organisation/migrations/0019_auto__del_field_networkgroupmembership_role.py
Mindelirium/foundation
2d07e430915d696ca7376afea633692119c4d30e
[ "MIT" ]
null
null
null
# -*- 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): # Deleting field 'NetworkGroupMembership.role' db.delete_column(u'organis...
80.011236
200
0.567336
7cc3c50666c10b40ad43dacfd74c8c5a0bac0523
8,214
py
Python
pyisis/engine.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/engine.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
null
null
null
pyisis/engine.py
rodsenra/pyisis
f5815fd096a463902893f87f309f8117b5705621
[ "MIT" ]
2
2019-11-08T20:51:54.000Z
2021-08-17T23:49:48.000Z
# -*- coding: utf-8 -*- """ Routines used to control and manage ISIS-Cell activity """ __updated__ = "2007-12-10" __created__ = "2007-12-10" __author__ = "Rodrigo Senra <rsenra@acm.org>" import sys from traceback import print_exc try: from cStringIo import StringIO except: from StringIO import StringIO impo...
33.255061
92
0.619065
60c1e9eadc749f36b3cc03115e9ab33dbe42e4b1
652
py
Python
Working_with_Excel_Update_information.py
maainul/Paython
c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9
[ "DOC" ]
null
null
null
Working_with_Excel_Update_information.py
maainul/Paython
c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9
[ "DOC" ]
null
null
null
Working_with_Excel_Update_information.py
maainul/Paython
c72d7fff3b00bc4f379ca6f9dbef0678f01b55f9
[ "DOC" ]
null
null
null
#! usr/bin/env python3 # Chapter 12 Project Updating a Spreadsheet # updateProduce.py - Corrects costs in produce sales spreadsheet. import openpyxl,os os.chdir('/home/mainul/Desktop/copy_files/') print(os.getcwd()) wb = openpyxl.load_workbook('produceSales.xlsx') sheet = wb.get_sheet_by_name('Sheet') PRICE_UPDATES...
28.347826
75
0.699387
6c1d8abb1c81d50e7c59d8afc23afd42a2dbe546
1,758
py
Python
chapters/appendix_c/tfx_template_example/models/features.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
465
2020-05-18T08:23:42.000Z
2022-03-28T14:51:43.000Z
chapters/appendix_c/tfx_template_example/models/features.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
49
2020-06-25T12:35:32.000Z
2021-11-23T22:47:30.000Z
chapters/appendix_c/tfx_template_example/models/features.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
163
2020-05-19T07:20:13.000Z
2022-03-24T06:05:41.000Z
# Lint as: python2, python3 # Copyright 2020 Google LLC. 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...
28.819672
74
0.737201
54e44836e6f3eadc3d11c813292aeec040cfe482
1,419
py
Python
CodeWars/Python/Terminal Game #2.py
nirgn975/CodeWars
657924b16ffb210e620416bcfbdd2f6debc5e41b
[ "BSD-3-Clause" ]
28
2017-01-13T11:00:21.000Z
2020-08-03T11:51:47.000Z
CodeWars/Python/Terminal Game #2.py
nirgn975/CodeWars
657924b16ffb210e620416bcfbdd2f6debc5e41b
[ "BSD-3-Clause" ]
3
2017-08-02T07:06:04.000Z
2020-04-04T21:12:41.000Z
CodeWars/Python/Terminal Game #2.py
nirgn975/CodeWars
657924b16ffb210e620416bcfbdd2f6debc5e41b
[ "BSD-3-Clause" ]
15
2017-08-02T16:47:00.000Z
2020-07-31T17:26:04.000Z
""" Create the hero move method Create a move method for your hero to move through the level. Adjust the hero's position by changing the position attribute. The level is a grid with the following values. 00 01 02 03 04 10 11 12 13 14 20 21 22 23 24 30 31 32 33 34 40 41 42 43 44 The dir argument will be a string ``` ...
26.277778
109
0.614517
204312cba60d8288e3c917c5f96deac86868c9ce
19,044
py
Python
patron/tests/unit/api/openstack/compute/test_images.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/tests/unit/api/openstack/compute/test_images.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/tests/unit/api/openstack/compute/test_images.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 OpenStack Foundation # 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 requ...
45.451074
81
0.571309
262cf2c4077e40ed4ff29131da314669353a5a59
14,929
py
Python
CartoonGAN.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
4
2019-01-23T16:00:06.000Z
2020-05-06T12:45:00.000Z
CartoonGAN.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
null
null
null
CartoonGAN.py
manestay/CartoonGAN-4731
f8580a7f027d6505ce0e5c15314e2b53fe18b69e
[ "MIT" ]
1
2019-12-03T13:16:15.000Z
2019-12-03T13:16:15.000Z
import os, time, pickle, argparse, networks, utils import torch import torch.nn as nn import torch.optim as optim import matplotlib.pyplot as plt from torchvision import transforms from edge_promoting import edge_promoting import random parser = argparse.ArgumentParser() parser.add_argument('--name', require...
44.966867
200
0.627571
c73d81c7983cc4edb8ca59160e18c34386bb46ea
7,841
py
Python
src/clients/python/examples/simple_grpc_shm_client.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
1
2020-12-25T02:01:38.000Z
2020-12-25T02:01:38.000Z
src/clients/python/examples/simple_grpc_shm_client.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/examples/simple_grpc_shm_client.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
1
2021-12-17T03:07:54.000Z
2021-12-17T03:07:54.000Z
#!/usr/bin/env python # Copyright (c) 2020, NVIDIA CORPORATION. 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, thi...
43.804469
81
0.630914
97ad0fdee64acdfb26b729a103344595171f46ad
8,702
py
Python
change_detection_pytorch/datasets/custom.py
mesuga-reymond/change_detection.pytorch
7f501b8a52e7e47f2ed53b707cb3d6f5f3a76962
[ "MIT" ]
null
null
null
change_detection_pytorch/datasets/custom.py
mesuga-reymond/change_detection.pytorch
7f501b8a52e7e47f2ed53b707cb3d6f5f3a76962
[ "MIT" ]
null
null
null
change_detection_pytorch/datasets/custom.py
mesuga-reymond/change_detection.pytorch
7f501b8a52e7e47f2ed53b707cb3d6f5f3a76962
[ "MIT" ]
1
2022-02-02T13:28:42.000Z
2022-02-02T13:28:42.000Z
import glob import os import os.path as osp from collections import OrderedDict from functools import reduce import albumentations as A import cv2 import numpy as np from albumentations.pytorch import ToTensorV2 from torch.utils.data import Dataset from .transforms.albu import ToTensorTest class CustomDataset(Datas...
37.347639
112
0.554011
23a0e6295602ea6b7b22cd591010ffce2d134d01
2,095
py
Python
software/temcagt/temcagt/nodes/camera/controllers/base.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
2
2020-02-07T10:34:23.000Z
2021-09-24T02:28:10.000Z
software/temcagt/temcagt/nodes/camera/controllers/base.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
software/temcagt/temcagt/nodes/camera/controllers/base.py
htem/GridTapeStage
0b4764bc4ea8d64970ea481a32d6c7383d301989
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python import logging import time from .... import log logger = log.get_logger(__name__) #logger.addHandler(logging.StreamHandler()) #logger.setLevel(logging.DEBUG) class NodeController(object): def __init__(self, node): logger.debug("NodeController[%s] __init__: %s", self, node) ...
32.734375
75
0.588544
29b3682b747c66574590de5ea70574981cc536bb
12,303
py
Python
demo/sentiment/preprocess.py
OleNet/Paddle
59271d643b13b13346889d12355611b9a2ce4e31
[ "Apache-2.0" ]
1
2016-10-07T20:40:11.000Z
2016-10-07T20:40:11.000Z
demo/sentiment/preprocess.py
anuranrc/Paddle
21fa3eb0688459d3b71141d316e8358d31882b8d
[ "Apache-2.0" ]
1
2017-05-26T18:33:00.000Z
2017-05-26T18:33:00.000Z
demo/sentiment/preprocess.py
anuranrc/Paddle
21fa3eb0688459d3b71141d316e8358d31882b8d
[ "Apache-2.0" ]
1
2016-10-07T00:50:53.000Z
2016-10-07T00:50:53.000Z
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
34.175
79
0.585061
bb89d472a2b101e8bf9151416be2a68b7e93f7c2
69,547
py
Python
tests/unit/modules/boto_vpc_test.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/boto_vpc_test.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/boto_vpc_test.py
borgstrom/salt
2f732b5e8cd0b2a13f133d02f70aba3ee9fc0169
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # TODO: Update skipped tests to expect dictionary results from the execution # module functions. # Import Python libs from __future__ import absolute_import from distutils.version import LooseVersion # pylint: disable=import-error,no-name-in-module # Import Salt Testing libs from saltt...
41.694844
180
0.680705
c6929c240a0ee365d2dcca31c77757c414b29f53
2,573
py
Python
Software/Estadística/MCMC/HS/CC+SN_int1/4params/MCMC_supernovas_4params_valores_medios.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
Software/Estadística/MCMC/HS/CC+SN_int1/4params/MCMC_supernovas_4params_valores_medios.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
Software/Estadística/MCMC/HS/CC+SN_int1/4params/MCMC_supernovas_4params_valores_medios.py
matiasleize/tesis_licenciatura
5df6e341314583702b466b8ed7977d410f0ee457
[ "MIT" ]
null
null
null
""" Created on Wed Feb 5 13:04:17 2020 @author: matias """ import numpy as np np.random.seed(42) from scipy.optimize import minimize import sys import os from os.path import join as osjoin from pc_path import definir_path path_git, path_datos_global = definir_path() os.chdir(path_git) sys.path.append('./Software/Fu...
29.574713
100
0.659153
405c8e64b6f2b3776c46fac768f8a3c67fff8d87
2,551
py
Python
CIFAR/models/fold_bn.py
ppppps/SNN_Calibration
1aca56daa5759a28bed6ed31b207c766d745dd51
[ "MIT" ]
32
2021-06-14T04:36:04.000Z
2022-03-26T19:23:13.000Z
CIFAR/models/fold_bn.py
ppppps/SNN_Calibration
1aca56daa5759a28bed6ed31b207c766d745dd51
[ "MIT" ]
2
2022-01-10T15:05:35.000Z
2022-03-29T15:23:48.000Z
CIFAR/models/fold_bn.py
ppppps/SNN_Calibration
1aca56daa5759a28bed6ed31b207c766d745dd51
[ "MIT" ]
8
2021-06-21T06:46:25.000Z
2022-03-22T07:35:53.000Z
import torch import torch.nn as nn from CIFAR.models.utils import StraightThrough import torch.nn.init as init def _fold_bn(conv_module, bn_module, avg=False): w = conv_module.weight.data y_mean = bn_module.running_mean y_var = bn_module.running_var safe_std = torch.sqrt(y_var + bn_module.eps) w_v...
29.662791
73
0.642101
7f9f1faf8ace642e4b1dfa8556a388d9ce419777
934
py
Python
misc/doc/sources/apis/ja-http/example_send_misc.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
2
2020-05-14T18:27:01.000Z
2021-03-21T17:26:19.000Z
misc/doc/sources/apis/ja-http/example_send_misc.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
null
null
null
misc/doc/sources/apis/ja-http/example_send_misc.py
2naive/jasmin
7609a50ded4ebf5873b607cb4a500be4b1be6be1
[ "Apache-2.0" ]
1
2020-11-24T06:48:22.000Z
2020-11-24T06:48:22.000Z
# Python example # http://jasminsms.com import urllib2 import urllib baseParams = {'username':'foo', 'password':'bar', 'to':'+336222172', 'content':'Hello'} # Sending long content (more than 160 chars): baseParams['content'] = 'Very long message ...........................................................................
44.47619
224
0.573876
c877a4e8944cfcb24ff1ea098fb45be174e94810
4,409
py
Python
tests/test_agenda_route.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
tests/test_agenda_route.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
tests/test_agenda_route.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
from datetime import date, datetime, timedelta from fastapi import status class TestAgenda: """In the test we are receiving event fixtures as parameters so they will load into the database""" AGENDA = "/agenda" AGENDA_7_DAYS = "/agenda?days=7" AGENDA_30_DAYS = "/agenda?days=30" NO_EVENTS = b...
41.205607
74
0.668859
f06549010d2dba88c6e639020f4713dfdebde6de
791
py
Python
CritsAndCoffee.Auth.API/API_Auth/app.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
null
null
null
CritsAndCoffee.Auth.API/API_Auth/app.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
10
2020-07-16T23:43:12.000Z
2022-03-02T03:52:43.000Z
CritsAndCoffee.Auth.API/API_Auth/app.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
null
null
null
from flask import Flask from API_Auth import auth, api from API_Auth.extensions import db, jwt, migrate def create_app(testing=False, cli=False): """Application factory, used to create application """ app = Flask('API_Auth') app.config.from_object('API_Auth.config') if testing is True: a...
21.378378
54
0.694058
2a92d76c0a0bc4e45e19cd3cb395a74f917fb8b7
17,140
py
Python
sdk/python/pulumi_azure_native/botservice/channel.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/botservice/channel.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/botservice/channel.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from .. import _utilities from...
48.146067
633
0.655309
b4fec2417995f8b16fb8f1bc9f96ab0349179e65
9,184
py
Python
idpsreact/lib/python3.7/site-packages/openpyxl/cell/cell.py
DTrafford/IDPS
1eaccfc218adcb7231e64271731c765f8362b891
[ "MIT" ]
6
2019-12-07T07:30:34.000Z
2022-01-20T14:26:44.000Z
idpsreact/lib/python3.7/site-packages/openpyxl/cell/cell.py
DTrafford/IDPS
1eaccfc218adcb7231e64271731c765f8362b891
[ "MIT" ]
9
2019-12-28T06:18:53.000Z
2022-01-13T01:54:21.000Z
idpsreact/lib/python3.7/site-packages/openpyxl/cell/cell.py
DTrafford/IDPS
1eaccfc218adcb7231e64271731c765f8362b891
[ "MIT" ]
1
2020-05-21T15:55:45.000Z
2020-05-21T15:55:45.000Z
# Copyright (c) 2010-2019 openpyxl """Manage individual cells in a spreadsheet. The Cell class is required to know its value and type, display options, and any other features of an Excel cell. Utilities for referencing cells using Excel's 'A1' column/row nomenclature are also provided. """ __docformat__ = "restruc...
25.943503
87
0.614547
8e342e7d22ae15011b5fa9a49cbb27fe4839d661
21,496
py
Python
tractseg/libs/ExpUtils.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
tractseg/libs/ExpUtils.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
tractseg/libs/ExpUtils.py
soichih/TractSeg
f78d0c6dc998905e593cbf4346745467e30d1979
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ) # # 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 # # ...
51.059382
305
0.58276
1623b62934878991bb71fc9a7ee09359ec7aae34
21,694
py
Python
python/tests/unit/test_cache.py
cognitedatatest/emissary
397ad9941ddafb9faceafdd1bb9ee410f6ac6c96
[ "Apache-2.0" ]
null
null
null
python/tests/unit/test_cache.py
cognitedatatest/emissary
397ad9941ddafb9faceafdd1bb9ee410f6ac6c96
[ "Apache-2.0" ]
1
2022-02-14T02:34:21.000Z
2022-02-14T02:34:21.000Z
python/tests/unit/test_cache.py
cognitedatatest/emissary
397ad9941ddafb9faceafdd1bb9ee410f6ac6c96
[ "Apache-2.0" ]
null
null
null
from typing import Any, Callable, Dict, List, Optional, OrderedDict, Set, Tuple import difflib import json import logging import os import random import re import sys import yaml import pytest logging.basicConfig( level=logging.DEBUG, format="%(asctime)s test %(levelname)s: %(message)s", datefmt='%Y-%m-%...
32.044313
131
0.604591
602f45d637afb0a8f3e14300214faec9cc4fe1e2
8,255
py
Python
pandas/tests/indexing/interval/test_interval_new.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2019-11-01T08:44:40.000Z
2019-11-01T08:44:40.000Z
pandas/tests/indexing/interval/test_interval_new.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexing/interval/test_interval_new.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import re import numpy as np import pytest from pandas.compat import IS64 from pandas import ( Index, Interval, IntervalIndex, Series, ) import pandas._testing as tm class TestIntervalIndex: @pytest.fixture def series_with_interval_index(self): return Series( np.arange(5...
33.831967
84
0.612235
dc1592237fec363d02933d65a71ef2738874caec
580
py
Python
train.py
DaryLL-S/Adverting_Model
e2f8fed48bbba06f458c1ac7201205b0ff46751a
[ "MIT" ]
null
null
null
train.py
DaryLL-S/Adverting_Model
e2f8fed48bbba06f458c1ac7201205b0ff46751a
[ "MIT" ]
null
null
null
train.py
DaryLL-S/Adverting_Model
e2f8fed48bbba06f458c1ac7201205b0ff46751a
[ "MIT" ]
null
null
null
import pandas as pd import xgboost as xgb # 导入数据集 df = pd.read_csv("./data/raw_data.csv") df = df.fillna(value=-1) data = df.iloc[:, 3:16] target = df.iloc[:, -1:] print(data) print(target) # booster: params = {'learning_rate': 0.4, 'max_depth': 10, # 构建树的深度,越大越容易过拟合 'num_boost_round': 2000, ...
24.166667
52
0.598276
8ea95f35ade2d425f4f3c01d5dd88ddd9639e329
1,123
py
Python
web/utils.py
bigchaindb/coalaip-http-api
8cefb8077997e8b7ce1423ef851fb3e343907d06
[ "Apache-2.0" ]
4
2017-10-19T16:26:12.000Z
2020-06-15T20:13:59.000Z
web/utils.py
bigchaindb/coalaip-http-api
8cefb8077997e8b7ce1423ef851fb3e343907d06
[ "Apache-2.0" ]
23
2016-08-30T12:06:13.000Z
2017-08-11T10:22:49.000Z
web/utils.py
bigchaindb/coalaip-http-api
8cefb8077997e8b7ce1423ef851fb3e343907d06
[ "Apache-2.0" ]
10
2016-10-05T13:27:01.000Z
2020-06-15T20:14:10.000Z
from collections import namedtuple import os BigchainDBConfiguration = namedtuple('BigchainDBConfiguration', [ 'hostname', 'port', ]) # Double check in case the environment variable is sent via Docker, # which will send empty strings for missing environment variables BDB_HOST = os.environ.get('BDB_NODE_HOST...
26.738095
78
0.684773
b437ff845481fd16be2f8fc1d410e6c3c3a17c1d
554
py
Python
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
tests/functions/list/test_lists_map.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
import unittest import mplisp.evaluator as evaluator class TestListMap(unittest.TestCase): def map_test(self): input1 = """ (map (lambda (x) (* 2 x)) (list 1 2 3)) """ output1 = list(evaluator.evaluate(input1)) self.assertEqual(output1[0], [2, 4, 6]) def map_test_2(...
22.16
50
0.534296
2031769b343244ece94f16b54da16c6bb54aecc1
2,781
py
Python
homeassistant/components/rainbird/switch.py
FlorianLudwig/home-assistant
29ad3961e581d3591ce0963a7fa01672abadedf7
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/rainbird/switch.py
FlorianLudwig/home-assistant
29ad3961e581d3591ce0963a7fa01672abadedf7
[ "Apache-2.0" ]
2
2019-04-15T02:43:04.000Z
2019-04-15T02:49:10.000Z
homeassistant/components/rainbird/switch.py
FlorianLudwig/home-assistant
29ad3961e581d3591ce0963a7fa01672abadedf7
[ "Apache-2.0" ]
1
2022-02-20T07:41:14.000Z
2022-02-20T07:41:14.000Z
""" Support for Rain Bird Irrigation system LNK WiFi Module. For more details about this component, please refer to the documentation at https://home-assistant.io/components/switch.rainbird/ """ import logging import voluptuous as vol from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice from ho...
29.585106
77
0.658037
554244970bc5061e0acfdce1055794209d93c0b4
190,726
py
Python
source/gui/settingsDialogs.py
falsecz/python-java-access-bridge
52bdca4172fa53072be7201adfc08be45f9c064c
[ "bzip2-1.0.6" ]
6
2021-03-08T07:28:08.000Z
2022-02-23T02:48:23.000Z
source/gui/settingsDialogs.py
falsecz/python-java-access-bridge
52bdca4172fa53072be7201adfc08be45f9c064c
[ "bzip2-1.0.6" ]
null
null
null
source/gui/settingsDialogs.py
falsecz/python-java-access-bridge
52bdca4172fa53072be7201adfc08be45f9c064c
[ "bzip2-1.0.6" ]
2
2021-07-16T00:25:27.000Z
2022-03-24T08:36:36.000Z
# -*- coding: UTF-8 -*- # A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2006-2020 NV Access Limited, Peter Vágner, Aleksey Sadovoy, # Rui Batista, Joseph Lee, Heiko Folkerts, Zahari Yurukov, Leonard de Ruijter, # Derek Riemer, Babbage B.V., Davy Kager, Ethan Holliger, Bill Dengler, Thomas Stivers # Thi...
45.573716
262
0.760725
cc1e6826fade5f96853261c5d4ceb85931b659e6
1,040
py
Python
helpers/rpc/generator.py
nickpotafiy/developer.bitcoin.org
813ba3fb5eae85cfdfffe91d12f2df653ea8b725
[ "MIT-0", "MIT" ]
569
2017-07-26T23:14:31.000Z
2022-01-13T20:29:04.000Z
helpers/rpc/generator.py
nickpotafiy/developer.bitcoin.org
813ba3fb5eae85cfdfffe91d12f2df653ea8b725
[ "MIT-0", "MIT" ]
155
2017-07-17T15:40:36.000Z
2021-12-07T07:59:33.000Z
helpers/rpc/generator.py
nickpotafiy/developer.bitcoin.org
813ba3fb5eae85cfdfffe91d12f2df653ea8b725
[ "MIT-0", "MIT" ]
214
2017-07-17T15:36:08.000Z
2021-11-04T23:38:37.000Z
# Distributed under the MIT software license, see the accompanying # file LICENSE or https://www.opensource.org/licenses/MIT. from help_parser import HelpParser from cli_caller import CliCaller class Generator: def __init__(self, cli, renderer): self.cli = CliCaller(cli) self.renderer = renderer ...
33.548387
69
0.664423
693786fdcf656b9f76487929b4f2b823a69a1dbe
2,305
py
Python
models/readouts.py
mwcvitkovic/Supervised-Learning-on-Relational-Databases-with-GNNs
57195ccab62d23dcbcac1a317f8a9811a9fd6cb5
[ "MIT" ]
44
2020-02-07T12:44:25.000Z
2022-03-31T21:57:08.000Z
models/readouts.py
mwcvitkovic/Supervised-Learning-on-Relational-Databases-with-GNNs
57195ccab62d23dcbcac1a317f8a9811a9fd6cb5
[ "MIT" ]
2
2020-02-07T03:54:15.000Z
2020-05-07T13:21:29.000Z
models/readouts.py
mwcvitkovic/Supervised-Learning-on-Relational-Databases-with-GNNs
57195ccab62d23dcbcac1a317f8a9811a9fd6cb5
[ "MIT" ]
10
2020-02-23T07:34:55.000Z
2021-07-25T18:34:40.000Z
import torch.nn as nn from dgl.nn.pytorch import AvgPooling as AP, SortPooling as SP, GlobalAttentionPooling as GAP, Set2Set as S2S, \ SetTransformerDecoder as STD from models import activations class AvgPooling(nn.Module): def __init__(self, hidden_dim): super().__init__() self.ap = AP() ...
32.928571
112
0.617787
048d81f03077a9b0eb6716bffac1f661a0d30a4c
531
py
Python
imutils/augmentation.py
labellson/cloud-characterization-pytorch
b6bbf25f5669800d9671b79ed3f93f8f34a773e6
[ "MIT" ]
null
null
null
imutils/augmentation.py
labellson/cloud-characterization-pytorch
b6bbf25f5669800d9671b79ed3f93f8f34a773e6
[ "MIT" ]
null
null
null
imutils/augmentation.py
labellson/cloud-characterization-pytorch
b6bbf25f5669800d9671b79ed3f93f8f34a773e6
[ "MIT" ]
null
null
null
import numpy as np def flip_img(image, axis=0): """ Flip vertically or horizontally a matrix. :param image: source image :param axis: axis which will be flipped :return: the flipped matrix """ return np.flip(image, axis) def rot90_img(image, clockwise=True): """ Rotate by 90 degree...
25.285714
48
0.655367
801e427b2ad0c4678ce19ddc0a59456734cb17c2
23,294
py
Python
util/dvsim/dvsim.py
mundaym/opentitan
b46960ac23ea155c134cdeaa57b97839540b6dfa
[ "Apache-2.0" ]
null
null
null
util/dvsim/dvsim.py
mundaym/opentitan
b46960ac23ea155c134cdeaa57b97839540b6dfa
[ "Apache-2.0" ]
null
null
null
util/dvsim/dvsim.py
mundaym/opentitan
b46960ac23ea155c134cdeaa57b97839540b6dfa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 """dvsim is a command line tool to deploy ASIC tool flows such as regressions for design verification (DV), formal property verification (FPV), lintin...
37.450161
94
0.526445
9fe45a84f13080f6839d182a9286eede649b3eca
2,751
py
Python
events/tasks.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
events/tasks.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
1
2015-05-31T10:42:36.000Z
2015-11-03T17:52:06.000Z
events/tasks.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import User from django.core.mail import EmailMessage try: from django.forms.fields import email_re except ImportError: from django.core import * from django.template.loader import render_to_string # from celery.task import task from django.contr...
36.197368
101
0.605598