hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
624bb0daed834ccb45922468668a8696a3944ad0
7,468
py
Python
aim2_metrics/aim/metrics/m4_contour_density.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
aim2_metrics/aim/metrics/m4_contour_density.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
aim2_metrics/aim/metrics/m4_contour_density.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Metric: Contour density Description: The ratio of contour pixels to all pixels. Category: Visual complexity > Information amount > Visual clutter. For details, see CL1 [1], A9 [2], and CL1 [3]. Funding information and contact: This work was fun...
37.717172
123
0.626272
624beb318f9bc3d3df32e23c4829876ca5b655fe
10,536
py
Python
sdks/python/setup.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
null
null
null
sdks/python/setup.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
64
2020-01-29T05:07:21.000Z
2021-07-28T04:37:39.000Z
sdks/python/setup.py
abergmeier/beam
f1360c4dd71d9880bfce7feea415457ac0647c30
[ "Apache-2.0" ]
1
2020-04-29T20:09:40.000Z
2020-04-29T20:09:40.000Z
# # 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 us...
32.418462
79
0.672836
624c0598dfe01724fc34548b71412fd3a857635b
546
py
Python
examples/minion/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
examples/minion/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
examples/minion/scripts/copy_esp32_devki1_package.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import platform if platform.system() == 'Windows': MYPYTHON = 'python' MYCODEROOT = 'c:/coderoot' MYSOURCEFILE = "c:" else: MYPYTHON = 'python3' MYCODEROOT = '/coderoot' MYSOURCEFILE = "" MYSOURCEFILE += '/tmp/minion_ioboard_tmp/esp32doit-devkit-v1/firmware.bin...
23.73913
131
0.663004
624c0c12ed4b87bb52af123886cd2a44086856aa
2,092
py
Python
sanity/management/commands/dump.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
sanity/management/commands/dump.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
sanity/management/commands/dump.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError import sanity.models as models import sanity.pdf_renderer.build.libpdf_python as pdf_python import sanity.utils as utils import xml.etree.ElementTree as ET import re import urllib.request import urllib.parse import time import datetime import os import t...
30.318841
106
0.592256
624c2eed725bb379201b97f37f6d33767727ddde
671
py
Python
model_generator.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
model_generator.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
model_generator.py
cheng-xie/dpgfddagger
5264d5b9e0ab76fc9620da63bcfd78b25dadcbec
[ "MIT" ]
null
null
null
import os import sys import getopt import json def main(argv): """Specify input to generator with: -s : save path -f : model_def folder """ opts, args = getopt.getopt(argv,"s:f:") save_location = "models/ddpg_models/" model_def_folder = "" print(opts) for opt, arg in opts: ...
20.333333
74
0.591654
624c34852fb0896ec657e0423e420c25a3cbef59
1,276
py
Python
{{cookiecutter.project_slug}}/src/config/wsgi.py
abogoyavlensky/cookiecutter-django-api
9b1516e80d22a0d50b524e5ce8ce975a50bf59f1
[ "MIT" ]
7
2018-06-17T19:14:07.000Z
2019-09-02T07:21:53.000Z
{{cookiecutter.project_slug}}/src/config/wsgi.py
abogoyavlensky/cookiecutter-django-api
9b1516e80d22a0d50b524e5ce8ce975a50bf59f1
[ "MIT" ]
2
2018-04-07T08:26:25.000Z
2018-04-12T19:17:09.000Z
{{cookiecutter.project_slug}}/src/config/wsgi.py
abogoyavlensky/cookiecutter-django-api
9b1516e80d22a0d50b524e5ce8ce975a50bf59f1
[ "MIT" ]
null
null
null
""" WSGI config for {{cookiecutter.project_name}} project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the...
36.457143
79
0.793103
624c3e862e57ab4f211e659d680bb35ca58c5872
5,275
py
Python
sdks/python/appcenter_sdk/models/AnalyticsReleasesParameter.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/AnalyticsReleasesParameter.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/AnalyticsReleasesParameter.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AnalyticsRelea...
31.029412
113
0.610806
624c4383d8e90015896c68096ec45922ce214f9a
2,588
py
Python
Tests/test_File.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
1
2020-05-26T22:51:14.000Z
2020-05-26T22:51:14.000Z
Tests/test_File.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
null
null
null
Tests/test_File.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
null
null
null
# Copyright 1999 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. from __future__ import print_function import os.path import unittest import shutil from Bio._...
27.242105
76
0.632148
624c9f0ab14767b74fdd551ae1e70d8ecded1c4f
47,398
py
Python
MVC_Net.py
VincentYCYao/MVC-Net-pytorch
31f826825cdfe862fbfe0fe19edc78c04d1dec55
[ "MIT" ]
null
null
null
MVC_Net.py
VincentYCYao/MVC-Net-pytorch
31f826825cdfe862fbfe0fe19edc78c04d1dec55
[ "MIT" ]
null
null
null
MVC_Net.py
VincentYCYao/MVC-Net-pytorch
31f826825cdfe862fbfe0fe19edc78c04d1dec55
[ "MIT" ]
null
null
null
import os import numpy as np import torch import torch.nn as nn from datetime import datetime def get_matrixS(n): """ Manually define a constant matrix S. (Paper: Automated comprehensive Adolescent Idiopathic Scoliosis assessment using MVC-Net) :param n: n=1/2 * #landmarks (refer to the paper for de...
51.463626
120
0.572514
624cdca18e0a9f1424f3be2ea9b009bcc259d70c
11,065
py
Python
custom_components/sonoff/core/devices.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/sonoff/core/devices.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/sonoff/core/devices.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
""" Each device has a specification - list of classes (XEntity childs). Platform will setup entity if it isinstance() of platform entity class. User can override SwitchEntity of any device via YAML (device_class option). XEntity properties: - params - required, set of parameters that this entity can read - param - op...
36.278689
82
0.622503
624ce81bec8a66a22f4dfe91b78e8b5711b5b64c
4,877
py
Python
pdfmajor/interpreter/commands/state/layout/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
23
2019-01-13T23:32:24.000Z
2021-07-08T04:29:15.000Z
pdfmajor/interpreter/commands/state/layout/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
3
2019-08-09T18:42:01.000Z
2019-12-13T15:43:24.000Z
pdfmajor/interpreter/commands/state/layout/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
2
2020-01-09T11:18:20.000Z
2020-03-24T06:02:30.000Z
from typing import List from pdfmajor.utils import apply_matrix_pt, INF, Bbox, Point, MATRIX_IDENTITY, mult_matrix from ..Curves import CurvePath from ..PDFGraphicState import PDFGraphicState, PDFColor from ..PDFTextState import PDFTextState from ._base import LTItem, LTComponent, LTContainer from .LTTextBlock import...
36.395522
98
0.524913
624cf90c1132bee156d78cd2bfaf37365fd7e698
2,748
py
Python
imdb/parser.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
1
2020-01-08T16:19:03.000Z
2020-01-08T16:19:03.000Z
imdb/parser.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
3
2019-12-21T10:19:44.000Z
2021-01-07T22:13:14.000Z
imdb/parser.py
lithammer/imdb-api
fe7b2ebca30ec62b2dd608aba911c04bdc84ba76
[ "MIT" ]
2
2020-01-08T16:19:11.000Z
2022-03-22T02:09:41.000Z
from datetime import datetime import os import re from flask import request class IMDb: def __init__(self, html, width, height): self.html = html self.width = width self.height = height @property def poster(self): poster = self.html.find_all('img')[1].attrs['src'] ...
30.197802
76
0.561135
624d1a6739c375ba1c1416dbd21ec0754214bf4e
1,548
py
Python
marqeta/response_models/program_transfer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/program_transfer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/program_transfer.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.fee_model import FeeModel from marqeta.response_models import datetime_object import json import re class ProgramTransfer(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return j...
23.454545
93
0.673127
624d263258549bfe2b3d01990fb40c1d78d1e872
2,823
py
Python
tests/test_bqm_tools.py
euro-hpc-pl/omnisolver-pt
402beed5b7c475a13cc59b04a77fe03ca7174e70
[ "Apache-2.0" ]
null
null
null
tests/test_bqm_tools.py
euro-hpc-pl/omnisolver-pt
402beed5b7c475a13cc59b04a77fe03ca7174e70
[ "Apache-2.0" ]
1
2021-09-02T22:31:18.000Z
2021-09-02T22:31:18.000Z
tests/test_bqm_tools.py
euro-hpc-pl/omnisolver-pt
402beed5b7c475a13cc59b04a77fe03ca7174e70
[ "Apache-2.0" ]
null
null
null
"""Test cases for utility functions used in PT sampler.""" import dimod import numpy as np from omnisolver.pt.bqm_tools import adjacency_list_from_couplings, vectorize_bqm class TestBQMVectorization: def test_dense_bqm_vectorization_comprises_correct_biases_and_couplings(self): bqm = dimod.BQM( ...
34.012048
88
0.554021
624d3261f704242af808df97e76fc408d589c29b
2,369
py
Python
src/build/parsAndCutElf.py
open-power/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
9
2017-03-21T08:34:24.000Z
2022-01-25T06:00:51.000Z
src/build/parsAndCutElf.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2016-11-04T00:46:43.000Z
2021-04-13T16:31:11.000Z
src/build/parsAndCutElf.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2017-03-24T11:52:56.000Z
2022-01-25T06:00:49.000Z
#!/usr/bin/python # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/build/parsAndCutElf.py $ # # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2016,2020 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
29.6125
105
0.639088
624d6e3002a7b3c40eefffea531b3c5c560b91d8
11,945
py
Python
comptontracks/ComptonTrackIdentificationGNN_Keras.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
comptontracks/ComptonTrackIdentificationGNN_Keras.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
comptontracks/ComptonTrackIdentificationGNN_Keras.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
################################################################################################### # # ComptonTrackIdentificationGNN.py # # Copyright (C) by Andreas Zoglauer & Pranav Nagarajan # All rights reserved. # # Please see the file LICENSE in the main repository for the copyright-notice. # ####################...
31.68435
208
0.628045
624d767008355f320556218c0efb93e6e06fbd06
451
py
Python
supplier/tests/__init__.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
supplier/tests/__init__.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
supplier/tests/__init__.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
import json from rest_framework import serializers VALID_REQUEST_DATA = { "sso_id": 1, "company_email": "gargoyle@example.com", "date_joined": "2017-03-21T13:12:00Z", } VALID_REQUEST_DATA_JSON = json.dumps(VALID_REQUEST_DATA) class MockInvalidSerializer(serializers.Serializer): company_email = seri...
22.55
57
0.773836
624d91dcfcaf93dc5b7a8824780a098e381009c4
71
py
Python
netlas/__init__.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
4
2021-06-22T12:22:22.000Z
2022-03-21T15:55:03.000Z
netlas/__init__.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
null
null
null
netlas/__init__.py
netlas-io/netlas-python
cb33beccccc8b7bafb9fe32aaa21c3d8feb21b0c
[ "MIT" ]
null
null
null
from netlas.client import Netlas from netlas.exception import APIError
23.666667
37
0.859155
624d9c822f21a757f96d27e1df5dd060b5c5b9fd
5,040
py
Python
field_history/tracker.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
346
2016-02-17T22:29:55.000Z
2022-03-20T17:43:26.000Z
field_history/tracker.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
36
2016-02-18T18:41:11.000Z
2021-09-17T05:48:36.000Z
field_history/tracker.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
42
2016-02-19T18:20:47.000Z
2020-09-11T01:31:52.000Z
from __future__ import unicode_literals from copy import deepcopy import threading from django.core import serializers from django.conf import settings from django.db import models from .models import FieldHistory def get_serializer_name(): return getattr(settings, 'FIELD_HISTORY_SERIALIZER_NAME', 'json') de...
33.157895
78
0.616468
624da914fdb7e475f591512d801a5ba87b78d631
2,443
py
Python
vplexapi-7.0.0/vplexapi/models/aggregates.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/aggregates.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/aggregates.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from vplexapi.models.aggregate import Aggregate # noqa: F4...
27.144444
80
0.550143
624da9ea25112e1c16d4258a94af5d63a068cc41
858
py
Python
src/get_onnx.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
5
2021-07-31T13:20:38.000Z
2022-02-22T16:50:19.000Z
src/get_onnx.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
null
null
null
src/get_onnx.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
2
2021-08-07T10:13:13.000Z
2021-10-12T02:05:51.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os from tqdm import tqdm from detectors.car_pose import CarPoseDetector from opts import Opts import shutil # time_stats = ['net', 'dec'] def main(opt): os.environ['CUDA_VISIBLE_...
28.6
88
0.668998
624dc465ea933ab310312f6e6dd327e58c7d9b64
3,156
py
Python
Tools/Scripts/webkitpy/common/interrupt_debugging.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/interrupt_debugging.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/interrupt_debugging.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Apple Inc. 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. Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
36.697674
131
0.701521
624df144bc1b0a845c72da9d0a1ae69c21bcadd3
2,484
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_check_password_srp.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_check_password_srp.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_check_password_srp.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
30.666667
103
0.599839
624e0b7219a7dfaddda6a94385c424606c0a08dc
936
py
Python
sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
33.428571
94
0.611111
624e0d6b97c813de2067047b669922dc448c13bd
375
py
Python
tests/test_day03.py
vmorris/aoc2021
76896d65a5df6e51a5ddadf87cb93b8425645398
[ "MIT" ]
null
null
null
tests/test_day03.py
vmorris/aoc2021
76896d65a5df6e51a5ddadf87cb93b8425645398
[ "MIT" ]
null
null
null
tests/test_day03.py
vmorris/aoc2021
76896d65a5df6e51a5ddadf87cb93b8425645398
[ "MIT" ]
null
null
null
from aoc2021.day03 import solution from aoc2021.util import get_input input_data = get_input("tests/testinput.day03", "int-matrix") def test_solve_part1(): expected = 198 actual = solution.solve_part1(input_data) assert expected == actual def test_solve_part2(): expected = 230 actual = solution...
22.058824
61
0.738667
624e3d3db05e2e4f7b95e4d1569104ccb73ec16f
35,301
py
Python
Lib/test/test_gdb.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_gdb.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_gdb.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
# Verify that gdb can pretty-print the various PyObject* types # # The code for testing gdb was adapted from similar work in Unladen Swallow's # Lib/test/test_jit_gdb.py import os import re import pprint import subprocess import sys import sysconfig import unittest import locale # Is this Python configured to support...
41
126
0.55769
624e44e5e4217c06d5d4f578a48d28d02c5c7243
10,955
py
Python
salt/states/test.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/states/test.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
1
2015-09-02T12:49:48.000Z
2015-09-02T19:22:58.000Z
salt/states/test.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Test States =========== Provide test case states that enable easy testing of things to do with state calls, e.g. running, calling, logging, output filtering etc. .. code-block:: yaml always-passes: test.succeed_without_changes: - name: foo always-fails: test....
24.954442
79
0.557919
624e532beb73f8573eedbde23a983691d1a4825c
4,806
py
Python
oslo/log/openstack/common/threadgroup.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/threadgroup.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
oslo/log/openstack/common/threadgroup.py
citrix-openstack-build/oslo.log
f3f275a7625425d8790aa92ab9f94a51474d0aab
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
32.472973
79
0.611111
624ea5e9a6e310f94244a215a8a9e620043023cc
3,098
py
Python
oscar/lib/python2.7/site-packages/treebeard/tests/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/treebeard/tests/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/treebeard/tests/settings.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for testing treebeard """ import os def get_db_conf(): """ Configures database according to the DATABASE_ENGINE environment variable. Defaults to SQlite. This method is used to let Travis run against different database backends. """ database_engine = os.envi...
28.953271
79
0.552615
624ebc91b8d619a6139c45cc0b1e5bdd9150fd54
411
py
Python
main.py
NasyaS/Diplom
6a35c2bed3ae65ee73ac915834d5bb9d42162cbb
[ "MIT" ]
1
2019-07-05T18:48:24.000Z
2019-07-05T18:48:24.000Z
main.py
NasyaS/Diplom
6a35c2bed3ae65ee73ac915834d5bb9d42162cbb
[ "MIT" ]
null
null
null
main.py
NasyaS/Diplom
6a35c2bed3ae65ee73ac915834d5bb9d42162cbb
[ "MIT" ]
null
null
null
import sys, os from PyQt5 import QtCore, QtWidgets, QtGui from lib.window import Window LOG_QT_WARNINGS = False if not LOG_QT_WARNINGS: QtCore.qInstallMessageHandler(lambda x,y,z: None) if __name__ == "__main__": app = QtWidgets.QApplication(sys.argv) QtGui.QFontDatabase.addApplicationFont('interface/H...
25.6875
80
0.751825
624eeb6246dc5e4c6e5f3ace3b8ad2574e328e06
2,456
py
Python
python_scripts/Wait_Times.py
EliZucker/Paranoid-Passenger
3abe3509c1d893e7ef3332c436418377e4a11a12
[ "MIT" ]
2
2021-06-13T12:45:47.000Z
2021-11-29T09:51:50.000Z
python_scripts/Wait_Times.py
ntung88/Paranoid-Passenger
531db490f1902a9bb501e26585f431e65a7d401b
[ "MIT" ]
null
null
null
python_scripts/Wait_Times.py
ntung88/Paranoid-Passenger
531db490f1902a9bb501e26585f431e65a7d401b
[ "MIT" ]
2
2018-12-06T21:32:54.000Z
2020-08-10T17:32:52.000Z
import requests import json def GetTSAWaitTimes(airportCode): """ Returns data from the TSA Wait Times API for a particular airport shortcode. :param airportCode: 3-letter shortcode of airport :return: Returns the full parsed json data from TSA Wait Times API """ base_url = "http://apps.tsa.dhs...
31.487179
108
0.638436
624f011e9b94e2bbd3bd150eb0264f1cda5d79f0
333
py
Python
pyalgo/math/power.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
9
2021-02-01T06:12:38.000Z
2022-02-17T07:32:44.000Z
pyalgo/math/power.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
23
2021-02-02T07:53:22.000Z
2022-03-14T06:16:37.000Z
pyalgo/math/power.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
4
2021-02-02T06:41:14.000Z
2021-06-07T04:15:02.000Z
""" Large powers implementation """ def power(num1: int, num2: int) -> int: """ num1 ^ num2 using binary operations, where num1 and num2 are large numbers """ result = 1 while num2 > 0: if num2 & 1: result = result * num1 num1 = num1 ** 2 num2 >>= 1 r...
17.526316
40
0.528529
624f164188197ec50429f7e828faf194999acdb7
19,881
py
Python
dabax/dabax_xraylib_decorator.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
dabax/dabax_xraylib_decorator.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
dabax/dabax_xraylib_decorator.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
# # dabax functions with the same interface as xraylib # import numpy import scipy.constants as codata from silx.io.specfile import SpecFile from dabax.common_tools import atomic_symbols, atomic_names, atomic_number from dabax.common_tools import bragg_metrictensor from dabax.common_tools import calculate_f0_from_f0coe...
37.582231
131
0.550425
624f16b3207cd9eb32e1836d5bfed052a003d42c
16,492
py
Python
pandas/io/tests/test_sql.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_sql.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_sql.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import unittest import sqlite3 import sys import warnings import nose import numpy as np from pandas.core.datetools import format as date_format from pandas.core.api import DataFrame, isnull from pandas.compat import StringIO, range, lrange import pandas.compat as compat impor...
33.317172
84
0.565304
624f27caa400cd350044ca0d3fb974dcbf18dd7c
1,246
py
Python
nova/cmd/consoleauth.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/cmd/consoleauth.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/cmd/consoleauth.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
3
2018-04-04T15:15:01.000Z
2018-04-19T18:14:25.000Z
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
28.976744
77
0.722311
624f4dde3a1550a7c2fddb271b6ba7b9ededb6f5
4,800
py
Python
docusign_rooms/models/region.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/region.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/region.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
27.428571
90
0.567292
624f8e063b585badd1f8ff215bd9ef7eed67793a
1,569
py
Python
grokking-algorithms/divide_conquer.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T13:29:32.000Z
2019-02-11T13:29:32.000Z
grokking-algorithms/divide_conquer.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
1
2019-02-11T15:26:36.000Z
2019-02-11T15:26:36.000Z
grokking-algorithms/divide_conquer.py
AmrMKayid/KayAlgo
df6e2b5b0f74174d5c0950520f0c47b04212dfaa
[ "MIT" ]
null
null
null
import random from typing import Any from typing import List def sum_(*, array: List[Any]) -> int: if len(array) <= 0: return 0 return array[0] + sum_(array=array[1:]) def count_(*, array: List[Any]) -> int: if len(array) <= 0: return 0 return 1 + count_(array=array[1:]) def max_(*, array: List...
23.772727
80
0.543658
624f9c5e5bb051f784e35a9f74f567149d3821d2
5,686
py
Python
src/parallel/MultiProcessManager.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
1
2021-09-21T23:23:59.000Z
2021-09-21T23:23:59.000Z
src/parallel/MultiProcessManager.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
8
2021-07-05T21:41:53.000Z
2022-02-15T19:46:13.000Z
src/parallel/MultiProcessManager.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
4
2021-06-11T22:47:04.000Z
2021-07-29T19:57:13.000Z
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License ...
35.987342
130
0.593739
624facef9e66931f1a14028b3c7453be7b799e24
391
py
Python
surveys/asgi.py
suryabulusu/django_tut
1e8133e52388e60cd919d594833fcbfbd9e19dd2
[ "MIT" ]
null
null
null
surveys/asgi.py
suryabulusu/django_tut
1e8133e52388e60cd919d594833fcbfbd9e19dd2
[ "MIT" ]
null
null
null
surveys/asgi.py
suryabulusu/django_tut
1e8133e52388e60cd919d594833fcbfbd9e19dd2
[ "MIT" ]
null
null
null
""" ASGI config for surveys 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_SETTI...
23
78
0.785166
624fd74e34ee973748ebbe18741d593281000047
7,579
py
Python
src/backend/expungeservice/record_editor.py
victorjz/recordexpungPDX
0c8bc5bd8e491f3513984166c905c5cfdf5274d3
[ "MIT" ]
null
null
null
src/backend/expungeservice/record_editor.py
victorjz/recordexpungPDX
0c8bc5bd8e491f3513984166c905c5cfdf5274d3
[ "MIT" ]
null
null
null
src/backend/expungeservice/record_editor.py
victorjz/recordexpungPDX
0c8bc5bd8e491f3513984166c905c5cfdf5274d3
[ "MIT" ]
null
null
null
from dataclasses import replace, asdict from datetime import datetime from typing import List, Tuple, Dict, Any, Optional from expungeservice.util import DateWithFuture as date_class from dacite import from_dict from expungeservice.generator import get_charge_classes from expungeservice.models.charge import Charge, O...
48.273885
118
0.643093
624fec79cd2c358c8c2df56541b975ff6a29a6c4
11,158
py
Python
office365/runtime/auth/providers/saml_token_provider.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/auth/providers/saml_token_provider.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/runtime/auth/providers/saml_token_provider.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
import os import uuid from xml.etree import ElementTree import xml.dom.minidom as minidom from urllib.parse import urlparse from datetime import datetime, timezone, timedelta import requests import requests.utils import office365.logger from office365.runtime.auth.base_token_provider import BaseTokenProvider from o...
43.248062
116
0.610773
624ff26922641b9ea8527a4543997b8d8697bad8
3,797
py
Python
tests/test_structures.py
marquesYan/genetic-algo
ad623c4e2fe00984f7ad019c351d5a7072b33621
[ "MIT" ]
null
null
null
tests/test_structures.py
marquesYan/genetic-algo
ad623c4e2fe00984f7ad019c351d5a7072b33621
[ "MIT" ]
10
2022-03-19T21:47:28.000Z
2022-03-26T02:29:31.000Z
tests/test_structures.py
marquesYan/genetic-algo
ad623c4e2fe00984f7ad019c351d5a7072b33621
[ "MIT" ]
null
null
null
import secrets from unittest import mock from genetic_algo.structures import Dataset, DatasetItem, DatasetOptions, Individual, Population, SteamRoller, crossover, mutate DATASET_ITEMS = [ DatasetItem( name="notebook", fitness=5, weight=7, ), DatasetItem( name="tv", ...
22.075581
128
0.613642
624ff3c36d2d8eaf71e9a8621f9cf1114cea9b56
1,213
py
Python
yaksh/management/commands/add_group.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/management/commands/add_group.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/management/commands/add_group.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
1
2015-04-05T09:51:54.000Z
2015-04-05T09:51:54.000Z
''' This command adds moderator group with permissions to add, change and delete the objects in the exam app. We can modify this command to add more groups by providing arguments. Arguments like group-name, app-name can be passed. ''' # django imports from django.core.management.base import BaseCommand, Co...
36.757576
87
0.693322
625016f04bb7cee350f17469b1211484e4a2e0b9
10,299
py
Python
tests/test_preprocessing.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
tests/test_preprocessing.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
tests/test_preprocessing.py
matheuscas/pyfuzzy_toolbox
57885f3ff53d1b7ab3559c7ff6197ceb97f67c3b
[ "BSD-3-Clause" ]
null
null
null
from pyfuzzy_toolbox import preprocessing as pre # Cornel Movie Review 2 text_1 = "`oh behave !" + \ " \nfelicity shagwell is one shagadellic babe ." + \ " \ndo i make your horny ?" +\ " \nfemale fembots with breasts that require gun controlling ." + \ " \nanything that resembles bananas and two balls ...
62.79878
247
0.699291
62505a789e3626704150865c1e1e013dd8e6d509
7,192
py
Python
link/wrappers/apiwrappers.py
uhjish/link
b6a60b0c62547b5b6f3f1d6e89d0f5bfb798fbb9
[ "Apache-2.0" ]
null
null
null
link/wrappers/apiwrappers.py
uhjish/link
b6a60b0c62547b5b6f3f1d6e89d0f5bfb798fbb9
[ "Apache-2.0" ]
null
null
null
link/wrappers/apiwrappers.py
uhjish/link
b6a60b0c62547b5b6f3f1d6e89d0f5bfb798fbb9
[ "Apache-2.0" ]
null
null
null
""" apilink contains all of the classes that you need to connect to a configured api. It wraps the python requests package, and provides some helpful functions that make it easy to parse json and xml responses """ import requests from requests.auth import HTTPBasicAuth from functools import wraps import json from xml....
33.607477
100
0.574944
62508c428e962c8534fc320110d894864b15ebbe
11,380
py
Python
cadnano/views/documentwindow.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/documentwindow.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/documentwindow.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
from PyQt5.QtCore import Qt from PyQt5.QtCore import QSettings from PyQt5.QtCore import QPoint, QSize from PyQt5.QtWidgets import QGraphicsScene from PyQt5.QtWidgets import QMainWindow from PyQt5.QtWidgets import QGraphicsItem from PyQt5.QtWidgets import QAction, QApplication, QWidget from cadnano import app from cad...
39.79021
102
0.675747
6250976c2a7fcea69f02b64ab6ad46add6e7f0c1
20,524
py
Python
fitlins/interfaces/bids.py
jdkent/fitlins
575bb589d1a99622f4cc2fb1c04671132d995091
[ "Apache-2.0" ]
null
null
null
fitlins/interfaces/bids.py
jdkent/fitlins
575bb589d1a99622f4cc2fb1c04671132d995091
[ "Apache-2.0" ]
null
null
null
fitlins/interfaces/bids.py
jdkent/fitlins
575bb589d1a99622f4cc2fb1c04671132d995091
[ "Apache-2.0" ]
null
null
null
import os import re from pathlib import Path from gzip import GzipFile import json import shutil import numpy as np import nibabel as nb from nipype import logging from nipype.utils.filemanip import copyfile from nipype.interfaces.base import ( BaseInterfaceInputSpec, TraitedSpec, SimpleInterface, InputMultiPa...
38.219739
98
0.57825
6250a8f38bf00094928cdc87f6d87775e7b46fc0
9,490
py
Python
desdeo_emo/selection/NSGAIII_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
1
2022-03-30T17:24:55.000Z
2022-03-30T17:24:55.000Z
desdeo_emo/selection/NSGAIII_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
desdeo_emo/selection/NSGAIII_select.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
import numpy as np from pygmo import fast_non_dominated_sorting as nds from typing import List from desdeo_emo.selection.SelectionBase import SelectionBase from desdeo_emo.population.Population import Population from desdeo_emo.othertools.ReferenceVectors import ReferenceVectors class NSGAIII_select(SelectionBase): ...
36.08365
88
0.60295
62510d551d7c4ac797853bfd2fcbe8a60a4a5a0a
1,535
py
Python
migration/couch/release_10_1/3.migration_to_remove_unused_survey_responses.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
migration/couch/release_10_1/3.migration_to_remove_unused_survey_responses.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
migration/couch/release_10_1/3.migration_to_remove_unused_survey_responses.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import logging from mangrove.errors.MangroveException import FormModelDoesNotExistsException from mangrove.form_model.form_model import get_form_model_by_code from mangrove.transport.contract.survey_response import SurveyResponse from datawinners.main.couchdb.utils import all_db_names from datawinners.main.database imp...
42.638889
108
0.748534
625125321c9b08a17c21aba8cbef5b77bf6a8237
32,492
py
Python
openpype/plugins/publish/extract_burnin.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/plugins/publish/extract_burnin.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/plugins/publish/extract_burnin.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
import os import re import subprocess import json import copy import tempfile import platform import shutil import clique import six import pyblish import openpype import openpype.api from openpype.lib import ( get_pype_execute_args, should_decompress, get_decompress_dir, decompress, CREATE_NO_WIN...
35.823594
79
0.568109
62512902c65c55520aa6cbf09714fd9f669ca8dd
277
py
Python
test_ignore_duplicates.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
test_ignore_duplicates.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
test_ignore_duplicates.py
adriennekarnoski/code-katas
c90c51780174110d6292b57248b77723db6ad6ac
[ "MIT" ]
null
null
null
"""Test the ignore_duplicates function.""" import pytest def sum_no_duplicates(numbers): """Test ignore duplicate function.""" from ignore_duplicates import sum_no_duplicates check_answer = sum_no_duplicates([1, 1, 2, 2, 3, 4, 5]) assert check_answer == 12
23.083333
59
0.714801
6251293be8de2b0c5542ebb30155b08f72272d9d
2,296
py
Python
utils/mongo.py
Themis3000/zikuuu
208cb3f66e0be2cfc5d0a049b1e246bc269c7263
[ "MIT" ]
1
2019-03-09T22:08:59.000Z
2019-03-09T22:08:59.000Z
utils/mongo.py
Themis3000/zikuuu
208cb3f66e0be2cfc5d0a049b1e246bc269c7263
[ "MIT" ]
null
null
null
utils/mongo.py
Themis3000/zikuuu
208cb3f66e0be2cfc5d0a049b1e246bc269c7263
[ "MIT" ]
null
null
null
import pymongo import os import time client = pymongo.MongoClient(f"mongodb+srv://{os.environ['MONGO_USER']}:{os.environ['MONGO_PASS']}@{os.environ['MONGO_SERVER']}") userdata = client[os.environ['DATABASE']] discorduserdata = userdata["discorduserdata"] def get_user(id): user = discorduserdata.find_one(id) ...
31.888889
141
0.648519
625135875459dfa63ebafeba701fae63313200c0
563
py
Python
thermp_io/tests/test__writer.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
thermp_io/tests/test__writer.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
thermp_io/tests/test__writer.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
""" Test writing files for ThermP """ import thermp_io def test__input_file(): """ test thermp_io.writer.input_file """ temps = [100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0] formula = 'CH4' h0form = -123.45 enthalpyt = 0. breakt = 1000. thermp_st...
20.851852
48
0.600355
625144e77f4b8818549cbc012fca0d093588ada7
4,709
py
Python
pipeline/getCoronavirusProteins.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
7
2021-02-01T22:39:23.000Z
2021-08-09T16:28:38.000Z
pipeline/getCoronavirusProteins.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-05-17T13:14:40.000Z
2021-05-20T10:26:09.000Z
pipeline/getCoronavirusProteins.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-01-04T14:11:18.000Z
2021-01-04T14:11:18.000Z
import argparse import json def main(): parser = argparse.ArgumentParser(description='Tool to put coronavirus proteins into entity format') parser.add_argument('--viruses',type=str,required=True,help='JSON file with virus aliases') parser.add_argument('--outJSON',type=str,required=True,help='File to output entities...
56.73494
483
0.66341
625145096d42778f5d9809c361429f58f4724784
4,960
py
Python
simple_cnn_train.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2021-03-31T10:24:01.000Z
2021-03-31T10:24:01.000Z
simple_cnn_train.py
AI-Huang/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
2
2020-11-13T18:41:41.000Z
2021-01-28T10:55:38.000Z
simple_cnn_train.py
KellyHwong/semi-conductor-image-classification-first
2c718e26f66bfe169562c70bbc41872a9621d436
[ "MIT" ]
1
2020-12-27T15:10:58.000Z
2020-12-27T15:10:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : Feb-01-20 06:51 # @Author : Your Name (you@example.org) # @Link : https://www.kaggle.com/uysimty/keras-cnn-dog-or-cat-classification import os import json import random import numpy as np import pandas as pd from keras.preprocessing.image impor...
32.418301
82
0.633468
62514636daa6603b28e44e218ec3422384bbb484
931
py
Python
py/cidoc_crm_types/properties/p195_was_presence_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p195_was_presence_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p195_was_presence_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class P195WasPresenceOf: """ Scope note: This property associates an instance of E93 Presence with the instance of E18 Physical Thing of which it represents a temporal restriction (i.e.: a time-slice) of the thing&#8217;s trajectory through spacetime. In other words, ...
46.55
444
0.754028
6251487aad6c42507ca545b5ede83559af2b061c
11,552
py
Python
enrico/testModel.py
mireianievas/enrico
2bd8949e388df7f1065629c299de8fde2ded5274
[ "BSD-3-Clause" ]
14
2017-03-17T05:37:14.000Z
2021-04-05T22:26:29.000Z
enrico/testModel.py
mireianievas/enrico
2bd8949e388df7f1065629c299de8fde2ded5274
[ "BSD-3-Clause" ]
87
2015-01-07T14:24:06.000Z
2022-02-10T11:41:32.000Z
enrico/testModel.py
gammapy/enrico
995383cc0edf493f232998e2bd253be270a4a671
[ "BSD-3-Clause" ]
20
2015-02-18T19:01:34.000Z
2020-06-14T21:27:32.000Z
import os import scipy.stats import SummedLikelihood try: import pickle as pickle except: print("cPickle not found, using pickle instead") from enrico.fitmaker import FitMaker from enrico.gtfunction import Observation from enrico import Loggin from enrico import utils class ModelTester(Loggin.Message): """...
41.11032
91
0.588902
6251539db420a4cd610cf4459902f766ce17a610
3,367
py
Python
src/bc.py
aioz-ai/ICCV19_VQA_CTI
e1f93d39b8e2bb63a1b27027620803d713d23eaa
[ "MIT" ]
30
2019-08-12T00:56:02.000Z
2022-03-09T08:44:56.000Z
src/bc.py
aioz-ai/ICCV19_VQA_CTI
e1f93d39b8e2bb63a1b27027620803d713d23eaa
[ "MIT" ]
14
2019-11-14T15:15:40.000Z
2022-03-11T23:57:17.000Z
src/bc.py
aioz-ai/ICCV19_VQA_CTI
e1f93d39b8e2bb63a1b27027620803d713d23eaa
[ "MIT" ]
3
2019-09-28T06:59:23.000Z
2020-01-01T03:44:17.000Z
""" Bilinear Attention Networks Jin-Hwa Kim, Jaehyun Jun, Byoung-Tak Zhang https://arxiv.org/abs/1805.07932 This code is written by Jin-Hwa Kim. """ from __future__ import print_function import math import torch import torch.nn as nn from torch.nn.utils.weight_norm import weight_norm from src.fc import FCNet class B...
39.151163
90
0.588358
625187482cd0e7ae2886baf65a3aa5c527fa4b9a
1,391
py
Python
extras/classic_decorators.py
shamilison/django-classic
a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c
[ "Apache-2.0" ]
null
null
null
extras/classic_decorators.py
shamilison/django-classic
a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c
[ "Apache-2.0" ]
null
null
null
extras/classic_decorators.py
shamilison/django-classic
a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c
[ "Apache-2.0" ]
null
null
null
__author__ = 'shamilsakib' from django.apps import apps def decorate(*decorators): def register_wrapper(_origin_class): for _decorator_func in decorators[::-1]: _origin_class = _decorator_func(_origin_class) _origin_class._decorators = decorators return _origin_class retu...
32.348837
96
0.692308
6251be06a1cad04daaaa9297249968b0a320f370
248
py
Python
tests/test_input_time_advection_diffusion.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
tests/test_input_time_advection_diffusion.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
tests/test_input_time_advection_diffusion.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
from __future__ import absolute_import input_name = '../examples/diffusion/time_advection_diffusion.py' output_name_trunk = 'test_time_advection_diffusion' from tests_basic import TestInputEvolutionary class Test(TestInputEvolutionary): pass
27.555556
64
0.846774
6251ef62e2d72f7e88210acd78afa99dde82a7bc
2,366
py
Python
tests/test_representation_json.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
tests/test_representation_json.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
tests/test_representation_json.py
psd/openregister
7aa831464f2917c5be7a5ae34ff4c0de96451811
[ "MIT" ]
null
null
null
import pytest from openregister import Item from openregister.representations.json import content_type def test_json_content_type(): assert content_type == "application/json" def test_empty_item_as_json(): item = Item() data = item.json assert data == "{}" def test_empty_item_from_json(): item...
24.645833
63
0.609045
6252181cfca7ebce525764d49e7f60b652714fac
12,446
py
Python
lib/models/cell_searchs/nb101/optimizers/random_search_with_weight_sharing/darts_wrapper_discrete.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
lib/models/cell_searchs/nb101/optimizers/random_search_with_weight_sharing/darts_wrapper_discrete.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
lib/models/cell_searchs/nb101/optimizers/random_search_with_weight_sharing/darts_wrapper_discrete.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
import json import logging import os import random import time import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn as nn import torchvision.datasets as dset from torch.autograd import Variable from nasbench_analysis.search_spaces.search_space_1 import SearchSpace1 from optimizers.dart...
37.715152
116
0.614013
62522527fa5f350f665c91d041ef4def66c1c681
6,084
py
Python
app.py
JusticeTomlinson/SpeechToTextAnalysis
5af3263c14bdf24fc249fcb1a0e7919c8d83289a
[ "CC-BY-3.0" ]
1
2021-10-17T23:43:58.000Z
2021-10-17T23:43:58.000Z
app.py
JusticeTomlinson/SpeechToTextAnalysis
5af3263c14bdf24fc249fcb1a0e7919c8d83289a
[ "CC-BY-3.0" ]
null
null
null
app.py
JusticeTomlinson/SpeechToTextAnalysis
5af3263c14bdf24fc249fcb1a0e7919c8d83289a
[ "CC-BY-3.0" ]
1
2021-10-17T23:44:03.000Z
2021-10-17T23:44:03.000Z
import nltk from flask import Flask, render_template, request, redirect import speech_recognition as sr from nltk import word_tokenize from nltk.sentiment.vader import SentimentIntensityAnalyzer from fastpunct import FastPunct from typing import List, Dict, Any app = Flask(__name__) nltk.download('punkt') nltk.downlo...
37.78882
127
0.608974
625235337b3b7bc0e5d7a3589fed4211b4f99db4
3,656
py
Python
gui.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
gui.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
gui.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
import tkinter as tk from tkinter import ttk class AVSPGUI(tk.Frame): def __init__(self, master, **kwargs): tk.Frame.__init__(self, master, **kwargs) self.root = master # # Create a menu item self.menubar = tk.Menu(self.root) self.root.config(menu=self.menubar) se...
32.353982
122
0.664387
6252437cf62dc50aa41196b4e572168ab152dc2c
5,401
py
Python
sdk/cognitiveservices/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/face_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/face_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/face_client.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.377193
119
0.743011
6252450ec0e2301dcb59ec834d96fd8520dfbc4d
1,594
py
Python
tests/test_MarketObjects/test_timeinforce.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
2
2020-01-04T05:28:20.000Z
2021-07-21T21:19:43.000Z
tests/test_MarketObjects/test_timeinforce.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
45
2019-07-04T15:13:34.000Z
2020-06-30T19:41:45.000Z
tests/test_MarketObjects/test_timeinforce.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
3
2020-04-18T16:49:14.000Z
2021-07-21T21:19:52.000Z
""" This file is part of Buttonwood. Buttonwood is a python software package created to help quickly create, (re)build, or analyze markets, market structures, and market participants. MIT License Copyright (c) 2016-2019 Peter F. Nabicht Permission is hereby granted, free of charge, to any person obtaining a copy ...
43.081081
108
0.782936
62524ca5596a17add902f7402bc4db35823a7c88
1,252
py
Python
python/z3me/enumerate_z3.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
python/z3me/enumerate_z3.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
python/z3me/enumerate_z3.py
anton-musrevinu/sharpNAR
689803d1c1d57728597d839cef8863af61a113b7
[ "MIT" ]
null
null
null
import z3 import time class Z3Manager(object): INDICATOR_TIMEOUT = -2 def __init__(self,cnfdir, name, logger): self._cnfFile = cnfdir + '/' + name + '.cnf' self._name = name self._logger = logger def enumerateModels(self,timeout): solver = z3.Solver() solver.set("complete",True) props = [] with ope...
22.357143
61
0.626997
62527986e3247b49725890f12f8bf7c18e1ac2f6
32
py
Python
infiniteloop.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
infiniteloop.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
infiniteloop.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
while True: print("Sanjeev")
16
20
0.65625
62528bc16998109cbc61ccc57408dc6510f31fb0
1,416
py
Python
model.py
vimal-yuvabe/rake
072f4b25b090622f32c9044a62fcda380427e114
[ "MIT" ]
null
null
null
model.py
vimal-yuvabe/rake
072f4b25b090622f32c9044a62fcda380427e114
[ "MIT" ]
null
null
null
model.py
vimal-yuvabe/rake
072f4b25b090622f32c9044a62fcda380427e114
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring # pylint: disable=too-few-public-methods # pylint: disable=no-name-in-module from typing import Optional, List from pydantic import BaseModel, Field class InputModel(BaseModel): """ Input Model """ input_text: List[str] = Field(...) request_id: Optional[str] ...
26.222222
84
0.563559
6252ac496e01a2ea1f14246c289382bf3b85874d
5,810
py
Python
sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/operations/_start_menu_items_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/operations/_start_menu_items_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/desktopvirtualization/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/operations/_start_menu_items_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.622951
211
0.665921
6252b770c8fcdc12129d8c6ef60dd177ff2f695a
6,508
py
Python
example/fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
example/fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
example/fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from bumps.names import * from sasmodels.core import load_model from sasmodels.bumps_model import Model, Experiment from sasmodels.data import load_data, set_beam_stop, set_top """ IMPORT THE DATA USED """ radial_data = load_data('DEC07267.DAT') set_beam_stop(r...
32.868687
94
0.664567
6252e057a7f774fa6c73d66594dcda75d9fbb137
689
py
Python
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys filename = sys.argv[1] out_filename = filename[:-3] + "csv" with open(filename, "r", encoding='utf-16le') as inputFile: with open(out_filename, "w") as outputFile: lines = [line.strip() for line in inputFile.readlines()] lines = [line[2:] for line in lines if line.st...
28.708333
68
0.596517
6252ff7ef64b2c3c61ceb44358090edf7699b56d
28,547
py
Python
tensorflow_federated/python/core/impl/executors/composing_executor.py
1zuu/federated
3fcd5317f436a45eb01a071d5210d34492543e52
[ "Apache-2.0" ]
1
2021-09-22T12:03:35.000Z
2021-09-22T12:03:35.000Z
tensorflow_federated/python/core/impl/executors/composing_executor.py
Zuu97/federated
3fcd5317f436a45eb01a071d5210d34492543e52
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/executors/composing_executor.py
Zuu97/federated
3fcd5317f436a45eb01a071d5210d34492543e52
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019, The TensorFlow Federated 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 ...
44.535101
105
0.709111
6253069b44f29174185a1f3cc4fa5f262155c9b3
8,787
py
Python
test/test_AlComplex.py
Jexan/AlComplex
348033b066491cac2cda486ea59bb8d98f35df18
[ "MIT" ]
null
null
null
test/test_AlComplex.py
Jexan/AlComplex
348033b066491cac2cda486ea59bb8d98f35df18
[ "MIT" ]
null
null
null
test/test_AlComplex.py
Jexan/AlComplex
348033b066491cac2cda486ea59bb8d98f35df18
[ "MIT" ]
null
null
null
import unittest from itertools import islice from AlComplex import * a = AlComplex(0,1) b = AlComplex(1,0) c = AlComplex(1,1) d = AlComplex(2,3) e = AlComplex(1) class TestComplexNumberOperations(unittest.TestCase): def test_initialization_and_equality(self): self.assertEqual(C(0,1), a) self.assertEqual(AlCompl...
29.096026
69
0.684648
625320b48bc801d8220bff9ea50a97b2156680d4
50,212
py
Python
tensorflow/python/layers/convolutional_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/layers/convolutional_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/layers/convolutional_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 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...
45.481884
80
0.671334
625362e09fc3dc5215d607dd55be0bee32265c0b
12,612
py
Python
indra/tools/reading/db_reading/report_db_aws.py
budakn/INDRA
393958b2ca7bc1ca5d054885c0634f434ff7496e
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/tools/reading/db_reading/report_db_aws.py
budakn/INDRA
393958b2ca7bc1ca5d054885c0634f434ff7496e
[ "BSD-2-Clause" ]
null
null
null
indra/tools/reading/db_reading/report_db_aws.py
budakn/INDRA
393958b2ca7bc1ca5d054885c0634f434ff7496e
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import pickle import numpy as np import matplotlib as mpl mpl.use('Agg') from matplotlib import pyplot as plt from datetime import datetime from indra.util.get_version import get_git_info from indra.tools.reading.u...
41.486842
81
0.550428
625380fda66bfd773001b17c8ee52fc48c200bec
209
py
Python
terzani/utils/types.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
terzani/utils/types.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
1
2020-12-16T14:16:16.000Z
2020-12-24T10:35:27.000Z
terzani/utils/types.py
JanMaxime/terzani_colorization
6538e0053c9119b1bf67da930f309b22cbdece30
[ "MIT" ]
null
null
null
class IIIF_Photo(object): def __init__(self, iiif, country): self.iiif = iiif self.country = country def get_photo_link(self): return self.iiif["images"][0]["resource"]["@id"]
26.125
56
0.617225
6253f7e526834bacc2f0d0ba38f5fa269cd2d78b
85
py
Python
src/15/passing_unicode_strings_to_c_libraries/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/15/passing_unicode_strings_to_c_libraries/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/15/passing_unicode_strings_to_c_libraries/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
import sample s = "Spicy Jalape\u00f1o" sample.print_chars(s) sample.print_wchars(s)
17
25
0.788235
6253f96315b74dda59e1e0460e62481fe1c590a1
10,476
py
Python
tensorflow/contrib/resampler/python/ops/resampler_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/resampler/python/ops/resampler_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/resampler/python/ops/resampler_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# pylint: disable=g-bad-file-header # Copyright 2017 The Sonnet 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...
38.656827
80
0.670008
62548ca2ccf2429e048702adf6b1e0e4e6ee3db2
3,220
py
Python
app.py
aflaisler/d3_responsive_templates
3d63ba19e1cfbd0675892b90011affb94ae31b02
[ "Apache-2.0" ]
null
null
null
app.py
aflaisler/d3_responsive_templates
3d63ba19e1cfbd0675892b90011affb94ae31b02
[ "Apache-2.0" ]
null
null
null
app.py
aflaisler/d3_responsive_templates
3d63ba19e1cfbd0675892b90011affb94ae31b02
[ "Apache-2.0" ]
null
null
null
import json from flask import Flask, render_template, url_for import numpy as np import pandas as pd app = Flask(__name__) @app.route('/') def index(): ''' When you request the root path, you'll get the index.html template. ''' return render_template('index.html', links=all_links()) @app.route('/...
25.555556
114
0.635404
625493b8b8f786efd0fbf3021b3c0f3ac8008823
4,398
py
Python
sdk/quota/azure-mgmt-quota/azure/mgmt/quota/_azure_quota_extension_api.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/quota/azure-mgmt-quota/azure/mgmt/quota/_azure_quota_extension_api.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/quota/azure-mgmt-quota/azure/mgmt/quota/_azure_quota_extension_api.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.424242
129
0.701683
62549a9c2577de1948df67d82b5f4731c40e02d7
7,708
py
Python
codes/youtube_scraper_mongodb_expansion/youtube/spiders/youtubespider.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/youtube_scraper_mongodb_expansion/youtube/spiders/youtubespider.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
null
null
null
codes/youtube_scraper_mongodb_expansion/youtube/spiders/youtubespider.py
QiyuanMa/trailer_research
5276e0f422aeb9ef6bccb4ffd348a600dacc2f75
[ "MIT" ]
1
2020-12-14T04:56:43.000Z
2020-12-14T04:56:43.000Z
# -*- coding: utf-8 -*- from youtube.config import videoID from scrapy import Request, Spider from youtube.items import * import time,datetime import argparse from googleapiclient.discovery import build from googleapiclient.errors import HttpError import requests import re import json from lxml import etree from scrapy...
40.568421
155
0.624935
6254a1fd981d56b74c71f374ec1b1bb08be6086c
5,785
py
Python
tests/test_utils.py
facumartinarguello/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
1
2021-01-15T17:28:29.000Z
2021-01-15T17:28:29.000Z
tests/test_utils.py
Woonkly/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
Woonkly/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
1
2021-01-15T17:27:38.000Z
2021-01-15T17:27:38.000Z
""" Test utilities. """ import re import pytest from aries_staticagent import utils, Message from aries_staticagent.mtc import ( MessageTrustContext, AUTHCRYPT_AFFIRMED, AUTHCRYPT_DENIED, ANONCRYPT_AFFIRMED, ANONCRYPT_DENIED ) REGEX = r'^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]...
24.004149
178
0.607952
6254f4e1c32977a93cba959a7235221708259b1e
5,056
py
Python
app/recipe/views.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/recipe/views.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/recipe/views.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework import viewsets, mixins, status # line above ables us to get acces to the CRUD functions # thanks to generic viwsets and mixins DRF features such as # create, list, retrieve... from rest_framework.authenticatio...
38.892308
78
0.684533
6254f59d2c9aac6629ad581f0c8f1e76ae910c66
3,556
py
Python
src/apps/docs/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/docs/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/docs/migrations/0001_initial.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-10 04:31 import apps.docs.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_...
42.333333
166
0.574241
6254f712edd494b84991940859ae5b9214605b01
10,926
py
Python
scripts/useful_scripts/simulate_ekf.py
jmontp/prosthetic_adaptation
fb5a9f1e6520b432cd14c1f217665f076367d3f2
[ "MIT" ]
null
null
null
scripts/useful_scripts/simulate_ekf.py
jmontp/prosthetic_adaptation
fb5a9f1e6520b432cd14c1f217665f076367d3f2
[ "MIT" ]
null
null
null
scripts/useful_scripts/simulate_ekf.py
jmontp/prosthetic_adaptation
fb5a9f1e6520b432cd14c1f217665f076367d3f2
[ "MIT" ]
1
2021-02-07T16:12:40.000Z
2021-02-07T16:12:40.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #%% #Standard Imports import pandas as pd import numpy as np import matplotlib.pyplot as plt from cycler import cycler #Relative Imports from context import kmodel from context import ekf from context import utils from context import rtplot from ekf.measurement_model impo...
35.245161
135
0.67289
62550f5cef03d6fd85f8710e312e2ba886b194e1
76,079
py
Python
lights_control_core/lights_control.py
Godhart/hass-lights-control
e3b5e4c987c7c991260ba41f84944cd9c70c86f2
[ "Apache-2.0" ]
4
2020-03-14T20:22:42.000Z
2022-03-13T19:39:36.000Z
lights_control_core/lights_control.py
Godhart/hass-lights-control
e3b5e4c987c7c991260ba41f84944cd9c70c86f2
[ "Apache-2.0" ]
null
null
null
lights_control_core/lights_control.py
Godhart/hass-lights-control
e3b5e4c987c7c991260ba41f84944cd9c70c86f2
[ "Apache-2.0" ]
null
null
null
from ._hass_helpers import value_get, value_get_full, value_set, lights_switch_state, light_state, \ lights_off, lights_on from ._hass_mock import Hass as HassMock from time import sleep from datetime import datetime from copy import copy, deepcopy import re import pprint from .constants import STATE_ON, ST...
45.420299
128
0.539203
62550fe130109362e5c9a31228438070288f0592
1,772
py
Python
tools/renameDLL.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
64
2019-08-18T19:23:23.000Z
2022-03-21T04:15:04.000Z
tools/renameDLL.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
120
2019-08-16T09:10:35.000Z
2022-03-17T09:42:58.000Z
tools/renameDLL.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
12
2019-10-04T07:35:55.000Z
2021-01-10T19:59:11.000Z
""" Adapted from https://github.com/cmberryau/rename_dll licensed under the GNU General Public License v3.0 """ """ Make sure you're running this script in a developer command prompt or dumpbin and lib will not be found """ def rename_dll(inputdll, outputdll): import subprocess import re from shutil imp...
29.533333
103
0.659142
625511b16e4158aa8a340f1529185083081dd0f4
2,303
py
Python
toontown/estate/FlowerCollection.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/estate/FlowerCollection.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/estate/FlowerCollection.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.estate import GardenGlobals from direct.directnotify import DirectNotifyGlobal from toontown.estate import FlowerBase class FlowerCollection: notify = DirectNotifyGlobal.directNotify.newCategory('FlowerCollection') def __init__(self): self.flowerlist = [] def __len__(self): ...
30.706667
111
0.632219
6255484856d00d6a857788801772ab39e008dcf7
980
py
Python
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/scn/scn.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/scn/scn.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/study/storage/rawstudy/model/filesystem/root/output/simulation/mode/mcind/scn/scn.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.folder_node import ( FolderNode, ) from antarest.study.storage.rawstudy.model.filesystem.inode import TREE from antarest.study.storage.rawstudy.model.filesyste...
36.296296
112
0.720408
625559d4f40e1cd68b9b440821594380766e45db
7,785
py
Python
p3_collab-compet/maddpg_agents.py
fdasilva59/deep-reinforcement-learning
a95e71730e54dae26ca24fcb31d5f4a7bb0eb025
[ "MIT" ]
null
null
null
p3_collab-compet/maddpg_agents.py
fdasilva59/deep-reinforcement-learning
a95e71730e54dae26ca24fcb31d5f4a7bb0eb025
[ "MIT" ]
null
null
null
p3_collab-compet/maddpg_agents.py
fdasilva59/deep-reinforcement-learning
a95e71730e54dae26ca24fcb31d5f4a7bb0eb025
[ "MIT" ]
1
2020-12-26T05:10:08.000Z
2020-12-26T05:10:08.000Z
import numpy as np import random import copy from collections import namedtuple, deque import torch from ddpg_agent import Agent from memory import ReplayBuffer from hyperparameters import * from utils import encode, decode device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") class Maddpg(): ...
45.526316
111
0.601413
625564c6fecaaa4170ae5b13606ab2516aa231d5
29,691
py
Python
onmt/train_utils/trainer.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
onmt/train_utils/trainer.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
onmt/train_utils/trainer.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
from __future__ import division import datetime import gc import inspect import math import os import re import time import torch from apex import amp import onmt import onmt.markdown import onmt.modules from onmt.data.data_iterator import DataIterator from onmt.data.dataset import rewrap from onmt.model_factory impo...
39.746988
154
0.547944
6255794ddea730a4b7749d9f086fba4e282b1b1e
17,392
py
Python
renpy/display/focus.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/display/focus.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/display/focus.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2004-2021 Tom Rothamel <pytom@bishoujo.us> # # 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, m...
25.426901
98
0.596711
625580b0da8ec9b811652043d286c86a8b1e4c67
3,113
py
Python
dialogflow_v2beta1/__init__.py
gertventer1970/dialogflow-python-client-v2
e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2
[ "Apache-2.0" ]
1
2020-10-14T07:43:19.000Z
2020-10-14T07:43:19.000Z
dialogflow_v2beta1/__init__.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
dialogflow_v2beta1/__init__.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
30.519608
85
0.787343
62558f36af0eeecd7ce2be099b4d13f879d6ec1b
5,504
py
Python
sdks/python/appcenter_sdk/models/SymbolUploadBeginResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/SymbolUploadBeginResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/SymbolUploadBeginResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class SymbolUploadBe...
32.376471
102
0.620458
6255a61a6ce1c73231d7cfde046a64a42dba6b00
7,292
py
Python
lymph/config.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
null
null
null
lymph/config.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
null
null
null
lymph/config.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
null
null
null
import collections import abc import copy import re import six import yaml from lymph.utils import import_object, Undefined from lymph.exceptions import ConfigurationError def to_dict(value): if hasattr(value, 'as_dict'): return value.as_dict() return dict(value) @six.add_metaclass(abc.ABCMeta) cl...
30.51046
97
0.607378
62566f3174170d6d24e56c966ce3b3f0704aa862
5,738
py
Python
BagModules/digital_ec_templates/inv_chain.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/digital_ec_templates/inv_chain.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
null
null
null
BagModules/digital_ec_templates/inv_chain.py
xyabc/bag_digital_ec
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
[ "BSD-3-Clause" ]
2
2019-06-30T07:03:02.000Z
2020-01-07T04:55:21.000Z
# -*- coding: utf-8 -*- ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are...
39.30137
120
0.628442
625675cb52481d108719ec8b5f623276a507974c
1,104
py
Python
kitchensink/data/tests/conversion_tests.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
kitchensink/data/tests/conversion_tests.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
kitchensink/data/tests/conversion_tests.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
import cPickle as pickle import pandas as pd import numpy as np from kitchensink import setup_client, client, du, do, dp, dr, RemoteData def test_remote_data_source_conversions(): ### remote data sources can be accessed as an object, local path, or raw data ### test conversions of all df1 = pd.DataFrame...
29.837838
84
0.647645
625685347ccf655f572165ddf051badece15e82a
2,936
py
Python
src/mem/ruby/network/garnet/BaseGarnetNetwork.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
src/mem/ruby/network/garnet/BaseGarnetNetwork.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
src/mem/ruby/network/garnet/BaseGarnetNetwork.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008 Princeton University # Copyright (c) 2009 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above c...
52.428571
117
0.768052
62569947d94cf1ae324891a5ff4ba4c61b468654
7,267
py
Python
manafa/hunter_emanafa.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/hunter_emanafa.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
manafa/hunter_emanafa.py
RRua/petra-like
cfb6a978f69792845b029d41a1775f36f4d98119
[ "MIT" ]
null
null
null
import argparse import json import os import sys import time from manafa.emanafa import EManafa, MANAFA_RESOURCES_DIR, has_connected_devices from manafa.services.hunterService import HunterService from manafa.services.appConsumptionsService import AppConsumptionsService from manafa.utils.Logger import log, LogSeverity...
43.51497
111
0.658456