hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1496c663d0ed26c16029bf6c04ee101821ac3171
4,987
py
Python
creation/lib/cWParamDict.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
null
null
null
creation/lib/cWParamDict.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
3
2015-12-02T19:37:45.000Z
2016-01-20T03:21:48.000Z
creation/lib/cWParamDict.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
1
2015-12-01T23:02:41.000Z
2015-12-01T23:02:41.000Z
# # Project: # glideinWMS # # File Version: # # Description: # Frontend creation module # Classes and functions needed to handle dictionary files # created out of the parameter object # # Common functions for cvWParamDict and cgWParamDict # import os.path import string import cWConsts def is_true(s): ""...
42.262712
122
0.632444
5b86222358959ad27334e324459b5fae2b353a81
432
py
Python
apps/zones/signals.py
Naz758/GITS-zones
d4bf07ba72464c79c0130814ac764c5af50b7739
[ "MIT" ]
null
null
null
apps/zones/signals.py
Naz758/GITS-zones
d4bf07ba72464c79c0130814ac764c5af50b7739
[ "MIT" ]
null
null
null
apps/zones/signals.py
Naz758/GITS-zones
d4bf07ba72464c79c0130814ac764c5af50b7739
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from .models import Profile @receiver(post_save, sender=User) def update_user_profile(sender, instance, created, **kwargs): if created: Profile.objects.create(user=instance) @...
25.411765
61
0.775463
573e2782cb13882177a9f1d0eafb44617c925ebe
583
py
Python
neuralmonkey/evaluators/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-24T21:10:03.000Z
2019-05-22T13:19:35.000Z
neuralmonkey/evaluators/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/evaluators/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-25T01:36:44.000Z
2019-12-13T15:04:03.000Z
from .accuracy import Accuracy, AccuracySeqLevel, AccuracyEvaluator from .average import AverageEvaluator from .beer import BeerWrapper from .bleu import BLEU1, BLEU4, BLEU, BLEUEvaluator from .chrf import ChrF3, ChrFEvaluator from .edit_distance import EditDistance, EditDistanceEvaluator from .f1_bio import BIOF1Score...
41.642857
67
0.84048
7e755269a5401861e0f497bee28c9c729068bee8
5,820
py
Python
docs/conf.py
jposada202020/Adafruit_CircuitPython_LPS35HW
2eb66bbb045b620c570221fb316811ab3d6e3205
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
docs/conf.py
jposada202020/Adafruit_CircuitPython_LPS35HW
2eb66bbb045b620c570221fb316811ab3d6e3205
[ "MIT", "MIT-0", "Unlicense" ]
3
2020-12-21T16:39:33.000Z
2021-09-27T16:46:14.000Z
docs/conf.py
jposada202020/Adafruit_CircuitPython_LPS35HW
2eb66bbb045b620c570221fb316811ab3d6e3205
[ "MIT", "MIT-0", "Unlicense" ]
3
2019-04-08T20:33:53.000Z
2021-04-24T22:46:00.000Z
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2019 Bryan Siepert, written for Adafruit Industries # # SPDX-License-Identifier: MIT import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names h...
29.693878
84
0.669244
693d26c663692f3906af3293008f77b888d31bee
1,210
py
Python
root2avro/tests/vectorULong.py
diana-hep/root2avro
0f8839dc3c94ebc24a2e1d13e893152e29acfabc
[ "Apache-2.0" ]
null
null
null
root2avro/tests/vectorULong.py
diana-hep/root2avro
0f8839dc3c94ebc24a2e1d13e893152e29acfabc
[ "Apache-2.0" ]
null
null
null
root2avro/tests/vectorULong.py
diana-hep/root2avro
0f8839dc3c94ebc24a2e1d13e893152e29acfabc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Jim Pivarski # # 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 la...
26.888889
161
0.609917
2f4f6673f091b0b05f0dfa6b1be62eea51bebf67
13,951
py
Python
tests/test_response.py
HENNGE/minisaml
d96aa5d294eee60521ad3c7084e8659b25935cee
[ "Apache-2.0" ]
2
2020-09-13T15:55:50.000Z
2021-01-07T07:40:24.000Z
tests/test_response.py
HENNGE/minisaml
d96aa5d294eee60521ad3c7084e8659b25935cee
[ "Apache-2.0" ]
11
2020-08-26T12:27:39.000Z
2021-11-17T16:10:00.000Z
tests/test_response.py
HENNGE/minisaml
d96aa5d294eee60521ad3c7084e8659b25935cee
[ "Apache-2.0" ]
1
2021-10-07T11:49:28.000Z
2021-10-07T11:49:28.000Z
import datetime import pytest from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.x509 import load_pem_x509_certificate from defusedxml.lxml import fromstring from minisignxml.config import VerifyConfig from minisignxml.errors import UnsupportedA...
32.672131
127
0.502975
e196b8f71537c4f5aaeeebae8b2a755cbcf90f0a
4,804
py
Python
tests/helpers.py
austinkeeley/CTFd
4dd828a3f2817165bb465d47edfc0d5a55116cce
[ "Apache-2.0" ]
5
2017-12-04T15:01:08.000Z
2021-10-04T16:30:59.000Z
tests/helpers.py
Hatuw/g2uc_CTFd
df19679cccc50bdfafff9f7e5319622b7d192577
[ "Apache-2.0" ]
1
2021-02-01T08:11:02.000Z
2021-02-01T08:11:02.000Z
tests/helpers.py
Hatuw/g2uc_CTFd
df19679cccc50bdfafff9f7e5319622b7d192577
[ "Apache-2.0" ]
2
2017-10-20T10:12:45.000Z
2018-10-03T17:48:21.000Z
from CTFd import create_app from CTFd.models import * from CTFd.utils import cache from sqlalchemy_utils import database_exists, create_database, drop_database from sqlalchemy.engine.url import make_url import datetime import six import gc if six.PY2: text_type = unicode binary_type = str else: text_type =...
28.426036
140
0.613239
344d0b85771a3d60530746e7f4caac0a5af1afae
34,427
py
Python
oss2/resumable.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
840
2015-12-07T04:00:04.000Z
2022-03-25T15:04:53.000Z
oss2/resumable.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
270
2016-01-11T01:55:46.000Z
2022-03-30T10:27:49.000Z
oss2/resumable.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
424
2015-12-05T12:26:04.000Z
2022-03-23T10:57:16.000Z
# -*- coding: utf-8 -*- """ oss2.resumable ~~~~~~~~~~~~~~ 该模块包含了断点续传相关的函数和类。 """ import os from . import utils from .utils import b64encode_as_string, b64decode_from_string from . import iterators from . import exceptions from . import defaults from . import http from . import models from .crypto_bucket import Cryp...
38.040884
131
0.618178
069d961d80d00430b03ceba2e6f89edc50499fdd
11,075
py
Python
BBB-firmware/u-boot-v2018.05-rc2/tools/microcode-tool.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2018-09-28T04:33:26.000Z
2021-03-10T06:29:55.000Z
BBB-firmware/u-boot-v2018.05-rc2/tools/microcode-tool.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2016-08-30T11:30:25.000Z
2020-12-27T09:58:07.000Z
BBB-firmware/u-boot-v2018.05-rc2/tools/microcode-tool.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
2
2016-12-30T08:02:57.000Z
2020-05-16T05:59:30.000Z
#!/usr/bin/env python2 # # Copyright (c) 2014 Google, Inc # # SPDX-License-Identifier: GPL-2.0+ # # Intel microcode update tool from optparse import OptionParser import os import re import struct import sys MICROCODE_DIR = 'arch/x86/dts/microcode' class Microcode: """Holds information about the microcode fo...
34.827044
90
0.564515
18458335d194f30a2c36e1a004f84080c290b8ce
1,566
py
Python
Python/integer-to-english-words.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/integer-to-english-words.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/integer-to-english-words.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
# Time: O(logn) = O(1), n is the value of the integer, which is less than 2^31 - 1 # Space: O(1) class Solution(object): def numberToWords(self, num): """ :type num: int :rtype: str """ if num == 0: return "Zero" lookup = {0: "Zero", 1:"One"...
34.8
99
0.436782
363a4cd4b8906fe1af2a3d85aeb4403b85284ff6
5,312
py
Python
redux/mods/games/TicTacToe.py
PanjaCo/Redux-Bot
15f4410b3cff137785028b0df4e27258ecad1a04
[ "MIT" ]
1
2018-02-18T04:05:18.000Z
2018-02-18T04:05:18.000Z
redux/mods/games/TicTacToe.py
iPanja/Redux-Bot
15f4410b3cff137785028b0df4e27258ecad1a04
[ "MIT" ]
null
null
null
redux/mods/games/TicTacToe.py
iPanja/Redux-Bot
15f4410b3cff137785028b0df4e27258ecad1a04
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import time, math from pprint import pprint class TicTacToe: def __init__(self, bot): self.bot = bot self.reset() def reset(self): self.state = 0 # 0 = Gameover, 1 = Player 1's Turn, 2 = Player 2's Turn self.board = [[0 for x in r...
37.146853
165
0.529744
72a4693969a12bda6bac2a1fecd9d5c22190a228
247
py
Python
dsp_python_imp/Ch02/sinusoid.py
xrick/Lcj-DSP-in-Python
f27ee7036dc0df41b96e0b06ed13bb8fd874a714
[ "MIT" ]
null
null
null
dsp_python_imp/Ch02/sinusoid.py
xrick/Lcj-DSP-in-Python
f27ee7036dc0df41b96e0b06ed13bb8fd874a714
[ "MIT" ]
null
null
null
dsp_python_imp/Ch02/sinusoid.py
xrick/Lcj-DSP-in-Python
f27ee7036dc0df41b96e0b06ed13bb8fd874a714
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt t = np.linspace( 0, 1, 1000, endpoint = False ) # 定義時間陣列 x = np.cos( 2 * np.pi * 5 * t ) # 產生弦波 plt.plot( t, x ) # 繪圖 plt.xlabel( 't (second)' ) plt.ylabel( 'Amplitude' ) plt.show( )
22.454545
56
0.595142
b2fe8918552fdb18ed17c4f5a85e7b677f21233a
534
py
Python
win32comext/shell/demos/shellexecuteex.py
zhanqxun/cv_fish
f78f4f5bdafb070c179efee8b9276719dfaef1d7
[ "Apache-2.0" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/win32comext/shell/demos/shellexecuteex.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/win32comext/shell/demos/shellexecuteex.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
4
2021-02-11T03:51:39.000Z
2021-02-12T05:10:43.000Z
from win32com.shell import shell, shellcon import win32con def ExplorePIDL(): pidl = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP) print "The desktop is at", shell.SHGetPathFromIDList(pidl) shell.ShellExecuteEx(fMask=shellcon.SEE_MASK_NOCLOSEPROCESS, nShow=win3...
33.375
71
0.601124
8caf1316be60d90e563850a1ef960d82062eadf9
4,463
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
1
2022-01-11T15:49:34.000Z
2022-01-11T15:49:34.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
5
2022-03-01T05:02:53.000Z
2022-03-23T16:09:15.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/api/fake_api_endpoints/array_of_enums.py
Laurens-W/openapi-generator
bcc77d4ac4d233759278b77f1d034d7e8088fe36
[ "Apache-2.0" ]
1
2022-03-20T14:46:48.000Z
2022-03-20T14:46:48.000Z
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 import functools # noqa: F401 from urllib3._collections import HTTPHeaderDict from petstore_api import api_client, exceptions imp...
26.724551
103
0.673538
59e12e628b21bc7e6f5b6f78616a3ece0e979824
780
py
Python
deromerchant/api_error.py
Peppinux/dero-merchant-python-sdk
58eb94d3916f6e8b95e27e4bcf25de798651a1ac
[ "MIT" ]
null
null
null
deromerchant/api_error.py
Peppinux/dero-merchant-python-sdk
58eb94d3916f6e8b95e27e4bcf25de798651a1ac
[ "MIT" ]
null
null
null
deromerchant/api_error.py
Peppinux/dero-merchant-python-sdk
58eb94d3916f6e8b95e27e4bcf25de798651a1ac
[ "MIT" ]
null
null
null
class APIError(Exception): """Exception that represents the error object returned by the API. Attributes: code: Integer of the error code returned by the API message: String of the error message returned by the API """ def __init__(self, code: int, message: str): """Inits APIEr...
30
70
0.598718
86038e5751126da4a6f5233b694a7301930cf58f
24,325
py
Python
lib/python3.6/site-packages/statsmodels/tsa/vector_ar/irf.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2019-07-11T02:23:18.000Z
2019-07-11T02:23:18.000Z
statsmodels/tsa/vector_ar/irf.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/vector_ar/irf.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Impulse reponse-related code """ from __future__ import division import numpy as np import numpy.linalg as la import scipy.linalg as L from statsmodels.tools.decorators import cache_readonly from statsmodels.tools.tools import chain_dot #from statsmodels.tsa.api import VAR from statsmode...
34.799714
118
0.528674
e2a727bf4b70b7b7a522ca5b2a6bf5a5599b1348
2,364
py
Python
podcast_player/podcast.py
aziezahmed/podcast-manager
2297cd278f5a824b14a0d1e2a46c4722999928f3
[ "MIT" ]
19
2017-12-15T08:48:20.000Z
2022-02-14T23:07:59.000Z
podcast_player/podcast.py
aziezahmed/podcast-manager
2297cd278f5a824b14a0d1e2a46c4722999928f3
[ "MIT" ]
6
2017-12-22T10:40:23.000Z
2021-02-15T08:47:34.000Z
podcast_player/podcast.py
aziezahmed/podcast-manager
2297cd278f5a824b14a0d1e2a46c4722999928f3
[ "MIT" ]
3
2018-12-06T13:45:47.000Z
2020-02-16T15:34:49.000Z
import datetime from dateutil.relativedelta import relativedelta class Podcast(object): """ Podcast model. """ def __init__(self, url, title=""): self.url = url self.title = title # NB: not needed in current model to bind to the podcast entries def __str__(self): ...
36.369231
145
0.626481
85e416d7b21079c8fb1d78618b523ca31bf35c59
2,936
py
Python
fahari/common/tests/test_views.py
savannahghi/mle
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
2
2021-09-14T07:14:27.000Z
2022-01-06T12:21:34.000Z
fahari/common/tests/test_views.py
savannahghi/fahari
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
1
2022-02-27T18:03:17.000Z
2022-02-27T18:03:17.000Z
fahari/common/tests/test_views.py
savannahghi/mle
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
2
2022-03-12T13:25:09.000Z
2022-03-21T08:44:33.000Z
import pytest from django.core.exceptions import PermissionDenied from django.urls import reverse from model_bakery import baker from rest_framework import status from fahari.common.models import Facility from fahari.common.serializers import FacilitySerializer from fahari.common.views import DRFSerializerExcelIOMixin...
34.139535
97
0.773161
bce406b8cb9b89d714dab7228937d409d22073fa
2,014
py
Python
website/doctest.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
869
2021-08-24T00:56:08.000Z
2022-03-31T06:13:58.000Z
website/doctest.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
277
2021-08-23T21:29:28.000Z
2022-03-31T23:54:46.000Z
website/doctest.py
imatiach-msft/SynapseML
8e7151bb690b9e2e5ad9f08c3cff2d0e9b836f9c
[ "MIT" ]
120
2021-08-24T15:49:14.000Z
2022-03-30T20:42:24.000Z
import io import os import re import sys def add_python_helper_to_markdown(folder, md, version): replacement = """<!-- ```python import pyspark import os import json from IPython.display import display from pyspark.sql.functions import * os.environ["PYSPARK_PYTHON"] = "python" os.environ["PYSPARK_DRIVER_PYTHON"...
30.984615
119
0.654419
e353ede35ba8b8250e0f4467eea60e2b46b408f1
112,864
py
Python
src/ttkbootstrap/icons.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
406
2021-04-04T10:58:14.000Z
2022-03-29T22:24:36.000Z
src/ttkbootstrap/icons.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
149
2021-03-26T12:45:41.000Z
2022-03-28T20:27:29.000Z
src/ttkbootstrap/icons.py
dmalves/ttkbootstrap
04d441c7a0cfbe6a2debea80c41994201dfc5562
[ "MIT" ]
52
2021-04-08T14:50:28.000Z
2022-03-27T15:23:41.000Z
""" A module various classes that can be used either in text as `Emoji` or in the tkinter.PhotoImage class as in `Icon`. """ class Icon: """A container class that contains base64 image attributes that can be used in the `PhotoImage` class using the `data` parameter. Attributes: icon (st...
52.962928
1,861
0.56763
cc3c4d45e9fc9f7396aa614edaf0504bbf899172
3,567
py
Python
tests/formatters/pe.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/pe.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/pe.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the PE event formatters.""" from __future__ import unicode_literals import unittest from plaso.formatters import pe from tests.formatters import test_lib class PECompilationTimeFormatterTest(test_lib.EventFormatterTestCase): """Tests for the PE compilat...
27.867188
73
0.740678
dca6de27b3aa5a02b1fa5119d1cc0e8a557bea9a
5,724
py
Python
test/unit/test_terracoiny_things.py
walkjivefly/sentinel
b0b82b2974fd1d950285e1845a6fe311cf0fb9ea
[ "MIT" ]
1
2018-01-18T18:52:41.000Z
2018-01-18T18:52:41.000Z
test/unit/test_terracoiny_things.py
walkjivefly/sentinel
b0b82b2974fd1d950285e1845a6fe311cf0fb9ea
[ "MIT" ]
1
2017-12-09T15:11:47.000Z
2017-12-29T16:47:10.000Z
test/unit/test_terracoiny_things.py
walkjivefly/sentinel
b0b82b2974fd1d950285e1845a6fe311cf0fb9ea
[ "MIT" ]
8
2017-12-01T18:01:43.000Z
2018-12-31T13:39:34.000Z
import pytest import sys import os os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../test_sentinel.conf')) sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../lib'))) @pytest.fixture def valid_terracoin_address(network='mainnet'): return 'mtHj...
40.595745
390
0.780573
46d29fa4dbf51782d4a9fa2fa0eee9fecf6e9121
1,763
py
Python
venv/lib/python3.5/site-packages/google/protobuf/__init__.py
kntoukakis/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
1
2015-11-01T00:16:41.000Z
2015-11-01T00:16:41.000Z
venv/lib/python3.5/site-packages/google/protobuf/__init__.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
12
2015-10-30T20:22:53.000Z
2016-02-09T21:56:17.000Z
venv/lib/python3.5/site-packages/google/protobuf/__init__.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
1
2020-11-04T05:01:17.000Z
2020-11-04T05:01:17.000Z
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
48.972222
72
0.779353
1d7195d3914c1b770c79ddd2a0e7d0243113b275
5,623
py
Python
backend/app/projectx/settings.py
emmawoollett/projectx
c061df01d581456884f46c2b8e3b478626501dec
[ "MIT" ]
null
null
null
backend/app/projectx/settings.py
emmawoollett/projectx
c061df01d581456884f46c2b8e3b478626501dec
[ "MIT" ]
null
null
null
backend/app/projectx/settings.py
emmawoollett/projectx
c061df01d581456884f46c2b8e3b478626501dec
[ "MIT" ]
null
null
null
""" Django settings for projectx project. For more information on this file, see https://docs.djangoproject.com/ """ import os from pathlib import Path import environ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) env ...
27.699507
91
0.6244
13b34215e8bed3f33372470f19a21bf819f96311
5,693
py
Python
harbor/datadog_checks/harbor/harbor.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
harbor/datadog_checks/harbor/harbor.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
harbor/datadog_checks/harbor/harbor.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from requests import HTTPError from datadog_checks.base import AgentCheck from .api import HarborAPI from .common import HEALTHY, VERSION_1_5, VERSION_1_8 CAN_CONNECT = 'harbor.can_connect' REGISTRY_STA...
44.476563
120
0.599333
db5cd3cc6311e690eca1fd13168cdb45dfa690de
2,653
py
Python
zipline/pipeline/loaders/blaze/buyback_auth.py
aricooperman/Jzipline
62d4878cccbe3b9ea71dc2013ca609fa4e9dc29f
[ "Apache-2.0" ]
null
null
null
zipline/pipeline/loaders/blaze/buyback_auth.py
aricooperman/Jzipline
62d4878cccbe3b9ea71dc2013ca609fa4e9dc29f
[ "Apache-2.0" ]
null
null
null
zipline/pipeline/loaders/blaze/buyback_auth.py
aricooperman/Jzipline
62d4878cccbe3b9ea71dc2013ca609fa4e9dc29f
[ "Apache-2.0" ]
null
null
null
from .core import ( SID_FIELD_NAME, TS_FIELD_NAME, ) from zipline.pipeline.data import BuybackAuthorizations from zipline.pipeline.loaders import BuybackAuthorizationsLoader from .events import BlazeEventsLoader from zipline.pipeline.loaders.buyback_auth import ( BUYBACK_ANNOUNCEMENT_FIELD_NAME, BUYBAC...
34.454545
78
0.720317
6a23d1716d8d7377863eb8c9ca666a259725c7d7
7,012
py
Python
tests/unit/ppr/test_search_query_result.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
null
null
null
tests/unit/ppr/test_search_query_result.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
10
2021-01-25T22:24:29.000Z
2021-12-17T21:40:15.000Z
tests/unit/ppr/test_search_query_result.py
doug-lovett/registry-schemas
3a54f4f1b2264f1f5e3ac060583914c117dd34b6
[ "Apache-2.0" ]
21
2021-01-25T22:27:45.000Z
2022-01-19T19:43:37.000Z
# Copyright © 2020 Province of British Columbia # # 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 agr...
28.620408
105
0.696805
cb4b055b97123621aaa66340a823aff33fe385ef
8,977
py
Python
mesonbuild/compilers/cpp.py
trhd/meson
ed8053c9258d3d96e355cc4843ba421d2f3c6eb3
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/cpp.py
trhd/meson
ed8053c9258d3d96e355cc4843ba421d2f3c6eb3
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/cpp.py
trhd/meson
ed8053c9258d3d96e355cc4843ba421d2f3c6eb3
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2017 The Meson development team # 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...
42.747619
114
0.552857
27fe137bd4df0fd3de1a9be70b64afbfc9c1bffd
1,012
py
Python
connector/insertmany.py
readingwritingcode/LearnSQL
d06c14789a0271029a3aac5b71d76f43ef706e5b
[ "MIT" ]
null
null
null
connector/insertmany.py
readingwritingcode/LearnSQL
d06c14789a0271029a3aac5b71d76f43ef706e5b
[ "MIT" ]
null
null
null
connector/insertmany.py
readingwritingcode/LearnSQL
d06c14789a0271029a3aac5b71d76f43ef706e5b
[ "MIT" ]
null
null
null
''' the following INSER statement allows you to insert multiple rows into the books table: INSER INTO(title, isbn) VALUES('title one', isbnone), ('titleTwo', isbnTwo), ('titleThree', isbNThree), ...; to insert multiple rows into a table in python, you use the executemany() method of the MySQLCursor ...
22.488889
87
0.606719
e342b2ce4485f1089d615f2ca37caf2cba3a099a
8,941
py
Python
libeaa/directory.py
pathakamit88/cli-eaa
31909695afc91464984dd4091908c2285e4d63d7
[ "Apache-2.0" ]
15
2020-01-14T17:20:53.000Z
2022-02-16T06:48:46.000Z
libeaa/directory.py
pathakamit88/cli-eaa
31909695afc91464984dd4091908c2285e4d63d7
[ "Apache-2.0" ]
8
2020-09-03T05:10:52.000Z
2022-03-31T17:33:44.000Z
libeaa/directory.py
pathakamit88/cli-eaa
31909695afc91464984dd4091908c2285e4d63d7
[ "Apache-2.0" ]
4
2020-04-15T16:45:04.000Z
2022-01-18T11:17:31.000Z
# Python modules from enum import Enum import logging import re import requests import datetime import time # cli-eaa modules import util from common import cli, BaseAPI, EAAItem class DirectoryAPI(BaseAPI): """ Interact with EAA directory configurations. """ # class DirectoryType(Enum): # Cl...
42.985577
118
0.565932
72f59bf0c249d2fdc61f1f4a49e6737804b44c40
882
py
Python
disorder2.py
chapman-phys227-2016s/hw-8-ChinmaiRaman
b46db07f7c2af547361e5b5a5b8248ee3fb22788
[ "MIT" ]
null
null
null
disorder2.py
chapman-phys227-2016s/hw-8-ChinmaiRaman
b46db07f7c2af547361e5b5a5b8248ee3fb22788
[ "MIT" ]
null
null
null
disorder2.py
chapman-phys227-2016s/hw-8-ChinmaiRaman
b46db07f7c2af547361e5b5a5b8248ee3fb22788
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ File: disorder2 Copyright (c) 2016 Chinmai Raman License: MIT Course: PHYS227 Assignment: 8.37 Date: April 26th, 2016 Email: raman105@mail.chapman.edu Name: Chinmai Raman Description: Implements a random walk class that can handle boundaries. THANK YOU MICHAEL!!!! """ from Particles import ...
22.05
93
0.636054
7081e4d064d55611b1dc1bc59c147da770a3d737
2,370
py
Python
interfacea/tests/test_interactions.py
JoaoRodrigues/minnie
6c370e613e1c28fdf0d2d8a800866231ecf86113
[ "Apache-2.0" ]
null
null
null
interfacea/tests/test_interactions.py
JoaoRodrigues/minnie
6c370e613e1c28fdf0d2d8a800866231ecf86113
[ "Apache-2.0" ]
null
null
null
interfacea/tests/test_interactions.py
JoaoRodrigues/minnie
6c370e613e1c28fdf0d2d8a800866231ecf86113
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 João Pedro Rodrigues # # 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 applicabl...
28.902439
74
0.665823
6df74ac1a343b64756f7403fa09770eb9d869edd
252
py
Python
manage.py
unt-libraries/serial-set-inventory
27d7884f396aa2aa90a7179d6423ffd6b5231121
[ "BSD-3-Clause" ]
4
2015-03-10T20:47:19.000Z
2017-05-23T22:06:05.000Z
manage.py
unt-libraries/serial-set-inventory
27d7884f396aa2aa90a7179d6423ffd6b5231121
[ "BSD-3-Clause" ]
51
2015-06-05T21:25:11.000Z
2020-07-22T14:41:58.000Z
manage.py
unt-libraries/serial-set-inventory
27d7884f396aa2aa90a7179d6423ffd6b5231121
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings.dev") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.909091
73
0.769841
37147f895079f1e73aca95e43f8aadb33e9bff7a
7,882
py
Python
fn_mcafee_esm/tests/test_mcafee_esm_query.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_mcafee_esm/tests/test_mcafee_esm_query.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_mcafee_esm/tests/test_mcafee_esm_query.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. """Tests using pytest_resilient_circuits""" from __future__ import print_function import pytest from mock import patch from resilient_circuits.util import get_function_definition from resilient_circuits import SubmitTestFunction, Functi...
65.683333
1,910
0.613042
1875f1ab4027a9ee7e468d74de51f0b45f57a2d8
64,334
py
Python
py/desispec/fluxcalibration.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
24
2015-09-29T06:06:29.000Z
2022-01-14T07:31:45.000Z
py/desispec/fluxcalibration.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
1,452
2015-02-26T00:14:23.000Z
2022-03-31T23:35:10.000Z
py/desispec/fluxcalibration.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
25
2015-02-06T21:39:13.000Z
2022-02-22T14:16:31.000Z
""" desispec.fluxcalibration ======================== Flux calibration routines. """ from __future__ import absolute_import import numpy as np from .resolution import Resolution from .linalg import cholesky_solve, cholesky_solve_and_invert, spline_fit from .interpolation import resample_flux from desiutil.log import g...
41.239744
186
0.649081
38e003265006d6d605fdbd35661be01b7e7b0701
2,038
py
Python
setup.py
drjeep/certbot-dns-softlayer
06b7a10e0dd48561091851ca17fb0972c2a2df5e
[ "Apache-2.0" ]
1
2019-03-24T20:11:15.000Z
2019-03-24T20:11:15.000Z
setup.py
drjeep/certbot-dns-softlayer
06b7a10e0dd48561091851ca17fb0972c2a2df5e
[ "Apache-2.0" ]
null
null
null
setup.py
drjeep/certbot-dns-softlayer
06b7a10e0dd48561091851ca17fb0972c2a2df5e
[ "Apache-2.0" ]
2
2020-06-30T11:34:05.000Z
2021-12-13T07:34:28.000Z
from setuptools import setup from setuptools import find_packages version = '0.26.0.dev0' # Remember to update local-oldest-requirements.txt when changing the minimum # acme/certbot version. install_requires = [ 'acme>=0.21.1', 'certbot>=0.21.1', 'softlayer==5.4.4', 'requests>=2.18.4', 'tld>=0.9'...
29.970588
80
0.610402
7e0818bcd53f9292704131b7ed9007502e7da8c5
2,751
py
Python
y/google-cloud-sdk/lib/googlecloudsdk/sql/tools/instances/reset_ssl_config.py
ychen820/microblog
d379afa2db3582d5c3be652165f0e9e2e0c154c6
[ "BSD-3-Clause" ]
null
null
null
y/google-cloud-sdk/lib/googlecloudsdk/sql/tools/instances/reset_ssl_config.py
ychen820/microblog
d379afa2db3582d5c3be652165f0e9e2e0c154c6
[ "BSD-3-Clause" ]
null
null
null
y/google-cloud-sdk/lib/googlecloudsdk/sql/tools/instances/reset_ssl_config.py
ychen820/microblog
d379afa2db3582d5c3be652165f0e9e2e0c154c6
[ "BSD-3-Clause" ]
2
2020-07-25T05:03:06.000Z
2020-11-04T04:55:57.000Z
# Copyright 2013 Google Inc. All Rights Reserved. """Deletes all certificates and generates a new server SSL certificate.""" from googlecloudsdk.calliope import base from googlecloudsdk.core import log from googlecloudsdk.sql import util class ResetSslConfig(base.Command): """Deletes all client certificates and ge...
32.75
79
0.699019
aafab55fe0548f59cab33ad790ef47979f06b901
2,391
py
Python
IMLearn/learners/regressors/polynomial_fitting.py
yam-fine/IML.HUJI
ac9237da1600d069625a0309efb209dfa3991267
[ "MIT" ]
null
null
null
IMLearn/learners/regressors/polynomial_fitting.py
yam-fine/IML.HUJI
ac9237da1600d069625a0309efb209dfa3991267
[ "MIT" ]
null
null
null
IMLearn/learners/regressors/polynomial_fitting.py
yam-fine/IML.HUJI
ac9237da1600d069625a0309efb209dfa3991267
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import NoReturn from . import LinearRegression from ...base import BaseEstimator import numpy as np class PolynomialFitting(BaseEstimator): """ Polynomial Fitting using Least Squares estimation """ def __init__(self, k: int) -> PolynomialFitting: ...
27.170455
83
0.570054
45ec0970a76386852a58ce29984936c4820e3559
1,893
py
Python
config/urls.py
agateblue/mnm
adf45c5f86611851ef3f51b60c30150095dba638
[ "MIT" ]
2
2021-02-09T06:49:24.000Z
2021-07-19T00:44:39.000Z
config/urls.py
agateblue/mnm
adf45c5f86611851ef3f51b60c30150095dba638
[ "MIT" ]
null
null
null
config/urls.py
agateblue/mnm
adf45c5f86611851ef3f51b60c30150095dba638
[ "MIT" ]
1
2021-06-07T10:39:07.000Z
2021-06-07T10:39:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views from m...
40.276596
110
0.686741
b66e70e243c84f7066baf6cab501a72c2d81c29a
29,252
py
Python
tests/unit/plugins/openstack/services/storage/test_cinder_common.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/services/storage/test_cinder_common.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/services/storage/test_cinder_common.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in...
41.433428
79
0.654724
4aa033ee07bcc7e8715c9ed1373e6335f1f88003
4,642
py
Python
tests/components/upnp/test_init.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/upnp/test_init.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/upnp/test_init.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
1
2020-09-23T16:41:16.000Z
2020-09-23T16:41:16.000Z
"""Test UPnP/IGD setup process.""" from ipaddress import ip_address from unittest.mock import MagicMock, patch from homeassistant.components import upnp from homeassistant.components.upnp.device import Device from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.setup import async_setup_componen...
34.385185
84
0.674494
0cc270ca9b78a48eb4bf8840fc8218458ebf2a5e
4,476
py
Python
util.py
lulor/project_vg
27b0c3b3038c5a666dde516a0a265ae8ddf2059f
[ "MIT" ]
1
2021-12-22T10:37:55.000Z
2021-12-22T10:37:55.000Z
util.py
lulor/project_vg
27b0c3b3038c5a666dde516a0a265ae8ddf2059f
[ "MIT" ]
null
null
null
util.py
lulor/project_vg
27b0c3b3038c5a666dde516a0a265ae8ddf2059f
[ "MIT" ]
2
2022-01-04T16:11:21.000Z
2022-01-07T17:28:23.000Z
import torch import shutil import os.path import numpy as np import random import logging import sos_loss def save_checkpoint(args, state, is_best, filename): model_path = os.path.join(args.output_folder, filename) torch.save(state, model_path) if is_best: shutil.copyfile(model_path, os.path.join(...
34.430769
106
0.672475
f3e4da7745c8e67f768846f8fc0b6a69663cacf6
1,458
py
Python
setup.py
CAIDA/pyipmeta
ae2e1b920013423fe237cefe6b467a3d4f5a4196
[ "BSD-2-Clause" ]
2
2021-05-17T11:02:48.000Z
2022-02-15T18:13:28.000Z
setup.py
CAIDA/pyipmeta
ae2e1b920013423fe237cefe6b467a3d4f5a4196
[ "BSD-2-Clause" ]
4
2019-10-30T22:05:56.000Z
2020-08-10T18:09:00.000Z
setup.py
CAIDA/pyipmeta
ae2e1b920013423fe237cefe6b467a3d4f5a4196
[ "BSD-2-Clause" ]
1
2021-09-24T18:03:09.000Z
2021-09-24T18:03:09.000Z
from setuptools import setup, Extension, find_packages _pyipmeta_module = Extension("_pyipmeta", libraries=["ipmeta"], sources=["src/_pyipmeta_module.c", "src/_pyipmeta_ipmeta.c", "src/...
37.384615
65
0.557613
72d4c2c284dc04851bee631b799ea55e615882a8
462
py
Python
mylang/__init__.py
vloginova/mybuild
59fcffdce789af55e45d46a035efaba759e0b3ff
[ "BSD-2-Clause" ]
null
null
null
mylang/__init__.py
vloginova/mybuild
59fcffdce789af55e45d46a035efaba759e0b3ff
[ "BSD-2-Clause" ]
null
null
null
mylang/__init__.py
vloginova/mybuild
59fcffdce789af55e45d46a035efaba759e0b3ff
[ "BSD-2-Clause" ]
null
null
null
""" Parser, compiler and runtime support for My-files. """ from __future__ import absolute_import __author__ = "Eldar Abusalimov" __date__ = "2013-07-30" from _compat import * def my_compile(source, filename='<unknown>', mode='exec'): try: from mylang.parse import my_parse except ImportError: ...
19.25
58
0.703463
7a36c772e6438ae3c87440bc4defb32be070ef97
21,870
py
Python
multitest_transport/util/file_util.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
multitest_transport/util/file_util.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
multitest_transport/util/file_util.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.165517
80
0.664243
63d62693560acc7df5fa7654f0b605282c67784f
1,542
py
Python
generator/group.py
werbk/task-7.21
80c0aac9b3fe2027ada21e060bc604133e81e5b4
[ "Apache-2.0" ]
null
null
null
generator/group.py
werbk/task-7.21
80c0aac9b3fe2027ada21e060bc604133e81e5b4
[ "Apache-2.0" ]
null
null
null
generator/group.py
werbk/task-7.21
80c0aac9b3fe2027ada21e060bc604133e81e5b4
[ "Apache-2.0" ]
null
null
null
from tests_group.group_helper import Group from fixture.TestBase import random_string import jsonpickle import os.path import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of groups", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 5 f = 'da...
33.521739
119
0.568742
c79b043e2af0b26c274029abf5c1b9ba241746e0
8,010
py
Python
tst/test/rdklib_util_evaluations_test.py
prakashar11/aws-config-rdklib
34a7aadb278abc1b1cc782cd26dfa30dde6b0a15
[ "Apache-2.0" ]
77
2020-03-02T07:50:08.000Z
2022-02-15T11:40:53.000Z
tst/test/rdklib_util_evaluations_test.py
prakashar11/aws-config-rdklib
34a7aadb278abc1b1cc782cd26dfa30dde6b0a15
[ "Apache-2.0" ]
17
2020-03-03T00:47:09.000Z
2022-01-29T06:14:48.000Z
tst/test/rdklib_util_evaluations_test.py
prakashar11/aws-config-rdklib
34a7aadb278abc1b1cc782cd26dfa30dde6b0a15
[ "Apache-2.0" ]
21
2020-03-02T06:16:22.000Z
2022-03-17T21:16:06.000Z
import json import unittest from unittest.mock import patch, MagicMock from rdklib.configrule import ConfigRule from rdklib.evaluation import ComplianceType, Evaluation CODE = __import__('evaluations') CLIENT_FACTORY = MagicMock() CLIENT_MOCK = MagicMock() def mock_get_client(*args, **kwargs): return CLIENT_MOCK...
61.145038
389
0.723346
1ffc75ec40bb72e7de32917ffa11e710d4c135e4
2,527
py
Python
src/python/venvtools.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
null
null
null
src/python/venvtools.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
null
null
null
src/python/venvtools.py
kairu-ms/autorest.az
c3370f3d4d394e580615d8d97df05515533b035e
[ "MIT" ]
1
2021-03-21T03:59:29.000Z
2021-03-21T03:59:29.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from conte...
33.693333
90
0.601504
f618f3ae7ff2d4af787c8748e2b76da2e6afcd4e
9,143
py
Python
p2_continuous-control/ddpg_agent.py
Wolmac/RL_Banana_Unity
ecffb43eb4211434acaae0251c33358f1e241e7f
[ "MIT" ]
null
null
null
p2_continuous-control/ddpg_agent.py
Wolmac/RL_Banana_Unity
ecffb43eb4211434acaae0251c33358f1e241e7f
[ "MIT" ]
null
null
null
p2_continuous-control/ddpg_agent.py
Wolmac/RL_Banana_Unity
ecffb43eb4211434acaae0251c33358f1e241e7f
[ "MIT" ]
null
null
null
import numpy as np import random import copy from collections import namedtuple, deque from model import Actor, Critic import torch import torch.nn.functional as F import torch.optim as optim BUFFER_SIZE = int(1e5) # replay buffer size BATCH_SIZE = 512 # minibatch size GAMMA = 0.99 # discount factor ...
41.184685
127
0.617522
0457c7b85a81c14c70bfcee0d6dafbf887b19054
3,085
py
Python
netgen/backends/ui.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
netgen/backends/ui.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
netgen/backends/ui.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
""" The UI back-end. """ from colorsys import hls_to_rgb from typing import Any from typing import Sequence from blessed import Terminal from pandas import DataFrame from netgen.backends.backend import BackEnd class UIBackEnd(BackEnd): """ The CSV back-end. """ def __init__(self, classes: Sequence[...
33.532609
118
0.541005
93afd38d22f12221e9c0eb715eab5bd163b58dee
4,997
py
Python
wagtail/core/management/commands/create_log_entries_from_revisions.py
thijskramer/wagtail
861a509b3219d8824c5d8b91932c6d3500096766
[ "BSD-3-Clause" ]
null
null
null
wagtail/core/management/commands/create_log_entries_from_revisions.py
thijskramer/wagtail
861a509b3219d8824c5d8b91932c6d3500096766
[ "BSD-3-Clause" ]
null
null
null
wagtail/core/management/commands/create_log_entries_from_revisions.py
thijskramer/wagtail
861a509b3219d8824c5d8b91932c6d3500096766
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from wagtail.core.models import PageLogEntry, PageRevision def get_comparison(page, revision_a, revision_b): comparison = page.get_edit_handler().get_comparison() comparison = [comp(revision_a, revision_b) for comp in comparison] comparison = [comp for ...
44.221239
113
0.557735
5a25ae86dd17fdb3b0730bc2651a130b757be4c3
10,731
py
Python
lib/rucio/tests/test_root_proxy.py
nataliaratnikova/rucio
4c7789bb9cdb824cc90b91fa0b66acf1b0fac128
[ "Apache-2.0" ]
1
2018-02-27T08:03:41.000Z
2018-02-27T08:03:41.000Z
lib/rucio/tests/test_root_proxy.py
greed2411/rucio
3e9a50ce1c3b062a0d048e7aa125ca8ce36fe78e
[ "Apache-2.0" ]
null
null
null
lib/rucio/tests/test_root_proxy.py
greed2411/rucio
3e9a50ce1c3b062a0d048e7aa125ca8ce36fe78e
[ "Apache-2.0" ]
null
null
null
''' Copyright European Organization for Nuclear Research (CERN) 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 Authors: - Mario Lassnig, <m...
60.286517
141
0.510297
3f1503a1bfc5673729a103ebfe13dae42daa48f1
700
py
Python
venv2/lib/python2.7/site-packages/model_utils/tests/fields.py
noemiGyorgy/swapi
dcd95f37d853296c17cdb1467bd7e71a8c5d82d1
[ "BSD-3-Clause" ]
1
2015-12-31T10:24:25.000Z
2015-12-31T10:24:25.000Z
venv2/lib/python2.7/site-packages/model_utils/tests/fields.py
noemiGyorgy/swapi
dcd95f37d853296c17cdb1467bd7e71a8c5d82d1
[ "BSD-3-Clause" ]
null
null
null
venv2/lib/python2.7/site-packages/model_utils/tests/fields.py
noemiGyorgy/swapi
dcd95f37d853296c17cdb1467bd7e71a8c5d82d1
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.six import with_metaclass, string_types class MutableField(with_metaclass(models.SubfieldBase, models.TextField)): def to_python(self, value): if value == '': return None try: if isinstance(value, string_types): ...
25.925926
76
0.607143
8a8d8cae3affd2847386eb874e0999f4eb3536c9
507
py
Python
flafl/exceptions.py
msleigh/flafl
99b27493d4cff39b4f758098aee683566316b3f6
[ "Apache-2.0" ]
null
null
null
flafl/exceptions.py
msleigh/flafl
99b27493d4cff39b4f758098aee683566316b3f6
[ "Apache-2.0" ]
null
null
null
flafl/exceptions.py
msleigh/flafl
99b27493d4cff39b4f758098aee683566316b3f6
[ "Apache-2.0" ]
null
null
null
"""Exceptions""" class InvalidUsage(Exception): """Badly-formed payload.""" status_code = 400 def __init__(self, message, status_code=None, payload=None): Exception.__init__(self) self.message = message self.status_code = status_code self.payload = payload def to_dic...
25.35
64
0.64497
72efc57c8d6a731efbf17b45fe3a15d808c70b5d
1,183
py
Python
OpenCV Drawing/opencv_text.py
kethan1/OpenCV-Python
727eaa6399e2cc7be6e4189da500015f18948ea5
[ "MIT" ]
null
null
null
OpenCV Drawing/opencv_text.py
kethan1/OpenCV-Python
727eaa6399e2cc7be6e4189da500015f18948ea5
[ "MIT" ]
null
null
null
OpenCV Drawing/opencv_text.py
kethan1/OpenCV-Python
727eaa6399e2cc7be6e4189da500015f18948ea5
[ "MIT" ]
null
null
null
import cv2 image = cv2.imread("../Images/RPi_Image.png") image = cv2.putText( image, "Test Text", (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1.5, (0, 0, 0), thickness=2 ) """ Parameters: ========== @param img Image. @param text Text string to be drawn. @param org Bottom-left corner of the text s...
26.288889
127
0.757396
ca72ac420c9b12e9ab536f19b576efd2e88258fc
8,523
py
Python
tests/benchmark/milvus_benchmark/utils.py
guoxiangzhou/milvus
7a8e49451fd9f4979adb2835e24a79b4e313c196
[ "Apache-2.0" ]
null
null
null
tests/benchmark/milvus_benchmark/utils.py
guoxiangzhou/milvus
7a8e49451fd9f4979adb2835e24a79b4e313c196
[ "Apache-2.0" ]
null
null
null
tests/benchmark/milvus_benchmark/utils.py
guoxiangzhou/milvus
7a8e49451fd9f4979adb2835e24a79b4e313c196
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time import logging import string import random import requests import json import os from yaml.representer import SafeRepresenter # from yaml import full_load, dump import yaml import tableprint as tp import config logger = logging.getLogger("milvus_benchmark.utils") def timestr_to_in...
30.548387
122
0.603895
7a55e549940d46436203adf9fa53cd3fcece0645
9,740
py
Python
airflow_client/test/test_task_collection.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_task_collection.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
null
null
null
airflow_client/test/test_task_collection.py
er1shivam/airflow-client-python
bf439f3f92b8248cb9f77adde250d4c4dbb860a9
[ "Apache-2.0" ]
1
2021-11-21T18:03:43.000Z
2021-11-21T18:03:43.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 u...
173.928571
8,160
0.760472
ac88980c0772ce883dc0eb58a918ba8db9769a2e
444
py
Python
foodpoll/polls_app/management/commands/fill_db.py
id2k1149/DjangoPollApp
6fa1735e72c5f1702fd07b623989dcb266e82099
[ "MIT" ]
null
null
null
foodpoll/polls_app/management/commands/fill_db.py
id2k1149/DjangoPollApp
6fa1735e72c5f1702fd07b623989dcb266e82099
[ "MIT" ]
null
null
null
foodpoll/polls_app/management/commands/fill_db.py
id2k1149/DjangoPollApp
6fa1735e72c5f1702fd07b623989dcb266e82099
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from polls_app.models import Restaurant, Menu class Command(BaseCommand): def handle(self, *args, **options): print("fill_db") restaurants = Restaurant.objects.all() for each in restaurants: print(each.name, each.id) ...
23.368421
61
0.635135
94fd63dc48f5e09c396a32090549079d7b379f05
30,532
py
Python
ardublocklyserver/local-packages/six.py
reacoda/ardublockly
d2dfd8886feeaf401b109fbf9fc21ef34e0468aa
[ "Apache-2.0" ]
null
null
null
ardublocklyserver/local-packages/six.py
reacoda/ardublockly
d2dfd8886feeaf401b109fbf9fc21ef34e0468aa
[ "Apache-2.0" ]
null
null
null
ardublocklyserver/local-packages/six.py
reacoda/ardublockly
d2dfd8886feeaf401b109fbf9fc21ef34e0468aa
[ "Apache-2.0" ]
null
null
null
"""Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2015 Benjamin Peterson # # 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, includin...
36.390942
99
0.645061
61fd8bfef8b1172049f3f1c444e1b484a516e921
1,898
py
Python
examples/advanced/adapt_tc.py
wilkinson/radical.entk
c73e031966f029bc401cfc23b15e1431112b6572
[ "MIT" ]
null
null
null
examples/advanced/adapt_tc.py
wilkinson/radical.entk
c73e031966f029bc401cfc23b15e1431112b6572
[ "MIT" ]
null
null
null
examples/advanced/adapt_tc.py
wilkinson/radical.entk
c73e031966f029bc401cfc23b15e1431112b6572
[ "MIT" ]
null
null
null
from radical.entk import Pipeline, Stage, Task, AppManager import os, sys # ------------------------------------------------------------------------------ # Set default verbosity if os.environ.get('RADICAL_ENTK_VERBOSE') == None: os.environ['RADICAL_ENTK_REPORT'] = 'True' CUR_NEW_STAGE=0 MAX_NEW_STAGE=4 def ge...
19.978947
80
0.571128
b5b51487417f8bf37febee6e08b2001afd1a9e17
3,049
py
Python
qt-creator-opensource-src-4.6.1/tests/system/suite_general/tst_remove_kits/test.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
qt-creator-opensource-src-4.6.1/tests/system/suite_general/tst_remove_kits/test.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
null
null
null
qt-creator-opensource-src-4.6.1/tests/system/suite_general/tst_remove_kits/test.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
############################################################################ # # Copyright (C) 2017 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # accordance with the co...
46.907692
93
0.691046
c59bcfec4321df6463cc759797b73821d680e2c5
2,181
py
Python
tests/test_cipher.py
caevh/pytube
188df3910567b55a208db906c571d610784d49da
[ "Unlicense" ]
1
2022-02-11T22:16:15.000Z
2022-02-11T22:16:15.000Z
tests/test_cipher.py
caevh/pytube
188df3910567b55a208db906c571d610784d49da
[ "Unlicense" ]
null
null
null
tests/test_cipher.py
caevh/pytube
188df3910567b55a208db906c571d610784d49da
[ "Unlicense" ]
null
null
null
import pytest from pytube import cipher from pytube.exceptions import RegexMatchError def test_map_functions(): with pytest.raises(RegexMatchError): cipher.map_functions("asdf") def test_get_initial_function_name_with_no_match_should_error(): with pytest.raises(RegexMatchError): cipher.get_...
24.233333
75
0.624484
f9f7de5d16107bd1ddf5e5ef2a9444d5725ca5db
1,045
py
Python
tests/setup_parser_test.py
wangsha/pipenv-setup
31a4f94fedefff3199b3cb2bc20db57d23e89726
[ "MIT" ]
1
2021-11-07T14:50:06.000Z
2021-11-07T14:50:06.000Z
tests/setup_parser_test.py
jshwi/pipenv-setup
e04bea675b7491504c9d42e6ce0dd33cbfa7fd11
[ "MIT" ]
32
2019-11-06T13:59:58.000Z
2022-03-18T17:16:00.000Z
tests/setup_parser_test.py
jshwi/pipenv-setup
e04bea675b7491504c9d42e6ce0dd33cbfa7fd11
[ "MIT" ]
null
null
null
import ast import pytest from pipenv_setup import setup_parser from .conftest import data A_TO_O = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", ] @pytest.mark.parametrize( ("setup_filename", "expected_returnee"), [ ...
21.326531
79
0.5311
43fa1c3e3771924065543a6101539326b7a4f861
3,776
py
Python
curiefense/curieconf/client/curieconf/confclient/__init__.py
xavier-rbz/curiefense
44200a90c515fe184e9c66ea662b2643adcbd34e
[ "Apache-2.0" ]
null
null
null
curiefense/curieconf/client/curieconf/confclient/__init__.py
xavier-rbz/curiefense
44200a90c515fe184e9c66ea662b2643adcbd34e
[ "Apache-2.0" ]
3
2022-02-24T09:58:32.000Z
2022-03-01T20:05:07.000Z
curiefense/curieconf/client/curieconf/confclient/__init__.py
xavier-rbz/curiefense
44200a90c515fe184e9c66ea662b2643adcbd34e
[ "Apache-2.0" ]
null
null
null
from simple_rest_client.api import API from simple_rest_client.resource import Resource def GET(url): return dict(method="GET", url=url) def POST(url): return dict(method="POST", url=url) def PUT(url): return dict(method="PUT", url=url) def DELETE(url): return dict(method="DELETE", url=url) class Con...
34.018018
90
0.536282
3de2e3d6ade6ae2abe85c86ebb5671a08518786c
3,415
py
Python
configs/_base_/models/3dssd.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
136
2021-06-03T06:37:56.000Z
2022-03-29T13:29:03.000Z
configs/_base_/models/3dssd.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
38
2021-06-05T12:41:30.000Z
2022-03-23T07:31:28.000Z
configs/_base_/models/3dssd.py
BB88Lee/mmdetection3d
62aeeadf70ac1229c595e3a4fe09d8a49df808f1
[ "Apache-2.0" ]
14
2021-06-04T11:37:32.000Z
2022-02-10T03:39:20.000Z
model = dict( type='SSD3DNet', backbone=dict( type='PointNet2SAMSG', in_channels=4, num_points=(4096, 512, (256, 256)), radii=((0.2, 0.4, 0.8), (0.4, 0.8, 1.6), (1.6, 3.2, 4.8)), num_samples=((32, 32, 64), (32, 32, 64), (32, 32, 32)), sa_channels=(((16, 16, 32), (...
38.370787
79
0.560761
82543ac02f9df8cb9a632636a511a35ac2c0c013
21,767
py
Python
pycolab/human_ui.py
BradNeuberg/pycolab
1bdc907aa1c0fc294013df79c86cf46ff4187d28
[ "Apache-2.0" ]
null
null
null
pycolab/human_ui.py
BradNeuberg/pycolab
1bdc907aa1c0fc294013df79c86cf46ff4187d28
[ "Apache-2.0" ]
null
null
null
pycolab/human_ui.py
BradNeuberg/pycolab
1bdc907aa1c0fc294013df79c86cf46ff4187d28
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 the pycolab 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
46.911638
80
0.69541
492bea6f3c7904a09da199b5be81aa49b96a39ca
8,260
py
Python
lib/helpers/animatedart.py
wsx79/script.module.metadatautils
86c6a2840ac1f734e21a8065e2c2e154c48d793e
[ "Apache-2.0" ]
18
2019-09-17T22:55:38.000Z
2022-03-31T08:16:28.000Z
lib/helpers/animatedart.py
wsx79/script.module.metadatautils
86c6a2840ac1f734e21a8065e2c2e154c48d793e
[ "Apache-2.0" ]
14
2019-03-26T04:23:51.000Z
2021-05-19T14:44:22.000Z
lib/helpers/animatedart.py
wsx79/script.module.metadatautils
86c6a2840ac1f734e21a8065e2c2e154c48d793e
[ "Apache-2.0" ]
23
2019-03-10T13:55:22.000Z
2021-12-02T20:42:06.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Retrieve animated artwork for kodi movies""" import os, sys if sys.version_info.major == 3: from .utils import get_json, DialogSelect, log_msg, ADDON_ID else: from utils import get_json, DialogSelect, log_msg, ADDON_ID import xbmc import xbmcvfs import xbmcgui impo...
43.246073
117
0.580993
06aed8473d42415e7b144978e538a6a54b93dfd0
10,488
py
Python
flask_unchained/cli.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
69
2018-10-10T01:59:11.000Z
2022-03-29T17:29:30.000Z
flask_unchained/cli.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
18
2018-11-17T12:42:02.000Z
2021-05-22T18:45:27.000Z
flask_unchained/cli.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
7
2018-10-12T16:20:25.000Z
2021-10-06T12:18:21.000Z
#!/usr/bin/env python3 """ This script replaces the default ``flask`` cli to use Flask Unchained's AppFactory USAGE: flask [--env=dev|prod|staging|test] [--no-warn] COMMAND <args> [OPTIONS] """ import argparse import flask.cli as flask_cli import functools import os import sys import time from traceback import format...
34.843854
82
0.645214
ce9a5c3acc3eb8b87b8c20102b35e68f31fe5059
732
py
Python
.history/chapter01/variable_02_20201121125115.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
.history/chapter01/variable_02_20201121125115.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
.history/chapter01/variable_02_20201121125115.py
KustomApe/nerdape
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
[ "MIT" ]
null
null
null
# 変数宣言 name = 'NerdApe' double_name = "KustomApe" twitter_id = 12345 faceBook = 1.23 # 文字列型 '文字' "文字" '1234' "1234" 'hogehoge' "I don't know your name." # 整数型 123456 # 浮動小数点型 1.23 4.56789 kata = 1.234 # print(type(kata)) # str(), int(), float() # 文字列型、整数型、浮動小数点型 # print()関数 # 関数はミニプログラムと考えてください # 演算子 # 足し算、引き...
9.891892
33
0.583333
218d7bb41af1298573697ebea2ee2d3ea868c4ec
2,779
py
Python
rosidl_adapter/test/test_cli_extensions.py
tsungchent/rosidl
caef9b8f820dfcb16e6a2df9118c5669cc816642
[ "Apache-2.0" ]
36
2017-04-04T16:53:54.000Z
2022-03-28T18:16:41.000Z
rosidl_adapter/test/test_cli_extensions.py
tsungchent/rosidl
caef9b8f820dfcb16e6a2df9118c5669cc816642
[ "Apache-2.0" ]
536
2015-03-04T23:13:03.000Z
2022-03-30T15:17:09.000Z
rosidl_adapter/test/test_cli_extensions.py
tsungchent/rosidl
caef9b8f820dfcb16e6a2df9118c5669cc816642
[ "Apache-2.0" ]
92
2015-01-02T01:38:42.000Z
2022-03-11T12:22:37.000Z
# Copyright 2021 Open Source Robotics Foundation, 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...
32.313953
74
0.601295
774b18bb55301ff7cc87a3754e13ebe991927806
1,138
py
Python
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeOrderInfoRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeOrderInfoRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-afs/aliyunsdkafs/request/v20180112/DescribeOrderInfoRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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 u...
37.933333
76
0.766257
8f29f351d0671b8253ca49f2b41b69ccfb3ae140
396
py
Python
src/newsletter/migrations/0002_auto_20201129_0933.py
Ameesha2001/Ekyam-scl-maxo
d9a8ec0e2d297d20fcf9139cfe50a7c814cdb2f5
[ "MIT" ]
10
2021-01-02T14:54:33.000Z
2022-02-09T07:11:05.000Z
src/newsletter/migrations/0002_auto_20201129_0933.py
Ameesha2001/Ekyam-scl-maxo
d9a8ec0e2d297d20fcf9139cfe50a7c814cdb2f5
[ "MIT" ]
2
2021-01-06T09:04:24.000Z
2021-01-08T06:20:34.000Z
src/newsletter/migrations/0002_auto_20201129_0933.py
Ameesha2001/Ekyam-scl-maxo
d9a8ec0e2d297d20fcf9139cfe50a7c814cdb2f5
[ "MIT" ]
8
2020-12-24T07:58:24.000Z
2022-01-04T15:22:30.000Z
# Generated by Django 3.1.3 on 2020-11-29 04:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newsletter', '0001_initial'), ] operations = [ migrations.AlterField( model_name='subscriber', name='email', ...
20.842105
65
0.60101
4e60594af449269c4cebdd56d354cdbf293b3285
5,032
py
Python
qiskit/aqua/algorithms/classical/exact_eigen_solver/exact_eigen_solver.py
l45k/qiskit-aqua
77589d5fa0da670c23a4f6730d8a5477c9b0d126
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/classical/exact_eigen_solver/exact_eigen_solver.py
l45k/qiskit-aqua
77589d5fa0da670c23a4f6730d8a5477c9b0d126
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/classical/exact_eigen_solver/exact_eigen_solver.py
l45k/qiskit-aqua
77589d5fa0da670c23a4f6730d8a5477c9b0d126
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
39.007752
100
0.630564
0b25472da2bb575a1b171a14f0434bf24eedea16
6,780
py
Python
app/_test/suite/ext.ows.provider/test_wfs.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/_test/suite/ext.ows.provider/test_wfs.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/_test/suite/ext.ows.provider/test_wfs.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
import gws.gis.shape import gws.gis.proj import gws.tools.json2 import gws.gis.extent import _test.util as u import _test.common.const as cc _REPROJECTION_ERROR_TOLERANCE = 10 def test_get_points_in_provider_projection(): x, y = cc.POINTS.ghana x, y = gws.gis.proj.transform_xy(x, y, cc.CRS_3857, cc.CRS_2583...
35.497382
135
0.587611
bc00103cf449106e44a82b433ceeae0280289d43
3,348
py
Python
python/showwhy-backend/showwhy_backend/shared_code/io/db.py
microsoft/showwhy
19d77a8992aadfd7b265da44aa83f4eb3342dea1
[ "MIT" ]
18
2021-12-10T15:34:44.000Z
2022-03-25T11:19:24.000Z
python/showwhy-backend/showwhy_backend/shared_code/io/db.py
microsoft/showwhy
19d77a8992aadfd7b265da44aa83f4eb3342dea1
[ "MIT" ]
2
2022-02-10T18:25:03.000Z
2022-02-16T20:39:37.000Z
python/showwhy-backend/showwhy_backend/shared_code/io/db.py
microsoft/showwhy
19d77a8992aadfd7b265da44aa83f4eb3342dea1
[ "MIT" ]
null
null
null
# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project. # import os from abc import ABC, abstractmethod from typing import Dict, List from azure.cosmos import CosmosClient, PartitionKey CONTAINER_NAME = "results" DB_NAME = "ShowWhyData" TI...
29.628319
83
0.630824
9fc38441de2d754242607dd6bf5c532045901a01
615
py
Python
third_party/typ/typ/version.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-12-29T03:17:40.000Z
2021-07-04T03:28:11.000Z
third_party/typ/typ/version.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-08-13T18:39:43.000Z
2021-08-13T18:39:43.000Z
third_party/typ/typ/version.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2017-12-05T07:15:08.000Z
2021-07-04T03:28:13.000Z
# Copyright 2014 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...
38.4375
74
0.757724
c64468efbe0552bd1ae739f82421d6017eb54ec3
1,329
py
Python
allauth/socialaccount/providers/basecamp/tests.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2016-12-22T18:40:40.000Z
2016-12-22T18:40:40.000Z
allauth/socialaccount/providers/basecamp/tests.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
allauth/socialaccount/providers/basecamp/tests.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2020-10-13T12:16:44.000Z
2020-10-13T12:16:44.000Z
from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import BasecampProvider class BasecampTests(OAuth2TestsMixin, TestCase): provider_id = BasecampProvider.id def get_mocked_response(self): return MockedResponse(200, """ ...
32.414634
66
0.44319
555168fde7ba6eee0cc35d76419784f553473871
5,966
py
Python
lib/galaxy/tools/toolbox/integrated_panel.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/tools/toolbox/integrated_panel.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/tools/toolbox/integrated_panel.py
mmiladi/galaxy
7857b152cd10d9490ac2433ff2905ca1a47ee32c
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import os import shutil import tempfile import time import traceback from xml.sax.saxutils import escape from .panel import ( panel_item_types, ToolPanelElements ) INTEGRATED_TOOL_PANEL_DESCRIPTION = """ This is Galaxy's integrated tool panel and should be modified directly only for reordering tools inside a ...
55.757009
168
0.631076
a3cbff55fd55b6f2a49d2124234be5456d43f2bc
380
py
Python
backend/api/app/urls.py
jhouser/houseoffun
a5a9dab377864d4da15f7ba64b505d2db3af34ef
[ "MIT" ]
null
null
null
backend/api/app/urls.py
jhouser/houseoffun
a5a9dab377864d4da15f7ba64b505d2db3af34ef
[ "MIT" ]
3
2018-03-31T09:52:03.000Z
2018-08-16T18:12:51.000Z
backend/api/app/urls.py
jhouser/houseoffun
a5a9dab377864d4da15f7ba64b505d2db3af34ef
[ "MIT" ]
1
2018-03-21T16:05:36.000Z
2018-03-21T16:05:36.000Z
from django.urls import path, include from rest_framework import routers from api.app import views router = routers.DefaultRouter() router.register(r'games', views.GameViewSet, 'games') router.register(r'users', views.UserViewSet, 'users') router.register(r'plugins', views.PluginViewSet, 'plugins') urlpatterns = [ ...
23.75
59
0.744737
63f8065cd6e1179b71596556533eda40d7f51c20
3,069
py
Python
setup.py
stjordanis/bsuite
0faf684c16fd3887126e3f157116abf71a73d154
[ "Apache-2.0" ]
1,337
2019-08-13T09:25:31.000Z
2022-03-28T14:30:04.000Z
setup.py
stjordanis/bsuite
0faf684c16fd3887126e3f157116abf71a73d154
[ "Apache-2.0" ]
37
2019-08-13T19:08:01.000Z
2021-05-20T15:32:06.000Z
setup.py
LaudateCorpus1/bsuite
afdeae850b08108d2247a1802567bb7f404d9833
[ "Apache-2.0" ]
194
2019-08-13T18:06:07.000Z
2022-03-24T05:50:10.000Z
# python3 # pylint: disable=g-bad-file-header # Copyright 2019 DeepMind Technologies Limited. 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...
29.228571
80
0.634409
c263635214e5419f965c6d5d3240e0f588bada08
2,642
py
Python
hypertransformer/tf/core/layerwise_defs.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
hypertransformer/tf/core/layerwise_defs.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
hypertransformer/tf/core/layerwise_defs.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.191781
80
0.703255
a36f2d6fce51c5c49d7dcb947c104104343863c3
5,943
py
Python
main.py
H2ydrogen/HCP_based_prediction
83ba02f1ddae0dccf73ad091178f62ceb23e121a
[ "Unlicense" ]
null
null
null
main.py
H2ydrogen/HCP_based_prediction
83ba02f1ddae0dccf73ad091178f62ceb23e121a
[ "Unlicense" ]
null
null
null
main.py
H2ydrogen/HCP_based_prediction
83ba02f1ddae0dccf73ad091178f62ceb23e121a
[ "Unlicense" ]
null
null
null
import logging import time from torch.utils.data import DataLoader import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torch import torch.nn.functional as functional import numpy as np from DTI import models, dataset, cli, utils, analyse import os device = torch.device('cuda:0...
34.958824
127
0.613495
3b43431d1ad64dacdfcd7df8389908db89d78543
12,834
py
Python
litex/build/xilinx/common.py
AEW2015/litex
2059e6530716fa2e3828f7a6dc37a54ddd77dc43
[ "ADSL" ]
null
null
null
litex/build/xilinx/common.py
AEW2015/litex
2059e6530716fa2e3828f7a6dc37a54ddd77dc43
[ "ADSL" ]
null
null
null
litex/build/xilinx/common.py
AEW2015/litex
2059e6530716fa2e3828f7a6dc37a54ddd77dc43
[ "ADSL" ]
null
null
null
# # This file is part of LiteX. # # Copyright (c) 2014-2015 Sebastien Bourdeauducq <sb@m-labs.hk> # Copyright (c) 2014-2020 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2016-2018 Robert Jordens <jordens@gmail.com> # Copyright (c) 2015 William D. Jones <thor0505@comcast.net> # SPDX-License-Identifier: BS...
29.30137
100
0.503584
bd27423d569312e7272148f0156ac776b14598e9
1,913
py
Python
bead/layout.py
cmrudolph/bead
4933d0985dfd5df1895db9d4b2bc8d5c4bfe3151
[ "MIT" ]
null
null
null
bead/layout.py
cmrudolph/bead
4933d0985dfd5df1895db9d4b2bc8d5c4bfe3151
[ "MIT" ]
2
2021-06-08T21:06:49.000Z
2022-03-12T00:20:08.000Z
bead/layout.py
cmrudolph/bead
4933d0985dfd5df1895db9d4b2bc8d5c4bfe3151
[ "MIT" ]
null
null
null
NONE_CODE = '---' class Layout: def __init__(self, file, width, height, values): self._file = file self._width = width self._height = height self._values = values @staticmethod def create_new(file, width, height): values = [None] * (width * height) values =...
25.851351
70
0.557763
54e0abbd1ec38b693c8baddffcb1b8399d94e26a
77,273
py
Python
python-package/lightgbm/basic.py
Ivanidzo4ka/LightGBM
3dc5716e16bfcce11ddb737373aa88677a5a543b
[ "MIT" ]
1
2021-01-03T09:24:35.000Z
2021-01-03T09:24:35.000Z
python-package/lightgbm/basic.py
hujunxianligong/LightGBM
3dc5716e16bfcce11ddb737373aa88677a5a543b
[ "MIT" ]
null
null
null
python-package/lightgbm/basic.py
hujunxianligong/LightGBM
3dc5716e16bfcce11ddb737373aa88677a5a543b
[ "MIT" ]
1
2018-07-20T08:29:45.000Z
2018-07-20T08:29:45.000Z
# coding: utf-8 # pylint: disable = invalid-name, C0111, C0301 # pylint: disable = R0912, R0913, R0914, W0105, W0201, W0212 """Wrapper c_api of LightGBM""" from __future__ import absolute_import import copy import ctypes import os import warnings from tempfile import NamedTemporaryFile import numpy as np import scipy...
38.772203
158
0.589494
fb4318c66cee46c907c612a24fecaf1088216920
3,012
py
Python
neodroidaudition/data/dsd100.py
cnheider/audition
fe65285d0c8befe2141bb0a2789b23e2e079e651
[ "Apache-2.0" ]
1
2021-12-17T01:46:31.000Z
2021-12-17T01:46:31.000Z
neodroidaudition/data/dsd100.py
cnheider/audition
fe65285d0c8befe2141bb0a2789b23e2e079e651
[ "Apache-2.0" ]
null
null
null
neodroidaudition/data/dsd100.py
cnheider/audition
fe65285d0c8befe2141bb0a2789b23e2e079e651
[ "Apache-2.0" ]
2
2021-01-31T14:58:08.000Z
2021-01-31T14:58:23.000Z
import random from pathlib import Path from typing import Tuple import torch import torch.utils.data as torchdata import torchaudio class DSD100(torchdata.Dataset): """ DSD100 dataset for audio source separation (2-stem) :param root: Path to the directory where the dataset is found. :param transforms: audiom...
33.098901
113
0.608898
6b3513af4590283f9f3c9d940568df13c2352dcf
92
py
Python
train.py
AdityaKane2001/wassatrial
6c95ad4e096cc9b53b37030d5be6a91ad2405e0d
[ "Apache-2.0" ]
null
null
null
train.py
AdityaKane2001/wassatrial
6c95ad4e096cc9b53b37030d5be6a91ad2405e0d
[ "Apache-2.0" ]
null
null
null
train.py
AdityaKane2001/wassatrial
6c95ad4e096cc9b53b37030d5be6a91ad2405e0d
[ "Apache-2.0" ]
null
null
null
from aditya import * from model import * print(aditya()) print(shantanu(34)) print(lstm())
13.142857
20
0.717391
0ff0ed26976f8d298c5fb3f0badb7664b38ed075
2,659
py
Python
readernaut.py
oscarduignan/pyreadernaut
6067c05d6a18886b7bf629739e2270fdca06c607
[ "BSD-3-Clause" ]
2
2015-07-07T22:10:34.000Z
2016-01-03T21:51:10.000Z
readernaut.py
oscarduignan/pyreadernaut
6067c05d6a18886b7bf629739e2270fdca06c607
[ "BSD-3-Clause" ]
null
null
null
readernaut.py
oscarduignan/pyreadernaut
6067c05d6a18886b7bf629739e2270fdca06c607
[ "BSD-3-Clause" ]
null
null
null
""" Simple python wrapper around the Readernaut.com API. Readernaut API information (http://groups.google.com/group/readernaut-api/web/restful-api-overview) """ import urllib import urllib2 from xml.etree import ElementTree as ET API_URL = "http://readernaut.com/api/v1/xml/%s/%s" def open_books_xml(username, cate...
30.918605
81
0.643475
e014b6e881e18e19a83b7cd24dd97e47f0b4fe97
2,076
py
Python
csvbar.py
tbij/csvbar
2a734f8a45d9eb6b3e6b83c3f87e28232b35d723
[ "Apache-2.0" ]
5
2016-05-13T20:26:08.000Z
2019-01-04T16:04:12.000Z
csvbar.py
maxharlow/csvbar
2a734f8a45d9eb6b3e6b83c3f87e28232b35d723
[ "Apache-2.0" ]
null
null
null
csvbar.py
maxharlow/csvbar
2a734f8a45d9eb6b3e6b83c3f87e28232b35d723
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import argparse import locale import csv import sys import io import os def main(): locale.setlocale(locale.LC_ALL, '') try: args = arguments() labels, data = read(args['FILE']) display(labels, data, args['width']) except BaseException as e: sys.exit(e) def argumen...
33.483871
132
0.611753
a41e70f3c976ecee172a3f62d41aecd5656edb3e
1,167
py
Python
bookmarks/tests/test_tags_model.py
ulixxe/linkding
dfb040bbb12ecf7542e20bd9323b6009e04d2304
[ "MIT" ]
1
2021-06-04T23:28:07.000Z
2021-06-04T23:28:07.000Z
bookmarks/tests/test_tags_model.py
ulixxe/linkding
dfb040bbb12ecf7542e20bd9323b6009e04d2304
[ "MIT" ]
null
null
null
bookmarks/tests/test_tags_model.py
ulixxe/linkding
dfb040bbb12ecf7542e20bd9323b6009e04d2304
[ "MIT" ]
null
null
null
from django.test import TestCase from bookmarks.models import parse_tag_string class TagTestCase(TestCase): def test_parse_tag_string_returns_list_of_tag_names(self): self.assertCountEqual(parse_tag_string('book, movie, album'), ['book', 'movie', 'album']) def test_parse_tag_string_respects_separat...
41.678571
110
0.727506
b93b4355fc5c515d225cd4ec5a2b164c3f5fd6da
1,240
py
Python
serversocket.py
vanbelle/CMPUT404-Lab2
cf97c52f778b41ef3f37905a8469a4f59fe67082
[ "Apache-2.0" ]
null
null
null
serversocket.py
vanbelle/CMPUT404-Lab2
cf97c52f778b41ef3f37905a8469a4f59fe67082
[ "Apache-2.0" ]
null
null
null
serversocket.py
vanbelle/CMPUT404-Lab2
cf97c52f778b41ef3f37905a8469a4f59fe67082
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import socket, os, sys, select serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serverSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serverSocket.bind(("0.0.0.0", 12345)) serverSocket.listen(5) while True: print "Waiting for connection..." (incomingSocket, addre...
22.545455
68
0.672581
4ebc80ea4bf698c637e1d48a4f67b81dd5374fb2
399
py
Python
e3/common/Node.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/common/Node.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/common/Node.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
class Node: hostname = None username = None key_file = None def __init__(self, hostname, username, key_file): self.hostname = hostname self.username = username self.key_file = key_file def __repr__(self): return self.__str__() def __str__(self): return ...
24.9375
93
0.62406
6959f9721ac1786d2f4ce97bb0fab1b8296748ea
510
py
Python
pyzeta/instances/maybesemigroup.py
victoradan/pythonZeta
6aac3087a9ad8b17c2006126f1f39a519dbc8463
[ "MIT" ]
null
null
null
pyzeta/instances/maybesemigroup.py
victoradan/pythonZeta
6aac3087a9ad8b17c2006126f1f39a519dbc8463
[ "MIT" ]
null
null
null
pyzeta/instances/maybesemigroup.py
victoradan/pythonZeta
6aac3087a9ad8b17c2006126f1f39a519dbc8463
[ "MIT" ]
null
null
null
from pyzeta.datatypes.maybe import Maybe, Just, Nothing, fold from pyzeta.typeclasses.semigroup import Semigroup, mappend from pyzeta.registry import register class MaybeSemigroup(Semigroup): @staticmethod def mappend(x, y): if x is Nothing: return y if y is Nothing: return x return J...
30
61
0.680392
bd35aca6875a65860ba920ed78d7ef3e31529204
2,202
py
Python
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.py
alexeykaplin/pipelines
df33255996b36b5c695f21d7ef33e09a74b95e1d
[ "Apache-2.0" ]
1
2021-10-23T00:39:47.000Z
2021-10-23T00:39:47.000Z
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.py
alexeykaplin/pipelines
df33255996b36b5c695f21d7ef33e09a74b95e1d
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.py
alexeykaplin/pipelines
df33255996b36b5c695f21d7ef33e09a74b95e1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 or agreed to in...
31.014085
80
0.705268
de1778bac569f793cb3fccd38da30372429c1e67
3,171
py
Python
pysumma/specworker/jobs.py
wknoben/pysumma
e118139c64f7c4c4d00e7ec80da869a935637987
[ "BSD-3-Clause" ]
9
2017-10-24T21:07:32.000Z
2021-11-18T22:03:05.000Z
pysumma/specworker/jobs.py
wknoben/pysumma
e118139c64f7c4c4d00e7ec80da869a935637987
[ "BSD-3-Clause" ]
52
2018-02-03T20:15:11.000Z
2021-11-11T12:38:30.000Z
pysumma/specworker/jobs.py
wknoben/pysumma
e118139c64f7c4c4d00e7ec80da869a935637987
[ "BSD-3-Clause" ]
19
2017-10-24T21:23:08.000Z
2021-07-21T21:41:55.000Z
from __future__ import absolute_import, print_function import os import time from pysumma.specworker import progress from pysumma.specworker import tasks __all__ = [] registered_images = ['ncar/summa', 'ncar/summa-test'] def get_invoker_id(): try: # Docker version 18.05.0-ce, build f150324 retu...
30.2
111
0.632608
113d54c7f8500dfc935097bd51b6d546945818bb
63
py
Python
run.py
tibetegya/WeConnect
6a36b51876479adf99874d91dd0bc765f4839dd6
[ "MIT" ]
1
2018-04-07T05:29:52.000Z
2018-04-07T05:29:52.000Z
run.py
tibetegya/WeConnect
6a36b51876479adf99874d91dd0bc765f4839dd6
[ "MIT" ]
3
2018-02-22T14:55:18.000Z
2018-04-03T00:22:47.000Z
run.py
tibetegya/WeConnect
6a36b51876479adf99874d91dd0bc765f4839dd6
[ "MIT" ]
4
2018-02-27T19:56:23.000Z
2018-03-24T12:46:56.000Z
from apis import app if __name__ == '__main__': app.run()
12.6
26
0.650794
ed97e018c072b853bb4a99e66a5a930a7a9980f9
1,706
py
Python
profiles_api/migrations/0001_initial.py
Jeevan-Satya/profiles-rest-api
c0c64e24e78384d1a40c09f5f19157c6d3d40828
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
Jeevan-Satya/profiles-rest-api
c0c64e24e78384d1a40c09f5f19157c6d3d40828
[ "MIT" ]
5
2021-03-19T11:29:45.000Z
2021-06-10T20:22:05.000Z
profiles_api/migrations/0001_initial.py
Jeevan-Satya/profiles-rest-api
c0c64e24e78384d1a40c09f5f19157c6d3d40828
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-06-18 18:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
d91c4328e47fdea227cb031a9a3d3a8ea94fe400
15,214
py
Python
CM_blending/CM_BlendedIdiomCompiler.py
maximoskp/chameleon_experiment
5ddf57d6b4cd23f51cb7b2548f0039a82a04afe9
[ "MIT" ]
null
null
null
CM_blending/CM_BlendedIdiomCompiler.py
maximoskp/chameleon_experiment
5ddf57d6b4cd23f51cb7b2548f0039a82a04afe9
[ "MIT" ]
null
null
null
CM_blending/CM_BlendedIdiomCompiler.py
maximoskp/chameleon_experiment
5ddf57d6b4cd23f51cb7b2548f0039a82a04afe9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 18 00:16:46 2018 @author: maximoskaliakatsos-papakostas """ import os cwd = os.getcwd() import numpy as np import copy import sys sys.path.insert(0, cwd + '/CM_train') import CM_TR_TrainingIdiom_class as tic sys.path.insert(0, cwd + ...
49.236246
166
0.601288
183e7cbbea329819bd96defae872491b6718e56a
1,112
py
Python
algs4/selection.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
230
2018-02-27T02:26:44.000Z
2022-03-29T10:26:57.000Z
algs4/selection.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
5
2018-04-06T12:08:56.000Z
2021-12-19T09:44:58.000Z
algs4/selection.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
55
2018-02-27T02:26:45.000Z
2022-03-30T03:51:41.000Z
""" Sorts a sequence of strings from standard input using selection sort. % more tiny.txt S O R T E X A M P L E % python selection.py < tiny.txt A E E L M O P R S T X [ one string per line ] % more words3.txt bed bug dad yes zoo ... all bad yet % python selection.py < words3.txt all bad b...
19.857143
69
0.542266
8154a520001b8412e891551c465d55b23c12e915
215
py
Python
czech_sort/__main__.py
jiri-one/czech-sort
c0ab0b3ea65f7c8eedb6973424656ff9ea7f8671
[ "MIT" ]
9
2015-09-17T10:45:59.000Z
2021-08-30T20:24:52.000Z
czech_sort/__main__.py
jiri-one/czech-sort
c0ab0b3ea65f7c8eedb6973424656ff9ea7f8671
[ "MIT" ]
2
2020-09-18T14:17:51.000Z
2021-08-30T14:47:56.000Z
czech_sort/__main__.py
jiri-one/czech-sort
c0ab0b3ea65f7c8eedb6973424656ff9ea7f8671
[ "MIT" ]
1
2021-08-28T10:11:29.000Z
2021-08-28T10:11:29.000Z
import sys import fileinput from . import impl lines = fileinput.input() if sys.version_info < (3, 0): lines = (l.decode('utf-8') for l in lines) for line in impl.sorted(lines): print(line.rstrip('\n'))
16.538462
46
0.665116