hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a09c8dabf09279418f0c028ae9f2bbd624af93e
241
py
Python
app/config/storages.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
null
null
null
app/config/storages.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
32
2019-08-30T13:09:28.000Z
2021-06-10T19:07:56.000Z
app/config/storages.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
3
2019-09-19T10:12:50.000Z
2019-09-30T15:59:13.000Z
from storages.backends.s3boto3 import S3Boto3Storage class MediaStorage(S3Boto3Storage): location = 'media' default_acl = 'public-read' class StaticStorage(S3Boto3Storage): location = 'static' default_acl = 'public-read'
20.083333
52
0.742739
4a09c931c2c21b7523b6a259337add1b01012f8e
2,399
py
Python
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/sharedArray.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/sharedArray.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/pacbio/pythonpkgs/kineticstools/lib/python2.7/site-packages/kineticsTools/sharedArray.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
46.134615
90
0.706128
4a09c97b26376722aecf17c4e2d544fa91209dd7
2,866
py
Python
nisc_impute.py
xiangz-108/NISC-Imputation
7e67b7766346883da55ff8bc92f364ac239ac33c
[ "MIT" ]
null
null
null
nisc_impute.py
xiangz-108/NISC-Imputation
7e67b7766346883da55ff8bc92f364ac239ac33c
[ "MIT" ]
null
null
null
nisc_impute.py
xiangz-108/NISC-Imputation
7e67b7766346883da55ff8bc92f364ac239ac33c
[ "MIT" ]
null
null
null
##################################### #Author: Xiang Zhang #Email: xiangzhang@email.arizona.edu ##################################### #Purpose: The goal of this code is to impute data using NISC method. #It requires input data stored as 2D numpy array, with name "data.npy" - #whose rows indicating the genes, cols indi...
34.95122
157
0.693301
4a09ca167771b7fc5ca6795e4ebcdc7a6175eeb7
3,082
py
Python
tests/sentry/api/endpoints/test_project_tagkey_details.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_tagkey_details.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_tagkey_details.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import mock from django.core.urlresolvers import reverse from sentry import tagstore from sentry.tagstore import TagKeyStatus from sentry.testutils import APITestCase, SnubaTestCase from sentry.testutils.helpers.datetime import iso_format, before_now class ProjectTagKeyDetail...
28.803738
94
0.583387
4a09ca77c279805483d4429d87ce70e11e9f34cd
2,634
py
Python
packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/pygments2style.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
2
2017-09-11T15:25:14.000Z
2019-09-27T17:08:31.000Z
packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/pygments2style.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
6
2019-08-22T06:29:45.000Z
2021-09-19T18:59:46.000Z
packages/structural_dhcp_rst2pdf-aquavitae/structural_dhcp_rst2pdf/pygments2style.py
amakropoulos/structural-pipeline-measures
70e22f9ad94cc57e72e510576cfc3129da83f7fc
[ "Apache-2.0" ]
1
2018-02-12T14:38:33.000Z
2018-02-12T14:38:33.000Z
# -*- coding: utf-8 -*- # See LICENSE.txt for licensing terms ''' Creates a structural_dhcp_rst2pdf stylesheet for each pygments style. ''' import os from . import dumpstyle from pygments.token import STANDARD_TYPES from pygments import styles as pstyles # First get a list of all possible classes classnames = set() f...
36.583333
74
0.566439
4a09caf9fbbb60b67ed45087e8aef17c3c568097
2,335
py
Python
mev/api/converters/mappers.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
mev/api/converters/mappers.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
mev/api/converters/mappers.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
import os import json from api.exceptions import InputMappingException class MapConverter(object): ''' A base class for inputs which serve as a proxy for the true inputs. An example is when we need multiple genome-specific files (such as for a BWA alignment) and the user simply needs to dictate whic...
40.964912
90
0.653105
4a09cb779465a105e87acf5d0b08ebd71cd66c99
22,465
py
Python
stretch_funmap/src/stretch_funmap/merge_maps.py
ScazLab/stretch_ros
7b7c9e6bea15ab507e87a15d294a1068b9dc4a85
[ "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
stretch_funmap/src/stretch_funmap/merge_maps.py
ScazLab/stretch_ros
7b7c9e6bea15ab507e87a15d294a1068b9dc4a85
[ "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
stretch_funmap/src/stretch_funmap/merge_maps.py
ScazLab/stretch_ros
7b7c9e6bea15ab507e87a15d294a1068b9dc4a85
[ "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import max_height_image as mh import numpy as np import scipy.ndimage as nd import scipy.signal as si import cv2 import skimage as sk import math import hello_helpers.hello_misc as hm import navigation_planning as na import copy import time from scipy.opti...
43.119002
143
0.645092
4a09cc4d7338f09b266db268e1f8a56a88699a84
405
py
Python
Make_It_A_Keyboard/strings/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
null
null
null
Make_It_A_Keyboard/strings/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
null
null
null
Make_It_A_Keyboard/strings/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
null
null
null
import usb_hid from adafruit_circuitplayground.express import cpx from adafruit_hid.keyboard import Keyboard from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS kbd = Keyboard(usb_hid.devices) layout = KeyboardLayoutUS(kbd) while True: if cpx.button_a: # Type 'Jane Doe' followed by Enter (a newli...
27
60
0.735802
4a09cc6d240e35ac29937581d8c6d918d8aebfb0
610
py
Python
config.py
claudianjeri/The-News-Highlights
7e89fa2eb4ccd8901d9d666a8782d2c54d89ef4c
[ "MIT" ]
null
null
null
config.py
claudianjeri/The-News-Highlights
7e89fa2eb4ccd8901d9d666a8782d2c54d89ef4c
[ "MIT" ]
1
2018-05-29T19:30:04.000Z
2018-05-29T19:30:04.000Z
config.py
claudianjeri/The-News-Highlights
7e89fa2eb4ccd8901d9d666a8782d2c54d89ef4c
[ "MIT" ]
null
null
null
import os class Config: #my api key. NEWS_API_KEY = '8a48624dfbfc41d8a7009f960cccd473' SECRET_KEY = 'nsdbbdkjsbnjrbwucsjanvrbvuhcurwhcnerhicewi' #my source base url SOURCE_API_BASE_URL = 'https://newsapi.org/v2/sources?&category={}&language=en&apiKey=8a48624dfbfc41d8a7009f960cccd473' #my artic...
25.416667
123
0.74918
4a09cc7dfc2ab625a3c860c43e0a0cee44752aca
5,269
py
Python
BeautyForMe/myvenv/Lib/site-packages/disqus/api.py
YooInKeun/CAU_CSE_Capstone_3
51405c4bed2b55661aa0708c8acea17fe72aa701
[ "MIT" ]
6
2019-12-07T07:30:34.000Z
2022-01-20T14:26:44.000Z
BeautyForMe/myvenv/Lib/site-packages/disqus/api.py
YooInKeun/CAU_CSE_Capstone_3
51405c4bed2b55661aa0708c8acea17fe72aa701
[ "MIT" ]
9
2019-12-28T06:18:53.000Z
2022-01-13T01:54:21.000Z
BeautyForMe/myvenv/Lib/site-packages/disqus/api.py
YooInKeun/CAU_CSE_Capstone_3
51405c4bed2b55661aa0708c8acea17fe72aa701
[ "MIT" ]
1
2020-05-21T15:55:45.000Z
2020-05-21T15:55:45.000Z
import urllib2 import urllib def _usingPy26(): import sys return sys.hexversion > 0x20600f0 if _usingPy26(): import json else: import simplejson as json from exceptions import Exception from disqus.disqus_globals import POST_ACTIONS class DisqusError(Exception): """ Base Exception thrown by...
30.281609
79
0.581515
4a09cf7d33932fae13d77ec29b631a376c1119dd
21,912
py
Python
homeassistant/components/plex/server.py
rotdrop/home-assistant-core
f7c4900d5c22da8aba35258a66a89e4e68cc7c60
[ "Apache-2.0" ]
2
2021-07-26T02:35:56.000Z
2021-07-26T02:35:57.000Z
homeassistant/components/plex/server.py
rotdrop/home-assistant-core
f7c4900d5c22da8aba35258a66a89e4e68cc7c60
[ "Apache-2.0" ]
6
2020-11-08T19:40:10.000Z
2022-03-01T11:11:07.000Z
homeassistant/components/plex/server.py
rotdrop/home-assistant-core
f7c4900d5c22da8aba35258a66a89e4e68cc7c60
[ "Apache-2.0" ]
3
2016-10-03T20:14:06.000Z
2019-04-19T15:56:56.000Z
"""Shared class to maintain Plex server instances.""" import logging import ssl import time from urllib.parse import urlparse from plexapi.exceptions import BadRequest, NotFound, Unauthorized import plexapi.myplex import plexapi.playqueue import plexapi.server from requests import Session import requests.exceptions f...
35.86252
103
0.56663
4a09cfb7e9441566539a11de908440142ce44c1f
2,028
py
Python
esses/esses.py
mewbak/generative-art
cd8c61d469b781b50328e2c7c29fad27bfb17d73
[ "MIT" ]
null
null
null
esses/esses.py
mewbak/generative-art
cd8c61d469b781b50328e2c7c29fad27bfb17d73
[ "MIT" ]
null
null
null
esses/esses.py
mewbak/generative-art
cd8c61d469b781b50328e2c7c29fad27bfb17d73
[ "MIT" ]
null
null
null
import cairo import math import random import sys import os sys.path.append(os.path.abspath('..')) from lib import palettes from lib import colors def ess(ctx, x, y, width, height, color, line_width): tl = (x, y) bl = (x, y + height) tr = (x + width, y) br = (x + width, y + height) points = [tl, b...
32.190476
143
0.671598
4a09d063b71de90a0e995cf9d165d1b86d92cfde
11,651
py
Python
src/poetry/puzzle/solver.py
nazarepiedady/poetry
8b640886ee39aee4a6c3208f39febf368dc32953
[ "MIT" ]
null
null
null
src/poetry/puzzle/solver.py
nazarepiedady/poetry
8b640886ee39aee4a6c3208f39febf368dc32953
[ "MIT" ]
null
null
null
src/poetry/puzzle/solver.py
nazarepiedady/poetry
8b640886ee39aee4a6c3208f39febf368dc32953
[ "MIT" ]
null
null
null
from __future__ import annotations import time from collections import defaultdict from contextlib import contextmanager from typing import TYPE_CHECKING from typing import FrozenSet from typing import Tuple from typing import TypeVar from poetry.core.packages.dependency_group import MAIN_GROUP from poetry.mixology...
33.099432
88
0.57892
4a09d1eb38f24cffc0ac01dc4007294f3fb0f7ad
3,598
py
Python
qiskit_experiments/curve_analysis/standard_analysis/decay.py
jakelishman/qiskit-experiments
f4d23506ac5ea4af22721496d8d5c9bcb4562916
[ "Apache-2.0" ]
72
2021-02-24T19:28:51.000Z
2022-03-27T02:56:59.000Z
qiskit_experiments/curve_analysis/standard_analysis/decay.py
jakelishman/qiskit-experiments
f4d23506ac5ea4af22721496d8d5c9bcb4562916
[ "Apache-2.0" ]
509
2021-03-04T13:46:00.000Z
2022-03-31T18:09:16.000Z
qiskit_experiments/curve_analysis/standard_analysis/decay.py
jakelishman/qiskit-experiments
f4d23506ac5ea4af22721496d8d5c9bcb4562916
[ "Apache-2.0" ]
70
2021-02-24T19:21:39.000Z
2022-03-05T04:00:12.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
31.017241
100
0.603947
4a09d26db09f78eddfa51735dd4eb56f555711d7
3,934
py
Python
vyper/parser/context.py
PavelCore/vyper
4da7adf69e880902a5d702754a39d2100cb9bde5
[ "MIT" ]
null
null
null
vyper/parser/context.py
PavelCore/vyper
4da7adf69e880902a5d702754a39d2100cb9bde5
[ "MIT" ]
null
null
null
vyper/parser/context.py
PavelCore/vyper
4da7adf69e880902a5d702754a39d2100cb9bde5
[ "MIT" ]
null
null
null
from vyper.utils import ( MemoryPositions, is_varname_valid, ) from vyper.types import ( get_size_of_type ) from vyper.exceptions import ( VariableDeclarationException, ) from vyper.signatures.function_signature import ( VariableRecord, ) # Contains arguments, variables, etc class Context(): ...
37.826923
99
0.672089
4a09d28cdce9a8197051cb6f5f0b9e2a40b2153a
3,905
py
Python
examples/linear_model/plot_lasso_lars_ic.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
1
2020-12-03T16:35:55.000Z
2020-12-03T16:35:55.000Z
examples/linear_model/plot_lasso_lars_ic.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
2
2022-03-04T21:50:26.000Z
2022-03-05T02:52:19.000Z
examples/linear_model/plot_lasso_lars_ic.py
huzq/scikit-learn
f862129f36786acbae3d9f2d161bbb72d77b87ec
[ "BSD-3-Clause" ]
1
2020-02-16T05:40:12.000Z
2020-02-16T05:40:12.000Z
""" ============================================== Lasso model selection via information criteria ============================================== This example reproduces the example of Fig. 2 of [ZHT2007]_. A :class:`~sklearn.linear_model.LassoLarsIC` estimator is fit on a diabetes dataset and the AIC and the BIC crite...
32.815126
82
0.727017
4a09d2a19b11c88654049fdfc3606dfbbcb97a30
22,385
py
Python
dash/testing/browser.py
flovouin/dash
8edc3399bd7ded47f6546008f0e0696a734d98d3
[ "MIT" ]
1
2021-04-04T09:14:03.000Z
2021-04-04T09:14:03.000Z
dash/testing/browser.py
flovouin/dash
8edc3399bd7ded47f6546008f0e0696a734d98d3
[ "MIT" ]
null
null
null
dash/testing/browser.py
flovouin/dash
8edc3399bd7ded47f6546008f0e0696a734d98d3
[ "MIT" ]
1
2022-02-25T23:50:39.000Z
2022-02-25T23:50:39.000Z
# pylint: disable=missing-docstring import os import sys import time import logging import warnings import percy from selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from sel...
36.878089
88
0.596694
4a09d3af2e4b3b06866e84d41f42ec77c7ceb1d1
8,429
py
Python
utils/critics.py
leehe228/MAAC
c3256b1bad556eb4981858ac30bb2fc3483b3e0e
[ "MIT" ]
null
null
null
utils/critics.py
leehe228/MAAC
c3256b1bad556eb4981858ac30bb2fc3483b3e0e
[ "MIT" ]
null
null
null
utils/critics.py
leehe228/MAAC
c3256b1bad556eb4981858ac30bb2fc3483b3e0e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from itertools import chain class AttentionCritic(nn.Module): """ Attention network, used as critic for all agents. Each agent gets its own observation and action, and can also attend over the other agents' encoded o...
45.562162
147
0.581564
4a09d5408544b849a967218e0f617c3af0fbb105
2,771
py
Python
setup.py
JoranAngevaare/straxen
0b7cbfdceb4f5ef6f9eb0abea862118070331219
[ "BSD-3-Clause" ]
null
null
null
setup.py
JoranAngevaare/straxen
0b7cbfdceb4f5ef6f9eb0abea862118070331219
[ "BSD-3-Clause" ]
45
2021-09-16T13:54:04.000Z
2022-03-02T10:34:15.000Z
setup.py
JoranAngevaare/straxen
0b7cbfdceb4f5ef6f9eb0abea862118070331219
[ "BSD-3-Clause" ]
3
2022-01-13T16:06:25.000Z
2022-02-09T03:31:51.000Z
import setuptools def open_requirements(path): with open(path) as f: requires = [ r.split('/')[-1] if r.startswith('git+') else r for r in f.read().splitlines()] return requires # Get requirements from requirements.txt, stripping the version tags requires = open_requirements(...
42.630769
83
0.513894
4a09d636ee320da43498e5ffb9846a9e444a958d
169,908
py
Python
pandas/core/groupby.py
kantologist/pandas
607910b2a26ab7d7e94dd8ce02198631c8649513
[ "BSD-3-Clause" ]
1
2018-03-06T03:22:55.000Z
2018-03-06T03:22:55.000Z
pandas/core/groupby.py
wswsr/pandas
aedbd948938f7e9230a321eb49f6c789867ab2b6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/groupby.py
wswsr/pandas
aedbd948938f7e9230a321eb49f6c789867ab2b6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2018-08-05T22:51:23.000Z
2018-08-05T22:51:23.000Z
import types from functools import wraps, partial import numpy as np import datetime import collections import warnings import copy from textwrap import dedent from pandas.compat import ( zip, range, lzip, callable, map ) from pandas import compat from pandas.compat.numpy import function as nv from pandas.com...
33.565389
87
0.549821
4a09d6a205f75e174e585df4fb46c7dd76d1a6d5
5,062
py
Python
utils/transformations.py
Smilels/handtracking
edbabcbfdd2a624861410dcdf534c271a4bf9e3c
[ "Apache-2.0" ]
34
2020-07-10T02:37:10.000Z
2022-02-25T12:53:54.000Z
utils/transformations.py
Smilels/handtracking
edbabcbfdd2a624861410dcdf534c271a4bf9e3c
[ "Apache-2.0" ]
5
2020-07-22T11:26:28.000Z
2021-12-14T08:21:55.000Z
util/transformations.py
dejianwei/HigherA2J
655d993d4b835ec58396887a85b68ef506b5df9e
[ "MIT" ]
9
2020-07-10T18:02:10.000Z
2022-01-12T04:12:43.000Z
"""Provides different transformation methods on images. Copyright 2015 Markus Oberweger, ICG, Graz University of Technology <oberweger@icg.tugraz.at> This file is part of DeepPrior. DeepPrior is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
30.311377
97
0.647768
4a09d6b4766a9cdd738fc619b99883822cdecc44
1,339
py
Python
demo/demo_cell.py
anjuchamantha/cellyzer---CDR-data-analyzer
185f2a14e5901d839d027aeea5860efe6c24a68f
[ "MIT" ]
11
2020-04-03T10:53:59.000Z
2022-01-02T18:31:32.000Z
demo/demo_cell.py
anjuchamantha/cellyzer---CDR-data-analyzer
185f2a14e5901d839d027aeea5860efe6c24a68f
[ "MIT" ]
null
null
null
demo/demo_cell.py
anjuchamantha/cellyzer---CDR-data-analyzer
185f2a14e5901d839d027aeea5860efe6c24a68f
[ "MIT" ]
2
2020-07-01T06:21:48.000Z
2020-10-23T17:34:40.000Z
""" This is for manual testing the library """ import cellyzer as cz call_file_path = "demo_datasets/long_data/calls_.csv" antenna_file_path = "demo_datasets/test_data/antennas.csv" callDataSet = cz.read_call(call_file_path) cz.read_cell(antenna_file_path, call_csv_path=None) antennaDataSet = cz.read_cell(antenna_fil...
37.194444
104
0.775952
4a09d6ba80817ee25bfb998609df0ae282064b1f
714
py
Python
inbenta_api_signature/url.py
inbenta-products/api-signature-client-python
d27e15b55746cbb1732387e81fc6b64ebef26d6d
[ "MIT" ]
null
null
null
inbenta_api_signature/url.py
inbenta-products/api-signature-client-python
d27e15b55746cbb1732387e81fc6b64ebef26d6d
[ "MIT" ]
null
null
null
inbenta_api_signature/url.py
inbenta-products/api-signature-client-python
d27e15b55746cbb1732387e81fc6b64ebef26d6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """URL Parse functions.""" try: # Python 3 from urllib.parse import urlparse, unquote_plus, quote, parse_qs, quote_plus except ImportError: # Python 2 from urllib import quote, unquote_plus, quote_plus from urlparse import urlparse, parse_qs __all__ = ['urlparse', 'parse_q...
27.461538
82
0.627451
4a09d6fd43f384e8abd4b427478f7841347b781f
8,395
py
Python
glance/common/scripts/utils.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
glance/common/scripts/utils.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
glance/common/scripts/utils.py
bwLehrpool/glance
d4119be0543bdaefe78fc11e16c3a01b55aa9e3a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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 requ...
35.125523
79
0.640262
4a09d75351a1c74c248bb87889056c90e80e56c0
18,527
py
Python
tests/test_layout_objects.py
bcvandendool/crispy-bootstrap5
7f14ac490b6f0c28549d801a284b64f686271338
[ "MIT" ]
170
2020-11-27T12:40:14.000Z
2022-03-29T03:59:59.000Z
tests/test_layout_objects.py
bcvandendool/crispy-bootstrap5
7f14ac490b6f0c28549d801a284b64f686271338
[ "MIT" ]
68
2020-11-08T20:58:08.000Z
2022-03-17T20:24:08.000Z
tests/test_layout_objects.py
bcvandendool/crispy-bootstrap5
7f14ac490b6f0c28549d801a284b64f686271338
[ "MIT" ]
40
2021-02-08T04:58:15.000Z
2022-03-18T20:34:21.000Z
import random import pytest from crispy_forms.bootstrap import ( Accordion, AccordionGroup, Alert, AppendedText, FieldWithButtons, InlineCheckboxes, InlineField, InlineRadios, PrependedAppendedText, PrependedText, StrictButton, Tab, TabHolder, ) from crispy_forms.hel...
32.79115
88
0.591461
4a09d86e425cf690b981dc0f42bf5747f93f25f4
4,831
py
Python
tests/test_analysis/test_outliers/test_hist_outliers.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
326
2021-11-18T15:30:50.000Z
2022-03-31T09:44:15.000Z
tests/test_analysis/test_outliers/test_hist_outliers.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
305
2021-11-17T10:28:31.000Z
2022-03-31T18:05:03.000Z
tests/test_analysis/test_outliers/test_hist_outliers.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
29
2021-11-21T12:10:48.000Z
2022-03-31T22:55:06.000Z
import numpy as np import pytest from etna.analysis.outliers import get_anomalies_hist from etna.analysis.outliers.hist_outliers import compute_f from etna.analysis.outliers.hist_outliers import hist from etna.analysis.outliers.hist_outliers import v_optimal_hist @pytest.mark.parametrize( "series,bins_number,exp...
36.052239
115
0.519354
4a09d9c9918fd6a3815b091286b7310ca2e6f5f2
744
py
Python
2015/MAC0327/Desafios 1/aula5/p20.py
andredalton/bcc
188190e436615e2344d87b722856fa02e6eec9cc
[ "Apache-2.0" ]
1
2018-08-02T14:09:26.000Z
2018-08-02T14:09:26.000Z
2015/MAC0327/Desafios 1/aula5/p20.py
andredalton/bcc
188190e436615e2344d87b722856fa02e6eec9cc
[ "Apache-2.0" ]
null
null
null
2015/MAC0327/Desafios 1/aula5/p20.py
andredalton/bcc
188190e436615e2344d87b722856fa02e6eec9cc
[ "Apache-2.0" ]
1
2020-07-13T04:27:02.000Z
2020-07-13T04:27:02.000Z
__author__ = 'andre' def main(): n = int(raw_input()) bills = {} locations = {} for i in range(n): (bil, location, value) = raw_input().split() value = long(value) bills[bil] = {'location': location, 'money': value} try: locations[location] += value ...
25.655172
59
0.524194
4a09da20612bb903460dee2297e024ec117c2019
52,908
py
Python
instapy/unfollow_util.py
fierysolid/InstaPy
a944520b107e6501e1fc41255049ff330f7a1a42
[ "MIT" ]
null
null
null
instapy/unfollow_util.py
fierysolid/InstaPy
a944520b107e6501e1fc41255049ff330f7a1a42
[ "MIT" ]
null
null
null
instapy/unfollow_util.py
fierysolid/InstaPy
a944520b107e6501e1fc41255049ff330f7a1a42
[ "MIT" ]
null
null
null
""" Module which handles the follow features like unfollowing and following """ from datetime import datetime import os import random import json import csv import sqlite3 from math import ceil from .time_util import sleep from .util import delete_line_from_file from .util import scroll_bottom from .util import format...
40.295506
137
0.529977
4a09db321b692f935d854b8efe24680758a23081
3,671
py
Python
cliva_fl/utils/time_tracker.py
DataManagementLab/thesis-fl_client-side_validation
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
[ "MIT" ]
null
null
null
cliva_fl/utils/time_tracker.py
DataManagementLab/thesis-fl_client-side_validation
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
[ "MIT" ]
null
null
null
cliva_fl/utils/time_tracker.py
DataManagementLab/thesis-fl_client-side_validation
0f6a35d08966133e6a8c13a110b9307d91f2d9cb
[ "MIT" ]
null
null
null
from enum import unique import time from collections import defaultdict from typing import Dict, Optional class TimeTracker: def __init__(self): self.clear() self.init_timeframes() def start_timeframe(self, key): assert not self.timeframes[key].get('time_from'), 'Timeframe can not...
35.640777
138
0.61836
4a09db72cee4142de6183b2fcf508e0a14c2b7e5
1,105
py
Python
Module_01_Computer_Vision_Basics/1.4_Basic_Image_Processing/1.4.2_Rotation/rotation.py
CactusJackFX/PyImageSearch_Guru
01f5bce644b58848db029f72656002e21545bb10
[ "Apache-2.0" ]
2
2020-02-12T12:17:01.000Z
2021-01-07T02:31:18.000Z
Module_01_Computer_Vision_Basics/1.4_Basic_Image_Processing/1.4.2_Rotation/rotation.py
CactusJackFX/PyImageSearch_Guru
01f5bce644b58848db029f72656002e21545bb10
[ "Apache-2.0" ]
1
2020-03-22T06:33:10.000Z
2020-03-22T06:33:10.000Z
Module_01_Computer_Vision_Basics/1.4_Basic_Image_Processing/1.4.2_Rotation/rotation.py
CactusJackFX/PyImageSearch_Guru
01f5bce644b58848db029f72656002e21545bb10
[ "Apache-2.0" ]
3
2020-02-18T05:24:13.000Z
2020-09-21T06:58:58.000Z
# import the necessary packages import numpy as np import argparse import imutils import cv2 # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="Path to the image") args = vars(ap.parse_args()) # load the image and show it imag...
29.864865
74
0.717647
4a09dbc05386be205ec762b8ed6d3bbee6a83129
1,927
py
Python
python/GafferAppleseedUITest/__init__.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferAppleseedUITest/__init__.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferAppleseedUITest/__init__.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2015, Esteban Tovagliari. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribution...
45.880952
77
0.689673
4a09dc5094ef3c9586b964f43ce1c7754715a8a2
682
py
Python
ex076.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex076.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
ex076.py
jefernathan/Python
2f840a625e8d46d41ab36df07ef50ae15a03c5ab
[ "MIT" ]
null
null
null
# Crie um programa que tenha uma tupla única com nomes de produtos e seus respectivos preços, na sequência. No final, mostre uma listagem de preços, organizando os dados em forma tabular. pc_do_cev = 'Processador', 329,\ 'Memória ', 304,\ 'Placa mãe', 278,\ 'HD', 173,\ 'SSD', 224.5,\ 'Fonte', 169,\...
27.28
187
0.585044
4a09dd23289de16b18eebd4f67739846b48111c8
3,608
py
Python
tests/core/test_history.py
grdorin/mopidy
76db44088c102d7ad92a3fc6a15a938e66b99b0d
[ "Apache-2.0" ]
6,700
2015-01-01T03:57:59.000Z
2022-03-30T09:31:31.000Z
tests/core/test_history.py
grdorin/mopidy
76db44088c102d7ad92a3fc6a15a938e66b99b0d
[ "Apache-2.0" ]
1,141
2015-01-02T09:48:59.000Z
2022-03-28T22:25:30.000Z
tests/core/test_history.py
grdorin/mopidy
76db44088c102d7ad92a3fc6a15a938e66b99b0d
[ "Apache-2.0" ]
735
2015-01-01T21:15:50.000Z
2022-03-20T16:13:44.000Z
import unittest from mopidy.core import HistoryController from mopidy.internal.models import HistoryState, HistoryTrack from mopidy.models import Artist, Ref, Track class PlaybackHistoryTest(unittest.TestCase): def setUp(self): # noqa: N802 self.tracks = [ Track( uri="dummy1:...
31.929204
75
0.591186
4a09dda5258a969ae8834b9b982cfccc35dc8753
1,758
py
Python
aliyun-python-sdk-domain/aliyunsdkdomain/request/v20180129/SaveBatchTaskForDomainNameProxyServiceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-domain/aliyunsdkdomain/request/v20180129/SaveBatchTaskForDomainNameProxyServiceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-domain/aliyunsdkdomain/request/v20180129/SaveBatchTaskForDomainNameProxyServiceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.807692
94
0.754835
4a09dda58fc3f7e717b29f30374e3d9f0d4254d7
394
py
Python
pybitid/pysix.py
baby636/pybitid
e8be5cd387785576f1aa10863fc1356b0f38dc63
[ "MIT" ]
1
2021-07-18T07:48:16.000Z
2021-07-18T07:48:16.000Z
pybitid/pysix.py
baby636/pybitid
e8be5cd387785576f1aa10863fc1356b0f38dc63
[ "MIT" ]
null
null
null
pybitid/pysix.py
baby636/pybitid
e8be5cd387785576f1aa10863fc1356b0f38dc63
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Version: 0.0.4 Utils functions used for compatibility with Python 2.7 / 3.3 ''' ''' Encodes a unicode string in bytes (utf8 encoding) ''' def to_bytes(x): return x if bytes == str else x.encode() ''' Converts an integer to a bytes ''' i2b = chr if bytes == str else lambda x: bytes([x]) ''' Conv...
18.761905
60
0.662437
4a09de16f2f27450109daf5085b4f1ee881c2bc8
915
py
Python
blog_project/urls.py
bharathkumar-12/Blog-App
ffa280906ba3b0b40bdc3045ccd3f55bf8e7026f
[ "MIT" ]
1
2020-12-05T04:41:46.000Z
2020-12-05T04:41:46.000Z
blog_project/urls.py
bharathkumar-12/Blog-App
ffa280906ba3b0b40bdc3045ccd3f55bf8e7026f
[ "MIT" ]
null
null
null
blog_project/urls.py
bharathkumar-12/Blog-App
ffa280906ba3b0b40bdc3045ccd3f55bf8e7026f
[ "MIT" ]
null
null
null
"""blog_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
36.6
77
0.696175
4a09de8a1977d55b5b8e6e31e6de6d51e4e3798e
1,610
py
Python
tests/test_cumsum.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
tests/test_cumsum.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
tests/test_cumsum.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
25.15625
78
0.632298
4a09df831e64341b71255227c058d148cc118c84
6,059
py
Python
PyAlgorithm/Graph_Algorithm/depth_first_search.py
allenliuzihao/PyAlgorithm
0468f1fc90795d7524e8674aecbfbd2214b256a7
[ "MIT" ]
null
null
null
PyAlgorithm/Graph_Algorithm/depth_first_search.py
allenliuzihao/PyAlgorithm
0468f1fc90795d7524e8674aecbfbd2214b256a7
[ "MIT" ]
null
null
null
PyAlgorithm/Graph_Algorithm/depth_first_search.py
allenliuzihao/PyAlgorithm
0468f1fc90795d7524e8674aecbfbd2214b256a7
[ "MIT" ]
null
null
null
''' Implementation and applications for depth first search ''' from graph import Graph # for finding the strongest connected components in a graph finishing_time = 0 # for recording the current finishing time leader = None # for recording the current leader of the SCC ''' Given a node in the graph, find its de...
32.575269
128
0.674039
4a09e181cf221af2a8c9a479a514063386caa1d8
393
py
Python
akatsuki/akatsuki/wsgi.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
null
null
null
akatsuki/akatsuki/wsgi.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
8
2021-09-08T14:13:53.000Z
2021-09-09T02:12:44.000Z
akatsuki/akatsuki/wsgi.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
1
2021-08-29T05:17:43.000Z
2021-08-29T05:17:43.000Z
""" WSGI config for akatsuki project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
4a09e1c9a65ea7ac37b958d9ce8aab1a70b95d0a
15,920
py
Python
abc_smc.py
2piruben/BFM_multistate
daa098fa56fb4bc3be04f40fd96a1bc939b72687
[ "MIT" ]
null
null
null
abc_smc.py
2piruben/BFM_multistate
daa098fa56fb4bc3be04f40fd96a1bc939b72687
[ "MIT" ]
null
null
null
abc_smc.py
2piruben/BFM_multistate
daa098fa56fb4bc3be04f40fd96a1bc939b72687
[ "MIT" ]
null
null
null
import data_analysis as ed import numpy as np from scipy.stats import norm, uniform, multivariate_normal from scipy.optimize import minimize import sys,ast from random import choices,seed,random from tqdm import tqdm from p_tqdm import p_umap from functools import partial import models as md gamma = 300 # generic lab...
46.011561
144
0.629334
4a09e35bb7d0f0c0a070f51c2ed85db4b0429012
4,551
py
Python
pims/application.py
Cytomine-ULiege/pims
3c13f054be3ce9b6755428ccd9c5e0c1a8fb02d4
[ "Apache-2.0" ]
2
2022-01-19T08:58:12.000Z
2022-01-28T14:40:41.000Z
pims/application.py
Cytomine-ULiege/pims
3c13f054be3ce9b6755428ccd9c5e0c1a8fb02d4
[ "Apache-2.0" ]
18
2021-09-20T08:47:11.000Z
2022-03-14T15:51:37.000Z
pims/application.py
Cytomine-ULiege/pims
3c13f054be3ce9b6755428ccd9c5e0c1a8fb02d4
[ "Apache-2.0" ]
null
null
null
# * Copyright (c) 2020-2021. Authors: see NOTICE file. # * # * 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 ...
32.507143
86
0.692595
4a09e3b33b3f6a1b7f06c9d91f83c91374f58d63
2,014
py
Python
lyrebird/utils.py
huihuilong/lyrebird
732ad57850c64a1a1800d82027ebca1c9e18f5bf
[ "MIT" ]
null
null
null
lyrebird/utils.py
huihuilong/lyrebird
732ad57850c64a1a1800d82027ebca1c9e18f5bf
[ "MIT" ]
null
null
null
lyrebird/utils.py
huihuilong/lyrebird
732ad57850c64a1a1800d82027ebca1c9e18f5bf
[ "MIT" ]
null
null
null
import re import math import time import socket from contextlib import closing def convert_size(size_bytes): if size_bytes == 0: return "0B" size_name = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB") i = int(math.floor(math.log(size_bytes, 1024))) p = math.pow(1024, i) s = round(siz...
25.493671
73
0.612214
4a09e405288756e66437914a5c1318b28a623453
11,487
py
Python
monasca_tempest_tests/tests/api/test_dimensions.py
guilhermesteinmuller/monasca-tempest-plugin
e6eb044ba96164f8f089036291d5331382e33ccd
[ "Apache-2.0" ]
null
null
null
monasca_tempest_tests/tests/api/test_dimensions.py
guilhermesteinmuller/monasca-tempest-plugin
e6eb044ba96164f8f089036291d5331382e33ccd
[ "Apache-2.0" ]
null
null
null
monasca_tempest_tests/tests/api/test_dimensions.py
guilhermesteinmuller/monasca-tempest-plugin
e6eb044ba96164f8f089036291d5331382e33ccd
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP # (C) Copyright 2017 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
45.948
94
0.617916
4a09e4c1ccf4f501d39fa741af1916b7c1770e7b
758
py
Python
test/test_boxplot.py
G-linch/pyecharts
8cee0f9fd9800ea388b1199ec6ac4746dd8e5455
[ "MIT" ]
1
2019-07-02T18:45:29.000Z
2019-07-02T18:45:29.000Z
test/test_boxplot.py
G-linch/pyecharts
8cee0f9fd9800ea388b1199ec6ac4746dd8e5455
[ "MIT" ]
1
2019-08-16T06:20:23.000Z
2019-08-16T06:20:23.000Z
test/test_boxplot.py
G-linch/pyecharts
8cee0f9fd9800ea388b1199ec6ac4746dd8e5455
[ "MIT" ]
1
2021-02-02T02:57:59.000Z
2021-02-02T02:57:59.000Z
from unittest.mock import patch from nose.tools import eq_ from pyecharts.charts import Boxplot @patch("pyecharts.render.engine.write_utf8_html_file") def test_boxpolt_base(fake_writer): v1 = [ [850, 740, 900, 1070, 930, 850, 950, 980, 980, 880, 1000, 980], [960, 940, 960, 940, 880, 800, 850, 88...
29.153846
81
0.598945
4a09e4cc004a2bcca1be4208c7bc1bbe6a3d7756
3,603
py
Python
src/utils/load_values.py
jcraig0/AmeriFacts
1ebeb422ca2fce2663ed4fcc2731cbb4a84bf1d4
[ "MIT" ]
null
null
null
src/utils/load_values.py
jcraig0/AmeriFacts
1ebeb422ca2fce2663ed4fcc2731cbb4a84bf1d4
[ "MIT" ]
null
null
null
src/utils/load_values.py
jcraig0/AmeriFacts
1ebeb422ca2fce2663ed4fcc2731cbb4a84bf1d4
[ "MIT" ]
null
null
null
import zipfile import json import pandas import boto3 file = zipfile.ZipFile('2018/data/1_year_entire_sf/All_Geographies.zip') resolutions = { '040': 'State', '050': 'County', '500': 'Congressional_District' } columns = json.loads(open('columns.json').read()) items_dict = {resolution: [] for resolution in ...
44.481481
78
0.501249
4a09e4ef25c8e5be94efef7f83a99788036004ba
11,514
py
Python
tests/python/relay/test_pass_lazy_gradient_init.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/relay/test_pass_lazy_gradient_init.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2020-09-14T09:18:25.000Z
2020-09-24T03:28:18.000Z
tests/python/relay/test_pass_lazy_gradient_init.py
jacobpostman/incubator-tvm
fdef79d317d455eb5c9e9e86feb97416eb594690
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
27.744578
98
0.651381
4a09e5e8779ff1f34ca782443a5e8df7bf3176b0
22
py
Python
alertaclient/version.py
linuxtechie/python-alerta-client
cb6d344218d5b74b86f9e3f28f858853e05996f6
[ "MIT" ]
null
null
null
alertaclient/version.py
linuxtechie/python-alerta-client
cb6d344218d5b74b86f9e3f28f858853e05996f6
[ "MIT" ]
null
null
null
alertaclient/version.py
linuxtechie/python-alerta-client
cb6d344218d5b74b86f9e3f28f858853e05996f6
[ "MIT" ]
null
null
null
__version__ = '6.5.0'
11
21
0.636364
4a09e6da546c02d9b223037ec0c6498508d5658c
1,612
py
Python
pysimplegui/DemoPrograms/Demo_Matplotlib_PyLab.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Matplotlib_PyLab.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Matplotlib_PyLab.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import PySimpleGUI as sg import matplotlib import pylab matplotlib.use('TkAgg') """ Demonstrates one way of embedding PyLab figures into a PySimpleGUI window. """ # ------------------------------- PASTE YOUR PYLAB CODE HERE -------...
29.309091
93
0.593672
4a09e77a9784ff33f83d1b80e41305168a157cf4
634
py
Python
json.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
json.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
json.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
1
2021-12-06T04:03:32.000Z
2021-12-06T04:03:32.000Z
import collections from .types import ( is_primitive_type, ) def normalize_object_for_json(obj): if is_primitive_type(obj): return obj elif isinstance(obj, (collections.Sequence, collections.Set)): return [ normalize_object_for_json(value) for value in ...
25.36
84
0.616719
4a09e797b18e3112dcb311450d1cc0ad262dd643
1,004
py
Python
learnpy_ecourse/class6/ex2_list_to_dict.py
fallenfuzz/pynet
9624d83cca160fd325a34e838e4474c9b80fe2ab
[ "Apache-2.0" ]
528
2015-01-07T15:28:51.000Z
2022-03-27T09:45:37.000Z
learnpy_ecourse/class6/ex2_list_to_dict.py
fallenfuzz/pynet
9624d83cca160fd325a34e838e4474c9b80fe2ab
[ "Apache-2.0" ]
19
2015-07-01T23:52:27.000Z
2021-09-22T04:30:34.000Z
learnpy_ecourse/class6/ex2_list_to_dict.py
fallenfuzz/pynet
9624d83cca160fd325a34e838e4474c9b80fe2ab
[ "Apache-2.0" ]
555
2015-01-18T07:21:43.000Z
2022-03-20T21:25:22.000Z
#!/usr/bin/env python ''' Disclaimer - This is a solution to the below problem given the content we have discussed in class. It is not necessarily the best solution to the problem. In other words, I generally only use things we have covered up to this point in the class (with some exceptions which I will usually not...
21.826087
78
0.723108
4a09ea472d3066f9aaf557513cbd9bd4551533da
129,161
py
Python
pysnmp/INFORMANT-WMI-EXCHANGE.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/INFORMANT-WMI-EXCHANGE.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/INFORMANT-WMI-EXCHANGE.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module INFORMANT-WMI-EXCHANGE (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INFORMANT-WMI-EXCHANGE # Produced by pysmi-0.3.4 at Mon Apr 29 19:42:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
113.100701
9,365
0.763427
4a09ea63be4800f9d4aa4de9bf21541b651becbb
35,079
py
Python
scenedetect/video_manager.py
markbaumgarten/PySceneDetect
73ab482cb31e284295af73cb3d41c4e8f0e004dc
[ "BSD-3-Clause" ]
null
null
null
scenedetect/video_manager.py
markbaumgarten/PySceneDetect
73ab482cb31e284295af73cb3d41c4e8f0e004dc
[ "BSD-3-Clause" ]
null
null
null
scenedetect/video_manager.py
markbaumgarten/PySceneDetect
73ab482cb31e284295af73cb3d41c4e8f0e004dc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # PySceneDetect: Python-Based Video Scene Detector # --------------------------------------------------------------- # [ Site: http://www.bcastell.com/projects/PySceneDetect/ ] # [ Github: https://github.com/Breakthrough/PySceneDetect/ ] # [ Documentation: http://py...
42.831502
99
0.654865
4a09ead0646f73f25e4ff8f4c4e3c5918c22fdd4
854
py
Python
setup_1.py
KwonJiHun1/openSW
606cc3fb56d5afd8b89baa9c3bfef5f945a52348
[ "MIT" ]
243
2021-04-25T22:28:24.000Z
2022-03-31T13:15:35.000Z
setup_1.py
KwonJiHun1/openSW
606cc3fb56d5afd8b89baa9c3bfef5f945a52348
[ "MIT" ]
30
2021-06-30T18:57:24.000Z
2022-03-28T10:24:49.000Z
setup_1.py
KwonJiHun1/openSW
606cc3fb56d5afd8b89baa9c3bfef5f945a52348
[ "MIT" ]
40
2021-05-03T01:58:29.000Z
2022-03-27T13:22:12.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="retina-face", #pip install retina-face version="0.0.10", author="Sefik Ilkin Serengil", author_email="serengil@gmail.com", description="RetinaFace: Deep Face Detection Fr...
35.583333
117
0.669789
4a09eaf77c619fbec9c723f52cabb94b338bf79f
10,978
py
Python
plot_LAMR.py
ciodar/task-conditioned
be53eec1409932aeba59dd366471171fada3246b
[ "MIT" ]
21
2020-08-18T11:01:59.000Z
2022-03-12T22:49:26.000Z
plot_LAMR.py
java235567/yolo3-kaist
bf4f3154641af1674430bb209e23d0d4ebb2de9c
[ "MIT" ]
4
2021-01-02T04:06:29.000Z
2022-01-16T02:08:06.000Z
plot_LAMR.py
java235567/yolo3-kaist
bf4f3154641af1674430bb209e23d0d4ebb2de9c
[ "MIT" ]
9
2020-10-02T07:19:19.000Z
2022-03-25T10:12:15.000Z
import os import numpy as np import brambox.boxes as bbb import matplotlib.pyplot as plt import scipy.interpolate import glob filename_detection = 'results/detection_results.json' identify = lambda f: os.path.splitext("/".join(f.rsplit('/')[-3:]))[0] # parse ground truth from all videos in all sets ground_truth = bb...
45.741667
149
0.655493
4a09ebf2f57e5bba6bfbb2656275b34e45e4c869
1,116
py
Python
examples/callback_buttons.py
markelovstyle/vkbottle
b31da756a94b42836bcdc5aa88aaa4d868b5e929
[ "MIT" ]
null
null
null
examples/callback_buttons.py
markelovstyle/vkbottle
b31da756a94b42836bcdc5aa88aaa4d868b5e929
[ "MIT" ]
null
null
null
examples/callback_buttons.py
markelovstyle/vkbottle
b31da756a94b42836bcdc5aa88aaa4d868b5e929
[ "MIT" ]
null
null
null
# Example of sending and receiving an event after pressing the Callback button # Documentation: https://vk.cc/aC9JG2 import os import logging from vkbottle import Keyboard, Callback, GroupTypes, GroupEventType from vkbottle.bot import Bot, Message bot = Bot(os.environ["TOKEN"]) logging.basicConfig(level=logging.INFO...
31.885714
108
0.757168
4a09ec06be6063fa8ec930e61dbb45ac7f02f8a7
1,850
py
Python
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: HOST = "host" PORT = "port" USE_SSL = "use_ssl" USERNAME_PASSWORD = "username_password" class ConnectionSchema(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties"...
22.02381
59
0.510811
4a09ec2d2e3a8ffdcff4739418f912dd97ed6a06
15,876
py
Python
pytorch/function/train_partnet.py
densechen/CloserLook3D
3463aad1b5f20fd9cc10f9eb7cc1e781f36d68ea
[ "MIT" ]
null
null
null
pytorch/function/train_partnet.py
densechen/CloserLook3D
3463aad1b5f20fd9cc10f9eb7cc1e781f36d68ea
[ "MIT" ]
null
null
null
pytorch/function/train_partnet.py
densechen/CloserLook3D
3463aad1b5f20fd9cc10f9eb7cc1e781f36d68ea
[ "MIT" ]
null
null
null
""" Distributed training script for part segmentation with PartNet dataset """ import argparse import os import sys import time import json import random import numpy as np BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(ROOT_DIR) import torch from torchvisio...
41.669291
110
0.587176
4a09ece810422d1f75a6151d247458ea183962c9
120
py
Python
examples/djangoapp/urls.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
51
2015-04-01T14:53:46.000Z
2022-03-16T09:16:10.000Z
examples/djangoapp/urls.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
17
2015-02-04T11:25:02.000Z
2021-07-10T10:17:53.000Z
examples/djangoapp/urls.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
40
2015-01-13T23:38:01.000Z
2022-02-26T22:08:01.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^$', 'djangoapp.greeting.views.home'), )
17.142857
48
0.675
4a09ed3fca752841c743ad16cdb77ab603b1c442
2,378
py
Python
Cuatrimestres/1/TeoriadeControlI/python/superficie3d.py
chelizalde/DCA
34fd4d500117a9c0a75b979b8b0f121c1992b9dc
[ "MIT" ]
null
null
null
Cuatrimestres/1/TeoriadeControlI/python/superficie3d.py
chelizalde/DCA
34fd4d500117a9c0a75b979b8b0f121c1992b9dc
[ "MIT" ]
null
null
null
Cuatrimestres/1/TeoriadeControlI/python/superficie3d.py
chelizalde/DCA
34fd4d500117a9c0a75b979b8b0f121c1992b9dc
[ "MIT" ]
1
2021-03-20T12:44:13.000Z
2021-03-20T12:44:13.000Z
#!/usr/bin/env python from pylab import * from numpy import exp, abs, meshgrid, linspace, array, sin, cos, pi, sqrt from mpl_toolkits.mplot3d import Axes3D v0 = array([1, 1, 0]) eta = array([0.2, -0.2, 0]) r = linspace(0, 1, 300) p = linspace(0, 2*pi, 300) R, P = meshgrid(r, p) f = lambda r, p: r*cos(p) + 1 g = lam...
32.135135
117
0.530698
4a09ef96e341062ad13c68763d68eb151bf9f569
8,455
py
Python
sdk/marketplaceordering/azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/models/_models_py3.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/marketplaceordering/azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/models/_models_py3.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/marketplaceordering/azure-mgmt-marketplaceordering/azure/mgmt/marketplaceordering/models/_models_py3.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
32.270992
159
0.613838
4a09f0cabf541c3ee4479837273728e0026d672a
113
py
Python
gammapy/makers/tests/test_core.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
155
2015-02-25T12:38:02.000Z
2022-03-13T17:54:30.000Z
gammapy/makers/tests/test_core.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
3,131
2015-01-06T15:36:23.000Z
2022-03-31T17:30:57.000Z
gammapy/makers/tests/test_core.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
158
2015-03-16T20:36:44.000Z
2022-03-30T16:05:37.000Z
from gammapy.makers import MAKER_REGISTRY def test_maker_registry(): assert "Maker" in str(MAKER_REGISTRY)
18.833333
41
0.787611
4a09f1f27ddc875c4a4559827eff48a95ce172e6
459
py
Python
homework/day01/login.py
kellysan/oldboy
dc9aaa53b1af6007742cb09fb26b712a11e43bda
[ "Apache-2.0" ]
null
null
null
homework/day01/login.py
kellysan/oldboy
dc9aaa53b1af6007742cb09fb26b712a11e43bda
[ "Apache-2.0" ]
1
2019-05-21T22:53:13.000Z
2019-05-21T22:53:13.000Z
homework/day01/login.py
kellysan/oldboy
dc9aaa53b1af6007742cb09fb26b712a11e43bda
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # File Name: login # Description : # Author : SanYapeng # date: 2019-04-25 # Change Activity: 2019-04-25: import getpass count = 0 while count < 3: user_name = input("请输入您的姓名") user_password = input("请输入您的密码") if us...
19.956522
57
0.540305
4a09f22666f0840d806a6edb464d01416a3a5872
17,748
py
Python
ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
emcvipr/ambari
045e0d2ac94b8b81819d2efbfd7e1bddc67a7756
[ "Apache-2.0", "MIT" ]
1
2021-05-06T06:24:04.000Z
2021-05-06T06:24:04.000Z
ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
emcvipr/ambari
045e0d2ac94b8b81819d2efbfd7e1bddc67a7756
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-server/src/test/python/stacks/2.1/common/test_stack_advisor.py
emcvipr/ambari
045e0d2ac94b8b81819d2efbfd7e1bddc67a7756
[ "Apache-2.0", "MIT" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.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 use this ...
38.332613
186
0.628691
4a09f2de4df0c81dcdacdb539f4371b75f9073b3
967
py
Python
Scraping/SiteDownloader/site_downloader.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
12
2020-04-05T10:01:11.000Z
2022-02-05T08:11:54.000Z
Scraping/SiteDownloader/site_downloader.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
null
null
null
Scraping/SiteDownloader/site_downloader.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
6
2020-04-03T22:24:34.000Z
2022-01-28T12:22:34.000Z
import requests from bs4 import BeautifulSoup from requests import RequestException, HTTPError, ConnectionError, URLRequired, TooManyRedirects def download(url, tries=3): """ This function downloads a site using request and also has some functionality in place to catch exceptions and do retries if the...
32.233333
101
0.66908
4a09f3cd1bef3099c80dd932898789f087462a3b
19,591
py
Python
dev/Tools/Python/2.7.12/windows/Lib/site.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
2,557
2016-07-19T22:20:45.000Z
2022-01-25T10:53:35.000Z
build/cmd/win32/Python27/Lib/site.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
1,360
2016-07-20T02:06:42.000Z
2021-07-27T12:46:40.000Z
build/cmd/win32/Python27/Lib/site.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
645
2015-04-21T21:53:02.000Z
2022-03-29T05:36:14.000Z
"""Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * **************************************************************** In earlier versions of Python (up to 1.5a3), scripts or...
32.597338
84
0.613292
4a09f44bffdda96d18c0b7d56ab905d373164906
5,977
py
Python
archai/common/yaml_utils.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
archai/common/yaml_utils.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
archai/common/yaml_utils.py
shatadru99/archai
8501080f8ecc73327979c02387e02011efb4c335
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Mapping, MutableMapping, Any, Optional _PREFIX_NODE = '_copy' # for copy node content command (must be dict) _PREFIX_PATH = '_copy:' # for copy node value command (must be scaler) def resolve_all(root_d:MutableM...
38.56129
136
0.613518
4a09f466dc439e416bd2c8d09fa2d9a28b6b94e5
1,168
py
Python
aldryn_people/migrations/0005_auto_20150723_1508.py
what-digital/aldryn-people
0c00f7a7f1c259471959ae88088849386a245432
[ "BSD-3-Clause" ]
11
2015-01-01T18:31:02.000Z
2018-04-27T10:34:39.000Z
aldryn_people/migrations/0005_auto_20150723_1508.py
what-digital/aldryn-people
0c00f7a7f1c259471959ae88088849386a245432
[ "BSD-3-Clause" ]
139
2015-01-14T15:33:56.000Z
2018-12-18T15:49:49.000Z
aldryn_people/migrations/0005_auto_20150723_1508.py
what-digital/aldryn-people
0c00f7a7f1c259471959ae88088849386a245432
[ "BSD-3-Clause" ]
42
2015-01-16T17:25:03.000Z
2018-12-06T11:42:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('aldryn_people', '0004_auto_20150622_1606'), ] operations = [ ...
33.371429
176
0.638699
4a09f4b9df48867624b0c9191af9e1dc05874d32
1,563
py
Python
bot.py
CALO77103/spotify_download_bot
604032b4e18af859e7f6e1dad249014d29993e6a
[ "MIT" ]
null
null
null
bot.py
CALO77103/spotify_download_bot
604032b4e18af859e7f6e1dad249014d29993e6a
[ "MIT" ]
null
null
null
bot.py
CALO77103/spotify_download_bot
604032b4e18af859e7f6e1dad249014d29993e6a
[ "MIT" ]
null
null
null
import logging import os from command_handlers import send_spotify_songs from telegram import Update from telegram.ext import CallbackContext, CommandHandler, Updater logger = logging.getLogger(__name__) def setup_logging(): logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message...
24.809524
184
0.666027
4a09f4e45d55851fecea13344cc8a676bdf31864
3,643
py
Python
cvtlib/drawing.py
raikel/cvtlib
75a4b1922558491f4367ae655d1c386a5a5a6ccd
[ "MIT" ]
null
null
null
cvtlib/drawing.py
raikel/cvtlib
75a4b1922558491f4367ae655d1c386a5a5a6ccd
[ "MIT" ]
null
null
null
cvtlib/drawing.py
raikel/cvtlib
75a4b1922558491f4367ae655d1c386a5a5a6ccd
[ "MIT" ]
null
null
null
import cv2 from typing import Tuple import numpy as np class Drawer: TEXT_TOP = 0 TEXT_BOTTOM = 0 def __init__( self, box_color: Tuple[int, int, int] = (255, 0, 0), box_linewidth: int = 2, font_type: int = cv2.FONT_HERSHEY_SIMPLEX, font_color: Tuple[int, int, int]...
28.24031
72
0.513039
4a09f674a28026583ead63ae4b7abbff1e423d58
2,699
py
Python
examples/tour_examples/introjs_google_tour.py
adityasarin/SeleniumBase
419e4c52a9cffd140e01070eaae0e8326cfd6d8e
[ "MIT" ]
null
null
null
examples/tour_examples/introjs_google_tour.py
adityasarin/SeleniumBase
419e4c52a9cffd140e01070eaae0e8326cfd6d8e
[ "MIT" ]
1
2021-06-01T23:17:18.000Z
2021-06-01T23:17:18.000Z
examples/tour_examples/introjs_google_tour.py
adityasarin/SeleniumBase
419e4c52a9cffd140e01070eaae0e8326cfd6d8e
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): self.open('https://google.com') self.wait_for_element('input[title="Search"]') self.create_introjs_tour() # OR self.create_tour(theme="introjs") self.add_tour_step( "Click to b...
40.893939
79
0.615413
4a09f72c2f52a8ddda828f4b1ba487e14903da27
37,206
py
Python
saleor/graphql/attribute/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1,392
2021-10-06T15:54:28.000Z
2022-03-31T20:50:55.000Z
saleor/graphql/attribute/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
888
2021-10-06T10:48:54.000Z
2022-03-31T11:00:30.000Z
saleor/graphql/attribute/tests/test_utils.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
538
2021-10-07T16:21:27.000Z
2022-03-31T22:58:57.000Z
import graphene import pytest from ....attribute import AttributeInputType from ....page.error_codes import PageErrorCode from ....product.error_codes import ProductErrorCode from ...product.mutations.products import AttrValuesInput from ..utils import AttributeAssignmentMixin, validate_attributes_input @pytest.mark...
29.181176
88
0.604204
4a09f73491ccc0996b1d89b7accb0e4abbbe7470
3,567
py
Python
nailgun/nailgun/utils/expression_parser.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
nailgun/nailgun/utils/expression_parser.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/utils/expression_parser.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis, 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 ...
21.359281
78
0.565461
4a09f7d7e35316cfe9edbefc4f79b5a1b8b158c7
3,864
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_cookie.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_cookie.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_cookie.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Simple test suite for Cookie.py from test.test_support import run_unittest, run_doctest, check_warnings import unittest import Cookie class CookieTests(unittest.TestCase): # Currently this only tests SimpleCookie def test_basic(self): cases = [ { 'data': 'chips=ahoy; vienna=f...
39.030303
84
0.534679
4a09f88aa9d824501046708dc194bf9c00360ca0
3,712
py
Python
python/jittor/test/test_memory_profiler.py
Exusial/jittor
eca21d5bba5098bce4f492fa44908677b6e76588
[ "Apache-2.0" ]
2,571
2020-03-20T03:38:35.000Z
2022-03-31T08:20:05.000Z
python/jittor/test/test_memory_profiler.py
Exusial/jittor
eca21d5bba5098bce4f492fa44908677b6e76588
[ "Apache-2.0" ]
197
2020-03-20T04:11:47.000Z
2022-03-31T10:14:24.000Z
python/jittor/test/test_memory_profiler.py
Exusial/jittor
eca21d5bba5098bce4f492fa44908677b6e76588
[ "Apache-2.0" ]
284
2020-03-20T03:53:15.000Z
2022-03-28T07:20:32.000Z
# *************************************************************** # Copyright (c) 2021 Jittor. All Rights Reserved. # Maintainers: # Guoye Yang <498731903@qq.com> # Dun Liang <randonlang@gmail.com>. # # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this s...
34.691589
102
0.592403
4a09f8abde0dff4bdf15dbd3512b26c3e3a4ee9f
569
py
Python
talk_code.py
ADGEfficiency/energy-py-talk
c0a52bfaf64fac0ec9113736bd3ff9ba35dca3a5
[ "MIT" ]
null
null
null
talk_code.py
ADGEfficiency/energy-py-talk
c0a52bfaf64fac0ec9113736bd3ff9ba35dca3a5
[ "MIT" ]
null
null
null
talk_code.py
ADGEfficiency/energy-py-talk
c0a52bfaf64fac0ec9113736bd3ff9ba35dca3a5
[ "MIT" ]
null
null
null
import tensorflow as tf import energy_py with tf.Session() as sess: env = energy_py.make_env( env_id='battery', episode_length=288, dataset='example' ) agent = energy_py.make_agent( sess=sess, agent_id='dqn', env=env, total_steps=1000000 ) ...
21.074074
63
0.602812
4a09f8c7dba02a05cde4d531c8346b01006dc6c2
5,775
py
Python
PythonClient/agents/CAL_agent/perception/cal_network.py
NextTechLab/Conditional-Affordance-Learning
9460901717d3b1b0963bb64c3218f3d3d54695b6
[ "MIT" ]
9
2019-06-28T04:55:34.000Z
2021-04-08T20:41:23.000Z
PythonClient/agents/CAL_agent/perception/cal_network.py
indranil1997/Conditional-Affordance-Learning
9460901717d3b1b0963bb64c3218f3d3d54695b6
[ "MIT" ]
1
2019-07-12T01:33:20.000Z
2019-07-12T01:33:20.000Z
PythonClient/agents/CAL_agent/perception/cal_network.py
indranil1997/Conditional-Affordance-Learning
9460901717d3b1b0963bb64c3218f3d3d54695b6
[ "MIT" ]
5
2019-06-28T04:55:43.000Z
2020-11-28T03:48:42.000Z
import numpy as np import os, sys from PIL import Image import json import torch from torchvision import transforms from torch.autograd import Variable from .net import get_model #import imgaug as ia #import imgaug.augmenters as iaa BASE_PATH = os.path.abspath(os.path.join('.', '.')) MODEL_PATH = BASE_PATH + "/agents...
32.8125
140
0.559654
4a09f9b6cc6fc44a6d3ca36465bcb42dc2af344b
1,114
py
Python
components/contrib/_converters/ApacheParquet/to_TSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/contrib/_converters/ApacheParquet/to_TSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/contrib/_converters/ApacheParquet/to_TSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from kfp.components import InputPath, OutputPath, create_component_from_func def convert_apache_parquet_to_tsv( data_path: InputPath('ApacheParquet'), output_data_path: OutputPath('TSV'), ): '''Converts Apache Parquet to TSV. [Apache Parquet](https://parquet.apache.org/) Annotations: auth...
31.828571
164
0.684022
4a09f9bb6eed38db667b52080f5e4bed7f23377f
18,719
py
Python
pyscf/dft/test/test_xcfun.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
1
2017-03-03T02:12:08.000Z
2017-03-03T02:12:08.000Z
pyscf/dft/test/test_xcfun.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
null
null
null
pyscf/dft/test/test_xcfun.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
46.219753
112
0.566002
4a09f9ddb409d70b1aa006dd1d507c8e69ad7d96
6,476
py
Python
sdk/python/pulumi_azure_native/servicefabricmesh/v20180901preview/secret_value.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicefabricmesh/v20180901preview/secret_value.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicefabricmesh/v20180901preview/secret_value.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
41.780645
270
0.643144
4a09f9f11cac2da434e858d9ad15cde7dda97591
61
py
Python
eurostatapiclient/__init__.py
ckauth/eurostat-api-client
70c859881d50b3eca275434e2590ff7d76b290e9
[ "Apache-2.0" ]
null
null
null
eurostatapiclient/__init__.py
ckauth/eurostat-api-client
70c859881d50b3eca275434e2590ff7d76b290e9
[ "Apache-2.0" ]
null
null
null
eurostatapiclient/__init__.py
ckauth/eurostat-api-client
70c859881d50b3eca275434e2590ff7d76b290e9
[ "Apache-2.0" ]
null
null
null
from .client import EurostatAPIClient __version__ = "0.2.6"
15.25
37
0.770492
4a09fa11eea1291249d7bd8c21ec04f2968412f8
11,557
py
Python
sdk/search/azure-search-documents/azure/search/documents/_internal/_search_index_document_batching_client.py
sima-zhu/azure-sdk-for-python
a413dc783f0df7dc65e9c2ef9762fabff1708c4e
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/search/azure-search-documents/azure/search/documents/_internal/_search_index_document_batching_client.py
sima-zhu/azure-sdk-for-python
a413dc783f0df7dc65e9c2ef9762fabff1708c4e
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/azure/search/documents/_internal/_search_index_document_batching_client.py
sima-zhu/azure-sdk-for-python
a413dc783f0df7dc65e9c2ef9762fabff1708c4e
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typin...
39.043919
115
0.612962
4a09fa3d2d61095134b449bb18eef42cdbce6927
4,000
py
Python
kubernetes_asyncio/client/models/v1_secret_reference.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_secret_reference.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_secret_reference.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1SecretRe...
27.972028
124
0.575
4a09fb45b80e3c52a94cc553e9a4d0183123fd8c
4,138
py
Python
dmb/modeling/stereo/layers/bilateral_filter.py
jiaw-z/DenseMatchingBenchmark
177c56ca1952f54d28e6073afa2c16981113a2af
[ "MIT" ]
160
2019-11-16T13:59:21.000Z
2022-03-28T07:52:59.000Z
dmb/modeling/stereo/layers/bilateral_filter.py
jiaw-z/DenseMatchingBenchmark
177c56ca1952f54d28e6073afa2c16981113a2af
[ "MIT" ]
22
2019-11-22T02:14:18.000Z
2022-01-24T10:16:14.000Z
dmb/modeling/stereo/layers/bilateral_filter.py
jiaw-z/DenseMatchingBenchmark
177c56ca1952f54d28e6073afa2c16981113a2af
[ "MIT" ]
38
2019-12-27T14:01:01.000Z
2022-03-12T11:40:11.000Z
import torch import torch.nn as nn import math eps = 1e-12 class bilateralFilter(nn.Module): """ Args: kernel_size(int, tuple): bilateral filter kernel size sigma_image(int, float): the derivation of Image Gaussian distribution sigma_gaussian(int, float): the derivation of Disparity G...
41.79798
117
0.604157
4a09fb85a44d52cf38f077b25e027e6f65960266
3,895
py
Python
SoyNLP/soynlp/word/_pmi.py
ChoiSeEun/Korean-NLP-Visual
adee5e45f3472b969f45e6e2e991d88df0e49dcd
[ "Apache-2.0" ]
1
2021-11-05T10:18:43.000Z
2021-11-05T10:18:43.000Z
SoyNLP/soynlp/word/_pmi.py
ChoiSeEun/Korean-NLP-Visual
adee5e45f3472b969f45e6e2e991d88df0e49dcd
[ "Apache-2.0" ]
5
2021-11-04T10:23:39.000Z
2021-12-13T13:03:31.000Z
SoyNLP/soynlp/word/_pmi.py
ChoiSeEun/Korean-NLP-Visual
adee5e45f3472b969f45e6e2e991d88df0e49dcd
[ "Apache-2.0" ]
2
2021-09-29T10:52:05.000Z
2021-09-29T11:05:33.000Z
import numpy as np from scipy.sparse import diags from scipy.sparse import dok_matrix from sklearn.metrics import pairwise_distances from soynlp.utils import get_process_memory from soynlp.vectorizer import sent_to_word_context_matrix def pmi(x, min_pmi=0, alpha=0.0001, verbose=False): # convert x to probability m...
34.776786
93
0.615918
4a09fbb997c6a2bdd5ffe8ed6de36cdfb52fd65f
11,673
py
Python
pysnmp/P8541-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/P8541-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/P8541-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module P8541-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/P8541-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:26:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
107.091743
1,091
0.738799
4a09fc582e485334b41917768169097061f75475
1,199
py
Python
solutions/428_serialize_and_deserialize_n_ary_tree.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/428_serialize_and_deserialize_n_ary_tree.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/428_serialize_and_deserialize_n_ary_tree.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node(object): def __init__(self, val=None, children=None): self.val = val self.children = children """ class Codec: def serialize(self, root: 'Node') -> str: """Encodes a tree to a single string. :type root: Node :rtype: str ...
24.979167
60
0.506255
4a09fe1be7c50afd52b56e71dad2abb7af2299f9
1,224
py
Python
airflow_ml_dags/dags/email_alert.py
made-ml-in-prod-2021/muzaffarsoliyev
9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b
[ "MIT" ]
null
null
null
airflow_ml_dags/dags/email_alert.py
made-ml-in-prod-2021/muzaffarsoliyev
9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b
[ "MIT" ]
1
2021-06-14T17:49:21.000Z
2021-06-18T07:33:12.000Z
airflow_ml_dags/dags/email_alert.py
made-ml-in-prod-2021/muzaffarsoliyev
9b6c1bd4ec003a8dbf9b375df0e302f58a3e324b
[ "MIT" ]
null
null
null
from airflow.models import DAG from airflow.operators.python import PythonOperator from airflow.utils.dates import days_ago from airflow.utils.email import send_email from datetime import timedelta import os def notify_email(contextDict, **kwargs): title = "Airflow alert: file does not exist.".format(**c...
28.465116
77
0.626634
4a09ff5a5dd67b16c23be323f0b1e19190c0accc
12,842
py
Python
Packs/JoeSecurity/Integrations/JoeSecurity/JoeSecurity.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
1
2020-04-19T11:05:42.000Z
2020-04-19T11:05:42.000Z
Packs/JoeSecurity/Integrations/JoeSecurity/JoeSecurity.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
9
2021-02-08T20:51:18.000Z
2021-09-23T23:27:38.000Z
Packs/JoeSecurity/Integrations/JoeSecurity/JoeSecurity.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
1
2020-05-27T15:26:48.000Z
2020-05-27T15:26:48.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import time import shutil import requests from distutils.util import strtobool # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBAL VARS ''' BASE_URL = urljoin(demisto.par...
34.336898
119
0.616493
4a09ff7028017c9e2450b61afdbace6aa49157d5
3,186
py
Python
tests/test_upsampling.py
aoifemcdonagh/MINC_model_testing
87d72c9e75635afe3a5a5999141e0c6ecb087cac
[ "MIT" ]
1
2021-02-18T18:35:28.000Z
2021-02-18T18:35:28.000Z
tests/test_upsampling.py
aoifemcdonagh/MINC_model_testing
87d72c9e75635afe3a5a5999141e0c6ecb087cac
[ "MIT" ]
null
null
null
tests/test_upsampling.py
aoifemcdonagh/MINC_model_testing
87d72c9e75635afe3a5a5999141e0c6ecb087cac
[ "MIT" ]
1
2019-12-07T12:12:11.000Z
2019-12-07T12:12:11.000Z
import caffe import sys import skimage from material_segmentation import segment as resize, minc_plotting as minc_plot, minc_classify as minc_utils import matplotlib.pyplot as plt import numpy as np import matplotlib.image as mpimg SCALES = [1.0/np.sqrt(2), 1.0, np.sqrt(2)] # Define scales as per MINC paper def ups...
32.845361
127
0.630885
4a09ff93b016bcb5b07031f8d333958d28355816
274
py
Python
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
1
2018-03-01T02:42:52.000Z
2018-03-01T02:42:52.000Z
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
t_Modefied_file.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
# _*_coding=utf-8 _*_ import fileinput import re p = re.compile(r'http[s]?://[w]{3}\.baidu\.com') for line in fileinput.input(r'a.txt',inplace=1): if re.search(p,line) is not None: print line.strip()+'\n', else: print line, print 'hello world'
16.117647
49
0.605839
4a0a0151efa3ae1ef2340bc318f0de5200ff4f00
300
py
Python
juriscraper/opinions/united_states/state/hawapp.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
228
2015-01-23T04:41:39.000Z
2022-03-30T09:52:20.000Z
juriscraper/opinions/united_states/state/hawapp.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
331
2015-01-05T18:53:40.000Z
2022-03-29T23:43:30.000Z
juriscraper/opinions/united_states/state/hawapp.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
84
2015-01-03T01:19:21.000Z
2022-03-01T08:09:32.000Z
# Author: Michael Lissner # Date created: 2013-05-23 from juriscraper.opinions.united_states.state import haw class Site(haw.Site): def __init__(self, *args, **kwargs): super(Site, self).__init__(*args, **kwargs) self.court_id = self.__module__ self.target_id = "ICA"
23.076923
56
0.676667
4a0a018829b2712a72dc8382ed9fba5b3608941e
284
py
Python
async/python/thread.py
walk8243/language-study
9625cb1a25c2d9fa35ade53b7861aa6d59601196
[ "MIT" ]
null
null
null
async/python/thread.py
walk8243/language-study
9625cb1a25c2d9fa35ade53b7861aa6d59601196
[ "MIT" ]
null
null
null
async/python/thread.py
walk8243/language-study
9625cb1a25c2d9fa35ade53b7861aa6d59601196
[ "MIT" ]
null
null
null
import concurrent.futures import func tpe = concurrent.futures.ThreadPoolExecutor(max_workers=3) futures = [] for i in range(10): future = tpe.submit(func.sleep, 'sleep' + str(i+1), 3) futures.append(future) print([ future.result() for future in futures ]) tpe.shutdown()
20.285714
58
0.714789
4a0a01b8a6bcdd897adee1d5cf6cba982c20edba
1,832
py
Python
mediaviz/rotation.py
Tahsin-Mayeesha/network-viz
cb51a20071948b9b53a50224fbd10d8be42e8683
[ "MIT" ]
16
2018-07-02T18:18:37.000Z
2021-08-09T16:22:30.000Z
mediaviz/rotation.py
Tahsin-Mayeesha/network-viz
cb51a20071948b9b53a50224fbd10d8be42e8683
[ "MIT" ]
1
2019-02-28T20:37:30.000Z
2019-02-28T20:37:30.000Z
mediaviz/rotation.py
Tahsin-Mayeesha/network-viz
cb51a20071948b9b53a50224fbd10d8be42e8683
[ "MIT" ]
7
2018-06-11T16:37:22.000Z
2020-11-05T21:55:40.000Z
def _rotate(point, angle, origin = (0,0),unit = 'degree'): """Rotate a point counterclockwise by a given angle around a given origin. Angle can be both in radian or degree. Helper function for rotating a layout. Parameters ---------- point : tuple position in (x,y) form angle : float ...
30.032787
104
0.599345
4a0a03d43af80c76fb59ddd6c46987ace1d51e64
316
py
Python
HW3/hshioi_cloudmesh_ex3.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
HW3/hshioi_cloudmesh_ex3.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
HW3/hshioi_cloudmesh_ex3.py
futuresystems/465-git4hiroaki
bfd9068e0d074d7b6132844dc0f92780bf63bcb9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import cloudmesh start_txt = cloudmesh.shell("vm start --cloud=india --image=futuresystems/ubuntu-14.04 --flavor=m1.small") terminate_txt = cloudmesh.shell("vm delete --cloud=india hshioi_7 --force") f = open('hshioi_cloudmesh_ex3.txt','w') f.write(str(start_txt)+"\n"+str(terminate_txt) ) f.close()
39.5
106
0.740506
4a0a046d560aea4aef8cb1a159121711de8c8757
382
py
Python
kill_child_process_ejemplo.py
learsi1911/GAMA_pygmo_v13
227ff23a4fba78a14f45ea4058dc107e236281d8
[ "Apache-2.0" ]
null
null
null
kill_child_process_ejemplo.py
learsi1911/GAMA_pygmo_v13
227ff23a4fba78a14f45ea4058dc107e236281d8
[ "Apache-2.0" ]
null
null
null
kill_child_process_ejemplo.py
learsi1911/GAMA_pygmo_v13
227ff23a4fba78a14f45ea4058dc107e236281d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 16 14:03:15 2021 @author: 20210595 """ import psutil def on_terminate(proc): print("process {} terminated with exit code {}".format(proc, proc.returncode)) procs = psutil.Process().children() for p in procs: p.terminate() gone, alive = psutil.wait_procs(procs, ...
21.222222
82
0.683246
4a0a048c6bd31460b929fb3dbb9bab8590774703
4,661
py
Python
pyabc/transition/local_transition.py
wdwang/pyABC
65f85d97f20ac47df6a6d95cb373adba35738f57
[ "BSD-3-Clause" ]
null
null
null
pyabc/transition/local_transition.py
wdwang/pyABC
65f85d97f20ac47df6a6d95cb373adba35738f57
[ "BSD-3-Clause" ]
null
null
null
pyabc/transition/local_transition.py
wdwang/pyABC
65f85d97f20ac47df6a6d95cb373adba35738f57
[ "BSD-3-Clause" ]
null
null
null
import numpy.linalg as la import scipy as sp import pandas as pd from .base import Transition from scipy.spatial import cKDTree from .util import smart_cov from .exceptions import NotEnoughParticles import logging logger = logging.getLogger("LocalTransition") class LocalTransition(Transition): """ Local KDE ...
31.924658
74
0.566188
4a0a049ee39412240a6e411b990c176ae816125a
2,997
py
Python
configs/eftnet/E1_eft53_hmctrd27_whheatmap_v2l_2d5lr_wd4e4_s123_nos_04b_wm200_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/eftnet/E1_eft53_hmctrd27_whheatmap_v2l_2d5lr_wd4e4_s123_nos_04b_wm200_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/eftnet/E1_eft53_hmctrd27_whheatmap_v2l_2d5lr_wd4e4_s123_nos_04b_wm200_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='CenterNet', pretrained='./pretrain/darknet53.pth', backbone=dict( type='DarknetV3', layers=[1, 2, 8, 8, 4], inplanes=[3, 32, 64, 128, 256, 512], planes=[32, 64, 128, 256, 512, 1024], norm_cfg=dict(type='BN'), out_indices=(1...
29.97
86
0.643977
4a0a051d0208e7fb8ec1d6b6f32da5bc9b9fd251
1,850
py
Python
generator/contact.py
seredyan/AddressBook
155779116ed7e8ba27d472bce7799a40db3780ac
[ "Apache-2.0" ]
null
null
null
generator/contact.py
seredyan/AddressBook
155779116ed7e8ba27d472bce7799a40db3780ac
[ "Apache-2.0" ]
null
null
null
generator/contact.py
seredyan/AddressBook
155779116ed7e8ba27d472bce7799a40db3780ac
[ "Apache-2.0" ]
null
null
null
import random import string import os.path import json import jsonpickle from model.contact import Contact import getopt import sys import re try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 3 f = "data...
30.833333
127
0.671351
4a0a0595710110f0aff019429b30774d74484794
1,005
py
Python
djangorestproject/gameplay/migrations/0005_auto_20181016_1041.py
debu999/djangofundamentals
15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff
[ "Apache-2.0" ]
null
null
null
djangorestproject/gameplay/migrations/0005_auto_20181016_1041.py
debu999/djangofundamentals
15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff
[ "Apache-2.0" ]
null
null
null
djangorestproject/gameplay/migrations/0005_auto_20181016_1041.py
debu999/djangofundamentals
15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff
[ "Apache-2.0" ]
1
2019-08-22T09:13:41.000Z
2019-08-22T09:13:41.000Z
# Generated by Django 2.1.1 on 2018-10-16 02:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('gameplay', '0004_invitation'), ] operations = [ migrations.AlterField( ...
35.892857
118
0.599005
4a0a05d031edfe25ea94ef33a837b65519fd4e18
7,008
py
Python
GANs/Pix2Pix_Isola_et_al_2017/model.py
gonzrubio/ML_Papers
562f85c81b0afb8771708ff31063f722d838b9d2
[ "MIT" ]
6
2021-11-05T05:09:22.000Z
2022-03-10T03:32:30.000Z
GANs/Pix2Pix_Isola_et_al_2017/model.py
gonzrubio/ML_Papers
562f85c81b0afb8771708ff31063f722d838b9d2
[ "MIT" ]
null
null
null
GANs/Pix2Pix_Isola_et_al_2017/model.py
gonzrubio/ML_Papers
562f85c81b0afb8771708ff31063f722d838b9d2
[ "MIT" ]
1
2021-11-05T05:09:26.000Z
2021-11-05T05:09:26.000Z
"""Image-to-Image Translation with Conditional Adversarial Networks. Paper: https://arxiv.org/abs/1611.07004 Created on Thu Nov 18 17:34:38 2021 @author: gonzr """ import torch import torch.nn as nn DEVICE = "cuda:0" if torch.cuda.is_available() else "cpu" torch.cuda.empty_cache() def make_conv(in_size, out_si...
34.865672
79
0.560502