hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7969954b0ef900150d6dfdb55833fe2a42235b88
2,116
py
Python
Python/scramble-string.py
bssrdf/LeetCode-5
746df5cff523361145a74d9d429dc541a7b99910
[ "MIT" ]
68
2018-01-13T07:15:37.000Z
2022-02-20T12:58:24.000Z
Python/scramble-string.py
ambershen/LeetCode
0c53580697b05fadb3981d97bd25f1d9da65fd2f
[ "MIT" ]
2
2021-12-10T01:43:37.000Z
2021-12-14T21:48:53.000Z
Python/scramble-string.py
ambershen/LeetCode
0c53580697b05fadb3981d97bd25f1d9da65fd2f
[ "MIT" ]
63
2017-04-10T03:38:25.000Z
2022-03-17T23:24:51.000Z
# Time: O(n^4) # Space: O(n^3) # # Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. # # Below is one possible representation of s1 = "great": # # great # / \ # gr eat # / \ / \ # g r e at # / \ # a t # ...
29.802817
117
0.487713
796995e3b92a4474026192ce4ee5aae634b8ab2b
1,118
py
Python
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.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...
37.266667
86
0.762075
7969961cfc77194be041d483d6ac5455e930af1b
14,608
py
Python
tests/core/tests/test_widgets.py
AmbientLighter/django-import-export
46f098712b65b4e7648806190ba64a7c93a0cb37
[ "BSD-2-Clause" ]
1
2021-12-06T21:06:02.000Z
2021-12-06T21:06:02.000Z
tests/core/tests/test_widgets.py
ShedrackGodson/django-import-export
27af318341480d1505b7affe6bb3a84e62dad81c
[ "BSD-2-Clause" ]
null
null
null
tests/core/tests/test_widgets.py
ShedrackGodson/django-import-export
27af318341480d1505b7affe6bb3a84e62dad81c
[ "BSD-2-Clause" ]
null
null
null
from datetime import date, datetime, time, timedelta from decimal import Decimal from unittest import mock import pytz from core.models import Author, Category from django.test import TestCase from django.test.utils import override_settings from django.utils import timezone from import_export import widgets class B...
34.45283
86
0.655668
796996fb069016d155bdff3e51fce229ccb4d504
10,084
py
Python
examples/working_memory.py
OddBallJen/pyClarion
15d9e5da520868c0e1b738f077d12eccfb5d5618
[ "MIT" ]
null
null
null
examples/working_memory.py
OddBallJen/pyClarion
15d9e5da520868c0e1b738f077d12eccfb5d5618
[ "MIT" ]
null
null
null
examples/working_memory.py
OddBallJen/pyClarion
15d9e5da520868c0e1b738f077d12eccfb5d5618
[ "MIT" ]
null
null
null
"""Demonstrates a more complex simulation, where NACS guides ACS.""" from pyClarion import ( feature, chunk, terminus, features, chunks, buffer, subsystem, agent, flow_in, flow_tb, flow_bt, SimpleDomain, SimpleInterface, Construct, Structure, RegisterArray, Stimulus, Constants, TopDown, BottomUp,...
26.60686
80
0.5833
7969985623ad635293453a0e30e782bd3b62b9dc
1,085
py
Python
mit600/psets/ps1/pset1prob2_2008.py
MarkSmithlxviii/python
ae279111499ca8a2691b9435973a88946cc2e3cf
[ "CC0-1.0" ]
null
null
null
mit600/psets/ps1/pset1prob2_2008.py
MarkSmithlxviii/python
ae279111499ca8a2691b9435973a88946cc2e3cf
[ "CC0-1.0" ]
null
null
null
mit600/psets/ps1/pset1prob2_2008.py
MarkSmithlxviii/python
ae279111499ca8a2691b9435973a88946cc2e3cf
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ MIT 6.00 introduction to Computer Science and Programming Problem Set 1 Problem 1 A program to calculate the 1000th prime Created on Sun Sep 11 03:21:40 2016 @author: marka """ from math import log possiblePrime = 3 # start at 3 first odd prime primeCounter = 1 # 1 because the progr...
30.138889
110
0.664516
796998e2eae1ef4e611bbe6fc82efaafbba057d9
2,286
py
Python
example/tutorials/code/tf-ds-lr.py
00make/Rosetta-zh
75f4f59956bd24bbf16637d94bede8b65c9db017
[ "Apache-2.0" ]
null
null
null
example/tutorials/code/tf-ds-lr.py
00make/Rosetta-zh
75f4f59956bd24bbf16637d94bede8b65c9db017
[ "Apache-2.0" ]
null
null
null
example/tutorials/code/tf-ds-lr.py
00make/Rosetta-zh
75f4f59956bd24bbf16637d94bede8b65c9db017
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import math import os import sys import csv import tensorflow as tf import numpy as np import pandas as pd import time import argparse np.set_printoptions(suppress=True) np.random.seed(0) EPOCHES = 1 BATCH_SIZE = 32 learning_rate = 0.03125 DIM_NUM = 11 ROW_NUM = 1279 file_x = "" file_y = "" fi...
21.166667
68
0.7021
79699b488c19a066e6f0c456c3cc668c06907195
2,147
py
Python
migrations/versions/385a63dcf4da_initial_migration.py
kennjr/Blog
457efa3de58069a5aee9178b0f0c6fc238cc56c9
[ "MIT" ]
null
null
null
migrations/versions/385a63dcf4da_initial_migration.py
kennjr/Blog
457efa3de58069a5aee9178b0f0c6fc238cc56c9
[ "MIT" ]
null
null
null
migrations/versions/385a63dcf4da_initial_migration.py
kennjr/Blog
457efa3de58069a5aee9178b0f0c6fc238cc56c9
[ "MIT" ]
null
null
null
"""Initial migration Revision ID: 385a63dcf4da Revises: Create Date: 2022-03-14 16:46:08.208579 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '385a63dcf4da' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
35.196721
76
0.673032
79699baf7392acea51e1ac383603c2d258fa3a75
2,421
py
Python
cron_crawler.py
earthobservatory/s1_qc_ingest
547a9c1890ff68171c7d58d61d55e7dfab0e841a
[ "Apache-2.0" ]
null
null
null
cron_crawler.py
earthobservatory/s1_qc_ingest
547a9c1890ff68171c7d58d61d55e7dfab0e841a
[ "Apache-2.0" ]
null
null
null
cron_crawler.py
earthobservatory/s1_qc_ingest
547a9c1890ff68171c7d58d61d55e7dfab0e841a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Cron script to submit Sentinel-1 crawler job. """ from __future__ import print_function import os, sys, json, requests, argparse from datetime import datetime, timedelta import argparse from hysds_commons.job_utils import submit_mozart_job from hysds.celery import app if __name__ == "__ma...
29.52439
83
0.541099
79699c1389011bf599992136cf25cb11659ff279
1,180
py
Python
examples/advanced/meshquality.py
CommanderPho/vedo
a0784a47d1b1a92f71b81f153c12856ccf7ec242
[ "MIT" ]
null
null
null
examples/advanced/meshquality.py
CommanderPho/vedo
a0784a47d1b1a92f71b81f153c12856ccf7ec242
[ "MIT" ]
null
null
null
examples/advanced/meshquality.py
CommanderPho/vedo
a0784a47d1b1a92f71b81f153c12856ccf7ec242
[ "MIT" ]
null
null
null
"""Metrics of quality for the cells of a triangular mesh (zoom to see cell label values)""" from vedo import dataurl, Mesh, show from vedo.pyplot import histogram mesh = Mesh(dataurl+"panther.stl").computeNormals().lineWidth(0.1).flat() # generate a numpy array for mesh quality mesh.addQuality(measure=6).cmap('RdYlBu...
33.714286
73
0.633898
79699cdeefad067e334857cb4dad6e5b552e2b63
4,829
py
Python
external/mmdetection/tests/ote_params_validation/test_ote_runner_params_validation.py
opencv/openvino_training_extensions
f5d809741e192a2345558efc75899a475019cf98
[ "Apache-2.0" ]
775
2019-03-01T02:13:33.000Z
2020-09-07T22:49:15.000Z
external/mmdetection/tests/ote_params_validation/test_ote_runner_params_validation.py
opencv/openvino_training_extensions
f5d809741e192a2345558efc75899a475019cf98
[ "Apache-2.0" ]
229
2019-02-28T21:37:08.000Z
2020-09-07T15:11:49.000Z
external/mmdetection/tests/ote_params_validation/test_ote_runner_params_validation.py
opencv/openvino_training_extensions
f5d809741e192a2345558efc75899a475019cf98
[ "Apache-2.0" ]
290
2019-02-28T20:32:11.000Z
2020-09-07T05:51:41.000Z
# Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from logging import Logger import pytest import torch.nn as nn from detection_tasks.extension.utils.runner import ( EpochRunnerWithCancel, IterBasedRunnerWithCancel, IterLoader, ) from ote_sdk.test_suite.e2e_test_system im...
36.862595
97
0.658729
79699d107dde82812b17918cc87f6cc265244757
1,892
py
Python
src/genie/libs/parser/iosxe/tests/ShowRunInterface/cli/equal/golden_output19_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowRunInterface/cli/equal/golden_output19_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowRunInterface/cli/equal/golden_output19_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
expected_output = { "interfaces": { "ATM0/3/0.32": { "pvc_vp": 2, "pvc_vc": 32, "pvc_ubr": "1024 48", "output_policy": "policy-cbwfq", "dialer_pool": "1" }, "Dialer0": { "mtu": "1500", "src_ip": "Loopback0", ...
29.5625
66
0.393763
79699f656807cb8bbbf9d571e4497ec3bab38018
1,434
py
Python
test/test_list_received_document_categories_response.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
2
2022-02-17T08:33:17.000Z
2022-03-22T09:27:00.000Z
test/test_list_received_document_categories_response.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
null
null
null
test/test_list_received_document_categories_response.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
null
null
null
""" Fatture in Cloud API v2 - API Reference Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. # noq...
31.173913
278
0.715481
79699f87d9fddde3205aed48fdd82b9ef3abd207
2,747
py
Python
app/models/user_models.py
PaPablo/contactask
442a3524831815d6ff1be228b53a081502dd7478
[ "BSD-2-Clause" ]
null
null
null
app/models/user_models.py
PaPablo/contactask
442a3524831815d6ff1be228b53a081502dd7478
[ "BSD-2-Clause" ]
null
null
null
app/models/user_models.py
PaPablo/contactask
442a3524831815d6ff1be228b53a081502dd7478
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2014 SolidBuilds.com. All rights reserved # # Authors: Ling Thio <ling.thio@gmail.com> from flask_user import UserMixin from flask_user.forms import RegisterForm from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, validators from app.application import db # Define the User data ...
41.621212
109
0.719694
79699f905382b9f773bd27af54a52938f2c8547e
738
py
Python
Learn_Python_the_Hard_Way/ex25.py
XC-Li/old_python_programs
8f9b10120c94cf06978aec3f47be4517f463ca76
[ "MIT" ]
null
null
null
Learn_Python_the_Hard_Way/ex25.py
XC-Li/old_python_programs
8f9b10120c94cf06978aec3f47be4517f463ca76
[ "MIT" ]
null
null
null
Learn_Python_the_Hard_Way/ex25.py
XC-Li/old_python_programs
8f9b10120c94cf06978aec3f47be4517f463ca76
[ "MIT" ]
null
null
null
#ex25 def break_words(stuff): """This function will break words for us""" words = stuff.split(" ") return words def sort_words(words): """Sort the words""" return sorted(words) def print_first_word(words): word = words.pop(0) print word def print_last_word(words): ...
23.806452
48
0.659892
7969a0008b71a7b5e9caa74992f441621460ac2f
281
py
Python
app/institution/admin.py
dialogobrasil/forest500
d1a108f35a5f87108b13d8e9d442a619922e228a
[ "MIT" ]
null
null
null
app/institution/admin.py
dialogobrasil/forest500
d1a108f35a5f87108b13d8e9d442a619922e228a
[ "MIT" ]
null
null
null
app/institution/admin.py
dialogobrasil/forest500
d1a108f35a5f87108b13d8e9d442a619922e228a
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Company) admin.site.register(Financial) admin.site.register(Journalist) admin.site.register(Handle) admin.site.register(HandleRel) admin.site.register(CommodityRel) admin.site.register(SegmentRel)
28.1
34
0.80427
7969a098e98cba5d3a4455f444e73f2fa1979c88
28,330
py
Python
aiohttp/helpers.py
wbolster/aiohttp
eef86e9e385e40e0bc02e9226419f78277284e36
[ "Apache-2.0" ]
null
null
null
aiohttp/helpers.py
wbolster/aiohttp
eef86e9e385e40e0bc02e9226419f78277284e36
[ "Apache-2.0" ]
55
2021-12-04T23:41:32.000Z
2022-03-31T16:24:24.000Z
aiohttp/helpers.py
skhalymon/aiohttp
73b5ca5b7cadc4e8ff1f2c88589979d404220ba2
[ "Apache-2.0" ]
null
null
null
"""Various helper functions""" import asyncio import base64 import binascii import cgi import dataclasses import datetime import enum import functools import netrc import os import platform import re import sys import time import warnings import weakref from collections import namedtuple from contextlib import suppres...
29.915523
88
0.594317
7969a17aefa19b479022e4ede17c18a53849620c
2,537
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy740.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy740.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy740.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=14 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.576087
118
0.634214
7969a2bbb35844dfde47cf0ff9a46a272b06a0bd
2,774
py
Python
tests/test_visitors/test_ast/test_classes/test_method_order.py
BringFido/python-styleguide
56c645e9e1114237dca0cc0b0e25dfe4bb8e975b
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_classes/test_method_order.py
BringFido/python-styleguide
56c645e9e1114237dca0cc0b0e25dfe4bb8e975b
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_classes/test_method_order.py
BringFido/python-styleguide
56c645e9e1114237dca0cc0b0e25dfe4bb8e975b
[ "MIT" ]
1
2021-11-04T02:30:50.000Z
2021-11-04T02:30:50.000Z
import pytest from wemake_python_styleguide.violations.consistency import ( WrongMethodOrderViolation, ) from wemake_python_styleguide.visitors.ast.classes import ( ClassMethodOrderVisitor, ) correct_method_order = """ class Test(object): def __init_subclass__(cls): ... def __new__(self): ...
20.101449
69
0.593367
7969a4b9c38567d2ecd747d94b5e9e2d3ce73f6e
3,132
py
Python
app/auth/views.py
suzaram3/my_dashboard
9f78028875893ac25a829c24bd9343f117c3ef05
[ "MIT" ]
null
null
null
app/auth/views.py
suzaram3/my_dashboard
9f78028875893ac25a829c24bd9343f117c3ef05
[ "MIT" ]
null
null
null
app/auth/views.py
suzaram3/my_dashboard
9f78028875893ac25a829c24bd9343f117c3ef05
[ "MIT" ]
null
null
null
from flask import render_template, redirect, request, url_for, flash from flask_login import current_user, login_required, login_user, logout_user from . import auth from .. import db from .forms import LoginForm, RegistrationForm from ..email import send_email from ..models import User @auth.before_app_request def b...
30.407767
77
0.645913
7969a4db1a3530654ac27deb2e0576f0581fb4a2
4,685
py
Python
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
joeljgeo/landlab
1d2651c76a8a36a7a132f139638192df1823f8fb
[ "MIT" ]
null
null
null
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
joeljgeo/landlab
1d2651c76a8a36a7a132f139638192df1823f8fb
[ "MIT" ]
null
null
null
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
joeljgeo/landlab
1d2651c76a8a36a7a132f139638192df1823f8fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from six.moves import range from landlab.components import FlowAccumulator, SedDepEroder from landlab import ModelParameterDictionary from landlab.plot import imshow from landlab.plot.video_out import VideoPlotter from landlab.plot import channel_profile a...
34.703704
103
0.704589
7969a5a886043d6e4866e756739f9f35354779f3
4,756
py
Python
tools/sshsession.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
null
null
null
tools/sshsession.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
null
null
null
tools/sshsession.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
1
2016-11-10T21:07:58.000Z
2016-11-10T21:07:58.000Z
#!/usr/bin/env python3 """ Usage: sshsession.py [options] [SSHKEY...] options: -h, --help Show this screen and exit. """ import os import re import subprocess import sys import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) from pathlib import Path from docopt import docopt # TOD...
24.515464
80
0.579479
7969a61e5eb3e20b42509a802e21383c74d9da95
1,022
py
Python
examples/tfilt.py
msathia/open-tamil
8e98a584dcf56ac8fe7529464114151f7357c746
[ "MIT" ]
1
2020-05-20T13:54:24.000Z
2020-05-20T13:54:24.000Z
examples/tfilt.py
AasaiAlangaram/open-tamil
6679c60148f0dddc287a892b8c9aaf8a159e99f0
[ "MIT" ]
null
null
null
examples/tfilt.py
AasaiAlangaram/open-tamil
6679c60148f0dddc287a892b8c9aaf8a159e99f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (C) 2013 Muthiah Annamalai # # This file is part of 'open-tamil' package tests # import codecs import sys import tamil from transliterate import * import operator def print_tamil_words( tatext ): taletters = tamil.utf8.get_letters(tatext) # raw words #for word in re.split(u"\s+",...
28.388889
85
0.639922
7969a64b67b3a5565b1ba8b340899752ad073363
610
py
Python
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 2fdabf2bae04 Revises: ffb338ffe1f7 Create Date: 2016-08-25 23:06:44.798337 """ # revision identifiers, used by Alembic. revision = '2fdabf2bae04' down_revision = 'ffb338ffe1f7' import sqlalchemy as sa from alembic import op def upgrade(): ### commands auto generated by Alembic - ...
22.592593
79
0.695082
7969a69eaf22ab2c7ca045a8bb73aee228c57756
1,363
py
Python
convert-location-dump-to-heatmap/location-dump-to-heatmap.py
pennapps2019/data-scripts
668b5469835103b1cfdd8af1923b4573e6e6e698
[ "MIT" ]
null
null
null
convert-location-dump-to-heatmap/location-dump-to-heatmap.py
pennapps2019/data-scripts
668b5469835103b1cfdd8af1923b4573e6e6e698
[ "MIT" ]
null
null
null
convert-location-dump-to-heatmap/location-dump-to-heatmap.py
pennapps2019/data-scripts
668b5469835103b1cfdd8af1923b4573e6e6e698
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This Python 3 script converts a file outputted by the StillSpace app # into data formatted for a Google Maps Heatmap. # # The input file must be in the same directory, named 'location_log.csv'. # The output file will be in the same directory, named 'location_heatmap.json'. import csv filter...
25.240741
90
0.636831
7969a75514e682aa48a82b63eff7d0168b60d8c1
434
py
Python
mapper.py
matthewmuccio/SimpleDataExtraction
e67d2227956b03688a4c95aa20281388d55d316e
[ "MIT" ]
null
null
null
mapper.py
matthewmuccio/SimpleDataExtraction
e67d2227956b03688a4c95aa20281388d55d316e
[ "MIT" ]
null
null
null
mapper.py
matthewmuccio/SimpleDataExtraction
e67d2227956b03688a4c95aa20281388d55d316e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sqlite3 # Standard library import def record_price(ticker_symbol, last_price): connection = sqlite3.connect("master.db", check_same_thread=False) cursor = connection.cursor() cursor.execute("INSERT INTO {0}(last_price) VALUES({1});".format(ticker_symbol, last_price)) connection.com...
22.842105
93
0.748848
7969a75712449956f1cee03d4d4b3cd0b722d688
3,437
py
Python
examples/hydrus-demo-server/demo.py
WinstonPais/hydrus
0d1ccaa8fd2512d815f32c627327d0ce4770c220
[ "MIT" ]
214
2017-02-06T17:52:18.000Z
2022-02-14T08:42:34.000Z
examples/hydrus-demo-server/demo.py
WinstonPais/hydrus
0d1ccaa8fd2512d815f32c627327d0ce4770c220
[ "MIT" ]
447
2016-12-16T11:33:43.000Z
2022-02-25T10:44:14.000Z
examples/hydrus-demo-server/demo.py
WinstonPais/hydrus
0d1ccaa8fd2512d815f32c627327d0ce4770c220
[ "MIT" ]
233
2017-05-30T08:33:05.000Z
2022-03-04T12:05:17.000Z
"""Demo script for setting up Hydrus with any db and any API Doc.""" from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from hydrus.app import app_factory from hydrus.utils import set_session, set_doc, set_hydrus_server_url, set_api_name, set_authentication, set_token from hy...
39.965116
113
0.66657
7969a76636c66a604414f83d45749fdcebcaa199
410
py
Python
academic_helper/migrations/0009_auto_20200628_0038.py
AviH0/coursist
3db05e8a168be33d2f03b9e082ee4779d80be7c7
[ "MIT" ]
null
null
null
academic_helper/migrations/0009_auto_20200628_0038.py
AviH0/coursist
3db05e8a168be33d2f03b9e082ee4779d80be7c7
[ "MIT" ]
null
null
null
academic_helper/migrations/0009_auto_20200628_0038.py
AviH0/coursist
3db05e8a168be33d2f03b9e082ee4779d80be7c7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-27 21:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("academic_helper", "0008_auto_20200604_0112"), ] operations = [ migrations.AlterUniqueToge...
25.625
117
0.682927
7969a854e9826dfa00e9bf2fe2c5b41d5dbea32c
1,819
py
Python
sarpy/__about__.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/__about__.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/__about__.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 National Geospatial-Intelligence Agency # # 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 # t...
39.543478
105
0.748763
7969a956f5bd7704dcee820d43e444c781444971
631
py
Python
code/python/tornado/request-reply-client.py
aschmied/notes
81dab9b138595c8ad0f0d2fe75401d332d8bb4e5
[ "CC-BY-4.0" ]
null
null
null
code/python/tornado/request-reply-client.py
aschmied/notes
81dab9b138595c8ad0f0d2fe75401d332d8bb4e5
[ "CC-BY-4.0" ]
null
null
null
code/python/tornado/request-reply-client.py
aschmied/notes
81dab9b138595c8ad0f0d2fe75401d332d8bb4e5
[ "CC-BY-4.0" ]
null
null
null
# From https://www.tornadoweb.org/en/stable/websocket.html#client-side-support import asyncio import time import tornado.websocket async def main(): # Use wss:// for secure websockets connections. conn = await tornado.websocket.websocket_connect('ws://localhost:8888') while True: request = 'my mes...
28.681818
78
0.66878
7969a95f2aab26b2ffcc12fa0d459d3dbf5a25ae
6,686
py
Python
frappe/utils/csvutils.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/utils/csvutils.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/utils/csvutils.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import msgprint, _ import json import csv from csv import QUOTE_NONNUMERIC, QUOTE_ALL, QUOTE_MINIMAL, QUOTE_NONE import six import requests from six impo...
29.584071
135
0.702064
7969aa028ed0c624cf4990735a5abcbae13ece26
10,700
py
Python
c_global/partially_observable_cG.py
fstrnad/pyDRLinWESM
1d41340fb1888ec90f700c726fd7239e3cef3eae
[ "BSD-2-Clause" ]
6
2020-04-23T11:07:42.000Z
2021-09-14T07:05:21.000Z
c_global/partially_observable_cG.py
fstrnad/pyDRLinWESM
1d41340fb1888ec90f700c726fd7239e3cef3eae
[ "BSD-2-Clause" ]
null
null
null
c_global/partially_observable_cG.py
fstrnad/pyDRLinWESM
1d41340fb1888ec90f700c726fd7239e3cef3eae
[ "BSD-2-Clause" ]
2
2021-07-29T23:54:04.000Z
2022-01-16T19:01:26.000Z
""" This is the implementation of a partially observable environment. The internal environment is still deterministic, however does not capture the full state information. Which state information is provided can be chosen arbitrarily. @author: Felix Strnad """ from c_global.cG_LAGTPKS_Environment import cG_LAGTPKS_E...
33.4375
136
0.456916
7969aad7532309b78af41494a28cd17b2863d6bb
1,701
py
Python
dga_ktrain.py
amir1m/dga-detection
001df4e352a99d345ca3b928d5e946e3b5499829
[ "MIT" ]
null
null
null
dga_ktrain.py
amir1m/dga-detection
001df4e352a99d345ca3b928d5e946e3b5499829
[ "MIT" ]
null
null
null
dga_ktrain.py
amir1m/dga-detection
001df4e352a99d345ca3b928d5e946e3b5499829
[ "MIT" ]
null
null
null
SEED = 42 import numpy as np np.random.seed(SEED) import pandas as pd from sklearn.model_selection import train_test_split import ktrain from ktrain import text dga_df = pd.read_csv("data/legit-dga_domains.csv") dga_df.head() dga_df['class'].value_counts() dga_df['subclass'].value_counts() dga_df_pp = dga_df.cop...
23.957746
67
0.692534
7969ab624f91e173bfb0dc246d8be4ba35360af1
13,915
py
Python
object_detection/det_heads/det_utils/target_assign.py
no-name-xiaosheng/PaddleViT
50226a3be5095b3727d3c62d2eab23ef1e9612ec
[ "Apache-2.0" ]
993
2021-08-30T01:58:57.000Z
2022-03-31T14:03:07.000Z
object_detection/det_heads/det_utils/target_assign.py
Dongsheng-Bi/PaddleViT
c90a6c8dc3787e69cef3a37b9a260bd59eeff1f7
[ "Apache-2.0" ]
120
2021-09-03T13:05:32.000Z
2022-03-29T02:08:22.000Z
object_detection/det_heads/det_utils/target_assign.py
Dongsheng-Bi/PaddleViT
c90a6c8dc3787e69cef3a37b9a260bd59eeff1f7
[ "Apache-2.0" ]
253
2021-08-30T08:50:27.000Z
2022-03-26T09:21:08.000Z
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
45.622951
107
0.611067
7969ab99ab0313057cd1289f615ecd93a6f68de8
827
py
Python
contentcuration/contentcuration/migrations/0027_auto_20160926_0945.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
1
2019-03-30T18:14:25.000Z
2019-03-30T18:14:25.000Z
contentcuration/contentcuration/migrations/0027_auto_20160926_0945.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
4
2016-05-06T17:19:30.000Z
2019-03-15T01:51:24.000Z
contentcuration/contentcuration/migrations/0027_auto_20160926_0945.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
4
2016-10-18T22:49:08.000Z
2019-09-17T11:20:51.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-26 16:45 from __future__ import unicode_literals import contentcuration.models from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('contentcuration', ...
28.517241
133
0.659008
7969abf740675191d55e0dc65d6bf596a5af409a
513
py
Python
backend/env/lib/python3.8/site-packages/cffi/__init__.py
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
backend/env/lib/python3.8/site-packages/cffi/__init__.py
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
virtual/lib/python3.6/site-packages/cffi/__init__.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
__all__ = ['FFI', 'VerificationError', 'VerificationMissing', 'CDefError', 'FFIError'] from .api import FFI from .error import CDefError, FFIError, VerificationError, VerificationMissing from .error import PkgConfigError __version__ = "1.14.0" __version_info__ = (1, 14, 0) # The verifier module file names...
34.2
78
0.758285
7969acba0ac234c6f24ae81932a56ae4401b71af
3,166
py
Python
tests/pythontests/conftest.py
orientwalt/htdf
7750375eae29598b017e904586c8a98f41ae1fda
[ "Apache-2.0" ]
13
2020-03-20T11:47:46.000Z
2021-12-13T10:42:21.000Z
tests/pythontests/conftest.py
orientwalt/htdf
7750375eae29598b017e904586c8a98f41ae1fda
[ "Apache-2.0" ]
91
2020-03-23T13:32:29.000Z
2021-10-13T10:27:55.000Z
tests/pythontests/conftest.py
orientwalt/htdf
7750375eae29598b017e904586c8a98f41ae1fda
[ "Apache-2.0" ]
6
2020-04-09T02:23:40.000Z
2021-02-21T13:33:37.000Z
import pytest import os PARAMETERS_REGTEST = { 'CHAINID': 'testchain', 'ADDRESS': 'htdf1xwpsq6yqx0zy6grygy7s395e2646wggufqndml', 'PRIVATE_KEY': '279bdcd8dccec91f9e079894da33d6888c0f9ef466c0b200921a1bf1ea7d86e8', 'RPC_HOST': '127.0.0.1', 'RPC_PORT': 1317, 'VALIDATOR_ADDRESS':'', 'VALIDATOR_...
34.043011
98
0.662982
7969acf1b9dc54784efc82a6f661826e0fc8247a
29,687
py
Python
maskrcnn.py
StarwalkerZYX/mask-rcnn-pytorch
8599c06740d7508c09f8a8d84eafb893577c6e4c
[ "MIT" ]
null
null
null
maskrcnn.py
StarwalkerZYX/mask-rcnn-pytorch
8599c06740d7508c09f8a8d84eafb893577c6e4c
[ "MIT" ]
null
null
null
maskrcnn.py
StarwalkerZYX/mask-rcnn-pytorch
8599c06740d7508c09f8a8d84eafb893577c6e4c
[ "MIT" ]
null
null
null
from backbones.resnet_fpn import ResNetFPN from backbones.resnet import ResNet from backbones.vgg16 import VGG16 from heads.common import HeadCommon from heads.cls_bbox import ClsBBoxHead from heads.mask import MaskHead from tools.detect_utils import calc_iou, bbox_corner2center, bbox_center2corner from proposal.rpn im...
44.776772
102
0.57638
7969acfbf10de0b45f0285b514e1f301a147e877
4,489
py
Python
scipy/optimize/tests/test_trustregion.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
3
2021-12-15T10:06:16.000Z
2022-02-08T19:55:58.000Z
scipy/optimize/tests/test_trustregion.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
3
2021-03-23T21:51:50.000Z
2021-04-06T10:51:42.000Z
scipy/optimize/tests/test_trustregion.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
1
2018-11-28T02:59:34.000Z
2018-11-28T02:59:34.000Z
""" Unit tests for trust-region optimization routines. To run it in its simplest form:: nosetests test_optimize.py """ import itertools from copy import deepcopy import numpy as np from numpy.testing import assert_, assert_equal, assert_allclose from scipy.optimize import (minimize, rosen, rosen_der, rosen_hess, ...
41.183486
78
0.586768
7969ae5619aa3e0d8f6cd3ea7ba6fbdc46198627
1,428
py
Python
setup.py
zorani/cloudapi
fc70abf820daaaf9c49c25bfbb6205b3c968bc0d
[ "MIT" ]
null
null
null
setup.py
zorani/cloudapi
fc70abf820daaaf9c49c25bfbb6205b3c968bc0d
[ "MIT" ]
null
null
null
setup.py
zorani/cloudapi
fc70abf820daaaf9c49c25bfbb6205b3c968bc0d
[ "MIT" ]
null
null
null
from distutils.core import setup # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.html"), encoding="utf-8") as f: long_description = f.read() setup( name="cloudapi", packages=["cloudapi"], ver...
37.578947
101
0.656162
7969ae8769226985b0ebcd0d74ddc7204e2a7ec6
8,666
py
Python
indicators/indicators.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
indicators/indicators.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
indicators/indicators.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015 - 2022, Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # import datetime as dt import subprocess import json import os import matplotlib.pyplot as plt import matplotlib.dates as mdates import time import sys class Query: def __init__(self, ...
35.08502
98
0.569121
7969aedeb2d9407f9f28b5037093a5d047135d4c
1,323
py
Python
app/migrations/0001_initial.py
IC1101Virgo/annapurna
7ffbebc82e3bee99db5b50d80e71fb0eb5e99c19
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
IC1101Virgo/annapurna
7ffbebc82e3bee99db5b50d80e71fb0eb5e99c19
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
IC1101Virgo/annapurna
7ffbebc82e3bee99db5b50d80e71fb0eb5e99c19
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2020-12-19 21:20 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Hospital', fields=[ ('id',...
35.756757
115
0.507181
7969b021457280499c3e7eb37f5e826ed4bc36e8
1,448
py
Python
tests/test_client.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
14
2016-03-07T03:50:07.000Z
2021-01-10T23:52:50.000Z
tests/test_client.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
14
2016-03-12T00:51:33.000Z
2021-11-02T19:07:47.000Z
tests/test_client.py
culqi/culqi-python
26d65fcc609ad2f1fdfddfe7961f126414bd64fd
[ "MIT" ]
21
2016-04-01T05:12:34.000Z
2021-03-04T19:31:00.000Z
import os import unittest from dotenv import load_dotenv from culqi import __version__ from culqi.client import Culqi class ClientTest(unittest.TestCase): def __init__(self, *args, **kwargs): super(ClientTest, self).__init__(*args, **kwargs) load_dotenv() self.version = __version__ ...
32.909091
75
0.65884
7969b054b668479816d8f956cc334985ad5fba50
17,101
py
Python
tests/pre/test_cleaners.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
14
2019-04-14T01:02:21.000Z
2021-02-05T18:19:24.000Z
tests/pre/test_cleaners.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
4
2019-06-07T18:30:37.000Z
2020-04-13T05:07:21.000Z
tests/pre/test_cleaners.py
bcottman/paso
c3deab78081d9d7f5a4aca6848979667743cf5be
[ "MIT" ]
1
2020-02-20T00:48:30.000Z
2020-02-20T00:48:30.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- __coverage__ = 0.86 __author__ = "Bruce_H_Cottman" __license__ = "MIT License" "" import warnings warnings.filterwarnings("ignore") import pytest import numpy as np import pandas as pd from sklearn.datasets import make_classification # paso imports from paso.base import ...
26.595645
88
0.65657
7969b0d02ca9f4c46ce936fc8ed2f170670670a8
13,748
py
Python
gooddata-metadata-client/gooddata_metadata_client/model/json_api_workspace_data_filter_setting_out.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
gooddata-metadata-client/gooddata_metadata_client/model/json_api_workspace_data_filter_setting_out.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
gooddata-metadata-client/gooddata_metadata_client/model/json_api_workspace_data_filter_setting_out.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
""" OpenAPI definition No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0 Contact: support@gooddata.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sy...
45.372937
153
0.581321
7969b1dae13354fd2795d8886bd016096d206bd7
8,798
py
Python
lp/ui/apis.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
lp/ui/apis.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
lp/ui/apis.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
from lxml import etree from urllib2 import urlopen from pymarc import marcxml from django.conf import settings from django.utils import simplejson as json from ui.templatetags.launchpad_extras import clean_isbn def get_bib_data(num, num_type): for api in settings.API_LIST: bib = globals()[api['name']]...
34.637795
92
0.544897
7969b22cc44ae37843767a1c05008fb0abad570e
461
py
Python
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_cure_disease_b.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_cure_disease_b.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_cure_disease_b.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/chemistry/shared_medpack_cure_disease_b.iff" result.attrib...
27.117647
87
0.735358
7969b2e2605b9a075a1a3ba69410c84c29b4c61f
725
py
Python
pytglib/api/functions/ping_proxy.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/functions/ping_proxy.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/functions/ping_proxy.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class PingProxy(Object): """ Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization Attributes: ID (:obj:`str`): ``PingProxy`` Args: proxy_id (:obj:`int`): Proxy identifierUse 0 t...
21.969697
122
0.608276
7969b383ab7d65603c54855642069545a44893cb
1,788
py
Python
src/rightClickHelper/tool/systemTool.py
NWYLZW/right-click-helper
7562740b70797d02f026a464618734ba9816b764
[ "MIT" ]
24
2020-12-15T08:20:02.000Z
2021-12-03T12:37:23.000Z
src/rightClickHelper/tool/systemTool.py
NWYLZW/right-click-helper
7562740b70797d02f026a464618734ba9816b764
[ "MIT" ]
3
2021-01-02T12:31:07.000Z
2021-04-27T09:02:24.000Z
src/rightClickHelper/tool/systemTool.py
NWYLZW/right-click-helper
7562740b70797d02f026a464618734ba9816b764
[ "MIT" ]
1
2021-01-01T13:25:29.000Z
2021-01-01T13:25:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __all__ = ['SystemTool'] import ctypes, win32ui, win32gui import os from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import QFileDialog from PyQt5.QtWinExtras import QtWin class SystemTool: @staticmethod def getFilePathByQFileDialog( parent=None, capt...
30.305085
85
0.582774
7969b55d026c2b0bec2bf3225636832c3ec67940
2,855
py
Python
TestTextureGlyph.py
darrenleeweber/pyBEM
bc4b96ec93cd202b7a80f2803011f29582bb5393
[ "Apache-2.0" ]
null
null
null
TestTextureGlyph.py
darrenleeweber/pyBEM
bc4b96ec93cd202b7a80f2803011f29582bb5393
[ "Apache-2.0" ]
null
null
null
TestTextureGlyph.py
darrenleeweber/pyBEM
bc4b96ec93cd202b7a80f2803011f29582bb5393
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Run this test like so: # $ vtkpython TestTextureGlyph.py -D $VTK_DATA_ROOT \ # -B $VTK_DATA_ROOT/Baseline/Graphics/ # # $ vtkpython TestTextureGlyph.py --help # provides more details on other options. import os import os.path import vtk from vtk.test import Testing class TestTextureGlyph(T...
29.132653
72
0.595096
7969b5d73f672214726cf9b52effe971c38d0a0d
383
py
Python
HDP/HDP/asgi.py
divpala1/Heart-Disease-Predictor
158983cc29a9ba8a1f2bfae38fe67cd8d1c06790
[ "MIT" ]
null
null
null
HDP/HDP/asgi.py
divpala1/Heart-Disease-Predictor
158983cc29a9ba8a1f2bfae38fe67cd8d1c06790
[ "MIT" ]
null
null
null
HDP/HDP/asgi.py
divpala1/Heart-Disease-Predictor
158983cc29a9ba8a1f2bfae38fe67cd8d1c06790
[ "MIT" ]
null
null
null
""" ASGI config for HDP project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_...
22.529412
78
0.780679
7969b72b859bf3207b341d7a2aaf5156cb694561
804
py
Python
manage.py
jwilson/frugal
005abc1d61ca38f99b5d3ddfe2ec38e47660175d
[ "MIT" ]
3
2020-04-17T23:35:45.000Z
2022-03-15T02:19:49.000Z
manage.py
jwilson/frugal
005abc1d61ca38f99b5d3ddfe2ec38e47660175d
[ "MIT" ]
1
2018-06-12T16:04:00.000Z
2018-06-12T17:05:58.000Z
manage.py
jwilson/frugal
005abc1d61ca38f99b5d3ddfe2ec38e47660175d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "frugal.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.956522
77
0.641791
7969b7675b0ebdd4bef88d8e3f125ce2507539b2
12,947
py
Python
src/utils.py
lzw-pku/IRNet
bef26eb5f59409f616b3b76e68ca724a07a529be
[ "MIT" ]
223
2019-11-11T09:06:51.000Z
2022-03-17T06:55:56.000Z
src/utils.py
KevinQian97/Semantic-Error-Correction
0cbad02e4a6c8638af12c14856df84d143f9299d
[ "Apache-2.0" ]
50
2019-11-17T08:08:09.000Z
2022-02-13T08:54:02.000Z
src/utils.py
KevinQian97/Semantic-Error-Correction
0cbad02e4a6c8638af12c14856df84d143f9299d
[ "Apache-2.0" ]
86
2019-11-11T09:07:50.000Z
2022-02-14T07:41:33.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # -*- coding: utf-8 -*- """ # @Time : 2019/5/25 # @Author : Jiaqi&Zecheng # @File : utils.py # @Software: PyCharm """ import json import time import copy import numpy as np import os import torch from nltk.stem import W...
35.765193
118
0.587163
7969b8401867cae136f43d5ebfba16923b662ccd
3,267
py
Python
desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf/form.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf/form.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf/form.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
17
2018-10-24T06:32:45.000Z
2022-02-09T13:10:54.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2006-2007 Søren Roug, European Environment Agency # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at you...
28.163793
80
0.673095
7969b86c6abe83c9207ef3105b80e5cbe83838d0
1,001
py
Python
IP_Geolocate.py
C0nquer0r/IP_Geolocator
d323baddb8254f488eb6606b53f2340b3f03c197
[ "MIT" ]
1
2020-09-28T19:09:49.000Z
2020-09-28T19:09:49.000Z
IP_Geolocate.py
C0nquer0r/IP_Geolocator
d323baddb8254f488eb6606b53f2340b3f03c197
[ "MIT" ]
null
null
null
IP_Geolocate.py
C0nquer0r/IP_Geolocator
d323baddb8254f488eb6606b53f2340b3f03c197
[ "MIT" ]
null
null
null
import os import json import sys Banner = """ \-/-\-\-/-\-\-/-\-\-/-\-\-/-\-\-/-\-\-/-\-\- .--'';'-. ,' <_-,- .`. IP-Geolocation Finder /) ,---,__>\_\ Created By: C0nquer0r |' . ( IP * \_ | |_ `--. / | < Have Fun Finding! > \`-. , ; _(>/ `.( \_/ ,' ['exit' or ctrl-c to qu...
22.244444
49
0.40959
7969b87c0a664dd2fdc6167b74bda37323dd0f06
543
py
Python
setup.py
thedvlyouknow/lanran-cli
2388af4a215b21a01bce939c0e73491696512765
[ "MIT" ]
null
null
null
setup.py
thedvlyouknow/lanran-cli
2388af4a215b21a01bce939c0e73491696512765
[ "MIT" ]
null
null
null
setup.py
thedvlyouknow/lanran-cli
2388af4a215b21a01bce939c0e73491696512765
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='lancer-randomizer', version='0.0.1', author = 'thedvlyouknow', author_email = 'thedvlyouknow@protonmail.com', license = 'MIT license', description = 'A command line tool to generate random groups of lancer componants for scavenger style play', ...
28.578947
113
0.626151
7969b88fd442509cf71a54e831ac545a4b1dc588
40,753
py
Python
fmriprep/workflows/bold/base.py
mgxd/fmriprep-rodents
904a899f569c38c967120a5f17d8ce6e437361e9
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/base.py
mgxd/fmriprep-rodents
904a899f569c38c967120a5f17d8ce6e437361e9
[ "BSD-3-Clause" ]
null
null
null
fmriprep/workflows/bold/base.py
mgxd/fmriprep-rodents
904a899f569c38c967120a5f17d8ce6e437361e9
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Orchestrating the BOLD-preprocessing workflow ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autofunction:: init_func_preproc_wf .. autofunction:: init_func_derivatives_wf """ from ... import config...
43.53953
99
0.605379
7969b892fb7e62c7eb72e0f70684e561ad938084
4,587
py
Python
nilmtk/stats/tests/test_locategoodsections.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
3
2018-11-09T16:13:32.000Z
2019-11-10T20:10:10.000Z
nilmtk/stats/tests/test_locategoodsections.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
null
null
null
nilmtk/stats/tests/test_locategoodsections.py
BaluJr/energytk
e9b06bcb43a40010ccc40a534a7067ee520fb3a7
[ "Apache-2.0" ]
1
2018-10-24T10:28:52.000Z
2018-10-24T10:28:52.000Z
#!/usr/bin/python from __future__ import print_function, division import unittest from os.path import join import numpy as np import pandas as pd from datetime import timedelta from nilmtk.stats import GoodSections from nilmtk.stats.goodsectionsresults import GoodSectionsResults from nilmtk import TimeFrame, ElecMeter,...
39.543103
99
0.59625
7969b9f74129c323c7d9240a38dc7fbbdd1e1bb8
3,163
py
Python
sqlLibs/obs/o_sql_1.py
omikabir/whatsApp
8c586a0a6eb9b721d021c96773c213c352337dea
[ "MIT" ]
null
null
null
sqlLibs/obs/o_sql_1.py
omikabir/whatsApp
8c586a0a6eb9b721d021c96773c213c352337dea
[ "MIT" ]
null
null
null
sqlLibs/obs/o_sql_1.py
omikabir/whatsApp
8c586a0a6eb9b721d021c96773c213c352337dea
[ "MIT" ]
null
null
null
import pandas as pd import os #from mysql import * from sqlalchemy import create_engine from datetime import * def create_db_table(server, conn, tablename, cols, cols_datatype = False): st = "" finalstr = '' x = "" cur = conn.cursor() try: cur.execute('select 1 from ' + tablename) ...
40.037975
138
0.535567
7969bd8c4b9114bcbf1e529191730051a9a31b7c
3,937
py
Python
shapeworld/generators/random_attributes.py
RobinDelearde/ShapeWorld
335e33b503c265c0adaf9769f4868df2eb088eb6
[ "MIT" ]
52
2017-02-07T12:02:11.000Z
2022-03-09T10:35:52.000Z
shapeworld/generators/random_attributes.py
RobinDelearde/ShapeWorld
335e33b503c265c0adaf9769f4868df2eb088eb6
[ "MIT" ]
30
2017-11-29T15:18:48.000Z
2021-12-12T10:27:08.000Z
shapeworld/generators/random_attributes.py
RobinDelearde/ShapeWorld
335e33b503c265c0adaf9769f4868df2eb088eb6
[ "MIT" ]
27
2017-04-18T21:14:29.000Z
2021-07-08T14:14:00.000Z
from random import random from shapeworld import util from shapeworld.world import Entity from shapeworld.generators import GenericGenerator class RandomAttributesGenerator(GenericGenerator): def __init__( self, world_size=64, world_colors=('black',), shapes=('square', 'rectangle'...
42.333333
242
0.683007
7969befecc0cc2191c15fb9edc483af1b318277f
292
py
Python
pyartifactory/__init__.py
bala-27/python-artifactory
9f915348a46daef34978f034b2afaa03a40e9349
[ "MIT" ]
1
2022-03-28T09:58:20.000Z
2022-03-28T09:58:20.000Z
pyartifactory/__init__.py
bala-27/python-artifactory
9f915348a46daef34978f034b2afaa03a40e9349
[ "MIT" ]
null
null
null
pyartifactory/__init__.py
bala-27/python-artifactory
9f915348a46daef34978f034b2afaa03a40e9349
[ "MIT" ]
null
null
null
""" Import all object definitions here. """ from pyartifactory.objects import ( ArtifactoryUser, ArtifactoryGroup, ArtifactorySecurity, ArtifactoryRepository, ArtifactoryArtifact, ArtifactoryPermission, Artifactory, AccessTokenModel, ) __version__ = "1.9.5"
17.176471
35
0.726027
7969bf1abe91af80d5b67a8dfd9bf2bc89e55621
9,223
py
Python
Online-Chess-Game/board.py
Aditya-Kashyap/Python-Games
9fcd79bae0f0f35be1402615f1f5ce73884ee6d5
[ "MIT" ]
null
null
null
Online-Chess-Game/board.py
Aditya-Kashyap/Python-Games
9fcd79bae0f0f35be1402615f1f5ce73884ee6d5
[ "MIT" ]
1
2020-02-25T11:53:36.000Z
2020-02-25T11:53:36.000Z
Online_Chess_Game/board.py
ssergiuk/Projects
f8d098b170c8076de0af0c502912a1972916ae71
[ "MIT" ]
1
2020-10-01T02:18:38.000Z
2020-10-01T02:18:38.000Z
from piece import Bishop from piece import King from piece import Rook from piece import Pawn from piece import Queen from piece import Knight import time import pygame class Board: rect = (113, 113, 525, 525) startX = rect[0] startY = rect[1] def __init__(self, rows, cols): self.rows = rows ...
34.803774
176
0.446167
7969c0dfd7854750f5511eb180ee148729f16d9c
3,767
py
Python
configs/category_attribute_predict/roi_predictor_resnet.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
952
2019-10-31T01:49:07.000Z
2022-03-29T11:33:27.000Z
configs/category_attribute_predict/roi_predictor_resnet.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
135
2019-11-02T07:09:04.000Z
2022-03-17T06:08:11.000Z
configs/category_attribute_predict/roi_predictor_resnet.py
RyanJiang0416/mmfashion
89f56e3e631b4f5c1403f7e8897396cc02b5aa91
[ "Apache-2.0" ]
239
2019-10-31T02:08:40.000Z
2022-03-22T03:14:38.000Z
import os # model settings arch = 'resnet' attribute_num = 26 category_num = 50 img_size = (224, 224) model = dict( type='RoIAttrCatePredictor', backbone=dict(type='ResNet', setting='resnet50'), global_pool=dict( type='GlobalPooling', inplanes=(7, 7), pool_plane=(2, 2), int...
32.474138
79
0.642686
7969c1bed9c419b42d7f1ab7e3c3931376a259e9
4,780
py
Python
tom_education/serializers.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
1
2019-07-16T11:20:55.000Z
2019-07-16T11:20:55.000Z
tom_education/serializers.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
45
2019-07-05T08:49:17.000Z
2019-09-23T14:02:17.000Z
tom_education/serializers.py
joesingo/tom_education
9bf9ea3d465f83040e4618ce89efbab2a087b2fa
[ "MIT" ]
null
null
null
import os.path from django.shortcuts import reverse from django.contrib.sites.shortcuts import get_current_site from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from rest_framework import serializers from tom_targets.models import Target from tom_dataproducts.models import DataPro...
31.447368
99
0.688703
7969c255543e027f2a61f9947bf66f9fdaba5e63
416
py
Python
test/code/for/for9.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
10
2017-09-30T14:31:42.000Z
2021-12-12T07:52:05.000Z
test/code/for/for9.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
56
2017-04-11T15:47:15.000Z
2019-10-11T15:50:35.000Z
test/code/for/for9.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
3
2019-06-20T07:08:39.000Z
2020-10-24T19:29:05.000Z
from qgl2.qgl2 import concur, qreg, qgl2decl from qgl2.qgl2 import Qbit @qgl2decl def MEAS(q: qreg): CHANMEAS(q) @qgl2decl def setup(a: qreg, b: qreg, c: qreg): with concur: for q in [a, b, c]: for i in range(10): if MEAS(q): break X90(...
14.857143
44
0.497596
7969c2b280a4c606e6095cd7b25bf539ea3ea3e6
19,027
py
Python
resolwe/flow/executors/startup_processing_container.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/startup_processing_container.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/startup_processing_container.py
gregorjerse/resolwe
3f9e4c56e5302266576d3e0574ba7f028c79bca6
[ "Apache-2.0" ]
null
null
null
"""Processing container startup script.""" import asyncio import concurrent import functools import json import logging import os import shlex import shutil import signal import sys import time import uuid from contextlib import suppress from distutils.util import strtobool from pathlib import Path # The directory whe...
39.069815
88
0.601146
7969c2faf5726d412ca72811f3ead899a8b08850
3,050
py
Python
app/__init__.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
1
2021-03-13T09:46:46.000Z
2021-03-13T09:46:46.000Z
app/__init__.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
14
2020-09-20T10:00:24.000Z
2021-07-10T14:28:54.000Z
app/__init__.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
2
2021-01-17T20:24:45.000Z
2021-01-24T12:03:51.000Z
import flask from uuid import uuid4 from loguru import logger from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_marshmallow import Marshmallow from flask_cors import CORS import rq_dashboard from app.utils.http_request_util import limiter from app.utils.authent...
34.269663
107
0.689508
7969c481ffb7d3a9ac170f857a98e7c22a210328
32
py
Python
Problem199.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
Problem199.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
Problem199.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
""" Iterative Circle Packing """
10.666667
24
0.6875
7969c5ad30e2fd229482a6874547a5cfb923c15b
3,507
py
Python
kws_streaming/models/gru.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
2
2020-11-09T08:04:33.000Z
2020-11-09T08:04:57.000Z
kws_streaming/models/gru.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
null
null
null
kws_streaming/models/gru.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
1
2020-09-23T11:38:32.000Z
2020-09-23T11:38:32.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
31.881818
78
0.700884
7969c5eeae7450f0ca99407497aa667caa0bfb61
3,174
py
Python
wz/ui/pupil_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/pupil_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/pupil_grid.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/pupil_grid.py Last updated: 2021-05-21 Manage the grid for the pupil-data editor. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License...
32.387755
77
0.575614
7969c76e11733896d413de3be2a2e5f9a995934d
3,936
py
Python
lib/modules/powershell/management/invoke_sharpchisel.py
terrorizer1980/Empire
9259e5106986847d2bb770c4289c0c0f1adf2344
[ "BSD-3-Clause" ]
2
2021-01-15T21:16:02.000Z
2021-05-16T21:02:36.000Z
lib/modules/powershell/management/invoke_sharpchisel.py
terrorizer1980/Empire
9259e5106986847d2bb770c4289c0c0f1adf2344
[ "BSD-3-Clause" ]
null
null
null
lib/modules/powershell/management/invoke_sharpchisel.py
terrorizer1980/Empire
9259e5106986847d2bb770c4289c0c0f1adf2344
[ "BSD-3-Clause" ]
1
2022-01-04T17:36:40.000Z
2022-01-04T17:36:40.000Z
from __future__ import print_function from builtins import str from builtins import object from lib.common import helpers class Module(object): def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Invoke-SharpChiselClient', 'Author': ['@jpillora', '@shantanukhande'],...
35.142857
116
0.530234
7969c7e0f5be8e7f05c81b3a1f04b50c9c403230
1,762
py
Python
requests/structures.py
roipoussiere/requests
48516c6d5eb737b0ef09201091da9fa869c57415
[ "ISC" ]
31
2015-01-20T12:49:17.000Z
2022-02-21T05:21:44.000Z
requests/structures.py
roipoussiere/requests
48516c6d5eb737b0ef09201091da9fa869c57415
[ "ISC" ]
2
2015-07-08T19:40:41.000Z
2018-04-26T21:34:35.000Z
requests/structures.py
roipoussiere/requests
48516c6d5eb737b0ef09201091da9fa869c57415
[ "ISC" ]
8
2015-02-26T13:19:45.000Z
2022-03-27T08:34:20.000Z
# -*- coding: utf-8 -*- """ requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ class CaseInsensitiveDict(dict): """Case-insensitive Dictionary For example, ``headers['content-encoding']`` will return the value of a ``'Content-Encoding'`` response header.""" @property ...
26.298507
78
0.616345
7969c80237e378985d7c871f922dce567b3f3a74
1,334
py
Python
features/macho/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2017-12-14T14:25:17.000Z
2019-03-09T03:29:12.000Z
features/macho/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
10
2019-06-14T09:12:55.000Z
2021-10-01T12:15:43.000Z
features/macho/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2019-05-10T14:59:48.000Z
2022-03-07T16:34:23.000Z
from regression_tests import * class TestX86C(Test): settings = TestSettings( input='hello.x86.clang.macho', ) def test_has_main_function(self): assert self.out_c.has_func( 'main' ) class TestX86Cpp(Test): settings = TestSettings( input='hello.cpp.x86.clang.macho', ) ...
25.653846
76
0.646927
7969c97b0f5ce541e3a16f5637436be81e028e2b
1,620
py
Python
db/create_db.py
endk17/autotrader
86854cc526deba32a7c0587f1212a0a707b26b29
[ "MIT" ]
1
2021-09-12T17:43:55.000Z
2021-09-12T17:43:55.000Z
db/create_db.py
endk17/autotrader
86854cc526deba32a7c0587f1212a0a707b26b29
[ "MIT" ]
null
null
null
db/create_db.py
endk17/autotrader
86854cc526deba32a7c0587f1212a0a707b26b29
[ "MIT" ]
1
2021-09-26T22:25:56.000Z
2021-09-26T22:25:56.000Z
import config import sqlite3 connection = sqlite3.connect(config.DB_FILE) cursor = connection.cursor() cursor.execute(""" CREATE TABLE IF NOT EXISTS stock ( id INTEGER PRIMARY KEY, symbol TEXT NOT NULL UNIQUE, name TEXT NOT NULL, exchange TEXT NOT NULL, shortable BOOLEAN...
22.5
66
0.620988
7969c9e4c5ae2bb09a90958962ba9bf3fbff48dd
581
py
Python
lib/galaxy/model/migrate/versions/0160_hda_set_deleted_if_purged_again.py
yvanlebras/galaxy
6b8489ca866825bcdf033523120a8b24ea6e6342
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0160_hda_set_deleted_if_purged_again.py
yvanlebras/galaxy
6b8489ca866825bcdf033523120a8b24ea6e6342
[ "CC-BY-3.0" ]
2
2017-05-18T16:12:55.000Z
2022-03-08T12:08:43.000Z
lib/galaxy/model/migrate/versions/0160_hda_set_deleted_if_purged_again.py
yvanlebras/galaxy
6b8489ca866825bcdf033523120a8b24ea6e6342
[ "CC-BY-3.0" ]
null
null
null
""" Migration script to set the 'deleted' column of the 'history_dataset_association' table to True if 'purged' is True. """ import logging from galaxy.model.migrate.versions.util import engine_true log = logging.getLogger(__name__) def upgrade(migrate_engine): print(__doc__) cmd = f"UPDATE history_dataset...
24.208333
119
0.743546
7969cb1daf8c6d947af5078f85063ca0f8bd5a5a
107,213
py
Python
jax/api.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/api.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/api.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-17T18:17:31.000Z
2020-07-17T18:17:31.000Z
# coding=utf-8 # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
42.8852
128
0.681251
7969cc1cb6cd25d0fde0ea63dc53803fcf6fdd31
9,761
py
Python
data/coco.py
ZHANGHeng19931123/MutualGuide
acf317f48fa5af63d3aa41cd8ebe5586d9bdf033
[ "MIT" ]
124
2020-10-01T13:37:02.000Z
2022-03-25T13:31:03.000Z
data/coco.py
ZHANGHeng19931123/MutualGuide
acf317f48fa5af63d3aa41cd8ebe5586d9bdf033
[ "MIT" ]
4
2020-10-09T06:20:42.000Z
2021-12-19T22:28:50.000Z
data/coco.py
ZHANGHeng19931123/MutualGuide
acf317f48fa5af63d3aa41cd8ebe5586d9bdf033
[ "MIT" ]
18
2020-10-03T13:32:48.000Z
2021-12-21T06:13:42.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import pickle import os.path import torch import torch.utils.data as data import cv2 import numpy as np import json from .data_augment import preproc_for_train from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval COCOroot = os.path.join('data...
40.004098
101
0.564286
7969cc283e2a0fced04bef8dc53e5a56bb093468
2,209
py
Python
dataloader/pretrained_weights/pretrain_zoo.py
PauliKarl/RotationDetection
84bbfe5b1a3ee36e8ad66fd0f36a5ef7b9b0019e
[ "Apache-2.0" ]
850
2020-10-27T08:51:54.000Z
2022-03-30T15:12:06.000Z
dataloader/pretrained_weights/pretrain_zoo.py
PauliKarl/RotationDetection
84bbfe5b1a3ee36e8ad66fd0f36a5ef7b9b0019e
[ "Apache-2.0" ]
94
2020-12-01T02:18:47.000Z
2022-03-30T08:14:27.000Z
dataloader/pretrained_weights/pretrain_zoo.py
PauliKarl/RotationDetection
84bbfe5b1a3ee36e8ad66fd0f36a5ef7b9b0019e
[ "Apache-2.0" ]
149
2020-10-29T03:30:32.000Z
2022-03-29T09:53:23.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import class PretrainModelZoo(object): def __init__(self): self.tf_zoo = ['resnet_v1_50', 'resnet_v1_101', 'resnet_v1_152', 'MobilenetV2', 'darknet', 'efficientnet-lite', 'efficientnet'] self.p...
56.641026
107
0.602535
7969cc72f0d855b05e30eea9b722bf48dbaa4d21
3,731
py
Python
catalyst/dl/experiment/supervised.py
vsokhatskyi/catalyst
8516b9d44546600ad597a1fffdf03b7eb23c5e98
[ "Apache-2.0" ]
null
null
null
catalyst/dl/experiment/supervised.py
vsokhatskyi/catalyst
8516b9d44546600ad597a1fffdf03b7eb23c5e98
[ "Apache-2.0" ]
null
null
null
catalyst/dl/experiment/supervised.py
vsokhatskyi/catalyst
8516b9d44546600ad597a1fffdf03b7eb23c5e98
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from torch.optim.lr_scheduler import ReduceLROnPlateau from catalyst.dl import ( Callback, CheckpointCallback, CheckRunCallback, ConsoleLogger, CriterionCallback, ExceptionCallback, MetricManagerCallback, OptimizerCallback, SchedulerCallback, TensorboardLogger, TimerCal...
40.11828
79
0.651568
7969ccc0bc3c9049e862ee809230b1484a476929
1,269
py
Python
utils_core/__init__.py
maxzheng/utils-core
70947725accac0a4af72d6117322e079bccb9670
[ "MIT" ]
null
null
null
utils_core/__init__.py
maxzheng/utils-core
70947725accac0a4af72d6117322e079bccb9670
[ "MIT" ]
null
null
null
utils_core/__init__.py
maxzheng/utils-core
70947725accac0a4af72d6117322e079bccb9670
[ "MIT" ]
2
2019-04-24T20:48:23.000Z
2020-06-01T22:59:45.000Z
from enum import IntEnum def plural(word, count=2): """ Return the plural version the word if there is more than one count, otherwise return as is.""" if count > 1: if word.endswith('sh'): return word + 'es' else: return word + 's' else: return word class...
24.882353
102
0.546887
7969ccd0a7077cfb6beafc6a931f85346c4e0aba
2,176
py
Python
stubs/micropython-v1_17-rp2/os.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_17-rp2/os.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_17-rp2/os.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'os' on micropython-v1.17-rp2 """ # MCU: {'family': 'micropython', 'sysname': 'rp2', 'version': '1.17.0', 'build': '', 'mpy': 5637, 'port': 'rp2', 'platform': 'rp2', 'name': 'micropython', 'arch': 'armv7m', 'machine': 'Raspberry Pi Pico with RP2040', 'nodename': 'rp2', 'ver': 'v1.17', 'release': '1.17.0'} #...
14.604027
272
0.443474
7969cd59ce471bba0f95572ba4cf726fe910cbbe
2,805
py
Python
reach/scraper/tests/test_unicef_spider.py
j-jaworski/reach
4f28eca1b35ce9cb57a0b6eeca788b7179421e91
[ "MIT" ]
null
null
null
reach/scraper/tests/test_unicef_spider.py
j-jaworski/reach
4f28eca1b35ce9cb57a0b6eeca788b7179421e91
[ "MIT" ]
null
null
null
reach/scraper/tests/test_unicef_spider.py
j-jaworski/reach
4f28eca1b35ce9cb57a0b6eeca788b7179421e91
[ "MIT" ]
null
null
null
import unittest from scrapy.http import Response, Request, HtmlResponse from scrapy.utils.project import get_project_settings from reach.scraper.wsf_scraping.spiders.unicef_spider import UnicefSpider from .common import get_path, TEST_PDF class Crawler: class Stats: def get_value(*args): ret...
28.333333
79
0.579323
7969cd8d5c37033198bacdd41dc3af8b8bc93e26
2,591
py
Python
hit_analysis/classification/artifact/too_often.py
credo-science/credo-classify
1cc5e00a4df36c4069c0d0fbc19f579780b79ca5
[ "MIT" ]
null
null
null
hit_analysis/classification/artifact/too_often.py
credo-science/credo-classify
1cc5e00a4df36c4069c0d0fbc19f579780b79ca5
[ "MIT" ]
8
2021-03-30T12:52:01.000Z
2022-03-12T00:19:45.000Z
hit_analysis/classification/artifact/too_often.py
credo-science/credo-classify
1cc5e00a4df36c4069c0d0fbc19f579780b79ca5
[ "MIT" ]
1
2020-06-12T13:29:34.000Z
2020-06-12T13:29:34.000Z
import itertools from typing import List, Tuple from hit_analysis.commons.classify import classify_by_lambda from hit_analysis.commons.consts import ARTIFACT_TOO_OFTEN from hit_analysis.commons.grouping import group_by_timestamp_division from hit_analysis.commons.utils import get_and_set def too_often(detections: Li...
45.45614
129
0.702817
7969cdf4e6b2dc621bcc3296856a899fd886a760
12,667
py
Python
federatedml/ftl/encrypted_ftl.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
1
2019-07-29T13:22:36.000Z
2019-07-29T13:22:36.000Z
federatedml/ftl/encrypted_ftl.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
null
null
null
federatedml/ftl/encrypted_ftl.py
ZZIQIN/FATE
cc6783927564cbb15c067d5010f1cdf82a5de20a
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 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...
45.401434
120
0.701034
7969cdffa8a187557d2610d34b256e1e3595d327
8,116
py
Python
AuthApp/AuthApp.py
Padge91/postgres-web-gui
0b48e3bebf31c8b69078b49f5e9411caaa4c65fe
[ "MIT" ]
null
null
null
AuthApp/AuthApp.py
Padge91/postgres-web-gui
0b48e3bebf31c8b69078b49f5e9411caaa4c65fe
[ "MIT" ]
null
null
null
AuthApp/AuthApp.py
Padge91/postgres-web-gui
0b48e3bebf31c8b69078b49f5e9411caaa4c65fe
[ "MIT" ]
null
null
null
from Classes.Shared import * import uuid, bcrypt import Database.queries as queries import time import Classes.User import config.config as config def login(username, password, dbconn): # validate password results = dbconn.execute_query(queries.get_user_password_and_salt, {"username": username}) ...
32.206349
171
0.673731
7969ce37c79193283ac1a8bd219e77f11b0f4601
2,211
py
Python
setup.py
OpenGeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
1
2021-10-21T04:27:32.000Z
2021-10-21T04:27:32.000Z
setup.py
OpenGeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
3
2018-04-03T03:50:30.000Z
2018-04-12T20:31:49.000Z
setup.py
opengeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function """matrixutils Utilities for working with matrices as linear operators """ from setuptools import find_packages try: from numpy.distutils.core import setup except Exception: raise Exception( "Install requires numpy. " "If you use con...
28.346154
74
0.657621
7969ce9fb230cea24c3446b1f95c42f42e0a310a
694
py
Python
usr/local/lib/python3.6/dist-packages/pycountry_convert/country_name_format.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
15
2018-04-09T00:44:22.000Z
2021-08-03T08:08:07.000Z
usr/local/lib/python3.6/dist-packages/pycountry_convert/country_name_format.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
6
2018-04-09T17:05:24.000Z
2019-06-08T23:05:34.000Z
usr/local/lib/python3.6/dist-packages/pycountry_convert/country_name_format.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
4
2018-07-07T16:45:56.000Z
2019-06-09T13:30:13.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @copyright 2018 TUNE, Inc. (http://www.tune.com) # @namespace pycountry-convert COUNTRY_NAME_FORMAT_DEFAULT = 'default' COUNTRY_NAME_FORMAT_UPPER = 'upper' COUNTRY_NAME_FORMAT_LOWER = 'lower' COUNTRY_NAME_FORMATS = [COUNTRY_NAME_FORMAT_DEFAULT, COUNTRY_NAME_FORMAT_UP...
33.047619
106
0.763689
7969cece6557da11cbb86628d4dac7bbfe85a88d
2,626
py
Python
sdk/lusid/models/tolerance_enum.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/tolerance_enum.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/tolerance_enum.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class ToleranceEnum(object): """NOTE: This class is...
25.745098
83
0.547601
7969cf29942dfbc874fc2c3b0672a2327ba24d3c
893
py
Python
apis/nb/clients/file_service_client/models/FileObjectResult.py
CiscoDevNet/APIC-EM-Generic-Scripts-
74211d9488f1e77cf56ef86dba20ec8e8eb49cc1
[ "ECL-2.0", "Apache-2.0" ]
45
2016-06-09T15:41:25.000Z
2019-08-06T17:13:11.000Z
apis/nb/clients/file_service_client/models/FileObjectResult.py
CiscoDevNet/APIC-EM-Generic-Scripts
74211d9488f1e77cf56ef86dba20ec8e8eb49cc1
[ "ECL-2.0", "Apache-2.0" ]
36
2016-06-12T03:03:56.000Z
2017-03-13T18:20:11.000Z
apis/nb/clients/file_service_client/models/FileObjectResult.py
CiscoDevNet/APIC-EM-Generic-Scripts
74211d9488f1e77cf56ef86dba20ec8e8eb49cc1
[ "ECL-2.0", "Apache-2.0" ]
15
2016-06-22T03:51:37.000Z
2019-07-10T10:06:02.000Z
#!/usr/bin/env python #pylint: skip-file # This source code is licensed under the Apache license found in the # LICENSE file in the root directory of this project. class FileObjectResult(object): def __init__(self): """ Attributes: swaggerTypes (dict): The key is attribute name and the...
22.325
97
0.4972
7969cf7763c72080d0586544ca76e9186234e31d
1,977
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/distutils/line_endings.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/distutils/line_endings.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
rootfs/usr/lib/python3/dist-packages/numpy/distutils/line_endings.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
""" Functions for converting from DOS to UNIX line endings """ import sys, re, os def dos2unix(file): "Replace CRLF with LF in argument files. Print names of changed files." if os.path.isdir(file): print(file, "Directory!") return data = open(file, "rb").read() if '\0' in data: ...
26.36
76
0.594335
7969cf7c6b543f120d4758df108ef9c0b25fc36f
4,802
py
Python
backend/pah_fm/settings.py
w1stler/pah-fm
e69600ba602715ae0b61dfa0bead934a0ed7f36f
[ "MIT" ]
8
2019-08-09T11:06:16.000Z
2021-10-05T14:56:31.000Z
backend/pah_fm/settings.py
w1stler/pah-fm
e69600ba602715ae0b61dfa0bead934a0ed7f36f
[ "MIT" ]
382
2018-10-17T19:05:30.000Z
2022-02-10T07:09:45.000Z
backend/pah_fm/settings.py
w1stler/pah-fm
e69600ba602715ae0b61dfa0bead934a0ed7f36f
[ "MIT" ]
45
2018-10-17T17:04:04.000Z
2021-10-05T14:30:35.000Z
import os import datetime # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Base URL without trailing slash BASE_URL = os.environ.get("BASE_URL") SECRET_KEY = os.environ.get("SECRET_KEY") DEBUG = os.environ.get("DEBUG", "0"...
27.757225
86
0.70429
7969d0901387e3f5f0138973e00a1ce71950ac3e
25,539
py
Python
ZamBot.py
mudimbamoonde/TeleBot
3e07137a55bf83f12601686358d2e866752da362
[ "MIT" ]
1
2021-01-04T19:55:18.000Z
2021-01-04T19:55:18.000Z
ZamBot.py
mudimbamoonde/TeleBot
3e07137a55bf83f12601686358d2e866752da362
[ "MIT" ]
null
null
null
ZamBot.py
mudimbamoonde/TeleBot
3e07137a55bf83f12601686358d2e866752da362
[ "MIT" ]
null
null
null
#!usr/bin/python3 import telebot from telebot import types import time as tm import requests import csv TOKEN = 'YOUR_TOKEN' bot = telebot.TeleBot(TOKEN) bot.remove_webhook() @bot.message_handler(commands=["start"]) def welcome_message(message): # bot.reply_to(message,"Welcome to Zambeef Products PLC") bot...
53.540881
119
0.66373
7969d0c14a844bc5f64409c7d392c066a5831fce
44,640
py
Python
fairseq/models/transformer.py
butsugiri/fairseq-1
e9014fb4245d8408ff763a4f67b8a2365c8b6f3e
[ "MIT" ]
1
2021-04-17T08:29:03.000Z
2021-04-17T08:29:03.000Z
fairseq/models/transformer.py
butsugiri/fairseq-1
e9014fb4245d8408ff763a4f67b8a2365c8b6f3e
[ "MIT" ]
null
null
null
fairseq/models/transformer.py
butsugiri/fairseq-1
e9014fb4245d8408ff763a4f67b8a2365c8b6f3e
[ "MIT" ]
2
2020-04-27T16:59:09.000Z
2020-11-05T05:47:05.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn as nn import torch.nn.functional as F from fairs...
42.272727
159
0.635887
7969d125e3e1fcda315554a0adcdbe1976118f3a
8,403
py
Python
maskrcnn_benchmark/structures/quad_bounding_box.py
nanditab35/R2CNN.pytorch
a3f38bb34d87841d2dbe674fd01e49069529db58
[ "MIT" ]
62
2019-08-13T14:44:21.000Z
2022-02-23T14:34:33.000Z
maskrcnn_benchmark/structures/quad_bounding_box.py
Donaghys/R2CNN.pytorch
8532caf9d379c7666df2d990f78046ba81da88ac
[ "MIT" ]
5
2019-08-15T09:25:40.000Z
2020-12-02T08:09:29.000Z
maskrcnn_benchmark/structures/quad_bounding_box.py
Donaghys/R2CNN.pytorch
8532caf9d379c7666df2d990f78046ba81da88ac
[ "MIT" ]
10
2019-10-16T08:35:44.000Z
2020-10-02T13:04:55.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch # transpose FLIP_LEFT_RIGHT = 0 FLIP_TOP_BOTTOM = 1 class QuadBoxList(object): """ This class represents a set of bounding boxes. The bounding boxes are represented as a Nx4 Tensor. In order to uniquely determine the...
36.694323
97
0.572296
7969d16977312b9e0fd22eeee19f5efc6ac04f14
1,184
py
Python
samples/python/clusqmgr_inq.py
fbraem/mqweb
c030b300a0b7312c24948e0add4eb6a9b7f8a05b
[ "MIT" ]
18
2015-01-12T20:17:27.000Z
2022-02-11T17:40:54.000Z
samples/python/clusqmgr_inq.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
12
2015-01-20T12:47:01.000Z
2019-03-13T07:10:19.000Z
samples/python/clusqmgr_inq.py
hlkiltas/mqweb
9b70e0cba70050e856a9cc5a04c660df8d880d15
[ "MIT" ]
8
2015-01-13T13:52:29.000Z
2021-12-10T12:07:29.000Z
''' Inquire all cluster information from a queuemanager. MQWeb runs on localhost and is listening on port 8081. ''' import json import httplib import socket import argparse parser = argparse.ArgumentParser( description='MQWeb - Python sample - Inquire Cluster Queuemanager', epilog="For more information: http://www...
26.909091
91
0.702703
7969d1bd80e7e118af69a68db5f94c6fb4b6f614
1,368
py
Python
Python3Lab/SungJukV4.py
lkljlh1001/HelloPython
57042aee083a5f0edc05fce24d1709771865a0c7
[ "Apache-2.0" ]
null
null
null
Python3Lab/SungJukV4.py
lkljlh1001/HelloPython
57042aee083a5f0edc05fce24d1709771865a0c7
[ "Apache-2.0" ]
null
null
null
Python3Lab/SungJukV4.py
lkljlh1001/HelloPython
57042aee083a5f0edc05fce24d1709771865a0c7
[ "Apache-2.0" ]
null
null
null
## ***클래스를 이용한 성적프로그램처리*** #성적처리프로그램 V4 #이름name , 국어 kor, 영어eng , 수학 mat # tot , avg , grd #리스트 자료구조를 이용 class SungJuk: def __init__(self,name,kor,eng,mat): self.name = name self.kor = kor self.eng = eng self.mat = mat def getTotal(self): tot = self.kor + self...
19.267606
44
0.578947
7969d2228612b6fc07699254b6ec7537eb89910e
3,667
py
Python
addons/account/tests/test_templates_consistency.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/account/tests/test_templates_consistency.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/account/tests/test_templates_consistency.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo.tests.common import HttpCase class AccountingTestTemplConsistency(HttpCase): '''Test the templates consistency between some objects like account.account when account.account.template. ''' def check_fields_consistency(self, model_from, model_to, exceptions=[]): ''...
58.206349
262
0.688846
7969d30d142a97ddb4c0f58cb00e19a60b7d1356
6,456
py
Python
theano/sandbox/tests/test_multinomial_wo_replacement.py
kyper999/Theano
72823c46089c0e6f3de82e0981081e6e667b7edd
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/tests/test_multinomial_wo_replacement.py
kyper999/Theano
72823c46089c0e6f3de82e0981081e6e667b7edd
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/tests/test_multinomial_wo_replacement.py
kyper999/Theano
72823c46089c0e6f3de82e0981081e6e667b7edd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, division import numpy as np import os from theano import config, function, tensor from theano.compat import PY3 from theano.misc.pkl_utils import CompatUnpickler from theano.sandbox import multinomial from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomS...
35.668508
114
0.591698
7969d3dbb525b50f24a58f7011b1af9e13b5323c
4,701
py
Python
config.py
YcShentu/CoralSegmentation
6ae30c61f7efa1caef9d191d29a7668296f75f8d
[ "MIT" ]
null
null
null
config.py
YcShentu/CoralSegmentation
6ae30c61f7efa1caef9d191d29a7668296f75f8d
[ "MIT" ]
null
null
null
config.py
YcShentu/CoralSegmentation
6ae30c61f7efa1caef9d191d29a7668296f75f8d
[ "MIT" ]
null
null
null
import argparse import os import torch class BaseHyperparameters: def __init__(self): self.parser = argparse.ArgumentParser() self.opt = None def initalize(self): # set directory for inputs and outputs self.parser.add_argument('--data_dir', type=str, default='./', help='datase...
34.566176
100
0.608594
7969d435f057573f1fb0be9cdedcc1416da4a261
725
py
Python
Structures/2496.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Structures/2496.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Structures/2496.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
ordered = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' for _ in range(int(input())): N = int(input()) M = input() areNot = False unordered = [] for k in range(N): if M[k] != ordered[k]: unordered.append(k) if len(unordered) > 2: areNot = True break ...
22.65625
71
0.510345
7969d4f89998f1d0b4ece0924c49bbce4c712167
37,525
py
Python
aiortc/rtcpeerconnection.py
emcee-ai/aiortc
9678334784be5872af6ede786d3a4404b265f0ae
[ "BSD-3-Clause" ]
null
null
null
aiortc/rtcpeerconnection.py
emcee-ai/aiortc
9678334784be5872af6ede786d3a4404b265f0ae
[ "BSD-3-Clause" ]
null
null
null
aiortc/rtcpeerconnection.py
emcee-ai/aiortc
9678334784be5872af6ede786d3a4404b265f0ae
[ "BSD-3-Clause" ]
null
null
null
import asyncio import copy import uuid from collections import OrderedDict from pyee import EventEmitter from . import clock, rtp, sdp from .codecs import CODECS, HEADER_EXTENSIONS from .events import RTCTrackEvent from .exceptions import InternalError, InvalidAccessError, InvalidStateError from .rtcconfiguration imp...
39.047867
100
0.617722