hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
ecbc2a5a9d0a3618b16e1f22cd8275ab7c2c8270
625
py
Python
test_attestation_record.py
blockchainhelppro/Ether-Based-App
8c52abd30adcad5b120a9d1f238ea34cdefd2ca1
[ "MIT" ]
null
null
null
test_attestation_record.py
blockchainhelppro/Ether-Based-App
8c52abd30adcad5b120a9d1f238ea34cdefd2ca1
[ "MIT" ]
null
null
null
test_attestation_record.py
blockchainhelppro/Ether-Based-App
8c52abd30adcad5b120a9d1f238ea34cdefd2ca1
[ "MIT" ]
null
null
null
import pytest from beacon_chain.state.attestation_record import ( AttestationRecord, ) @pytest.mark.parametrize( 'param,default_value', [ ('slot', 0), ('shard_id', 0), ('oblique_parent_hashes', []), ('shard_block_hash', b'\x00'*32), ('attester_bitfield', b''), ...
26.041667
78
0.68
0d4c59b6a0dbfb277d2e9d7b0217187673384735
7,095
py
Python
aiida/tools/data/array/kpoints/seekpath.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/tools/data/array/kpoints/seekpath.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/tools/data/array/kpoints/seekpath.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
45.191083
120
0.691755
4b2b8e5792c282ff7472a3c8808448ccf123d471
605
py
Python
examples/106-git-pipeline.py
sarabala1979/argo-dataflow
1f296034d0746b01a70e281faf2c0e8640d37ea1
[ "Apache-2.0" ]
null
null
null
examples/106-git-pipeline.py
sarabala1979/argo-dataflow
1f296034d0746b01a70e281faf2c0e8640d37ea1
[ "Apache-2.0" ]
null
null
null
examples/106-git-pipeline.py
sarabala1979/argo-dataflow
1f296034d0746b01a70e281faf2c0e8640d37ea1
[ "Apache-2.0" ]
null
null
null
from argo_dataflow import pipeline, kafka if __name__ == '__main__': (pipeline("106-git") .owner('argoproj-labs') .describe("""This example of a pipeline using Git. The Git handler allows you to check your application source code into Git. Dataflow will checkout and build your code when the step starts....
33.611111
138
0.654545
5809ed112b734ba5e6c2934eaca245cded265249
1,918
py
Python
python/lib/ucscGb/qa/qaUtils.py
psteinb/kent
3ff439f4e5194805359405bb4452c8d96a343932
[ "IJG" ]
null
null
null
python/lib/ucscGb/qa/qaUtils.py
psteinb/kent
3ff439f4e5194805359405bb4452c8d96a343932
[ "IJG" ]
null
null
null
python/lib/ucscGb/qa/qaUtils.py
psteinb/kent
3ff439f4e5194805359405bb4452c8d96a343932
[ "IJG" ]
null
null
null
import subprocess import pipes def callHgsql(database, command): """ Run hgsql command using subprocess, return stdout data if no error.""" cmd = ["hgsql", database, "-Ne", command] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) cmdout, cmderr = p.communicate() if p.retur...
43.590909
83
0.688738
0a6fe1a63652d60ffc637bba6eaeeb302d70d13a
4,803
py
Python
typeidea/blog/views.py
starpsp/typeidea-1
84e5c34b0e51fd62ccf2dc30a06c060b501d4f4d
[ "MIT" ]
null
null
null
typeidea/blog/views.py
starpsp/typeidea-1
84e5c34b0e51fd62ccf2dc30a06c060b501d4f4d
[ "MIT" ]
null
null
null
typeidea/blog/views.py
starpsp/typeidea-1
84e5c34b0e51fd62ccf2dc30a06c060b501d4f4d
[ "MIT" ]
null
null
null
import logging from datetime import date from django.core.cache import cache from django.db.models import Q, F from django.views.generic import ListView, DetailView, TemplateView from django.shortcuts import get_object_or_404 from config.models import SideBar from .models import Post, Category, Tag logger = logging...
30.592357
89
0.634187
d778730c03e1ec9d49aa2108fab2951734e8df67
125
py
Python
check_duplication.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
1
2019-07-08T11:37:02.000Z
2019-07-08T11:37:02.000Z
check_duplication.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
null
null
null
check_duplication.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import open_excel def check(num): return num in open_excel.G_saved_numbers
12.5
44
0.68
b5b2ee6449975e9c4ee136cf2b1da2d58cd6729c
15,874
py
Python
neutron_lbaas/services/loadbalancer/drivers/haproxy/namespace_driver.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/services/loadbalancer/drivers/haproxy/namespace_driver.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/services/loadbalancer/drivers/haproxy/namespace_driver.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 New Dream Network, LLC (DreamHost) # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
37.527187
79
0.617425
78ec1f9e16cd0772ed24856d7ad51bc15776ed3b
3,504
py
Python
Plugins/Analyses/Live_Editor_Builders/Ships.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
25
2018-12-10T12:52:11.000Z
2022-01-29T14:42:57.000Z
Plugins/Analyses/Live_Editor_Builders/Ships.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
4
2019-08-01T19:09:11.000Z
2022-01-02T01:47:42.000Z
Plugins/Analyses/Live_Editor_Builders/Ships.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
6
2019-02-16T08:39:04.000Z
2021-12-21T06:11:58.000Z
from Framework import File_System from Framework.Live_Editor_Components import * # Convenience macro renaming. E = Edit_Item_Macro D = Display_Item_Macro G = Item_Group_Macro from .Support import Create_Objects_From_Asset_Files from .Support import physics_item_macros from .Support import connection_item_macros from ...
47.351351
113
0.578767
bde254b85876657dffc62cdc8715fab456674390
425
py
Python
losses/__init__.py
RerRayne/learn3d
83e4ac657c6538fb4cbed6e00b2e3ed6cbf43555
[ "MIT" ]
335
2020-05-17T19:37:47.000Z
2022-03-29T09:32:14.000Z
losses/__init__.py
RerRayne/learn3d
83e4ac657c6538fb4cbed6e00b2e3ed6cbf43555
[ "MIT" ]
13
2020-06-08T05:28:03.000Z
2022-03-29T07:46:18.000Z
losses/__init__.py
RerRayne/learn3d
83e4ac657c6538fb4cbed6e00b2e3ed6cbf43555
[ "MIT" ]
59
2020-06-27T09:01:29.000Z
2022-03-21T07:22:09.000Z
from .rmse_features import RMSEFeaturesLoss from .frobenius_norm import FrobeniusNormLoss from .classification import ClassificationLoss from .correspondence_loss import CorrespondenceLoss try: from .emd import EMDLoss except: print("Sorry EMD loss is not compatible with your system!") try: from .chamfer_distance im...
35.416667
72
0.837647
0255243a31c998dfb2dedf3bd9aab0908983ecc5
4,027
py
Python
paradigm_pattern_separation.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
paradigm_pattern_separation.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
paradigm_pattern_separation.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Mon Mar 05 13:41:23 2018 @author: DanielM """ from neuron import h, gui # gui necessary for some parameters to h namespace import numpy as np import net_tunedrev from burst_generator_inhomogeneous_poisson import inhom_poiss import os import argparse # Handle command line inpu...
33.840336
78
0.636951
452972b77124fb789b3916638522ea25acba2b0f
7,168
py
Python
src/octopus/manufacturer/ika.py
gar-syn/congo-lab
dc50af4e35903556bc8bc34dc23a7a708c1f5422
[ "MIT" ]
1
2021-02-02T11:27:25.000Z
2021-02-02T11:27:25.000Z
src/octopus/manufacturer/ika.py
gar-syn/congo-lab
dc50af4e35903556bc8bc34dc23a7a708c1f5422
[ "MIT" ]
18
2021-02-01T11:35:15.000Z
2021-08-03T14:23:38.000Z
src/octopus/manufacturer/ika.py
gar-syn/congo-lab
dc50af4e35903556bc8bc34dc23a7a708c1f5422
[ "MIT" ]
null
null
null
# Twisted Imports from twisted.internet import defer from twisted.internet.protocol import Factory # Package Imports from octopus.util import now from octopus.machine import Machine, Stream, Property from octopus.protocol.basic import QueuedLineReceiver # # Serial Settings for IKA Eurostar # ------------------------...
32.581818
134
0.596819
2b472a9e48b561e6a2032d76a6cde05b3ae6ce9a
8,163
py
Python
fuji_server/evaluators/fair_evaluator_file_format.py
sneumann/fuji
55b63e9e901ff7fee4d92fc42dec6b5753d67016
[ "MIT" ]
null
null
null
fuji_server/evaluators/fair_evaluator_file_format.py
sneumann/fuji
55b63e9e901ff7fee4d92fc42dec6b5753d67016
[ "MIT" ]
null
null
null
fuji_server/evaluators/fair_evaluator_file_format.py
sneumann/fuji
55b63e9e901ff7fee4d92fc42dec6b5753d67016
[ "MIT" ]
1
2021-02-18T16:58:10.000Z
2021-02-18T16:58:10.000Z
# -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) # # 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 limita...
57.083916
167
0.60223
28dfa82b4fa0ad7bfa315a69ac37f6d408a50ebf
5,144
py
Python
Tests/test_properties.py
KwiatQIM/Quantum-Tomography
e10d03b9dc5c8c1bb61a081db1aef70a4b2bb6ca
[ "MIT" ]
11
2020-06-23T13:44:30.000Z
2021-10-22T02:55:14.000Z
Tests/test_properties.py
KwiatQIM/Quantum-Tomography
e10d03b9dc5c8c1bb61a081db1aef70a4b2bb6ca
[ "MIT" ]
3
2020-06-23T00:09:46.000Z
2021-09-12T23:25:05.000Z
Tests/test_properties.py
KwiatQIM/Quantum-Tomography
e10d03b9dc5c8c1bb61a081db1aef70a4b2bb6ca
[ "MIT" ]
4
2020-08-11T09:11:17.000Z
2021-11-06T05:47:47.000Z
import unittest import QuantumTomography as qLib import numpy as np import numpy.testing as tests """ Copyright 2020 University of Illinois Board of Trustees. Licensed under the terms of an MIT license """ """CHECK OUT THE REFERENCE PAGE ON OUR WEBSITE : https://quantumtomo.web.illinois.edu/Doc/""" "Attention! The...
47.192661
111
0.587481
fb6f739e3672089aa6f282ef746f22b2dd24c72b
8,778
py
Python
local_packages/ExampleBasedRigging.py
vasiliskatr/example_based_facial_rigging_ARkit_blendshapes
39db32431f3bab2ebb91a74560a61da1ab40af05
[ "MIT" ]
6
2022-01-16T16:00:29.000Z
2022-03-03T04:47:19.000Z
local_packages/ExampleBasedRigging.py
vasiliskatr/example_based_facial_rigging_ARkit_blendshapes
39db32431f3bab2ebb91a74560a61da1ab40af05
[ "MIT" ]
null
null
null
local_packages/ExampleBasedRigging.py
vasiliskatr/example_based_facial_rigging_ARkit_blendshapes
39db32431f3bab2ebb91a74560a61da1ab40af05
[ "MIT" ]
1
2022-03-03T04:47:20.000Z
2022-03-03T04:47:20.000Z
import numpy as np import os import time import local_packages.tools3d_ as t3d from scipy.optimize import lsq_linear from IPython.display import clear_output from scipy.sparse import csr_matrix import scipy.sparse as sp from scipy.sparse.linalg import spsolve from qpsolvers import solve_qp import numba from numba impo...
34.155642
120
0.644224
ee3d7955dbfa7c804d4f0d3733bd5cbcb057579c
1,742
py
Python
qiskit/pulse/instructions/directives.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
null
null
null
qiskit/pulse/instructions/directives.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
null
null
null
qiskit/pulse/instructions/directives.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
1
2020-07-13T17:56:46.000Z
2020-07-13T17:56:46.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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 modif...
33.5
87
0.687141
2ab6d757a28916517166e8e5f2f3587a18ca4635
1,365
py
Python
questions/q301_reorder_list/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q301_reorder_list/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q301_reorder_list/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def reversePortion(self, root) : head = None tail = None ptr = root while ptr : ptr2 = ptr.next ptr.next = None i...
19.782609
49
0.443956
fc5cf709c37f9b8000ed337dd619e9b995160644
4,180
py
Python
unet3d/data.py
microdyb/3DUnetCNN
45505ce8bc747301bcf53cdeced19c7bf84c09fe
[ "MIT" ]
null
null
null
unet3d/data.py
microdyb/3DUnetCNN
45505ce8bc747301bcf53cdeced19c7bf84c09fe
[ "MIT" ]
null
null
null
unet3d/data.py
microdyb/3DUnetCNN
45505ce8bc747301bcf53cdeced19c7bf84c09fe
[ "MIT" ]
null
null
null
import os import numpy as np import tables from .normalize import normalize_data_storage, reslice_image_set # cardiac: filters are used for data compression # cardiac: earray is a kind of enlargeable array defined by tables # cardiac: affine_storage def create_data_file(out_file, n_channels, n_samples, image_shape):...
52.911392
118
0.66866
8f1a3110014196ee7c072ac532c459fa4a1006b4
8,630
py
Python
recommender.py
stewiemcbacon/celp
77c8135dd9c91005e5249e5fd9416e007faa4012
[ "MIT" ]
null
null
null
recommender.py
stewiemcbacon/celp
77c8135dd9c91005e5249e5fd9416e007faa4012
[ "MIT" ]
null
null
null
recommender.py
stewiemcbacon/celp
77c8135dd9c91005e5249e5fd9416e007faa4012
[ "MIT" ]
null
null
null
from data import CITIES, BUSINESSES, USERS, REVIEWS, TIPS, CHECKINS import pandas as pd from pandas import Series, DataFrame import numpy as np import random """Deze functie wordt gebruikt om de ratings voor de utility matrix te berekenen""" def get_rating(ratings,user_id,business_id): if ratings.loc[(rati...
32.689394
129
0.620162
7352b8e8b3ef35aac8c590c6b522ab7875212913
8,751
py
Python
pypureclient/flasharray/FA_2_5/models/volume.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_5/models/volume.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_5/models/volume.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
42.072115
461
0.61113
a209fb95ee194bc9e2a27cdc020da06fcc17f7e5
1,589
py
Python
src/ramstk/models/commondb/site_info/table.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
26
2019-05-15T02:03:47.000Z
2022-02-21T07:28:11.000Z
src/ramstk/models/commondb/site_info/table.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
815
2019-05-10T12:31:52.000Z
2022-03-31T12:56:26.000Z
src/ramstk/models/commondb/site_info/table.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
9
2019-04-20T23:06:29.000Z
2022-01-24T21:21:04.000Z
# -*- coding: utf-8 -*- # # ramstk.models.commondb.site_info.table.py is part of The RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Site Information Table Model.""" # Standard Library Imports from typing import Type # RAMSTK Pa...
27.877193
88
0.696035
435a0f22697864a60bb171910323c106f33c2cd8
17,624
py
Python
sapp/db_support.py
MLH-Fellowship/sapp
35ac9417520f2a10e9934ff2eeda513453b78ab2
[ "MIT" ]
1
2021-06-17T16:32:58.000Z
2021-06-17T16:32:58.000Z
sapp/db_support.py
EdOverflow/sapp
ecb2b54c27294aa3b2d7fc52c186053b6349cb11
[ "MIT" ]
11
2021-07-20T11:28:54.000Z
2021-12-11T16:28:03.000Z
sapp/db_support.py
EdOverflow/sapp
ecb2b54c27294aa3b2d7fc52c186053b6349cb11
[ "MIT" ]
1
2021-06-17T16:33:01.000Z
2021-06-17T16:33:01.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. from __future__ import annotations import logging from collections import namedtuple from itertools import tee from typing import Dict, List,...
38.229935
88
0.616262
b8c270376fa13dda8a812527041dc436d1df19b5
6,732
py
Python
msl/equipment/resources/bentham/benhw64.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/equipment/resources/bentham/benhw64.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/equipment/resources/bentham/benhw64.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
""" A wrapper around the :class:`~.benhw32.Bentham32` class. """ import os import inspect from msl.loadlib import Client64 from msl.equipment.connection import Connection from msl.equipment.exceptions import BenthamError from msl.equipment.resources import register from .errors import BI_OK, ERROR_CODES from .tokens ...
36
101
0.628788
e9fa24ae052ede60b6afb86d074139f576ff240f
6,750
py
Python
google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/base.py
LaudateCorpus1/python-error-reporting
b207f2cec4f5f3196e775ed35cd429f34f9c0bd1
[ "Apache-2.0" ]
null
null
null
google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/base.py
LaudateCorpus1/python-error-reporting
b207f2cec4f5f3196e775ed35cd429f34f9c0bd1
[ "Apache-2.0" ]
null
null
null
google/cloud/errorreporting_v1beta1/services/error_stats_service/transports/base.py
LaudateCorpus1/python-error-reporting
b207f2cec4f5f3196e775ed35cd429f34f9c0bd1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.292818
101
0.658074
2966b7a3f95fc5671abb96e81c000e69f226e12d
5,683
py
Python
src/curt/curt/modules/vision/oakd_facemesh.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
108
2021-08-09T17:10:39.000Z
2022-03-21T21:59:03.000Z
src/curt/curt/modules/vision/oakd_facemesh.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
15
2021-09-19T01:25:25.000Z
2022-03-28T18:47:49.000Z
src/curt/curt/modules/vision/oakd_facemesh.py
sanyaade-teachings/cep
59e22b148c3a95eff521ce75cf4eacbcfb074115
[ "MIT" ]
14
2021-08-10T04:42:17.000Z
2022-03-28T16:30:34.000Z
""" Copyright (C) Cortic Technology Corp. - All Rights Reserved Written by Michael Ng <michaelng@cortic.ca>, 2021 """ from curt.modules.vision.oakd_processing import OAKDProcessingWorker import depthai as dai from curt.modules.vision.utils import * from curt.modules.vision.utils import decode_image_byte import numpy...
34.02994
86
0.545135
784b359dea0db948ff7096b9e73bb278869cb2ed
1,286
py
Python
the-saga-stepfunction/python/setup.py
LincolnHedgehog/serverless
80f79cd2ac6fb13ac9e16af6a765a06422be437b
[ "MIT" ]
1
2020-05-31T18:58:19.000Z
2020-05-31T18:58:19.000Z
the-saga-stepfunction/python/setup.py
LincolnHedgehog/serverless
80f79cd2ac6fb13ac9e16af6a765a06422be437b
[ "MIT" ]
null
null
null
the-saga-stepfunction/python/setup.py
LincolnHedgehog/serverless
80f79cd2ac6fb13ac9e16af6a765a06422be437b
[ "MIT" ]
1
2020-06-01T15:03:24.000Z
2020-06-01T15:03:24.000Z
import setuptools with open("README.md") as fp: long_description = fp.read() setuptools.setup( name="the_saga_stepfunction", version="0.0.1", description="An empty CDK Python app", long_description=long_description, long_description_content_type="text/markdown", author="author", p...
25.215686
69
0.607309
82903d10da50ba31464b575e8a0f69d024126753
650
py
Python
backend/app/scrumboard/serializers.py
tamasf97/Platform
b5d69d051b6e8dc7d56f723146392c49db5e99c3
[ "MIT" ]
1
2019-09-22T10:21:17.000Z
2019-09-22T10:21:17.000Z
backend/app/scrumboard/serializers.py
tamasf97/Platform
b5d69d051b6e8dc7d56f723146392c49db5e99c3
[ "MIT" ]
20
2019-09-26T13:54:12.000Z
2022-02-26T18:07:34.000Z
backend/app/scrumboard/serializers.py
tamasf97/Platform
b5d69d051b6e8dc7d56f723146392c49db5e99c3
[ "MIT" ]
1
2019-09-20T09:50:01.000Z
2019-09-20T09:50:01.000Z
from rest_framework import serializers from .models import List, Card, Project from auth_api.serializers import UserSerializer class CardSerializer(serializers.ModelSerializer): class Meta: model = Card fields = '__all__' class ListSerializer(serializers.ModelSerializer): cards = CardSeriali...
24.074074
55
0.715385
68cd8992875895f3d5d5d5e63a1c8001a65b9c9f
3,679
py
Python
var/spack/repos/builtin/packages/mptensor/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/mptensor/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/mptensor/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Mptensor(CMakePackage): """mptensor is parallel C++ libarary for tensor calculations. ...
37.927835
95
0.575428
ce2f96323d651f4b3808ba7e0ff18715a89db29a
12,780
py
Python
Lib/test/test_class_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
1
2015-11-07T12:22:17.000Z
2015-11-07T12:22:17.000Z
Lib/test/test_class_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
Lib/test/test_class_jy.py
weimingtom/j2mepython-midp
472333ebc6a7f06d92c5ede85c8ed55e4ad66c6d
[ "CNRI-Jython", "PSF-2.0", "Apache-2.0" ]
null
null
null
"""Misc. class tests. These are more general class tests than CPython's test_class which focuses on operators. Made for Jython """ import __builtin__ import types import unittest from java.lang import Object from test import test_support class ClassGeneralTestCase(unittest.TestCase): TE_MSG = "can't set attribut...
33.455497
85
0.563146
ee3e594032a4a31288798f7ae133b00b3b0872a5
556
py
Python
test/constants.py
js-ts/fix-same-dataset-tests
d76091d1b7bac4d267caaf9b6e04dd255aef8053
[ "Apache-2.0" ]
8
2021-12-17T18:26:24.000Z
2022-03-16T18:21:04.000Z
test/constants.py
js-ts/fix-same-dataset-tests
d76091d1b7bac4d267caaf9b6e04dd255aef8053
[ "Apache-2.0" ]
45
2021-12-18T08:28:56.000Z
2022-03-31T21:24:45.000Z
test/constants.py
js-ts/fix-same-dataset-tests
d76091d1b7bac4d267caaf9b6e04dd255aef8053
[ "Apache-2.0" ]
5
2021-12-17T20:08:38.000Z
2022-03-21T13:51:06.000Z
# Environment variable that can be optionally set to specify a host where Durable Functions backend is running. # If none is specified, the one deployed on Azure Functions is used. DURABLE_FUNCTIONS_BACKEND_TEST_HOST_ENV_VAR = "DURABLE_FUNCTIONS_BACKEND_TEST_HOST" # Name of the app deployed on Azure Functions running ...
55.6
111
0.832734
0a27c4e57aa4e89d6ea02e1bef612a6571343918
1,710
py
Python
db_trial.py
zenranda/proj6-mongod
26286c28b9b65e4c84a959f2322e8e070d987485
[ "Artistic-2.0" ]
null
null
null
db_trial.py
zenranda/proj6-mongod
26286c28b9b65e4c84a959f2322e8e070d987485
[ "Artistic-2.0" ]
null
null
null
db_trial.py
zenranda/proj6-mongod
26286c28b9b65e4c84a959f2322e8e070d987485
[ "Artistic-2.0" ]
null
null
null
""" Just to test database functions, outside of Flask. We want to open our MongoDB database, insert some memos, and read them back """ import pymongo from pymongo import MongoClient import arrow import sys import secrets.admin_secrets import secrets.client_secrets MONGO_CLIENT_URL = "mongodb://{}:{}@{}:{}/{}".forma...
24.782609
73
0.661404
298b1ac043b949d8a322ea61de9d54b13f6deb8b
2,208
py
Python
fcos/core/layers/roi_align.py
best-of-acrv/fcos
47e5624973b256b8c74ce2c00fca50e62c19c66a
[ "BSD-3-Clause" ]
1
2021-12-12T19:17:34.000Z
2021-12-12T19:17:34.000Z
fcos/core/layers/roi_align.py
best-of-acrv/fcos
47e5624973b256b8c74ce2c00fca50e62c19c66a
[ "BSD-3-Clause" ]
2
2021-09-17T10:28:01.000Z
2022-03-01T00:02:27.000Z
fcos/core/layers/roi_align.py
best-of-acrv/fcos
47e5624973b256b8c74ce2c00fca50e62c19c66a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from .. import _C class _ROIAlign(Function): @staticmethod def forward...
32
78
0.597826
01ff2ae59d247ab32c79e877faf0aff9e02c9948
3,743
py
Python
scripts/sources/s_rn_derivative_mre.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
scripts/sources/s_rn_derivative_mre.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
scripts/sources/s_rn_derivative_mre.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # s_rn...
33.123894
209
0.659097
33c379c98ba9c9d27d9f59e1bbbaceb76c648d22
1,582
py
Python
MQTTupload/DORJI_Serial_to_MarkerAPI.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
MQTTupload/DORJI_Serial_to_MarkerAPI.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
MQTTupload/DORJI_Serial_to_MarkerAPI.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
#DORJI_Serial_to_MarkerAPI #!/usr/bin/env python #WARNING: This is a TTL serial port and must not have more than 3.3 volts applied to the pins #this imports the libraries needed import serial, time #import needed modules import urllib import urllib2 #This sets up the serial port ttyAMA0 GPIO. baud rate is...
31.64
94
0.530341
bd5ad529e92d808ff2ef0c2ee02c6c70a30af5be
1,237
py
Python
saleor/graphql/page/sorters.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/page/sorters.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/page/sorters.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
import graphene from ..core.types import SortInputObjectType class PageSortField(graphene.Enum): TITLE = ["title", "slug"] SLUG = ["slug"] VISIBILITY = ["is_published", "title", "slug"] CREATION_DATE = ["created", "title", "slug"] PUBLICATION_DATE = ["publication_date", "title", "slug"] @pro...
28.767442
67
0.647534
f352dbdc764ad97b8609c8a0870e659a64a3ce2b
555
py
Python
tests/helper_test.py
KI-Research-Services/CREDA_tools
5d2709fa3e1f96fe8315b0e838253dd025f7ff85
[ "MIT" ]
1
2021-05-17T16:44:27.000Z
2021-05-17T16:44:27.000Z
tests/helper_test.py
KI-Research-Services/CREDA_tools
5d2709fa3e1f96fe8315b0e838253dd025f7ff85
[ "MIT" ]
null
null
null
tests/helper_test.py
KI-Research-Services/CREDA_tools
5d2709fa3e1f96fe8315b0e838253dd025f7ff85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 9 18:52:51 2020 @author: fisherd """ from CREDA_tools import helper import pytest def test_init_project_file(): with pytest.raises(FileNotFoundError): helper.CREDA_Project("addresses", "no_good_file.txt") def test_init_project_type(): with pytest.raise...
26.428571
69
0.715315
e4c73d82553d52e576ed769b4e5d00aeedb76f3b
2,498
py
Python
src/clusterfuzz/_internal/tests/appengine/handlers/testcase_detail/update_from_trunk_test.py
mspectorgoogle/clusterfuzz
44df69cbcb94efc212f27758d45d6ff0f36061e5
[ "Apache-2.0" ]
5,023
2019-02-07T16:57:56.000Z
2022-03-31T01:08:05.000Z
src/clusterfuzz/_internal/tests/appengine/handlers/testcase_detail/update_from_trunk_test.py
mspectorgoogle/clusterfuzz
44df69cbcb94efc212f27758d45d6ff0f36061e5
[ "Apache-2.0" ]
2,303
2019-02-07T17:36:36.000Z
2022-03-31T15:44:38.000Z
src/clusterfuzz/_internal/tests/appengine/handlers/testcase_detail/update_from_trunk_test.py
mspectorgoogle/clusterfuzz
44df69cbcb94efc212f27758d45d6ff0f36061e5
[ "Apache-2.0" ]
564
2019-02-07T17:34:24.000Z
2022-03-26T09:25:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.685714
80
0.729384
0b07a135b8d883019cab30dc9cb7d21374be4576
470
py
Python
utility/trim_dataset.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
5
2018-03-07T03:46:32.000Z
2021-02-20T11:59:40.000Z
utility/trim_dataset.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
1
2018-03-11T03:19:03.000Z
2018-03-11T03:19:03.000Z
utility/trim_dataset.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
3
2018-03-14T18:16:25.000Z
2018-11-14T07:19:41.000Z
import numpy as np import cPickle import matplotlib.pyplot as plt def open_ds(location): f = open(location) ds = cPickle.load(f) return ds def save_ds(dataset, location): cPickle.dump( dataset, file(location, 'wb' ) ) def main(): ds = open_ds(location='datasets/radioml.dat') ds_trimmed = {} ...
20.434783
61
0.659574
368d2df9538e87cd93834a6f6c3adcb7937a8d8b
1,651
py
Python
utils/tileconnwire.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
583
2017-12-21T11:06:13.000Z
2022-02-20T21:27:33.000Z
utils/tileconnwire.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
1,212
2017-12-22T15:05:06.000Z
2022-02-19T13:04:59.000Z
utils/tileconnwire.py
mfkiwl/prjxray-xilinx-7-bitstream-fortmat
5349556bc2c230801d6df0cf11bccb9cfd171639
[ "ISC" ]
134
2017-12-21T10:16:50.000Z
2022-02-16T06:42:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC import os, sys, json def main(argv...
28.964912
79
0.54573
41b0007b2fc02a46ebb0a9a9940671701ebc5054
177
py
Python
TicTacToePlayers.py
dz1domin/tictactoe
671eeaecb6e6c8434b2db5595d15fbcd28e90f49
[ "MIT" ]
null
null
null
TicTacToePlayers.py
dz1domin/tictactoe
671eeaecb6e6c8434b2db5595d15fbcd28e90f49
[ "MIT" ]
null
null
null
TicTacToePlayers.py
dz1domin/tictactoe
671eeaecb6e6c8434b2db5595d15fbcd28e90f49
[ "MIT" ]
null
null
null
class TicTacToePlayers: def __init__(self, addr, port, name, conn): self._addr = addr self._port = port self._name = name self._conn = conn
22.125
47
0.587571
6dd144f2acbffdd3de82f1fbc18a66189f26b0a3
25,100
py
Python
resolve_ref_exp_elements_ml/elements_embeddings.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
resolve_ref_exp_elements_ml/elements_embeddings.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
resolve_ref_exp_elements_ml/elements_embeddings.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 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...
39.096573
80
0.676494
9c4716379da2236111ec5e1929013e6c3aca08c6
4,672
py
Python
tests/vcf_tools/test_format_sv_variant.py
bjhall/loqusdb
55ee806662848eeffd266bf65d4b4eb24e534a89
[ "MIT" ]
4
2018-06-04T12:42:45.000Z
2021-03-29T20:36:12.000Z
tests/vcf_tools/test_format_sv_variant.py
bjhall/loqusdb
55ee806662848eeffd266bf65d4b4eb24e534a89
[ "MIT" ]
50
2016-02-26T07:54:39.000Z
2021-10-12T07:52:01.000Z
tests/vcf_tools/test_format_sv_variant.py
bjhall/loqusdb
55ee806662848eeffd266bf65d4b4eb24e534a89
[ "MIT" ]
8
2016-02-29T13:50:46.000Z
2020-04-22T10:15:23.000Z
from pprint import pprint as pp from loqusdb.build_models import build_variant def test_format_indel(del_variant, case_obj): ## GIVEN a SV deletion variant = del_variant case_id = case_obj['case_id'] ## WHEN parsing the variant formated_variant = build_variant( variant=variant, case...
36.5
87
0.678938
2ba0bf493f8a035816f6ab6a66c9bb901740dab2
1,769
py
Python
lite/tests/unittest_py/pass/backends/arm/test_conv_bn_fuse_pass.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/pass/backends/arm/test_conv_bn_fuse_pass.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
lite/tests/unittest_py/pass/backends/arm/test_conv_bn_fuse_pass.py
xiebaiyuan/PaddleLite
6f7280a91741d1c63fcb0296ac5c08c4e81c2a90
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.638298
125
0.751837
090dfd484588902985af92602f0c136798f7aae6
6,645
py
Python
andriller/decrypts.py
pshem/andriller
c1e2d9e05f3630a7499907190552089be18563c5
[ "MIT" ]
2
2021-11-22T03:38:06.000Z
2022-01-12T23:07:15.000Z
andriller/decrypts.py
pshem/andriller
c1e2d9e05f3630a7499907190552089be18563c5
[ "MIT" ]
null
null
null
andriller/decrypts.py
pshem/andriller
c1e2d9e05f3630a7499907190552089be18563c5
[ "MIT" ]
1
2021-09-14T04:53:18.000Z
2021-09-14T04:53:18.000Z
import gzip import zlib import pathlib import hashlib from contextlib import suppress from dataclasses import dataclass from Cryptodome.Cipher import AES from .utils import threaded @dataclass class WhatsAppCrypt: input_file: pathlib.Path key_file: pathlib.Path = None email: str = None GZIP_MAGIC = b...
30.62212
95
0.618661
ee315b5a4c1e3e10c62e456a2ca2e51e4c7a12e5
73,451
py
Python
adsrefpipe/tests/unittests/stubdata/parsed_references.py
golnazads/ADSReferencePipeline
802f26a9e085e6ff5de43f3b5642b2d9fad52cbb
[ "MIT" ]
null
null
null
adsrefpipe/tests/unittests/stubdata/parsed_references.py
golnazads/ADSReferencePipeline
802f26a9e085e6ff5de43f3b5642b2d9fad52cbb
[ "MIT" ]
null
null
null
adsrefpipe/tests/unittests/stubdata/parsed_references.py
golnazads/ADSReferencePipeline
802f26a9e085e6ff5de43f3b5642b2d9fad52cbb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- parsed_crossref = [{'bibcode': '2020TEST..........R', 'references': [{'authors': 'SB Prusiner', 'journal': 'Proc Natl Acad Sci U S A', 'title': 'Prions', 'volume': '95', 'page': '13363', 'year': '1998', 'doi': '10.1073/pnas.95.23.13363', 'refstr': 'SB Prusiner, 1998. Proc Natl Acad Sci U S A, P...
3,060.458333
20,810
0.607698
ca0b4a4161064461096685786242a5610cac0b2a
111
py
Python
neo_db/config.py
liupuchun/KGQA-of-HongLouMeng
2d2a1192f7d2850fb306dbb948177370140a652d
[ "MIT" ]
1
2020-06-03T08:07:37.000Z
2020-06-03T08:07:37.000Z
neo_db/config.py
liupuchun/KGQA-of-HongLouMeng
2d2a1192f7d2850fb306dbb948177370140a652d
[ "MIT" ]
null
null
null
neo_db/config.py
liupuchun/KGQA-of-HongLouMeng
2d2a1192f7d2850fb306dbb948177370140a652d
[ "MIT" ]
null
null
null
from py2neo import Graph graph = Graph( "http://localhost:7474", username="neo4j", password="hlm" )
18.5
28
0.648649
da79a26ccdb0db3e03f38bdaf8cc89dc05bb00c4
11,264
py
Python
resources/WPy32/python-3.10.2/Lib/site-packages/Cryptodome/Cipher/_mode_cbc.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
1
2022-03-26T15:43:50.000Z
2022-03-26T15:43:50.000Z
resources/WPy32/python-3.10.2/Lib/site-packages/Cryptodome/Cipher/_mode_cbc.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
null
null
null
resources/WPy32/python-3.10.2/Lib/site-packages/Cryptodome/Cipher/_mode_cbc.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
1
2022-03-28T19:28:45.000Z
2022-03-28T19:28:45.000Z
# =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redi...
38.312925
106
0.566229
8be59dca3d699154a7140412e5d27ae3ac1dfa72
3,644
py
Python
Lesson12/QuizSix.py
SamRicha/CS101
9b6c1334293221a5c7a68f450aa069a19b50d08d
[ "MIT" ]
null
null
null
Lesson12/QuizSix.py
SamRicha/CS101
9b6c1334293221a5c7a68f450aa069a19b50d08d
[ "MIT" ]
null
null
null
Lesson12/QuizSix.py
SamRicha/CS101
9b6c1334293221a5c7a68f450aa069a19b50d08d
[ "MIT" ]
null
null
null
# The web crawler we built at the end of Unit 3 has some serious # flaws if we were going to use it in a real crawler. One # problem is if we start with a good seed page, it might # run for an extremely long time (even forever, since the # number of URLS on the web is not actually finite). This # question and the follo...
37.56701
79
0.617453
8c68b2aa762a633f466ac1b7fc44abaffc028139
4,877
py
Python
MessagePayload.py
aws-samples/aws-connected-mobility-solution-telemetry-device-demo
eea82db46bd073198b68e776c7795aeef0034fe9
[ "MIT-0" ]
2
2021-02-05T19:16:01.000Z
2021-12-02T19:54:29.000Z
MessagePayload.py
aws-samples/aws-connected-mobility-solution-telemetry-device-demo
eea82db46bd073198b68e776c7795aeef0034fe9
[ "MIT-0" ]
null
null
null
MessagePayload.py
aws-samples/aws-connected-mobility-solution-telemetry-device-demo
eea82db46bd073198b68e776c7795aeef0034fe9
[ "MIT-0" ]
2
2021-02-24T17:10:53.000Z
2021-06-10T19:00:35.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # # 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 ...
39.97541
122
0.672955
8c5f312924e77641554de61a638a7de3bf314c42
547
py
Python
Iniciante/Python/1183 - Acima da Diagonal Principal.py
gtozeti/URI
e776172fd5605e9d6e641bbd59859680fecd2400
[ "MIT" ]
2
2021-02-19T01:18:10.000Z
2021-02-19T01:18:27.000Z
Iniciante/Python/1183 - Acima da Diagonal Principal.py
gtozeti/URI
e776172fd5605e9d6e641bbd59859680fecd2400
[ "MIT" ]
null
null
null
Iniciante/Python/1183 - Acima da Diagonal Principal.py
gtozeti/URI
e776172fd5605e9d6e641bbd59859680fecd2400
[ "MIT" ]
null
null
null
operacao = input() matriz = [] soma = 0 media = 0 total = 0 for i in range(12): linha = [] for j in range(12): linha.append(float(input())) matriz.append(linha) if operacao == "S": for x in range(11): for y in range(1,12): if y > x: soma += float(matriz[x][y])...
20.259259
44
0.477148
429257ab086ecc6ec5a41665446f00be5c2ba1f7
1,278
py
Python
peeringdb_server/migrations/0058_deskpro_cc.py
CyberFlameGO/peeringdb
83461deb58805fe1d83c5ff4276fa3bcb59a7323
[ "BSD-2-Clause" ]
224
2016-10-13T10:32:33.000Z
2022-03-23T13:08:48.000Z
peeringdb_server/migrations/0058_deskpro_cc.py
CyberFlameGO/peeringdb
83461deb58805fe1d83c5ff4276fa3bcb59a7323
[ "BSD-2-Clause" ]
1,063
2016-06-07T02:57:11.000Z
2022-03-31T00:08:07.000Z
peeringdb_server/migrations/0058_deskpro_cc.py
CyberFlameGO/peeringdb
83461deb58805fe1d83c5ff4276fa3bcb59a7323
[ "BSD-2-Clause" ]
92
2016-10-22T14:59:40.000Z
2022-03-26T11:30:12.000Z
# Generated by Django 2.2.17 on 2020-11-20 15:40 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("peeringdb_server", "0057_add_suite_and_floor"), ] operations = [ migrations.CreateModel( name=...
29.72093
68
0.442879
a93f3d3cb711af50f6e8881fb948583a06d73126
16,448
py
Python
pytomorrowio/pytomorrowio.py
raman325/pytomorrowio
2a698c3fd5686067bd8b97fd83cba6f8b125e00d
[ "MIT" ]
null
null
null
pytomorrowio/pytomorrowio.py
raman325/pytomorrowio
2a698c3fd5686067bd8b97fd83cba6f8b125e00d
[ "MIT" ]
null
null
null
pytomorrowio/pytomorrowio.py
raman325/pytomorrowio
2a698c3fd5686067bd8b97fd83cba6f8b125e00d
[ "MIT" ]
null
null
null
"""Main module.""" import asyncio from datetime import datetime, timedelta, timezone import json import logging from typing import Any, Dict, List, Optional, Union from aiohttp import ClientConnectionError, ClientSession from .const import ( BASE_URL_V4, CURRENT, DAILY, FIELDS_V4, FORECASTS, H...
35.145299
90
0.550401
8c73bf8a7212b7aa458fcc1b8e82f45c709be528
2,316
py
Python
tests/cfngin/fixtures/mock_docker/fake_api_client.py
paul-duffy/runway
a0c22eb7ca7b55df5317bdda92c08c4bb39569d2
[ "Apache-2.0" ]
1
2020-02-25T21:08:00.000Z
2020-02-25T21:08:00.000Z
tests/cfngin/fixtures/mock_docker/fake_api_client.py
paul-duffy/runway
a0c22eb7ca7b55df5317bdda92c08c4bb39569d2
[ "Apache-2.0" ]
2
2020-01-07T15:00:55.000Z
2020-01-07T15:03:25.000Z
tests/cfngin/fixtures/mock_docker/fake_api_client.py
voodooGQ/runway
8a744f33b39f1342022f1b57db996bb843e4556c
[ "Apache-2.0" ]
null
null
null
"""Fake Docker API client.""" # pylint: disable=attribute-defined-outside-init,protected-access import copy import docker from . import fake_api try: from unittest import mock except ImportError: import mock class CopyReturnMagicMock(mock.MagicMock): """A MagicMock which deep copies every return value....
34.567164
77
0.697323
2efdf8a793b42ad316740554643a811cdff52c06
17,893
py
Python
fairseq/tasks/translation.py
protonish/fairseq-cipherdaug
f268173f75698905814f62a37695d831d070b22c
[ "MIT" ]
null
null
null
fairseq/tasks/translation.py
protonish/fairseq-cipherdaug
f268173f75698905814f62a37695d831d070b22c
[ "MIT" ]
null
null
null
fairseq/tasks/translation.py
protonish/fairseq-cipherdaug
f268173f75698905814f62a37695d831d070b22c
[ "MIT" ]
null
null
null
# 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. from dataclasses import dataclass, field import itertools import json import logging import os from typing import Optional from argparse impor...
36.220648
108
0.600961
44bfddd8311b2ce5f5b9d04ea8832fb97c03d8da
4,309
py
Python
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
554
2020-04-15T20:22:50.000Z
2022-03-31T11:07:53.000Z
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
44
2020-04-15T19:26:43.000Z
2022-03-11T09:59:24.000Z
anime_downloader/scrapers/gogoanime/gogoanime_scraper.py
Amdrossa/Anime
9757f7c8d1a094da61e0c0ac38a2a29bf1c21e28
[ "MIT" ]
61
2020-04-16T19:17:04.000Z
2022-03-27T14:51:54.000Z
import re from util.Episode import Episode from bs4 import BeautifulSoup from extractors.jwplayer_extractor import JWPlayerExtractor from scrapers.base_scraper import BaseScraper from util.Color import printer class GoGoAnimeScraper(BaseScraper): def __init__(self, url, start_episode, end_episode, session, gui=No...
38.81982
106
0.561383
d535f9cd48f7ea39f5263170165a41da1351c10c
3,674
py
Python
tests/test_rwc_jazz.py
marypilataki/mirdata
78981e1f1e7b8661e2d04de0dd5640981bbb1881
[ "BSD-3-Clause" ]
2
2020-04-08T07:13:47.000Z
2021-11-08T06:43:58.000Z
tests/test_rwc_jazz.py
marypilataki/mirdata
78981e1f1e7b8661e2d04de0dd5640981bbb1881
[ "BSD-3-Clause" ]
2
2020-04-06T03:46:42.000Z
2020-04-08T14:16:02.000Z
tests/test_rwc_jazz.py
marypilataki/mirdata
78981e1f1e7b8661e2d04de0dd5640981bbb1881
[ "BSD-3-Clause" ]
3
2020-04-05T17:35:54.000Z
2020-04-08T11:15:09.000Z
# -*- coding: utf-8 -*- from mirdata import rwc_jazz, utils from tests.test_utils import run_track_tests def test_track(): default_trackid = 'RM-J004' data_home = 'tests/resources/mir_datasets/RWC-Jazz' track = rwc_jazz.Track(default_trackid, data_home=data_home) expected_attributes = { 'tr...
28.045802
86
0.564507
b555378707f5628852e63d90d23e58dd14d56c82
335
py
Python
coinbase_problems/problem_1.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
129
2018-10-14T17:52:29.000Z
2022-01-29T15:45:57.000Z
coinbase_problems/problem_1.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
2
2019-11-30T23:28:23.000Z
2020-01-03T16:30:32.000Z
coinbase_problems/problem_1.py
loftwah/Daily-Coding-Problem
0327f0b4f69ef419436846c831110795c7a3c1fe
[ "MIT" ]
60
2019-02-21T09:18:31.000Z
2022-03-25T21:01:04.000Z
"""This problem was asked by Coinbase. Write a function that takes in a number, string, list, or dictionary and returns its JSON encoding. It should also handle nulls. For example, given the following input: [None, 123, ["a", "b"], {"c":"d"}] You should return the following, as a string: '[null, 123, ["a", "b"], {...
27.916667
73
0.659701
ccd00f848211399cdf640bfa60c586162b458bdb
965
py
Python
convertor/migrations/0001_initial.py
fbrakhmonov/mdweb
dbe503462a2a594fa0b9a7a97f98e45b12954c9f
[ "MIT" ]
null
null
null
convertor/migrations/0001_initial.py
fbrakhmonov/mdweb
dbe503462a2a594fa0b9a7a97f98e45b12954c9f
[ "MIT" ]
null
null
null
convertor/migrations/0001_initial.py
fbrakhmonov/mdweb
dbe503462a2a594fa0b9a7a97f98e45b12954c9f
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2019-03-01 13:54 import convertor.models from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id'...
31.129032
114
0.566839
120bafa532f5f9769f58119f26862cd3bed41157
3,124
py
Python
app.py
stevexiaofei/LabOnWeb
ace26455c0b101bf5b03c3bf43799355b7513005
[ "MIT" ]
null
null
null
app.py
stevexiaofei/LabOnWeb
ace26455c0b101bf5b03c3bf43799355b7513005
[ "MIT" ]
1
2021-10-12T22:16:02.000Z
2021-10-12T22:16:02.000Z
app.py
stevexiaofei/LabOnWeb
ace26455c0b101bf5b03c3bf43799355b7513005
[ "MIT" ]
null
null
null
#!/usr/bin/env python from importlib import import_module import os from flask import Flask, render_template, Response,url_for, request, session, json, \ send_from_directory, current_app, g,redirect from flask.ext.moment import Moment from datetime import datetime from flask_sqlalchemy import SQLAlchemy from sqlite imp...
28.4
85
0.680538
7424cfd553471bd0b8cdefd0244627d0795bc828
167
py
Python
pipeline/schemas/tag.py
mystic-ai/pipeline
487c5e755a862a12c90572b0eff170853ecb3790
[ "Apache-2.0" ]
7
2022-01-28T20:27:50.000Z
2022-02-22T15:30:00.000Z
pipeline/schemas/tag.py
mystic-ai/pipeline
487c5e755a862a12c90572b0eff170853ecb3790
[ "Apache-2.0" ]
17
2022-01-11T12:05:38.000Z
2022-03-25T15:29:43.000Z
pipeline/schemas/tag.py
neuro-ai-dev/pipeline
c7edcc83576158062fe48f266dfaea62d754e761
[ "Apache-2.0" ]
null
null
null
from .base import BaseModel class TagBase(BaseModel): name: str class TagCreate(TagBase): pass class TagGet(TagBase): id: str frequency: int = 0
11.133333
27
0.670659
bcf09c6cdd0e8f30bc65eaacb07ad9f49c5c3151
4,197
py
Python
comet/utility/test/test_event_db.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
comet/utility/test/test_event_db.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
comet/utility/test/test_event_db.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
# Comet VOEvent Broker. # Event database tests. import os import shutil import stat import tempfile import time from functools import reduce from itertools import repeat, permutations from multiprocessing.pool import ThreadPool from operator import __or__ from sys import platform from unittest import skipIf from twis...
39.224299
81
0.671194
f009003228961c726a9731d0c4f829275445603e
8,703
py
Python
imapy/email_message.py
s0x90/imapy
60f0b26aba6d4dfa088debc0a2a0c3c236cd308a
[ "MIT" ]
1
2021-07-19T07:31:07.000Z
2021-07-19T07:31:07.000Z
imapy/email_message.py
s0x90/imapy
60f0b26aba6d4dfa088debc0a2a0c3c236cd308a
[ "MIT" ]
null
null
null
imapy/email_message.py
s0x90/imapy
60f0b26aba6d4dfa088debc0a2a0c3c236cd308a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ imapy.email_message ~~~~~~~~~~~~~~~~~~~ This module contains EmailMessage class used for parsing email messages and passing calls which modify email state to imapy.IMAP() class. :copyright: (c) 2015 by Vladimir Goncharov. :license: MIT, see LICENSE for more details....
36.877119
78
0.475928
218660bc03a12ea774aec41148d54b5493f1c024
8,318
py
Python
official/vision/detection/main.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
2
2019-11-29T09:04:04.000Z
2020-04-28T06:11:54.000Z
official/vision/detection/main.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
1
2021-03-31T21:39:22.000Z
2021-03-31T21:39:22.000Z
official/vision/detection/main.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
1
2022-01-25T01:09:00.000Z
2022-01-25T01:09:00.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.482456
94
0.72265
f6a0ab277a5b4487dd315aaac9a0887ad29835f9
3,904
py
Python
colour/difference/huang2015.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/difference/huang2015.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/difference/huang2015.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Huang et al. (2015) Power-Functions =================================== Defines the *Huang, Cui, Melgosa, Sanchez-Maranon, Li, Luo and Liu (2015)* power-functions improving the performance of colour-difference formulas: - :func:`colour.difference.power_function_Huang2015` References ---...
32
79
0.630891
6e31af3d57648146ce7dc5c4520ff9651e7e69bb
318
py
Python
Divide and conquer/BinarySearch.py
Meemaw/Algorithms
13da51dfcdc3f7470920c8d4975aa2efce261417
[ "MIT" ]
null
null
null
Divide and conquer/BinarySearch.py
Meemaw/Algorithms
13da51dfcdc3f7470920c8d4975aa2efce261417
[ "MIT" ]
null
null
null
Divide and conquer/BinarySearch.py
Meemaw/Algorithms
13da51dfcdc3f7470920c8d4975aa2efce261417
[ "MIT" ]
null
null
null
__author__ = 'Meemaw' def binarySearch(aList, element): if len(aList) == 1: return aList[0] == element mid = int(len(aList)/2) if aList[mid] > element: return binarySearch(aList[:mid],element) if aList[mid] < element: return binarySearch(aList[mid:], element) return True
24.461538
49
0.622642
2568592a3ef9ea9843e317fe64c8f1ca2957599d
471
py
Python
data/scripts/templates/object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.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 = Tangible() result.template = "object/tangible/ship/attachment/weapon/shared_xwing_weapon1_pos_s06_0.iff" result.a...
27.705882
94
0.738854
1290e9688e9de9003c62d3a6a86e010c97095903
525
py
Python
rates_app_05242021/rates_shared/setup.py
t4d-classes/advanced-python_05242021
a4874d20372001cf199360183e5223ac60efa19f
[ "MIT" ]
null
null
null
rates_app_05242021/rates_shared/setup.py
t4d-classes/advanced-python_05242021
a4874d20372001cf199360183e5223ac60efa19f
[ "MIT" ]
null
null
null
rates_app_05242021/rates_shared/setup.py
t4d-classes/advanced-python_05242021
a4874d20372001cf199360183e5223ac60efa19f
[ "MIT" ]
null
null
null
"""Setup Package Module""" from pathlib import Path from setuptools import find_packages, setup HERE = Path(__file__).parent README = (HERE / "README.md").read_text() setup( name="rates_shared", version="0.1.0", description="A shared library for the Rates App.", long_description=README, long_desc...
25
57
0.685714
4e5d2930cff0ac752d291141be657c8caba57343
129
py
Python
pokus1/views.py
zvolsky/example_translation
37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc
[ "MIT" ]
null
null
null
pokus1/views.py
zvolsky/example_translation
37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc
[ "MIT" ]
null
null
null
pokus1/views.py
zvolsky/example_translation
37a8e71df6bdc12dda96b9e84b5c1bb7a16087dc
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView class HelloWorldView(TemplateView): template_name = "pokus1/helloworld.html"
21.5
45
0.806202
65beeadedeb7337da616145bafe1667553a261d1
369
py
Python
receiver.py
dack/labo-caller
bb7764bc92f1aaa9d758f3811c50df17f99a79f8
[ "MIT" ]
null
null
null
receiver.py
dack/labo-caller
bb7764bc92f1aaa9d758f3811c50df17f99a79f8
[ "MIT" ]
null
null
null
receiver.py
dack/labo-caller
bb7764bc92f1aaa9d758f3811c50df17f99a79f8
[ "MIT" ]
null
null
null
from flask import Flask from twilio.twiml.voice_response import VoiceResponse app = Flask(__name__) @app.route("/answer", methods=['GET', 'POST']) def answer_call(): """Respond to incoming phone calls with a brief message.""" resp = VoiceResponse() resp.say('Hello', voice='man') return str(resp) i...
21.705882
63
0.685637
28aee349081a5be342e32ecb3d0d42158b641956
409
py
Python
backend/drive_time_29216/wsgi.py
crowdbotics-apps/drive-time-29216
963cbe578f21c79a974a72a9cd410a1996a1957b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/drive_time_29216/wsgi.py
crowdbotics-apps/drive-time-29216
963cbe578f21c79a974a72a9cd410a1996a1957b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/drive_time_29216/wsgi.py
crowdbotics-apps/drive-time-29216
963cbe578f21c79a974a72a9cd410a1996a1957b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for drive_time_29216 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
b7864ba36467fba2de68248cf4079d7f44fc7aaf
3,909
py
Python
tests/test_integration_user_information.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
tests/test_integration_user_information.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
tests/test_integration_user_information.py
PhotoScout/API
24c2040b0a2fcb1ea906c7aa095c9e74d3ca4fa9
[ "MIT" ]
null
null
null
import unittest2 as unittest import json from app import app, db from app.models import User, BetaCode import base64 import time class Test_Integration_User_Information(unittest.TestCase): """ All the test cases around the user manipulation """ ENTRYPOINT_USER = app.config['BASE_URL']+'/user' ENTRYPOINT_AU...
32.575
80
0.606293
299b4032f39badc444fbc70ad0f72aa3ad2ea879
548
py
Python
utils/logsupport.py
JackYangzg/pytorch-ddpg
96838a40dd6992a0a18065a5edafbefc6bb0ac69
[ "Apache-2.0" ]
1
2018-07-31T03:00:42.000Z
2018-07-31T03:00:42.000Z
utils/logsupport.py
JackYangzg/pytorch-ddpg
96838a40dd6992a0a18065a5edafbefc6bb0ac69
[ "Apache-2.0" ]
null
null
null
utils/logsupport.py
JackYangzg/pytorch-ddpg
96838a40dd6992a0a18065a5edafbefc6bb0ac69
[ "Apache-2.0" ]
1
2018-07-31T03:01:11.000Z
2018-07-31T03:01:11.000Z
import logging from utils.configsupport import config from constfile.constkey import * __fileout = config.get(LOG_ISFILEOUT) __filepath = config.get(LOG_FILEPATH) __level = config.get(LOG_LEVEL) __formated = "%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s" __datefmt= '%a, %d %b %Y %H:%M:%S' if ...
30.444444
97
0.759124
2e93114b29aa107bb77b3ffaad2013a16b3ad9d1
776
py
Python
scripts/rebar_visible.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
1
2021-07-23T14:38:17.000Z
2021-07-23T14:38:17.000Z
scripts/rebar_visible.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
null
null
null
scripts/rebar_visible.py
appolimp/Dynamo_scripts
c4ea77428111d186fab55501243ad4319376482b
[ "MIT" ]
null
null
null
# coding=utf-8 from base.wrapper import transaction, doc from base.exeption import ScriptError from rebar import unobscured_all_selected_rebars_on_view, unobscured_all_rebars_on_view import logging @transaction def main(): ONLY_SELECTED = IN[0] if ONLY_SELECTED: unobscured_all_selected_rebars_on_view(...
27.714286
87
0.69201
bb83ddadd832bf156966a91cee9f00ae6247aacd
5,154
py
Python
quantum_chemistry/train.py
yuxuan-du/Quantum_architecture_search
429be34bd7ccce60453344a3e72f05fba07dde1e
[ "Apache-2.0" ]
5
2021-08-19T06:45:23.000Z
2022-03-07T03:00:20.000Z
quantum_chemistry/train.py
yuxuan-du/Quantum_architecture_search
429be34bd7ccce60453344a3e72f05fba07dde1e
[ "Apache-2.0" ]
null
null
null
quantum_chemistry/train.py
yuxuan-du/Quantum_architecture_search
429be34bd7ccce60453344a3e72f05fba07dde1e
[ "Apache-2.0" ]
1
2021-11-25T08:07:19.000Z
2021-11-25T08:07:19.000Z
import argparse import pennylane as qml from pennylane import numpy as np import time import os import json from model import CircuitModel parser = argparse.ArgumentParser("QAS") parser.add_argument('--data', type=str, default='./data', help='location of the data corpus') parser.add_argument('--learning_rate', type=fl...
37.347826
129
0.629608
7d50657b9d7dd01d6e2892ea8097b87d33494182
1,313
py
Python
setup.py
Khan/flask-babel
864eaabbe54e3bc9b26b25ecee859a7a1bab716b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Khan/flask-babel
864eaabbe54e3bc9b26b25ecee859a7a1bab716b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Khan/flask-babel
864eaabbe54e3bc9b26b25ecee859a7a1bab716b
[ "BSD-3-Clause" ]
null
null
null
""" Flask-Babel ----------- Adds i18n/l10n support to Flask applications with the help of the `Babel`_ library. Links ````` * `documentation <http://packages.python.org/Flask-Babel>`_ * `development version <http://github.com/mitsuhiko/flask-babel/zipball/master#egg=Flask-Babel-dev>`_ .. _Babel: http://babel.edge...
25.25
80
0.623762
e133e662d811f4ceedc29fc450376a35c5513e2e
378
py
Python
setup.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
4
2015-05-08T16:58:53.000Z
2019-09-06T05:30:59.000Z
setup.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
2
2019-02-17T17:44:53.000Z
2019-03-28T03:54:39.000Z
setup.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
7
2015-05-21T15:38:29.000Z
2019-10-28T23:39:06.000Z
import os from setuptools import setup, find_packages setup(name='make_mozilla', version='1.0', description='Django application.', long_description='', author='', author_email='', license='', url='', include_package_data=True, classifiers = [], packages=fin...
21
48
0.613757
a0d868b5cc7e82243953bc64f12c0964045ba7e7
1,290
py
Python
pg_jts/__init__.py
iburadempa/pg_jts
bbb444525c6c3760bfd5407e884782824594d0e0
[ "MIT" ]
9
2015-10-21T18:08:01.000Z
2021-05-26T15:33:14.000Z
pg_jts/__init__.py
iburadempa/pg_jts
bbb444525c6c3760bfd5407e884782824594d0e0
[ "MIT" ]
6
2015-11-16T18:36:06.000Z
2020-08-09T10:36:27.000Z
pg_jts/__init__.py
iburadempa/pg_jts
bbb444525c6c3760bfd5407e884782824594d0e0
[ "MIT" ]
3
2015-11-16T09:55:13.000Z
2018-03-29T02:04:20.000Z
# Copyright (C) 2015 ibu radempa <ibu@radempa.de> # # Permission is hereby granted, free of charge, to # any person obtaining a copy of this software and # associated documentation files (the "Software"), # to deal in the Software without restriction, # including without limitation the rights to use, # copy, modify, me...
36.857143
67
0.768992
ddaf0109411a4690337b561f1aea436303ac76a4
607
py
Python
easy/Binary Tree Inorder Traversal/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
8
2021-08-21T19:10:04.000Z
2022-03-11T14:30:02.000Z
easy/Binary Tree Inorder Traversal/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
null
null
null
easy/Binary Tree Inorder Traversal/solution.py
ashutosh1919/leetcode-problems
65f99a3694549af88c7702b598de1a8ccb7db5fb
[ "MIT" ]
1
2021-08-24T06:29:02.000Z
2021-08-24T06:29:02.000Z
# Time complexity: O(n) # Approach: Standard inorder traversal algorithm # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def inorder(self, root, ans): ...
28.904762
70
0.593081
5ff489d26516baeb27a7a86feaefd7dbb642bdaa
844
py
Python
tests/variables_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
tests/variables_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
tests/variables_test.py
sethvargo/vaex
c610324316b2c0a14b8ceac2a30e202adc9da28b
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
import numpy as np def test_variables(df): df.add_variable('a', 2) df['w'] = df['x'] + df['a'] assert (df.x + 2).tolist() == df.w.tolist() assert (df.x + 2).tolist() == df[['w']].w.tolist() def test_variable_rename(df): df.add_variable('a', 2) df['w'] = df['x'] + df['a'] assert (df.x + 2...
30.142857
72
0.57346
38a5c6fab6e94b336162868db481d7a172b2c4a5
447
py
Python
scripts/patchNeutron.py
swordboy/neutron-portforward-service
271cccbc89f8508b3dd9370de52cd1ca58afad6c
[ "Artistic-2.0" ]
1
2016-10-13T02:15:36.000Z
2016-10-13T02:15:36.000Z
scripts/patchNeutron.py
swordboy/neutron-portforward-service
271cccbc89f8508b3dd9370de52cd1ca58afad6c
[ "Artistic-2.0" ]
null
null
null
scripts/patchNeutron.py
swordboy/neutron-portforward-service
271cccbc89f8508b3dd9370de52cd1ca58afad6c
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 def patch(): config="/etc/neutron/neutron.conf" with open("/etc/neutron/neutron.conf") as conf: contents=conf.readlines() result=[] for line in contents: if line.startswith("service_plugins"): line=line.strip()+",portforward\n" result.append(l...
24.833333
54
0.64877
837eac150f745f1bc9e1e6cacda597e9b77a173a
15,277
py
Python
aiortc/rtcdtlstransport.py
harrydrippin/aiortc
1e72b9a752b0c807316cd0bea2c26c7ae00ecdf4
[ "BSD-3-Clause" ]
null
null
null
aiortc/rtcdtlstransport.py
harrydrippin/aiortc
1e72b9a752b0c807316cd0bea2c26c7ae00ecdf4
[ "BSD-3-Clause" ]
null
null
null
aiortc/rtcdtlstransport.py
harrydrippin/aiortc
1e72b9a752b0c807316cd0bea2c26c7ae00ecdf4
[ "BSD-3-Clause" ]
null
null
null
import asyncio import base64 import binascii import datetime import enum import logging import os import struct import attr from cryptography.hazmat.backends import default_backend from cryptography.hazmat.bindings.openssl.binding import Binding from cryptography.hazmat.primitives.asymmetric import ec from cryptograph...
32.504255
96
0.619035
66d04b556c690f348751d1a010b936f36251ac99
4,158
py
Python
aif360/algorithms/transformer.py
andrerubeis/AIF360
c0ce6f2e3eff9cab0ccce0bc0a05b681a5df7e44
[ "Apache-2.0" ]
null
null
null
aif360/algorithms/transformer.py
andrerubeis/AIF360
c0ce6f2e3eff9cab0ccce0bc0a05b681a5df7e44
[ "Apache-2.0" ]
null
null
null
aif360/algorithms/transformer.py
andrerubeis/AIF360
c0ce6f2e3eff9cab0ccce0bc0a05b681a5df7e44
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod from functools import wraps from aif360.datasets import Dataset from aif360.decorating_metaclass import ApplyDecorator # TODO: Use sklearn.exceptions.NotFittedError instead? class NotFittedError(ValueError, AttributeError): """Error to be raised if `predict` or `transform` is calle...
32.484375
89
0.633237
ec47bf01ebf9beb16408299c8c0c4301f6ba9ef1
4,642
py
Python
PasswordManager/PwWindow.py
whymatter/PasswordManager
86070a1f998362cfa026e6e6e9b820a2d7ad5f06
[ "MIT" ]
null
null
null
PasswordManager/PwWindow.py
whymatter/PasswordManager
86070a1f998362cfa026e6e6e9b820a2d7ad5f06
[ "MIT" ]
null
null
null
PasswordManager/PwWindow.py
whymatter/PasswordManager
86070a1f998362cfa026e6e6e9b820a2d7ad5f06
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtWidgets, uic from PyQt5.QtWidgets import QApplication, QTableWidgetItem from Crypto.Cipher import AES import json from constants import FILE_NAME, KEY_ENCODING from SaveDialog import SaveDialog # -*- coding: utf-8 -*- """ Created on Fri Nov 17 13:53:56 2017 @author: seitz ...
32.461538
93
0.550409
9aaa1c2b83405b7e75a1a8f71bd668d7240eddb2
8,520
py
Python
tpu/models/official/resnet/benchmark/resnet_benchmark.py
DLPerf/class-balanced-loss
8ac4342949991384c13b5419148be7a617f2abf1
[ "MIT" ]
541
2019-01-18T03:10:19.000Z
2022-03-30T05:45:36.000Z
models/official/resnet/benchmark/resnet_benchmark.py
lc0/tpu
78eacbc1b216d498cd0456b5d84d4abcd5f16a9a
[ "Apache-2.0" ]
20
2019-02-11T06:45:43.000Z
2021-11-09T18:44:36.000Z
models/official/resnet/benchmark/resnet_benchmark.py
lc0/tpu
78eacbc1b216d498cd0456b5d84d4abcd5f16a9a
[ "Apache-2.0" ]
75
2019-01-20T13:50:39.000Z
2022-03-30T08:10:50.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.20524
133
0.688967
34cf4c21bff5e3b2b838b405c718743366ef4c94
178,722
py
Python
autotest/gdrivers/nitf.py
cholmes/gdal
e091ab0c9b45832f6281dae2437a5759ecd777c2
[ "MIT" ]
null
null
null
autotest/gdrivers/nitf.py
cholmes/gdal
e091ab0c9b45832f6281dae2437a5759ecd777c2
[ "MIT" ]
null
null
null
autotest/gdrivers/nitf.py
cholmes/gdal
e091ab0c9b45832f6281dae2437a5759ecd777c2
[ "MIT" ]
null
null
null
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read/write functionality for NITF driver. # Author: Frank Warmerdam <warmerdam@pobox.com> # ##########################################...
37.993622
1,079
0.594426
0f228f25863905a12148bddbe4cf13a44edfe2fe
22
py
Python
consul/datadog_checks/consul/__about__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
rasa_sdk/version.py
ClaudeCoulombe/rasa-sdk
17eb70187555c8656336f9f21dcb2eb18655f455
[ "Apache-2.0" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
rasa_sdk/version.py
ClaudeCoulombe/rasa-sdk
17eb70187555c8656336f9f21dcb2eb18655f455
[ "Apache-2.0" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
__version__ = "1.5.1"
11
21
0.636364
9bb843cbec397759faee30373360260fb3503149
692
py
Python
cpuTemperatureReading.py
bobjects/google-spreadsheet-temperature-logger
91861ddc7f651288116a727b17c9b9ffdbd15ea3
[ "MIT" ]
null
null
null
cpuTemperatureReading.py
bobjects/google-spreadsheet-temperature-logger
91861ddc7f651288116a727b17c9b9ffdbd15ea3
[ "MIT" ]
null
null
null
cpuTemperatureReading.py
bobjects/google-spreadsheet-temperature-logger
91861ddc7f651288116a727b17c9b9ffdbd15ea3
[ "MIT" ]
null
null
null
from temperatureReading import TemperatureReading class CPUTemperatureReading(TemperatureReading): def acquireCelsius(self): return self.parseRawString(self.procFileContents) @property def procFileName(self): return "" @property def procFileContents(self): try: ...
28.833333
94
0.654624
303573c9d577292f6b309f692aa48e563ebe5b9a
3,875
py
Python
tests/test_git_format_pkg_patch.py
openSUSE/git-packaging-tools
be81c7d207db185ddc0d2510bd025cfc2e9613c7
[ "MIT" ]
8
2017-08-15T12:51:34.000Z
2020-10-07T09:58:34.000Z
tests/test_git_format_pkg_patch.py
openSUSE/git-packaging-tools
be81c7d207db185ddc0d2510bd025cfc2e9613c7
[ "MIT" ]
5
2017-02-04T12:32:16.000Z
2020-07-01T14:13:19.000Z
tests/test_git_format_pkg_patch.py
openSUSE/git-packaging-tools
be81c7d207db185ddc0d2510bd025cfc2e9613c7
[ "MIT" ]
6
2017-02-07T13:31:21.000Z
2021-02-10T23:14:03.000Z
from gfp import get_diff_contents, unique class TestUtils(object): ''' Grouped tests for utility functions ''' diff_a = """ From b338b21fe340ee4efa0045894315fcf20be1dc49 Mon Sep 17 00:00:00 2001 From: Test <info@suse.com> Date: Wed, 14 Dec 2016 10:33:39 +0100 Subject: [PATCH] Avoid failures on SLES 12...
30.273438
105
0.626581
498c3fafbddb00616f420673aa6eb7436a022b6f
853
py
Python
options/test_options.py
IrinaM21/ChestXRayVis
13e8f2767406b924f38695b79b7cf80abf0ef755
[ "MIT" ]
2
2021-04-06T03:45:12.000Z
2021-04-12T17:27:05.000Z
options/test_options.py
IrinaM21/ChestXRayVis
13e8f2767406b924f38695b79b7cf80abf0ef755
[ "MIT" ]
null
null
null
options/test_options.py
IrinaM21/ChestXRayVis
13e8f2767406b924f38695b79b7cf80abf0ef755
[ "MIT" ]
null
null
null
from .base_options import BaseOptions class TestOptions(BaseOptions): def initialize(self, parser): parser = BaseOptions.initialize(self, parser) parser.add_argument('--ntest', type=int, default=float("inf"), help='# of the test examples') parser.add_argument('--results_dir', type=str, d...
47.388889
135
0.682298
29d0c6f250e078e9680104a36619da59f559cd8f
10,129
py
Python
trainer/trainer.py
justinge/DBnet.Pytorch
00dd292f1e0091e71486616b0771ab978dbd0d28
[ "Apache-2.0" ]
null
null
null
trainer/trainer.py
justinge/DBnet.Pytorch
00dd292f1e0091e71486616b0771ab978dbd0d28
[ "Apache-2.0" ]
null
null
null
trainer/trainer.py
justinge/DBnet.Pytorch
00dd292f1e0091e71486616b0771ab978dbd0d28
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/8/23 21:58 # @Author : zhoujun import time import torch import torchvision.utils as vutils from tqdm import tqdm from base import BaseTrainer from utils import WarmupPolyLR, runningScore, cal_text_score class Trainer(BaseTrainer): def __init__(self, config, model, crit...
52.21134
154
0.573897
1e5bab80845593f186a6d6c3af8e28946948b87a
12,191
py
Python
Lib/multiprocessing/queues.py
lotapp/cpython3
2c3125eba450f4f4ec649cae5613b3f6cbc4f110
[ "PSF-2.0" ]
2
2019-07-05T09:19:52.000Z
2019-12-18T10:31:38.000Z
Lib/multiprocessing/queues.py
lotapp/cpython3
2c3125eba450f4f4ec649cae5613b3f6cbc4f110
[ "PSF-2.0" ]
null
null
null
Lib/multiprocessing/queues.py
lotapp/cpython3
2c3125eba450f4f4ec649cae5613b3f6cbc4f110
[ "PSF-2.0" ]
null
null
null
# # Module implementing queues # # multiprocessing/queues.py # # Copyright (c) 2006-2008, R Oudkerk # Licensed to PSF under a Contributor Agreement. # __all__ = ['Queue', 'SimpleQueue', 'JoinableQueue'] import sys import os import threading import collections import time import weakref import errno from queue import...
32.33687
80
0.564269
9bebc880f97708d73aeaabe3fe878ec5f53343b4
9,506
py
Python
lib/fast_rcnn/config.py
yanxp/self_learning-framwork
df7902f83913ba709170a8e2e003abe89619f5cc
[ "MIT" ]
1
2018-03-18T11:50:58.000Z
2018-03-18T11:50:58.000Z
lib/fast_rcnn/config.py
yanxp/self_learning-framwork
df7902f83913ba709170a8e2e003abe89619f5cc
[ "MIT" ]
null
null
null
lib/fast_rcnn/config.py
yanxp/self_learning-framwork
df7902f83913ba709170a8e2e003abe89619f5cc
[ "MIT" ]
null
null
null
# Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Fast R-CNN config system. This file specifies default config options for Fast R-CNN. You should not change values in this file....
32.443686
91
0.695876
f2e18a6a6f8b14acc5b5214a2fec88b209b18e6b
141
py
Python
LinearModel/logistic_reg/test.py
Jarvis73/MachineLearning
a3add9eb0f45cbcc193ca72236373ae5b4befcb5
[ "MIT" ]
2
2021-06-10T05:02:51.000Z
2021-09-16T14:23:26.000Z
LinearModel/logistic_reg/test.py
Jarvis73/MachineLearning
a3add9eb0f45cbcc193ca72236373ae5b4befcb5
[ "MIT" ]
null
null
null
LinearModel/logistic_reg/test.py
Jarvis73/MachineLearning
a3add9eb0f45cbcc193ca72236373ae5b4befcb5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3, 3) y = -x**5 + x**3 + 4*x plt.plot(x, y) plt.ylim(-10, 10) plt.show()
17.625
31
0.631206
98e9cb54c2f1d0b29f02b657b8c2e4d324dfc377
3,874
py
Python
injaz/hooks.py
erpcloudsystems/injaz
ed273d2ff179070e0b44dbc1932ac8ffb13e27de
[ "MIT" ]
null
null
null
injaz/hooks.py
erpcloudsystems/injaz
ed273d2ff179070e0b44dbc1932ac8ffb13e27de
[ "MIT" ]
null
null
null
injaz/hooks.py
erpcloudsystems/injaz
ed273d2ff179070e0b44dbc1932ac8ffb13e27de
[ "MIT" ]
null
null
null
from . import __version__ as app_version app_name = "injaz" app_title = "Injaz" app_publisher = "erpcloud.systems" app_description = "injaztech.net customization" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "mg@erpcloud.systems" app_license = "MIT" # Includes in <head> # ---------------...
22.011364
78
0.653072
0120b8f77b81dc0d9be0dd8c17f9fa49544ff089
5,090
py
Python
servequnit/scripts.py
bnkr/selenit
bdbedd930a5d324ddfbebcc0be3998d7d517eced
[ "MIT" ]
1
2015-03-04T22:45:52.000Z
2015-03-04T22:45:52.000Z
servequnit/scripts.py
bnkr/selenit
bdbedd930a5d324ddfbebcc0be3998d7d517eced
[ "MIT" ]
null
null
null
servequnit/scripts.py
bnkr/selenit
bdbedd930a5d324ddfbebcc0be3998d7d517eced
[ "MIT" ]
null
null
null
""" Runs an HTTP server which serves up qunit unit tests. """ from __future__ import print_function import argparse, sys, logging, subprocess, os from six.moves import urllib from servequnit.tester import QunitSeleniumTester from servequnit.factory import ServerFactory class CliCommand(object): """Command pattern ...
34.62585
108
0.58389
caae465d794051bd8a665a1b3adc87d1f3ab8fb0
3,953
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_grid_carsGLM.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/glm/pyunit_grid_carsGLM.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/glm/pyunit_grid_carsGLM.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random import copy from h2o.estimators.glm import H2OGeneralizedLinearEstimator from h2o.grid.grid_search import H2OGridSearch def grid_cars_GLM(): cars = h2o.import_file(path=pyunit_utils.locate("smalldata/junit/cars_20mp...
42.505376
118
0.692133
9d49feb2bd372a9847d40a88e4e5c1561d0ac111
1,600
py
Python
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_async.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
171
2018-09-19T21:16:18.000Z
2020-12-07T17:41:10.000Z
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_async.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
150
2018-09-25T14:04:28.000Z
2020-12-09T21:45:43.000Z
samples/generated_samples/dialogflow_generated_dialogflow_v2_answer_records_list_answer_records_async.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
75
2018-09-22T14:12:18.000Z
2020-12-08T07:12:12.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.333333
85
0.764375
ea4647a39c0aea1aacc7944f050b6ad6a266d6db
3,038
py
Python
kmip/core/messages/payloads/destroy.py
vbnmmnbv/PyKMIP
4617ae528006178c466fe3945a477f568b596940
[ "Apache-2.0" ]
12
2016-09-14T21:59:10.000Z
2020-03-11T07:37:25.000Z
kmip/core/messages/payloads/destroy.py
vbnmmnbv/PyKMIP
4617ae528006178c466fe3945a477f568b596940
[ "Apache-2.0" ]
1
2021-06-25T15:43:48.000Z
2021-06-25T15:43:48.000Z
kmip/core/messages/payloads/destroy.py
vbnmmnbv/PyKMIP
4617ae528006178c466fe3945a477f568b596940
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
30.686869
79
0.693548
0c30ff1f70605a98959d29216e233b8cbdfccc28
19,043
py
Python
pymcr/mcr.py
francisco-dlp/pyMCR
358f4087dbaeb1fdba3b8c8e38122d2e934d01a1
[ "Python-2.0" ]
1
2021-01-05T08:44:51.000Z
2021-01-05T08:44:51.000Z
pymcr/mcr.py
francisco-dlp/pyMCR
358f4087dbaeb1fdba3b8c8e38122d2e934d01a1
[ "Python-2.0" ]
null
null
null
pymcr/mcr.py
francisco-dlp/pyMCR
358f4087dbaeb1fdba3b8c8e38122d2e934d01a1
[ "Python-2.0" ]
null
null
null
""" MCR Main Class for Computation""" import sys as _sys import numpy as _np import logging as _logging from pymcr.regressors import OLS, NNLS from pymcr.constraints import ConstraintNonneg from pymcr.metrics import mse # create logger for mcr.py and set default level _logger = _logging.getLogger(__name__) _logger.s...
34.435805
79
0.538623
d74864083f1fe6e61c107e538e978caf85306aed
6,847
py
Python
bootstrap3_datetime/widgets.py
Solanar/django-bootstrap3-datetimepicker
cc67aa79c2843f6c477a6b2f0053aee25cd8c313
[ "Apache-2.0" ]
2
2018-04-29T05:31:59.000Z
2018-04-29T05:32:15.000Z
bootstrap3_datetime/widgets.py
AntycSolutions/django-bootstrap3-datetimepicker
cc67aa79c2843f6c477a6b2f0053aee25cd8c313
[ "Apache-2.0" ]
null
null
null
bootstrap3_datetime/widgets.py
AntycSolutions/django-bootstrap3-datetimepicker
cc67aa79c2843f6c477a6b2f0053aee25cd8c313
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.forms.utils import flatatt from django.forms.widgets import DateTimeInput from django.utils import translation from django.utils.safestring import mark_safe from django.utils.html import conditional_escape try: import json except ImportError: from django.utils import simplej...
42.006135
120
0.508398
3b441e47c08821267d3e93249b2f1f9673b11f56
5,197
py
Python
runs/Re200_St0.6_AR1.27_psi110/scripts/process_qcrit_wx_snapshot.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
2
2021-09-06T03:37:06.000Z
2021-12-01T02:39:13.000Z
runs/Re200_St0.6_AR1.27_psi110/scripts/process_qcrit_wx_snapshot.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
3
2020-03-30T21:52:01.000Z
2021-07-11T13:11:35.000Z
runs/Re200_St0.6_AR1.27_psi110/scripts/process_qcrit_wx_snapshot.py
mesnardo/petibm-rollingpitching
39f7ed9b88973727bed6955e31d99754d7627c9f
[ "BSD-3-Clause" ]
4
2021-02-22T21:54:16.000Z
2022-01-18T18:39:34.000Z
"""Post-process images of Q-criterion to compute inclination angles.""" import collections import math from matplotlib import patches, pyplot import pathlib import rodney Point = collections.namedtuple('Point', ['x', 'y']) def get_midpoint(point1, point2): """Return the midpoint.""" return Point(0.5 * (po...
33.96732
76
0.615932