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
6a962fd3c2632509869fc4394cc6a1a2fc338b17
4,515
py
Python
qa/rpc-tests/mempool_reorg.py
alphapayofficial/alphapay
471c411ad03b20b49db4f80874a3eac21e1ca91a
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_reorg.py
alphapayofficial/alphapay
471c411ad03b20b49db4f80874a3eac21e1ca91a
[ "MIT" ]
null
null
null
qa/rpc-tests/mempool_reorg.py
alphapayofficial/alphapay
471c411ad03b20b49db4f80874a3eac21e1ca91a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Alphapay Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test re-org scenarios with a mempool that contains transactions # that spend (directly or indirectly...
44.264706
122
0.684607
12785d3ceaecd99b36d46c659ac5890d37f0fd95
3,738
py
Python
python_modules/dagster/dagster_tests/core_tests/dynamic_tests/test_dynamic_output.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/dynamic_tests/test_dynamic_output.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/dagster/dagster_tests/core_tests/dynamic_tests/test_dynamic_output.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
import pytest from dagster import execute_solid, solid from dagster.core.definitions.events import Output from dagster.core.definitions.output import OutputDefinition from dagster.core.errors import DagsterInvalidDefinitionError, DagsterInvariantViolationError from dagster.experimental import DynamicOutput, DynamicOutp...
36.291262
100
0.696897
4f424af8ce004624b77aacc64c9970c9f8b3acfc
1,291
py
Python
tests/test_regression_test.py
FFRI/FEXRD
28d45511378ab9b46c6d292a5a4d241b2c7bbe33
[ "Apache-2.0" ]
4
2020-10-16T12:00:18.000Z
2022-01-13T07:00:03.000Z
tests/test_regression_test.py
FFRI/FEXRD
28d45511378ab9b46c6d292a5a4d241b2c7bbe33
[ "Apache-2.0" ]
null
null
null
tests/test_regression_test.py
FFRI/FEXRD
28d45511378ab9b46c6d292a5a4d241b2c7bbe33
[ "Apache-2.0" ]
1
2021-08-20T13:10:07.000Z
2021-08-20T13:10:07.000Z
# # (c) FFRI Security, Inc., 2020-2021 / Author: FFRI Security, Inc. # import glob import json import os from typing import List import pytest from fexrd import AllFeaturesExtractor target_test_json: List[str] = glob.glob( os.path.join(os.path.abspath(os.path.splitext(__file__)[0]), "*", "*.json") ) def get_ve...
25.82
79
0.693261
d160920d5f57aa90bc0d74f1cf6a04b1948ebfc1
1,307
py
Python
src/database/migrations/0109_auto_20211119_2258.py
massenergize/api
0df3368cb763e9160229f48138b7706a9d0569aa
[ "MIT" ]
2
2020-07-24T12:58:17.000Z
2020-12-17T02:26:13.000Z
src/database/migrations/0109_auto_20211119_2258.py
massenergize/api
0df3368cb763e9160229f48138b7706a9d0569aa
[ "MIT" ]
214
2019-06-26T17:33:54.000Z
2022-03-26T00:02:34.000Z
src/database/migrations/0109_auto_20211119_2258.py
massenergize/portalBackEnd
7ed971b2be13901667a216d8c8a46f0bed6d6ccd
[ "MIT" ]
6
2020-03-13T20:29:06.000Z
2021-08-20T16:15:08.000Z
# Generated by Django 3.1.13 on 2021-11-19 22:58 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('database', '0108_subscriber_created_at'), ] operations = [ migrations.AddField( model_name='userprofile', ...
38.441176
97
0.599082
001698672cfb287d8b052cc38f9d0278f8b53835
3,846
py
Python
src/primaires/pnj/editeurs/pedit/edt_entraine.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/pnj/editeurs/pedit/edt_entraine.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/pnj/editeurs/pedit/edt_entraine.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2012 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # l...
38.079208
79
0.627405
89d3aa43dff55e1a379b000c43364e556f92b72f
114,370
py
Python
src/config/api-server/vnc_cfg_api_server/db_manage.py
nagendraprasath/contrail-controller
11ac581563f5602d5bafa10f2574c924808854e7
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/db_manage.py
nagendraprasath/contrail-controller
11ac581563f5602d5bafa10f2574c924808854e7
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/db_manage.py
nagendraprasath/contrail-controller
11ac581563f5602d5bafa10f2574c924808854e7
[ "Apache-2.0" ]
null
null
null
import sys reload(sys) sys.setdefaultencoding('UTF8') import os import re import inspect import itertools from functools import wraps import logging from cfgm_common import jsonutils as json from netaddr import IPAddress, IPNetwork from netaddr.core import AddrFormatError import argparse from cStringIO import StringIO ...
42.001469
96
0.559342
10fcd3b2b731f83ea89d17ba26a9bd9f2b5a09a8
505
py
Python
src/model/open_interest.py
Wild-Family/binance-api-client
2771bc19f8bbb3a56de8da76a9f12691042522f3
[ "Apache-2.0" ]
null
null
null
src/model/open_interest.py
Wild-Family/binance-api-client
2771bc19f8bbb3a56de8da76a9f12691042522f3
[ "Apache-2.0" ]
null
null
null
src/model/open_interest.py
Wild-Family/binance-api-client
2771bc19f8bbb3a56de8da76a9f12691042522f3
[ "Apache-2.0" ]
null
null
null
import dataclasses RESOURCE_NAME_OPEN_INTEREST = '/fapi/v1/openInterest' @dataclasses.dataclass class OpenInterestRequestParams: ''' symbol: 通貨名 ''' symbol: str @dataclasses.dataclass class OpenInterestResponse: ''' open_interest: symbol: time: ''' open_interest: str sym...
17.413793
53
0.641584
dabc67fd75318c2cec7a6eb8b12d7445ee6fdacf
765
py
Python
prefabs/camera.py
Wonder-Tree/SpaceShooter-PoseCamera
5bc542f002503422f25b1e82b1886c5002c08a21
[ "Apache-2.0" ]
null
null
null
prefabs/camera.py
Wonder-Tree/SpaceShooter-PoseCamera
5bc542f002503422f25b1e82b1886c5002c08a21
[ "Apache-2.0" ]
null
null
null
prefabs/camera.py
Wonder-Tree/SpaceShooter-PoseCamera
5bc542f002503422f25b1e82b1886c5002c08a21
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import config import pygame import posecamera class Camera(object): def __init__(self) -> None: super().__init__() self.capture = cv2.VideoCapture(0) def read(self): _, frame = self.capture.read() frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)...
23.90625
64
0.60915
2fe7a460be23105bbf5aa596ea33984d4b926837
31,921
py
Python
networkx/classes/multidigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
1
2020-11-20T10:14:14.000Z
2020-11-20T10:14:14.000Z
networkx/classes/multidigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
4
2016-04-22T14:50:02.000Z
2020-11-20T09:30:44.000Z
networkx/classes/multidigraph.py
MaxBromberg/networkx
e4d1483f241e9a56fbda247592710b659d29bce5
[ "BSD-3-Clause" ]
2
2020-12-21T11:41:13.000Z
2021-01-08T17:09:21.000Z
"""Base class for MultiDiGraph.""" from copy import deepcopy import networkx as nx from networkx.classes.digraph import DiGraph from networkx.classes.multigraph import MultiGraph from networkx.classes.coreviews import MultiAdjacencyView from networkx.classes.reportviews import ( OutMultiEdgeView, InMultiEdgeVi...
36.733026
84
0.601203
6add756dad554df47afaa7ff80c5c79e21d3f8ed
2,304
py
Python
text-analysis/text_analysis.py
polypmer/scryp
c0ba27f09764d3ade986b5477ede5fd18c0f40f7
[ "MIT" ]
2
2017-10-05T10:32:10.000Z
2017-11-06T02:41:14.000Z
text-analysis/text_analysis.py
polypmer/scrape
c0ba27f09764d3ade986b5477ede5fd18c0f40f7
[ "MIT" ]
null
null
null
text-analysis/text_analysis.py
polypmer/scrape
c0ba27f09764d3ade986b5477ede5fd18c0f40f7
[ "MIT" ]
null
null
null
""" Some Python Text Analysis Do not Run this program, copy the appropriate tests to something like ipython Notebook. """ """Clean up and Loop documents""" import os import nltk import glob import matplotlib.pyplot as plt import re from os import listdir from bs4 import BeautifulSoup from textblob import T...
29.538462
97
0.711372
32d9be89c0ff4b8ce70aac492c0480123b061b07
610
py
Python
thairod/utils/tests/test_pair_leftover.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
thairod/utils/tests/test_pair_leftover.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
3
2021-07-27T13:11:36.000Z
2021-08-10T22:54:55.000Z
thairod/utils/tests/test_pair_leftover.py
thegangtechnology/thairod-django
b073186a4b5bc42dfef99685b3da30abf8e42862
[ "MIT" ]
null
null
null
from thairod.utils.collection_util import pair_leftover from thairod.utils.test_util import TestCase class TestPairLeftOver(TestCase): with_seed = False def test_pair_leftover_more_right(self): p, la, lb = pair_leftover([1, 2, 3], [9, 8, 7, 6]) self.assertEqual(p, [(1, 9), (2, 8), (3, 7)]) ...
32.105263
58
0.601639
3da1ac6ccfdfb3919725eda8d2671c667933b346
763
py
Python
assets/hangman-0.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/hangman-0.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
assets/hangman-0.py
Akaito/ZeroToBoto
5806fa004ae4ce54d594303133d043d1e606f0e8
[ "Zlib" ]
null
null
null
# hangman-0.py def get_letter_guess(): """Prompts the user for input until they give us something valid. Returns the user's valid letter guess. """ # just keep looping forever; only break or return will get us out while True: # even though the variable's called "letter", the user could ...
27.25
70
0.591088
6bea1cd26f80ffe8212c306ee8e80b1afbc84199
759
py
Python
Chapter10/webapps/app4.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
31
2020-08-10T22:37:41.000Z
2022-03-09T21:35:56.000Z
Chapter10/webapps/app4.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
null
null
null
Chapter10/webapps/app4.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
21
2020-08-10T22:37:44.000Z
2022-03-07T07:26:28.000Z
#app4.py: extracting parameters from different requests from flask import Flask, request, render_template app = Flask(__name__) @app.route('/hello') @app.route('/hello/<fname> <lname>') def hello_user(fname=None, lname=None): return render_template('app4.html', name=f"{fname} {lname}") @app.get('/submit') def pr...
29.192308
64
0.683794
16b0ef77bba329c0821e175a314ace4e28ce4d6b
16,109
py
Python
GQFetch/kline.py
xiaopge/GolemQ
3065afad1ad3451119a41e32ec3bc09880a890cb
[ "MIT" ]
null
null
null
GQFetch/kline.py
xiaopge/GolemQ
3065afad1ad3451119a41e32ec3bc09880a890cb
[ "MIT" ]
null
null
null
GQFetch/kline.py
xiaopge/GolemQ
3065afad1ad3451119a41e32ec3bc09880a890cb
[ "MIT" ]
null
null
null
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
44.747222
184
0.599106
b361ec64ef3078abdd14bdfe900538531b8e68b9
1,346
py
Python
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetNextResultToVerifyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetNextResultToVerifyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetNextResultToVerifyRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.378378
83
0.77266
e0f7ae18e391570231cd833fdda3483de1423eb2
1,392
py
Python
catalyst/rl/utils/gym.py
akterskii/catalyst
66046f1c03947feff6b8ff594d562c621ec91f16
[ "Apache-2.0" ]
null
null
null
catalyst/rl/utils/gym.py
akterskii/catalyst
66046f1c03947feff6b8ff594d562c621ec91f16
[ "Apache-2.0" ]
null
null
null
catalyst/rl/utils/gym.py
akterskii/catalyst
66046f1c03947feff6b8ff594d562c621ec91f16
[ "Apache-2.0" ]
null
null
null
import numpy as np from collections import OrderedDict import gym import gym.spaces as spaces def extend_space(space, history_len) -> gym.Space: def _extend_to_history_len(np_array): return np.concatenate( history_len * [np.expand_dims(np_array, 0)], axis=0 ) if isinstance(space, s...
32.372093
73
0.635057
4a529e7c1cdb5c23ec67661fe243cc7fa6e70915
651
py
Python
kaggle_import.py
zabrisk3/KSM-Consulting-Reddit-Project
189791f139984036d16044f62c9cb14f40dd2cde
[ "MIT" ]
null
null
null
kaggle_import.py
zabrisk3/KSM-Consulting-Reddit-Project
189791f139984036d16044f62c9cb14f40dd2cde
[ "MIT" ]
null
null
null
kaggle_import.py
zabrisk3/KSM-Consulting-Reddit-Project
189791f139984036d16044f62c9cb14f40dd2cde
[ "MIT" ]
null
null
null
import pandas as pd import sqlite3 """Note: this Python code was run through Kaggle's website. It imports specific parts from the Reddit May 2015 data and then saves it. """ sql_connect= sqlite3.connect('../input/database.sqlite') """Specify a desired number of rows to import and only import rows whose subreddit is...
26.04
153
0.731183
c6adc4aef5f33533a26d23320d92385560cebe36
2,504
py
Python
venv/Lib/site-packages/streamlit/proto/BokehChart_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
5
2022-01-20T22:59:04.000Z
2022-02-06T06:11:35.000Z
venv/Lib/site-packages/streamlit/proto/BokehChart_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1
2021-09-23T18:06:06.000Z
2021-09-24T09:34:21.000Z
venv/Lib/site-packages/streamlit/proto/BokehChart_pb2.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: streamlit/proto/BokehChart.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection ...
32.102564
175
0.761981
ab1b11bda8ae77da93f52bb454ae9d30e06f5a98
2,668
py
Python
copyleaks/models/submit/scanning_copyleaks_db.py
MrMarc/Python-Plagiarism-Checker
dcbe1a133bc33aa2550e31d1a45cc78ead65cbb2
[ "MIT" ]
69
2016-04-15T14:11:08.000Z
2022-03-13T12:50:25.000Z
copyleaks/models/submit/scanning_copyleaks_db.py
MrMarc/Python-Plagiarism-Checker
dcbe1a133bc33aa2550e31d1a45cc78ead65cbb2
[ "MIT" ]
10
2016-11-05T12:31:52.000Z
2022-02-07T18:15:57.000Z
copyleaks/models/submit/scanning_copyleaks_db.py
MrMarc/Python-Plagiarism-Checker
dcbe1a133bc33aa2550e31d1a45cc78ead65cbb2
[ "MIT" ]
42
2016-04-15T14:11:08.000Z
2022-03-27T03:42:38.000Z
''' The MIT License(MIT) Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com) 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 ...
41.6875
138
0.711019
67181dffc726487490346879d45db98352604b35
58,109
py
Python
music_publisher/migrations/0001_initial.py
mashanz/django-music-publisher
4107a28460f175d17920010fc89f1f2d547c6226
[ "MIT" ]
44
2018-07-24T22:08:17.000Z
2022-03-10T14:51:37.000Z
music_publisher/migrations/0001_initial.py
mashanz/django-music-publisher
4107a28460f175d17920010fc89f1f2d547c6226
[ "MIT" ]
43
2018-10-09T11:43:55.000Z
2022-02-05T10:47:23.000Z
music_publisher/migrations/0001_initial.py
mashanz/django-music-publisher
4107a28460f175d17920010fc89f1f2d547c6226
[ "MIT" ]
20
2019-01-11T02:10:39.000Z
2022-02-17T22:34:45.000Z
# Generated by Django 3.1.4 on 2020-12-23 12:43 import django.core.validators from django.db import migrations, models import django.db.models.deletion import music_publisher.validators class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
185.06051
9,790
0.574713
9d20a6c499207f96f85c0c2d4f5e5e6e6d319cde
753
py
Python
parsec/commands/forms/show_form.py
innovate-invent/parsec
d269e4b3fe0f8814c6416b6d2a6202519b940c66
[ "Apache-2.0" ]
null
null
null
parsec/commands/forms/show_form.py
innovate-invent/parsec
d269e4b3fe0f8814c6416b6d2a6202519b940c66
[ "Apache-2.0" ]
null
null
null
parsec/commands/forms/show_form.py
innovate-invent/parsec
d269e4b3fe0f8814c6416b6d2a6202519b940c66
[ "Apache-2.0" ]
null
null
null
import click from parsec.cli import pass_context, json_loads from parsec.decorators import custom_exception, dict_output @click.command('show_form') @click.argument("form_id", type=str) @pass_context @custom_exception @dict_output def cli(ctx, form_id): """Get details of a given form. Output: A description ...
25.965517
64
0.620186
26935c41b282b7ef5e2b2f23373502d2bfbacd15
686
py
Python
application/products/models.py
villeheikkila/herkkupankki
5848fbf29197c110d3bddedd1e439834ac8ea988
[ "MIT" ]
null
null
null
application/products/models.py
villeheikkila/herkkupankki
5848fbf29197c110d3bddedd1e439834ac8ea988
[ "MIT" ]
2
2018-11-27T22:40:51.000Z
2018-12-15T13:51:35.000Z
application/products/models.py
villeheikkila/herkkupankki
5848fbf29197c110d3bddedd1e439834ac8ea988
[ "MIT" ]
null
null
null
from application import db from application.models import Base from sqlalchemy.sql import text class Product(Base): name = db.Column(db.String(144), nullable=False) producer = db.Column(db.String(144), nullable=False) public = db.Column(db.Boolean, nullable=False) account_id = db.Column(db.Integer, d...
31.181818
83
0.673469
115064c866ae92f1eb13000ccf690284fdcdd379
2,166
py
Python
tests/boardfarm_plugins/boardfarm_prplmesh/tests/higher_layer_data_payload_trigger.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
tests/boardfarm_plugins/boardfarm_prplmesh/tests/higher_layer_data_payload_trigger.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
tests/boardfarm_plugins/boardfarm_prplmesh/tests/higher_layer_data_payload_trigger.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
# SPDX-License-Identifier: BSD-2-Clause-Patent # SPDX-FileCopyrightText: 2020 the prplMesh contributors (see AUTHORS.md) # This code is subject to the terms of the BSD+Patent license. # See LICENSE file for more details. from .prplmesh_base_test import PrplMeshBaseTest from boardfarm.exceptions import SkipTest from ca...
41.653846
98
0.646353
a33e5ef2d4e380595a1e7d5a0c269485ada68b87
3,086
py
Python
rnn_gru_gradient_alignment.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
null
null
null
rnn_gru_gradient_alignment.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
null
null
null
rnn_gru_gradient_alignment.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
null
null
null
import logging import random import torch from torch.optim import Adam import configs.classification.gradient_alignment as reg_parser from experiment.experiment import experiment from model.gru import Recurrent_Network from utils import utils logger = logging.getLogger('experiment') def main(): p = reg_parser....
31.171717
92
0.600778
fab74addbed5fba6aaac29b8fab54cbbb2faa43d
7,157
py
Python
src/tests/test_users.py
cy275/blog_api
578057e07e01d7cf7c4c714a83aba35aff46932c
[ "MIT" ]
null
null
null
src/tests/test_users.py
cy275/blog_api
578057e07e01d7cf7c4c714a83aba35aff46932c
[ "MIT" ]
null
null
null
src/tests/test_users.py
cy275/blog_api
578057e07e01d7cf7c4c714a83aba35aff46932c
[ "MIT" ]
null
null
null
import unittest import os import json from ..app import create_app, db class UsersTest(unittest.TestCase): """ Users Test Case """ def setUp(self): """ Test Setup """ self.app = create_app("testing") self.client = self.app.test_client self.user = { ...
42.349112
120
0.571329
d530744bf66af5573edfeab8b9bab9a03f9ee128
2,490
py
Python
tests/test_location.py
macph/nextbus
4288e235a73c8949c44523c0fc7c98d233d0f75c
[ "MIT" ]
1
2019-10-17T19:40:35.000Z
2019-10-17T19:40:35.000Z
tests/test_location.py
macph/nextbus
4288e235a73c8949c44523c0fc7c98d233d0f75c
[ "MIT" ]
5
2021-03-31T18:52:25.000Z
2022-02-22T14:25:41.000Z
tests/test_location.py
macph/nextbus
4288e235a73c8949c44523c0fc7c98d233d0f75c
[ "MIT" ]
null
null
null
""" Testing the populate module. """ import pytest from nextbus import location PLACES = { "Tottenham Court Road": (51.51623, -0.13067), "British Museum": (51.51939, -0.12692), "Trafalgar Square": (51.50786, -0.12803), "Smithfield": (51.51911, -0.10172), "Primrose Hill": (51.53954, -0.16066), ...
34.109589
79
0.659839
7095730ecffc67bf14bd27be66aabb20dc3d9db2
312
py
Python
sauce-engines.py
faber6/sauce-engines
a020df785f57ee79db384160dcfa8dd6405c09fd
[ "MIT" ]
null
null
null
sauce-engines.py
faber6/sauce-engines
a020df785f57ee79db384160dcfa8dd6405c09fd
[ "MIT" ]
null
null
null
sauce-engines.py
faber6/sauce-engines
a020df785f57ee79db384160dcfa8dd6405c09fd
[ "MIT" ]
null
null
null
import os, sys, threading, webview from main import run if __name__ == "__main__": t = threading.Thread(target=run) t.daemon = True t.start() port = int(os.environ.get("PORT", 5000)) webview.create_window('Sauce', f"http://localhost:{port}/") webview.start() sys.exit()
24
64
0.61859
d1751f08a2e472d1d7cf8e316e444e53a25f0dbe
30,184
py
Python
ctelib/v3_00/retEnviCTe.py
akretion/ctelib
50f4ddee234d803155bd1b7a0a88e3680817ba3f
[ "MIT" ]
4
2020-09-09T02:59:24.000Z
2022-03-07T19:06:26.000Z
ctelib/v3_00/retEnviCTe.py
akretion/ctelib
50f4ddee234d803155bd1b7a0a88e3680817ba3f
[ "MIT" ]
2
2019-11-18T14:41:02.000Z
2020-02-26T15:09:48.000Z
ctelib/v3_00/retEnviCTe.py
akretion/ctelib
50f4ddee234d803155bd1b7a0a88e3680817ba3f
[ "MIT" ]
3
2018-02-15T02:09:40.000Z
2022-03-07T19:06:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Mon Oct 9 15:35:33 2017 by generateDS.py version 2.28b. # Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] # # Command line options: # ('--no-process-includes', '') # ('-o', 'ctelib/v3_00/retEnviCTe.py') # # Command line arguments: # ...
36.148503
118
0.550656
0be3470a65cb4c4a003537e3ef12fac6ab580195
718
py
Python
docs/tutorial/0.py
zhzLuke96/S-Vm
7facad1b8845aea4945eabecfecac491a27f16d6
[ "MIT" ]
null
null
null
docs/tutorial/0.py
zhzLuke96/S-Vm
7facad1b8845aea4945eabecfecac491a27f16d6
[ "MIT" ]
null
null
null
docs/tutorial/0.py
zhzLuke96/S-Vm
7facad1b8845aea4945eabecfecac491a27f16d6
[ "MIT" ]
null
null
null
class LCVariable: def __init__(self, name): self.name = name def __str__(self): return self.name class LCFunction: def __init__(self, para, body): self.para = para self.body = body def __str__(self): return f"({self.para}.{self.body})" class LCCall: def ...
21.117647
68
0.48468
3816a7d2378d4740161040129faca97ba9222811
38,533
py
Python
tsai/_nbdev.py
dnth/tsai
641d5bb75f3aa75889c00a4bb60d96510b4c5605
[ "Apache-2.0" ]
null
null
null
tsai/_nbdev.py
dnth/tsai
641d5bb75f3aa75889c00a4bb60d96510b4c5605
[ "Apache-2.0" ]
null
null
null
tsai/_nbdev.py
dnth/tsai
641d5bb75f3aa75889c00a4bb60d96510b4c5605
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"maybe_mount_gdrive": "000_export.ipynb", "get_nb_name": "000_export.ipynb", "get_colab_nb_name": "000_export.ipynb", "get_nb_path": "000_export.ipynb", "nb_name_to_py": "0...
50.173177
83
0.633483
9bbc8ad23abeec0e4fa8c171773a7378530087e0
239
py
Python
Python/ques2.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
Python/ques2.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
Python/ques2.py
achintya219/Autumn-of-Automation
b88abc1946e9d5e7476637f97fba2591f5a1fd77
[ "MIT" ]
null
null
null
def is_palindrome(n): t = n r = 0 while (n > 0): d = n%10 r = r*10 + d n = n//10 if (t==r): return True else: return False p = int(input()) p += 1 while True: if is_palindrome(p) == True: break else: p += 1 print(p)
10.863636
29
0.531381
7d5335d6ee6e5dd4d8013184f474bc8d3185581f
337
py
Python
mxfield/models.py
krescruz/django-mxfield
98855412d4414e239a74370380aed5d28b52eeb1
[ "MIT" ]
null
null
null
mxfield/models.py
krescruz/django-mxfield
98855412d4414e239a74370380aed5d28b52eeb1
[ "MIT" ]
null
null
null
mxfield/models.py
krescruz/django-mxfield
98855412d4414e239a74370380aed5d28b52eeb1
[ "MIT" ]
null
null
null
from django.db.models import CharField from django.utils.translation import ugettext_lazy as _ import validators class CURPField(CharField): default_validators = [validators.CURPValidator()] description = _("CURP") def __init__(self, *args, **kwargs): kwargs['max_length'] = 18 super(CURPField, self).__init__(...
25.923077
55
0.759644
a9a0414744b0075638dd235e1a1fd90781bde58e
5,512
py
Python
mosaicing_demosaicing_v2.py
Dantong88/Moire_Attack
924f04edfc39d78295086efd972f21ef9af1d19a
[ "MIT" ]
12
2021-11-02T15:03:38.000Z
2022-03-16T02:15:59.000Z
mosaicing_demosaicing_v2.py
Dantong88/Moire_Attack
924f04edfc39d78295086efd972f21ef9af1d19a
[ "MIT" ]
1
2021-11-15T18:22:47.000Z
2021-12-06T16:28:23.000Z
mosaicing_demosaicing_v2.py
Dantong88/Moire_Attack
924f04edfc39d78295086efd972f21ef9af1d19a
[ "MIT" ]
7
2021-10-14T09:06:37.000Z
2022-02-09T07:41:02.000Z
import torch import numpy as np from colour_demosaicing.bayer import masks_CFA_Bayer import torch.nn as nn import torch.nn.functional as F def demosaicing_CFA_Bayer_bilinear(CFA, pattern='RGGB'): """ Returns the demosaiced *RGB* colourspace array from given *Bayer* CFA using bilinear interpolation. P...
31.318182
159
0.568215
06e862e9b361a9ff5c479fbe537239f4e22139b8
3,942
py
Python
sphinxdocs/conf.py
nokia/fixtureresources
824c55be3b2d0e1fb8da00ceb48a1bf3a30c967c
[ "BSD-3-Clause" ]
null
null
null
sphinxdocs/conf.py
nokia/fixtureresources
824c55be3b2d0e1fb8da00ceb48a1bf3a30c967c
[ "BSD-3-Clause" ]
1
2019-03-04T12:46:08.000Z
2019-03-04T12:46:08.000Z
sphinxdocs/conf.py
nokia/fixtureresources
824c55be3b2d0e1fb8da00ceb48a1bf3a30c967c
[ "BSD-3-Clause" ]
1
2019-02-27T13:48:07.000Z
2019-02-27T13:48:07.000Z
# -*- coding: utf-8 -*- # # cloudataf.interactivesessions documentation build configuration file, created by # sphinx-quickstart on Fri Feb 19 16:21:30 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # aut...
33.692308
82
0.730086
123657f4e872b800e737a44d05d8355a82d58913
50,719
py
Python
pyscf/pbc/dft/numint.py
y-yao/pyscf_arrow
079088a5d92af1570167004f411207deb104a1bb
[ "Apache-2.0" ]
1
2019-07-01T12:39:45.000Z
2019-07-01T12:39:45.000Z
pyscf/pbc/dft/numint.py
y-yao/pyscf_arrow
079088a5d92af1570167004f411207deb104a1bb
[ "Apache-2.0" ]
null
null
null
pyscf/pbc/dft/numint.py
y-yao/pyscf_arrow
079088a5d92af1570167004f411207deb104a1bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
41.03479
95
0.543366
7c52b96515268fc47f5225d8047748884ee0e206
1,917
py
Python
DeclareATest/v2/TestableContext.py
djscheuf/FluentPyTestAPI
e7e3f1d90022909e9951c8b812dea7f550948fea
[ "MIT" ]
null
null
null
DeclareATest/v2/TestableContext.py
djscheuf/FluentPyTestAPI
e7e3f1d90022909e9951c8b812dea7f550948fea
[ "MIT" ]
null
null
null
DeclareATest/v2/TestableContext.py
djscheuf/FluentPyTestAPI
e7e3f1d90022909e9951c8b812dea7f550948fea
[ "MIT" ]
null
null
null
""" Purpose: The Testable contexts holds the arrangement, and the expectations previously declared, as well as the specified action from previous contexts. It then provides a method so that the specified test may be fun. """ from .core import ComponentEnum.TestComponents as TestComponents class TestableContext...
40.787234
152
0.634846
95b6002ccfa26d537f1ade8d10bfde124187640e
4,240
py
Python
Hao-Wei/Dash_app_final/apps/data_frame.py
kiwymic/operation_goldfish-1
47bff3a2732b398aeccb53b6d98a3e95e83f8382
[ "MIT" ]
null
null
null
Hao-Wei/Dash_app_final/apps/data_frame.py
kiwymic/operation_goldfish-1
47bff3a2732b398aeccb53b6d98a3e95e83f8382
[ "MIT" ]
null
null
null
Hao-Wei/Dash_app_final/apps/data_frame.py
kiwymic/operation_goldfish-1
47bff3a2732b398aeccb53b6d98a3e95e83f8382
[ "MIT" ]
2
2021-09-01T17:49:35.000Z
2021-09-03T22:27:41.000Z
## Plotly and Dash Loading import plotly.express as px # from jupyter_dash import JupyterDash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State import dash_leaflet as dl import dash_leaflet.express as dlx from dash_extensions.javascript import assi...
36.239316
106
0.521226
1cb832f741e80c3e478f8801c42fa108b220e41a
21,485
py
Python
openmdao/visualization/n2_viewer/tests/n2_gui_test.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
openmdao/visualization/n2_viewer/tests/n2_gui_test.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
openmdao/visualization/n2_viewer/tests/n2_gui_test.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
"""Test N2 GUI with multiple models using Pyppeteer.""" import asyncio from pyppeteer_fork import launch import subprocess import unittest import os try: from parameterized import parameterized except ImportError: from openmdao.utils.assert_utils import SkipParameterized as parameterized # set DEBUG to True i...
34.321086
134
0.536514
561e03b00152773826fb24fc49ca14ec3534bf47
1,214
py
Python
pictoplot/view.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
pictoplot/view.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
pictoplot/view.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
from turtle import * import io '''Draw the gcode''' class ViewGCode(): i=0 gcode=[] scale=5 #Setup the class def __init__(self): i=0 gcode=[] #Read the file with the GCode data def readGcode(self,file): f = open(file, 'r') self.gcode = f.readlines() f.close...
21.298246
97
0.505766
ca8de99f2a7805b44400b172d5f9757ff1ee7537
1,986
py
Python
rally/plugins/openstack/context/network/existing_network.py
boris-42/rally
8da58ac92d36de736138240cc825a0423e11ff83
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
rally/plugins/openstack/context/network/existing_network.py
boris-42/rally
8da58ac92d36de736138240cc825a0423e11ff83
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/network/existing_network.py
boris-42/rally
8da58ac92d36de736138240cc825a0423e11ff83
[ "Apache-2.0" ]
1
2020-06-05T10:06:37.000Z
2020-06-05T10:06:37.000Z
# 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 agreed to in writing, software #...
35.464286
79
0.710977
11b8377e292f07ff93a6378d3e49a6530b1bdb81
6,995
py
Python
sdk/python/kfp/compiler/v2_compat.py
sudabon/pipelines
5892bf97d08bbb51501d640cabfc310370a9f457
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/compiler/v2_compat.py
sudabon/pipelines
5892bf97d08bbb51501d640cabfc310370a9f457
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/compiler/v2_compat.py
sudabon/pipelines
5892bf97d08bbb51501d640cabfc310370a9f457
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
36.243523
81
0.632023
43fb658d2eaf936b35a8d5d69dd9c0a4b5f2d79d
1,133
py
Python
_backups/python-package/sentinel/config.py
14avengers/sentinel
825768d2242ad28896c41684bc08e8527cdf2f30
[ "MIT" ]
342
2017-08-21T20:12:56.000Z
2022-03-19T17:58:25.000Z
_backups/python-package/sentinel/config.py
14avengers/sentinel
825768d2242ad28896c41684bc08e8527cdf2f30
[ "MIT" ]
57
2017-11-13T11:16:47.000Z
2022-03-01T13:54:31.000Z
_backups/python-package/sentinel/config.py
14avengers/sentinel
825768d2242ad28896c41684bc08e8527cdf2f30
[ "MIT" ]
72
2017-11-23T05:13:24.000Z
2022-02-25T14:18:33.000Z
import os BOOTNODE_URLS = [ 'enode://d041402ba778320ed31a2b7fdf1c29df4c28dfcde92a907194d53b56d3786c50119515d96ab33d5eae31c0e6a74ac2d05ba607f1f78f81e80f51f9c7de477490@104.155.171.23:30301' ] class Config: def __init__(self, sentinel_data_path=None, network_id=None, bootnode_url=None, rpc_apis=None,...
39.068966
161
0.727273
0dc03e743e796ff8b8307a798194ad48ddf7213a
1,291
py
Python
func/schemas.py
manukanne/tutorial-az-func-fastapi
ed0f9bd9bd6355b131135f50d289a94eaafd02cc
[ "MIT" ]
null
null
null
func/schemas.py
manukanne/tutorial-az-func-fastapi
ed0f9bd9bd6355b131135f50d289a94eaafd02cc
[ "MIT" ]
null
null
null
func/schemas.py
manukanne/tutorial-az-func-fastapi
ed0f9bd9bd6355b131135f50d289a94eaafd02cc
[ "MIT" ]
1
2022-03-27T07:19:59.000Z
2022-03-27T07:19:59.000Z
from pydantic import BaseModel, validator from typing import Optional """ Contains all schemas alias domain models of the application. For domain modelling, the library pydantic is used. Pydantic allows to create versatile domain models and ensures data integrity and much more. """ class ProductBase(BaseModel): ...
23.053571
91
0.634392
27dcec59c524ba9d4d08eda5c5ba444ba9888591
152
py
Python
test/tests/operator__name__.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/operator__name__.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/operator__name__.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# expected: fail import operator for op in sorted(dir(operator)): if op.startswith("_"): continue print getattr(operator, op).__name__
19
40
0.677632
796560dbb3be18c5386c9d8f068d7d07c03e1506
34,845
py
Python
guess_letter.py
OzRayan/Guess_Letter_-tk-
7114dfce445fd5e5f2ff42c6b1f8eb4358848091
[ "BSD-3-Clause" ]
null
null
null
guess_letter.py
OzRayan/Guess_Letter_-tk-
7114dfce445fd5e5f2ff42c6b1f8eb4358848091
[ "BSD-3-Clause" ]
5
2018-06-19T08:01:28.000Z
2022-03-11T23:30:19.000Z
guess_letter.py
OzRayan/Guess_Letter_-tk-
7114dfce445fd5e5f2ff42c6b1f8eb4358848091
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import setup as st import record as rc from time import strftime, sleep from tkinter import (Tk, Label, Button, Frame, StringVar, IntVar, DISABLED, NORMAL, SUNKEN, SOLID, RIGHT, LEFT, TOP, BOTTOM, BOTH, CENTER) class Hangman: """Hangman class, ...
38.249177
80
0.533821
f8be6d29e9ccaa2183803ecea8b2806fea53ba9c
9,725
py
Python
src/tests/ftest/nvme/nvme_pool_capacity.py
kmajzero/daos
286aee8fde0d77838be7c2405885a9958c085ffb
[ "BSD-2-Clause-Patent" ]
2
2021-07-14T12:21:50.000Z
2021-07-14T12:21:52.000Z
src/tests/ftest/nvme/nvme_pool_capacity.py
kmajzero/daos
286aee8fde0d77838be7c2405885a9958c085ffb
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/nvme/nvme_pool_capacity.py
kmajzero/daos
286aee8fde0d77838be7c2405885a9958c085ffb
[ "BSD-2-Clause-Patent" ]
1
2021-04-13T16:04:21.000Z
2021-04-13T16:04:21.000Z
#!/usr/bin/python """ (C) Copyright 2020-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import time import threading import uuid from itertools import product from apricot import TestWithServers from write_host_file import write_host_file from test_utils_pool import TestPool from test_u...
40.520833
80
0.548483
5600a100a1115a945b20c55d0a1ea5170552f79a
3,481
py
Python
LeetCode/03_Hard/lc_295.py
Zubieta/CPP
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
8
2017-03-02T07:56:45.000Z
2021-08-07T20:20:19.000Z
LeetCode/03_Hard/lc_295.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
null
null
null
LeetCode/03_Hard/lc_295.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
1
2021-08-07T20:20:20.000Z
2021-08-07T20:20:20.000Z
# 295 - Find Median From Data Stream (Hard) # https://leetcode.com/problems/find-median-from-data-stream/ import heapq class MedianFinder: def __init__(self): """ Initialize your data structure here. """ self.lower = [] self.higher = [] def addNum(self, num): ...
39.11236
79
0.557598
20d8c1429e7451ec055cd0510077a230ade596c8
974
py
Python
tests/test_integration/test_api.py
Midnighter/dummy-repo
aee4b9a91830c9b726efbcb7bb14c1f6d01210b6
[ "Apache-2.0" ]
null
null
null
tests/test_integration/test_api.py
Midnighter/dummy-repo
aee4b9a91830c9b726efbcb7bb14c1f6d01210b6
[ "Apache-2.0" ]
null
null
null
tests/test_integration/test_api.py
Midnighter/dummy-repo
aee4b9a91830c9b726efbcb7bb14c1f6d01210b6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, Moritz E. Beber. # # 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 i...
31.419355
74
0.752567
81e7393dd6b0da581aa495b65fa3d21bd0af3acd
5,003
py
Python
examples/Arctic_HYCOM/remap_clm.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
examples/Arctic_HYCOM/remap_clm.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
examples/Arctic_HYCOM/remap_clm.py
dcherian/pyroms
fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time from datetime import datetime from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox import _remapping class nctime(object): pass def remap_clm(...
31.465409
97
0.625825
7c1c2f97c6978188e173a27279ede671ac6321cf
13,434
py
Python
thumt/utils/hooks.py
whr94621/THUMT
7a90191b74286f6fe4d6753d8cd5a9376fdadd62
[ "BSD-3-Clause" ]
145
2018-12-03T05:47:26.000Z
2022-02-25T07:55:52.000Z
THUMT-master/thumt/utils/hooks.py
shawnkx/Fast-MoS
af54093c7368da34d6b709ab8aaf4fd2218348d8
[ "MIT" ]
11
2018-12-03T06:03:25.000Z
2021-11-16T12:18:59.000Z
THUMT-master/thumt/utils/hooks.py
shawnkx/Fast-MoS
af54093c7368da34d6b709ab8aaf4fd2218348d8
[ "MIT" ]
24
2018-12-16T08:42:38.000Z
2021-07-13T04:08:47.000Z
# coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import datetime import operator import os import tensorflow as tf import thumt.utils.bleu as bleu def _get_saver(): # Get saver from the SAVERS collecti...
37.420613
78
0.577341
9b931c50184594d54d304819451a354b7df7e8d4
3,165
py
Python
maxsat-evaluations-2021/runsolver_maxsat.py
vgerous/NuWSC-Algorithm
8f68f3ea2eaf7a2bd40e7b90a383b4eb1cac4c45
[ "MIT" ]
null
null
null
maxsat-evaluations-2021/runsolver_maxsat.py
vgerous/NuWSC-Algorithm
8f68f3ea2eaf7a2bd40e7b90a383b4eb1cac4c45
[ "MIT" ]
null
null
null
maxsat-evaluations-2021/runsolver_maxsat.py
vgerous/NuWSC-Algorithm
8f68f3ea2eaf7a2bd40e7b90a383b4eb1cac4c45
[ "MIT" ]
null
null
null
from os import system import time import sys import os import subprocess import datetime from functools import partial from multiprocessing import Pool from subprocess import STDOUT, check_output import subprocess, threading def RunSeedV3(seed, data_index, solver, dataname): runsolver_cmd = "./runsolver -w /dev/nu...
62.058824
237
0.643602
4dbffd18dda8f7017c544584f3848bea28a7804f
883
py
Python
cyder/api/v1/endpoints/dns/address_record/tests.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
6
2015-04-16T23:18:22.000Z
2020-08-25T22:50:13.000Z
cyder/api/v1/endpoints/dns/address_record/tests.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
267
2015-01-01T00:18:57.000Z
2015-10-14T00:01:13.000Z
cyder/api/v1/endpoints/dns/address_record/tests.py
drkitty/cyder
1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8
[ "BSD-3-Clause" ]
5
2015-03-23T00:57:09.000Z
2019-09-09T22:42:37.000Z
from cyder.cydns.address_record.models import AddressRecord from cyder.api.v1.tests.base import APITests class AddressRecordv4API_Test(APITests): __test__ = True model = AddressRecord def create_data(self): obj = AddressRecord.objects.create( ctnr=self.ctnr, description='Address Recor...
29.433333
79
0.647792
4c3990fb33591b72672276545f5d7c988baaf19d
13,358
py
Python
environments/dataset_generator_from_sampling.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
5
2019-08-21T22:57:21.000Z
2021-01-01T21:15:26.000Z
environments/dataset_generator_from_sampling.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
null
null
null
environments/dataset_generator_from_sampling.py
bunthet01/robotics-rl-srl
21bed859ca821844b2e1a90f4786675c9e1dd151
[ "MIT" ]
null
null
null
#""" #This is the script to generate dataset for policy distillation without having to access to each teacher's environment. #What we need is only the generative model(cvae, cvae_new, cgan,cgan_new,gan, vae) and policy model of each teacher task (and the srl model that used to train each teacher's RL task.) # It is des...
52.590551
264
0.652792
96920582693379aff734ba2ce044332ebf8b7262
26,696
py
Python
tests/python/unittest/test_target_codegen_cuda.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_target_codegen_cuda.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
1
2020-04-20T18:42:29.000Z
2020-04-20T18:42:29.000Z
tests/python/unittest/test_target_codegen_cuda.py
retamia/tvm
5d25dc54d874bf2ddf0e8cf34c4748e9e2656fd8
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
38.02849
117
0.561582
ed9752194a8331f366a3ef3f5212e31d5b5d3b6d
91
py
Python
enthought/tvtk/pyface/tvtk_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/tvtk/pyface/tvtk_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/tvtk/pyface/tvtk_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from tvtk.pyface.tvtk_scene import *
22.75
38
0.835165
03b806c8cc0be8155bede01008dad83a30604010
217
py
Python
learn_python/operating_system.py
yehonadav/yonadav_tutorials
e797fdaeaea4c5d85392f724442645afb9391f15
[ "Apache-2.0" ]
2
2019-08-04T17:30:53.000Z
2020-09-21T08:39:55.000Z
learn_python/operating_system.py
yehonadav/yonadav_tutorials
e797fdaeaea4c5d85392f724442645afb9391f15
[ "Apache-2.0" ]
5
2019-10-31T14:55:58.000Z
2022-02-26T04:06:39.000Z
learn_python/operating_system.py
yehonadav/yonadav_tutorials
e797fdaeaea4c5d85392f724442645afb9391f15
[ "Apache-2.0" ]
null
null
null
import os import platform class System: name = os.name platform_system = platform.system() platform_release = platform.release() slash = '/' if name == 'nt': slash = '\\' s = System.slash
18.083333
41
0.612903
4f276992c0ddd1f6fe9246e66dc773f8de41a9c1
2,706
py
Python
tests/test_model_signature.py
kittipatv/pydantic
aaec3c9c15581d2de31bcda0fbf096638386ee20
[ "MIT" ]
null
null
null
tests/test_model_signature.py
kittipatv/pydantic
aaec3c9c15581d2de31bcda0fbf096638386ee20
[ "MIT" ]
null
null
null
tests/test_model_signature.py
kittipatv/pydantic
aaec3c9c15581d2de31bcda0fbf096638386ee20
[ "MIT" ]
null
null
null
from inspect import signature from typing import Any, Iterable, Union from pydantic import BaseModel, Extra, Field, create_model def _equals(a: Union[str, Iterable[str]], b: Union[str, Iterable[str]]) -> bool: """ compare strings with spaces removed """ if isinstance(a, str) and isinstance(b, str): ...
31.835294
115
0.583888
780a66948a4135c8e341d6d0ac4b1de625f733dd
3,337
py
Python
napari/components/_tests/test_world_coordinates.py
NHPatterson/napari
d8d2d301b71af79a6a7f8f4bafa1f55a18317dd8
[ "BSD-3-Clause" ]
null
null
null
napari/components/_tests/test_world_coordinates.py
NHPatterson/napari
d8d2d301b71af79a6a7f8f4bafa1f55a18317dd8
[ "BSD-3-Clause" ]
null
null
null
napari/components/_tests/test_world_coordinates.py
NHPatterson/napari
d8d2d301b71af79a6a7f8f4bafa1f55a18317dd8
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from napari.components import ViewerModel def test_translated_images(): """Test two translated images.""" viewer = ViewerModel() np.random.seed(0) data = np.random.random((10, 10, 10)) viewer.add_image(data) viewer.add_image(data, translate=[10, 0, 0]) ass...
34.402062
70
0.621217
811496016f3003aaa2cade3ef6c1a7c55ce40cd8
2,026
py
Python
jmespath/ast.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
jmespath/ast.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
jmespath/ast.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# AST nodes have this structure: # {"type": <node type>", children: [], "value": ""} def comparator(name, first, second): return {'type': 'comparator', 'children': [first, second], 'value': name} def current_node(): return {'type': 'current', 'children': []} def expref(expression): return...
24.409639
80
0.622409
044453085d2ac0e42181b3165095a3b959506d32
1,521
py
Python
utilities/app_metadata.py
imgVOID/autograding-api
7c2f5491607d5d76880827c73565f9f5be5a33ad
[ "Apache-2.0" ]
5
2021-11-08T18:55:09.000Z
2022-02-27T19:14:35.000Z
utilities/app_metadata.py
imgVOID/autograde-py
7c2f5491607d5d76880827c73565f9f5be5a33ad
[ "Apache-2.0" ]
null
null
null
utilities/app_metadata.py
imgVOID/autograde-py
7c2f5491607d5d76880827c73565f9f5be5a33ad
[ "Apache-2.0" ]
2
2021-12-23T05:11:31.000Z
2021-12-26T13:42:21.000Z
""" The `app_metadata` module stores data for formatting metadata in the main.py application file. """ tags_metadata = [ { "name": "default", "description": "Application area-wide settings", }, { "name": "tasks", "description": "Task management with description, solution code...
37.097561
96
0.662064
c5855a93122ee994a48f9cbe670464bb48c44710
17,260
py
Python
mlonmcu/flow/tvm/backend/wrapper.py
tum-ei-eda/mlonmcu
0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46
[ "Apache-2.0" ]
3
2022-03-07T09:38:12.000Z
2022-03-24T09:28:36.000Z
mlonmcu/flow/tvm/backend/wrapper.py
tum-ei-eda/mlonmcu
0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46
[ "Apache-2.0" ]
24
2022-03-07T16:09:32.000Z
2022-03-31T08:08:51.000Z
mlonmcu/flow/tvm/backend/wrapper.py
tum-ei-eda/mlonmcu
0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46
[ "Apache-2.0" ]
1
2022-03-07T09:38:17.000Z
2022-03-07T09:38:17.000Z
# # Copyright (c) 2022 TUM Department of Electrical and Computer Engineering. # # This file is part of MLonMCU. # See https://github.com/tum-ei-eda/mlonmcu.git for further info. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
29.453925
107
0.622654
e544502fdf8063bcd4b5ec5b1753fa336dbc6207
786
py
Python
python/petitBloc/subproc.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
24
2018-01-17T02:58:10.000Z
2021-08-20T20:34:08.000Z
python/petitBloc/subproc.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
2
2018-12-05T08:02:49.000Z
2021-05-21T06:57:02.000Z
python/petitBloc/subproc.py
sol-ansano-kim/unitBlock
ba95a5e5625359d4bbab97cbf18df5ba259e1aee
[ "MIT" ]
5
2018-02-06T05:40:17.000Z
2022-03-19T06:30:20.000Z
import re import subprocess ReLineEnding = re.compile("\n|\r\n") class SubprocessWorker(object): def __init__(self, cmd): self.__command = cmd self.__outputs = [] self.__errors = [] self.__p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) ...
23.818182
100
0.632316
1a189937df14eca49a7646f567811b04c1012448
16,235
py
Python
dpmModule/jobs/evan.py
BBTibber/maplestory_dpm_calc
3a4710d1faaac245104d8144b337f71be3a44961
[ "MIT" ]
null
null
null
dpmModule/jobs/evan.py
BBTibber/maplestory_dpm_calc
3a4710d1faaac245104d8144b337f71be3a44961
[ "MIT" ]
null
null
null
dpmModule/jobs/evan.py
BBTibber/maplestory_dpm_calc
3a4710d1faaac245104d8144b337f71be3a44961
[ "MIT" ]
null
null
null
from ..kernel.graph import DynamicVariableOperation from ..kernel import core from ..kernel.core import CharacterModifier as MDF from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from . import globalSkill from .jobclass import heroes from .jobbranch im...
53.758278
218
0.669726
e3c3dcf8d3fe7d22c4b18ac2261f537021f8c311
6,965
py
Python
errorpro/quantities.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
errorpro/quantities.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
errorpro/quantities.py
benti/Error-Pypagation
108feddc58a705da82fe6fdce658b419b589b533
[ "BSD-3-Clause" ]
null
null
null
from sympy import Symbol, Dummy, sympify, latex, diff, sqrt as sym_sqrt from sympy.utilities.lambdify import lambdify import numpy as np from importlib import import_module from errorpro.units import parse_unit, convert_to_unit from errorpro.dimensions.simplifiers import dim_simplify from errorpro.dimensions.solvers...
31.233184
94
0.622254
22787f9c633b82f300f50a8fe75e4f783284583d
737
py
Python
examples/debug_with_console_f_strings.py
stribny/python-debugging
cc6bc76f8da880cc8add3439cb7baf5db35d61ef
[ "MIT" ]
7
2019-06-24T03:10:38.000Z
2021-03-30T15:19:39.000Z
examples/debug_with_console_f_strings.py
stribny/python-debugging
cc6bc76f8da880cc8add3439cb7baf5db35d61ef
[ "MIT" ]
null
null
null
examples/debug_with_console_f_strings.py
stribny/python-debugging
cc6bc76f8da880cc8add3439cb7baf5db35d61ef
[ "MIT" ]
1
2019-06-28T08:42:38.000Z
2019-06-28T08:42:38.000Z
""" We can use modern Python f-strings to easily print variables to the output console of the program How to use: - run the script with `python debug_with_console_f_strings.py` - observe our state (i, processed_word) printed in the console """ # The output: # i=0, processed_word=Debugging # i=1, processed_word=With #...
29.48
74
0.709634
5e6f8ef5023e1470d66b26fa5dfbccbaf34a91a4
4,681
py
Python
homeassistant/components/upnp/device.py
serenewaffles/core
ee7116d0e85ab24548607d6b970d9915f3e3ae0b
[ "Apache-2.0" ]
2
2021-01-29T02:52:01.000Z
2021-05-15T04:23:18.000Z
homeassistant/components/upnp/device.py
serenewaffles/core
ee7116d0e85ab24548607d6b970d9915f3e3ae0b
[ "Apache-2.0" ]
29
2020-09-17T12:25:33.000Z
2021-06-12T15:36:45.000Z
homeassistant/components/upnp/device.py
serenewaffles/core
ee7116d0e85ab24548607d6b970d9915f3e3ae0b
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""Home Assistant representation of an UPnP/IGD.""" from __future__ import annotations import asyncio from collections.abc import Mapping from ipaddress import IPv4Address from typing import Any from urllib.parse import urlparse from async_upnp_client import UpnpFactory from async_upnp_client.aiohttp import AiohttpSe...
29.815287
85
0.659261
4dcc2b082debf1f4aa39305474f01cbf637c08d3
2,928
py
Python
vtki/examples/downloads.py
GuillaumeFavelier/pyvista
dd2cb22464d0e96d8c92d91106283ee59b8b5041
[ "MIT" ]
null
null
null
vtki/examples/downloads.py
GuillaumeFavelier/pyvista
dd2cb22464d0e96d8c92d91106283ee59b8b5041
[ "MIT" ]
null
null
null
vtki/examples/downloads.py
GuillaumeFavelier/pyvista
dd2cb22464d0e96d8c92d91106283ee59b8b5041
[ "MIT" ]
null
null
null
"""Functions to download sampe datasets from the VTK data repository """ import shutil import os import sys import vtki # Helpers: def delete_downloads(): """Delete all downloaded examples to free space or update the files""" shutil.rmtree(vtki.EXAMPLES_PATH) os.makedirs(vtki.EXAMPLES_PATH) return Tr...
26.862385
93
0.738388
a4a8bab4cac3f1b4ab557bcf60b843fe0fee1ea4
3,771
py
Python
pytorch3d/implicitron/tools/depth_cleanup.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
null
null
null
pytorch3d/implicitron/tools/depth_cleanup.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
null
null
null
pytorch3d/implicitron/tools/depth_cleanup.py
janEbert/pytorch3d
accdac80fb29e82f72d4e8e73135ba8fd790b6c0
[ "MIT", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn.functional as Fu from pytorch3d.ops import wmean from pytorch3d.renderer.cameras i...
33.078947
88
0.601962
a33bee443b37a84e73b6cc3b1cad5c46a5e68712
12,612
py
Python
symphony/bdk/gen/pod_model/immutable_room_attributes.py
symphony-mariacristina/symphony-bdk-python
ef65762739890e826ccfaf38f7a41d61b95e7f22
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/immutable_room_attributes.py
symphony-mariacristina/symphony-bdk-python
ef65762739890e826ccfaf38f7a41d61b95e7f22
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/immutable_room_attributes.py
symphony-mariacristina/symphony-bdk-python
ef65762739890e826ccfaf38f7a41d61b95e7f22
[ "Apache-2.0" ]
null
null
null
""" Pod API This document refers to Symphony API calls that do not need encryption or decryption of content. - sessionToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined...
47.235955
637
0.58706
15c167ed8f2526ebbef2bbb86ed34d572b41ed0d
590
py
Python
BinanceKeys.py
gSulpizio/cryptoBot
8431ffa8243e5c10e7b7fcc811ca63c9d8332d4f
[ "MIT" ]
null
null
null
BinanceKeys.py
gSulpizio/cryptoBot
8431ffa8243e5c10e7b7fcc811ca63c9d8332d4f
[ "MIT" ]
null
null
null
BinanceKeys.py
gSulpizio/cryptoBot
8431ffa8243e5c10e7b7fcc811ca63c9d8332d4f
[ "MIT" ]
null
null
null
"""Reads from keys.json that can be generated with quick_start.py""" import json import traceback try: f=open('settings/keys.json') keys=json.load(f) f.close() except: traceback.print_exc() keys={'public':'', 'secret':''} def key(): """Returns public api key for binance ...
17.878788
69
0.567797
e9f6095c22d437dc1b0ef79c9df9d7f5f399c1a3
2,605
py
Python
test/1.1.0/08/test_1_1_0__08_codemeta_object.py
zmoon/cff-converter-python
ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
[ "Apache-2.0" ]
40
2018-06-13T21:38:35.000Z
2022-03-19T18:34:37.000Z
test/1.1.0/08/test_1_1_0__08_codemeta_object.py
zmoon/cff-converter-python
ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
[ "Apache-2.0" ]
135
2018-03-20T09:35:39.000Z
2022-03-16T14:57:08.000Z
test/1.1.0/08/test_1_1_0__08_codemeta_object.py
zmoon/cff-converter-python
ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
[ "Apache-2.0" ]
14
2018-06-12T20:17:25.000Z
2022-02-02T13:58:58.000Z
import os import pytest from test.contracts.codemeta_object import Contract from cffconvert.behavior_1_1_x.codemeta_object import CodemetaObject from cffconvert import Citation @pytest.fixture(scope="module") def codemeta_object(): fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff") with open(fi...
34.733333
82
0.657965
78b14ca2b42fe3fb172ccc6a6250b463ee95ee2f
3,430
py
Python
pip3/6_3_trans.py
GwenIves/Exercises
6ca3a64b2c3cfbf8e1abd92f127299b732ebbc7f
[ "MIT" ]
1
2017-07-25T08:51:06.000Z
2017-07-25T08:51:06.000Z
pip3/6_3_trans.py
GwenIves/Exercises
6ca3a64b2c3cfbf8e1abd92f127299b732ebbc7f
[ "MIT" ]
null
null
null
pip3/6_3_trans.py
GwenIves/Exercises
6ca3a64b2c3cfbf8e1abd92f127299b732ebbc7f
[ "MIT" ]
null
null
null
#!/bin/env python3 import pickle import os class Transaction(object): def __init__(self, amount, date, ccy="USD", usd_conv_rate=1.0, desc=None): self.__amount = amount self.__date = date self.__ccy = ccy self.__usd_conv_rate = usd_conv_rate self.__desc = desc @property...
25.789474
97
0.616618
6e291be3127e82a175cc36df9928f1193d431f20
2,832
py
Python
models/validators.py
AyronRangel/ControleEstoque
d3de7921824a661ad350f7a1a8e54083de52c9bb
[ "MIT" ]
2
2018-04-02T23:21:55.000Z
2018-06-04T13:44:21.000Z
models/validators.py
AyronRangel/ControleEstoque
d3de7921824a661ad350f7a1a8e54083de52c9bb
[ "MIT" ]
null
null
null
models/validators.py
AyronRangel/ControleEstoque
d3de7921824a661ad350f7a1a8e54083de52c9bb
[ "MIT" ]
1
2019-10-15T22:31:52.000Z
2019-10-15T22:31:52.000Z
# -*- CODING: UTF-8 -*- #Validador de Produtos Produtos.fabricante.requires = IS_NOT_EMPTY() Produtos.equipamento.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, 'produtos.equipamento')] Produtos.part_number.requires = IS_NOT_EMPTY() Produtos.expiracao.requires = IS_DATETIME(format='%d/%m...
41.647059
126
0.719633
8a16f06b6a8c4459987a4db69e5f16ed0621f36c
2,468
py
Python
src/poetry/console/commands/cache/clear.py
danieleades/poetry
9957f6faa3c311533456104bbf35aadce420c32f
[ "MIT" ]
1
2020-07-31T10:42:34.000Z
2020-07-31T10:42:34.000Z
src/poetry/console/commands/cache/clear.py
danieleades/poetry
9957f6faa3c311533456104bbf35aadce420c32f
[ "MIT" ]
1
2021-12-31T19:44:26.000Z
2022-03-08T20:52:13.000Z
src/poetry/console/commands/cache/clear.py
Anselmoo/poetry
f6022eade7485a3b017ef0c8060dffed12e3cdb2
[ "MIT" ]
2
2020-12-07T04:26:21.000Z
2021-09-25T21:46:36.000Z
import os from cleo.helpers import argument from cleo.helpers import option from poetry.console.commands.command import Command class CacheClearCommand(Command): name = "cache clear" description = "Clears Poetry's cache." arguments = [argument("cache", description="The name of the cache to clear.")] ...
29.73494
82
0.536467
bfc36cf7951f81993fc9b6caa9e1fc480d100045
5,926
py
Python
docs/conf.py
jplewa/qiskit-aqua
74792820c07e2cb3b4435fe74ad7541921322583
[ "Apache-2.0" ]
null
null
null
docs/conf.py
jplewa/qiskit-aqua
74792820c07e2cb3b4435fe74ad7541921322583
[ "Apache-2.0" ]
null
null
null
docs/conf.py
jplewa/qiskit-aqua
74792820c07e2cb3b4435fe74ad7541921322583
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
33.670455
91
0.666892
6c69ae6085c61e78d93f8a5094b821a2bd717e36
27,631
py
Python
rmgpy/molecule/resonanceTest.py
keceli/RMG-Py
17c7870195a4feb6e8bf8974292f9bcdca1a1d9d
[ "MIT" ]
null
null
null
rmgpy/molecule/resonanceTest.py
keceli/RMG-Py
17c7870195a4feb6e8bf8974292f9bcdca1a1d9d
[ "MIT" ]
null
null
null
rmgpy/molecule/resonanceTest.py
keceli/RMG-Py
17c7870195a4feb6e8bf8974292f9bcdca1a1d9d
[ "MIT" ]
null
null
null
import unittest from external.wip import work_in_progress from .molecule import Molecule from .resonance import * from .resonance import _clarOptimization, _clarTransformation class ResonanceTest(unittest.TestCase): def testAllylShift(self): """Test allyl shift for hexadienyl radical""" molList ...
34.53875
211
0.593681
f92ab39224ca0070682236d589589ab69886584c
332
py
Python
setup.py
LelandSindt/teslajson
fe6d5d55640ed2afaf2714a5df6c42bb1bd1a001
[ "MIT" ]
null
null
null
setup.py
LelandSindt/teslajson
fe6d5d55640ed2afaf2714a5df6c42bb1bd1a001
[ "MIT" ]
null
null
null
setup.py
LelandSindt/teslajson
fe6d5d55640ed2afaf2714a5df6c42bb1bd1a001
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path setup(name='teslajson', version='1.3.2', description='', url='https://github.com/gglockner/teslajson', py_modules=['teslajson'], author='Greg Glockner', license='MI...
23.714286
51
0.659639
9c8625b2f34dd1fe0f30ecaae3ec53c13c1b6551
1,544
py
Python
algorithms/python/639.py
viing937/leetcode
e21ca52c98bddf59e43522c0aace5e8cf84350eb
[ "MIT" ]
3
2016-10-01T10:15:09.000Z
2017-07-09T02:53:36.000Z
algorithms/python/639.py
viing937/leetcode
e21ca52c98bddf59e43522c0aace5e8cf84350eb
[ "MIT" ]
null
null
null
algorithms/python/639.py
viing937/leetcode
e21ca52c98bddf59e43522c0aace5e8cf84350eb
[ "MIT" ]
null
null
null
from itertools import product class Solution: def numDecodings(self, s): """ :type s: str :rtype: int """ if len(s) <= 1: return self.count(s) mod, m = 10**9+7, self.buildMap() dp = [0] * len(s) dp[0] = m[s[0:1]] dp[1] = m[s[0:2]] +...
27.571429
73
0.333549
09f502d845e4fb2297d9dd3702fc116fc1c63465
496
py
Python
alipay/aop/api/response/AlipayOpenPublicMultimediaDownloadProxyResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenPublicMultimediaDownloadProxyResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenPublicMultimediaDownloadProxyResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenPublicMultimediaDownloadProxyResponse(AlipayResponse): def __init__(self): super(AlipayOpenPublicMultimediaDownloadProxyResponse, self).__init__() ...
31
120
0.800403
acc5f7190ead7370fdab3703b74a999e12a6c2bf
719
py
Python
postagger.py
infinite-void/compilerapi
c0cce3abaff2afda099fcb28fd0ec907870873dd
[ "MIT" ]
null
null
null
postagger.py
infinite-void/compilerapi
c0cce3abaff2afda099fcb28fd0ec907870873dd
[ "MIT" ]
null
null
null
postagger.py
infinite-void/compilerapi
c0cce3abaff2afda099fcb28fd0ec907870873dd
[ "MIT" ]
null
null
null
import nltk from nltk.tokenize import word_tokenize, sent_tokenize import sys import warnings warnings.filterwarnings("ignore") if __name__ == "__main__": contents = sys.argv[1] tokenized = sent_tokenize(contents) test_list=[] for i in tokenized: # Word tokenizers is used to find t...
28.76
64
0.616134
d23319ff69a836421315dfd17402e775a7957b75
22,513
py
Python
lib/nets/network.py
adnappp/trackerByDetection
e05297c8f50298ed375492178101927ef6d816d7
[ "MIT" ]
null
null
null
lib/nets/network.py
adnappp/trackerByDetection
e05297c8f50298ed375492178101927ef6d816d7
[ "MIT" ]
1
2018-12-27T03:44:55.000Z
2019-01-08T02:58:52.000Z
lib/nets/network.py
adnappp/trackerByDetection
e05297c8f50298ed375492178101927ef6d816d7
[ "MIT" ]
1
2019-09-19T06:10:02.000Z
2019-09-19T06:10:02.000Z
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
45.206827
124
0.647226
ee3427c71c3b601174c1ad22902478c53e5b6cc7
4,408
py
Python
ctapipe/io/toymodel.py
cta-sst-1m/ctapipe
10b058f8dcc166177d1eb5b2af638ca37722a021
[ "BSD-3-Clause" ]
1
2020-05-18T12:41:51.000Z
2020-05-18T12:41:51.000Z
ctapipe/io/toymodel.py
cta-sst-1m/ctapipe
10b058f8dcc166177d1eb5b2af638ca37722a021
[ "BSD-3-Clause" ]
null
null
null
ctapipe/io/toymodel.py
cta-sst-1m/ctapipe
10b058f8dcc166177d1eb5b2af638ca37722a021
[ "BSD-3-Clause" ]
1
2021-07-08T16:15:13.000Z
2021-07-08T16:15:13.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Create a toymodel event stream of array events """ import logging import numpy as np import astropy.units as u from ..containers import ( DataContainer, DL1CameraContainer, EventIndexContainer, ) from ..core import traits from ..core import Teles...
29.386667
87
0.595735
68fe4316f3df9d4c37a9d37f82daf47b611c7d7c
466
py
Python
七、数学类/2.fibonacci.py
Lcoderfit/Introduction-to-algotithms
aea2630be6ca2c60186593d6e66b0a59e56dc848
[ "MIT" ]
3
2018-08-25T16:14:16.000Z
2019-10-15T22:25:32.000Z
七、数学类/2.fibonacci.py
Lcoderfit/Introduction-to-algotithms
aea2630be6ca2c60186593d6e66b0a59e56dc848
[ "MIT" ]
null
null
null
七、数学类/2.fibonacci.py
Lcoderfit/Introduction-to-algotithms
aea2630be6ca2c60186593d6e66b0a59e56dc848
[ "MIT" ]
1
2019-10-08T09:03:48.000Z
2019-10-08T09:03:48.000Z
def fibo(max): n, a, b = 0, 0, 1 while n < max: yield b a, b = b, a + b n += 1 return 'done' def draw_heart(): print('\n'.join([''.join([(' happy-birthday'[(x - y) % 15] if ((x * 0.05) ** 2 + (y * 0.1) ** 2 - 1) ** 3 - ( x * 0.05) ** 2 * (y * 0.1) ** 3 <= 0 els...
24.526316
119
0.412017
1b98e275dedd5abbd6b3704c7ea472d03839b26c
2,343
py
Python
google/ads/google_ads/v1/proto/services/ad_group_simulation_service_pb2_grpc.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v1/proto/services/ad_group_simulation_service_pb2_grpc.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/services/ad_group_simulation_service_pb2_grpc.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v1.proto.resources import ad_group_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__simulation__pb2 from google.ads.google_ads.v1.proto.services import ad_group_simulati...
45.057692
182
0.823303
c282f92c8fe2130ee515ebb357b917adffec765e
4,004
py
Python
vumi/transports/cellulant/cellulant_sms.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/transports/cellulant/cellulant_sms.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
vumi/transports/cellulant/cellulant_sms.py
apopheniac/vumi
e04bf32a0cf09292f03dfe8628798adff512b709
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: vumi.transports.cellulant.tests.test_cellulant_sms -*- import json from urllib import urlencode from twisted.internet.defer import inlineCallbacks from vumi.utils import http_request_full from vumi.errors import ConfigError from vumi import log from vumi.config import ConfigDict, ConfigText fro...
38.873786
79
0.629371
3c540db91c61a59b5258fd68613daa58e2edf21a
503
py
Python
ytparty/client/migrations/0005_auto_20171023_0223.py
Gersho/django-ytparty
53fd8ca5709b307b46930086104f0ce04f79fa7c
[ "Apache-2.0" ]
null
null
null
ytparty/client/migrations/0005_auto_20171023_0223.py
Gersho/django-ytparty
53fd8ca5709b307b46930086104f0ce04f79fa7c
[ "Apache-2.0" ]
3
2020-02-11T23:02:03.000Z
2021-06-10T18:01:25.000Z
ytparty/client/migrations/0005_auto_20171023_0223.py
Gersho/ytparty-dj
53fd8ca5709b307b46930086104f0ce04f79fa7c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-23 06:23 from __future__ import unicode_literals from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('client', '0004_auto_20171023_0200'), ] operations = [ migration...
22.863636
86
0.636183
2e12f2c48d93a423922b6d1e327a7dff950cdf73
884
py
Python
Offsets/updateOffsets.py
Kapetaz/XOXOCHEAT
46d82560a23eff24f147c30253711bd19a6c1d55
[ "MIT" ]
1
2020-04-26T05:46:38.000Z
2020-04-26T05:46:38.000Z
Offsets/updateOffsets.py
Kapetaz/XOXOCHEAT
46d82560a23eff24f147c30253711bd19a6c1d55
[ "MIT" ]
null
null
null
Offsets/updateOffsets.py
Kapetaz/XOXOCHEAT
46d82560a23eff24f147c30253711bd19a6c1d55
[ "MIT" ]
null
null
null
import sys def update_offsets(fonte): print("updating offsets...") fonte = fonte.replace('[signatures]','#signatures\n').replace('[netvars]','#netvars\n') try: open("../Hacks/offsets.py",'w').write(fonte) print("update sucessfull!") except: print('"offsets.py" not found')...
25.257143
109
0.573529
6ac2efed90bd777e9223c81ceb4358a8a8af19f3
490
py
Python
epi_judge_python/apply_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/apply_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/apply_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
from typing import List from test_framework import generic_test def apply_permutation(perm: List[int], A: List[int]) -> None: # TODO - you fill in here. return def apply_permutation_wrapper(perm, A): apply_permutation(perm, A) return A if __name__ == '__main__': exit( generic_test.gen...
23.333333
66
0.610204
ed8c505db4e1af796bfbd9cf90bcc3e68f4af65b
1,963
py
Python
ui.py
Koushik0901/image-captioning
cc8f38c72785714f1620d5bb25a323b630db7531
[ "Apache-2.0" ]
null
null
null
ui.py
Koushik0901/image-captioning
cc8f38c72785714f1620d5bb25a323b630db7531
[ "Apache-2.0" ]
null
null
null
ui.py
Koushik0901/image-captioning
cc8f38c72785714f1620d5bb25a323b630db7531
[ "Apache-2.0" ]
null
null
null
import streamlit as st from engine import inference def ui(): st.markdown("# Image Captioning") st.markdown("***A sequence to sequence model to caption images built using PyTorch.\ This model uses inceptionV3 as encoder and LSTM layers as decoder.\ This model is trained on Flickr30k dataset.***") ...
49.075
138
0.670402
513da059cabf47aaf848026e500eb6baea43c383
5,032
py
Python
wagtail_localize_rws_languagecloud/management/commands/update_translated_pages.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
null
null
null
wagtail_localize_rws_languagecloud/management/commands/update_translated_pages.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
6
2022-01-29T14:59:50.000Z
2022-03-31T12:09:06.000Z
wagtail_localize_rws_languagecloud/management/commands/update_translated_pages.py
zerolab/wagtail-localize-rws-languagecloud
35c67c014c195e4e77896c7449643ea78a6aae68
[ "BSD-3-Clause" ]
null
null
null
import logging from django.conf import settings from django.core.management.base import BaseCommand from django.db import transaction from django.db.models.expressions import F, OuterRef, Subquery from wagtail.core.models import Page from wagtail_localize.models import TranslationSource from wagtail_localize_rws_lang...
36.729927
109
0.642488
c719b66a88b1516fca7574696c093a561ed36a8d
52,620
py
Python
elfi/methods/parameter_inference.py
elfi-dev-FL/elfi
0bc0fdcb3751756c2f391c01c03046331c20301d
[ "BSD-3-Clause" ]
null
null
null
elfi/methods/parameter_inference.py
elfi-dev-FL/elfi
0bc0fdcb3751756c2f391c01c03046331c20301d
[ "BSD-3-Clause" ]
null
null
null
elfi/methods/parameter_inference.py
elfi-dev-FL/elfi
0bc0fdcb3751756c2f391c01c03046331c20301d
[ "BSD-3-Clause" ]
null
null
null
"""This module contains common inference methods.""" __all__ = ['Rejection', 'SMC', 'BayesianOptimization', 'BOLFI'] import logging from math import ceil import matplotlib.pyplot as plt import numpy as np import elfi.client import elfi.methods.mcmc as mcmc import elfi.visualization.interactive as visin import elfi....
37.161017
155
0.605739
2cbd107bb482d1cdda2b68c7d3451f9aef33c61f
9,218
py
Python
utils/craft_utils.py
Yorwxue/CRAFT-tf
67cd2cb24c973bb40909f952320d9121962a31c6
[ "Unlicense" ]
null
null
null
utils/craft_utils.py
Yorwxue/CRAFT-tf
67cd2cb24c973bb40909f952320d9121962a31c6
[ "Unlicense" ]
8
2020-11-13T17:45:01.000Z
2022-03-12T00:24:02.000Z
utils/craft_utils.py
Yorwxue/CRAFT-tf
67cd2cb24c973bb40909f952320d9121962a31c6
[ "Unlicense" ]
null
null
null
""" Copyright (c) 2019-present NAVER Corp. MIT License """ # -*- coding: utf-8 -*- import numpy as np import cv2 import math import tensorflow as tf """ auxilary functions """ # unwarp corodinates def warpCoord(Minv, pt): out = np.matmul(Minv, (pt[0], pt[1], 1)) return np.array([out[0]/out[2], out[1]/out[2...
36.14902
122
0.533521
8348d439e2be7a42694587e2f80450dea945aa38
1,753
py
Python
pcapkit/const/hip/group.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
131
2018-10-12T09:45:44.000Z
2022-03-31T18:58:14.000Z
pcapkit/const/hip/group.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
39
2018-08-18T12:15:04.000Z
2022-03-07T20:28:08.000Z
pcapkit/const/hip/group.py
chellvs/PyPCAPKit
f8d66f9955904196b71a6143e49ff4ec4c4922dc
[ "BSD-3-Clause" ]
23
2018-10-12T09:45:52.000Z
2022-03-05T15:23:00.000Z
# -*- coding: utf-8 -*- # pylint: disable=line-too-long """Group IDs""" from aenum import IntEnum, extend_enum __all__ = ['Group'] class Group(IntEnum): """[Group] Group IDs""" #: Reserved [:rfc:`7401`] Reserved = 0 #: 384-bit group [:rfc:`5201`] DEPRECATED Group_384_bit_group = 1 #: OAKL...
25.779412
76
0.597832
72b97ff37bfb47a9db02fdf176e1330b299622c0
69
py
Python
src/user_account/models.py
darshanxyz/shop
213c2dffca9f03a1939ce25ba4ede83e9c865a26
[ "MIT" ]
null
null
null
src/user_account/models.py
darshanxyz/shop
213c2dffca9f03a1939ce25ba4ede83e9c865a26
[ "MIT" ]
33
2017-11-24T19:44:57.000Z
2022-02-12T07:02:53.000Z
apps/accounts/models.py
andresf01/ProyectoDS2
c712b20a5b4757f9e6217bb8bdc77d23d860410e
[ "CC-BY-4.0" ]
1
2017-12-11T09:15:04.000Z
2017-12-11T09:15:04.000Z
from __future__ import unicode_literals from django.db import models
23
39
0.869565
feb17f1d7546aac639a941e095a81fddbb9522b9
1,480
py
Python
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Noch sinnvoller kann man mit der `for`-Schleife arbeiten, wenn man damit Code # für die einzelnen Elemente einer Collection -- bspw. einer `list` -- ausführt. # %% # Damit kann man beispielsweise sagen, dass man die folgenden Tiere mag: tiere = ["Hunde", "Katzen", "Maulwürfe"] def ich_mag(tiere): for tier in t...
28.461538
119
0.690541
72043bc6cb6c726d91ecf86dab5884ea3476604b
1,381
py
Python
noxfile.py
legumeinfo/click_loguru
4cd79e29249b03b17e3a9d6fe3bc7402339bfe7d
[ "BSD-3-Clause" ]
1
2020-11-06T07:46:55.000Z
2020-11-06T07:46:55.000Z
noxfile.py
legumeinfo/click_loguru
4cd79e29249b03b17e3a9d6fe3bc7402339bfe7d
[ "BSD-3-Clause" ]
68
2020-06-01T12:35:14.000Z
2022-03-01T11:04:03.000Z
noxfile.py
legumeinfo/click_loguru
4cd79e29249b03b17e3a9d6fe3bc7402339bfe7d
[ "BSD-3-Clause" ]
3
2020-11-03T08:04:11.000Z
2022-02-14T23:20:35.000Z
# -*- coding: utf-8 -*- """Nox testing environment defs.""" # cribbed from https://cjolowicz.github.io/posts/hypermodern-python-03-linting/ # standard library imports import tempfile # third-party imports import nox CODE_LOCATIONS = ( "click_loguru", "tests", "noxfile.py", ) def install_with_constraint...
28.183673
79
0.627082
185eae0a3a3b5c0235bdd8983b39c3079000ea47
4,349
py
Python
contrib/seeds/generate-seeds.py
BillionaerCoin/BillionaerCoin
0e11b0b1fec56191b4ca93496d1881648498cb84
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
BillionaerCoin/BillionaerCoin
0e11b0b1fec56191b4ca93496d1881648498cb84
[ "MIT" ]
1
2022-01-05T16:30:13.000Z
2022-01-05T16:30:13.000Z
contrib/seeds/generate-seeds.py
BillionaerCoin/BillionaerCoin
0e11b0b1fec56191b4ca93496d1881648498cb84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.28777
98
0.580363
ee5b81bd0ae4df6e7d681b22ed3f7e2a93596639
25,107
py
Python
tomodachi/transport/amqp.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
null
null
null
tomodachi/transport/amqp.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
100
2021-04-21T10:00:09.000Z
2022-03-24T23:13:32.000Z
tomodachi/transport/amqp.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
1
2020-09-04T05:53:16.000Z
2020-09-04T05:53:16.000Z
import asyncio import binascii import functools import hashlib import inspect import logging import re import time from typing import Any, Callable, Dict, List, Match, Optional, Set, Tuple, Union, cast import aioamqp from tomodachi.helpers.dict import get_item_by_path, merge_dicts from tomodachi.helpers.execution_con...
42.917949
120
0.558848
7d162b6548dd8edebe4a5b34190f3c652c2931a6
21,666
py
Python
ansys/dpf/core/operators/result/contact_friction_stress.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
18
2021-10-16T10:38:29.000Z
2022-03-29T11:26:42.000Z
ansys/dpf/core/operators/result/contact_friction_stress.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
79
2021-10-11T23:18:54.000Z
2022-03-29T14:53:14.000Z
ansys/dpf/core/operators/result/contact_friction_stress.py
jfthuong/pydpf-core
bf2895ebc546e0004f759289bfc9a23196559ac3
[ "MIT" ]
5
2021-11-29T18:35:37.000Z
2022-03-16T16:49:21.000Z
""" contact_friction_stress =============== Autogenerated DPF operator classes. """ from warnings import warn from ansys.dpf.core.dpf_operator import Operator from ansys.dpf.core.inputs import Input, _Inputs from ansys.dpf.core.outputs import Output, _Outputs from ansys.dpf.core.operators.specification import PinSpecif...
34.888889
92
0.602695
89d1c8a3db9e14c4518c2d375f911fae2e678ccb
6,872
py
Python
hooks/webkitpy/style/error_handlers.py
nizovn/luna-sysmgr
48b7e2546e81d6ad1604353f2e5ab797a7d1667c
[ "Apache-2.0" ]
3
2018-11-16T14:51:17.000Z
2019-11-21T10:55:24.000Z
WebKit/Tools/Scripts/webkitpy/style/error_handlers.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
1
2021-02-20T13:12:15.000Z
2021-02-20T13:12:15.000Z
WebKit/Tools/Scripts/webkitpy/style/error_handlers.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and...
41.648485
80
0.656577