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
a8392c570e010d5cb9e704333e9a17850da50683
5,117
py
Python
ansible/lib/ansible/modules/core/network/cumulus/cl_interface_policy.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/core/network/cumulus/cl_interface_policy.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/core/network/cumulus/cl_interface_policy.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> # # This file is part of Ansible # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3...
34.342282
88
0.684972
663ca397e6f7330c61e0113b3a164a9f18ce8103
1,656
py
Python
tmp/mturk_batch_batches.py
kcarnold/sentiment-slant-gi18
6028b42627e3eec14a1f27986f8925d8b1e6ad9c
[ "MIT" ]
null
null
null
tmp/mturk_batch_batches.py
kcarnold/sentiment-slant-gi18
6028b42627e3eec14a1f27986f8925d8b1e6ad9c
[ "MIT" ]
null
null
null
tmp/mturk_batch_batches.py
kcarnold/sentiment-slant-gi18
6028b42627e3eec14a1f27986f8925d8b1e6ad9c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 7 13:43:07 2017 @author: kcarnold """ # Batch MTurk batches # Created with the help of the following on the MTurk Manage screen: # Array.from(document.querySelectorAll('a[id*="batch_status"]')).forEach(x => {let f = document.createElement('iframe'); f.setAttribute('widt...
51.75
280
0.702295
713c793f083b9a0e01bd2b522561bbf06be11a78
44,812
py
Python
bindings/python/legion.py
hzhou/Legion
7baedb254b3757113555f938ac73bbdf9171332b
[ "Apache-2.0" ]
null
null
null
bindings/python/legion.py
hzhou/Legion
7baedb254b3757113555f938ac73bbdf9171332b
[ "Apache-2.0" ]
null
null
null
bindings/python/legion.py
hzhou/Legion
7baedb254b3757113555f938ac73bbdf9171332b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Stanford University # # 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...
37.343333
140
0.629809
6d30b1f9528596a596bb694ceb8f9b4e6d375db9
3,707
py
Python
utils.py
ruTESTER/pminer
76a20bc18aaae3d1c577756fc48f81ede81dc89d
[ "MIT" ]
6
2016-08-09T21:09:27.000Z
2021-01-12T21:07:44.000Z
utils.py
Brideau/pokeminer
18d8502b1c7c11c57d69a52049ee2592358feb14
[ "MIT" ]
null
null
null
utils.py
Brideau/pokeminer
18d8502b1c7c11c57d69a52049ee2592358feb14
[ "MIT" ]
null
null
null
import math from geopy import distance, Point import config def get_map_center(): """Returns center of the map""" lat = (config.MAP_END[0] + config.MAP_START[0]) / 2 lon = (config.MAP_END[1] + config.MAP_START[1]) / 2 return lat, lon def get_scan_area(): """Returns the square kilometers for con...
31.956897
78
0.635015
d79c993e9f29622b4d8731b4a5ba841a364ab45e
9,314
py
Python
src/django_clickhouse/engines.py
amrhgh/django-clickhouse
01cec7c999002976ea7b43a0833d8a1add42cf41
[ "MIT" ]
74
2018-11-30T04:13:26.000Z
2022-03-15T23:11:48.000Z
src/django_clickhouse/engines.py
amrhgh/django-clickhouse
01cec7c999002976ea7b43a0833d8a1add42cf41
[ "MIT" ]
24
2019-02-03T09:07:05.000Z
2022-01-04T10:28:03.000Z
src/django_clickhouse/engines.py
amrhgh/django-clickhouse
01cec7c999002976ea7b43a0833d8a1add42cf41
[ "MIT" ]
28
2018-12-11T15:14:17.000Z
2022-03-16T00:20:45.000Z
""" This file contains wrappers for infi.clckhouse_orm engines to use in django-clickhouse """ import datetime import logging from typing import List, Type, Union, Iterable, Optional, Tuple, NamedTuple from django.db.models import Model as DjangoModel from infi.clickhouse_orm import engines as infi_engines from statsd...
44.352381
120
0.661048
f098310b2af93608d2178b9478a4b913a0f0bad8
6,736
py
Python
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/macpath.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
8
2016-11-24T09:38:31.000Z
2021-04-23T13:04:48.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/macpath.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2018-02-22T07:42:13.000Z
2021-12-13T10:53:09.000Z
SmartFoxServer_PRO_1.6.6/Server/lib/Lib/macpath.py
ChisdealHD/DetlasWorldLinux
336465a4df1a48c9a273329fc7a09d8099c4e4d5
[ "MIT" ]
4
2015-09-09T11:54:37.000Z
2018-05-26T05:08:14.000Z
"""Pathname and path-related operations for the Macintosh.""" import os from stat import * __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", "getatime","islink","exists","isdir","isfile", "walk","expanduser"...
27.720165
79
0.592933
f5cc659ead9e06da9d8626745939edb43f90c1bd
1,021
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/request_report_record_contract_paged.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/request_report_record_contract_paged.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/request_report_record_contract_paged.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
36.464286
157
0.610186
7c057ad5ca28d6c3b7ddc1a8b3f652749e92bd74
6,081
py
Python
components/isceobj/IsceProc/runCorrect.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
components/isceobj/IsceProc/runCorrect.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
components/isceobj/IsceProc/runCorrect.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2014 California Institute of Technology. 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 th...
44.386861
185
0.682782
e30893912d95668cf97c4fdb415c1a7be9bb0777
51,486
py
Python
discord_bot_3.6.py
x3l51/discord_bot
15bc2384870370390ef4294c21de93ae6e6c88a2
[ "MIT" ]
6
2018-08-15T22:54:11.000Z
2021-03-19T12:43:04.000Z
discord_bot_3.6.py
x3l51/discord_bot
15bc2384870370390ef4294c21de93ae6e6c88a2
[ "MIT" ]
21
2018-08-15T11:25:19.000Z
2019-12-20T09:15:07.000Z
discord_bot_3.6.py
x3l51/discord_bot
15bc2384870370390ef4294c21de93ae6e6c88a2
[ "MIT" ]
3
2018-08-15T17:39:09.000Z
2019-01-20T10:54:20.000Z
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- # bot_bcad_3.6.py import os import sys import re import ast import asyncio import datetime import json import random import time import logging from datetime import datetime from datetime import timedelta from xml.etree import ElementTree import aiohttp import async_ti...
41.588045
238
0.608865
d5d8f272ef58601b345ddba4cf9e31c6344f26b9
3,656
py
Python
petStockWeb/petStockWeb/middlewares.py
laboratoryyingong/web-scraper-pet
900154c20cb0c1515843023528b28e37f6fb0780
[ "MIT" ]
null
null
null
petStockWeb/petStockWeb/middlewares.py
laboratoryyingong/web-scraper-pet
900154c20cb0c1515843023528b28e37f6fb0780
[ "MIT" ]
null
null
null
petStockWeb/petStockWeb/middlewares.py
laboratoryyingong/web-scraper-pet
900154c20cb0c1515843023528b28e37f6fb0780
[ "MIT" ]
null
null
null
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class PetstockwebSpiderMiddleware...
35.153846
78
0.675055
aed3ffd3937dde28c04bc088307d39d65d105361
302
py
Python
tools/testing/kunit/qemu_configs/i386.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
tools/testing/kunit/qemu_configs/i386.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
1
2021-01-27T01:29:47.000Z
2021-01-27T01:29:47.000Z
tools/testing/kunit/qemu_configs/i386.py
jainsakshi2395/linux
7ccb860232bb83fb60cd6bcf5aaf0c008d903acb
[ "Linux-OpenIB" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
from ..qemu_config import QemuArchParams QEMU_ARCH = QemuArchParams(linux_arch='i386', kconfig=''' CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y''', qemu_arch='x86_64', kernel_path='arch/x86/boot/bzImage', kernel_command_line='console=ttyS0', extra_qemu_params=[''])
27.454545
45
0.718543
092fdc160284ffd9050feda359aca0bf9effde9d
2,705
py
Python
Python/partition-array-for-maximum-sum.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/partition-array-for-maximum-sum.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/partition-array-for-maximum-sum.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n * k) # Space: O(k) # 1043 # Given an integer array A, you partition the array into (contiguous) subarrays of length at most K. # After partitioning, each subarray has their values changed to become the maximum value of that subarray. # # Return the largest sum of the given array after partitioning. # Sol...
35.12987
113
0.490573
adb7cd0fbc462565ef1111b537607e93cbe9f138
339
py
Python
musix/util/files.py
andrijaJ01/musix-rewrite
1a47084410347ee18a32a645e4e158d08cf7db6f
[ "MIT" ]
null
null
null
musix/util/files.py
andrijaJ01/musix-rewrite
1a47084410347ee18a32a645e4e158d08cf7db6f
[ "MIT" ]
null
null
null
musix/util/files.py
andrijaJ01/musix-rewrite
1a47084410347ee18a32a645e4e158d08cf7db6f
[ "MIT" ]
null
null
null
import os import toml config={} def __ensure__(path): if not os.path.isdir(path): os.makedirs(path,exist_ok=True) def read_conf(file=None): global config if file: print(f"reading from config: {file}") print("reading from global config file") config = toml.load("configs/config.toml")...
22.6
45
0.669617
deb3700278c2a80584f00b0b8e47706655e5ef2b
483
py
Python
readthedocs/builds/migrations/0006_add_config_field.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/builds/migrations/0006_add_config_field.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/builds/migrations/0006_add_config_field.py
mforbes/readthedocs.org
92f6224a67648a6d27e7a295973c2718d07cee11
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-02 13:24 import jsonfield.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('builds', '0005_remove-version-alias'), ] operations = [ migrations.AddField( model_name...
24.15
107
0.625259
562804897941695eccd6e89331997905945256c1
3,328
py
Python
managesf/tests/test_utils.py
enovance/managesf
5f6bc6857ebbffb929a063ccc3ab94317fa3784a
[ "Apache-2.0" ]
null
null
null
managesf/tests/test_utils.py
enovance/managesf
5f6bc6857ebbffb929a063ccc3ab94317fa3784a
[ "Apache-2.0" ]
null
null
null
managesf/tests/test_utils.py
enovance/managesf
5f6bc6857ebbffb929a063ccc3ab94317fa3784a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2014 eNovance SAS <licensing@enovance.com> # # 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 # # Unle...
35.404255
77
0.632813
36bc59f2a66417c68b0f9513f639f0a7dbefab01
168
py
Python
Pacotes/ex049.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
Pacotes/ex049.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
Pacotes/ex049.py
TonyRio/Python-Exercicios
8a72d1b12418c6485794dae184425df0daf098bb
[ "MIT" ]
null
null
null
n = int(input('qual a tabuada que quer imprimir ?')) print('**'*10) for c in range(1,11, 1): print(' {:^} * {:^} = {:^} *'.format (c,n, c*n)) print('**'*10)
33.6
60
0.47619
37334039a1dee7971313e5d7cc87d901c5000320
12,000
py
Python
dymos/examples/brachistochrone/test/test_brachistochrone_solve_segments.py
pgkirsch/dymos
d4e68bd3db13972dcbf9462c37c55814f521d762
[ "Apache-2.0" ]
1
2021-07-19T17:03:49.000Z
2021-07-19T17:03:49.000Z
dymos/examples/brachistochrone/test/test_brachistochrone_solve_segments.py
RutvikM3/dymos
b445fff6f27d910007dad48c844c9bc538804122
[ "Apache-2.0" ]
null
null
null
dymos/examples/brachistochrone/test/test_brachistochrone_solve_segments.py
RutvikM3/dymos
b445fff6f27d910007dad48c844c9bc538804122
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from numpy.testing import assert_almost_equal import openmdao.api as om import dymos as dm import dymos.examples.brachistochrone.test.ex_brachistochrone_vector_states as ex_brachistochrone_vs import dymos.examples.brachistochrone.test.ex_brachistochrone as ex_brachistochrone from dym...
48.192771
105
0.549833
b5ce3e78c49c2f00c13d8ad3a62850030efe81cd
12,051
py
Python
django/db/migrations/state.py
Bashar/django
e520a73eeea6b185b719901ab9985ecef00e5664
[ "BSD-3-Clause" ]
null
null
null
django/db/migrations/state.py
Bashar/django
e520a73eeea6b185b719901ab9985ecef00e5664
[ "BSD-3-Clause" ]
null
null
null
django/db/migrations/state.py
Bashar/django
e520a73eeea6b185b719901ab9985ecef00e5664
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig from django.apps.registry import Apps, apps as global_apps from django.db import models from django.db.models.options import DEFAULT_NAMES, normalize_together from django.db.models.fields.related import do_pending_lookups from django.conf import...
41.412371
139
0.585512
ce165cec65793a13989381e46c064de48741b06c
8,355
py
Python
Section_05/5.02/view.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
11
2019-05-24T17:03:55.000Z
2021-11-24T23:59:38.000Z
Section_05/5.02/view.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
null
null
null
Section_05/5.02/view.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
9
2019-06-19T02:20:15.000Z
2022-03-25T01:36:14.000Z
import tkinter as tk import tkinter.filedialog import tkinter.messagebox import tkinter.ttk import model import player AUDIO_PLAYER_NAME = "Achtung Baby" class View: loop_choices = [("No Loop", 1), ("Loop Current", 2), ("Loop All", 3)] def __init__(self, root, model, player): self.root = root ...
39.976077
132
0.656373
93892c714176e39e8d28d18ba761064ec6f7b5cb
3,645
py
Python
line_protocol.py
erelsgl/family-fair-allocation
abd66e224989a075a822bf83d7d663c177d3bc0a
[ "MIT" ]
1
2021-11-07T20:56:21.000Z
2021-11-07T20:56:21.000Z
line_protocol.py
erelsgl/family-fair-allocation
abd66e224989a075a822bf83d7d663c177d3bc0a
[ "MIT" ]
null
null
null
line_protocol.py
erelsgl/family-fair-allocation
abd66e224989a075a822bf83d7d663c177d3bc0a
[ "MIT" ]
null
null
null
#!python3 """ The line-allocation protocol: * 1/2-democratic EF1 for two families with general monotone agents; * 1/k-democratic fair for k families with additive agents. See: https://arxiv.org/abs/1709.02564 Theorems 4.2 and 5.8. """ from agents import * from families import Family import fairness_criteria import...
40.955056
180
0.650754
ae777e908e15e2b59bc929c5b2c40d49a7d3379e
6,333
py
Python
server/models/campaign.py
LDeeJay1969/PlanarAlly
0e9e7a2a122948dd75d5570c09537c5e802c16d4
[ "MIT" ]
null
null
null
server/models/campaign.py
LDeeJay1969/PlanarAlly
0e9e7a2a122948dd75d5570c09537c5e802c16d4
[ "MIT" ]
null
null
null
server/models/campaign.py
LDeeJay1969/PlanarAlly
0e9e7a2a122948dd75d5570c09537c5e802c16d4
[ "MIT" ]
null
null
null
import uuid from peewee import ( fn, BooleanField, FloatField, ForeignKeyField, IntegerField, TextField, ) from playhouse.shortcuts import model_to_dict from .base import BaseModel from .user import User from .utils import get_table __all__ = [ "GridLayer", "Layer", "Location", ...
29.455814
87
0.610769
02119c9520d60bfbfce8af1cab1b09fcb0776f32
8,385
py
Python
legal-api/tests/unit/resources/v2/test_business.py
vysakh-menon-aot/lear
7bae45efa2f9f89a7e826567c85de55fde68e09e
[ "Apache-2.0" ]
8
2019-06-19T16:16:15.000Z
2021-08-28T23:56:40.000Z
legal-api/tests/unit/resources/v2/test_business.py
vysakh-menon-aot/lear
7bae45efa2f9f89a7e826567c85de55fde68e09e
[ "Apache-2.0" ]
796
2019-03-07T19:25:50.000Z
2022-03-31T20:32:57.000Z
legal-api/tests/unit/resources/v2/test_business.py
vysakh-menon-aot/lear
7bae45efa2f9f89a7e826567c85de55fde68e09e
[ "Apache-2.0" ]
82
2019-01-30T20:06:14.000Z
2022-03-29T20:38:31.000Z
# Copyright © 2019 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...
40.703883
92
0.632558
806a3514e93d4c68e3f540608d1b396cfb407959
5,691
py
Python
Starter_Files/lambda_function.py
getjiggy/unit13-challenge
1de5f432c75eff22c43262a777f5e8875cea338e
[ "Unlicense" ]
null
null
null
Starter_Files/lambda_function.py
getjiggy/unit13-challenge
1de5f432c75eff22c43262a777f5e8875cea338e
[ "Unlicense" ]
null
null
null
Starter_Files/lambda_function.py
getjiggy/unit13-challenge
1de5f432c75eff22c43262a777f5e8875cea338e
[ "Unlicense" ]
null
null
null
### Required Libraries ### from datetime import datetime from dateutil.relativedelta import relativedelta ### Functionality Helper Functions ### def parse_int(n): """ Securely converts a non-integer value to integer. """ try: return int(n) except ValueError: return float("nan") de...
31.793296
203
0.648919
09e0cb4f2dd25891f072f5ec9cd0375cc673ee73
7,467
py
Python
ac-dc-converters/semi-converter.py
Leandro-Bertoluzzi/pyspice-power-electronics
960494b23e36c0fac61289744a64c991d62784a2
[ "MIT" ]
null
null
null
ac-dc-converters/semi-converter.py
Leandro-Bertoluzzi/pyspice-power-electronics
960494b23e36c0fac61289744a64c991d62784a2
[ "MIT" ]
null
null
null
ac-dc-converters/semi-converter.py
Leandro-Bertoluzzi/pyspice-power-electronics
960494b23e36c0fac61289744a64c991d62784a2
[ "MIT" ]
null
null
null
#r# ============================================ #r# Semi-converter with SCR #r# ============================================ #r# This example shows the simulation of a controlled semi-converter with SCRs and diodes ######################################### IMPORT MODULES ######################################### i...
36.247573
178
0.531539
71ba815ae67b60a1d7b512aa428676f0e2fd71f0
30,781
py
Python
venv/Lib/site-packages/aiohttp/http_parser.py
pay2win-jpg/DRandomBot
c44eb937a1b1837bba2ce7fa24324ebad369437b
[ "MIT" ]
21
2021-03-29T05:49:35.000Z
2022-03-18T09:02:34.000Z
venv/Lib/site-packages/aiohttp/http_parser.py
pay2win-jpg/DRandomBot
c44eb937a1b1837bba2ce7fa24324ebad369437b
[ "MIT" ]
95
2021-07-18T11:53:13.000Z
2022-02-17T20:18:22.000Z
venv/Lib/site-packages/aiohttp/http_parser.py
pay2win-jpg/DRandomBot
c44eb937a1b1837bba2ce7fa24324ebad369437b
[ "MIT" ]
31
2021-03-29T05:54:57.000Z
2022-03-22T16:58:57.000Z
import abc import asyncio import collections import re import string import zlib from enum import IntEnum from typing import Any, List, Optional, Tuple, Type, Union from multidict import CIMultiDict, CIMultiDictProxy, istr from yarl import URL from . import hdrs from .base_protocol import BaseProtocol from .helpers i...
34.125277
88
0.495435
e29a8707d45357f22f17d7040edf913b1e8006d8
4,042
py
Python
anthology/database.py
surfmikko/anthology
96e5ac755c5c5db2f1c1ff2d6e0e1f8be459de97
[ "MIT" ]
null
null
null
anthology/database.py
surfmikko/anthology
96e5ac755c5c5db2f1c1ff2d6e0e1f8be459de97
[ "MIT" ]
3
2017-04-23T06:17:32.000Z
2017-04-23T13:42:41.000Z
anthology/database.py
surfmikko/anthology
96e5ac755c5c5db2f1c1ff2d6e0e1f8be459de97
[ "MIT" ]
null
null
null
"""MongoDB backend""" from pymongo import MongoClient, ASCENDING from bson import ObjectId class DatabaseError(Exception): """Raised for unrecoverable database errors""" pass def connection(): """Return MongoClient connection object. pymongo.MongoClient has it's own instance caching/connection poo...
25.421384
79
0.645473
e9a7829d4b1c746d18ec01fb857b9f676f62f6f1
8,780
py
Python
evaluation/privacy_entropy.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
evaluation/privacy_entropy.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
evaluation/privacy_entropy.py
DeqingFu/robustdg
42519d42d80890a636b0d3fcb78e7d45561d0fb5
[ "MIT" ]
null
null
null
#General Imports import sys import numpy as np import pandas as pd import argparse import copy import random import json import pickle #PyTorch import torch from torch.autograd import grad from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.uti...
38.508772
129
0.583485
db3711689267f392b79138748e937c1c6564cf40
59,279
py
Python
leo/core/leoMenu.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
leo/core/leoMenu.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
leo/core/leoMenu.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20031218072017.3749: * @file leoMenu.py """Gui-independent menu handling for Leo.""" import leo.core.leoGlobals as g import sys #@+others #@+node:ekr.20031218072017.3750: ** class LeoMenu class LeoMenu(object): """The base class for all Leo menus.""" #@+others #@+node:ekr.20120...
40.602055
105
0.553434
cf8cae5ca1e721e17f65dea1c6c6a467af7b677d
2,376
py
Python
examples/example_wldeblend.py
LSSTDESC/descwl_shear_sims
1c696518104b7f301dd6c69571239431c6232110
[ "BSD-3-Clause" ]
null
null
null
examples/example_wldeblend.py
LSSTDESC/descwl_shear_sims
1c696518104b7f301dd6c69571239431c6232110
[ "BSD-3-Clause" ]
11
2019-12-10T23:30:27.000Z
2019-12-24T13:59:32.000Z
examples/example_wldeblend.py
LSSTDESC/wl-shear-testing-sims
6e4a0baa6f664b5bc52b08b55614eaa58c8b0748
[ "BSD-3-Clause" ]
null
null
null
""" example with WeakLensingDeblending galaxies and power spectrum psf """ import os import numpy as np import lsst.afw.image as afw_image import lsst.afw.geom as afw_geom from descwl_shear_sims.galaxies import make_galaxy_catalog from descwl_shear_sims.psfs import make_ps_psf from descwl_shear_sims.sim import make_si...
27.627907
83
0.661195
34808e28a6f4c9b6b067b3d734fc6e8e8500201b
1,049
py
Python
setup.py
nordic-institute/X-Road-Security-Server-toolkit
1538dbf3d76647f4fb3a72bbe93bf54f414ee9fb
[ "MIT" ]
7
2020-11-01T19:50:11.000Z
2022-01-18T17:45:19.000Z
setup.py
nordic-institute/X-Road-Security-Server-toolkit
1538dbf3d76647f4fb3a72bbe93bf54f414ee9fb
[ "MIT" ]
24
2020-11-09T08:09:10.000Z
2021-06-16T07:22:14.000Z
setup.py
nordic-institute/X-Road-Security-Server-toolkit
1538dbf3d76647f4fb3a72bbe93bf54f414ee9fb
[ "MIT" ]
1
2021-04-27T14:39:48.000Z
2021-04-27T14:39:48.000Z
"""Project setup""" from setuptools import setup, find_packages from xrdsst.core.version import get_version VERSION = get_version() f = open('README.md', 'r') LONG_DESCRIPTION = f.read() f.close() with open('requirements.txt') as f: required = f.read().splitlines() setup( name='xrdsst', version=VERSION,...
28.351351
77
0.685415
289f55076c204cd286e806cc764a78d698692f02
6,865
py
Python
representation_batch_rl/batch_rl/sac_v1.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
representation_batch_rl/batch_rl/sac_v1.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
representation_batch_rl/batch_rl/sac_v1.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.511111
79
0.683758
33f1cc42de7198829d88b7a68688289e72d8ad77
2,682
py
Python
catalog-be/src/main/resources/scripts/import/tosca/importNormativeInterfaceLifecycleTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
catalog-be/src/main/resources/scripts/import/tosca/importNormativeInterfaceLifecycleTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
catalog-be/src/main/resources/scripts/import/tosca/importNormativeInterfaceLifecycleTypes.py
onapdemo/sdc
3f1fee2ca76332b48e6f36662b32f2b5096c25e7
[ "Apache-2.0" ]
null
null
null
import pycurl import sys, getopt from StringIO import StringIO import json import copy from importNormativeElements import createNormativeElement from importCommon import * ################################################################################################################################################ #...
35.289474
179
0.487696
e2a04fc5a915b2ee3ed1038ec16b6dcff68ca59c
20,245
py
Python
cold_posterior_bnn/core/prior.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
2
2022-01-21T18:15:34.000Z
2022-01-25T15:21:34.000Z
cold_posterior_bnn/core/prior.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
110
2021-10-01T18:22:38.000Z
2021-12-27T22:08:31.000Z
cold_posterior_bnn/core/prior.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
1
2022-02-10T10:43:10.000Z
2022-02-10T10:43:10.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.811994
108
0.66614
838a7fb0634bde4f43583cd160f50f00a008ca27
1,304
py
Python
app/systems/manager.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-06-22T21:25:52.000Z
2020-06-22T21:25:52.000Z
app/systems/manager.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-05-21T02:46:24.000Z
2020-05-25T07:19:23.000Z
app/systems/manager.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
null
null
null
from systems.manage import service, runtime, template, task from systems.indexer import Indexer from utility.terminal import TerminalMixin from utility.environment import Environment import pathlib import copy import logging logger = logging.getLogger(__name__) class Manager( TerminalMixin, service.Manager...
24.603774
76
0.660276
535f29a4c3963b73d684cb4ff1ab2ca104369768
365
py
Python
stochastic/__version__.py
Gabinou/NHPPy
1068b1548d008771a58d5479d8333703c54abbed
[ "MIT" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
stochastic/__version__.py
noisyoscillator/stochastic
168659c36fd16a33f69b1f21654a7661286dc9d0
[ "MIT" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
stochastic/__version__.py
noisyoscillator/stochastic
168659c36fd16a33f69b1f21654a7661286dc9d0
[ "MIT" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
"""Version information.""" __title__ = "stochastic" __description__ = "Stochastic process realizations." __url__ = "https://github.com/crflynn/stochastic" __version__ = "0.4.0" __author__ = "Christopher Flynn" __author_email__ = "crf204@gmail.com" __license__ = "MIT" __copyright__ = "Copyright 2018 Christopher Flynn" _...
33.181818
52
0.775342
b94f2d35a0eeb14e802a026705bc8c44f04c58e9
137
py
Python
teradata/datadog_checks/teradata/__about__.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
teradata/datadog_checks/teradata/__about__.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
teradata/datadog_checks/teradata/__about__.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2022-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '1.0.0'
27.4
59
0.722628
2fb2e3f7e59405ddc15d522624d3772b2b5bef5f
571
py
Python
uri/Estruturas e Bibliotecas/1022.py
vieirafrancisco/daily
78a288290bcb222c8f0ac0e407a753e65dadec77
[ "MIT" ]
null
null
null
uri/Estruturas e Bibliotecas/1022.py
vieirafrancisco/daily
78a288290bcb222c8f0ac0e407a753e65dadec77
[ "MIT" ]
null
null
null
uri/Estruturas e Bibliotecas/1022.py
vieirafrancisco/daily
78a288290bcb222c8f0ac0e407a753e65dadec77
[ "MIT" ]
null
null
null
def mdc(a, b): if b == 0: return a return mdc(b, a % b) def solve(n1, d1, op, n2, d2): if op == "+": x = n1*d2 + n2*d1 y = d1*d2 elif op == "-": x = n1*d2 - n2*d1 y = d1*d2 elif op == "/": x = n1*d2 y = n2*d1 elif op == "*": x = n1...
20.392857
56
0.388792
76d8fb97b9f15ca0d0f887f731012778d373f7cb
3,412
py
Python
src/poliastro/frames/ecliptic.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
1
2019-04-12T12:28:37.000Z
2019-04-12T12:28:37.000Z
src/poliastro/frames/ecliptic.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
1
2018-02-22T08:06:06.000Z
2018-02-22T08:06:06.000Z
src/poliastro/frames/ecliptic.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
null
null
null
import numpy as np from astropy import _erfa as erfa, units as u from astropy.coordinates import ( BaseEclipticFrame, CartesianRepresentation, DynamicMatrixTransform, GeocentricMeanEcliptic, HeliocentricEclipticIAU76 as HeliocentricEclipticJ2000, TimeAttribute, UnitSphericalRepresentation, ...
33.126214
97
0.753224
229dc3f84cb7ea39964576acfffd98427bf1469c
4,440
py
Python
archive/Model/rnn/time_series_shampoo/time_series.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
4
2018-01-05T02:54:18.000Z
2018-09-02T10:05:54.000Z
archive/Model/rnn/time_series_shampoo/time_series.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
null
null
null
archive/Model/rnn/time_series_shampoo/time_series.py
KrisCheng/Hitchhiker-Guide-to-Machine-Learning
676edabc8690727b22189536b28de3e2dad0f08c
[ "MIT" ]
2
2017-10-02T11:43:54.000Z
2017-10-07T10:52:22.000Z
''' Desc: time series forecasting with LSTM in Python. Author: Kris Peng Ref: https://machinelearningmastery.com/time-series-forecasting-long-short-term-memory-network-python/ Copyright (c) 2017 - Kris Peng <kris.dacpc@gmail.com> ''' # load and plot dataset from pandas import read_csv from pandas import datetime from ...
32.408759
122
0.707883
c8238eae57df440ab497af5eaa4d6c5648f4ce7f
785
py
Python
scripts/filter.py
jaistark/sp
911933c65f950e6bc51451840068ca9249554846
[ "BSD-2-Clause" ]
28
2015-03-04T08:34:40.000Z
2022-02-13T05:59:11.000Z
scripts/filter.py
jaistark/sp
911933c65f950e6bc51451840068ca9249554846
[ "BSD-2-Clause" ]
null
null
null
scripts/filter.py
jaistark/sp
911933c65f950e6bc51451840068ca9249554846
[ "BSD-2-Clause" ]
14
2015-03-04T08:34:42.000Z
2020-12-08T16:13:37.000Z
import snap import sys # Filter the graph graph = sys.argv[1] G = snap.LoadEdgeList(snap.PNGraph, graph) G_filter = snap.PNGraph.New() for u_ in G.Nodes(): u = u_.GetId() G_filter.AddNode(u) edge_hash = {} for u_ in G.Nodes(): u = u_.GetId() for v in u_.GetOutEdges(): for w in u_.GetInEdges(...
23.088235
58
0.547771
1aed06b1b529e8b6f9a0b742101535cede810437
1,874
py
Python
caesar_cipher.py
joejnke/security
5e252f26560864f54be64cc89a2d538db1731188
[ "MIT" ]
null
null
null
caesar_cipher.py
joejnke/security
5e252f26560864f54be64cc89a2d538db1731188
[ "MIT" ]
1
2019-04-19T20:23:30.000Z
2019-04-19T20:23:30.000Z
caesar_cipher.py
joejnke/security
5e252f26560864f54be64cc89a2d538db1731188
[ "MIT" ]
1
2019-04-19T19:56:22.000Z
2019-04-19T19:56:22.000Z
# A mapping from letter to integer L2I = dict(zip("ABCDEFGHIJKLMNOPQRSTUVWXYZ",range(26))) # A mapping from Interger to lettter I2L = dict(zip(range(26),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")) '''------------------------------------------------------------------------------- Function: Get the encryption or decryption key i...
31.762712
85
0.468517
16600f54e8037c4809e742a712314ab956d42b13
1,783
py
Python
tensorflow/python/distribute/reduce_util.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/distribute/reduce_util.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/distribute/reduce_util.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.288462
80
0.701066
e2ee9b13e9081b478b9b03059dbae5f2cec91d82
685
py
Python
PlayGround/observer/migrations/0001_initial.py
mordsm/PlayGround
76734ec1973dc4a3b7c70e01004e1b0891a6c6ed
[ "Apache-2.0" ]
null
null
null
PlayGround/observer/migrations/0001_initial.py
mordsm/PlayGround
76734ec1973dc4a3b7c70e01004e1b0891a6c6ed
[ "Apache-2.0" ]
null
null
null
PlayGround/observer/migrations/0001_initial.py
mordsm/PlayGround
76734ec1973dc4a3b7c70e01004e1b0891a6c6ed
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-23 18:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ActiveData', fields=[ ('id', models.BigAuto...
27.4
117
0.575182
9c184a836994027cdc16a010121239da93e614d7
2,505
py
Python
deform_jinja2/test.py
Weasyl/deform_jinja2
5d92efa94ca0028dc99a1183e6dbe0288e62e223
[ "MIT" ]
null
null
null
deform_jinja2/test.py
Weasyl/deform_jinja2
5d92efa94ca0028dc99a1183e6dbe0288e62e223
[ "MIT" ]
null
null
null
deform_jinja2/test.py
Weasyl/deform_jinja2
5d92efa94ca0028dc99a1183e6dbe0288e62e223
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import colander import deform import deform_jinja2 import deform_jinja2.translator import unittest from colander import Invalid, _ from deform.exception import ValidationFailure from pyramid import testing from deform_jinja2.translator import PyramidTranslator import translationstring class T...
39.761905
93
0.647505
448ba8c2d26b8f46f51a9350a196da9ad2ce2dfb
393
py
Python
sites/verdadeiro/comments/comments/wsgi.py
JoaoPedro-M/Python
4697cdae15cf9b9fb242f210e5a79ea182525ba3
[ "MIT" ]
null
null
null
sites/verdadeiro/comments/comments/wsgi.py
JoaoPedro-M/Python
4697cdae15cf9b9fb242f210e5a79ea182525ba3
[ "MIT" ]
null
null
null
sites/verdadeiro/comments/comments/wsgi.py
JoaoPedro-M/Python
4697cdae15cf9b9fb242f210e5a79ea182525ba3
[ "MIT" ]
null
null
null
""" WSGI config for comments 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
320a41200c4743b1c01f18e2a6163abd548b602c
1,455
py
Python
source/mission/server.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
source/mission/server.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
source/mission/server.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
import sys import os import socket import SocketServer import rsa import time, select from control import * #from variable import * #global mission class PiServer(): #def __init__(self, Ip = '127.0.0.1', port = 1337, sz = 2048, keySz = 256): ### Process of generating a public and private key ### def keyE...
20.208333
76
0.705155
07cb13ebbbf7c04235fcf6f4876ae4903c303994
1,169
py
Python
packages/python/yap_kernel/yap_ipython/utils/data.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
90
2015-03-09T01:24:15.000Z
2022-02-24T13:56:25.000Z
packages/python/yap_kernel/yap_ipython/utils/data.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
52
2016-02-14T08:59:37.000Z
2022-03-14T16:39:35.000Z
packages/python/yap_kernel/yap_ipython/utils/data.py
ryandesign/yap
9a50d1a3d985ec559ebfbb8e9f4d4c6b88b30214
[ "Artistic-1.0-Perl", "ClArtistic" ]
27
2015-11-19T02:45:49.000Z
2021-11-25T19:47:58.000Z
# encoding: utf-8 """Utilities for working with data structures like lists, dicts and tuples. """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The yap_ipython Development Team # # Distributed under the terms of the BSD License. The full license is in # t...
31.594595
78
0.596236
57e62df19bff48a56dfcf257bdb80ff622ca89fb
1,704
py
Python
semestr_01/IAP/optimalizace.py
zmatlik117/iap
107d0dddf8beccf01a3f02069b704ce5fd9f5df7
[ "MIT" ]
null
null
null
semestr_01/IAP/optimalizace.py
zmatlik117/iap
107d0dddf8beccf01a3f02069b704ce5fd9f5df7
[ "MIT" ]
null
null
null
semestr_01/IAP/optimalizace.py
zmatlik117/iap
107d0dddf8beccf01a3f02069b704ce5fd9f5df7
[ "MIT" ]
null
null
null
from scipy import optimize import matplotlib.pyplot as plt import numpy as np def tested_function(x): """ Testovana funkce Da se sem napsat vselijaka cunarna """ freq = 1 damp_fac = 0.1 val = np.sin(freq * x) damp = np.exp(-1 * damp_fac * abs(x)) return val * damp # kolikrat hodl...
29.894737
96
0.723005
b97121c89ab1922bb8ae340f382d2753196bff1a
5,944
py
Python
sleekxmpp/componentxmpp.py
imo/SleekXMPP
8175ed572888551314fe43304ab8acd2278c809b
[ "BSD-3-Clause" ]
3
2019-02-01T06:50:08.000Z
2020-03-24T00:45:31.000Z
sleekxmpp/componentxmpp.py
imo/SleekXMPP
8175ed572888551314fe43304ab8acd2278c809b
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/componentxmpp.py
imo/SleekXMPP
8175ed572888551314fe43304ab8acd2278c809b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sleekxmpp.clientxmpp ~~~~~~~~~~~~~~~~~~~~ This module provides XMPP functionality that is specific to external server component connections. Part of SleekXMPP: The Sleek XMPP Library :copyright: (c) 2011 Nathanael C. Fritz :license: MIT, see LICENSE for more de...
35.807229
78
0.607167
21b9e7f81e80f8665f9be602f7efc8f2b9ddaffa
972
py
Python
python/phonenumbers/shortdata/region_BG.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/shortdata/region_BG.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_BG.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. BG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BG = PhoneMetadata(id='BG', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_number_pattern='\\...
74.769231
174
0.751029
a305301340b64463104a9994ffa65b7e9bf3db20
9,035
py
Python
drex-atari/synthesize_rankings_bc.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
36
2019-11-02T02:48:47.000Z
2022-03-04T19:10:28.000Z
drex-atari/synthesize_rankings_bc.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
16
2019-10-31T16:19:34.000Z
2022-03-12T00:02:27.000Z
drex-atari/synthesize_rankings_bc.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
13
2019-11-06T08:32:06.000Z
2022-02-28T06:56:10.000Z
#from ale_wrapper import ALEInterfaceWrapper from preprocess import Preprocessor from state import * import numpy as np import utils import gym from baselines.ppo2.model import Model from baselines.common.policies import build_policy from baselines.common.cmd_util import make_vec_env from baselines.common.vec_env.vec_f...
36.285141
114
0.573437
12cac85bfbdb017ea644586e6bbd09049ff8f025
289
py
Python
core/messaging/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/messaging/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/messaging/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.messaging.builder import StringBuilder from core.messaging.pronouns import His, Him, He from core.messaging.variables import Targets, Defender, Attacker, Actor, TargetTwo, TargetOne, Target, AttackerWeapon, \ Ammunition, MessageVariable from core.messaging.verbs import Verb
48.166667
120
0.820069
ee35f29c85ce9c4710d3c1eaca57c5f55eac687a
2,059
py
Python
openstack/network/v2/security_group.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/network/v2/security_group.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/network/v2/security_group.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.12963
75
0.717339
0c2576361d9c166d4e3249a718b0c51f963832f6
9,071
py
Python
env/lib/python3.6/site-packages/wheel/pep425tags.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
91
2019-01-28T13:32:14.000Z
2021-12-08T03:23:56.000Z
env/lib/python3.6/site-packages/wheel/pep425tags.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
64
2021-06-03T13:24:12.000Z
2022-03-31T19:11:41.000Z
env/lib/python3.6/site-packages/wheel/pep425tags.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
37
2020-07-09T23:12:30.000Z
2022-03-16T11:15:58.000Z
"""Generate and work with PEP 425 Compatibility Tags.""" import distutils.util import platform import sys import os import sysconfig import warnings from .macosx_libfile import extract_macosx_min_system_version try: from importlib.machinery import all_suffixes as get_all_suffixes except ImportError: from im...
34.622137
96
0.60258
74fed75c774212a9771295792e865d94cd7ee164
1,894
py
Python
novaclient/v1_1/cloudpipe.py
bclau/python-novaclient
7d1cd188e0da0e14b58ead3e46c2f1461620c03c
[ "Apache-1.1" ]
1
2015-02-16T09:37:00.000Z
2015-02-16T09:37:00.000Z
novaclient/v1_1/cloudpipe.py
bclau/python-novaclient
7d1cd188e0da0e14b58ead3e46c2f1461620c03c
[ "Apache-1.1" ]
null
null
null
novaclient/v1_1/cloudpipe.py
bclau/python-novaclient
7d1cd188e0da0e14b58ead3e46c2f1461620c03c
[ "Apache-1.1" ]
null
null
null
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
30.548387
78
0.640444
3188c2acdebc5d6e43cd11cb7ee1fddddaa14481
823
py
Python
python/pygtk/python_gtk3_pygobject/label_html.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/pygtk/python_gtk3_pygobject/label_html.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/pygtk/python_gtk3_pygobject/label_html.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org) """ This is the simplest Python GTK+3 snippet. See: http://python-gtk-3-tutorial.readthedocs.org/en/latest/label.html """ from gi.repository import Gtk as gtk def main(): window = gtk.Window() label = ...
29.392857
176
0.616039
448e45d84dc3a56a968077253787a405bf1a80dc
16,751
py
Python
pyvcloud/vcd/utils.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/utils.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
1
2017-12-28T13:50:54.000Z
2017-12-28T17:28:15.000Z
pyvcloud/vcd/utils.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
1
2017-12-28T10:22:55.000Z
2017-12-28T10:22:55.000Z
# VMware vCloud Python SDK # Copyright (c) 2014 VMware, 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...
42.08794
79
0.57304
980235cc84ba3dd2f329f563165fa3df745655b0
86,968
py
Python
Pico_Buzzer_Music_demo2_main.py
geeekpi/rpico
b01151fc3dfdd57a9997a2f35662c21d8882eff2
[ "MIT" ]
4
2021-07-12T18:27:42.000Z
2022-01-14T21:15:11.000Z
Pico_Buzzer_Music_demo2_main.py
geeekpi/rpico
b01151fc3dfdd57a9997a2f35662c21d8882eff2
[ "MIT" ]
null
null
null
Pico_Buzzer_Music_demo2_main.py
geeekpi/rpico
b01151fc3dfdd57a9997a2f35662c21d8882eff2
[ "MIT" ]
null
null
null
from buzzer_music import music from time import sleep #Example songs # https://onlinesequencer.net/195547 #song = '0 A#4 1 1;2 F5 1 1;4 D#5 1 1;8 D5 1 1;11 D5 1 1;6 A#4 1 1;14 D#5 1 1;18 A#4 1 1;20 D#5 1 1;22 A#4 1 1;24 D5 1 1;27 D5 1 1;30 D#5 1 1;32 A#4 1 1;34 F5 1 1;36 D#5 1 1;38 A#4 1 1;40 D5 1 1;43 D5 1 1;46 D...
1,581.236364
22,257
0.645824
fc59aded2c00d2ec02313c7310ed55055299528f
333
py
Python
api/simpleproxies_api/middleware.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
api/simpleproxies_api/middleware.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
api/simpleproxies_api/middleware.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
from django.utils.deprecation import MiddlewareMixin from ipware import get_client_ip class ClientIPMiddleware(MiddlewareMixin): def process_request(self, request): client_ip, is_routable = get_client_ip(request) request.META['CLIENT_IP'] = client_ip request.META['CLIENT_IP_IS_ROUTABLE'] =...
33.3
59
0.765766
4732504d0f632143242c36aab4dec2e7a92b63ec
131
py
Python
pipeline/tools/__init__.py
juridics/brazilian-legal-text-benchmark
bfb38dc0f5090de548d2b5df39ec51aa6c5b8d13
[ "Unlicense" ]
1
2022-02-24T12:35:46.000Z
2022-02-24T12:35:46.000Z
pipeline/tools/__init__.py
juridics/brazilian-legal-text-benchmark
bfb38dc0f5090de548d2b5df39ec51aa6c5b8d13
[ "Unlicense" ]
null
null
null
pipeline/tools/__init__.py
juridics/brazilian-legal-text-benchmark
bfb38dc0f5090de548d2b5df39ec51aa6c5b8d13
[ "Unlicense" ]
null
null
null
from .metrics import Metrics from .logger import AppLogger from .statistic import Statistic from .threshold import ThresholdTester
26.2
38
0.847328
b88812d311427e955c96eeb0c096683e11fff641
3,479
py
Python
t-test.py
NicholasDominic/The-NucleoNets
83530c2e3bf746c08e9045aeff82435fca5162e1
[ "MIT" ]
1
2022-02-19T21:43:12.000Z
2022-02-19T21:43:12.000Z
t-test.py
NicholasDominic/The-NucleoNets
83530c2e3bf746c08e9045aeff82435fca5162e1
[ "MIT" ]
null
null
null
t-test.py
NicholasDominic/The-NucleoNets
83530c2e3bf746c08e9045aeff82435fca5162e1
[ "MIT" ]
null
null
null
# Null Hypothesis Significance Test (NHST) from pandas import read_csv, merge, DataFrame from os import listdir from numpy import mean, std, sqrt from scipy.stats import t, ttest_rel from matplotlib.pyplot import boxplot, figure, subplots def read_and_get_squared_error(data, *args, **kwargs): a = read_cs...
41.915663
120
0.63754
74c866a4c2749e21bdedafa5f17960a5867809db
21,493
py
Python
autoelective/loop.py
royess/PKUAutoElective
82bbe7e6089e80a214a380f47f19c7c919650a55
[ "MIT" ]
null
null
null
autoelective/loop.py
royess/PKUAutoElective
82bbe7e6089e80a214a380f47f19c7c919650a55
[ "MIT" ]
null
null
null
autoelective/loop.py
royess/PKUAutoElective
82bbe7e6089e80a214a380f47f19c7c919650a55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: loop.py # modified: 2019-09-11 import time import random from queue import Queue from collections import deque from itertools import combinations from requests.compat import json from requests.exceptions import RequestException import numpy as np from . import...
33.582813
125
0.512772
65dcc391d1c05b0e123f92f31201e536b4a472e1
8,312
py
Python
coremltools/converters/mil/experimental/passes/generic_conv_scale_fusion.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
2,740
2017-10-03T23:19:01.000Z
2022-03-30T15:16:39.000Z
coremltools/converters/mil/experimental/passes/generic_conv_scale_fusion.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
1,057
2017-10-05T22:47:01.000Z
2022-03-31T23:51:15.000Z
coremltools/converters/mil/experimental/passes/generic_conv_scale_fusion.py
tonybove-apple/coremltools
22a8877beec7bad136ba5612d5aacd8e323ecdfc
[ "BSD-3-Clause" ]
510
2017-10-04T19:22:28.000Z
2022-03-31T12:16:52.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import os import numpy as np from coremltools.converters.mil import Builder...
34.065574
140
0.67962
2c932938dd9321c9864716585a0f7bd206dcd499
4,778
py
Python
examples/pes-1/prep_molpro.py
cbannwarth/aimsprop
9efd317f9d1e8f66e33b7a468845d5ace3e1852d
[ "MIT" ]
null
null
null
examples/pes-1/prep_molpro.py
cbannwarth/aimsprop
9efd317f9d1e8f66e33b7a468845d5ace3e1852d
[ "MIT" ]
null
null
null
examples/pes-1/prep_molpro.py
cbannwarth/aimsprop
9efd317f9d1e8f66e33b7a468845d5ace3e1852d
[ "MIT" ]
null
null
null
import os import re import sys import numpy as np import aimsprop.atom_data as atom_data import aimsprop.manage_xyz as manage_xyz # TODO: make more invariant to filename (sbatch.sh) # run molpro calculations to obtain ionization potential information def prep_molpro( opt_in, ): """Runs molpro calculations ...
30.433121
104
0.595856
d3cd0d33673aa649786f1b4d9c8c94a842458964
3,266
py
Python
data_science_demo1.py
djrlj694/Python-Demo
b97a98bbb828ea60c383bb20888d647cad047075
[ "Unlicense" ]
null
null
null
data_science_demo1.py
djrlj694/Python-Demo
b97a98bbb828ea60c383bb20888d647cad047075
[ "Unlicense" ]
null
null
null
data_science_demo1.py
djrlj694/Python-Demo
b97a98bbb828ea60c383bb20888d647cad047075
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import cx_Oracle import impala.dbapi #from impala.dbapi import connect from impala.util import as_pandas # Convenience classes class Database(object): def __init__(self): """ The constructor for the class 'Database'. Args: ...
26.552846
101
0.543172
42b58a194be46ca628faacad3d0cebe522361215
2,505
py
Python
src/facebook.py
peicap/shadowads
d49fa962013e6cc136a24e7720f0c97bdb40cc63
[ "MIT" ]
null
null
null
src/facebook.py
peicap/shadowads
d49fa962013e6cc136a24e7720f0c97bdb40cc63
[ "MIT" ]
null
null
null
src/facebook.py
peicap/shadowads
d49fa962013e6cc136a24e7720f0c97bdb40cc63
[ "MIT" ]
null
null
null
import time from random import randint from bs4 import BeautifulSoup import re from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as ...
31.708861
99
0.748902
d211818a602b24345604d1e2a4be925908a0a64e
6,814
py
Python
django_filters/rest_framework/backends.py
kimbriancanavan/django-filter
3e1f32a8c9bbc49d40fd6aa57471b8b6eb1d32c6
[ "BSD-3-Clause" ]
null
null
null
django_filters/rest_framework/backends.py
kimbriancanavan/django-filter
3e1f32a8c9bbc49d40fd6aa57471b8b6eb1d32c6
[ "BSD-3-Clause" ]
null
null
null
django_filters/rest_framework/backends.py
kimbriancanavan/django-filter
3e1f32a8c9bbc49d40fd6aa57471b8b6eb1d32c6
[ "BSD-3-Clause" ]
null
null
null
import warnings from django import forms from django.template import loader from django.utils.deprecation import RenameMethodsBase from .. import compat, utils, fields from . import filters, filterset # TODO: remove metaclass in 2.1 class RenameAttributes(utils.RenameAttributesBase, RenameMethodsBase): rename...
36.832432
109
0.603904
8f874771e1b4e8325d357a731bddb06bcde77d1f
16,951
py
Python
numba/tests/test_array_reductions.py
ehsantn/numba
4749ef7ccc630b7f649ec972497bc5b7fca79303
[ "BSD-2-Clause", "MIT" ]
1
2019-02-03T21:16:20.000Z
2019-02-03T21:16:20.000Z
numba/tests/test_array_reductions.py
ehsantn/numba
4749ef7ccc630b7f649ec972497bc5b7fca79303
[ "BSD-2-Clause", "MIT" ]
null
null
null
numba/tests/test_array_reductions.py
ehsantn/numba
4749ef7ccc630b7f649ec972497bc5b7fca79303
[ "BSD-2-Clause", "MIT" ]
1
2019-12-31T22:54:30.000Z
2019-12-31T22:54:30.000Z
from __future__ import division from itertools import product import numpy as np from numba import unittest_support as unittest from numba import jit, typeof from numba.compiler import compile_isolated from numba.numpy_support import version as np_version from .support import TestCase, MemoryLeakMixin, tag def arr...
29.790861
113
0.622559
876719b1e1e03a27cb41e5b36ed7a121bb179888
690
py
Python
var/spack/repos/builtin/packages/py-sniffio/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-sniffio/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-sniffio/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PySniffio(PythonPackage): """This is a tiny package whose only purpose is to let you detec...
32.857143
95
0.733333
bc4c0ad46d84ebd74a185c3aea717babbd4e300f
33,974
py
Python
www/src/Lib/test/test_sys.py
stefanhoelzl/brython
433d272e7bb0e3c0994392f8f265bc39e87854f7
[ "BSD-3-Clause" ]
4
2018-03-19T12:07:18.000Z
2019-09-20T08:53:31.000Z
www/src/Lib/test/test_sys.py
SungBeom/BBAM_Brython
107036ad20a94af1d43e5ce5bd7c73e6a470d687
[ "BSD-3-Clause" ]
2
2017-04-14T03:52:41.000Z
2017-04-14T04:02:06.000Z
www/src/Lib/test/test_sys.py
SungBeom/BBAM_Brython
107036ad20a94af1d43e5ce5bd7c73e6a470d687
[ "BSD-3-Clause" ]
null
null
null
import unittest, test.support import sys, io, os import struct import subprocess import textwrap import warnings import operator import codecs # count the number of test runs, used to create unique # strings to intern in test_intern() numruns = 0 try: import threading except ImportError: threading = None cla...
37.293085
100
0.590658
b8f841b15b2805897958b0d459170cdbaafccb8b
4,786
wsgi
Python
backend/api/snapshot/report.wsgi
pstrinkle/popflip-image-stream
6cf1fe649ac53a91d913d1cf47cd9ec2f22765db
[ "Apache-2.0" ]
null
null
null
backend/api/snapshot/report.wsgi
pstrinkle/popflip-image-stream
6cf1fe649ac53a91d913d1cf47cd9ec2f22765db
[ "Apache-2.0" ]
null
null
null
backend/api/snapshot/report.wsgi
pstrinkle/popflip-image-stream
6cf1fe649ac53a91d913d1cf47cd9ec2f22765db
[ "Apache-2.0" ]
null
null
null
"""Report API Call handler for snapshots.""" from pymongo import Connection from pymongo.errors import InvalidId from bson.objectid import ObjectId from cgi import escape from urlparse import parse_qs from json import dumps from urllib import unquote # author will likely come from the auth session. # missing "data" i...
27.988304
80
0.63435
c07f8725bb99eb6d3a940190dd110eebc42b2834
8,067
py
Python
testscripts/RDKB/component/PAM/TS_PAM_DeviceUsers_EnableMSOUser.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/PAM/TS_PAM_DeviceUsers_EnableMSOUser.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/PAM/TS_PAM_DeviceUsers_EnableMSOUser.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
45.320225
119
0.710425
5656d05e16761c60509708b3e6de8cdf4e5fd944
2,005
py
Python
app/views/auth.py
liam-carswell/flask-dance-multi-provider
86e66154ea83963d6b729c0cc5b8a45ba2555ee8
[ "MIT" ]
null
null
null
app/views/auth.py
liam-carswell/flask-dance-multi-provider
86e66154ea83963d6b729c0cc5b8a45ba2555ee8
[ "MIT" ]
null
null
null
app/views/auth.py
liam-carswell/flask-dance-multi-provider
86e66154ea83963d6b729c0cc5b8a45ba2555ee8
[ "MIT" ]
null
null
null
from flask import Blueprint, request, redirect, url_for, flash, render_template from flask_login import login_required, login_user, logout_user, current_user from app.models import db, User, OAuth from app.forms import RegisterForm, LoginForm, SetPasswordForm, SetEmailForm blueprint = Blueprint("auth", __name__) @b...
30.378788
79
0.663342
8c51654b911a03f875af93a4c5d3b74e0ac8e047
1,408
py
Python
setup.py
jose-moran/GOSTnets
7dfbb1f1ebb4970ee49283b0d1d92af41a48624c
[ "MIT" ]
11
2019-12-09T19:18:46.000Z
2021-11-05T11:26:18.000Z
setup.py
jose-moran/GOSTnets
7dfbb1f1ebb4970ee49283b0d1d92af41a48624c
[ "MIT" ]
25
2019-06-19T11:30:26.000Z
2022-03-01T20:32:48.000Z
setup.py
jose-moran/GOSTnets
7dfbb1f1ebb4970ee49283b0d1d92af41a48624c
[ "MIT" ]
9
2019-06-26T17:27:43.000Z
2022-03-25T10:27:10.000Z
from setuptools import setup, find_packages setup( name="GOSTnets", version="1.0.1", packages=find_packages(), # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=[#'docutils>=0.3', 'geopandas>=0....
34.341463
86
0.574574
0488244fbbcb0ac2234aa1072ba921e840989c93
126
py
Python
codewof/programming/content/en/teenagers/solution.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
3
2019-08-29T04:11:22.000Z
2021-06-22T16:05:51.000Z
codewof/programming/content/en/teenagers/solution.py
uccser-admin/programming-practice-prototype
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
[ "MIT" ]
265
2019-05-30T03:51:46.000Z
2022-03-31T01:05:12.000Z
codewof/programming/content/en/teenagers/solution.py
samuelsandri/codewof
c9b8b378c06b15a0c42ae863b8f46581de04fdfc
[ "MIT" ]
7
2019-06-29T12:13:37.000Z
2021-09-06T06:49:14.000Z
age = int(input("How old are you? ")) if 13 <= age < 20: print("You are a teen") else: print("You aren't a teenager")
21
37
0.587302
87eed92ede2aa4a7270ff32d4e8efaa11b866408
2,306
py
Python
theories/parsing/slr1.py
xmnlab/poc-compilers
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
3
2021-06-21T23:51:10.000Z
2021-08-24T21:20:08.000Z
theories/parsing/slr1.py
xmnlab/poc-flex-bison
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
2
2021-06-24T15:19:52.000Z
2021-06-28T21:31:03.000Z
theories/parsing/slr1.py
xmnlab/poc-flex-bison
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
null
null
null
""" gramar 1: S -> A ( S ) B | \\varepsilon A -> S | S B | x | \\varepsilon B -> S B | y Items n the initial state of the SLR(1) parsing automaton for the previous grammar S: .A ( S ) B S: . A: .S A: .S B A: .x A: . B: .S B B: .y gramar 2: S -> E E -> E + T | T T -> T * F | F F -> id grammar 3: S -> a B S |...
16.013889
57
0.480919
186a674e7bdeccc254f9ce5c12df581b6a65d01d
48,473
py
Python
beets/library.py
tima/beets
13fede597f6c839c5c7d7a2a7fc5c8a07bb31174
[ "MIT" ]
null
null
null
beets/library.py
tima/beets
13fede597f6c839c5c7d7a2a7fc5c8a07bb31174
[ "MIT" ]
null
null
null
beets/library.py
tima/beets
13fede597f6c839c5c7d7a2a7fc5c8a07bb31174
[ "MIT" ]
null
null
null
# This file is part of beets. # Copyright 2015, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, ...
33.545329
79
0.59006
e6a12b2e6c68621a3e3b887879b2c25c028fe370
893
py
Python
src/alert/forms.py
gettis/tlsscout
55dd5a1dbc3329aa451bfd82aac9a0f68d52136f
[ "BSD-3-Clause" ]
9
2015-03-16T08:40:34.000Z
2020-10-13T15:15:38.000Z
src/alert/forms.py
gettis/tlsscout
55dd5a1dbc3329aa451bfd82aac9a0f68d52136f
[ "BSD-3-Clause" ]
6
2015-03-22T19:32:52.000Z
2022-02-11T03:39:24.000Z
src/alert/forms.py
gettis/tlsscout
55dd5a1dbc3329aa451bfd82aac9a0f68d52136f
[ "BSD-3-Clause" ]
8
2015-05-02T13:21:40.000Z
2020-09-30T17:59:49.000Z
from django import forms from alert.models import SiteAlert, TagAlert, GroupAlert ### enable site alert form class EnableSiteAlertForm(forms.ModelForm): class Meta: model = SiteAlert fields = [] ### disable site alert form class DisableSiteAlertForm(forms.ModelForm): class Meta: model ...
22.325
56
0.661814
023dbfe184925ea30052781cdca7dacb1407d622
3,086
py
Python
python/src/nnabla/experimental/graph_converters/batch_normalization_linear.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/experimental/graph_converters/batch_normalization_linear.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "Apache-2.0" ]
1
2020-11-09T07:33:29.000Z
2020-11-09T07:33:29.000Z
python/src/nnabla/experimental/graph_converters/batch_normalization_linear.py
Mattlk13/nnabla
09b7dfd03bd88366d1d1f6cc61492b42175e35e7
[ "Apache-2.0" ]
null
null
null
import nnabla as nn import numpy as np from .identity import IdentityConverter from .helpers import GraphInfo class BatchNormalizationLinearConverter(IdentityConverter): """ The parameters of the batch normalization replaced simple scale and bias. Args: black_list (list): Black list of the funct...
35.068182
95
0.567401
d2714f3870c3bf51d7052869716c06cecd6fab48
19,123
py
Python
bromelia/bromelia.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
bromelia/bromelia.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
bromelia/bromelia.py
post-cyberlabs/bromelia
a21c6af591fa3ebe5335f2f34b13b60f03a48b55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ bromelia.bromelia ~~~~~~~~~~~~~~~~~ This module contains the orchestrator to allow a seamless Diameter application implementation. :copyright: (c) 2020-present Henrique Marques Ribeiro. :license: MIT, see LICENSE for more details. """ import logging import multipro...
34.769091
116
0.591434
81e258e2b3b01479c057b80c9edfd844c1edec90
1,314
py
Python
load.py
piersy/theano-machine-learning
5c6be6ef03de69dac8062d080c0af70ff427f83c
[ "MIT" ]
1
2016-02-17T08:36:26.000Z
2016-02-17T08:36:26.000Z
load.py
piersy/theano-machine-learning
5c6be6ef03de69dac8062d080c0af70ff427f83c
[ "MIT" ]
null
null
null
load.py
piersy/theano-machine-learning
5c6be6ef03de69dac8062d080c0af70ff427f83c
[ "MIT" ]
null
null
null
import numpy as np import os datasets_dir = './media/datasets/' def one_hot(x, n): if type(x) == list: x = np.array(x) x = x.flatten() o_h = np.zeros((len(x), n)) o_h[np.arange(len(x)), x] = 1 return o_h def mnist(ntrain=60000, ntest=10000, onehot=True): data_dir = os.path.join(data...
26.28
64
0.599696
443156bb398c2d3e64c8bbb87f29e438502d053f
216
py
Python
models/ngi_models.py
rbaylon/ngi
97907dd687e15d35449f6cf850b6b37e379114ba
[ "BSD-3-Clause" ]
null
null
null
models/ngi_models.py
rbaylon/ngi
97907dd687e15d35449f6cf850b6b37e379114ba
[ "BSD-3-Clause" ]
null
null
null
models/ngi_models.py
rbaylon/ngi
97907dd687e15d35449f6cf850b6b37e379114ba
[ "BSD-3-Clause" ]
null
null
null
from baseapp import db class Chapter(db.Model): id = db.Column(db.BigInteger, primary_key=True) name = db.Column(db.String(100)) founder = db.Column(db.String(50)) founded = db.Column(db.String(10))
27
51
0.685185
62bcddfbe400085841ed4b1f7120a0ac85400623
6,372
py
Python
spot_micro_joy/scripts/spotMicroJoystickMove.py
luoyongh/spotMicro
2e33243c21342ab4159a59fe57ed7057adfcb0c5
[ "MIT" ]
null
null
null
spot_micro_joy/scripts/spotMicroJoystickMove.py
luoyongh/spotMicro
2e33243c21342ab4159a59fe57ed7057adfcb0c5
[ "MIT" ]
null
null
null
spot_micro_joy/scripts/spotMicroJoystickMove.py
luoyongh/spotMicro
2e33243c21342ab4159a59fe57ed7057adfcb0c5
[ "MIT" ]
null
null
null
#!/usr/bin/python import rospy from std_msgs.msg import Float32, Bool from sensor_msgs.msg import Joy from geometry_msgs.msg import Vector3 from geometry_msgs.msg import Twist from math import pi class SpotMicroJoystickControl(): BUTTON_IDLE = 0 BUTTON_WALK = 1 BUTTON_STAND = 2 BUTTON_PEE = 3 BUT...
37.046512
114
0.658977
fb5447021aba4be2ec17a89e1cbd854e53bed59a
1,258
py
Python
opsi/modules/draw/fps.py
ntamer03/opensight
ae811ba203b2fd8804087a5a2f249ace5fae6842
[ "MIT" ]
null
null
null
opsi/modules/draw/fps.py
ntamer03/opensight
ae811ba203b2fd8804087a5a2f249ace5fae6842
[ "MIT" ]
null
null
null
opsi/modules/draw/fps.py
ntamer03/opensight
ae811ba203b2fd8804087a5a2f249ace5fae6842
[ "MIT" ]
null
null
null
import datetime from dataclasses import dataclass import cv2 import numpy as np from opsi.manager.manager_schema import Function from opsi.util.cv import Mat class FPS: def __init__(self): self._start = None self._end = None self._numFrames = 0 def start(self): self._start =...
20.290323
70
0.565183
588cbe3c352c3fd571d939ee5b492e449cd9add3
1,471
py
Python
tests/test_airways.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
209
2018-06-29T10:55:27.000Z
2022-03-31T19:30:06.000Z
tests/test_airways.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
151
2018-10-05T12:47:53.000Z
2022-02-20T14:47:57.000Z
tests/test_airways.py
RaphaelDELAIR/traffic
47591f39f83e22aff65ae06987bce238cd2dd353
[ "MIT" ]
68
2018-12-19T13:42:34.000Z
2022-03-11T15:33:41.000Z
import pytest from traffic.data import airways, eurofirs def test_basic() -> None: foo = airways["FOO"] assert foo is None l888 = airways["L888"] assert l888 is not None assert 2.8e6 < l888.project_shape().length < 3e6 def test_through_extent() -> None: narak_airways = set( a.nam...
24.932203
74
0.60843
2c822638f1c9eac0eb8a3118d7e3026af1737670
6,353
py
Python
tools/eval.py
ruyijidan/PaddleDetection
e47e826ed1e4cefcbe4b6bdb1f976c68faa91799
[ "Apache-2.0" ]
2
2020-04-16T15:09:23.000Z
2020-05-18T04:49:48.000Z
tools/eval.py
o20157/PaddleDetection
8102aaad6ff1e0da181cf1db99189c80a0a533d1
[ "Apache-2.0" ]
null
null
null
tools/eval.py
o20157/PaddleDetection
8102aaad6ff1e0da181cf1db99189c80a0a533d1
[ "Apache-2.0" ]
2
2021-08-17T09:40:57.000Z
2021-12-29T03:25:26.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.099448
91
0.665198
c227b833814fc3e261cc96c4e13963b77e77ef73
5,191
py
Python
FileRoutes.py
lucassusanto/storage-service
24d1218dfd13f7876ae85f5b08ad2aef0b03b0f8
[ "MIT" ]
2
2020-08-07T08:00:26.000Z
2021-08-29T18:25:10.000Z
FileRoutes.py
lucassusanto/storage-service
24d1218dfd13f7876ae85f5b08ad2aef0b03b0f8
[ "MIT" ]
null
null
null
FileRoutes.py
lucassusanto/storage-service
24d1218dfd13f7876ae85f5b08ad2aef0b03b0f8
[ "MIT" ]
null
null
null
from flask import request, jsonify from flask_restful import Resource import os from AuthController import * from FileController import * class CreateFile(Resource): def __init__(self): token = request.headers.get('Authorization') self.username = Auth_Controller().verifyToken(token) def post(self): if not se...
23.703196
71
0.708149
c77c528215e6e0a6dc5e908b1242b426b4612cbf
477
py
Python
assistant/products/migrations/0004_auto_20200813_0203.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/products/migrations/0004_auto_20200813_0203.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/products/migrations/0004_auto_20200813_0203.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-13 02:03 from django.db import migrations import djmoney.models.fields class Migration(migrations.Migration): dependencies = [ ('products', '0003_auto_20200810_1252'), ] operations = [ migrations.AlterField( model_name='productvariant',...
23.85
107
0.647799
a4335caf120c9a37b6f29af9e12ab7293a2d552e
50
py
Python
agendamentos/__init__.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
1
2019-02-20T00:37:14.000Z
2019-02-20T00:37:14.000Z
agendamentos/__init__.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
null
null
null
agendamentos/__init__.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
null
null
null
from .app import create_app from .config import *
16.666667
27
0.78
282a2d6fb8531223acb5bc3779eee120bf326767
3,131
py
Python
mergify_engine/exceptions.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
mergify_engine/exceptions.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
mergify_engine/exceptions.py
GuillaumeOj/mergify-engine
c11c05d2fa7db8e7195c57147f1c6a845009a718
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # 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, so...
35.579545
129
0.695944
4e5119f1ad81b58dbc03b46d8c1d3bf29671715e
5,152
py
Python
timescans/calibration.py
tjlane/timescans
9b847ebc75602d0e5701656f7737ec6371c09f2b
[ "MIT" ]
null
null
null
timescans/calibration.py
tjlane/timescans
9b847ebc75602d0e5701656f7737ec6371c09f2b
[ "MIT" ]
1
2018-10-18T11:36:32.000Z
2018-10-18T11:36:32.000Z
timescans/calibration.py
tjlane/timescans
9b847ebc75602d0e5701656f7737ec6371c09f2b
[ "MIT" ]
1
2020-12-13T00:31:42.000Z
2020-12-13T00:31:42.000Z
import os import numpy as np from matplotlib import pyplot as plt def fit_errors(x, y, y_hat, bin_size): """ Compute errors for fit both 'locally' and 'globally'. Specifically, the R^2 statistic is computed as usual (global). Additionally, the data are binned across the domain (x > bin_size) and...
30.485207
86
0.55823
ea36c5f4187ebe3bae5e93c5d8a1dd4bf296c226
4,453
py
Python
Spaceship/parameters/aerosonde_parameters_Gazebo.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2020-06-07T00:14:42.000Z
2020-06-07T00:14:42.000Z
Spaceship/parameters/aerosonde_parameters_Gazebo.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
null
null
null
Spaceship/parameters/aerosonde_parameters_Gazebo.py
eyler94/ee674AirplaneSim
3ba2c6e685c2688a7f372475a7cd1f55f583d10e
[ "MIT" ]
1
2019-06-24T22:10:48.000Z
2019-06-24T22:10:48.000Z
import sys sys.path.append('..') import numpy as np from tools.tools import Euler2Quaternion ###################################################################################### # Initial Conditions ###################################################################################### # Initial c...
29.490066
86
0.473838
9645b387f8f24a9108932a9eb21d2a7aa641df46
1,063
py
Python
Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleD_WithFileDialog_WithoutWidget.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleD_WithFileDialog_WithoutWidget.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Applications/SlicerApp/Testing/Python/ScriptedModuleDiscoveryTest/ModuleD_WithFileDialog_WithoutWidget.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
from slicer.ScriptedLoadableModule import * SOMEVAR = 'D' class ModuleD_WithFileDialog_WithoutWidget(ScriptedLoadableModule): def __init__(self, parent): ScriptedLoadableModule.__init__(self, parent) self.parent.title = "Module A" self.parent.contributors = ["Jean-Christophe Fillion-Robin (Kitware)",] ...
27.25641
75
0.742239
7f86d93a6fca2d20f5f27a475dee41ec7014d8e9
6,323
py
Python
Python code/QPA without SSL/TestingFunctions.py
wsherry/QuantumPasswordAuthentication
682751d28c3fdcd1166749621cbb0e9db5fc169c
[ "MIT" ]
1
2021-10-21T21:56:31.000Z
2021-10-21T21:56:31.000Z
Python code/QPA without SSL/TestingFunctions.py
wsherry/QuantumPasswordAuthentication
682751d28c3fdcd1166749621cbb0e9db5fc169c
[ "MIT" ]
null
null
null
Python code/QPA without SSL/TestingFunctions.py
wsherry/QuantumPasswordAuthentication
682751d28c3fdcd1166749621cbb0e9db5fc169c
[ "MIT" ]
1
2022-02-03T22:42:43.000Z
2022-02-03T22:42:43.000Z
from qiskit import * def get_programs_for_test(server, challenge_input, program, permutation_key, sp_list, sp_mit_single_list, sp_mit_all_list, dp_list, meas_filter_singles, meas_filter_alls, rev_cnots, backend, num_shots): """ Prepares circuits for execution Parameters: server (Server): Server insta...
54.508621
202
0.748537
e093bcfedae0d88f489e810b6a81191862ee9e30
1,058
py
Python
workers/jobs/master_nodes.py
thiagopena/grua
d8b56d2b205c092a06866fffa689f0d831d1b338
[ "Apache-2.0" ]
null
null
null
workers/jobs/master_nodes.py
thiagopena/grua
d8b56d2b205c092a06866fffa689f0d831d1b338
[ "Apache-2.0" ]
null
null
null
workers/jobs/master_nodes.py
thiagopena/grua
d8b56d2b205c092a06866fffa689f0d831d1b338
[ "Apache-2.0" ]
null
null
null
import os import requests from glom import glom, Literal from common import CertsClass def nodes_sync(master_id, master_address): cert_instance = CertsClass(master_id) cert_path = cert_instance.get_cert() private_key_path = cert_instance.get_key() req = requests.get( f"https://{master_address...
32.060606
83
0.647448
9c3e7eeb84884241c97e3a2684b33523a4072273
5,165
py
Python
baselines/common/vec_env/test_vec_env.py
rainwangphy/DeepRL
140dfa209514400de8981660c04eed9e7065a4b6
[ "MIT" ]
null
null
null
baselines/common/vec_env/test_vec_env.py
rainwangphy/DeepRL
140dfa209514400de8981660c04eed9e7065a4b6
[ "MIT" ]
null
null
null
baselines/common/vec_env/test_vec_env.py
rainwangphy/DeepRL
140dfa209514400de8981660c04eed9e7065a4b6
[ "MIT" ]
null
null
null
""" Tests for asynchronous vectorized environments. """ import gym import numpy as np import pytest from .dummy_vec_env import DummyVecEnv from .shmem_vec_env import ShmemVecEnv from .subproc_vec_env import SubprocVecEnv from baselines.common.tests.test_with_mpi import with_mpi def assert_venvs_equal(venv1, venv2, n...
32.28125
92
0.650532
3dc3266224b3f954ad2f78e5c61458ff98ad22fa
5,138
py
Python
venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_vrf.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_vrf.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_vrf.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Mikhail Yohman (@FragmentedPacket) <mikhail.yohman@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_MET...
26.760417
92
0.604905
4f57f589929ae035b505d822b74181d484718e85
6,416
py
Python
Examples/Python/models/contact_person.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
4
2021-11-25T10:25:02.000Z
2021-12-01T09:37:55.000Z
Examples/Python/models/contact_person.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
null
null
null
Examples/Python/models/contact_person.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
2
2021-11-26T11:23:26.000Z
2021-12-09T10:44:34.000Z
# coding: utf-8 """ OpenApi ## ![N|Solid](https://duett.no/wp-content/uploads/2018/10/cropped-Duett-favicon-32x32.png) _How to take the Duett api in use_ To be able to use the API, you must have an interaction key and a client key. Eksample curl: ```swift curl -X 'GET' \\ 'https://api.duett.no/articl...
29.703704
970
0.566552
c5cda4d32ae5321b9527eab418181bc1bc11c540
6,611
py
Python
src/currency_core.py
Benys94/currency_converter
d5762c1446fda370e9801988d227ef2f02d00747
[ "MIT" ]
null
null
null
src/currency_core.py
Benys94/currency_converter
d5762c1446fda370e9801988d227ef2f02d00747
[ "MIT" ]
null
null
null
src/currency_core.py
Benys94/currency_converter
d5762c1446fda370e9801988d227ef2f02d00747
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ .. Created on 2018-07-15 .. codeauthor:: David Benes <benys94@gmail.com> """ import requests import simplejson import sys from os.path import join, abspath, dirname, pardir from requests.exceptions import RequestException from simplejson.errors import JSONDecodeError ...
30.606481
79
0.64665
0acc6bc8a6112a274b96396e47a252f60656f901
2,883
py
Python
python3/koans/about_method_bindings.py
BrianLoveGa/python_koans
1d1f8647d0882e2f8c3cbb8e209ff70d3c1dc279
[ "MIT" ]
null
null
null
python3/koans/about_method_bindings.py
BrianLoveGa/python_koans
1d1f8647d0882e2f8c3cbb8e209ff70d3c1dc279
[ "MIT" ]
null
null
null
python3/koans/about_method_bindings.py
BrianLoveGa/python_koans
1d1f8647d0882e2f8c3cbb8e209ff70d3c1dc279
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * def function(): return "pineapple" def function2(): return "tractor" class Class: def method(self): return "parrot" class AboutMethodBindings(Koan): def test_methods_are_bound_to_an_object(self): obj = Class() ...
30.670213
81
0.63094