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
1c645d6ace11b17e25d4987bef7ea6b59bb163d4
2,343
py
Python
05 Deep Models for Texts/assignment6_lstm/batch_generator.py
dkorenci/udacity_deeplearn
149273733a8075381baf33fb0aa1b17a4a681dde
[ "Apache-2.0" ]
null
null
null
05 Deep Models for Texts/assignment6_lstm/batch_generator.py
dkorenci/udacity_deeplearn
149273733a8075381baf33fb0aa1b17a4a681dde
[ "Apache-2.0" ]
null
null
null
05 Deep Models for Texts/assignment6_lstm/batch_generator.py
dkorenci/udacity_deeplearn
149273733a8075381baf33fb0aa1b17a4a681dde
[ "Apache-2.0" ]
null
null
null
from assignment6_lstm.dataset import char2id, id2char, vocabulary_size, \ validTrainSplit import numpy as np class BatchGenerator(object): def __init__(self, text, batch_size = 64, num_unrollings = 10, char2id=char2id): self._text = text self._text_size = len(text) self._batch_siz...
37.790323
84
0.675203
1c64602527af74e4d31dadce2650394dec387384
7,157
py
Python
debinterface/adapterValidation.py
dfautomation/debinterface
5f092fd582870b581f03f6a3cb83c8d04285ab89
[ "BSD-3-Clause" ]
null
null
null
debinterface/adapterValidation.py
dfautomation/debinterface
5f092fd582870b581f03f6a3cb83c8d04285ab89
[ "BSD-3-Clause" ]
null
null
null
debinterface/adapterValidation.py
dfautomation/debinterface
5f092fd582870b581f03f6a3cb83c8d04285ab89
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The NetworkAdapterValidation tries to validate data before writting, but it is by no means fool proof as it is impossible to have checks for everything as any package can add its keys. """ from __future__ import print_function, with_statement, absolute_import import socket VALID_OPTS = { ...
33.288372
79
0.486517
1c64b45c3aa91db9a316a15e5caa18381ff6b71a
524
py
Python
examples/docs_snippets/docs_snippets/deploying/gcp/gcp_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/deploying/gcp/gcp_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/deploying/gcp/gcp_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster_gcp.gcs.io_manager import gcs_pickle_io_manager from dagster_gcp.gcs.resources import gcs_resource from dagster import job @job( resource_defs={ "gcs": gcs_resource, "io_manager": gcs_pickle_io_manager, }, config={ "resources": { "io_manager": { ...
20.96
60
0.520992
1c64c4eaaf4aeeac3407556e020f5bc667b2f5a2
4,585
py
Python
models/levgg.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
4
2021-03-29T01:04:45.000Z
2022-01-18T02:29:58.000Z
models/levgg.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
null
null
null
models/levgg.py
kroniidvul/mpiigaze_project
8a38732df8db6f7f3668b37836d75eb464049794
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 28 20:58:57 2019 @author: iamav """ # Upsample in PosNet. # No upsampling in PosUp. # VGG19 in ImNet. # Concatenate the output of these layers in an ensembled scheme. import torch.nn as nn import torchvision.models as models import torch.nn.functional as F import torc...
29.018987
119
0.546783
1c64f261c0dc042e75e2068fd4f7925fcd625645
20,398
py
Python
MultilayerSimulationFunc.py
TurnphyGithub/PhotonicComposite
ec6abdd8b5eb2181236a466b40a03074a7c9aca4
[ "Apache-2.0" ]
null
null
null
MultilayerSimulationFunc.py
TurnphyGithub/PhotonicComposite
ec6abdd8b5eb2181236a466b40a03074a7c9aca4
[ "Apache-2.0" ]
null
null
null
MultilayerSimulationFunc.py
TurnphyGithub/PhotonicComposite
ec6abdd8b5eb2181236a466b40a03074a7c9aca4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Turnphy """ from tkinter import filedialog from tkinter import * from PIL import ImageTk import numpy as np from matplotlib import pyplot as plt from tkinter import * from TransferMatrixEngine import (coh_tmm, position_resolved, find_in_structure_with_inf) from numpy im...
39.302505
113
0.627365
1c64f5d8f689a6b73ac1d91d7466a80ce0a3c056
1,129
py
Python
utils/losses.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
14
2021-03-10T05:41:16.000Z
2022-02-21T11:56:04.000Z
utils/losses.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
null
null
null
utils/losses.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
1
2022-02-21T11:56:06.000Z
2022-02-21T11:56:06.000Z
import torch import torch.nn as nn from PIL import Image import numpy as np def resize_labels(labels, size): """ Downsample labels for 0.5x and 0.75x logits by nearest interpolation. Other nearest methods result in misaligned labels. -> F.interpolate(labels, shape, mode='nearest') -> cv2.resize(la...
31.361111
114
0.675819
1c6518051ac1e6d78a378e601a846598a635e589
1,730
py
Python
tests/unit/spark_jobs/test_factory.py
WillianFuks/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
5
2019-01-10T16:06:04.000Z
2020-11-12T01:19:30.000Z
tests/unit/spark_jobs/test_factory.py
dutradda/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
null
null
null
tests/unit/spark_jobs/test_factory.py
dutradda/PySpark-RecSys
756c8ce420143ac2483d8e6f959df4019a5479ee
[ "MIT" ]
2
2019-01-10T16:15:03.000Z
2020-11-17T11:37:54.000Z
#MIT License # #Copyright (c) 2017 Willian Fuks # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publi...
35.306122
79
0.756069
1c65260a566faaddf28b3f48fd9e161a3033dd47
3,920
py
Python
simple_romp/romp_visualizer/sim3drender/renderer.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
2
2022-03-28T07:22:01.000Z
2022-03-28T07:22:05.000Z
simple_romp/romp_visualizer/sim3drender/renderer.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
null
null
null
simple_romp/romp_visualizer/sim3drender/renderer.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np import Sim3DR_Cython from .utils import _to_ctype, norm_vertices, convert_type, _norm """ Modified from Tian Jin's https://pypi.org/project/realrender/ """ def get_normal(vertices, triangles): normal = np.zeros_like(vertices, dtype=np.float32) Sim3DR_Cython.get_normal( ...
34.385965
97
0.615561
1c658737d6328cb64eedb896ece797c44a8be916
977
py
Python
tests/time_read.py
maltanar/dataset_loading
75ba02f16735c78dfbd3e3962b484b9b57189dcd
[ "MIT" ]
10
2018-03-08T11:15:17.000Z
2021-09-12T12:35:26.000Z
tests/time_read.py
maltanar/dataset_loading
75ba02f16735c78dfbd3e3962b484b9b57189dcd
[ "MIT" ]
null
null
null
tests/time_read.py
maltanar/dataset_loading
75ba02f16735c78dfbd3e3962b484b9b57189dcd
[ "MIT" ]
4
2018-07-06T15:54:35.000Z
2021-03-04T08:10:07.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import timeit from time import sleep # noqa from dataset_loading import cifar # noqa import io from contextlib import redirect_stdout import argparse def test_time(args): setup = """ de...
24.425
73
0.686796
1c65e1e09634cc498a15802defc3107323552e37
2,675
py
Python
samples/Windows/eventCallback.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
5
2020-04-21T07:18:44.000Z
2021-12-28T17:33:38.000Z
samples/Windows/eventCallback.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2020-05-19T19:08:25.000Z
2020-05-22T10:24:11.000Z
samples/Windows/eventCallback.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2021-11-16T18:55:54.000Z
2021-11-16T18:55:54.000Z
""" eventCallback.py Demonstrates how to use event callbacks """ from pixelinkWrapper import* import time import msvcrt STALL_TIME = 20 # 20 seconds EXIT_SUCCESS = 0 EXIT_FAILURE = 1 """ Callback function called by the API with each event (of interest) reported by the camera. N.B. This is call...
29.722222
117
0.63028
1c65eb639fcbacf8c3b1a90a41b8e137099fd34c
5,491
py
Python
segment_classifier/charCNN_classifier/charCNN_model.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
null
null
null
segment_classifier/charCNN_classifier/charCNN_model.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
null
null
null
segment_classifier/charCNN_classifier/charCNN_model.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
1
2019-12-14T01:31:56.000Z
2019-12-14T01:31:56.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jun 29 13:07:37 2019 @author: liuhongbing """ # coding=utf-8 import tensorflow as tf from read_data import Dataset from math import sqrt class CharCNN(object): """ A CNN for text classification. Uses an embedding layer, followed b...
42.238462
119
0.535239
1c65f248959a47361931429a87d8fe998f0c3478
1,010
py
Python
services/traction/acapy_wrapper/models/indy_requested_creds_requested_pred.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/indy_requested_creds_requested_pred.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/indy_requested_creds_requested_pred.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class IndyRequestedCredsRequestedPred(BaseModel): """...
26.578947
96
0.716832
1c662daadb473d6b01068b56526a37860650d7c5
141
py
Python
newsdataapi/newsdataapi_exception.py
newsdataapi/python-client
fcfa3b48b5a56179efc7857cec33927ae956efce
[ "MIT" ]
1
2022-02-15T07:29:33.000Z
2022-02-15T07:29:33.000Z
newsdataapi/newsdataapi_exception.py
newsdataapi/python-client
fcfa3b48b5a56179efc7857cec33927ae956efce
[ "MIT" ]
1
2022-02-12T15:39:17.000Z
2022-02-12T15:39:17.000Z
newsdataapi/newsdataapi_exception.py
newsdataapi/python-client
fcfa3b48b5a56179efc7857cec33927ae956efce
[ "MIT" ]
null
null
null
class NewsdataException(Exception): """Base class for all other exceptions""" def __init__(self, Error): self.Error = Error
23.5
45
0.673759
1c6649aaeb4452aa83260997435a46de65d3fb61
8,701
py
Python
avatar_sgg/captioning/catr/inference.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/captioning/catr/inference.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/captioning/catr/inference.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
import torch import torch.nn.functional from transformers import BertTokenizer from PIL import Image from avatar_sgg.captioning.catr.hubconf import v3 from avatar_sgg.captioning.catr.datasets import coco from avatar_sgg.captioning.catr.configuration import Config from avatar_sgg.config.util import get_config import nu...
46.77957
158
0.622802
1c666ce22c7e755d654bd80645b0cb90e23b1bd9
1,554
py
Python
Configuration.py
LGuerra/TestCookiecutters
bcb873783ac89e522bacda53c1658fefc6771fd0
[ "BSD-2-Clause" ]
null
null
null
Configuration.py
LGuerra/TestCookiecutters
bcb873783ac89e522bacda53c1658fefc6771fd0
[ "BSD-2-Clause" ]
null
null
null
Configuration.py
LGuerra/TestCookiecutters
bcb873783ac89e522bacda53c1658fefc6771fd0
[ "BSD-2-Clause" ]
null
null
null
""" Module for containing all required initialization logic. It exposes a function that should ALWAYS be indepotent, which means that it can be called one or possible multiple times without creating fatal errors (other than those originated by latency.) """ import sys import logging import logging.config import os fro...
26.338983
75
0.64157
1c667eb9ce3bdd1fed93ee5b3b9bb380729346c7
1,044
py
Python
yanghui/77combine.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
3
2021-01-04T13:08:13.000Z
2021-08-12T13:08:23.000Z
yanghui/77combine.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
null
null
null
yanghui/77combine.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
1
2021-01-04T13:13:14.000Z
2021-01-04T13:13:14.000Z
import copy class Solution: def combine(self, n: int, k: int): input_list = list(range(1, n+1)) combine_list = [] if k > n : return -1 def backtrack(remain_list, unused_list, k): if len(unused_list) < k: return if k == 0: ...
24.27907
58
0.477969
1c66842b137d909c1a3e430f917a2c5901b4ca63
3,934
py
Python
docs/conf.py
offish/steam_community_market
c31b76fe32c9061bb7650d5a7f6cb94014db9714
[ "MIT" ]
25
2019-10-15T23:23:09.000Z
2022-01-05T20:40:59.000Z
docs/conf.py
offish/steam_community_market
c31b76fe32c9061bb7650d5a7f6cb94014db9714
[ "MIT" ]
5
2020-01-07T12:17:32.000Z
2021-11-15T04:08:10.000Z
docs/conf.py
offish/steam_community_market
c31b76fe32c9061bb7650d5a7f6cb94014db9714
[ "MIT" ]
6
2020-01-05T12:01:21.000Z
2022-02-01T16:15:07.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- ...
34.208696
107
0.634469
1c66c7cb2ff7293d640b311b720764d49c85bdc8
2,924
py
Python
auth_token/contrib/rest_framework_auth/serializers.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
6
2018-07-03T13:06:27.000Z
2021-02-26T22:46:34.000Z
auth_token/contrib/rest_framework_auth/serializers.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
9
2018-07-18T09:00:46.000Z
2021-09-22T17:41:34.000Z
auth_token/contrib/rest_framework_auth/serializers.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
5
2018-10-26T11:00:16.000Z
2021-06-29T15:24:17.000Z
from django.contrib.auth import authenticate from django.utils.translation import ugettext_lazy as _ from auth_token.models import MobileDevice, MobileDeviceAlreadyExists from rest_framework import serializers class AuthTokenSerializer(serializers.Serializer): username = serializers.CharField(label=_('Username...
34.4
82
0.627565
1c66d7d8333121ad3a14b54b890892991a4827c6
1,815
py
Python
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/hardware_profile.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 ...
38.617021
79
0.62259
1c66d8dc326040d83d64c4efb0bda593a86947be
5,136
py
Python
facebook_scraper/__init__.py
DatoJanez/facebook-scraper
7fee0b2befb43992cba2c0fb960c020aaa9e3782
[ "MIT" ]
null
null
null
facebook_scraper/__init__.py
DatoJanez/facebook-scraper
7fee0b2befb43992cba2c0fb960c020aaa9e3782
[ "MIT" ]
null
null
null
facebook_scraper/__init__.py
DatoJanez/facebook-scraper
7fee0b2befb43992cba2c0fb960c020aaa9e3782
[ "MIT" ]
null
null
null
import csv import json import locale import logging import pathlib import sys import warnings from typing import Iterator, Optional, Tuple, Union from constants import DEFAULT_REQUESTS_TIMEOUT from facebook_scraper import FacebookScraper from fb_types import Credentials, Post, RawPost from utils import html_element_to...
33.350649
133
0.663357
1c6704cc4e1125f690e899141f64a729243c7a93
545
py
Python
test/python/LIM2Metrics/py2/base/common/Strategy/Strategy.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py2/base/common/Strategy/Strategy.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py2/base/common/Strategy/Strategy.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
class Button: """A very basic button widget.""" def __init__(self, submit_func, label): self.on_submit = submit_func # Set the strategy function directly self.label = label # Create two instances with different strategies button1 = Button(sum, "Add 'em") button2 = Button(lambda nums: " ".joi...
38.928571
75
0.682569
1c670625a125f312f30f7150ae1faef50bdefbbe
11,802
py
Python
quilt/utils.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
quilt/utils.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
quilt/utils.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
# vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2012 - 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. """ Utility classes used by serveral quilt modules """ import functo...
29.358209
80
0.607609
1c67276f263ce4279614f97b10f325c676684139
16,963
py
Python
test/test_plot_utils.py
evil-mad/plotink
a9ed7369d5efd1063ea59e5574961335b5afbed8
[ "MIT" ]
36
2016-03-14T07:54:56.000Z
2021-12-27T05:45:25.000Z
test/test_plot_utils.py
evil-mad/plotink
a9ed7369d5efd1063ea59e5574961335b5afbed8
[ "MIT" ]
21
2016-10-31T01:06:39.000Z
2021-12-14T23:20:16.000Z
test/test_plot_utils.py
evil-mad/plotink
a9ed7369d5efd1063ea59e5574961335b5afbed8
[ "MIT" ]
25
2016-03-22T15:09:32.000Z
2021-09-10T07:37:17.000Z
""" Tests for plot_utils.py part of https://github.com/evil-mad/plotink """ import unittest import copy import random import math from plotink import plot_utils from plotink import ebb_motion from plotink.plot_utils_import import from_dependency_import cspsubdiv = from_dependency_import('ink_extensions.cspsubdiv'...
42.301746
100
0.647232
1c672bfe60b11fbc6f8fa15ddf9d3f56e5cc8cb7
7,832
py
Python
datasets/data_eval_transform.py
brandontan99/D2HC-RMVSNet
c4615c2d7c212b9b247da6fc0e0e110344b1b0ce
[ "MIT" ]
null
null
null
datasets/data_eval_transform.py
brandontan99/D2HC-RMVSNet
c4615c2d7c212b9b247da6fc0e0e110344b1b0ce
[ "MIT" ]
null
null
null
datasets/data_eval_transform.py
brandontan99/D2HC-RMVSNet
c4615c2d7c212b9b247da6fc0e0e110344b1b0ce
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset import numpy as np import os from PIL import Image from datasets.data_io import * from datasets.preprocess import * # Test any dataset with scale and center crop class MVSDataset(Dataset): def __init__(self, datapath, listfile, mode, nviews, ndepths=192, interval_scale=1.06, ...
41.659574
135
0.58261
1c672d9a6ae825990917c6a866cb570486fc2ef1
1,257
py
Python
examples/units_and_coordinates/planet_locations.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-07-02T13:01:42.000Z
2020-08-27T20:05:31.000Z
examples/units_and_coordinates/planet_locations.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2019-08-13T15:29:13.000Z
2019-08-13T15:29:13.000Z
examples/units_and_coordinates/planet_locations.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
6
2017-03-15T07:17:05.000Z
2020-09-30T18:36:49.000Z
""" =================================== Getting the location of the planets =================================== How to get the position of planetary bodies im the solar system using `astropy's solar system ephemeris <http://docs.astropy.org/en/stable/coordinates/solarsystem.html#solar-system-ephemerides>`__ informatio...
40.548387
149
0.629276
1c6732a850e45809a42cccc6897de97d3df1b94e
5,287
py
Python
satella/configuration/sources/file.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/configuration/sources/file.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/configuration/sources/file.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import logging import os import typing as tb from satella.coding.recast_exceptions import rethrow_as from .base import BaseSource from .derivative import MergingSource from .format import FORMAT_SOURCES, FormatSource from ...coding.typing import Predicate from ...exceptions import ConfigurationError logger = logging....
35.246667
115
0.603178
1c673457ff0d5dae891a1ef21479a345b6cbf5e9
6,915
py
Python
jina/drivers/predict.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/predict.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/drivers/predict.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
from typing import List, Any, Union, Tuple, Optional import numpy as np from . import BaseExecutableDriver, FlatRecursiveMixin from ..helper import typename if False: from ..types.sets import DocumentSet class BasePredictDriver(FlatRecursiveMixin, BaseExecutableDriver): """Drivers inherited from :class:`Ba...
33.731707
114
0.632827
1c6763b742eaf96c7ffe0ec68da8ba6860405d1f
69
py
Python
Week 2/day 12 - Scope/index.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
1
2021-07-26T05:31:57.000Z
2021-07-26T05:31:57.000Z
Week 2/day 12 - Scope/index.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
Week 2/day 12 - Scope/index.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
total = 0 def add(): global total total += 1 add() print(total)
8.625
14
0.608696
1c67955e89507d6bb2be11e0c21e3b6b90a40bce
8,500
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/instance_template_utils.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/instance_template_utils.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/instance_template_utils.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.637931
85
0.702706
1c67c314befd5dcdb419fa7312405a47c535afab
1,280
py
Python
google-cloud-sdk/lib/surface/emulators/datastore/env_init.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/emulators/datastore/env_init.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/emulators/datastore/env_init.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.47619
74
0.739063
1c67ca2cc5bb7805e624a28b05ae915f945808ee
5,199
py
Python
app/main/views.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
null
null
null
app/main/views.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
2
2020-09-30T09:58:53.000Z
2020-09-30T10:47:25.000Z
app/main/views.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
5
2020-09-29T07:02:46.000Z
2020-10-02T10:03:58.000Z
from flask import render_template, request, redirect,url_for,abort from flask_login import LoginManager,login_user,login_required,current_user from . import main from .forms import UpdateProfile,AddMealForm from .. import db from ..models import User,Meals,Menuday,Orders @main.route('/') def index(): ''' Vie...
30.052023
126
0.700712
1c67daed3933155441e4c02858a1b6e5e2228331
5,781
py
Python
tests/conftest.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/conftest.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/conftest.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import itertools import json import os from pathlib import Path import shutil import pytest from _pytest.monkeypatch import MonkeyPatch import brownie from brownie._config import ARGV pytest_plugins = "pytester" # travis cannot call github ethereum/solidity API, so this method is patched def pyt...
24.0875
90
0.688116
1c67db5bf43fb9d19a77a84bb4965954c8f0bf18
1,417
py
Python
setup.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
5
2017-10-30T09:47:30.000Z
2022-02-16T17:42:23.000Z
setup.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
40
2019-02-25T08:46:32.000Z
2021-04-27T12:56:46.000Z
setup.py
looztra/yamkix
1a7f0fcba1bbce723da322d487f768acde23bf06
[ "Apache-2.0" ]
null
null
null
"""Setup.""" from setuptools import find_packages, setup with open("README.rst", encoding="UTF-8") as readme_file: README = readme_file.read() INSTALL_REQUIRES = ["ruamel.yaml>0.16"] SETUP_REQUIREMENTS = ["pytest-runner"] TEST_REQUIREMENTS = ["pytest"] setup( name="yamkix", version="0.9.1rc2", auth...
32.953488
73
0.66549
1c67fba0443501533b9a1b9eee9b09e6afd5331d
919
py
Python
callisto/app/agent/api.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
84
2020-02-18T14:58:35.000Z
2022-03-04T22:34:46.000Z
callisto/app/agent/api.py
wrike/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
6
2020-07-13T19:31:07.000Z
2022-03-30T15:35:23.000Z
callisto/app/agent/api.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
9
2021-03-08T10:17:29.000Z
2022-03-04T12:21:53.000Z
from __future__ import annotations import typing as t import aiohttp.web as web from ...libs.middleware import error_middleware, tracing_middleware_factory from ...libs.trace import request_then_uuid_factory, trace_id from ...web.routes import setup_routes from .logger import logger async def run_api(*, ...
27.848485
103
0.664853
1c6816f713ae5e115ff454b01cb79271d4e103c8
1,494
py
Python
phenotype/States/Properties.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/States/Properties.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/States/Properties.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
if __name__ == '__main__': from sys import path as __sys_path__ from os.path import abspath as __abs_path__ __sys_path__.insert(0, __abs_path__('..')) from enum import auto, Enum, Flag from Func.Aggregator import IOR class ScaleProperty(Enum): ''' ''' __limits__ = [ ] @propert...
31.125
72
0.609772
1c6817d9a481d00f1fde6dafc7336e360380ee38
718
py
Python
summertime/evaluation/rouge_metric.py
techthiyanes/SummerTime
7fd6b4d3eb5c41f117d2b3350611a8e040e48a1f
[ "Apache-2.0" ]
178
2021-07-07T23:46:20.000Z
2022-03-26T17:47:21.000Z
summertime/evaluation/rouge_metric.py
techthiyanes/SummerTime
7fd6b4d3eb5c41f117d2b3350611a8e040e48a1f
[ "Apache-2.0" ]
77
2021-06-18T21:44:53.000Z
2022-02-20T00:23:06.000Z
summertime/evaluation/rouge_metric.py
techthiyanes/SummerTime
7fd6b4d3eb5c41f117d2b3350611a8e040e48a1f
[ "Apache-2.0" ]
19
2021-06-18T22:24:47.000Z
2022-03-16T12:53:50.000Z
from summ_eval.rouge_metric import RougeMetric from summertime.evaluation.summeval_metric import SummEvalMetric from typing import List, Dict class Rouge(SummEvalMetric): metric_name = "rouge" range = (0, 1) higher_is_better = True requires_heavy_compute = False def __init__(self): se_met...
29.916667
84
0.674095
1c681c0ca4990362481b691344b0cbe733f85bbc
7,366
py
Python
view_estimation/caffe_utils.py
rszeto/click-here-cnn
cb2781a47eb52043d0c93d7866e1a438418437af
[ "MIT" ]
8
2017-11-08T18:36:25.000Z
2020-02-11T23:08:55.000Z
view_estimation/caffe_utils.py
rszeto/click-here-cnn
cb2781a47eb52043d0c93d7866e1a438418437af
[ "MIT" ]
4
2017-05-17T14:21:55.000Z
2020-02-11T23:08:31.000Z
view_estimation/caffe_utils.py
rszeto/click-here-cnn
cb2781a47eb52043d0c93d7866e1a438418437af
[ "MIT" ]
7
2017-11-08T17:51:19.000Z
2020-10-10T18:19:58.000Z
import lmdb import os import sys import math import numpy as np import argparse from PIL import Image from multiprocessing import Pool import datetime from google.protobuf import text_format import scipy.ndimage import skimage.transform BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) s...
36.285714
120
0.648656
1c68241062330b47482c7c5f2fba14bae568be75
22,122
py
Python
MAML_plus_plus/meta_neural_network_architectures.py
mbonto/fewshot_neuroimaging_classification
2ff0aab6d2c7991e566200d8e4da4b2cbf025a4a
[ "MIT" ]
4
2020-11-25T14:59:56.000Z
2021-08-09T05:24:38.000Z
MAML_plus_plus/meta_neural_network_architectures.py
mbonto/fewshot_neuroimaging_classification
2ff0aab6d2c7991e566200d8e4da4b2cbf025a4a
[ "MIT" ]
null
null
null
MAML_plus_plus/meta_neural_network_architectures.py
mbonto/fewshot_neuroimaging_classification
2ff0aab6d2c7991e566200d8e4da4b2cbf025a4a
[ "MIT" ]
1
2021-04-14T12:32:13.000Z
2021-04-14T12:32:13.000Z
import numbers from copy import copy import torch.nn as nn import torch.nn.functional as F import torch import numpy as np from scipy import io as sio def extract_top_level_dict(current_dict): """ Builds a graph dictionary from the passed depth_keys, value pair. Useful for dynamically passing external params...
43.980119
206
0.630594
1c684532e688d9a009e96e197b771bde7362fdb4
949
py
Python
sdks/python/test/test_ErrorAttachmentText.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_ErrorAttachmentText.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_ErrorAttachmentText.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 """ from __future__ import absolute_import import unittest import appcente...
23.725
97
0.726027
1c684cdacffe231ff67de8fdaf1e177af78211ca
8,461
py
Python
_deprecated/nin.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
15
2019-06-30T12:30:17.000Z
2021-12-07T20:20:36.000Z
_deprecated/nin.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
2
2020-06-11T10:10:52.000Z
2021-12-21T08:50:33.000Z
_deprecated/nin.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
9
2019-07-09T14:52:30.000Z
2020-10-27T19:18:34.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): def __init__(self, in_planes, out_planes, kernel_size): super(BasicBlock, self).__init__() padding = int((kernel_size - 1) / 2) self.layers = nn.Sequential() self.layers.add...
37.109649
104
0.573218
1c685e530b43ef9fb9dbb5f267041f547881e532
1,826
py
Python
Profile/params.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
Profile/params.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
Profile/params.py
jeremyDudo/gcodeEditor
e97b23b9b40f07416c03bfafd3feedd01ce14268
[ "MIT" ]
null
null
null
import numpy as np # units in mm # dimensions of the bed used for storing vials bedsize = [200, 200] # number of vials num_vials = 100 # TEMP # diameters of vials diam_vials = 2 # TEMP # components A, B, etc... num_inputs = 2 # TEMP # diameters of components diam_inputs = 4 # TEMP ...
23.113924
85
0.629244
1c68711a815724453b2545d8cff02a276277c4d4
2,195
py
Python
datatools/obpred.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
8
2018-10-30T16:48:44.000Z
2021-03-08T01:44:41.000Z
datatools/obpred.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
null
null
null
datatools/obpred.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
5
2018-04-05T15:51:12.000Z
2019-05-23T21:38:31.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestRegressor from sklearn.svm import SVR from sklearn.neural_network import MLPRegressor from sklearn.model_selection import train_test_split from sklearn import preprocessing from sklearn import metrics import hdnntools as hd...
23.602151
146
0.698861
1c688c1006f4e4bcfefe2c8a30dc466905aa9cbd
1,350
py
Python
nova/compute/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
null
null
null
nova/compute/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-08-02T15:40:49.000Z
2020-08-02T15:40:49.000Z
nova/compute/__init__.py
bopopescu/cc
5c14efcda95c4987532484c84a885a3b07efc984
[ "Apache-2.0" ]
1
2020-07-25T17:56:39.000Z
2020-07-25T17:56:39.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 Anso Labs, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # ...
39.705882
78
0.71037
1c68a0e086efe20666327ebb00ba192d81dcee37
1,571
py
Python
lawyerd/users/migrations/0008_auto_20200701_2305.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/users/migrations/0008_auto_20200701_2305.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/users/migrations/0008_auto_20200701_2305.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-07-01 21:05 from django.db import migrations, models import django_countries.fields class Migration(migrations.Migration): dependencies = [ ('users', '0007_auto_20191117_2049'), ] operations = [ migrations.RemoveField( model_name='company'...
32.061224
102
0.592616
1c68a1047936cee2989369b7d13b5c8c01a78f80
27
py
Python
__init__.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
__init__.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
__init__.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
null
null
null
from external import oauth2
27
27
0.888889
1c68d230240ac288102c38471f1bed9d2b594ad0
14,878
py
Python
python/akg/ops/nn/ascend/conv_bn1.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/akg/ops/nn/ascend/conv_bn1.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/akg/ops/nn/ascend/conv_bn1.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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 # # Un...
56.78626
114
0.457723
1c68e629febd9ec017d346b5dbcbb5e28124c99c
85,334
py
Python
autotest/ogr/ogr_plscenes.py
szekerest/gdal
3abdad0a39c56e8f575569f3fa7a25d5265df047
[ "MIT" ]
1
2015-04-21T19:52:03.000Z
2015-04-21T19:52:03.000Z
autotest/ogr/ogr_plscenes.py
szekerest/gdal
3abdad0a39c56e8f575569f3fa7a25d5265df047
[ "MIT" ]
1
2016-04-04T09:14:19.000Z
2016-04-14T19:17:10.000Z
autotest/ogr/ogr_plscenes.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: PlanetLabs scene driver test suite. # Author: Even Rouault, even dot rouault at spatialys.com # ###########################################...
37.62522
475
0.493965
1c68e8f54d120fa4f7f6607b5ea3ee3e240cce50
2,687
py
Python
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_base_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from enum import Enum from typing import TYPE_CHECKING, Dict, Any, Optional from azure.core.pipeline.transport import HttpTransport from ._authenticatio...
30.885057
108
0.678452
1c68effd2f5aca20763e96683078b0849120e519
1,895
py
Python
venv/Lib/site-packages/pyrogram/raw/base/chat_banned_rights.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/chat_banned_rights.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/chat_banned_rights.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# 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...
37.9
96
0.644855
1c68f5005eaf9bd2c991d01e69f93c405e5ba72a
2,775
py
Python
artemis/ml/predictors/predictor_tests.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/ml/predictors/predictor_tests.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
artemis/ml/predictors/predictor_tests.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
2
2019-10-16T21:21:59.000Z
2022-03-07T22:18:44.000Z
import numpy as np from artemis.ml.predictors.predictor_comparison import assess_online_predictor from artemis.ml.datasets.synthetic_clusters import get_synthetic_clusters_dataset from artemis.ml.tools.costs import percent_argmax_correct from artemis.ml.tools.processors import OneHotEncoding from plato.tools.common.bu...
59.042553
163
0.751712
1c695a57eb6a93dd60e24e565549c4400e61e6ee
519
py
Python
src/speechkit/__init__.py
drygdryg/yandex-speechkit-lib-python
b45bbb6550d5bb77289ff0462e794cbc8b0669a0
[ "MIT" ]
2
2021-12-13T20:29:00.000Z
2022-01-28T13:02:54.000Z
src/speechkit/__init__.py
drygdryg/yandex-speechkit-lib-python
b45bbb6550d5bb77289ff0462e794cbc8b0669a0
[ "MIT" ]
1
2021-07-26T00:36:18.000Z
2021-07-26T13:52:59.000Z
src/speechkit/__init__.py
drygdryg/yandex-speechkit-lib-python
b45bbb6550d5bb77289ff0462e794cbc8b0669a0
[ "MIT" ]
2
2022-02-08T12:39:26.000Z
2022-03-12T19:08:18.000Z
""" speechkit Python SDK for using Yandex Speech recognition and synthesis """ __author__ = 'Tikhon Petrishchev' __version__ = '2.0.2' from speechkit._auth import Session from speechkit._recognition.streaming_recognition import DataStreamingRecognition from speechkit._recognition.sync_recognition import ShortAudioRec...
34.6
117
0.83815
1c696026dda76dcf36e63bf93c989df9a70208e5
3,191
py
Python
plugins/modules/k8s_config.py
rdxmb/module-ansible
a668af603136545dac707fc1b69f767e029de166
[ "Apache-2.0" ]
null
null
null
plugins/modules/k8s_config.py
rdxmb/module-ansible
a668af603136545dac707fc1b69f767e029de166
[ "Apache-2.0" ]
null
null
null
plugins/modules/k8s_config.py
rdxmb/module-ansible
a668af603136545dac707fc1b69f767e029de166
[ "Apache-2.0" ]
null
null
null
ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} EXAMPLES = ''' - name: Get k8s config k8s_config: k8s_cluster_id: "ed67d8b3-63c2-4abe-9bf0-073cee7739c9" config_file: 'config.yaml' ''' HAS_SDK = True try: import io...
30.682692
100
0.610467
1c69624bfb80cab3ece37de04ebe157694e19cfd
8,670
py
Python
tests/test_ec2/test_network_acls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
tests/test_ec2/test_network_acls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
tests/test_ec2/test_network_acls.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals import boto import boto3 import sure # noqa from nose.tools import assert_raises from botocore.exceptions import ClientError from moto import mock_ec2_deprecated, mock_ec2 @mock_ec2_deprecated def test_default_network_acl_created_with_vpc(): conn = boto.connect_vpc('the_k...
34.268775
137
0.707843
1c69cd10231bf3809e43ec94fdc125dae7522235
12,326
py
Python
openldap/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
openldap/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
openldap/tests/test_unit.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import datetime import os import pytest import ldap3 from datadog_checks.errors import CheckException from .common import HERE def test_check(check, aggregator, mocker): server_mock = ldap3.Server("fake_s...
41.086667
107
0.676375
1c69d5d7403586cc5f5bd45ef8420dcd761ac2c5
1,649
py
Python
localfoo/sun-chron.py
headrotor/rpi-utils
66eaa41ebc5074091a0ba231fa1beb548afc08e1
[ "MIT" ]
1
2018-01-29T08:43:47.000Z
2018-01-29T08:43:47.000Z
localfoo/sun-chron.py
headrotor/rpi-utils
66eaa41ebc5074091a0ba231fa1beb548afc08e1
[ "MIT" ]
null
null
null
localfoo/sun-chron.py
headrotor/rpi-utils
66eaa41ebc5074091a0ba231fa1beb548afc08e1
[ "MIT" ]
null
null
null
# python cron job to do things at sunrise and sunset using 'at' # run daily from crontab, e.g. import sys import time import datetime from astral import Astral import subprocess if __name__ == '__main__': city_name = "San Francisco" a = Astral() #a.solar_depression = 'civil' #a.solar_depression ...
31.113208
99
0.607641
1c69ea87f23d0102c4d1d9555be2b5c5d6ab735d
461
py
Python
tests/test_external_h2_dispenser.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2019-10-15T15:56:35.000Z
2021-02-04T10:11:31.000Z
tests/test_external_h2_dispenser.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
121
2020-01-06T14:32:30.000Z
2021-09-23T11:26:11.000Z
tests/test_external_h2_dispenser.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2019-10-21T08:36:05.000Z
2021-03-26T10:37:17.000Z
from smooth.components.external_component_h2_dispenser import H2Dispenser from os import path def test_init(): # basic creation test_path = path.join(path.dirname(__file__), 'test_timeseries') h2 = H2Dispenser({"csv_filename": "test_csv.csv", "path": test_path, }) assert h2 is not None assert h2....
25.611111
75
0.718004
1c6a1dac19c35974809fa19badb603a2c67bd9dc
3,879
py
Python
city_scrapers/spiders/chi_plan_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
city_scrapers/spiders/chi_plan_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
city_scrapers/spiders/chi_plan_commission.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from datetime import time import dateutil.parser from city_scrapers.constants import COMMISSION from city_scrapers.spider import Spider class ChiPlanCommissionSpider(Spider): name = 'chi_plan_commission' agency_name = 'Chicago Department of Planning and Development' tim...
39.581633
96
0.554009
1c6a31cb807dc10d64a326a500c0ea188f5d7a2b
1,113
py
Python
setup.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
setup.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
10
2016-09-27T21:13:22.000Z
2018-10-31T19:42:32.000Z
setup.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
"""Build and install the wmtmetadata package.""" import os from setuptools import setup, find_packages def read_requirements(): path = os.path.dirname(os.path.abspath(__file__)) requirements_file = os.path.join(path, 'requirements.txt') try: with open(requirements_file, 'r') as req_fp: ...
28.538462
79
0.610961
1c6a57e1d79f3cb87ed3d9dffeafaf4a74135c6f
3,131
py
Python
esengine/utils/payload/meta.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
53
2017-04-29T16:39:13.000Z
2022-01-25T23:46:31.000Z
esengine/utils/payload/meta.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
9
2017-11-22T18:22:17.000Z
2020-06-05T19:26:07.000Z
esengine/utils/payload/meta.py
0mars/esengine
7da722e2950a51df46b3c6f8130477c00cff1d46
[ "MIT" ]
13
2017-10-27T13:44:04.000Z
2021-02-28T12:33:04.000Z
from esengine.utils.payload.meta_util import ( make_struct, unroll_definitions, unroll_struct ) class MetaFilterQuery(type): def __init__(self, name, bases, d): super(MetaFilterQuery, self).__init__(name, bases, d) unroll_definitions(self._definitions) def __getattr__(self, key): ...
24.271318
68
0.56276
1c6a6c048507a485d14c868fa3b838b591bada7a
794
py
Python
simulation/generator/page_visitor.py
nbelzer/msc-thesis
91d37305275c988140e32ce15486275e3b984fb5
[ "Apache-2.0" ]
null
null
null
simulation/generator/page_visitor.py
nbelzer/msc-thesis
91d37305275c988140e32ce15486275e3b984fb5
[ "Apache-2.0" ]
null
null
null
simulation/generator/page_visitor.py
nbelzer/msc-thesis
91d37305275c988140e32ce15486275e3b984fb5
[ "Apache-2.0" ]
null
null
null
from .utils import Page from .confined_list import ConfinedList class PageVisitor: current_page: Page page_history: ConfinedList def __init__(self): self.page_history = ConfinedList() def next_pages(self): """Return the next page that can be visited through an outgoing link, or ...
31.76
80
0.657431
1c6ac214194f9dc56a8dd97911d47733a4a29794
45,545
py
Python
main/generate_antenna_power.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/generate_antenna_power.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
main/generate_antenna_power.py
dannyjacobs/PRISim
89e544d771cf5c4113a4d5787a57c9586fa98eac
[ "MIT" ]
null
null
null
import argparse import numpy as NP from astropy.io import fits from astropy.io import ascii import scipy.constants as FCNST import matplotlib.pyplot as PLT import matplotlib.colors as PLTC import progressbar as PGB import healpy as HP import geometry as GEOM import interferometry as RI import catalog as SM import cons...
51.116723
280
0.695993
1c6ac48f361fe5caef56c906a60cb6c57c15d661
6,399
py
Python
libs/cliff/command.py
PortSwigger/lightbulb-framework
1c3dae2af902abc3cbab4e6b989e302f469d7a6a
[ "MIT" ]
18
2018-02-07T20:50:30.000Z
2022-02-28T22:49:52.000Z
libs/cliff/command.py
PortSwigger/lightbulb-framework
1c3dae2af902abc3cbab4e6b989e302f469d7a6a
[ "MIT" ]
null
null
null
libs/cliff/command.py
PortSwigger/lightbulb-framework
1c3dae2af902abc3cbab4e6b989e302f469d7a6a
[ "MIT" ]
4
2019-08-26T18:43:08.000Z
2020-08-07T23:01: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 u...
34.219251
79
0.636662
1c6ad29a6fba8fe98497e8151690845989854fdc
64
py
Python
abc/134/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/134/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/134/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N, D = map(int, input().split()) D = D * 2 + 1 print(-(-N // D))
21.333333
32
0.453125
1c6aef3d10e92aa8dac1132c2676286d4430c904
1,253
py
Python
incasem/gunpowder/unsqueeze.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/unsqueeze.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/unsqueeze.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
import copy from typing import List import logging import numpy as np import gunpowder as gp logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class Unsqueeze(gp.BatchFilter): """Unsqueeze a batch at a given axis Args: arrays (List[gp.ArrayKe...
27.23913
78
0.632881
1c6afe05287841d5bb8d66a2c644e76db7d89bbf
14,634
py
Python
tests/swig/python/runtime/messaging/test_bucket.py
twinkarma/FLAMEGPU2_dev
733a6c2016c0fd15cd835c6bb2fcb6ded75c8d15
[ "MIT" ]
null
null
null
tests/swig/python/runtime/messaging/test_bucket.py
twinkarma/FLAMEGPU2_dev
733a6c2016c0fd15cd835c6bb2fcb6ded75c8d15
[ "MIT" ]
4
2020-10-19T18:31:24.000Z
2020-12-14T21:26:46.000Z
tests/swig/python/runtime/messaging/test_bucket.py
twinkarma/FLAMEGPU2_dev
733a6c2016c0fd15cd835c6bb2fcb6ded75c8d15
[ "MIT" ]
null
null
null
import pytest from unittest import TestCase from pyflamegpu import * import random as rand AGENT_COUNT = 24 out_mandatory = """ FLAMEGPU_AGENT_FUNCTION(out_mandatory, MsgNone, MsgBucket) { int id = FLAMEGPU->getVariable<int>("id"); FLAMEGPU->message_out.setVariable<int>("id", id); FLAMEGPU->message_out.se...
40.763231
104
0.604073
1c6b06957bbd36c006b63797412dafd87bf15a36
4,939
py
Python
assets/lib/shaka-player/build/check.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
assets/lib/shaka-player/build/check.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
assets/lib/shaka-player/build/check.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2016 Google 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 ag...
31.660256
78
0.693663
1c6b1cd1334404a84ac5e6cd719754a45971ec14
911
py
Python
test/generate/autotest/D4_DA_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/D4_DA_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/D4_DA_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-27 18:19:21 # AI # ins: DA A ######################################################### import random from .. import testutil as u from ..sim51util import SIMRAM from ..asmconst import * p = u.create_test() ram = SIMRAM() for x in range(24): a ...
22.775
67
0.501647
1c6b1ed0705e50e0fca7701e24160de453a494be
7,288
py
Python
data_prep/utils.py
fjbriones/emotalkingface
4c5c7acda66c8ba78b202c75a73f7066ec2fda1c
[ "MIT" ]
28
2021-06-28T02:52:08.000Z
2022-03-29T02:53:49.000Z
data_prep/utils.py
ramizf/emotalkingface
d3d838be705ea74d4165891720739d749aaf38a5
[ "MIT" ]
8
2021-08-19T00:40:06.000Z
2022-03-22T21:15:58.000Z
data_prep/utils.py
ramizf/emotalkingface
d3d838be705ea74d4165891720739d749aaf38a5
[ "MIT" ]
11
2021-07-24T16:06:45.000Z
2022-03-30T07:45:01.000Z
# Written by Sefik Emre Eskimez, May 29 2018 - Aug 17 2018 # import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from mpl_toolkits import mplot3d import matplotlib.animation as manimation import matplotlib.lines as mlines from matplotlib import transforms import numpy as np import os fro...
35.901478
191
0.566136
1c6b2b07f9b518e30fa8590381506dcacacbd964
12,693
py
Python
ABLIRC/bin/public/Extract_Region_sequence.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
1
2020-02-25T13:08:20.000Z
2020-02-25T13:08:20.000Z
ABLIRC/bin/public/Extract_Region_sequence.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
1
2020-02-25T13:16:03.000Z
2020-02-25T13:16:03.000Z
ABLIRC/bin/public/Extract_Region_sequence.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- #################################################################################### ### Copyright (C) 2015-2019 by ABLIFE #################################################################################### #########################################################...
33.054688
159
0.407154
1c6b45bc75c785ad479726845d0c57e41095f6ba
2,453
py
Python
dnplab/dnpIO/tnmr.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
4
2020-09-23T08:09:33.000Z
2022-02-10T22:02:11.000Z
dnplab/dnpIO/tnmr.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
126
2020-09-16T22:25:59.000Z
2022-03-29T17:15:27.000Z
dnplab/dnpIO/tnmr.py
DNPLab/DNPLab
78999a4e8320b6476a5aa55d9884c49d74149edc
[ "MIT" ]
5
2020-09-24T20:57:31.000Z
2021-08-19T01:52:16.000Z
from .. import dnpdata import numpy as np import struct import re def import_tnmr(path): """ Import tnmr data and return dnpdata object Args: path (str) : Path to .jdf file Returns: tnmr_data (object) : dnpdata object containing tnmr data """ attrs = import_tnmr_pars(path) ...
23.141509
83
0.523033
1c6b4a54571c4395ba83d741a236ae510299abe7
1,028
py
Python
config.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
null
null
null
config.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
2
2020-09-30T09:58:53.000Z
2020-09-30T10:47:25.000Z
config.py
kahenya-anita/IMeal
c3d7006165f9001bdd6a04119006345e8904af09
[ "Unlicense" ]
5
2020-09-29T07:02:46.000Z
2020-10-02T10:03:58.000Z
import os class Config: ''' General configuration parent class ''' SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://abuga:password@localhost/imeal' #heroku database below SQLALCHEMY_TRACK_MODIFICATIONS = True # email configurations MAIL_S...
23.906977
182
0.724708
1c6b60148264ff8f4f3a151132e40a0ab276b937
351
py
Python
arquivos/qualquercoisa.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/qualquercoisa.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
arquivos/qualquercoisa.py
lucabeca/python
2f321faf7f497319a244bc352aefd16b69b8141e
[ "Apache-2.0" ]
null
null
null
import time print("Calculadora de punhetas") idade = int(input("Digite a sua idade: ")) media = int(input("Digite a sua média por semana estimada: ")) dias = (idade - 11) * (53 * media) total = dias - (idade - 11 * (3 * media)) total = round(total, 0) print('Você já bateu, aproximadamente, algo entre',total - (53 * ...
31.909091
96
0.65812
1c6b7c2df8fef220cca693b2eb69a23732eb5d29
1,332
py
Python
models/final_experiment_scripts/eICU/LoS/tpc_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
29
2020-11-23T16:27:41.000Z
2022-03-25T16:05:24.000Z
models/final_experiment_scripts/eICU/LoS/tpc_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
2
2020-11-28T04:11:12.000Z
2021-08-23T12:42:08.000Z
models/final_experiment_scripts/eICU/LoS/tpc_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
9
2021-02-23T07:12:58.000Z
2022-01-13T15:11:59.000Z
from eICU_preprocessing.split_train_test import create_folder from torch.optim import Adam from models.tpc_model import TempPointConv from models.experiment_template import ExperimentTemplate from models.initialise_arguments import initialise_tpc_arguments from models.final_experiment_scripts.best_hyperparameters impor...
38.057143
128
0.675676
1c6ba0968aa16772d323b0a70fc8df87e017b70f
124
py
Python
pyplan/pyplan/usercompanies/pagination.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
17
2019-12-04T19:22:19.000Z
2021-07-28T11:17:05.000Z
pyplan/pyplan/usercompanies/pagination.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
9
2019-12-13T15:34:43.000Z
2022-02-10T11:43:00.000Z
pyplan/pyplan/usercompanies/pagination.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
5
2019-12-04T15:57:06.000Z
2021-08-20T19:59:26.000Z
from rest_framework import pagination class UserCompaniesPagination(pagination.PageNumberPagination): page_size = 1000
24.8
63
0.846774
1c6ba48d850d8854b3904666940faa667500ac65
393
py
Python
ex1-linear regression/1_plot_data.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
5
2017-03-30T10:31:50.000Z
2017-11-19T05:57:21.000Z
ex1-linear regression/1_plot_data.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
null
null
null
ex1-linear regression/1_plot_data.py
themech/Machine-Learning-Coursera-Tensorflow
bd99b7de6206ad5903313c824fb9dd05df8580c2
[ "MIT" ]
2
2017-09-20T16:12:15.000Z
2019-03-07T15:51:24.000Z
import matplotlib.pyplot as plt import pandas as pd import seaborn as sns # Read the data - two comma-separated columns. # As there is no header row, we name the columns here df = pd.read_csv('data/ex1data1.txt', names=['population', 'profit']) # Print the header and first few rows print(df.head()) # Plot the data ...
24.5625
69
0.727735
1c6ba7606b39fd2865da6ac7474bd4eec31edd2a
178
py
Python
settings.py
arthurpreis/zamscript
5dfa5c3e013bb658658c14290c3120938939f132
[ "Unlicense" ]
1
2020-04-21T20:02:21.000Z
2020-04-21T20:02:21.000Z
settings.py
arthurpreis/zamscript
5dfa5c3e013bb658658c14290c3120938939f132
[ "Unlicense" ]
null
null
null
settings.py
arthurpreis/zamscript
5dfa5c3e013bb658658c14290c3120938939f132
[ "Unlicense" ]
null
null
null
class Settings(): def __init__(self): self.ntry = 20 #number of tries self.mesh_points = 201 self.mesh_centerfold = 185 # int(self.mesh_points * 0.9)
29.666667
64
0.623596
1c6bcb231c759f0f3f3163b8ad51697c0e92c738
5,214
py
Python
qcd_gen.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
12
2015-02-02T12:39:47.000Z
2021-03-24T13:25:04.000Z
qcd_gen.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
1
2016-02-05T00:13:20.000Z
2016-02-05T00:13:54.000Z
qcd_gen.py
michibo/feyncop
19aafd73feb39335e0e1451c81c5b2a50af01112
[ "MIT" ]
1
2016-02-05T12:58:29.000Z
2016-02-05T12:58:29.000Z
"""qcd_gen.py: This file is part of the feyncop/feyngen package. Implements functions to generate QCD graphs. """ # See also: http://people.physik.hu-berlin.de/~borinsky/ __author__ = "Michael Borinsky" __email__ = "borinsky@physik.hu-berlin.de" __copyright__ = "Copyright (C) 2014 Michael Borinsky" __license__ =...
42.390244
131
0.645953
1c6bd18c2fa74da9a508529461dfc947447d376c
2,906
py
Python
torch_householder/householder.py
toshas/torch-householder
afe72ebf9a01c257a5070a6d01b3f81be9e8efd6
[ "CC-BY-4.0", "BSD-3-Clause" ]
38
2021-01-06T10:07:14.000Z
2021-12-25T15:29:28.000Z
torch_householder/householder.py
toshas/torch-householder
afe72ebf9a01c257a5070a6d01b3f81be9e8efd6
[ "CC-BY-4.0", "BSD-3-Clause" ]
7
2021-01-04T20:50:06.000Z
2021-12-24T13:51:50.000Z
torch_householder/householder.py
toshas/torch-householder
afe72ebf9a01c257a5070a6d01b3f81be9e8efd6
[ "CC-BY-4.0", "BSD-3-Clause" ]
2
2021-01-09T05:14:53.000Z
2021-09-04T04:55:48.000Z
import os import torch from torch.utils.cpp_extension import load VERBOSE = False def _resolve(name): return os.path.join(os.path.dirname(os.path.realpath(__file__)), name) try: import torch_householder_cpp except ImportError: if VERBOSE: print('Falling back to JIT compiling torch_householder_...
34.188235
107
0.651755
1c6beb5b9b4884d73a4c317cc668634af1539a18
100,171
py
Python
tests/system/multimodal/test_multimodal.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
4
2021-06-29T04:14:31.000Z
2021-08-01T07:01:08.000Z
tests/system/multimodal/test_multimodal.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
2
2021-07-14T14:07:18.000Z
2022-02-06T05:00:41.000Z
tests/system/multimodal/test_multimodal.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
2
2021-10-06T07:28:11.000Z
2021-11-18T20:20:18.000Z
import os import pytest import jina from jina import Document, Flow from jina.helloworld.multimodal.app import hello_world from jina.parsers.helloworld import set_hw_multimodal_parser from tests import validate_callback @pytest.fixture def helloworld_args(tmpdir): return set_hw_multimodal_parser().parse_args( ...
1,077.107527
97,915
0.694952
1c6c002ba64df06f5b74ac63de84b47a2d187c24
14,868
py
Python
jaeger_client/tracer.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
372
2017-10-31T21:51:26.000Z
2022-03-23T10:36:19.000Z
jaeger_client/tracer.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
276
2017-10-10T11:33:50.000Z
2022-03-24T16:36:16.000Z
jaeger_client/tracer.py
jaegertracing/jaeger-client-python
a6c973158bf9b02cd7f5a966ccfd29ab86c44a5b
[ "Apache-2.0" ]
157
2017-10-09T07:16:41.000Z
2021-12-29T14:49:26.000Z
# Copyright (c) 2016-2018 Uber Technologies, 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 agree...
41.88169
97
0.621536
1c6c0b1fa3841d80d342788efd7790347d237e5f
1,821
py
Python
key_monad/key_monad.py
verbalsaintmars/key_monad
3122fd18af65b6f91463a62060760d0560139e15
[ "MIT" ]
null
null
null
key_monad/key_monad.py
verbalsaintmars/key_monad
3122fd18af65b6f91463a62060760d0560139e15
[ "MIT" ]
null
null
null
key_monad/key_monad.py
verbalsaintmars/key_monad
3122fd18af65b6f91463a62060760d0560139e15
[ "MIT" ]
null
null
null
import collections import uuid from .common_func import get_dict_obj class key_monad(object): """ Context is immutable. No side-effect. """ CACHE = {"dummy": ({1: None}, {})} def __init__(self, key, config, separator=r"/"): """ :key: config key string tuple or single key stri...
26.014286
68
0.560681
1c6c41d75e08a22ad40639dcedb7ad570d0d9bb3
2,685
py
Python
tests/test_pipeline.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
tests/test_pipeline.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
tests/test_pipeline.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
import logging import os import pathlib import unittest import exorad.tasks as tasks from exorad.log import setLogLevel path = pathlib.Path(__file__).parent.absolute() data_dir = os.path.join(path.parent.absolute(), 'examples') setLogLevel(logging.DEBUG) class PipelineTest(unittest.TestCase): loadOptions = tas...
41.953125
110
0.646927
1c6c4383cc11908eeea111dcb2355f94b3ca19c5
3,377
py
Python
families/track/hashblock_track/processor/handler.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
5
2018-04-05T07:02:04.000Z
2018-07-10T09:39:03.000Z
families/track/hashblock_track/processor/handler.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
89
2018-03-11T14:46:07.000Z
2018-09-07T14:50:42.000Z
families/track/hashblock_track/processor/handler.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2018 Frank V. Castellucci and Arthur Greef # # 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 # # ...
31.858491
80
0.660053
1c6c518da7801ba898e48f58900223f611ec049e
4,821
py
Python
execute.py
choderalab/nn-endstates
eb6743c9270ed8cb92f87447aefac7bb27aa55e6
[ "MIT" ]
3
2020-02-02T23:02:26.000Z
2020-07-15T06:33:46.000Z
execute.py
choderalab/nn-endstates
eb6743c9270ed8cb92f87447aefac7bb27aa55e6
[ "MIT" ]
4
2020-03-16T16:31:40.000Z
2020-07-27T19:22:38.000Z
execute.py
choderalab/nn-endstates
eb6743c9270ed8cb92f87447aefac7bb27aa55e6
[ "MIT" ]
null
null
null
# !/usr/bin/env python from complete import * import sys from pkg_resources import resource_filename import pickle import mdtraj as md import os """ execute: Arguments: 1:factory_np_filename: str '.npy' name of factory dict file 2:phase: str phase of the simulation (key of the...
42.663717
115
0.642605
1c6c70158cf132337c9244b34ff16e74f547f651
16,337
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
45.00551
211
0.686295
1c6c790f74b3ce5362af362585430f379cf7f551
86,924
py
Python
salt/utils/__init__.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/utils/__init__.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/utils/__init__.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Some of the utils used by salt ''' # Import python libs from __future__ import absolute_import, division, print_function import contextlib import copy import collections import datetime import distutils.version # pylint: disable=import-error,no-name-in-module import errno import fnmatch im...
31.608727
106
0.582509
1c6c849c36ddaa084597629131e46b5aa00617f1
6,215
py
Python
blobmodel/blobs.py
uit-cosmo/2d-propagating-blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
1
2021-10-02T17:58:16.000Z
2021-10-02T17:58:16.000Z
blobmodel/blobs.py
uit-cosmo/2d_propagating_blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
20
2021-10-04T10:44:34.000Z
2022-01-28T15:20:39.000Z
blobmodel/blobs.py
uit-cosmo/2d-propagating-blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
1
2021-12-06T13:31:58.000Z
2021-12-06T13:31:58.000Z
import warnings from typing import Tuple from nptyping import NDArray import numpy as np class Blob: """A single blob.""" def __init__( self, blob_id: int, blob_shape: str, amplitude: float, width_prop: float, width_perp: float, v_x: float, v_y:...
30.767327
85
0.512309
1c6ca7cc9f3929c4a096ff3e150730a4002ecf5a
10,856
py
Python
train_controllable_abstractor.py
kenchan0226/AbsThenExtPublic
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
5
2021-08-10T02:31:51.000Z
2022-02-08T01:12:25.000Z
train_controllable_abstractor.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
train_controllable_abstractor.py
kenchan0226/abs-then-ext-public
567811d6c76fe51c2c368eeaca1761eb322db2a2
[ "MIT" ]
null
null
null
""" train the abstractor""" import argparse import json import os from os.path import join, exists import pickle as pkl from cytoolz import compose import torch from torch import optim from torch.nn import functional as F from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import DataLoader ...
39.911765
123
0.64895
1c6cb92dc71c1b5da92a297593de94d909399a14
1,498
py
Python
savu/plugins/unregistered/i18_loaders/i18_monitor_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/unregistered/i18_loaders/i18_monitor_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/unregistered/i18_loaders/i18_monitor_loader.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # 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 t...
35.666667
77
0.748999
1c6d19f29f8a6a612f56afe719b71265acbbc9cb
814
py
Python
src/scripts/ingest/app.py
omotayo-alade/ml-death-event-prediction
b8b215d1fdf55183dbe7405af703b2d11dcf5b50
[ "CNRI-Python" ]
null
null
null
src/scripts/ingest/app.py
omotayo-alade/ml-death-event-prediction
b8b215d1fdf55183dbe7405af703b2d11dcf5b50
[ "CNRI-Python" ]
5
2020-09-08T15:35:43.000Z
2022-03-12T00:36:28.000Z
src/scripts/ingest/app.py
omotayo-alade/heart-failure-survival
b8b215d1fdf55183dbe7405af703b2d11dcf5b50
[ "CNRI-Python" ]
1
2020-06-28T13:55:25.000Z
2020-06-28T13:55:25.000Z
import numpy as np from flask import Flask, request, jsonify, render_template import pickle model = pickle.load(open('outputs/models/model.pkl', 'rb')) app = Flask(__name__, template_folder='template') #Initialize the flask App @app.route('/') def home(): return render_template('index.html') @app.route('/predic...
29.071429
91
0.690418
1c6d3afe93e3019ceaa9d3ee7ef13efdeca52b3e
4,076
py
Python
src/data/configvars.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/data/configvars.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/data/configvars.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
44.304348
101
0.560108
1c6d4097c7612ab1745137ae487fc6d82d649e1b
151
py
Python
instana/version.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
instana/version.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
instana/version.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
null
null
null
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2020 # Module version file. Used by setup.py and snapshot reporting. VERSION = '1.37.0'
21.571429
64
0.701987
1c6d46a8c2e536abc4f984ae403a7ed74103feed
1,817
py
Python
azkaban_cli/tests/test_azkaban/test_delete.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
azkaban_cli/tests/test_azkaban/test_delete.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
azkaban_cli/tests/test_azkaban/test_delete.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
import os from unittest import TestCase from unittest.mock import patch, ANY import responses import azkaban_cli.azkaban from azkaban_cli.exceptions import SessionError, NotLoggedOnError class AzkabanDeleteTest(TestCase): def setUp(self): """ Creates an Azkaban instance and set a logged session...
26.720588
131
0.656577
1c6d6d7b9caf2fbab081d74fd2d84fe4bd1757be
3,532
py
Python
tf_agents/networks/value_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/value_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/value_network.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
32.40367
79
0.703001
1c6d8175bfaac8e433c4fe985bd480e716b946c7
3,584
py
Python
ufora/networking/SocketStringChannel_test.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/networking/SocketStringChannel_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/networking/SocketStringChannel_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora 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 agreed to i...
33.185185
91
0.675502
1c6d9a1e162262d303ab5ceb6000461bcda31fb4
13,302
py
Python
PyFunceble/database/whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/database/whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/database/whois.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
33.17207
135
0.543076
1c6e6c2d16d8c89d3b920b645ae323fed75cfae8
766
py
Python
todoapp/tests/utils.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
70
2021-03-03T08:59:42.000Z
2022-01-10T14:02:28.000Z
todoapp/tests/utils.py
compilers-ai/create-django-app
1b3e8b30bd8428f163788428b6c37aecfa406e07
[ "MIT" ]
2
2021-03-12T22:29:56.000Z
2021-12-13T05:46:06.000Z
todoapp/tests/utils.py
imagineai/create-django-app
e34337bfb7f1719f011344f856a385b21f01062f
[ "MIT" ]
6
2021-03-06T08:28:29.000Z
2021-09-29T13:10:29.000Z
from django.contrib.auth.models import Group, Permission from rest_framework.test import APIClient from .factories import UserFactory def generate_user(groups=[], is_active=True, is_superuser=False, permissions=[]): """ Generate a custom user """ user = UserFactory.create(is_active=is_active, is_supe...
29.461538
81
0.737598
1c6e99d79f43c1034b8b89c2500387e7866ba18a
1,782
py
Python
modelscript/megamodels/megamodels/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/megamodels/megamodels/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2019-02-12T07:49:15.000Z
2019-02-12T07:50:12.000Z
modelscript/megamodels/megamodels/__init__.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 """ Global registery of: - metamodels, - models, - metamodel dependencies - model dependencies """ from abc import ABCMeta, abstractmethod from typing import List, Optional from modelscript.megamodels.dependencies import Dependency from modelscript.megamodels.megamodels._registries.metamodels import _M...
31.821429
87
0.781145
1c6e9b9a29a22ceed3d4d2f92a273b8e78bc52b3
3,103
py
Python
webserver/lswb/helloworld/helloworld/settings.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
webserver/lswb/helloworld/helloworld/settings.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
5
2021-04-08T21:59:04.000Z
2022-02-10T14:19:59.000Z
webserver/lswb/helloworld/helloworld/settings.py
zeroam/build-your-own-x
e7932cd25145aa3c347511db6846b1242dbb30eb
[ "MIT" ]
null
null
null
""" Django settings for helloworld project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
25.644628
91
0.695456
1c6ebff19766f73a746fd623e0b9ca6da9a6dda9
22,325
py
Python
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_services_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_services_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/mobilenetwork/azure-mgmt-mobilenetwork/azure/mgmt/mobilenetwork/aio/operations/_services_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
46.802935
226
0.675834