hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
7c1247fafd266f5ae8d91a41ee6395bdd80f2bed
2,109
py
Python
tests/test_layouts.py
bczsalba/PyTermGUI
3e7cc741363e5ff37de552cf97c8f43405834cc3
[ "MIT" ]
40
2022-01-28T20:49:11.000Z
2022-02-19T22:33:52.000Z
tests/test_layouts.py
bczsalba/PyTermGUI
3e7cc741363e5ff37de552cf97c8f43405834cc3
[ "MIT" ]
12
2022-01-28T15:46:36.000Z
2022-02-15T06:52:15.000Z
tests/test_layouts.py
bczsalba/PyTermGUI
3e7cc741363e5ff37de552cf97c8f43405834cc3
[ "MIT" ]
5
2022-01-29T02:26:24.000Z
2022-02-07T18:12:58.000Z
import re import pytest from pytermgui.window_manager.layouts import Auto, Static import pytermgui as ptg def test_auto(): layout = ptg.Layout() layout.add_slot("Header") layout.add_break() layout.add_slot("Body") layout.add_break() layout.add_slot("Footer") assert str(layout.header.widt...
21.30303
121
0.644855
c4a9365069b6aab9b3559904c585c60b66a3144d
3,253
py
Python
jupyterlab/settings_handler.py
maartenbreddels/jupyterlab
3b4c1a3df53b7446516a4cb1138cc57ae91a7b80
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/settings_handler.py
maartenbreddels/jupyterlab
3b4c1a3df53b7446516a4cb1138cc57ae91a7b80
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/settings_handler.py
maartenbreddels/jupyterlab
3b4c1a3df53b7446516a4cb1138cc57ae91a7b80
[ "BSD-3-Clause" ]
null
null
null
"""Tornado handlers for frontend config storage.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import json import os from tornado import web from notebook.base.handlers import APIHandler, json_errors try: from jsonschema import ValidationError from js...
32.53
82
0.601599
4933993e05bce808f462453b91b50bc9a2822728
4,546
py
Python
selectable/tests/test_base.py
climapulse/django-selectable
bb6a3258e48628811cb6b0ec465a124446f75f7a
[ "BSD-2-Clause" ]
null
null
null
selectable/tests/test_base.py
climapulse/django-selectable
bb6a3258e48628811cb6b0ec465a124446f75f7a
[ "BSD-2-Clause" ]
null
null
null
selectable/tests/test_base.py
climapulse/django-selectable
bb6a3258e48628811cb6b0ec465a124446f75f7a
[ "BSD-2-Clause" ]
null
null
null
from django.urls import reverse from django.utils.html import escape from django.utils.safestring import SafeData, mark_safe from ..base import ModelLookup from . import Thing from .base import BaseSelectableTestCase, SimpleModelLookup __all__ = ( 'ModelLookupTestCase', 'MultiFieldLookupTestCase', 'Lookup...
34.969231
81
0.679059
20c810250db4cc9abd6fcb791b4a4d03c0af0acf
4,303
py
Python
litex_things/deps/litex_boards/litex_boards/partner/platforms/c10lprefkit.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
litex_things/deps/litex_boards/litex_boards/partner/platforms/c10lprefkit.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
litex_things/deps/litex_boards/litex_boards/partner/platforms/c10lprefkit.py
bjonnh/fomu-playground
9f95ed7b28d15ce219d09c16c2c8d6b5594adceb
[ "0BSD" ]
null
null
null
# This file is Copyright (c) 2019 Antti Lukats <antti.lukats@gmail.com> # This file is Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD from litex.build.generic_platform import * from litex.build.altera import AlteraPlatform from litex.build.altera.programmer import USBBlaster # IOs ----...
34.150794
100
0.519405
bfbf6a6bc7e86821dae9f64082f4fe3c9e241739
2,648
py
Python
Lime/lime_test.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
8
2020-08-26T13:32:56.000Z
2022-01-18T21:05:46.000Z
Lime/lime_test.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
1
2020-07-24T17:06:16.000Z
2020-07-24T17:06:16.000Z
Lime/lime_test.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
5
2020-12-11T03:31:15.000Z
2021-11-23T15:57:55.000Z
#!/usr/bin/env python # encoding: utf-8 """ @Author: yangwenhao @Contact: 874681044@qq.com @Software: PyCharm @File: lime_test.py @Time: 2019/12/7 下午8:11 @Overview: """ from PIL import Image import torch.nn as nn import numpy as np import os, json import torch from torchvision import models, transforms from torch.aut...
22.066667
104
0.668429
4d21515589d20f3f0192ca14d895e315d2901f26
9,896
py
Python
bounties_api/std_bounties/migrations/0018_auto_20190331_1807.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
45
2018-03-24T21:37:59.000Z
2021-11-12T11:53:04.000Z
bounties_api/std_bounties/migrations/0018_auto_20190331_1807.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
192
2018-03-15T22:42:51.000Z
2022-02-12T11:42:20.000Z
bounties_api/std_bounties/migrations/0018_auto_20190331_1807.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
27
2018-03-23T17:12:27.000Z
2021-12-06T02:21:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-03-31 18:07 from __future__ import unicode_literals import django.contrib.postgres.fields import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dep...
35.217082
127
0.563359
e47bd7bf1eb15f605f6c73124f082d9c92a5c0d7
141,283
py
Python
mne/viz/_brain/_brain.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
mne/viz/_brain/_brain.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
mne/viz/_brain/_brain.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # jona-sassenhagen <jona.sassenhagen@gmail.com> # Joan Massich <mailsik@gmail.com> #...
39.876658
79
0.536901
f68efa741ce414163be4ac25ef7459e3707b9b36
37,284
py
Python
zeus/modules/operators/functions/tensorflow_fn.py
shaido987/vega
14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6
[ "MIT" ]
1
2021-05-08T07:47:44.000Z
2021-05-08T07:47:44.000Z
zeus/modules/operators/functions/tensorflow_fn.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
null
null
null
zeus/modules/operators/functions/tensorflow_fn.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
32.647986
113
0.601143
ddd492a69cc89725e049fe010ffc0c18f834b74d
1,929
py
Python
c_nutra/config/settings/local.py
usbdevlab/C-Nutra
d20addafd343595a599231acb82a4af2fdb43c7f
[ "MIT" ]
null
null
null
c_nutra/config/settings/local.py
usbdevlab/C-Nutra
d20addafd343595a599231acb82a4af2fdb43c7f
[ "MIT" ]
null
null
null
c_nutra/config/settings/local.py
usbdevlab/C-Nutra
d20addafd343595a599231acb82a4af2fdb43c7f
[ "MIT" ]
null
null
null
"""Development settings and globals.""" from __future__ import absolute_import from os.path import join, normpath from .base import * import os # DEBUG CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-...
27.557143
108
0.675998
a1ddc8d6cb28fe84547c92baeaca8da80ac58c35
2,886
py
Python
azure-batch/azure/batch/models/pool_get_options.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
azure-batch/azure/batch/models/pool_get_options.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
azure-batch/azure/batch/models/pool_get_options.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.548387
216
0.703396
05b1433d757485fbc5db001edfedd18b005c99f2
445
py
Python
python/isbn-verifier/isbn_verifier.py
gdantaas/Exercism-Python
3a11f5010a1f740b73be458d9802ec074d6569a0
[ "MIT" ]
null
null
null
python/isbn-verifier/isbn_verifier.py
gdantaas/Exercism-Python
3a11f5010a1f740b73be458d9802ec074d6569a0
[ "MIT" ]
null
null
null
python/isbn-verifier/isbn_verifier.py
gdantaas/Exercism-Python
3a11f5010a1f740b73be458d9802ec074d6569a0
[ "MIT" ]
null
null
null
def is_valid(isbn): from functools import reduce import string isbn = isbn.replace('-', '') if len(isbn) != 10 or not isbn[:-1].isnumeric() or isbn[-1] not in string.digits + 'X': return False else: weights = range(10, 0, -1) digits = [10 if dig == 'X' else int(dig) for dig ...
40.454545
99
0.550562
9eca10719ff8baea606f3a54dcdab6d7d28ee272
447
py
Python
data/scripts/templates/object/mobile/shared_space_comm_station_lok.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_space_comm_station_lok.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_space_comm_station_lok.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_space_comm_station_lok.iff" result.attribute_template_id = 9 ...
26.294118
68
0.731544
f6cb14d3fb50b057a3ee2485ee2dbedd2a4e3115
16,007
py
Python
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/umgr/staging_input/default.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
1
2019-05-24T02:19:29.000Z
2019-05-24T02:19:29.000Z
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/umgr/staging_input/default.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/umgr/staging_input/default.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu" __license__ = "MIT" import os import tempfile import threading as mt import tarfile import radical.saga as rs import radical.utils as ru from ... import states as rps from ... import constants as rpc from ... import utils as rpu ...
38.202864
92
0.526207
b2110a5d25ed7e320ce30cfd180e57e879d0bf19
2,712
py
Python
app.py
brentajones/quotable
3aeb12901eff0875bff9865c591b0e09d3c0463c
[ "MIT" ]
1
2020-05-24T18:31:19.000Z
2020-05-24T18:31:19.000Z
app.py
brentajones/quotable
3aeb12901eff0875bff9865c591b0e09d3c0463c
[ "MIT" ]
1
2015-01-09T00:33:14.000Z
2015-01-09T00:33:14.000Z
app.py
registerguard/quotable
8d30f8da5bd5c5914ec3d41e810dbbbf70dbc2dc
[ "MIT" ]
1
2021-02-18T11:07:52.000Z
2021-02-18T11:07:52.000Z
#!/usr/bin/env python import json from mimetypes import guess_type import urllib import envoy from flask import Flask, Markup, abort, render_template import app_config import copytext from render_utils import flatten_app_config, make_context app = Flask(app_config.PROJECT_NAME) # Example application views @app.rou...
24.432432
73
0.659661
0920451f4ef9fdc9769d13a5e4bb7deddb3b95d6
23,325
py
Python
musicProfile/spotify.py
samkovaly/SpotifyAPIMusicProfile
0c3a82d65713bb2ad67d5b165fc027bbec83740e
[ "MIT" ]
1
2020-02-06T23:43:47.000Z
2020-02-06T23:43:47.000Z
musicProfile/spotify.py
samkovaly/SpotifyAPIMusicProfile
0c3a82d65713bb2ad67d5b165fc027bbec83740e
[ "MIT" ]
6
2020-07-12T23:22:08.000Z
2021-09-22T18:33:21.000Z
musicProfile/spotify.py
samkovaly/SpotifyAPIMusicProfile
0c3a82d65713bb2ad67d5b165fc027bbec83740e
[ "MIT" ]
null
null
null
from django.http import JsonResponse import requests import asyncio import aiohttp import numpy as np import pandas as pd from pandas import json_normalize import json from functools import reduce import unidecode from random import randint from time import sleep import traceback import sys import random import...
37.200957
172
0.593055
00eb4caa9c0a968f54c038495d46d899e38f052e
551
py
Python
mundo3/parte4/parteB/ex102.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo3/parte4/parteB/ex102.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo3/parte4/parteB/ex102.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
def fatorial(n = 0, show = False): """ -> Calcula o Fatorial de um numero inteiro. :param n: Número inteiro a ser calculado fornecido pelo usuario; :param show: imprime os passos realizados para o cálculo do fatorial de n. :return: O valor do Fatorial de um numero N Inteiro qualquer fornecido pelo u...
30.611111
88
0.586207
1b917810e3beed59dc653c80b64b384169d39434
326
py
Python
players/random_player.py
Kappeh/Alpha-Zero-General
344a2253bf48a3d12163258d27b1e81bfeb3b4f8
[ "MIT" ]
null
null
null
players/random_player.py
Kappeh/Alpha-Zero-General
344a2253bf48a3d12163258d27b1e81bfeb3b4f8
[ "MIT" ]
null
null
null
players/random_player.py
Kappeh/Alpha-Zero-General
344a2253bf48a3d12163258d27b1e81bfeb3b4f8
[ "MIT" ]
null
null
null
from random import choice from player import Player class Random_Player(Player): def __init__(self, game, name = 'Random Player'): super(Human_Player, self).__init__(game, name) def get_action(self, state_history): actions = self.game.legal_actions(state_history) return choice(act...
27.166667
56
0.705521
7d4eb2f65c7f193fb2227d493aeb996a1e6a6767
7,003
py
Python
simulate.py
jlombs/COVID19_ABS
fb258ac86acf3b65be923fd9106a202d778b1acd
[ "MIT" ]
2
2020-10-19T12:49:26.000Z
2021-06-03T09:03:15.000Z
simulate.py
jlombs/COVID19_ABS
fb258ac86acf3b65be923fd9106a202d778b1acd
[ "MIT" ]
null
null
null
simulate.py
jlombs/COVID19_ABS
fb258ac86acf3b65be923fd9106a202d778b1acd
[ "MIT" ]
null
null
null
# Script to execute the simulation from ABClasses import agent, environment from matplotlib import pyplot as plt import numpy as np # User Interface ########################################## # Establish the population: see the ABClasses.py documentation for details populationSize = 250 # Must be >= 10, expect slowd...
36.664921
185
0.697558
718156a8f8df1fc12e965b5b800d714356098d3e
946
py
Python
setup.py
dcmartin/Auto_TS
398a009be4814709c53ca644a0d3e228350ad5d9
[ "Apache-2.0" ]
1
2021-01-25T01:06:18.000Z
2021-01-25T01:06:18.000Z
setup.py
dcmartin/Auto_TS
398a009be4814709c53ca644a0d3e228350ad5d9
[ "Apache-2.0" ]
null
null
null
setup.py
dcmartin/Auto_TS
398a009be4814709c53ca644a0d3e228350ad5d9
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="auto_ts", version="0.0.28", author="Ram Seshadri", # author_email="author@example.com", description="Automatically Build Multiple Time Series models fast - now with Faceb...
27.028571
100
0.610994
1769c8bdd6b60e366f0519add3f81d5d940c93f4
4,180
py
Python
Tests/GUI/DMachineSetup/test_PWSlot29.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Tests/GUI/DMachineSetup/test_PWSlot29.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Tests/GUI/DMachineSetup/test_PWSlot29.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date Created on Wed Jan 20 14:10:24 2016 @copyright (C) 2015-2016 EOMYS ENGINEERING. @author pierre_b """ import sys from unittest import TestCase from PyQt5 import QtWidgets from PyQt5.QtTest import QTest from pyleecan.Classes.LamSlotWind import LamSlotWind from pyleecan.Classes.SlotW29...
35.12605
81
0.642105
f9ce48baa3aa5591af4f44f77e4dd9bc0aae86c4
4,540
py
Python
tests/sfmutils/test_find_warcs.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
2
2016-05-08T06:44:13.000Z
2016-05-16T15:07:22.000Z
tests/sfmutils/test_find_warcs.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
13
2015-12-02T22:00:22.000Z
2021-10-29T21:01:01.000Z
tests/sfmutils/test_find_warcs.py
NGTmeaty/sfm-utils
47ac6b8a894f5b02d947d76c74aa61d59cb5d48d
[ "MIT" ]
4
2020-05-27T05:05:05.000Z
2021-02-12T22:28:47.000Z
import tests from mock import patch, MagicMock, call from sfmutils.find_warcs import main from sfmutils.api_client import ApiClient class TestFindWarcs(tests.TestCase): @patch("sfmutils.find_warcs.sys") @patch("sfmutils.find_warcs.ApiClient", autospec=True) def test_find_warcs(self, mock_api_client_cls, m...
57.468354
112
0.659912
e8fd660323f01244ff7da634a5387e0ec3f63e2b
2,905
py
Python
main.py
coeragames/img-anal
ea28d91a416dd2ab2393f573e8cb83d6bb78dbfa
[ "Apache-2.0" ]
1
2021-02-07T08:51:03.000Z
2021-02-07T08:51:03.000Z
main.py
coeragames/img-anal
ea28d91a416dd2ab2393f573e8cb83d6bb78dbfa
[ "Apache-2.0" ]
null
null
null
main.py
coeragames/img-anal
ea28d91a416dd2ab2393f573e8cb83d6bb78dbfa
[ "Apache-2.0" ]
null
null
null
from PIL import Image from PIL import ImageFilter import wget import os import cv2 import numpy as np import matplotlib.pyplot as plt url = -1 analyse = -1 analyse = url = input("Rentre le chemin l'image à analyser: ") if url != "text" : wget.download(url, 'img') img_name = -1 img_name = input(" Niquel ! Qu...
33.77907
86
0.598967
899eb1809b219a45912d3a3b45f8936257d5b266
1,870
py
Python
jobsubmit.py
tarasowski/machine-learning-plagiarism-detector
d499883af3a8968e1f96d730dfd3b4dfe1d1d50f
[ "MIT" ]
3
2020-04-13T07:59:25.000Z
2021-01-28T12:57:25.000Z
jobsubmit.py
tarasowski/machine-learning-plagiarism-detector
d499883af3a8968e1f96d730dfd3b4dfe1d1d50f
[ "MIT" ]
1
2021-03-31T19:33:28.000Z
2021-03-31T19:33:28.000Z
jobsubmit.py
tarasowski/machine-learning-plagiarism-detector
d499883af3a8968e1f96d730dfd3b4dfe1d1d50f
[ "MIT" ]
1
2021-01-31T03:32:53.000Z
2021-01-31T03:32:53.000Z
import sagemaker from sagemaker.sklearn.estimator import SKLearn from sklearn.metrics import accuracy_score import boto3 import pandas as pd import os role = 'SageMakerRole' sagemaker_session = sagemaker.Session() bucket = sagemaker_session.default_bucket() train_key = './models/train.csv' test_key = './models/test....
31.166667
87
0.629947
a0c8d9fe55a3dd14f4f12b8230d0caf29236abdd
3,554
py
Python
bindings/python/ensmallen/datasets/string/alicyclobacillusacidocaldariuslaa1.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/alicyclobacillusacidocaldariuslaa1.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/alicyclobacillusacidocaldariuslaa1.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Alicyclobacillus acidocaldarius LAA1. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: pr...
33.847619
223
0.684299
ab064ba35d3d1d4f2041be96a30708fb3eb21cb6
12,768
py
Python
test/python/transpiler/test_template_matching.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
1
2021-09-25T18:49:52.000Z
2021-09-25T18:49:52.000Z
test/python/transpiler/test_template_matching.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
6
2019-02-14T04:42:41.000Z
2021-06-09T05:50:56.000Z
test/python/transpiler/test_template_matching.py
Elliot-Coupe/qiskit-terra
8a604e156ba4c2fa099b1c24cd941f59b9408398
[ "Apache-2.0" ]
1
2020-04-15T07:23:23.000Z
2020-04-15T07:23:23.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 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 modifications or derivative wo...
34.980822
98
0.512296
d246356b4ec75a96162d0b37d4d1cbfab9493440
31,626
py
Python
python/paddle/fluid/tests/unittests/test_reduce_op.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
2
2022-03-30T09:55:45.000Z
2022-03-30T09:55:49.000Z
python/paddle/fluid/tests/unittests/test_reduce_op.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_reduce_op.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
1
2022-03-02T11:36:03.000Z
2022-03-02T11:36:03.000Z
# Copyright (c) 2018 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 app...
33.150943
99
0.567413
7d795b8e6a0f3602692577a7243a8678a11f0360
9,211
py
Python
pygame_menu/examples/game_selector.py
arpruss/pygame-menu
25cefb5cfc60383544d704b83a32d43dfc621c23
[ "MIT" ]
null
null
null
pygame_menu/examples/game_selector.py
arpruss/pygame-menu
25cefb5cfc60383544d704b83a32d43dfc621c23
[ "MIT" ]
null
null
null
pygame_menu/examples/game_selector.py
arpruss/pygame-menu
25cefb5cfc60383544d704b83a32d43dfc621c23
[ "MIT" ]
null
null
null
""" pygame-menu https://github.com/ppizarror/pygame-menu EXAMPLE - GAME SELECTOR Game with 3 difficulty options. License: ------------------------------------------------------------------------------- The MIT License (MIT) Copyright 2017-2021 Pablo Pizarro R. @ppizarror Permission is hereby granted, free of charge,...
33.133094
90
0.538921
13afde7ce4be755730ecbf48fe1774ab9444f9ff
1,793
py
Python
Attention_recurrent_models/main.py
kishormishra3/DeepLearn
bc0dfad7b4694aa5d872b5bdddd6e3a17d139d7d
[ "MIT" ]
1,756
2017-05-24T12:46:44.000Z
2022-03-30T15:23:26.000Z
Attention_recurrent_models/main.py
kishormishra3/DeepLearn
bc0dfad7b4694aa5d872b5bdddd6e3a17d139d7d
[ "MIT" ]
20
2017-05-23T15:23:39.000Z
2019-04-12T18:07:04.000Z
Attention_recurrent_models/main.py
kishormishra3/DeepLearn
bc0dfad7b4694aa5d872b5bdddd6e3a17d139d7d
[ "MIT" ]
355
2017-05-29T12:37:19.000Z
2022-01-25T15:23:50.000Z
""" ** deeplean-ai.com ** ** dl-lab ** created by :: GauravBh1010tt """ import sys sys.path.append("..\_deeplearn_utils") import model_WALSTM as model import wiki_utils as wk from dl_text.metrics import eval_metric from dl_text import dl glove_fname = 'K:/workspace/neural network/Trec_QA-master/glove.6B.50d.txt' ##...
32.6
118
0.629671
fb0e26d3ed89dca74ad0662fe87650833b879ba3
2,808
py
Python
directories.py
carlocarfora/staticfolio
6b03041e0d323c865ba1eb696d69ce4f06b7f9a5
[ "Unlicense" ]
null
null
null
directories.py
carlocarfora/staticfolio
6b03041e0d323c865ba1eb696d69ce4f06b7f9a5
[ "Unlicense" ]
null
null
null
directories.py
carlocarfora/staticfolio
6b03041e0d323c865ba1eb696d69ce4f06b7f9a5
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import os import shutil def setup_template_dirs(destination=None): """ Copies template directories to output folder for deployment. Copies the folders plus contents inside the template directory so that the generated website has the relevant folders and scripts ne...
28.653061
73
0.5901
0b114626314bfba1580c5a8f84cd0fec162b4b88
860
py
Python
tests/big_map_diff/onu6qg9yCUeFRRjKR9RWVp23TEKuHGk7Ew8sivZ2thPveidn5yu/test_big_map_onu6qg.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-08-11T02:31:24.000Z
2020-08-11T02:31:24.000Z
tests/big_map_diff/onu6qg9yCUeFRRjKR9RWVp23TEKuHGk7Ew8sivZ2thPveidn5yu/test_big_map_onu6qg.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/big_map_diff/onu6qg9yCUeFRRjKR9RWVp23TEKuHGk7Ew8sivZ2thPveidn5yu/test_big_map_onu6qg.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import get_data from pytezos.michelson.contract import ContractStorage class BigMapCodingTestonu6qg(TestCase): def setUp(self): self.maxDiff = None def test_big_map_onu6qg(self): section = get_data( path='big_map_diff/onu6qg9yCUeFRRjK...
31.851852
105
0.683721
a47bc3b92734c10b2e8cae084fd7c5d534397894
16,536
py
Python
airflow/jobs/triggerer_job.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/jobs/triggerer_job.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/jobs/triggerer_job.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.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...
39.654676
105
0.623609
74211a448c022505f790947e7390e2f3d7afb3fb
4,312
py
Python
python/GafferUITest/NoduleTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferUITest/NoduleTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferUITest/NoduleTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided ...
26.453988
96
0.675788
2d1b54396237bc2cb39444974ab1219eb66ae951
2,417
py
Python
zerver/tests/test_subdomains.py
alex784004/patient
a6510c4626392b9a8385cbac82698d9e23df0a55
[ "Apache-2.0" ]
1
2019-01-13T20:47:29.000Z
2019-01-13T20:47:29.000Z
zerver/tests/test_subdomains.py
alex784004/patient
a6510c4626392b9a8385cbac82698d9e23df0a55
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_subdomains.py
alex784004/patient
a6510c4626392b9a8385cbac82698d9e23df0a55
[ "Apache-2.0" ]
null
null
null
import mock from typing import Any, Dict, List from django.test import TestCase, override_settings from zerver.lib.subdomains import get_subdomain from zerver.models import Realm class SubdomainsTest(TestCase): def test_get_subdomain(self) -> None: def request_mock(host: str) -> Any: reques...
43.945455
87
0.609433
29ad84965bd37a2b54e0f9dc40337551e7f6c461
2,839
py
Python
ects/pools/pool_config.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
ects/pools/pool_config.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
ects/pools/pool_config.py
ects-io/ects-blockchain
a798034a8c8bce34d4b87fb2c98351d06f9eaf8e
[ "Apache-2.0" ]
null
null
null
import logging from dataclasses import dataclass from pathlib import Path from typing import List from blspy import G1Element from ects.types.blockchain_format.sized_bytes import bytes32 from ects.util.byte_types import hexstr_to_bytes from ects.util.config import load_config, save_config from ects.util.streamable im...
41.75
127
0.755548
4f02942b8e373e1b5466dee07dc927fcb2c7285f
270
py
Python
examples/simple.py
alcarithemad/pyndata
67586f95a74c72ff1f8796ccc213f660bdaee110
[ "BSD-2-Clause" ]
3
2016-03-22T17:33:27.000Z
2017-07-18T03:20:42.000Z
examples/simple.py
alcarithemad/pyndata
67586f95a74c72ff1f8796ccc213f660bdaee110
[ "BSD-2-Clause" ]
null
null
null
examples/simple.py
alcarithemad/pyndata
67586f95a74c72ff1f8796ccc213f660bdaee110
[ "BSD-2-Clause" ]
null
null
null
import pyndata class Message(pyndata.Struct): msg_type = pyndata.uint8() msg_length = pyndata.uint16(endian='big') payload = pyndata.bytestring(length=msg_length) m = Message() m.msg_type = 1 m.payload = b'asdf' print(repr(m.pack())) # '\x01\x00\x04asdf'
20.769231
51
0.696296
ae976a63dd18e01c83ef7eeb6ee2cd443f3ebba8
160
py
Python
pybigo/__init__.py
endremborza/pybigo
8524316c8f757c4910319fe7f5cc807388a4254e
[ "MIT" ]
null
null
null
pybigo/__init__.py
endremborza/pybigo
8524316c8f757c4910319fe7f5cc807388a4254e
[ "MIT" ]
null
null
null
pybigo/__init__.py
endremborza/pybigo
8524316c8f757c4910319fe7f5cc807388a4254e
[ "MIT" ]
null
null
null
from ._version import __version__ # noqa: F401 from .core.estimator import BigOEstimator # noqa: F401 from .core.comparison import compare_time # noqa: F401
40
55
0.78125
2e3495a74cd9637bbd8bd5e99e47ccfd4b0c74da
2,656
py
Python
quotamanager/quotamanager.py
betacloud/tools
3bb8c704d2fbd697018136505185cb1182a988fa
[ "Apache-2.0" ]
null
null
null
quotamanager/quotamanager.py
betacloud/tools
3bb8c704d2fbd697018136505185cb1182a988fa
[ "Apache-2.0" ]
null
null
null
quotamanager/quotamanager.py
betacloud/tools
3bb8c704d2fbd697018136505185cb1182a988fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os_client_config import shade import yaml CLOUDNAME = 'service' #shade.simple_logging(debug=True, http_debug=True) def set_quotaclass(project, quotaclass="default"): keystone = os_client_config.make_client('identity', cloud=CLOUDNAME) keystone.projects.update(project.id, **{"quo...
40.861538
133
0.676205
16c0faf601736d9a872868b1a9162c29b74ad703
2,454
py
Python
eelgraph/charts.py
jamsterwes/eelgraph
59a0b1b2c2d423a6ef6a5e370f1b6d06cd0b8469
[ "MIT" ]
null
null
null
eelgraph/charts.py
jamsterwes/eelgraph
59a0b1b2c2d423a6ef6a5e370f1b6d06cd0b8469
[ "MIT" ]
null
null
null
eelgraph/charts.py
jamsterwes/eelgraph
59a0b1b2c2d423a6ef6a5e370f1b6d06cd0b8469
[ "MIT" ]
null
null
null
import eelgraph.colors as colors import json class Chart(object): obj = {} def recalc(self): pass def tojson(self): self.recalc() return json.dumps(self.obj) class Doughnut(Chart): def __init__(self, data, colorSet=colors.best): self.data = data self.colors ...
28.534884
72
0.466585
bd15bcea41a0b85a67c4744cb73866d81e989e8b
5,801
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/_resource_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/_resource_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/aio/_resource_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.336283
129
0.733149
057e50355be2a0142f87718dcb502ab0a635bfc2
2,431
py
Python
streams code/code.py
saba-in/live-streaming-of-IoT-data-using-streaming-analytics
543016a598317c43bce167d4b210be21650f4c9e
[ "Apache-2.0" ]
null
null
null
streams code/code.py
saba-in/live-streaming-of-IoT-data-using-streaming-analytics
543016a598317c43bce167d4b210be21650f4c9e
[ "Apache-2.0" ]
null
null
null
streams code/code.py
saba-in/live-streaming-of-IoT-data-using-streaming-analytics
543016a598317c43bce167d4b210be21650f4c9e
[ "Apache-2.0" ]
1
2020-07-30T10:09:08.000Z
2020-07-30T10:09:08.000Z
# # YOU MUST EDIT THE SCHEMA and add all attributes that you are returning as output. # # Preinstalled Python packages can be viewed from the Settings pane. # In the Settings pane you can also install additional Python packages. import sys import logging import pickle import pandas as pd # Use this logger for tracing...
39.852459
175
0.733854
7c941883ac16df886cf59630b26b32ee75481c36
2,771
py
Python
src/sentry_plugins/jira_ac/utils.py
MattPark/sentry-plugins
3b08a43ea9ca1fb0fd183c3fe7bd5606f14ba993
[ "Apache-2.0" ]
null
null
null
src/sentry_plugins/jira_ac/utils.py
MattPark/sentry-plugins
3b08a43ea9ca1fb0fd183c3fe7bd5606f14ba993
[ "Apache-2.0" ]
2
2018-05-26T13:19:41.000Z
2018-06-01T20:14:41.000Z
src/sentry_plugins/jira_ac/utils.py
MattPark/sentry-plugins
3b08a43ea9ca1fb0fd183c3fe7bd5606f14ba993
[ "Apache-2.0" ]
1
2018-05-26T11:45:46.000Z
2018-05-26T11:45:46.000Z
from __future__ import absolute_import import hashlib import jwt from six.moves.urllib.parse import quote from sentry_plugins.exceptions import ApiError def percent_encode(val): # see https://en.wikipedia.org/wiki/Percent-encoding return quote(val.encode('utf8', errors='replace')).replace('%7E', '~').repla...
39.585714
100
0.690364
1da3c59ec3e6707daf650f5e5b58807ae339242e
355
py
Python
L2/cifar10_download.py
busyyang/DL_21tensorflow
ccac457b66a80f3de80d14d503e6cec8681537eb
[ "MIT" ]
null
null
null
L2/cifar10_download.py
busyyang/DL_21tensorflow
ccac457b66a80f3de80d14d503e6cec8681537eb
[ "MIT" ]
null
null
null
L2/cifar10_download.py
busyyang/DL_21tensorflow
ccac457b66a80f3de80d14d503e6cec8681537eb
[ "MIT" ]
null
null
null
# coding:utf-8 # 引入当前目录中的已经编写好的cifar10模块 import cifar10 # 引入tensorflow import tensorflow as tf # tf.app.flags.FLAGS是TensorFlow内部的一个全局变量存储器,同时可以用于命令行参数的处理 FLAGS = tf.app.flags.FLAGS # 在cifar10模块中预先定义了f.app.flags.FLAGS.data_dir为CIFAR-10的数据路径 # 我们把这个路径改为cifar10_data FLAGS.data_dir = 'cifar10_data/' # 如果不存在数据文件,就会执行下载 ci...
23.666667
58
0.830986
329f0ebb933f469915be13ef7f18b84afe34ee27
1,848
py
Python
beer_search_v2/management/commands/update_untappd_items.py
Ernir/bjorleitin
b1850ecfa5e2694961a34d450430a001a1a39a5e
[ "MIT" ]
1
2016-08-18T19:06:54.000Z
2016-08-18T19:06:54.000Z
beer_search_v2/management/commands/update_untappd_items.py
Ernir/bjorleitin
b1850ecfa5e2694961a34d450430a001a1a39a5e
[ "MIT" ]
null
null
null
beer_search_v2/management/commands/update_untappd_items.py
Ernir/bjorleitin
b1850ecfa5e2694961a34d450430a001a1a39a5e
[ "MIT" ]
null
null
null
from beer_search_v2.utils import update_untappd_item from beer_search_v2.models import ModifiableSetting, UntappdEntity from django.core.management.base import BaseCommand class Command(BaseCommand): def __init__(self): self.verbose = True super().__init__() def get_indices(self): ""...
33.6
86
0.665584
394902d1ad4cb6774f7dd3f6ad2a45e768efc1d7
151
py
Python
app/tools/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/tools/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/tools/__init__.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module '__init__.py' of the project 'tingerwork' # :date_create: 04.12.2017.23:59 # :author: Tingerlink # :description:
25.166667
51
0.649007
5ab37ca17d6d150f7bc0e8c9f3b0d72ca6fbeda6
59,275
py
Python
awx/main/models/unified_jobs.py
withshubh/awx
38f3176221fe6981f38931d050705b736ea89fdc
[ "Apache-2.0" ]
null
null
null
awx/main/models/unified_jobs.py
withshubh/awx
38f3176221fe6981f38931d050705b736ea89fdc
[ "Apache-2.0" ]
null
null
null
awx/main/models/unified_jobs.py
withshubh/awx
38f3176221fe6981f38931d050705b736ea89fdc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Python from io import StringIO import datetime import codecs import json import logging import os import re import socket import subprocess import tempfile from collections import OrderedDict # Django from django.conf import settings from django.db import mo...
38.945466
160
0.623383
7bb48801bd147abe300c5fd6239c2e6a1e97c94d
1,729
py
Python
src/outpost/django/campusonline/migrations/0029_indices.py
medunigraz/outpost.django.campusonline
06776bce7556e438c1e00a96aaa9271a7aac8fe4
[ "BSD-2-Clause" ]
null
null
null
src/outpost/django/campusonline/migrations/0029_indices.py
medunigraz/outpost.django.campusonline
06776bce7556e438c1e00a96aaa9271a7aac8fe4
[ "BSD-2-Clause" ]
null
null
null
src/outpost/django/campusonline/migrations/0029_indices.py
medunigraz/outpost.django.campusonline
06776bce7556e438c1e00a96aaa9271a7aac8fe4
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-31 09:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): forward = [ """ CREATE UNIQUE INDEX campusonline_distributionlist_id_idx ON "public"."campusonline_distributio...
35.285714
187
0.676692
a662acb0840929271afe5603be0c35e68bf2cc5c
218
py
Python
backend/tiagoflix/utils.py
tiagodomp/tiagoflix
87b36450e55d0c9b8de9321b6cb4d44bb9fe31ce
[ "MIT" ]
null
null
null
backend/tiagoflix/utils.py
tiagodomp/tiagoflix
87b36450e55d0c9b8de9321b6cb4d44bb9fe31ce
[ "MIT" ]
9
2020-06-05T20:17:54.000Z
2022-02-26T21:54:45.000Z
backend/tiagoflix/utils.py
tiagodomp/tiagoflix
87b36450e55d0c9b8de9321b6cb4d44bb9fe31ce
[ "MIT" ]
null
null
null
from core.serializers import UserSerializer def jwt_response_handler(token, user=None, request=None): return { 'token': token, 'user': UserSerializer(user, context={'request': request}).data }
27.25
71
0.683486
c3bd80e8459ec985727a7d23dd7bfe995c1c7664
485
py
Python
sm/usage.py
lrahal/dash-component-boilerplate
698513dc790917110b6da08066a73cb9f8a9e871
[ "MIT" ]
null
null
null
sm/usage.py
lrahal/dash-component-boilerplate
698513dc790917110b6da08066a73cb9f8a9e871
[ "MIT" ]
null
null
null
sm/usage.py
lrahal/dash-component-boilerplate
698513dc790917110b6da08066a73cb9f8a9e871
[ "MIT" ]
null
null
null
import sm import dash from dash.dependencies import Input, Output import dash_html_components as html app = dash.Dash(__name__) app.layout = html.Div([ sm.SideMenu( id='input', value='my-value', label='my-label' ), html.Div(id='output') ]) @app.callback(Output('output', 'children...
19.4
70
0.653608
702f04096bbabe17f3edf7a05edcbbfabbc4c298
375
py
Python
eslearn/machine_learning/webread.py
lichao312214129/easylearn
e77b51b26e0c75b3a4d59dd5a71cf1b63ac4347d
[ "MIT" ]
19
2020-02-29T06:00:18.000Z
2022-01-24T01:30:14.000Z
machine_learning/webread.py
easylearn-fmri/easylearn
102ff264a7672b246244a489e0fbde8e3897c52f
[ "MIT" ]
7
2020-04-02T03:05:21.000Z
2020-11-11T11:45:05.000Z
machine_learning/webread.py
easylearn-fmri/easylearn
102ff264a7672b246244a489e0fbde8e3897c52f
[ "MIT" ]
11
2020-03-03T03:02:15.000Z
2020-11-11T14:09:55.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jan 19 16:54:28 2021 @author: Li Chao Email: lichao19870617@163.com """ import re import requests r = requests.get('https://github.com/easylearn-fmri/easylearn_dev/blob/dev/eslearn_news.txt') text = r.text s = "__version__ = (\d+.\d+.\d+)##endLabel##" pattern = re.compile(s...
22.058824
93
0.682667
216554da2461101fa873620ad700066c05632cf4
5,427
py
Python
scrapers/hackerearth/test_unlock.py
0bserver07/neural-engineers-first-attempt
19760251b7080ffe2e7b15146af6844811da4141
[ "MIT" ]
10
2017-09-10T14:42:36.000Z
2020-12-03T11:45:17.000Z
scrapers/hackerearth/test_unlock.py
0bserver07/neural-engineers-first-attempt
19760251b7080ffe2e7b15146af6844811da4141
[ "MIT" ]
null
null
null
scrapers/hackerearth/test_unlock.py
0bserver07/neural-engineers-first-attempt
19760251b7080ffe2e7b15146af6844811da4141
[ "MIT" ]
7
2017-10-03T04:43:50.000Z
2020-09-23T14:39:27.000Z
# -*- coding: utf-8 -*- import shutil import os import re import requests import urllib2 from pprint import pprint import bs4 from bs4 import BeautifulSoup import html2text import time import argparse import datetime from sys import argv import time from selenium import webdriver from selenium.common.exceptions import ...
30.661017
136
0.619495
882f24d80cd46b562a0b2c81a5506e70153440f2
1,036
py
Python
tests/test_kubeflow.py
tidylobster/workflow-orhcestrator
a282f21d74e6616d19bdd715b7ad3d6cbf0ec046
[ "Apache-2.0" ]
null
null
null
tests/test_kubeflow.py
tidylobster/workflow-orhcestrator
a282f21d74e6616d19bdd715b7ad3d6cbf0ec046
[ "Apache-2.0" ]
null
null
null
tests/test_kubeflow.py
tidylobster/workflow-orhcestrator
a282f21d74e6616d19bdd715b7ad3d6cbf0ec046
[ "Apache-2.0" ]
null
null
null
import wo, os, shutil, pytest, json import random, logging, urllib.parse logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) # Tests # ----- @pytest.fixture def w(): yield wo.Orchestrator(dev=True) def test_export_outputs_json(w): outputs = { "mlpipeline-ui-metadata.json...
24.666667
67
0.586873
60d4a184db567f92856e65e1d8ad8c6361769649
995
py
Python
shot_scraper/utils.py
ryancheley/shot-scraper
8d103ae6121031ea7a8799fcac4d2d2dcf8525a2
[ "Apache-2.0" ]
409
2022-03-09T00:38:32.000Z
2022-03-31T18:19:37.000Z
shot_scraper/utils.py
ryancheley/shot-scraper
8d103ae6121031ea7a8799fcac4d2d2dcf8525a2
[ "Apache-2.0" ]
52
2022-03-08T23:28:34.000Z
2022-03-29T06:22:28.000Z
shot_scraper/utils.py
ryancheley/shot-scraper
8d103ae6121031ea7a8799fcac4d2d2dcf8525a2
[ "Apache-2.0" ]
19
2022-03-09T17:35:26.000Z
2022-03-30T09:27:28.000Z
import urllib.parse import re disallowed_re = re.compile("[^a-zA-Z0-9_-]") def file_exists_never(filename): return False def filename_for_url(url, ext=None, file_exists=file_exists_never): ext = ext or "png" bits = urllib.parse.urlparse(url) filename = (bits.netloc + bits.path).replace(".", "-").re...
30.151515
88
0.648241
b86f5d69fa94d709d3d5c26831a1d2be942d5a57
10,597
py
Python
library/pyjamas/ui/vertsplitpanel.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
1
2017-09-09T11:58:36.000Z
2017-09-09T11:58:36.000Z
library/pyjamas/ui/vertsplitpanel.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/pyjamas/ui/vertsplitpanel.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Vertical Split Panel: Top and Bottom layouts with a movable splitter. /* * Copyright 2008 Google Inc. * Copyright (C) 2008, 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> * * Licensed under the Apache License, Version 2.0 (the "License") you may not * use self file except in compliance with the Licens...
34.973597
89
0.638388
409177455fc83030b6536fb67dd5d72c321db1b2
4,735
py
Python
tax-processing-pipeline-python/main.py
jiya-zhang/document-ai-samples
554187272cae6732b42e6f8311c4c57ee927fb80
[ "Apache-2.0" ]
3
2022-02-23T19:59:32.000Z
2022-03-10T21:59:37.000Z
tax-processing-pipeline-python/main.py
jiya-zhang/document-ai-samples
554187272cae6732b42e6f8311c4c57ee927fb80
[ "Apache-2.0" ]
1
2022-03-10T22:15:09.000Z
2022-03-10T22:53:23.000Z
tax-processing-pipeline-python/main.py
jiya-zhang/document-ai-samples
554187272cae6732b42e6f8311c4c57ee927fb80
[ "Apache-2.0" ]
2
2022-03-10T21:33:53.000Z
2022-03-14T15:25:53.000Z
# Copyright 2022 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.159236
85
0.714467
7f06fb3a7788c671a5dcbb9ebdac2cd4b43bd981
793
py
Python
pandas/core/internals/__init__.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-26T22:11:21.000Z
2020-04-26T22:11:21.000Z
pandas/core/internals/__init__.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-16T05:21:06.000Z
2020-04-16T05:21:06.000Z
pandas/core/internals/__init__.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-19T11:52:05.000Z
2020-06-19T11:52:05.000Z
from pandas.core.internals.blocks import ( # io.pytables, io.packers Block, BoolBlock, CategoricalBlock, ComplexBlock, DatetimeBlock, DatetimeTZBlock, ExtensionBlock, FloatBlock, IntBlock, ObjectBlock, TimeDeltaBlock, _safe_reshape, make_block, ) from pandas.core.int...
21.432432
75
0.687264
bd7135e5b06691bbaf8583f7cd89bc6fbfe37400
6,286
py
Python
hifi_gan/meldataset.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
null
null
null
hifi_gan/meldataset.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
null
null
null
hifi_gan/meldataset.py
dodoproptit99/Multilingual_Text_to_Speech
8c5f2c8f3bffe7aca68c576168a12ab3451d09ec
[ "MIT" ]
null
null
null
import math import os import random import torch import torch.utils.data import numpy as np from librosa.util import normalize from scipy.io.wavfile import read from librosa.filters import mel as librosa_mel_fn MAX_WAV_VALUE = 32768.0 def load_wav(full_path): sampling_rate, data = read(full_path) return data...
37.195266
115
0.616927
e061c5ecbaf9c84ce4b9d2234af342afb376a75b
4,650
py
Python
invenio_cli/commands/services_health.py
inveniosoftware/invenio-scripts
9888acdb6b7cc408f4ac244d68fd897256273f15
[ "MIT" ]
null
null
null
invenio_cli/commands/services_health.py
inveniosoftware/invenio-scripts
9888acdb6b7cc408f4ac244d68fd897256273f15
[ "MIT" ]
9
2019-10-01T12:10:28.000Z
2019-10-02T14:07:32.000Z
invenio_cli/commands/services_health.py
inveniosoftware/invenio-scripts
9888acdb6b7cc408f4ac244d68fd897256273f15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Invenio-Cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module to ease the creation and management of applications.""" ##### # IMPORTANT NOTE: If you are going to...
28.703704
83
0.505591
a4fbe0483ee2aad02d5214cc7a72798046bde8c3
9,909
py
Python
src/zope/server/interfaces/__init__.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
null
null
null
src/zope/server/interfaces/__init__.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
null
null
null
src/zope/server/interfaces/__init__.py
cjwatson/zope.server
9c40c8a1ae57d28f1e0fa21e740826befefc30d5
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
33.140468
78
0.628419
6ecfca1eacb1a57fbc200d2e3b544c6d3e873bc9
2,236
py
Python
doubling_agent/image_steve_functions.py
lkmartin90/doubling_agent
73a7f06aa43c5fa51ea1263b72ebe6f8319bf894
[ "MIT" ]
1
2020-12-03T15:47:24.000Z
2020-12-03T15:47:24.000Z
doubling_agent/image_steve_functions.py
lkmartin90/doubling_agent
73a7f06aa43c5fa51ea1263b72ebe6f8319bf894
[ "MIT" ]
null
null
null
doubling_agent/image_steve_functions.py
lkmartin90/doubling_agent
73a7f06aa43c5fa51ea1263b72ebe6f8319bf894
[ "MIT" ]
null
null
null
from doubling_agent.image_analysis_functions import * plt.style.use('ggplot') def plot_cells_cont(data_df, value, folder_name, r, time_step): # basic function to plot the cells at a given time snapshot, when cell states are continuous df_to_plot = data_df.loc[data_df['count'] == value] df_to_plot.plot.scat...
43.843137
119
0.638193
f4e364013098c428465cf0707f1cd83085c433d8
7,120
py
Python
tests/test_distributed.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
2
2020-08-27T05:21:14.000Z
2020-09-29T14:34:09.000Z
tests/test_distributed.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
tests/test_distributed.py
terrorizer1980/ParlAI
f8fda24bd11804104b0a91aa84e170d3efbd8983
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import copy import unittest import torch.distributed as dist import parlai.utils.testing as testing_utils impo...
37.083333
84
0.644101
d225df31647e36690f8b22fcdb6b2a1e42d7d230
1,511
py
Python
src/tests/ModAdderTester.py
datenlord/poseidon-spinalhdl
1e4ce3f0ae06d6c264e103629dd28a75c119a548
[ "MIT" ]
null
null
null
src/tests/ModAdderTester.py
datenlord/poseidon-spinalhdl
1e4ce3f0ae06d6c264e103629dd28a75c119a548
[ "MIT" ]
null
null
null
src/tests/ModAdderTester.py
datenlord/poseidon-spinalhdl
1e4ce3f0ae06d6c264e103629dd28a75c119a548
[ "MIT" ]
1
2021-12-18T08:44:10.000Z
2021-12-18T08:44:10.000Z
import cocotb from poseidon_python import basic from cocotb.triggers import Timer import random from cocotb_test import simulator @cocotb.test() async def ModAdderTest(dut): """test ModAdder""" for i in range(100): res = random.randint(1, basic.P - 1) op1 = random.randint(0, res) op2 ...
27.981481
83
0.550629
2d364e3ea2c692adda1c81af78c53b57f9dcdeb4
19,903
py
Python
cogs/gaems.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
2
2022-02-21T14:10:15.000Z
2022-02-21T14:10:50.000Z
cogs/gaems.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
null
null
null
cogs/gaems.py
Code-Cecilia/botman-rewrite
9d8baeebf267c62df975d2f209e85589b81934af
[ "MIT" ]
null
null
null
import asyncio import random import string import discord from discord.ext import commands from assets import internet_funcs, discord_funcs from assets import tictactoe_assets from assets.discord_funcs import get_avatar_url from assets.tictactoe_assets import TicTacToe number_list = string.digits def is_author_che...
49.633416
139
0.579209
f719d3c75df148a6ceda79acf57bc0e57342d5f3
4,311
py
Python
src/test.py
alexey-kaz/python-project
661fe06e09846cd1c3c6d600973a6e3433096c1d
[ "MIT" ]
null
null
null
src/test.py
alexey-kaz/python-project
661fe06e09846cd1c3c6d600973a6e3433096c1d
[ "MIT" ]
null
null
null
src/test.py
alexey-kaz/python-project
661fe06e09846cd1c3c6d600973a6e3433096c1d
[ "MIT" ]
3
2021-04-25T06:37:26.000Z
2021-06-03T19:19:19.000Z
"""Тест.""" import unittest from recipes import form_answer from database import delete_table_data from parsing import NEWS, AFISHA, HOROSCOPE, WEATHER class TestBot(unittest.TestCase): """Тест.""" def test_form_answer(self): """Тест.""" rec1 = {"name": "Булочки с изюмом", "in...
29.527397
89
0.567618
711ef7d9be3902366dd543139260c0eb059f0996
6,132
py
Python
src/sage/homology/homology_group.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/homology/homology_group.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/homology/homology_group.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
""" Homology Groups This module defines a :meth:`HomologyGroup` class which is an abelian group that prints itself in a way that is suitable for homology groups. """ ######################################################################## # Copyright (C) 2013 John H. Palmieri <palmieri@math.washington.edu> # ...
32.444444
98
0.53653
4d5fa35c71451cea6076c59ca8e244ef5cf3a251
686
py
Python
config.py
SRainot/gadgetBot
f8e31882229f0033356a7751c8a2b57858eb817c
[ "MIT" ]
null
null
null
config.py
SRainot/gadgetBot
f8e31882229f0033356a7751c8a2b57858eb817c
[ "MIT" ]
null
null
null
config.py
SRainot/gadgetBot
f8e31882229f0033356a7751c8a2b57858eb817c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Author:w k from nonebot.default_config import * from os import path COMMAND_START = {''} DEBUG = True SUPERUSERS = {} NICKNAME = {'!', '花'} # 数据存储文件 DATA_FOLDER = path.join(path.dirname(__file__), 'data') # B站订阅的列表 BILIBILI_SUBSCRIPTION_INFO = [] # B站直播订阅时间(防止过快封IP,需要自己看着设置吧 0 0) CHECK_OP...
16.731707
55
0.718659
3419b62f704f483eefe5c7645563412195382e1f
2,255
py
Python
env/lib/python3.6/site-packages/pytests/test_messagequeue.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
null
null
null
env/lib/python3.6/site-packages/pytests/test_messagequeue.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2017-09-01T22:18:30.000Z
2017-09-01T22:24:57.000Z
env/lib/python3.6/site-packages/pytests/test_messagequeue.py
rogerscristo/BotFWD
4f2ab1f4f4543c157ca0a79084536c065f74159f
[ "MIT" ]
3
2018-02-22T22:20:27.000Z
2018-04-22T10:58:24.000Z
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2017 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
35.234375
98
0.627051
0fe206a22fc7b7cee99aa2baedc9398883baee14
1,231
py
Python
Section_01/1.07.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
11
2019-05-24T17:03:55.000Z
2021-11-24T23:59:38.000Z
Section_01/1.07.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
null
null
null
Section_01/1.07.py
PacktPublishing/Tkinter-GUI-Application-Development-Projects
58b49e23e887bf45810666cb1c63d1e06291873b
[ "MIT" ]
9
2019-06-19T02:20:15.000Z
2022-03-25T01:36:14.000Z
from tkinter import * parent = Tk() parent.title('Find & Replace') Label(parent, text="Find:").grid(row=0, column=0, sticky='e') Entry(parent, width=60).grid(row=0, column=1, padx=2, pady=2, sticky='we', columnspan=9) Label(parent, text="Replace:").grid(row=1, column=0, sticky='e') Entry(parent).grid(row=1, column=1,...
42.448276
98
0.688058
8da556a25355f16d222bfd00866375e725576035
2,585
py
Python
{{cookiecutter.project_slug}}/setup.py
gunnarvoet/cookiecutter-research-project-pdoc
b430c7c2bacc5d29ef6218ce8ace60b846d75aa6
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
gunnarvoet/cookiecutter-research-project-pdoc
b430c7c2bacc5d29ef6218ce8ace60b846d75aa6
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
gunnarvoet/cookiecutter-research-project-pdoc
b430c7c2bacc5d29ef6218ce8ace60b846d75aa6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() requirements = [{%- if cookiecutter.command_line_interface|lower == 'click' %}'Click>=7.0',{%- endif %} ] setup_requirements = [{%- if cookiecutter.use_p...
39.769231
130
0.648356
3204b1bfc7aa2c388eeafebd8d222adb4e9901e4
8,906
py
Python
synergine2_xyz/utils.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
1
2021-02-26T15:36:04.000Z
2021-02-26T15:36:04.000Z
synergine2_xyz/utils.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
182
2017-03-06T10:20:19.000Z
2021-06-10T14:12:36.000Z
synergine2_xyz/utils.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
1
2018-01-01T15:38:24.000Z
2018-01-01T15:38:24.000Z
# coding: utf-8 import collections import typing from math import sqrt import numpy from synergine2_xyz.xyz import DIRECTION_MODIFIERS def get_positions_from_str_representation(str_representation): # TODO: Manage z axis (like ------------ as separator) lines = str_representation.split("\n") # One item per ...
28.094637
99
0.58556
f358a1f1b53c02baad1137570c9345afe4d3d725
12,071
py
Python
pace/ads/skiplist/accumulo/embeddednode.py
LaudateCorpus1/PACE-python
eb61250886e51647bd1edb6d8f4fa7f83eb0bc81
[ "BSD-2-Clause" ]
7
2016-11-01T17:36:17.000Z
2021-03-12T08:54:36.000Z
pace/ads/skiplist/accumulo/embeddednode.py
LaudateCorpus1/PACE-python
eb61250886e51647bd1edb6d8f4fa7f83eb0bc81
[ "BSD-2-Clause" ]
1
2016-11-29T00:38:28.000Z
2016-12-06T14:10:24.000Z
pace/ads/skiplist/accumulo/embeddednode.py
LaudateCorpus1/PACE-python
eb61250886e51647bd1edb6d8f4fa7f83eb0bc81
[ "BSD-2-Clause" ]
6
2020-09-09T08:33:17.000Z
2022-01-06T07:02:40.000Z
## ************** ## Copyright 2015 MIT Lincoln Laboratory ## Project: PACE ## Authors: CS ## Description: Skiplist nodes embedded into Accumulo ## Modifications: ## Date Name Modification ## ---- ---- ------------ ## 11 Feb 2015 CS Original file ## ************** import os import sys thi...
32.624324
79
0.561097
d92428ab1c187890863b507ea637900da0b5bf70
3,844
py
Python
asdl/runtime.py
roryokane/oil
6724b2e0b8142ea0d48f0269f402e420861cb3b2
[ "Apache-2.0" ]
null
null
null
asdl/runtime.py
roryokane/oil
6724b2e0b8142ea0d48f0269f402e420861cb3b2
[ "Apache-2.0" ]
null
null
null
asdl/runtime.py
roryokane/oil
6724b2e0b8142ea0d48f0269f402e420861cb3b2
[ "Apache-2.0" ]
null
null
null
""" runtime.py - Base classes for generated code - Nodes for pretty printing """ from __future__ import print_function from cStringIO import StringIO import sys from typing import List, Tuple, Optional, IO class Obj(object): # NOTE: We're using CAPS for these static fields, since they are constant at # runtime...
25.626667
78
0.663111
f45c3d06f02a25c298765aecd60e5d97e56aa5a2
7,300
py
Python
Algorithm.Python/PL_Stat10/main.py
pasztorlacos/Lean
ca204c07d9bb390f853eb2f3da0ebc08150fef36
[ "Apache-2.0" ]
null
null
null
Algorithm.Python/PL_Stat10/main.py
pasztorlacos/Lean
ca204c07d9bb390f853eb2f3da0ebc08150fef36
[ "Apache-2.0" ]
null
null
null
Algorithm.Python/PL_Stat10/main.py
pasztorlacos/Lean
ca204c07d9bb390f853eb2f3da0ebc08150fef36
[ "Apache-2.0" ]
null
null
null
environment = "Lean" if environment=="Lean": import sys sys.path.append('C:/Github/Repos/pasztorlacos/Quantconnect/Libraries/') sys.path.append('C:/Github/Repos/pasztorlacos/Quantconnect/Strategies/') #--------------------------------------------------------------------------------------------- from cl...
37.435897
206
0.67
581fb6e15155360cb62e8226cbb36d61a3ffa745
3,096
py
Python
cohesity_management_sdk/models/protection_run_response.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/protection_run_response.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/protection_run_response.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.latest_protection_job_run_information class ProtectionRunResponse(object): """Implementation of the 'ProtectionRunResponse' model. Specifies the information about the Protection Runs across all snapshot target l...
37.756098
170
0.67345
c86067c1f0100089dac79cba99527bcb107d4e3b
533
py
Python
pos_product_lot/__manifest__.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
null
null
null
pos_product_lot/__manifest__.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
null
null
null
pos_product_lot/__manifest__.py
ShaheenHossain/itpp-labs_pos-addons
8c5047af10447eb3d137c84111127fae1a8970b6
[ "MIT" ]
4
2020-08-25T01:49:14.000Z
2021-04-04T10:29:04.000Z
# -*- coding: utf-8 -*- { "name": "Product lot in POS", "version": "10.0.1.0.3", "author": "IT-Projects LLC, Ivan Yelizariev", "license": "Other OSI approved licence", # MIT "category": "Point Of Sale", "website": "https://twitter.com/yelizariev", "images": ["images/screenshot.png"], "p...
29.611111
56
0.575985
1a9d751dc6bd16b25e5a010ac031886fc1554bfb
61,485
py
Python
venv/Lib/site-packages/plotly/graph_objs/_scattercarpet.py
kteegarden/PollGraph
c16fbdbd7a1cd46da7d1cd7beb789d681c46ffaa
[ "Apache-2.0" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/graph_objs/_scattercarpet.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
null
null
null
plotly/graph_objs/_scattercarpet.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
from plotly.basedatatypes import BaseTraceType import copy class Scattercarpet(BaseTraceType): # a # - @property def a(self): """ Sets the quantity of component `a` in each data point. If `a`, `b`, and `c` are all provided, they need not be normalized, only the relativ...
36.511283
86
0.56513
75e7e9133d396fb11af2fd6093a957e28ef93f25
872
py
Python
adeft_app/__init__.py
indralab/adeft_app
3f20d04791f598e089bb59ca1ca133d5d51d6c28
[ "BSD-2-Clause" ]
null
null
null
adeft_app/__init__.py
indralab/adeft_app
3f20d04791f598e089bb59ca1ca133d5d51d6c28
[ "BSD-2-Clause" ]
null
null
null
adeft_app/__init__.py
indralab/adeft_app
3f20d04791f598e089bb59ca1ca133d5d51d6c28
[ "BSD-2-Clause" ]
2
2019-05-10T19:58:13.000Z
2019-05-14T14:25:45.000Z
import os from flask import Flask, render_template def create_app(test_config=None): # create and configure the app app = Flask(__name__, instance_relative_config=True) app.config.from_mapping( SECRET_KEY='dev', DATA=os.path.join(app.instance_path, 'data'), ) if test_config is No...
24.914286
66
0.661697
95877f39fba2595ccdce10d4458a69d2e7ad7093
27
py
Python
__init__.py
wpm216/fileParser
916958f6d544dd748dd0dd8701c585fefb5074c8
[ "MIT" ]
null
null
null
__init__.py
wpm216/fileParser
916958f6d544dd748dd0dd8701c585fefb5074c8
[ "MIT" ]
null
null
null
__init__.py
wpm216/fileParser
916958f6d544dd748dd0dd8701c585fefb5074c8
[ "MIT" ]
null
null
null
from .src.File import File
13.5
26
0.777778
e00e5bbd17e52cf000b2a9d972913c4c2f597b88
2,095
py
Python
main.py
lexerpars/odoo_hacking
b0eb8edd76657a8c49d8168c250bff81b2819518
[ "Apache-2.0" ]
2
2022-02-03T01:54:59.000Z
2022-02-13T04:11:49.000Z
main.py
lexerpars/odoo_hacking
b0eb8edd76657a8c49d8168c250bff81b2819518
[ "Apache-2.0" ]
null
null
null
main.py
lexerpars/odoo_hacking
b0eb8edd76657a8c49d8168c250bff81b2819518
[ "Apache-2.0" ]
2
2022-01-19T16:24:57.000Z
2022-02-03T01:55:29.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jan 13 21:03:02 2022 @author: Lexerpars """ import argparse from models import auth from models import options from subprocess import call def parser(): pars = argparse.ArgumentParser(description='Script hacking ODOO') pars.add_argument('host',help='URL o HOST de ODO...
36.12069
120
0.41957
14418aa329e9224f416b69c1b84e73a94afc4e03
92
py
Python
2015/02/pew-brian-williams/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/02/pew-brian-williams/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/02/pew-brian-williams/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1Jzl-3MUzTptF0VJUnu0q_DujYS0cdKjU6PYJgcXlOFA'
23
68
0.836957
5216858f859463d3632f25f41c6a062d24091508
6,121
py
Python
tests/unit/transport/tcp_test.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2018-09-19T22:42:54.000Z
2018-09-19T22:42:54.000Z
tests/unit/transport/tcp_test.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
tests/unit/transport/tcp_test.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2019-07-23T13:42:23.000Z
2019-07-23T13:42:23.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Thomas Jackson <jacksontj.89@gmail.com>` ''' # Import python libs from __future__ import absolute_import import os import threading import tornado.gen import tornado.ioloop from tornado.testing import AsyncTestCase import salt.config import salt.ext.six as six imp...
31.551546
96
0.670642
f911421191950f2e57ad4451197396281ffdfaf2
17,212
py
Python
hwt/synthesizer/rtlLevel/extract_part_drivers.py
ufo2011/hwt
2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1
[ "MIT" ]
134
2018-02-28T05:06:31.000Z
2022-03-25T23:50:13.000Z
hwt/synthesizer/rtlLevel/extract_part_drivers.py
ufo2011/hwt
2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1
[ "MIT" ]
32
2018-03-15T19:01:02.000Z
2021-07-02T14:00:06.000Z
hwt/synthesizer/rtlLevel/extract_part_drivers.py
ufo2011/hwt
2a32a3fc0c04cf3d6e78dce2dcd0d90dffc7eac1
[ "MIT" ]
17
2018-09-16T12:54:01.000Z
2022-01-20T03:16:52.000Z
from itertools import islice from typing import Dict, List, Tuple, Union, Optional, Sequence from hwt.code import Concat from hwt.doc_markers import internal from hwt.hdl.operator import isConst from hwt.hdl.statements.assignmentContainer import HdlAssignmentContainer from hwt.hdl.statements.codeBlockContainer import ...
42.709677
144
0.555775
fa1cf06093af69d225e54da543ff564eb1902037
142
py
Python
oop_hack/dnd_oop/arena/apps.py
Yakov-Varnaev/hack_oop_RPG
f68390d9584463ea8a3abb2602bb565fc021acc8
[ "MIT" ]
null
null
null
oop_hack/dnd_oop/arena/apps.py
Yakov-Varnaev/hack_oop_RPG
f68390d9584463ea8a3abb2602bb565fc021acc8
[ "MIT" ]
null
null
null
oop_hack/dnd_oop/arena/apps.py
Yakov-Varnaev/hack_oop_RPG
f68390d9584463ea8a3abb2602bb565fc021acc8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ArenaConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'arena'
20.285714
56
0.753521
c01cf992cc152edf3ceafabf535fe14e5e6a7799
400
py
Python
Lib/idlelib/idle.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/idlelib/idle.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
null
null
null
Lib/idlelib/idle.py
Victor-Savu/cpython-old
87060fc4b043dd0da0a29a0ffb8eb92d8cad8dd3
[ "PSF-2.0" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
import os.path import sys # If we are working on a development version of IDLE, we need to prepend the # parent of this idlelib dir to sys.path. Otherwise, importing idlelib gets # the version installed with the Python used to call this module: idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))...
33.333333
76
0.7825
fd67a29bef76151a5db93f36f6f8a89dcb830b3d
119,176
py
Python
gclient.py
bitbeen/depot_tools
9217ff8b2c57fc7f5f706fef741a2c48efe7c885
[ "BSD-3-Clause" ]
null
null
null
gclient.py
bitbeen/depot_tools
9217ff8b2c57fc7f5f706fef741a2c48efe7c885
[ "BSD-3-Clause" ]
null
null
null
gclient.py
bitbeen/depot_tools
9217ff8b2c57fc7f5f706fef741a2c48efe7c885
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Meta checkout dependency manager for Git.""" # Files # .gclient : Current client configuration, written by 'config' comma...
37.761724
80
0.63642
627d25238f29603bcdfa819d6b247c4bd9abacd6
6,125
py
Python
reboot/settings.py
leesw98/reBOOT
41eaf3ceb9ed21263482022668fbd8e44e90a0fa
[ "MIT" ]
10
2017-10-17T04:35:44.000Z
2021-03-19T21:12:15.000Z
reboot/settings.py
leesw98/reBOOT
41eaf3ceb9ed21263482022668fbd8e44e90a0fa
[ "MIT" ]
224
2017-10-18T18:33:48.000Z
2022-02-02T03:33:04.000Z
reboot/settings.py
leesw98/reBOOT
41eaf3ceb9ed21263482022668fbd8e44e90a0fa
[ "MIT" ]
1
2018-08-02T03:10:25.000Z
2018-08-02T03:10:25.000Z
""" Django settings for reboot project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ from decoup...
28.356481
91
0.639837
b21e0ef24397a99629eb2fec16c1582d4585db75
875
py
Python
parsl/tests/sites/test_cooley_singularity.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
2
2019-02-25T16:43:30.000Z
2019-03-04T17:25:00.000Z
parsl/tests/sites/test_cooley_singularity.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
null
null
null
parsl/tests/sites/test_cooley_singularity.py
benclifford/parsl
21f8681882779050d2e074591e95ada43789748f
[ "Apache-2.0" ]
2
2019-04-30T13:46:23.000Z
2019-06-04T16:14:46.000Z
import parsl from parsl.app.app import App from parsl.tests.configs.cooley_local_single_node import config parsl.clear() parsl.load(config) parsl.set_stream_logger() @App("bash") def freesurfer(stdout=None, stderr=None): return """singularity exec ~madduri/freesurfer.simg recon-all """ if __name__ == "__ma...
24.305556
69
0.614857
f335c068030e35e367c0b0f81c8116b85f59cc3a
1,748
py
Python
user_test.py
EsauKip/Password-locker
94cc650175bef48a07639720144a5ebf6fe2af97
[ "MIT" ]
null
null
null
user_test.py
EsauKip/Password-locker
94cc650175bef48a07639720144a5ebf6fe2af97
[ "MIT" ]
null
null
null
user_test.py
EsauKip/Password-locker
94cc650175bef48a07639720144a5ebf6fe2af97
[ "MIT" ]
null
null
null
#!usr/bin/env python3.9 import unittest #import unittestmodule from user import User #import the user class class TestUser(unittest.TestCase): def setUp(self): ''' method to run before each test ''' self.new_user=User("EsauKip","#Youcannotfind5") #new User created def test__init(...
32.37037
73
0.610984
db2ad11a93de029d9827073cd1cfdc9717384dea
49,853
py
Python
src/capabilities/server.py
dfautomation/capabilities
ef5c68bde5299a48782a6021f37045f5bda2f58d
[ "BSD-3-Clause" ]
null
null
null
src/capabilities/server.py
dfautomation/capabilities
ef5c68bde5299a48782a6021f37045f5bda2f58d
[ "BSD-3-Clause" ]
null
null
null
src/capabilities/server.py
dfautomation/capabilities
ef5c68bde5299a48782a6021f37045f5bda2f58d
[ "BSD-3-Clause" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2013, Open Source Robotics Foundation, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mus...
47.615091
119
0.641406
8828e21551a7961c23b57e220e159956415aa031
1,001
py
Python
setup.py
caiyunapp/rb3
bcf6b5c7a1f1ea73a284feedddd33c18d4ced3f6
[ "Apache-2.0" ]
null
null
null
setup.py
caiyunapp/rb3
bcf6b5c7a1f1ea73a284feedddd33c18d4ced3f6
[ "Apache-2.0" ]
1
2019-08-13T08:30:25.000Z
2019-08-13T08:30:25.000Z
setup.py
caiyunapp/rb3
bcf6b5c7a1f1ea73a284feedddd33c18d4ced3f6
[ "Apache-2.0" ]
null
null
null
import re import ast from setuptools import setup _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('rb/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) f = open('README.md') try: README = f.read() finally: f.close() ...
24.414634
66
0.643357
412c555eb6a2a42960a9d4f97958671d1f6bd8e5
761
py
Python
create_nn_model.py
shehand/FlowAPI
bc8f519c92163e08ac80dce791365b13b369f1fa
[ "Apache-2.0" ]
1
2019-04-16T03:27:32.000Z
2019-04-16T03:27:32.000Z
create_nn_model.py
shehand/FlowAPI
bc8f519c92163e08ac80dce791365b13b369f1fa
[ "Apache-2.0" ]
null
null
null
create_nn_model.py
shehand/FlowAPI
bc8f519c92163e08ac80dce791365b13b369f1fa
[ "Apache-2.0" ]
1
2019-04-11T07:21:20.000Z
2019-04-11T07:21:20.000Z
from keras.layers import Conv2D, MaxPooling2D import tensorflow as tf from keras.layers import Activation, Dropout, Flatten, Dense from keras.models import Sequential def create_nn_model(input_shape, img_width, img_height): model = Sequential() model.add(Conv2D(32, (3, 3), input_shape=input_shape)) model.add(Activ...
26.241379
60
0.731932
42955bd3ed45737f17b0ef5973651914a8b25a3c
621
py
Python
test_generators/ssz_generic/ssz_test_case.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
1
2021-04-06T23:29:39.000Z
2021-04-06T23:29:39.000Z
test_generators/ssz_generic/ssz_test_case.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
null
null
null
test_generators/ssz_generic/ssz_test_case.py
osirusgroup/eth2.0-specs
88e954a9c73dff63436350b9cd530c8c9f44a94b
[ "CC0-1.0" ]
1
2021-12-25T16:41:24.000Z
2021-12-25T16:41:24.000Z
from eth2spec.utils.ssz.ssz_impl import serialize, hash_tree_root from eth2spec.debug.encode import encode from eth2spec.utils.ssz.ssz_typing import SSZValue, Container from typing import Callable def valid_test_case(value_fn: Callable[[], SSZValue]): def case_fn(): value = value_fn() yield "value...
31.05
65
0.694042
b9a95587ac5cc42fd9cdf6d8d80a0369e8bdd10a
12,479
py
Python
tests/st/model_zoo_tests/DeepFM/src/dataset.py
HappyKL/mindspore
479cb89e8b5c9d859130891567038bb849a30bce
[ "Apache-2.0" ]
1
2020-10-18T12:27:45.000Z
2020-10-18T12:27:45.000Z
tests/st/model_zoo_tests/DeepFM/src/dataset.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
tests/st/model_zoo_tests/DeepFM/src/dataset.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.735786
110
0.617277
b22dd4e29d4f61296191ad20fe4bfae5bbc9c793
370
py
Python
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_enumeration_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_enumeration_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_enumeration_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.any_uri.schema_instance.nistschema_sv_iv_atomic_any_uri_enumeration_4_xsd.nistschema_sv_iv_atomic_any_uri_enumeration_4 import ( NistschemaSvIvAtomicAnyUriEnumeration4, NistschemaSvIvAtomicAnyUriEnumeration4Type, ) __all__ = [ "NistschemaSvIvAtomicAnyUriEnumeration4", ...
37
164
0.864865
fe4a5d48f6a15deb87188013f0a7718f973f4b26
6,792
py
Python
setup/ingest_data.py
j12y/predix-volcano-app
69b3fd038ba3fc752b62c4546586e4826f861b16
[ "BSD-3-Clause" ]
1
2019-04-25T18:50:20.000Z
2019-04-25T18:50:20.000Z
setup/ingest_data.py
jpruiz114/predix-volcano-app
69b3fd038ba3fc752b62c4546586e4826f861b16
[ "BSD-3-Clause" ]
null
null
null
setup/ingest_data.py
jpruiz114/predix-volcano-app
69b3fd038ba3fc752b62c4546586e4826f861b16
[ "BSD-3-Clause" ]
2
2019-11-24T00:38:36.000Z
2021-08-06T17:47:21.000Z
#!/usr/bin/env python import csv import time import logging import predix.app import assetmodel manifest_path = '../manifest.yml' def read_csv(csvfile): """ Read CSV file and index by the unique id. """ index = {} with open(csvfile, 'r') as data: for row in csv.DictReader(data): ...
32.189573
94
0.557862
da0162b59b519a86b8a60614c122df6b16e8cf95
2,218
py
Python
Software/Python/grove_80cm_infrared_proximity_sensor.py
benmcclelland/GrovePi
1e48137b6007ffd4ce430e821d2aa744349e362a
[ "MIT" ]
482
2015-01-09T03:06:14.000Z
2022-03-24T10:05:07.000Z
Software/Python/grove_80cm_infrared_proximity_sensor.py
benmcclelland/GrovePi
1e48137b6007ffd4ce430e821d2aa744349e362a
[ "MIT" ]
257
2015-01-13T14:08:17.000Z
2022-01-20T08:43:50.000Z
Software/Python/grove_80cm_infrared_proximity_sensor.py
benmcclelland/GrovePi
1e48137b6007ffd4ce430e821d2aa744349e362a
[ "MIT" ]
510
2015-01-27T17:15:44.000Z
2022-03-29T01:27:13.000Z
#!/usr/bin/env python # # GrovePi Example for using the Grove 80cm Infrared Proximity Sensor(http://www.seeedstudio.com/wiki/Grove_-_80cm_Infrared_Proximity_Sensor) # # The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi # # Have a qu...
34.123077
140
0.760144
df4e5fba69a605d01cd4b6bc3eb7799fa06daf63
6,892
py
Python
flask_admin/form/fields.py
shoeffner/flask-admin
51f8fc9e456f04e093e32230393e629be882f083
[ "BSD-3-Clause" ]
null
null
null
flask_admin/form/fields.py
shoeffner/flask-admin
51f8fc9e456f04e093e32230393e629be882f083
[ "BSD-3-Clause" ]
null
null
null
flask_admin/form/fields.py
shoeffner/flask-admin
51f8fc9e456f04e093e32230393e629be882f083
[ "BSD-3-Clause" ]
null
null
null
import time import datetime import json from wtforms import fields from flask_admin.babel import gettext from flask_admin._compat import text_type, as_unicode from . import widgets as admin_widgets """ An understanding of WTForms's Custom Widgets is helpful for understanding this code: http://wtforms.simplecodes.com...
32.509434
100
0.560215
004b061809b0801970e07ef4364ee398e008faed
6,951
py
Python
tests/unit/async_/io/test_direct.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
tests/unit/async_/io/test_direct.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
tests/unit/async_/io/test_direct.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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...
29.705128
107
0.697597
8fdaa27144aed1eb5a5ad0c73e30dad3191c812e
11,331
py
Python
pandas/tests/frame/methods/test_align.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
1
2020-10-29T17:32:26.000Z
2020-10-29T17:32:26.000Z
pandas/tests/frame/methods/test_align.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/methods/test_align.py
GabrielUlisses/pandas
6430d5324ae2b602b314a7851e9c1f4c5313cceb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest import pytz import pandas as pd from pandas import DataFrame, Index, Series, date_range import pandas._testing as tm class TestDataFrameAlign: def test_frame_align_aware(self): idx1 = date_range("2001", periods=5, freq="H", tz="US/Eastern") idx2 = date_range("2001...
37.029412
86
0.592887
5e55238d90e511631c455a3e1d709269c89e239a
4,747
py
Python
train.py
Daisy-Zhang/Video-Classification-Pytorch
000b2b791ba56adcd63a71e7f2d2fe3686c07f15
[ "MIT" ]
5
2021-06-29T18:02:08.000Z
2022-03-01T11:59:50.000Z
train.py
Daisy-Zhang/Video-Classification-Pytorch
000b2b791ba56adcd63a71e7f2d2fe3686c07f15
[ "MIT" ]
null
null
null
train.py
Daisy-Zhang/Video-Classification-Pytorch
000b2b791ba56adcd63a71e7f2d2fe3686c07f15
[ "MIT" ]
null
null
null
import os import sys import argparse from datetime import datetime import numpy as np import torch import torch.nn as nn import torch.optim as optim import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets from torch.utils.data import DataLoader from torch.autograd import...
37.377953
145
0.66758
993d7a39cc18d57d67bd02988910f72b0974940e
1,205
py
Python
Testing Code/img_sharp.py
amanwalia92/VisionChess
c57219b3b7ce1fd98b27573aa0a8658ceabd0593
[ "MIT" ]
null
null
null
Testing Code/img_sharp.py
amanwalia92/VisionChess
c57219b3b7ce1fd98b27573aa0a8658ceabd0593
[ "MIT" ]
null
null
null
Testing Code/img_sharp.py
amanwalia92/VisionChess
c57219b3b7ce1fd98b27573aa0a8658ceabd0593
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat Dec 3 16:34:55 2016 @author: aman """ # "Sharpen" an image by multiplying every pixel by 2, and then subtracting # the average value of the neighborhood from it. #See slide number 22 from IrfanEssa-CP-02-5-Filtering.pdf # # Jay Summet 2015 # #Pytho...
21.517857
77
0.716183