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
5f8d1298f2a7c3c98e0c4dc2d436a9160dbc1815
424
py
Python
StackOverflow-Playgrounds/Random-Questions/main_01.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
StackOverflow-Playgrounds/Random-Questions/main_01.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
StackOverflow-Playgrounds/Random-Questions/main_01.py
AdrKacz/Dev-Learning
d75ef6a0430c2b1109e71f74d017598e024ca518
[ "MIT" ]
null
null
null
def FindDifference(word): letters = list("programmer") i = 0 j = 0 while i < len(word) and j < len(letters): if word[i] == letters[j]: j+=1 i+=1 start = i - 1 if i == len(word): return -1 i = len(word) j = len(letters) while i > 0 and j > 0: i -= 1 if word[i] == letters[j - 1]: j-=1 end = i...
16.307692
50
0.582547
33dbbec6777e2f4c9bdd173a060c40ff23de48c1
699
py
Python
tests/integration/blueprints/site/ticketing/test_views_mytickets.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/blueprints/site/ticketing/test_views_mytickets.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
tests/integration/blueprints/site/ticketing/test_views_mytickets.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
""" :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from tests.helpers import http_client, login_user def test_when_logged_in(site_app, site, user): login_user(user.id) response = send_request(site_app, user_id=user.id) assert response.status_code =...
21.84375
54
0.723891
81b213ee8f4a3cacc8e27a9766c34f4abd091dc6
34,202
py
Python
onnx/helper.py
jacky82226/onnx
9b3524511003e11998d5b58ec9d0add3ce568506
[ "MIT" ]
1
2022-02-04T07:45:14.000Z
2022-02-04T07:45:14.000Z
onnx/helper.py
developerChans/onnx
5cf5feef5ec3fd5527b2fdb6c29780e3b705059f
[ "Apache-2.0" ]
null
null
null
onnx/helper.py
developerChans/onnx
5cf5feef5ec3fd5527b2fdb6c29780e3b705059f
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import collections.abc # type: ignore import numbers import google.protobuf.message from onnx import TensorProto, SparseTensorPro...
35.59001
383
0.64543
6bf82f9b2d8b50ec81c9a247770281b03f737a55
609
py
Python
sitegen/stamper/stamper.py
hacktoon/sitegen
bedead6b8601d990832dc195c4b7f52cf8acb534
[ "WTFPL" ]
null
null
null
sitegen/stamper/stamper.py
hacktoon/sitegen
bedead6b8601d990832dc195c4b7f52cf8acb534
[ "WTFPL" ]
null
null
null
sitegen/stamper/stamper.py
hacktoon/sitegen
bedead6b8601d990832dc195c4b7f52cf8acb534
[ "WTFPL" ]
null
null
null
# coding: utf-8 ''' =============================================================================== Sitegen Author: Karlisson M. Bezerra E-mail: contact@hacktoon.com URL: https://github.com/hacktoon/sitegen License: WTFPL - http://sam.zoy.org/wtfpl/COPYING =============================================================...
25.375
79
0.545156
993141ede465ac8842effdf0a57c401511a573be
585
py
Python
tests/test_gather.py
rickproza/twill
7a98e4912a8ff929a94e35d35e7a027472ee4f46
[ "MIT" ]
13
2020-04-18T15:17:58.000Z
2022-02-24T13:25:46.000Z
tests/test_gather.py
rickproza/twill
7a98e4912a8ff929a94e35d35e7a027472ee4f46
[ "MIT" ]
5
2020-04-04T21:16:00.000Z
2022-02-10T00:26:20.000Z
tests/test_gather.py
rickproza/twill
7a98e4912a8ff929a94e35d35e7a027472ee4f46
[ "MIT" ]
3
2020-06-06T17:26:19.000Z
2022-02-10T00:30:39.000Z
import os from twill.utils import gather_filenames def test_gather_dir(): this_dir = os.path.dirname(__file__) test_gather = os.path.join(this_dir, 'test_gather') cwd = os.getcwd() os.chdir(test_gather) try: files = gather_filenames(('.',)) if os.sep != '/': files = [...
26.590909
59
0.567521
9fa29b5c142cf0e1a427dcd57e1aca98fdecfc78
71
py
Python
weapy/__init__.py
TRNSYSJP/weapy
6e0cebe8be9f7d89894f2800dbf3b3074184d265
[ "MIT" ]
null
null
null
weapy/__init__.py
TRNSYSJP/weapy
6e0cebe8be9f7d89894f2800dbf3b3074184d265
[ "MIT" ]
4
2020-08-24T07:04:53.000Z
2020-10-25T09:57:08.000Z
weapy/__init__.py
TRNSYSJP/weapy
6e0cebe8be9f7d89894f2800dbf3b3074184d265
[ "MIT" ]
null
null
null
from weapy.weatherdata import WeatherDataFile # import wea.weatherdata
23.666667
45
0.859155
8bf6e4eed8dd6d520214f3887dea26f50ee5fb96
631
py
Python
cmstk/vasp/oszicar_test.py
seatonullberg/cmstk
f8dd4f698723053c06d181ecdd918d8e5fc98a92
[ "MIT" ]
1
2019-12-23T14:43:58.000Z
2019-12-23T14:43:58.000Z
cmstk/vasp/oszicar_test.py
seatonullberg/cmstk
f8dd4f698723053c06d181ecdd918d8e5fc98a92
[ "MIT" ]
6
2019-04-25T22:08:40.000Z
2019-12-18T21:46:09.000Z
cmstk/vasp/oszicar_test.py
seatonullberg/cmstk
f8dd4f698723053c06d181ecdd918d8e5fc98a92
[ "MIT" ]
null
null
null
from cmstk.vasp.oszicar import OszicarFile from cmstk.util import data_directory import os def test_oszicar_file(): """Tests the initialization of an OszicarFile object.""" path = os.path.join(data_directory(), "vasp", "Fe75Cr25_BCC_bulk.oszicar") oszicar = OszicarFile(path) with oszicar: asse...
37.117647
78
0.687797
29db84119b07dca32d1732419d3cacd173fe21c0
305
py
Python
src/cache.py
SwapnilBhosale/tomasula-simulator
2ae152e0574159314ccf7fc298b82d6865a03169
[ "Apache-2.0" ]
null
null
null
src/cache.py
SwapnilBhosale/tomasula-simulator
2ae152e0574159314ccf7fc298b82d6865a03169
[ "Apache-2.0" ]
null
null
null
src/cache.py
SwapnilBhosale/tomasula-simulator
2ae152e0574159314ccf7fc298b82d6865a03169
[ "Apache-2.0" ]
null
null
null
''' This is the base class for cache defines get and put methods ''' class Cache: def __init__(self, name): self.name = name def get_from_cache(self, address): raise NotImplementedError() def put_into_cache(self, address, data): raise NotImplementedError()
19.0625
44
0.64918
0f969c75242735022743652961bd11aeadc5399c
1,117
py
Python
datasets/data_utils.py
dolphintear/pytorch-kaggle-starter
7f993161afca8809e8a6ea46bffe76b4d6163082
[ "MIT" ]
336
2017-08-22T18:54:19.000Z
2022-03-22T04:07:08.000Z
datasets/data_utils.py
emeraldic/kaggle-starter
7f993161afca8809e8a6ea46bffe76b4d6163082
[ "MIT" ]
1
2020-02-14T14:12:15.000Z
2020-02-14T14:12:15.000Z
datasets/data_utils.py
emeraldic/kaggle-starter
7f993161afca8809e8a6ea46bffe76b4d6163082
[ "MIT" ]
73
2017-08-26T22:09:58.000Z
2022-03-29T13:00:02.000Z
import os import shutil import numpy as np import utils from glob import glob from PIL import Image from skimage import io import torch import config as cfg import constants as c from datasets import metadata def pil_loader(path): return Image.open(path).convert('RGB') def tensor_loader(path): return tor...
21.901961
75
0.696509
82acb7c550ec21df9ee76027450843802b58882e
12,289
py
Python
sympy/physics/quantum/tests/test_gate.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
sympy/physics/quantum/tests/test_gate.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
sympy/physics/quantum/tests/test_gate.py
JMSS-Unknown/sympy
cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7
[ "BSD-3-Clause" ]
1
2018-10-21T06:32:46.000Z
2018-10-21T06:32:46.000Z
from sympy import exp, symbols, sqrt, I, pi, Mul, Integer, Wild from sympy.core.compatibility import range from sympy.matrices import Matrix, ImmutableMatrix from sympy.physics.quantum.gate import (XGate, YGate, ZGate, random_circuit, CNOT, IdentityGate, H, X, Y, S, T, Z, SwapGate, gate_simp, gate_sort, ...
34.422969
92
0.59419
0151e0e177f1c7ad3f6e59338594873e81ad1ad4
2,035
py
Python
api/advanced/player_lookup.py
Major-League-Summer-Baseball/mlsb-platform
ecb2a6a15dcaa12c4e18a6d9c5d1b4caf83e05a4
[ "Apache-2.0" ]
1
2021-04-22T02:06:33.000Z
2021-04-22T02:06:33.000Z
api/advanced/player_lookup.py
Major-League-Summer-Baseball/mlsb-platform
ecb2a6a15dcaa12c4e18a6d9c5d1b4caf83e05a4
[ "Apache-2.0" ]
42
2021-03-12T23:18:30.000Z
2022-03-13T20:57:36.000Z
api/advanced/player_lookup.py
Major-League-Summer-Baseball/mlsb-platform
ecb2a6a15dcaa12c4e18a6d9c5d1b4caf83e05a4
[ "Apache-2.0" ]
1
2019-04-21T23:24:54.000Z
2019-04-21T23:24:54.000Z
''' @author: Dallas Fraser @author: 2016-04-12 @organization: MLSB API @summary: The views for looking up a player ''' from flask_restful import Resource, reqparse from flask import Response from json import dumps from api.model import Player parser = reqparse.RequestParser() parser.add_argument('email', type=str) pars...
33.360656
77
0.528256
2ff1eab2816839cd7fd6ca7d390929d1cd2c2911
752
py
Python
guru/users/tests/factories.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
null
null
null
guru/users/tests/factories.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2021-02-26T02:49:34.000Z
2021-02-26T02:49:34.000Z
guru/users/tests/factories.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2020-02-24T18:09:00.000Z
2020-02-24T18:09:00.000Z
from typing import Any, Sequence from django.contrib.auth import get_user_model from factory import DjangoModelFactory, Faker, post_generation class UserFactory(DjangoModelFactory): username = Faker("user_name") email = Faker("email") name = Faker("name") @post_generation def password(self, cre...
26.857143
73
0.639628
c399d31a95b6eba4b7365300884a30cd7dc3ea62
2,079
py
Python
homeassistant/components/binary_sensor/insteon.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
3
2019-01-31T13:41:37.000Z
2020-05-20T14:22:18.000Z
homeassistant/components/binary_sensor/insteon.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
5
2021-02-08T20:32:11.000Z
2022-01-13T01:19:23.000Z
homeassistant/components/binary_sensor/insteon.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2020-11-04T07:35:32.000Z
2020-11-04T07:35:32.000Z
""" Support for INSTEON dimmers via PowerLinc Modem. For more details about this component, please refer to the documentation at https://home-assistant.io/components/binary_sensor.insteon/ """ import logging from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.components.insteon im...
32.484375
77
0.671477
e7527d893fafec4b9d43cbcc6eb4a5f28d5e1e29
1,965
py
Python
tom_calculator/cli.py
andribas404/tom-calculator
b6e04055ca425dcd86e82d9651ad1dcef08d000f
[ "MIT" ]
null
null
null
tom_calculator/cli.py
andribas404/tom-calculator
b6e04055ca425dcd86e82d9651ad1dcef08d000f
[ "MIT" ]
null
null
null
tom_calculator/cli.py
andribas404/tom-calculator
b6e04055ca425dcd86e82d9651ad1dcef08d000f
[ "MIT" ]
null
null
null
"""CLI. Contains CLI application. CLI is invoked from entrypoint. For the manual invoking use command `docker exec -it tom-calculator_app_1 bash` Usage: tom-calculator [OPTIONS] COMMAND [ARGS]... Options: --install-completion [bash|zsh|fish|powershell|pwsh] Install completion for ...
23.674699
79
0.668702
9e53e22027ac9b9f00991cdf206817dfb0b818f3
1,282
py
Python
gary/mhacks/urls.py
anshulkgupta/viznow
119511770e1f5e137fa01e5f3cd56005a2871268
[ "MIT" ]
null
null
null
gary/mhacks/urls.py
anshulkgupta/viznow
119511770e1f5e137fa01e5f3cd56005a2871268
[ "MIT" ]
null
null
null
gary/mhacks/urls.py
anshulkgupta/viznow
119511770e1f5e137fa01e5f3cd56005a2871268
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from mhacks import settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'mhacks.views.enter_page'), url(r'^trial/?$', 'mhacks.views.airline_page'), url(r'^home/?$', 'mhacks.views.home_page'), url(r'^ube...
55.73913
119
0.652886
2d21d6a9ebf0f2beeac65479f4566ee962cb150e
2,555
py
Python
Second course/4th semester/Computer Graphics/Lab7/SLGraphic.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
null
null
null
Second course/4th semester/Computer Graphics/Lab7/SLGraphic.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
null
null
null
Second course/4th semester/Computer Graphics/Lab7/SLGraphic.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
7
2020-12-04T07:26:46.000Z
2022-03-08T17:47:47.000Z
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * WIDTH = 500 HIGHT = 480 class SLGraphicsScene(QGraphicsScene): def __init__(self, parent): super().__init__() self.parent = parent def mouseMoveEvent(self, event): parent = self.parent if paren...
33.181818
67
0.399609
81b99262129ea0b1208ef9c8d69646d1a90e841d
1,828
py
Python
apps/trader/forms.py
ncabelin/ebook-trading-club
e52df18203f87e0ca06ed31e9113e65dc29720e5
[ "MIT" ]
null
null
null
apps/trader/forms.py
ncabelin/ebook-trading-club
e52df18203f87e0ca06ed31e9113e65dc29720e5
[ "MIT" ]
null
null
null
apps/trader/forms.py
ncabelin/ebook-trading-club
e52df18203f87e0ca06ed31e9113e65dc29720e5
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Item, Proposal class AlertForm(forms.Form): error = forms.CharField(max_length=255, required=False) message = forms.CharField(max_length=255, required=False) class Lo...
39.73913
100
0.753282
b24f694e79a2ad7200e9b919e78bab0b8d677a60
2,842
py
Python
B4S2 - Digital Learning Technology/Week 11/main.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
null
null
null
B4S2 - Digital Learning Technology/Week 11/main.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
4
2021-03-28T14:06:09.000Z
2021-03-28T14:06:10.000Z
B4S2 - Digital Learning Technology/Week 11/main.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
1
2020-04-29T16:00:32.000Z
2020-04-29T16:00:32.000Z
from os import path import numpy as np import pandas as pd from matplotlib import pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split # 資料網址 DATA_URL = 'https://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data' # 資料標籤 DATA_LABEL = ...
28.42
91
0.654821
41427f394b3e7a0318de679494ed956a5bd82c72
5,240
py
Python
setup.py
Liam-Deacon/antlr4-vba-parser
af273e6d7c4efd7660d647ad5b6e338a4ff46bd3
[ "BSD-3-Clause" ]
1
2021-07-23T19:28:59.000Z
2021-07-23T19:28:59.000Z
setup.py
Liam-Deacon/antlr4-vba-parser
af273e6d7c4efd7660d647ad5b6e338a4ff46bd3
[ "BSD-3-Clause" ]
null
null
null
setup.py
Liam-Deacon/antlr4-vba-parser
af273e6d7c4efd7660d647ad5b6e338a4ff46bd3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # type: ignore """Setup script for package.""" import os import sys import configparser import datetime import distutils.cmd import distutils.log import subprocess import glob import shutil from pathlib import Path setup_kwargs = {} from setuptools import find_packages, ...
30.465116
112
0.644084
bdda42cc76c0533cf7908bddea1b491c2bc92a55
812
py
Python
src/zenml/integrations/airflow/orchestrators/__init__.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
1
2022-03-11T10:15:22.000Z
2022-03-11T10:15:22.000Z
src/zenml/integrations/airflow/orchestrators/__init__.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
src/zenml/integrations/airflow/orchestrators/__init__.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.666667
83
0.754926
1be7ca526125cc0b9b03ec2748c13c201564cf00
3,387
py
Python
pyasn1_modules/rfc5544.py
inexio/pyasn1-modules
13b84f74541ec442037273ddf8ba62bbba2cd974
[ "BSD-2-Clause" ]
2
2020-12-29T07:13:05.000Z
2021-02-07T15:32:26.000Z
pyasn1_modules/rfc5544.py
inexio/pyasn1-modules
13b84f74541ec442037273ddf8ba62bbba2cd974
[ "BSD-2-Clause" ]
3
2020-12-22T23:21:43.000Z
2021-04-06T16:24:39.000Z
pyasn1_modules/rfc5544.py
inexio/pyasn1-modules
13b84f74541ec442037273ddf8ba62bbba2cd974
[ "BSD-2-Clause" ]
1
2021-01-17T17:45:03.000Z
2021-01-17T17:45:03.000Z
# # This file is part of pyasn1-modules software. # # Created by Russ Housley with assistance from asn1ate v.0.6.0. # # Copyright (c) 2021, Vigil Security, LLC # License: http://snmplabs.com/pyasn1/license.html # # TimeStampedData # # ASN.1 source from: # https://www.rfc-editor.org/rfc/rfc5544.txt # from pyasn1.type i...
27.314516
75
0.725716
c234943eda72fe5b5645ce912b43f8982d9bcf3c
23,362
py
Python
f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py
Sinan828/mitaka_agent
82b65db257e8b9d05d57ca21133352bc5d6a9c94
[ "Apache-2.0" ]
null
null
null
f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py
Sinan828/mitaka_agent
82b65db257e8b9d05d57ca21133352bc5d6a9c94
[ "Apache-2.0" ]
null
null
null
f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py
Sinan828/mitaka_agent
82b65db257e8b9d05d57ca21133352bc5d6a9c94
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) 2014-2018, F5 Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.742952
79
0.587963
693af3d47073b2ee726af8b366939d2e5b2f3b14
4,574
py
Python
test/api.test.py
industrydive/datawrapper
073429e25f3923c7fb19469a298f9591b97cf287
[ "MIT" ]
1
2017-02-16T16:36:44.000Z
2017-02-16T16:36:44.000Z
test/api.test.py
pl3442/datawrapper
bd28a50f88a07199e9e6cd1a96e1e53854ca6282
[ "MIT" ]
null
null
null
test/api.test.py
pl3442/datawrapper
bd28a50f88a07199e9e6cd1a96e1e53854ca6282
[ "MIT" ]
null
null
null
# # test script for Datawrapper API # import requests import os import json from random import randint import yaml config = yaml.load(open('../config.yaml').read()) domain = 'http://' + config['domain'] if 'DATAWRAPPER_DOMAIN' in os.environ: domain = os.environ['DATAWRAPPER_DOMAIN'] endpoint = domain + '/api/...
31.115646
82
0.586139
7d977c0ade47bccf286ef68982818a4a8a052d48
762
py
Python
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
paginas/migrations/0010_remove_publicacao_descricao_remove_publicacao_hora_and_more.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-13 19:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('paginas', '0009_remove_publicacao_imagem'), ] operations = [ migrations.RemoveField( model_name='publicacao', name='descricao'...
22.411765
53
0.531496
d9f99ccda93f0d45e8ddcb5f99fc832c52354cd2
2,465
py
Python
sdk/python/pulumi_azure_native/containerservice/v20200201/list_managed_cluster_user_credentials.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20200201/list_managed_cluster_user_credentials.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20200201/list_managed_cluster_user_credentials.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
36.791045
184
0.712779
c2d64e74af4c8ed3b70d51de04aa1d503243a71c
7,412
py
Python
courses/machine_learning/feateng/taxifare/trainer/model.py
ismailbaigteg/python
50a15a786dbd13d097a3cf89d35a70918ae48b81
[ "Apache-2.0" ]
58
2019-05-16T00:12:11.000Z
2022-03-14T06:12:12.000Z
courses/machine_learning/feateng/taxifare/trainer/model.py
ismailbaigteg/python
50a15a786dbd13d097a3cf89d35a70918ae48b81
[ "Apache-2.0" ]
1
2021-03-26T00:38:05.000Z
2021-03-26T00:38:05.000Z
courses/machine_learning/feateng/taxifare/trainer/model.py
ismailbaigteg/python
50a15a786dbd13d097a3cf89d35a70918ae48b81
[ "Apache-2.0" ]
46
2018-03-03T17:17:27.000Z
2022-03-24T14:56:46.000Z
#!/usr/bin/env python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
36.156098
115
0.722342
10e679bb3dbead21401041b3087e73305d3898a4
7,886
py
Python
double_dqn_agent.py
and-buk/Learning-from-Pixels
7320f08de7b52308b0f36a3759001c85bcdb797a
[ "MIT" ]
null
null
null
double_dqn_agent.py
and-buk/Learning-from-Pixels
7320f08de7b52308b0f36a3759001c85bcdb797a
[ "MIT" ]
null
null
null
double_dqn_agent.py
and-buk/Learning-from-Pixels
7320f08de7b52308b0f36a3759001c85bcdb797a
[ "MIT" ]
null
null
null
import numpy as np import random from collections import namedtuple, deque from model import VQNetwork import torch import torch.nn.functional as F import torch.optim as optim BUFFER_SIZE = int(1e4) # replay buffer size BATCH_SIZE = 64 # minibatch size GAMMA = 0.99 # discount factor TAU = 1...
42.171123
127
0.622115
207055ef15e1cd4f4ac10fa7cdcdd5eec2d34dee
532
py
Python
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_menus/__init__.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_menus/__init__.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_menus/__init__.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2016 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
40.923077
75
0.804511
b6fb8bc1c27545e3ace65a10fce55d97ab156acb
16,749
py
Python
webapp/tests/test_attime.py
techonomics69/graphite-web
b2b2a0bf708889e5dd7ce3bec7e521195584b951
[ "Apache-2.0" ]
null
null
null
webapp/tests/test_attime.py
techonomics69/graphite-web
b2b2a0bf708889e5dd7ce3bec7e521195584b951
[ "Apache-2.0" ]
1
2020-04-27T00:55:37.000Z
2020-04-27T00:55:37.000Z
webapp/tests/test_attime.py
techonomics69/graphite-web
b2b2a0bf708889e5dd7ce3bec7e521195584b951
[ "Apache-2.0" ]
null
null
null
try: import unittest2 as unittest except ImportError: import unittest from graphite.render.attime import parseTimeReference, parseATTime, parseTimeOffset, getUnitString from datetime import datetime, timedelta from django.utils import timezone from .base import TestCase import pytz import mock class MockedDa...
39.224824
118
0.690668
74e87f5d133f764f1c12dc6f39ff78f7e3b5ffa9
203
py
Python
petromark/config/desktop.py
exvas/petromark
7c8fd7ee33418d4e2bdc086562a311955be35b70
[ "MIT" ]
null
null
null
petromark/config/desktop.py
exvas/petromark
7c8fd7ee33418d4e2bdc086562a311955be35b70
[ "MIT" ]
null
null
null
petromark/config/desktop.py
exvas/petromark
7c8fd7ee33418d4e2bdc086562a311955be35b70
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return [ { "module_name": "Petromark", "color": "grey", "icon": "octicon octicon-file-directory", "type": "module", "label": _("Petromark") } ]
15.615385
44
0.586207
0b079d50fb753c8618033ad6ae73a54d872809e3
9,342
py
Python
rpython/rtyper/module/test/test_ll_os.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
rpython/rtyper/module/test/test_ll_os.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
null
null
null
rpython/rtyper/module/test/test_ll_os.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
import os from rpython.tool.udir import udir from rpython.translator.c.test.test_genc import compile from rpython.rtyper.module import ll_os #has side effect of registering functions from rpython.tool.pytest.expecttest import ExpectTest from rpython.rtyper import extregistry import errno import sys import py def get...
30.831683
90
0.603083
b70f60088dbc8cef5fae49b4e52d56c39b0c5ccb
6,434
py
Python
lib/metrics.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/metrics.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/metrics.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
# Copyright (C) 2021. 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 implied warranty of # ME...
38.993939
103
0.722878
f7268b17e5afdf9edaac16ec22aa1865bf00ab9e
6,337
py
Python
RecoTracker/ConversionSeedGenerators/python/PhotonConversionTrajectorySeedProducerFromSingleLeg_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoTracker/ConversionSeedGenerators/python/PhotonConversionTrajectorySeedProducerFromSingleLeg_cfi.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
RecoTracker/ConversionSeedGenerators/python/PhotonConversionTrajectorySeedProducerFromSingleLeg_cfi.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms from RecoTracker.TkSeedGenerator.SeedGeneratorFromRegionHitsEDProducer_cfi import seedGeneratorFromRegionHitsEDProducer CommonClusterCheckPSet = seedGeneratorFromRegionHitsEDProducer.ClusterCheckPSet photonConvTrajSeedFromSingleLeg = cms.EDProducer("PhotonConversionTraject...
70.411111
153
0.453369
3852afa9428538bf641528d6317e6f40f3ad4557
1,929
py
Python
ui/controller/workspace_handler.py
ctwardy/sitehound
0f928a82f761e3d0335d1d4d01f6105b726fd889
[ "Apache-2.0" ]
null
null
null
ui/controller/workspace_handler.py
ctwardy/sitehound
0f928a82f761e3d0335d1d4d01f6105b726fd889
[ "Apache-2.0" ]
null
null
null
ui/controller/workspace_handler.py
ctwardy/sitehound
0f928a82f761e3d0335d1d4d01f6105b726fd889
[ "Apache-2.0" ]
1
2018-10-02T22:03:23.000Z
2018-10-02T22:03:23.000Z
from flask_login import login_required from controller.InvalidException import InvalidUsage __author__ = 'tomas' import json from ui import app from flask import Response, request, jsonify from service.workspace_service import list_workspace, add_workspace, delete_workspace, get_workspace from utils.json_encoder imp...
29.676923
100
0.749093
974260a320e4b2558fd26ce72234b171b0c40614
5,382
py
Python
vinzclortho/store.py
parbo/vinzclortho
bc75bceda06a6c6354c8f4759f27406056a1d605
[ "MIT" ]
1
2022-01-07T15:50:28.000Z
2022-01-07T15:50:28.000Z
vinzclortho/store.py
parbo/vinzclortho
bc75bceda06a6c6354c8f4759f27406056a1d605
[ "MIT" ]
null
null
null
vinzclortho/store.py
parbo/vinzclortho
bc75bceda06a6c6354c8f4759f27406056a1d605
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2001-2010 Pär Bohrarper. # See LICENSE for details. import sqlite3 import bsddb import unittest class Store(object): """Base class for stores.""" def put(self, key, value): raise NotImplementedError def get(self, key): raise NotImplementedError ...
27.181818
100
0.549238
79a966bf47562e4d6f847fed524575a517ed81ea
1,488
py
Python
Code/randomKmeans.py
suraj-ravishankar/Random-Global-Fast-global-k-means
24bef99f30de188b63238e6ea0b35510f4f89d38
[ "MIT" ]
null
null
null
Code/randomKmeans.py
suraj-ravishankar/Random-Global-Fast-global-k-means
24bef99f30de188b63238e6ea0b35510f4f89d38
[ "MIT" ]
null
null
null
Code/randomKmeans.py
suraj-ravishankar/Random-Global-Fast-global-k-means
24bef99f30de188b63238e6ea0b35510f4f89d38
[ "MIT" ]
1
2020-03-06T03:41:11.000Z
2020-03-06T03:41:11.000Z
import numpy as np import math import random from itertools import repeat def randomKmeans(samples, k, TOL, C): SS_Previous = 0 samplesLength = len(samples) dim = len(samples[0]) while 1: P = [[] for i in repeat(None, k)] # find the closest cluster centroid for i in range(samplesLength): minIdx = 0 m...
23.25
55
0.65457
c85f8f0c4745e4f18b6448cdc44f37f4459b0d6a
6,011
py
Python
experiments/cascading/sim_cascading.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
null
null
null
experiments/cascading/sim_cascading.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
null
null
null
experiments/cascading/sim_cascading.py
lanxuedang/TIGER
a134b49f9c64321cb521a25953f9771ced9b597e
[ "MIT" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt from collections import defaultdict import sys sys.path.insert(0, os.getcwd() + '/../../') from graph_tiger.graphs import electrical from graph_tiger.cascading import Cascading def plot_results(graph, params, results, xlabel='Steps', line_label='', experi...
25.578723
123
0.55282
8fb61e642a150dc242f16101c9ea63de0c499adb
211
py
Python
simp_py_examples/course/SM1801/t001.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
simp_py_examples/course/SM1801/t001.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
simp_py_examples/course/SM1801/t001.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
""" t001.py This is M5Stack micropython example """ import simp_py # keyword # clear screen simp_py.lcd.clear() # module -> object -> method() # show message on screen simp_py.lcd.text(0,0,'hello')
21.1
54
0.668246
595a0119c2a4573a9750c525527f911524d0f312
2,159
py
Python
tools/xi_format_code.py
Rhunter1/xively-client-c
bbb0a472c7b2f592c8d167eedf46221626f881df
[ "BSD-3-Clause" ]
null
null
null
tools/xi_format_code.py
Rhunter1/xively-client-c
bbb0a472c7b2f592c8d167eedf46221626f881df
[ "BSD-3-Clause" ]
null
null
null
tools/xi_format_code.py
Rhunter1/xively-client-c
bbb0a472c7b2f592c8d167eedf46221626f881df
[ "BSD-3-Clause" ]
2
2019-09-18T11:26:52.000Z
2019-10-25T19:27:31.000Z
#!/usr/bin/env python # Copyright (c) 2003-2018, Xively All rights reserved. # # This is part of the Xively C Client library, # it is licensed under the BSD 3-Clause license. import os import argparse import uuid import subprocess import shlex CLANG_FORMAT = "clang-format -style=file" def clangFormatFile( filename ...
31.75
141
0.624826
b75a0224ff7c2281626b6011975f29f456f0b2e6
2,570
py
Python
kol/request/ItemDescriptionRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
kol/request/ItemDescriptionRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
kol/request/ItemDescriptionRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
from .GenericRequest import GenericRequest from kol.manager import PatternManager class ItemDescriptionRequest(GenericRequest): "Gets the description of an item and then parses various information from the response." def __init__(self, session, descId): super(ItemDescriptionRequest, self).__init__(ses...
43.559322
100
0.695331
1dc22a617f2373e16e90111adf2b74d8284fcc2a
944
py
Python
kubernetes/test/test_v1_initializers.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_initializers.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_initializers.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
1
2019-01-10T11:13:52.000Z
2019-01-10T11:13:52.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
20.977778
105
0.70339
b3bd49f3fc7648e971ef782e8bc6f95b7ace34a5
15,918
py
Python
caas_reg.py
gfragi/py_regression
8287a3df760fc17af7e9ea9ee6df0ace7401ef75
[ "MIT" ]
null
null
null
caas_reg.py
gfragi/py_regression
8287a3df760fc17af7e9ea9ee6df0ace7401ef75
[ "MIT" ]
1
2022-03-09T00:51:16.000Z
2022-03-09T00:51:16.000Z
caas_reg.py
gfragi/py_regression
8287a3df760fc17af7e9ea9ee6df0ace7401ef75
[ "MIT" ]
null
null
null
# ============== Import libraries ========= import numpy as np import pandas as pd import warnings import matplotlib.pyplot as plt import seaborn as sns import statsmodels.api as sm from pandas.core.dtypes.common import is_numeric_dtype, is_string_dtype from sklearn import linear_model from sklearn.metrics import mean_...
35.216814
136
0.666478
4017984ddbf51dfdb71ce82f0df5198150f415e2
35,655
py
Python
conans/test/functional/toolchains/microsoft/test_msbuilddeps.py
blackliner/conan
7848f7fcf1d0ce6e368f1dc05e4b20f40a9203c6
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/microsoft/test_msbuilddeps.py
blackliner/conan
7848f7fcf1d0ce6e368f1dc05e4b20f40a9203c6
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/microsoft/test_msbuilddeps.py
blackliner/conan
7848f7fcf1d0ce6e368f1dc05e4b20f40a9203c6
[ "MIT" ]
null
null
null
import os import platform import textwrap import unittest import pytest from conans.test.assets.genconanfile import GenConanfile from conans.test.assets.pkg_cmake import pkg_cmake from conans.test.assets.sources import gen_function_cpp, gen_function_h from conans.test.assets.visual_project_files import get_vs_project...
44.513109
136
0.660609
c2320f96e6278dfbf94b34050e34c10bd16fa7e8
3,908
py
Python
tests/system/providers/google/bigquery/example_bigquery_operations.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
tests/system/providers/google/bigquery/example_bigquery_operations.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
tests/system/providers/google/bigquery/example_bigquery_operations.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.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...
35.853211
109
0.744115
e857a6eea02f07024ecffece8bfc9f185aba1bfb
118
py
Python
02. ePuskesmas Splitter v1.5/_constants.py
ivanwilliammd/Smale-Scale-Information-System-mini-apps
927850728c92837e86ab60f357b383ab6dec0d87
[ "Apache-2.0" ]
1
2021-07-20T15:07:57.000Z
2021-07-20T15:07:57.000Z
02. ePuskesmas Splitter v1.5/_constants.py
ivanwilliammd/Smale-Scale-Information-System-mini-apps
927850728c92837e86ab60f357b383ab6dec0d87
[ "Apache-2.0" ]
null
null
null
02. ePuskesmas Splitter v1.5/_constants.py
ivanwilliammd/Smale-Scale-Information-System-mini-apps
927850728c92837e86ab60f357b383ab6dec0d87
[ "Apache-2.0" ]
null
null
null
VERSION = "1.5.0" BUILD_DATE = "2020-04-07T13:12:44.751234" AUTHOR = "dr. Ivan William Harsono, MTI" DEBUGGING = False
29.5
41
0.711864
f76ed4233c319cc4eed7d60f095a15a8b8fe4aaf
6,189
py
Python
train/tasks/semantic/visualize_uncertainty.py
inkyusa/SalsaNext
c72cfb643add90cf51ab87e2b4eaef53bb457729
[ "MIT" ]
null
null
null
train/tasks/semantic/visualize_uncertainty.py
inkyusa/SalsaNext
c72cfb643add90cf51ab87e2b4eaef53bb457729
[ "MIT" ]
null
null
null
train/tasks/semantic/visualize_uncertainty.py
inkyusa/SalsaNext
c72cfb643add90cf51ab87e2b4eaef53bb457729
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This file is covered by the LICENSE file in the root of this project. import argparse import os import yaml import __init__ as booger from common.laserscan import LaserScan, SemLaserScan from common.laserscanvis_uncert import LaserScanVisUncert import glob if __name__ == '__main__': pa...
34.383333
154
0.606237
a2997ccce861ce7cb77b6b6ced6953e49d28ee03
3,434
py
Python
register_bucket_policy/schema/aws/s3/awsapicallviacloudtrail/UserIdentity.py
aws-samples/amazon-s3-bucket-policies-versioning
df5ec498c922b6a0aa944a5205e9bc3a42d9ddfe
[ "MIT-0" ]
null
null
null
register_bucket_policy/schema/aws/s3/awsapicallviacloudtrail/UserIdentity.py
aws-samples/amazon-s3-bucket-policies-versioning
df5ec498c922b6a0aa944a5205e9bc3a42d9ddfe
[ "MIT-0" ]
null
null
null
register_bucket_policy/schema/aws/s3/awsapicallviacloudtrail/UserIdentity.py
aws-samples/amazon-s3-bucket-policies-versioning
df5ec498c922b6a0aa944a5205e9bc3a42d9ddfe
[ "MIT-0" ]
null
null
null
# coding: utf-8 import pprint import re # noqa: F401 import six from enum import Enum from schema.aws.s3.awsapicallviacloudtrail.SessionContext import SessionContext # noqa: F401,E501 class UserIdentity(object): _types = { 'sessionContext': 'SessionContext', 'accessKeyId': 'str', 'acco...
21.734177
131
0.570472
f93f9275da7a6c69c754c34e11435243c0934b16
1,153
py
Python
vi_municipales_2016/scraper.py
lfalvarez/vi-municipales-2016
b76ec2d4033ea7e106219452949da6e6815584d5
[ "MIT" ]
null
null
null
vi_municipales_2016/scraper.py
lfalvarez/vi-municipales-2016
b76ec2d4033ea7e106219452949da6e6815584d5
[ "MIT" ]
null
null
null
vi_municipales_2016/scraper.py
lfalvarez/vi-municipales-2016
b76ec2d4033ea7e106219452949da6e6815584d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import facebook from django.conf import settings TOKEN = settings.FACEBOOK_ACCESS_TOKEN def string_for_search_generator(candidate): names = [] name_without_last_surname = candidate.name.rsplit(' ', 1)[0] names.append(name_without_last_surname + u' ' + candidate.election.area.name) ...
42.703704
110
0.645273
ff64f757224be03b87121c6d18cd332840adb63b
7,634
py
Python
swifter/swifter_tests.py
def-mycroft/swifter
c93f0cebad68526a024ca3c4713cec2acdddcd02
[ "MIT" ]
null
null
null
swifter/swifter_tests.py
def-mycroft/swifter
c93f0cebad68526a024ca3c4713cec2acdddcd02
[ "MIT" ]
null
null
null
swifter/swifter_tests.py
def-mycroft/swifter
c93f0cebad68526a024ca3c4713cec2acdddcd02
[ "MIT" ]
null
null
null
import unittest import time import numpy as np import pandas as pd import swifter print(f"Version {swifter.__version__}") def math_vec_square(x): return x ** 2 def math_foo(x, compare_to=1): return x ** 2 if x < compare_to else x ** (1 / 2) def math_vec_multiply(row): return row["x"] * row["y"] de...
33.482456
117
0.620644
57499fed498ea717f1b93a0dd370d93714f785ff
13,124
py
Python
paleomix/node.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
33
2015-04-08T10:44:19.000Z
2021-11-01T14:23:40.000Z
paleomix/node.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
41
2015-07-17T12:46:16.000Z
2021-10-13T06:47:25.000Z
paleomix/node.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
19
2015-01-23T07:09:39.000Z
2021-04-06T09:30:21.000Z
#!/usr/bin/python3 # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # 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 ...
38.151163
88
0.618028
e87c0509551e34d5e5a373a9b781282b325e1075
1,202
py
Python
pipetter/views.py
melinath/django-pipetter
fd21254f64e3538fd6dcd5ddc4d5dc7444f5fafb
[ "0BSD" ]
1
2017-10-14T16:32:21.000Z
2017-10-14T16:32:21.000Z
pipetter/views.py
melinath/django-pipetter
fd21254f64e3538fd6dcd5ddc4d5dc7444f5fafb
[ "0BSD" ]
null
null
null
pipetter/views.py
melinath/django-pipetter
fd21254f64e3538fd6dcd5ddc4d5dc7444f5fafb
[ "0BSD" ]
null
null
null
from django.http import HttpResponse, Http404 import django.utils.simplejson as json from pipetter.utils import refresh_cache as refresh, create_cache as create, get_cache_or_new from pipetter import registry, NotRegistered def refresh_cache(request, pipette_names): """Perform a hard refresh of the cache for any of ...
33.388889
97
0.749584
637015103a34066ba732d25e3da635dcdaedeeb7
1,307
py
Python
src/eduid_common/api/oidc.py
SUNET/eduid-common
d666aec7e47e6b0ccb575d621bb6e9f40bcea4e4
[ "BSD-3-Clause" ]
1
2016-04-14T13:45:10.000Z
2016-04-14T13:45:10.000Z
src/eduid_common/api/oidc.py
SUNET/eduid-common
d666aec7e47e6b0ccb575d621bb6e9f40bcea4e4
[ "BSD-3-Clause" ]
16
2017-03-10T11:47:59.000Z
2020-03-19T13:51:01.000Z
src/eduid_common/api/oidc.py
SUNET/eduid-common
d666aec7e47e6b0ccb575d621bb6e9f40bcea4e4
[ "BSD-3-Clause" ]
3
2016-11-21T11:39:49.000Z
2019-09-18T12:32:02.000Z
# -*- coding: utf-8 -*- import logging from sys import exit from time import sleep from typing import Any, Mapping from oic.oic import Client from oic.oic.message import RegistrationRequest from oic.utils.authn.client import CLIENT_AUTHN_METHOD from requests.exceptions import ConnectionError __author__ = 'lundberg' ...
34.394737
119
0.719969
b557e6408fa04f80939aa7595b9f9a2fa6cf19b6
683
py
Python
app/venues/migrations/0001_initial.py
swelanauguste/friendly-palm-tree
9e9709b87b645b709b3ac8aa2f57cf29dd98e2cb
[ "MIT" ]
null
null
null
app/venues/migrations/0001_initial.py
swelanauguste/friendly-palm-tree
9e9709b87b645b709b3ac8aa2f57cf29dd98e2cb
[ "MIT" ]
null
null
null
app/venues/migrations/0001_initial.py
swelanauguste/friendly-palm-tree
9e9709b87b645b709b3ac8aa2f57cf29dd98e2cb
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-27 03:51 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Venue', fields=[ ('id', models.BigAutoField...
27.32
117
0.575403
e2d82bd5eb72c616ad8052fe30120e3acb7e5a79
1,925
py
Python
forum/moderation/migrations/0004_auto_20200101_1738.py
successIA/Forum
08de91a033da2c3779acbf95dfe0210eb1276a26
[ "MIT" ]
null
null
null
forum/moderation/migrations/0004_auto_20200101_1738.py
successIA/Forum
08de91a033da2c3779acbf95dfe0210eb1276a26
[ "MIT" ]
6
2020-08-13T18:54:33.000Z
2021-06-10T20:20:16.000Z
forum/moderation/migrations/0004_auto_20200101_1738.py
successIA/ClassicForum
08de91a033da2c3779acbf95dfe0210eb1276a26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2020-01-01 16:38 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depend...
41.847826
277
0.648312
eb3ae07d5d372198fe147ad2f30a5658448aad33
7,011
py
Python
venv/Lib/site-packages/pycparser/lextab.py
asanka9/Quession-Discussion-App-Socket.Io-NLP
95a49a8afa572dc3908a0bade45e424c3751f191
[ "Apache-2.0" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
venv/Lib/site-packages/pycparser/lextab.py
asanka9/Quession-Discussion-App-Socket.Io-NLP
95a49a8afa572dc3908a0bade45e424c3751f191
[ "Apache-2.0" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
lib/python2.7/site-packages/pycparser/lextab.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
# lextab.py. This file automatically created by PLY (version 3.10). Don't edit! _tabversion = '3.10' _lextokens = set(('VOID', 'LBRACKET', 'WCHAR_CONST', 'FLOAT_CONST', 'MINUS', 'RPAREN', 'LONG', 'PLUS', 'ELLIPSIS', 'GT', 'GOTO', 'ENUM', 'PERIOD', 'GE', 'INT_CONST_DEC', 'ARROW', '__INT128', 'HEX_FLOAT_CONST', 'DOU...
637.363636
5,537
0.534589
858b5dbbcb7eca6b95fff8297e434aebfe636372
3,251
py
Python
yaep/test/parse/testearley.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
1
2015-11-25T00:47:58.000Z
2015-11-25T00:47:58.000Z
yaep/test/parse/testearley.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
null
null
null
yaep/test/parse/testearley.py
kruskod/nltk
dba7b5431b1d57a75d50e048961c1a203b98c3da
[ "Apache-2.0" ]
null
null
null
import unittest from nltk import CFG from nltk.grammar import Nonterminal from yaep.parse.earley import Rule, Grammar, EarleyParser, \ nonterminal_to_term class TestRule(unittest.TestCase): def setUp(self): # Perform set up actions (if any) self.production = CFG.fromstring("S -> A 'b'").prod...
36.943182
107
0.638265
ed6c42a12957a5175b302f067f20c8c8d2f00a76
8,617
py
Python
sovtoken/sovtoken/test/test_public_xfer_1.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtoken/sovtoken/test/test_public_xfer_1.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtoken/sovtoken/test/test_public_xfer_1.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
1
2020-05-27T10:06:42.000Z
2020-05-27T10:06:42.000Z
import pytest from plenum.common.txn_util import get_seq_no from plenum.common.exceptions import RequestNackedException from plenum.common.types import OPERATION from sovtoken.constants import SIGS, ADDRESS, SEQNO, AMOUNT, OUTPUTS from sovtoken.test.helper import user1_token_wallet @pytest.fixture def addresses(help...
30.775
103
0.675989
86a439915c059c017a27f618c5a51ac97b8cdf6e
15,707
py
Python
tests/integration/fileserver/fileclient_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/integration/fileserver/fileclient_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/integration/fileserver/fileclient_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Mike Place <mp@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import import errno import logging import os import shutil log = logging.getLogger(__name__) # Import Salt Testing libs from salttesting.unit import skipIf from salttesting.help...
43.752089
97
0.544343
3f9048c334fd74983fda33bd5ce2ae927ab4496d
12,607
py
Python
modules/xia2/Modules/Report/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Modules/Report/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/xia2/Modules/Report/__init__.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from collections import OrderedDict from six.moves import cStringIO as StringIO import xia2.Handlers.Environment import xia2.Handlers.Files from cctbx.array_family import flex import libtbx.phil from iotbx import mergi...
36.542029
88
0.626398
a627bf4b29253b5505aa4933ff01f67e985a077d
4,229
py
Python
grapheditor/settings.py
Chudopal/Graph_editor
133cced79d723b8b77cceffd5c44485bbdbb0822
[ "MIT" ]
4
2020-05-25T15:20:49.000Z
2020-06-13T14:22:40.000Z
grapheditor/settings.py
Chudopal/Graph_editor
133cced79d723b8b77cceffd5c44485bbdbb0822
[ "MIT" ]
4
2021-03-30T13:42:22.000Z
2021-09-22T19:08:20.000Z
grapheditor/settings.py
Chudopal/Graph_editor
133cced79d723b8b77cceffd5c44485bbdbb0822
[ "MIT" ]
1
2021-04-15T02:52:35.000Z
2021-04-15T02:52:35.000Z
""" Django settings for grapheditor project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import o...
27.283871
102
0.714353
d417ae17adef507fe60be82ea2d2799ad66bf948
421
py
Python
config.py
anqurvanillapy/zhai-classroom
4c86e9c7d3d2a8d4fb97a91b76c8e654dc41335c
[ "MIT" ]
null
null
null
config.py
anqurvanillapy/zhai-classroom
4c86e9c7d3d2a8d4fb97a91b76c8e654dc41335c
[ "MIT" ]
null
null
null
config.py
anqurvanillapy/zhai-classroom
4c86e9c7d3d2a8d4fb97a91b76c8e654dc41335c
[ "MIT" ]
null
null
null
"""Server config loader """ import json import datetime as dt CFG_NAME = ".apprc" def read(): _cfg = { "timedelta": dt.timedelta(weeks=1), "img_path": "img", "max_filename_length": 128, "max_content_length": 5 * 1024 * 1024, "allowed_fileexts": ["png", "jpg", "jpeg"], ...
19.136364
51
0.56057
adf839db3ce8b76bcd6e8e711875e74592c6e9f6
819
py
Python
tensorflow/evaluate.py
tagny/iLID
38f5dcae0dc84fd9b78e170748aa38cd8f524c70
[ "MIT" ]
90
2016-02-19T12:37:20.000Z
2022-02-25T19:52:46.000Z
tensorflow/evaluate.py
vyas97/iLID
4d124b76fdbc37fbafd12e860281a4bc3ddf87d9
[ "MIT" ]
7
2017-03-24T04:12:09.000Z
2020-06-16T11:27:54.000Z
tensorflow/evaluate.py
vyas97/iLID
4d124b76fdbc37fbafd12e860281a4bc3ddf87d9
[ "MIT" ]
31
2016-02-01T12:52:51.000Z
2021-08-16T04:27:59.000Z
import tensorflow as tf import numpy as np import yaml from scipy.ndimage import imread from network.instances.berlinnet_unnormal import net import networkinput import argparse config = yaml.load(file("config.yaml")) def evaluate(model_path): training_set = networkinput.CSVInput(config['TRAINING_DATA'], config['I...
32.76
125
0.750916
786c361bde5b6d117e5df2d4c56c8ecd668c990e
1,852
py
Python
midterm_takehome/gemm_scratch/gemm_two_features.py
mengjian0502/eee511_team3_assignment
6ba0015a9b49db42a4ae77e51909ef8901b7459f
[ "MIT" ]
null
null
null
midterm_takehome/gemm_scratch/gemm_two_features.py
mengjian0502/eee511_team3_assignment
6ba0015a9b49db42a4ae77e51909ef8901b7459f
[ "MIT" ]
null
null
null
midterm_takehome/gemm_scratch/gemm_two_features.py
mengjian0502/eee511_team3_assignment
6ba0015a9b49db42a4ae77e51909ef8901b7459f
[ "MIT" ]
null
null
null
import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns; sns.set() from kmeans import k_means parser = argparse.ArgumentParser(description='Kmeans clustering') # parameters parser.add_argument('--clusters', type=int, default=4, help='number of clusters') args = par...
29.396825
127
0.579374
aafe1ff1ce81a142a2a96d0147c11324586a0888
13,331
py
Python
tests/sentry/integrations/github/test_integration.py
JeffHeon/sentry
514bea52de53a119cf1a01b98d071f062fe13c9c
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/integrations/github/test_integration.py
JeffHeon/sentry
514bea52de53a119cf1a01b98d071f062fe13c9c
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/integrations/github/test_integration.py
JeffHeon/sentry
514bea52de53a119cf1a01b98d071f062fe13c9c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import responses import six import sentry from mock import MagicMock from six.moves.urllib.parse import parse_qs, urlencode, urlparse from sentry.constants import ObjectStatus from sentry.integrations.github import GitHubIntegrationProvider from sentry.models import ( Ident...
33.3275
91
0.585252
a09a3961b4b3c0bbb3b3210ba93165220e3fa7e3
6,248
py
Python
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
emackey/glTF-Blender-IO
3ab37ba38a3ae483d69a029f979286ded8b9b94b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 The glTF-Blender-IO authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
42.503401
126
0.744238
732137cb0875348e4f5e751639760fa1a9d47a90
2,715
py
Python
env/lib/python3.10/site-packages/ExceptionHandling/_metadata.py
Arcfrost/MyBlog---TextToSpeech
861db3881fde00397a9b826c900fa96f5c5d9ae4
[ "MIT" ]
null
null
null
env/lib/python3.10/site-packages/ExceptionHandling/_metadata.py
Arcfrost/MyBlog---TextToSpeech
861db3881fde00397a9b826c900fa96f5c5d9ae4
[ "MIT" ]
null
null
null
env/lib/python3.10/site-packages/ExceptionHandling/_metadata.py
Arcfrost/MyBlog---TextToSpeech
861db3881fde00397a9b826c900fa96f5c5d9ae4
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Sun Jul 11 21:37:16 2021 # # flake8: noqa import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if objc.arch == "arm64": def selAorI(a, b): return a else:...
32.321429
508
0.67477
e8fddbc838267d165c049da4bb8d63f317b3e132
652
py
Python
app.py
Guts76/tp-gcp-flask
e3057e46676b0dc56bab474af8672ce6ce3cec88
[ "MIT" ]
null
null
null
app.py
Guts76/tp-gcp-flask
e3057e46676b0dc56bab474af8672ce6ce3cec88
[ "MIT" ]
null
null
null
app.py
Guts76/tp-gcp-flask
e3057e46676b0dc56bab474af8672ce6ce3cec88
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, make_response, g import os import socket import random import json import logging option_a = os.getenv('OPTION_A', "Cats") option_b = os.getenv('OPTION_B', "Dogs") hostname = socket.gethostname() app = Flask(__name__) gunicorn_error_logger = logging.getLogger('gunic...
23.285714
67
0.728528
bf3a2fc52c1cd67e9ce24516b4fc3319344f2330
1,964
py
Python
architecture.py
orffen/swn-py
8cbff08e02bb761bf98c6c30b76865a49d31a3a3
[ "MIT" ]
1
2018-02-19T04:26:19.000Z
2018-02-19T04:26:19.000Z
architecture.py
orffen/swn-py
8cbff08e02bb761bf98c6c30b76865a49d31a3a3
[ "MIT" ]
null
null
null
architecture.py
orffen/swn-py
8cbff08e02bb761bf98c6c30b76865a49d31a3a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # architecture.py # SWN Architecture Generator # # Copyright (c) 2014 Steve Simenic <orffen@orffenspace.com> # # This file is part of the SWN Toolbox. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Sof...
33.288136
79
0.689919
1bfff7c36e5ef22964811e966f253d09d9fabfe0
2,160
py
Python
docs/example.py
ausaki/python-validator
c795b038b53cb54adf4acceb223b156eb903002c
[ "MIT" ]
44
2018-07-30T07:09:15.000Z
2021-11-30T02:37:00.000Z
docs/example.py
ausaki/python-validator
c795b038b53cb54adf4acceb223b156eb903002c
[ "MIT" ]
8
2019-02-18T15:00:31.000Z
2021-02-02T07:20:57.000Z
docs/example.py
ausaki/python-validator
c795b038b53cb54adf4acceb223b156eb903002c
[ "MIT" ]
6
2019-03-10T20:34:23.000Z
2022-01-18T05:34:13.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from validator import Validator, StringField, IntegerField, EnumField, ListField, DictField, create_validator from validator.exceptions import FieldRequiredError import json import pprint class UserInfoValidator(Validator): name = StringField(max_lengt...
21.176471
109
0.623611
423036f6e84ffed39bb6d12589bbe354fcf8b883
1,429
py
Python
lite/tools/cmake_tools/parse_op_registry.py
banbishan/Paddle-Lite
02517c12c31609f413a1c47a83e25d3fbff07074
[ "Apache-2.0" ]
null
null
null
lite/tools/cmake_tools/parse_op_registry.py
banbishan/Paddle-Lite
02517c12c31609f413a1c47a83e25d3fbff07074
[ "Apache-2.0" ]
null
null
null
lite/tools/cmake_tools/parse_op_registry.py
banbishan/Paddle-Lite
02517c12c31609f413a1c47a83e25d3fbff07074
[ "Apache-2.0" ]
null
null
null
# 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...
31.065217
74
0.621414
2189c69e2164afa57ffa595737a8431caf2bb3f1
4,127
py
Python
src/GitHub.py
salob/python-graphql
b69afc43e29da9855767d32599c2e366478c7799
[ "MIT" ]
null
null
null
src/GitHub.py
salob/python-graphql
b69afc43e29da9855767d32599c2e366478c7799
[ "MIT" ]
null
null
null
src/GitHub.py
salob/python-graphql
b69afc43e29da9855767d32599c2e366478c7799
[ "MIT" ]
null
null
null
''' Created on 18 Feb 2021 @author: salob ''' import requests from datetime import datetime class GitHub(object): ''' Github object ''' def __init__(self,ghKey,apiUrl="https://api.github.com/graphql"): ''' Constructor ''' self.key = ghKey self.apiurl = apiUr...
26.286624
120
0.464744
b18628795a59867692f9921925b8ac82a4fa1bac
59,238
py
Python
ec2/spark_ec2.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
11
2016-05-26T12:06:38.000Z
2020-07-06T20:37:07.000Z
ec2/spark_ec2.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
null
null
null
ec2/spark_ec2.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
9
2016-07-29T01:13:50.000Z
2020-07-23T16:16:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # 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 Lice...
40.352861
100
0.596847
94dd07c8922bf1415bad0bbc5de2b929739912b6
5,530
py
Python
nipype/interfaces/slicer/legacy/filtering.py
hanke/nipype
71fb90a1fd55e7c6a42e0315ba6e603d8301b6ab
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/slicer/legacy/filtering.py
hanke/nipype
71fb90a1fd55e7c6a42e0315ba6e603d8301b6ab
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/slicer/legacy/filtering.py
hanke/nipype
71fb90a1fd55e7c6a42e0315ba6e603d8301b6ab
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf8 -*- """Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.""" from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath ...
69.125
925
0.787703
59064a72a9d7b6a05a8cc4e346ff91e700ef3928
18,297
py
Python
tests/unittests/test_pulsar.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
tests/unittests/test_pulsar.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
tests/unittests/test_pulsar.py
praksinha/hubble
54062cf07bf2462ea9be149d740f38defd849b25
[ "Apache-2.0" ]
null
null
null
""" Test the fim (pulsar) internals for various correctness """ import os import shutil import logging import six from salt.exceptions import CommandExecutionError import hubblestack.extmods.modules.pulsar as pulsar log = logging.getLogger(__name__) class TestPulsar(object): """ An older set of pulsar tests """...
36.667335
249
0.595125
7e0035cd6e61b9153652f5b38eb832c6db59a787
227
py
Python
Sem3/Python/assignment4/12_string.py
nsudhanva/mca-code
812348ce53edbe0f42f85a9c362bfc8aad64e1e7
[ "MIT" ]
null
null
null
Sem3/Python/assignment4/12_string.py
nsudhanva/mca-code
812348ce53edbe0f42f85a9c362bfc8aad64e1e7
[ "MIT" ]
null
null
null
Sem3/Python/assignment4/12_string.py
nsudhanva/mca-code
812348ce53edbe0f42f85a9c362bfc8aad64e1e7
[ "MIT" ]
2
2018-10-12T06:38:14.000Z
2019-01-30T04:38:03.000Z
some_strings = list(input('Enter some strings: ').replace(' ', '').split(',')) def count_ind_strings(some_strings): for i in some_strings: print('Length of string:', i, ':', len(i)) count_ind_strings(some_strings)
32.428571
78
0.669604
04f86b2e5601e436ae67948cc8416cf8cc831f07
1,769
py
Python
examples/dfp/v201711/custom_field_service/get_all_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201711/custom_field_service/get_all_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201711/custom_field_service/get_all_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
34.019231
74
0.722442
2ff4b9c1a2a02caca268ec262b43814910202500
1,222
py
Python
tests/datasets.py
sam-atkins/manage-conf
de9d0fd8d512061e4e52766eb3db1ca8eafaa63c
[ "MIT" ]
null
null
null
tests/datasets.py
sam-atkins/manage-conf
de9d0fd8d512061e4e52766eb3db1ca8eafaa63c
[ "MIT" ]
30
2019-05-29T11:04:54.000Z
2019-07-04T06:23:58.000Z
tests/datasets.py
sam-atkins/manage-conf
de9d0fd8d512061e4e52766eb3db1ca8eafaa63c
[ "MIT" ]
null
null
null
import datetime BOTO_PAYLOAD = { "Parameters": [ { "Name": "/portal/dev/ALLOWED_HOSTS", "Type": "StringList", "Value": "\"['uglyurl.execute-api.us-east-1.amazonaws.com']\"", "Version": 5, "LastModifiedDate": datetime.datetime(2019, 3, 26, 16, 15,...
30.55
83
0.477087
a2bbac2a25474af938c9829739df9f044f486b01
1,456
py
Python
torch/distributed/algorithms/model_averaging/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
3
2019-01-21T12:15:39.000Z
2019-06-08T13:59:44.000Z
torch/distributed/algorithms/model_averaging/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
1
2021-06-25T22:00:31.000Z
2021-06-25T22:00:31.000Z
torch/distributed/algorithms/model_averaging/utils.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
1
2021-10-05T07:05:26.000Z
2021-10-05T07:05:26.000Z
# flake8: noqa C101 import itertools from typing import Iterator import torch import torch.distributed as dist def average_parameters( params: Iterator[torch.nn.Parameter], process_group: dist.ProcessGroup ): """ Averages all the given parameters. For allreduce efficiency, all the parameters are flat...
38.315789
113
0.721841
43aae35ac1ea566e255f6a96f521ebc14fc594c9
428
py
Python
pythia/datasets/scene_graph_database.py
SCUT-AILab/CRN_tvqa
0680ed828208ec8c104965438fa0b1cd2010df1f
[ "BSD-3-Clause" ]
11
2020-10-27T08:59:10.000Z
2022-03-01T10:45:51.000Z
pythia/datasets/scene_graph_database.py
SCUT-AILab/CRN_tvqa
0680ed828208ec8c104965438fa0b1cd2010df1f
[ "BSD-3-Clause" ]
2
2020-10-27T08:58:47.000Z
2021-03-02T07:57:54.000Z
pythia/datasets/scene_graph_database.py
SCUT-AILab/CRN_tvqa
0680ed828208ec8c104965438fa0b1cd2010df1f
[ "BSD-3-Clause" ]
4
2020-09-13T02:39:54.000Z
2022-03-06T14:23:53.000Z
# Copyright (c) Facebook, Inc. and its affiliates. from pythia.datasets.image_database import ImageDatabase class SceneGraphDatabase(ImageDatabase): def __init__(self, scene_graph_path): super().__init__(scene_graph_path) self.data_dict = {} for item in self.data: self...
30.571429
57
0.668224
2bebbafb9f946fb5036d0473ccb16c883da82c12
969
py
Python
profil3r/get/datas/src/classes/core/services/_forum.py
GuillaumeFalourd/formulas-insights
c43f8f96e28343ab0919e10d7dc26b2dfeb0792b
[ "Apache-2.0" ]
5
2020-09-30T19:20:42.000Z
2022-02-25T22:20:30.000Z
profil3r/get/datas/src/classes/core/services/_forum.py
GuillaumeFalourd/formulas-insights
c43f8f96e28343ab0919e10d7dc26b2dfeb0792b
[ "Apache-2.0" ]
5
2020-09-28T21:53:07.000Z
2021-05-06T14:58:10.000Z
profil3r/get/datas/src/classes/core/services/_forum.py
GuillaumeFalourd/formulas-insights
c43f8f96e28343ab0919e10d7dc26b2dfeb0792b
[ "Apache-2.0" ]
null
null
null
from classes.modules.forum.zeroxzerozerosec import ZeroxZeroZeroSec from classes.modules.forum.jeuxvideo import JeuxVideo from classes.modules.forum.hackernews import Hackernews from classes.modules.forum.crackedto import CrackedTo # 0x00sec def zeroxzerozerosec(self): self.result["0x00sec"] = ZeroxZeroZeroSec(sel...
34.607143
92
0.76161
142644c1f4dd5cbd9b1ac44138773daa57461fbc
360
py
Python
tasks.py
h4ndzdatm0ld/cloud-mgmt
f21bc1f5c772ef018338c6bc041c7475537c7eb6
[ "Apache-2.0" ]
null
null
null
tasks.py
h4ndzdatm0ld/cloud-mgmt
f21bc1f5c772ef018338c6bc041c7475537c7eb6
[ "Apache-2.0" ]
null
null
null
tasks.py
h4ndzdatm0ld/cloud-mgmt
f21bc1f5c772ef018338c6bc041c7475537c7eb6
[ "Apache-2.0" ]
null
null
null
"""Tasks for use with Invoke.""" from invoke import task @task def yamllint(context): """Run yamllint.""" exec_cmd = "yamllint ." context.run(exec_cmd) @task def tests(context): """Run all tests for this repository.""" print("Running yamllint") yamllint(context) print("yamllint succeeded...
18
44
0.652778
b27072257c8126bd067b4834b21eb12d2a8d66f6
8,268
py
Python
atom/nucleus/python/nucleus_api/models/page_model.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_model.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_model.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Atom API The Hydrogen Atom API # noqa: E501 OpenAPI spec version: 1.7.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class PageModel(object): """NOTE:...
25.518519
173
0.562409
45ed01d62cb0ff174a0a4d9cbc251765998370dd
2,760
py
Python
tools/cardiac_py/mesh/read_anat.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
33
2018-12-12T20:05:06.000Z
2021-09-26T13:30:16.000Z
tools/cardiac_py/mesh/read_anat.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
5
2019-04-25T11:34:43.000Z
2021-11-14T04:35:37.000Z
tools/cardiac_py/mesh/read_anat.py
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
15
2018-12-21T22:44:59.000Z
2021-08-29T10:30:25.000Z
''' Created on 14/01/2013 @author: butler ''' import glob class AnatReader(): ''' classdocs ''' def __init__(self, file_stem): g_matcher = file_stem self.f_list = glob.glob(g_matcher) self.f_list.sort() if len(self.f_list) < 0: print "No files matching" ...
33.253012
79
0.433696
364f54bd0c93b616d06f4786bb18e14191523292
130
py
Python
dennis5/src/bias_inits.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
2
2016-08-09T21:29:46.000Z
2016-09-17T23:42:06.000Z
dennis5/src/bias_inits.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
null
null
null
dennis5/src/bias_inits.py
DarkElement75/dennis
411153b374c48a1e268dd0adffc5d9e5dc84c2c8
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def standard(shape): return tf.Variable(tf.truncated_normal(shape, stddev=1.0))
16.25
62
0.753846
3806300e0887731964c8c04ddf744920697fc2eb
2,885
py
Python
pages/admin.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
1
2021-01-03T00:58:16.000Z
2021-01-03T00:58:16.000Z
pages/admin.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
null
null
null
pages/admin.py
buketkonuk/pythondotorg
4d8d9728eea7c7b2fef32eb6f24fda409cf24a06
[ "Apache-2.0" ]
1
2019-09-02T00:51:38.000Z
2019-09-02T00:51:38.000Z
from django.conf import settings from django.contrib import admin from django.db import models from django.utils.safestring import mark_safe from bs4 import BeautifulSoup from cms.admin import ContentManageableModelAdmin from .models import Page, Image, DocumentFile class PageAdminImageFileWidget(admin.widgets.Admi...
32.41573
123
0.634315
59b5971b3c0abded83d1e67b3ba060349c3a44b3
12,796
py
Python
sdk/python/pulumi_google_native/dns/v1beta2/response_policy_rule.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/dns/v1beta2/response_policy_rule.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/dns/v1beta2/response_policy_rule.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.537367
332
0.657862
4e73479d8e18acd3b3b6af8fce96136a97a20510
114
py
Python
CodeWars/8 Kyu/Century From Year.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/8 Kyu/Century From Year.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/8 Kyu/Century From Year.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def century(year): if year%100==0: return (int(year//100)) else: return (int(year//100)+1)
22.8
33
0.535088
dba8611418601be75b90b3506212f629b5d33497
17,080
py
Python
core/admin.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
null
null
null
core/admin.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
null
null
null
core/admin.py
saggins/lynbrook-app-backend
d5bad6e0742853bb39c5a15d3b7332b7114b671d
[ "MIT" ]
null
null
null
import csv import io import qrcode from datauri import DataURI from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.http.response import Http404, HttpResponse from django.shortcuts import render from django.urls import path from django.u...
35.957895
134
0.61774
2ba8cc4c968ee899cd10b469932cf25a92608a9a
352
py
Python
uniset/_category/__init__.py
hukkinj1/uniset
eb1b5831bf282504585c8a384bf649780708f9ad
[ "MIT" ]
null
null
null
uniset/_category/__init__.py
hukkinj1/uniset
eb1b5831bf282504585c8a384bf649780708f9ad
[ "MIT" ]
null
null
null
uniset/_category/__init__.py
hukkinj1/uniset
eb1b5831bf282504585c8a384bf649780708f9ad
[ "MIT" ]
null
null
null
"""A package containing category-based sets of Unicode code points. THIS PACKAGE IS AUTO-GENERATED. DO NOT EDIT! """ SUBCATEGORIES = ('Cc', 'Zs', 'Po', 'Sc', 'Ps', 'Pe', 'Sm', 'Pd', 'Nd', 'Lu', 'Sk', 'Pc', 'Ll', 'So', 'Lo', 'Pi', 'Cf', 'No', 'Pf', 'Lt', 'Lm', 'Mn', 'Me', 'Mc', 'Nl', 'Zl', 'Zp', 'Cs') MAINCATEGORIES =...
44
184
0.505682
e5422946c0c064d9d090633ab52b902a1a751112
2,321
py
Python
tests/test_relu.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
tests/test_relu.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
tests/test_relu.py
SamDM/Paddle2ONNX
5ae527e966c4ea62b1f35fd326efbc45385c5580
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
23.683673
74
0.586816
2c7dc155f8340f8f1f287ee1a36db08a9af3ad37
6,261
py
Python
GroundedScan/gym_minigrid/rendering.py
czlwang/groundedSCAN
3d03ac6de37dde8d22d487dc3cc5a53af188fa2e
[ "MIT" ]
null
null
null
GroundedScan/gym_minigrid/rendering.py
czlwang/groundedSCAN
3d03ac6de37dde8d22d487dc3cc5a53af188fa2e
[ "MIT" ]
null
null
null
GroundedScan/gym_minigrid/rendering.py
czlwang/groundedSCAN
3d03ac6de37dde8d22d487dc3cc5a53af188fa2e
[ "MIT" ]
null
null
null
import numpy as np from PyQt5.QtCore import Qt from PyQt5.QtGui import QImage, QPixmap, QPainter, QColor, QPolygon from PyQt5.QtCore import QPoint, QRect from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QTextEdit from PyQt5.QtWidgets import QHBoxLayout, QVBoxLayout, QLabel, QFrame class Window(QMainWin...
28.852535
89
0.586009
a1a2b32a3602fb18610ec6215fc6aed6c6beac1b
27,957
py
Python
server/app/scanpy_engine/scanpy_engine.py
hy395/cellxgene
9d92fd724fb3ed3df2aaa99b655c8b34aa96f68f
[ "MIT" ]
null
null
null
server/app/scanpy_engine/scanpy_engine.py
hy395/cellxgene
9d92fd724fb3ed3df2aaa99b655c8b34aa96f68f
[ "MIT" ]
null
null
null
server/app/scanpy_engine/scanpy_engine.py
hy395/cellxgene
9d92fd724fb3ed3df2aaa99b655c8b34aa96f68f
[ "MIT" ]
null
null
null
import warnings import copy import threading from datetime import datetime import os.path from hashlib import blake2b import base64 import numpy as np import pandas from pandas.core.dtypes.dtypes import CategoricalDtype import anndata from scipy import sparse from server import __version__ as cellxgene_version from s...
41.851796
111
0.58336
e4dea0485e697e846e04ecd15cc443326ff1c662
21,585
py
Python
openai/baselines/baselines/deepq/experiments_17_balanced_alpha09/cloud_environment_real.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
7
2018-01-23T05:17:50.000Z
2020-10-30T02:29:59.000Z
openai/baselines/baselines/deepq/experiments_17_balanced_alpha09beta_reward_large_shorter/cloud_environment_real.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
null
null
null
openai/baselines/baselines/deepq/experiments_17_balanced_alpha09beta_reward_large_shorter/cloud_environment_real.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
2
2018-01-23T05:17:58.000Z
2018-07-02T00:13:34.000Z
import sys import numpy as np import pandas as pd import random import os from scipy import misc import pickle import cv2 #TODO: note gradient norm is clipped by baseline at 10 class RealCloudEnvironment(): def __init__(self, data_path,img_path,train_set_path, image_size=84, sequence_length=4, ...
40.649718
190
0.598286
56c8c62259e79e6c8982dae3866f07917743ea6d
64,372
py
Python
python/pyspark/ml/classification.py
watera/spark
1386fd28daf798bf152606f4da30a36223d75d18
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
1
2021-09-14T07:31:45.000Z
2021-09-14T07:31:45.000Z
python/pyspark/ml/classification.py
watera/spark
1386fd28daf798bf152606f4da30a36223d75d18
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
null
null
null
python/pyspark/ml/classification.py
watera/spark
1386fd28daf798bf152606f4da30a36223d75d18
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
38.52304
100
0.627835
68c159e493d653a1dfa8b80aefd0b693c06db686
112
py
Python
skforecast/model_selection/__init__.py
hdiazsqlr/skforecast
5ee79a51960a27db9e169706014528eae403e1c2
[ "MIT" ]
1
2022-01-31T19:14:25.000Z
2022-01-31T19:14:25.000Z
skforecast/model_selection/__init__.py
hdiazsqlr/skforecast
5ee79a51960a27db9e169706014528eae403e1c2
[ "MIT" ]
null
null
null
skforecast/model_selection/__init__.py
hdiazsqlr/skforecast
5ee79a51960a27db9e169706014528eae403e1c2
[ "MIT" ]
null
null
null
from .model_selection import time_series_splitter, cv_forecaster, backtesting_forecaster, grid_search_forecaster
112
112
0.910714
832bc381fc237b2bc72088a5ddca51081341693b
248
py
Python
tests/legacy_pytests/chdir_abspath_test/testme.py
depaul-dice/provenance-to-use
e16e2824fbbe0b4e09cc50f0d2bcec3400bf4b87
[ "BSD-3-Clause" ]
null
null
null
tests/legacy_pytests/chdir_abspath_test/testme.py
depaul-dice/provenance-to-use
e16e2824fbbe0b4e09cc50f0d2bcec3400bf4b87
[ "BSD-3-Clause" ]
null
null
null
tests/legacy_pytests/chdir_abspath_test/testme.py
depaul-dice/provenance-to-use
e16e2824fbbe0b4e09cc50f0d2bcec3400bf4b87
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 import sys sys.path.insert(0, '..') from cde_test_common import * def checker_func(): assert os.path.isfile(CDE_ROOT_DIR + '/home/pgbovine/tmp.txt') generic_test_runner(["python", "chdir_abspath_test.py"], checker_func)
22.545455
70
0.741935
aba6e7bdf32605c82dbe00a5be84d07e1179c2f1
3,577
py
Python
pandas_ta/performance/trend_return.py
maxdignan/pandas-ta
c4722d107393965638b77df8d969441e762afe34
[ "MIT" ]
2
2021-09-09T09:43:13.000Z
2022-01-02T22:08:29.000Z
pandas_ta/performance/trend_return.py
tristcoil/pandas-ta
cafee0225b62a33b83e4628697262c21484cd2e3
[ "MIT" ]
null
null
null
pandas_ta/performance/trend_return.py
tristcoil/pandas-ta
cafee0225b62a33b83e4628697262c21484cd2e3
[ "MIT" ]
1
2021-01-24T15:53:39.000Z
2021-01-24T15:53:39.000Z
# -*- coding: utf-8 -*- from pandas import DataFrame, Series from .log_return import log_return from .percent_return import percent_return from pandas_ta.utils import get_offset, verify_series, zero def trend_return(close, trend, log=True, cumulative=None, trend_reset=0, offset=None, **kwargs): """Indicator: Trend...
32.518182
156
0.645513
fa3ffebd98079edd7bc292c4ff5c240aee08dc2a
447
py
Python
scripts/mlp/demo_configs/anymal_platform_random.py
stonneau/multicontact-locomotion-planning
a2c5dd35955a44c5a454d114c9dcaf0fec19424f
[ "BSD-2-Clause" ]
31
2019-11-08T14:46:03.000Z
2022-03-25T08:09:16.000Z
python/mlp/demo_configs/anymal_platform_random.py
pFernbach/multicontact-locomotion-planning
86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2
[ "BSD-2-Clause" ]
21
2019-04-12T13:13:31.000Z
2021-04-02T14:28:15.000Z
python/mlp/demo_configs/anymal_platform_random.py
pFernbach/multicontact-locomotion-planning
86c3e64fd0ee57b1e4061351a16e43e6ba0e15c2
[ "BSD-2-Clause" ]
11
2019-04-12T13:03:55.000Z
2021-11-22T08:19:06.000Z
TIMEOPT_CONFIG_FILE = "cfg_softConstraints_anymal_kinOrientation.yaml" from .common_anymal import * SCRIPT_PATH = "memmo" ENV_NAME = "multicontact/plateforme_not_flat" DURATION_INIT = 2. # Time to init the motion DURATION_FINAL = 2. # Time to stop the robot DURATION_FINAL_SS = 1. DURATION_SS = 2. DURATION_DS = 2. DU...
23.526316
70
0.762864
e0b2cd1705a7f6cc73e0684f3b07a317a9d05dfd
2,472
py
Python
dist/Lib/site-packages/neo4jrestclient/iterable.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
1
2021-10-04T18:22:12.000Z
2021-10-04T18:22:12.000Z
dist/Lib/site-packages/neo4jrestclient/iterable.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
try2/lib/python3.9/site-packages/neo4jrestclient-2.1.1-py3.9.egg/neo4jrestclient/iterable.py
diatomsRcool/eco-kg
4251f42ca2ab353838a39b640cb97593db76d4f4
[ "BSD-3-Clause" ]
1
2022-01-13T10:05:55.000Z
2022-01-13T10:05:55.000Z
# -*- coding: utf-8 -*- class Iterable(list): """ Class to iterate among returned objects. """ def __init__(self, cls, lst=None, attr=None, auth=None, cypher=None): if lst is None: lst = [] self._auth = auth or {} self._cypher = cypher self._list = lst ...
31.291139
75
0.549757
983e1db4c504dc45246230f3f268f98dc81539aa
4,160
py
Python
data/dataloader.py
QWERDFBAS/remove-stamp
e6462ab6425b07cea840b1e57c3b5a133632e130
[ "MIT" ]
null
null
null
data/dataloader.py
QWERDFBAS/remove-stamp
e6462ab6425b07cea840b1e57c3b5a133632e130
[ "MIT" ]
null
null
null
data/dataloader.py
QWERDFBAS/remove-stamp
e6462ab6425b07cea840b1e57c3b5a133632e130
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset from PIL import Image import numpy as np import cv2 from os import listdir, walk from os.path import join from random import randint import random from PIL import Image from torchvision.transforms import Compose, RandomCrop, ToTensor, ToPILImage, Resize, RandomHorizonta...
35.254237
128
0.60601