blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
377290350c8709f3863a64ab8d860ca274944ee4 | 1d0bb94bc33b80b96f47f4b8ff204a6711af7eac | /app.py | 8c33fb7173b9c81cd464c8d6782ef69326458ad7 | [] | no_license | mfwarren/kpi | 9ff78de66b240ea41b1b560ea00ef76d1b6a681d | 239272e06b616873413f4942424c28dc8e7fd4b3 | refs/heads/master | 2016-09-05T18:58:57.040531 | 2015-05-08T13:37:27 | 2015-05-08T13:37:27 | 34,973,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | #!/usr/bin/env python
from gevent import monkey
monkey.patch_all()
import time
import os
import datetime
import pytz
from threading import Thread
import dateutil.parser
from refreshbooks import api as freshbooks_api
from github import Github
import requests
from flask import Flask, render_template
from flask.ext.so... | [
"matt.warren@gmail.com"
] | matt.warren@gmail.com |
11de6c893af7b3b2e87c793fc57f5b71eeb79bf3 | 65bf0113da75390c4cf3960b6a409aca15569a06 | /orders/models.py | ba438c4bcc8db09fb277ffc7b398d222c68cb9a4 | [] | no_license | wenpengfan/opsadmin | e7701538265253653adb1c8ce490e0ce71d3b4f6 | 3d997259353dc2734ad153c137a91f3530e0a8ec | refs/heads/master | 2023-03-29T11:50:10.756596 | 2020-11-16T02:41:18 | 2020-11-16T02:41:18 | 313,171,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,142 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from appconf.models import Database, Project, AppOwner
# Create your models here.
class Require(models.Model):
title = models.CharField(max_length=255, verbose_name=u"标题", null=True, blank=False)
... | [
"you@example.com"
] | you@example.com |
46f246599c2d98d4fc3accaaaca6b5bb5e65db56 | 957187f350bc0f74ccb99d7b652ee705dd746cea | /app_botiquin/migrations/0002_auto_20150801_2326.py | 4a62f821016102d781b46c7ab7589d090b015d47 | [] | no_license | dbsiavichay/botiquinmagap | 8188aa9905300c96ca94c2bc658f58141ea38aef | 5cc0eda2e89fae90ce6ab7217141b53919aed5b4 | refs/heads/master | 2021-01-01T18:48:32.406184 | 2015-08-04T23:46:48 | 2015-08-04T23:46:48 | 32,053,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('app_botiquin', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='grupoproducto',
... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
42ba1e3c015f20441c374256ce07cf703eadaaad | 9814fc360414ed900573181485966f63a56b261d | /setup.py | 965ede863e91d9a8138bf2f09c34795175da88de | [
"MIT"
] | permissive | krallin/captain-comeback | 7d38425ec8f3b51626418f6dc6a6abfa8fa7cda3 | e02e3774eab62d7b8ba454331a785e2ae32c89fc | refs/heads/master | 2023-09-03T19:52:22.155417 | 2016-07-07T14:42:34 | 2016-07-07T16:17:02 | 62,813,918 | 0 | 1 | null | 2016-07-07T14:37:49 | 2016-07-07T14:37:48 | null | UTF-8 | Python | false | false | 1,668 | py | #!/usr/bin/env python
# coding: utf-8
import os
from setuptools import setup
HERE = os.path.dirname(__file__)
with open(os.path.join(HERE, 'README.md')) as readme_file:
readme = readme_file.read()
with open(os.path.join(HERE, 'CHANGELOG.md')) as history_file:
changelog = history_file.read()
requirements = [... | [
"thomas@orozco.fr"
] | thomas@orozco.fr |
b597e2e13e7f65f2a8bed1b72a651e20fdcb6a35 | 81407be1385564308db7193634a2bb050b4f822e | /testdemo/pytestdemo/ssh-copy-id.py | d8024561b2c7733acd24f0b2f173d39c8f5e8a1c | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 1,620 | py | """ssh-copy-id for Windows.
Example usage: python ssh-copy-id.py ceilfors@my-remote-machine
This script is dependent on msysgit by default as it requires scp and ssh.
For convenience you can also try that comes http://bliker.github.io/cmder/.
"""
# python ssh-copy-id.py root@xx.xx.xx.xx
import argparse, os
from subpr... | [
"350840291@qq.com"
] | 350840291@qq.com |
ad092d278eb7c28c208e8cd80fb0a6b2851e33a9 | 746e0181955176741385091fe795e360a5f8fa3f | /yushubook/app/web/auth.py | 98a647abd4d89c6f9643a1d3edea07eb8d377e93 | [] | no_license | zhengpanone/flask_web | c26547483219011d9f1051d383f0d9a0a72d48df | 87d324ffee503aaa794c415ba6e16785dbf84d99 | refs/heads/master | 2022-07-22T09:07:47.939938 | 2019-12-18T07:14:21 | 2019-12-18T07:14:21 | 206,232,120 | 0 | 0 | null | 2022-06-28T14:44:55 | 2019-09-04T04:35:50 | JavaScript | UTF-8 | Python | false | false | 2,718 | py | from flask import render_template, request, redirect, url_for, flash
from flask_login import login_user, logout_user
from app.forms.auth import RegisterForm, LoginForm, EmailForm, ResetPasswordForm
from app.models.base import db
from app.models.user import User
from . import web
__author__ = 'zhengpanone'
@web.rou... | [
"zhengpanone@hotmail.com"
] | zhengpanone@hotmail.com |
02646855dd3fe965ae1abbf7f8ac90f9fb74127b | adf2e802c7563e4b7b7cc279a54deceb6a803098 | /openapi_client/models/pdf_save_as_png_response.py | d67e711a78498d5c15d094309115b2d000f36c8c | [] | no_license | Orpalis/passportpdfsdk-python | 2466f7568becf2bd386bd9e4e00b4e3c1e642727 | 257d305ca9e6508d44fe521a1e4721f1835e8d0e | refs/heads/master | 2022-04-24T15:58:21.257112 | 2020-04-27T11:09:37 | 2020-04-27T11:09:37 | 254,665,250 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | # coding: utf-8
"""
PassportPDF API
Another brick in the cloud # noqa: E501
The version of the OpenAPI document: 1.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
class PdfSaveAsPNGResp... | [
"e.carrere@orpalis.com"
] | e.carrere@orpalis.com |
b03483024f8dbee4a47691a1248905822c5c67f2 | e3765def4a180f1d51eaef3884448b0bb9be2cd3 | /example/13.3.4_reconstruct_create_fleet/game_functions.py | 01b601c1630e2d7ae6580554ff2caa2de174d3e5 | [] | no_license | spearfish/python-crash-course | cbeb254efdf0c1ab37d8a7d2fa0409194f19fa2b | 66bc42d41395cc365e066a597380a96d3282d30b | refs/heads/master | 2023-07-14T11:04:49.276764 | 2021-08-20T10:02:27 | 2021-08-20T10:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | #!/usr/bin/env python3
import sys
import pygame
from bullet import Bullet
from alien import Alien
# check the events, and modify ship and bullets according to settings
def check_events(ship, bullets, settings) :
'''check for keyboard input and mouse move'''
# pygame's event class has a method get.
for e... | [
"jingchen@tutanota.com"
] | jingchen@tutanota.com |
8b282c325b4e4b9b70b53d8a2da4dc881e6a881d | 3562fa51db47b1b1e97785191f0c04644d47c283 | /python/plat3/1395.py | e2d0dff2789f4aa3d406947ea475b1da19862513 | [] | no_license | seono/algorithm | c74181d564525e3a0214824c4a619c51cd52a042 | 78a252b29290eaa1ea076d76cd83e5dbbb7d8d89 | refs/heads/master | 2021-07-13T07:13:41.523888 | 2021-04-24T14:05:00 | 2021-04-24T14:05:00 | 244,609,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | import sys
input = sys.stdin.readline
output = sys.stdout.write
N, M = map(int,input().split())
tree = [0]*(4*N)
lazy = [0]*(4*N)
def propagate(node,now_s,now_e):
if lazy[node]:
tree[node]=(now_e-now_s+1)-tree[node]
if now_s!=now_e:
lazy[node<<1]^=1
lazy[node<<1|1]^=1
... | [
"tjsh0111@gmail.com"
] | tjsh0111@gmail.com |
7a3e5d086048d2b3fd47910b56f0d85fcb4d8453 | 6ee533cb075c80663e6ce15e049046aeaf54f880 | /mp/migrations/0001_initial.py | e28828b5ad2531f412626acc293e3544519a282e | [] | no_license | ARDaVinci/arttnet | 21afd6c00a9ec27aae3bd12fb2cf18126226d112 | fbc762852839960f2382ef9a5662d47419d943e0 | refs/heads/master | 2023-04-01T17:09:11.628441 | 2021-04-23T19:06:13 | 2021-04-23T19:06:13 | 360,658,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # Generated by Django 3.2 on 2021-04-22 14:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"Vous@exemple.com"
] | Vous@exemple.com |
273d2a79ff8672a69151a5d581e2a4c1059ac710 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq668.py | d6a190b3715fe3cd9362da7477ea50eaef3b7ef7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=12
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
adc6788eb8ddf274faef776b14af7bd7bc8f8565 | fdbcc456e953b29c96b5c66b96a3f00e7605107c | /stats/generic.py | 5b17449424b8e522e2c56e7ca3f7cdbeac42e940 | [] | no_license | paulsavala/student-monitoring-backend | a0a86f59eda063fffa538974e9cda2636b899da4 | df729e647adc9ad3d31d7ece30e0488dbe0f035a | refs/heads/master | 2022-12-03T22:42:28.354093 | 2020-08-31T01:22:09 | 2020-08-31T01:22:09 | 257,088,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import numpy as np
from scipy.stats import beta
class GenericDistribution:
def __init__(self, **kwargs):
pass
def fit(self, assignment_collection):
raise NotImplementedError
def conf_int(self, assignment_collection, conf_level=0.05):
raise NotImplementedError
def pdf(self, as... | [
"paulsavala@gmail.com"
] | paulsavala@gmail.com |
ae30419213eabe7a8d336d33dce31950f52c7c41 | 424c73412ccebe09198bf91c3601a61ad2242932 | /azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py | 5f3e1d60bcaf9f0ce8a77a7ff3916612bd372bc2 | [
"MIT"
] | permissive | arifulmondal/azure-sdk-for-python | 25c7ad16ba572c2e2bee60e117258c556ea5bdc3 | 38b3ce0fe3fdd6dd1e607627c611b8a9c97c2372 | refs/heads/master | 2021-03-24T13:50:32.389409 | 2017-10-23T18:38:49 | 2017-10-23T18:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | # 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
ef66115bb76808efd291616eb713cbc9d8cfdd66 | 41d9b92ef2a74a4ba05d27ffbe3beb87884c4ce7 | /supervised_learning/0x01-classification/4-neuron.py | 2e62079af446cbe189d8a81e2f081f500022e808 | [] | no_license | JosephK89/holbertonschool-machine_learning | 3f96d886c61d8de99a23e4348fb045b9c930740e | aa5c500f7d8ebeec951f9ab5ec017cae64007c25 | refs/heads/main | 2023-08-14T18:42:53.481354 | 2021-10-10T19:53:40 | 2021-10-10T19:53:40 | 386,248,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/bin/env python3
"""neuron class module"""
import numpy as np
class Neuron:
"""Neuron class"""
def __init__(self, nx):
"""Class Initialization"""
if type(nx) != int:
raise TypeError("nx must be an integer")
if nx < 1:
raise ValueError("nx must be a positiv... | [
"josephkamel262@gmail.com"
] | josephkamel262@gmail.com |
76eb0dc5718888863c17c3c6aa25053e1371d456 | 1a6c2be5ff1a8364c97a1ede23c824b2579ecf79 | /tfx/dsl/io/filesystem_registry_test.py | 236551f774277bfe81963eaddb2ea0bfc465df50 | [
"Apache-2.0"
] | permissive | 418sec/tfx | fa1a4690df2178e9c6bd24f97df0bbde7436df95 | df1529c91e52d442443eca5968ff33cf0a38dffa | refs/heads/master | 2023-04-18T12:25:38.098958 | 2021-04-28T16:11:00 | 2021-04-28T16:11:00 | 333,769,030 | 2 | 1 | Apache-2.0 | 2021-04-28T16:11:01 | 2021-01-28T13:35:14 | null | UTF-8 | Python | false | false | 5,808 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
a1ec748cd25073683f73de54d482230285066f6e | 3d2939ae9ce30b15c1c3cd18bb7bc1db655863fe | /openturns/1.8/user_manual/_generated/openturns-Multinomial-1.py | ed23bba47e9242992b3d6844b0dc0765204c63fc | [] | no_license | ThibaultDelage/openturns.github.io | 07c9d6c98118a7695c35192a59814c23a71cb861 | 726a8f9ae97dc27d78a822f4d46976af56691802 | refs/heads/master | 2020-05-07T14:06:08.368744 | 2019-04-08T14:05:56 | 2019-04-08T14:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import openturns as ot
from matplotlib import pyplot as plt
from openturns.viewer import View
if (ot.Multinomial().__class__.__name__=='ComposedDistribution'):
correlation = ot.CorrelationMatrix(2)
correlation[1, 0] = 0.25
aCopula = ot.NormalCopula(correlation)
marginals = [ot.Normal(1.0, 2.0), ot.Norma... | [
"schueller@phimeca.com"
] | schueller@phimeca.com |
1f846a0df6dbb11c408ad08429e4a3048165f03c | 0819c03aae157f0a73488911380d26d796026839 | /ProjectEuler/ProjectEuler/Euler015.py | e9afa56b00daba148bd6a8cc8c81f9d2b7272c00 | [] | no_license | mohi-othman/mohi-euler-python | 5c53f02a94a9541623758595e9dd602122f4bb5f | 71aec394684362733a502eb3b4c3f88a18565387 | refs/heads/master | 2016-09-05T16:05:37.161813 | 2012-11-07T19:40:21 | 2012-11-07T19:40:21 | 32,092,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,310 | py | import time
class node:
def __init__(self):
self.children = []
class network:
def __init__(self, firstNode, targetNodes):
self.firstNode = firstNode
self.targetNodes = targetNodes
def getFreshResultDict(self):
result = dict()
for target in ... | [
"muhyedeno@PTS-WS-001.ptsdomain.com"
] | muhyedeno@PTS-WS-001.ptsdomain.com |
bf2ffece548fa7bd8cc89eabcda5c3a1929f6e4a | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/perf/page_sets/__init__.py | 36a23b43274917573f2ba939d7e0eeffdddd5422 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 585 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import inspect
import os
import sys
from telemetry.core import discover
from telemetry.page import page_set
# Import all submodules' PageSet classes.
star... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
fc8906480f952922d83cf3d060c29ff2fd9f1753 | ee96ec6e09b0cc1af28ec7b77808eb4fa6611ca8 | /components/collector/tests/source_collectors/cobertura_jenkins_plugin/test_uncovered_lines.py | ba7a4b2fc18da91ca3b88bffa86002a81af0639d | [
"Apache-2.0"
] | permissive | Erik-Stel/quality-time | eb1b8db2022a91f06fc0edfc966dbec7a972b88c | 602b6970e5d9088cb89cc6d488337349e54e1c9a | refs/heads/master | 2023-03-28T13:22:11.043108 | 2021-03-18T14:27:18 | 2021-03-18T14:27:18 | 269,277,099 | 0 | 0 | Apache-2.0 | 2021-03-18T14:20:21 | 2020-06-04T06:20:28 | Python | UTF-8 | Python | false | false | 753 | py | """Unit tests for the Cobertura Jenkins plugin uncovered lines collector."""
from .base import CoberturaJenkinsPluginTestCase
class CoberturaJenkinsPluginUncoveredLinesTest(CoberturaJenkinsPluginTestCase):
"""Unit tests for the Cobertura Jenkins plugin uncovered lines collector."""
METRIC_TYPE = "uncovered_... | [
"noreply@github.com"
] | Erik-Stel.noreply@github.com |
a651609a35436a53f6a614b63ab7428a107075b2 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/notificationhubs/v20160301/list_notification_hub_keys.py | 2962a60d0ff4849a1f70790baa8413ed3a56e586 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,190 | py | # 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
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
611bd7353b0fbdc7b5663cd846967b689d762292 | 8b606215d26314c046b24f779cad1d29679de73f | /GroundSegment/GroundSegment/models/__init__.py | 67a0a2722a371aa69c721afc1836ade5d5fc417b | [] | no_license | unlamgidsa/unlam_gs_backend | b5a76660458fd43557602840eb24f838aabc4ce2 | 6284a5d55b8fe3b5b7c8f3a8def505409f7ea735 | refs/heads/master | 2023-07-20T10:30:30.618320 | 2022-12-29T21:55:51 | 2022-12-29T21:55:51 | 244,700,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from GroundSegment.models.Satellite import Satellite
from GroundSegment.models.Tle import Tle
from GroundSegment.models.Parameter import Parameter
from GroundSegment.models.SatelliteState import SatelliteState
from GroundSegment.models.Propagation import Propagation
from GroundSegment.models.PropagationDetail import Pr... | [
"pablosoligo1976@gmail.com"
] | pablosoligo1976@gmail.com |
9fe6dbd17637c2e9944165ad8b3a493d8a867030 | a4681043cb56a9ab45be32a62fa9700b391f087f | /Exercícios/ex_txt01.py | 2d55dd693973772b33747357a92538abd6f9af71 | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | UTF-8 | Python | false | false | 277 | py | valores_celulares = [850, 2230, 150, 3500, 5000]
with open('valores_celulares.txt', 'a') as arquivo:
for valor in valores_celulares:
arquivo.write(str(valor) + '\n')
with open('valores_celulares.txt', 'r') as arquivo:
for valor in arquivo:
print(valor) | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
e2e9ef0272dab73fa72d9f8bf0360e7edffc4e5b | b9e6499ab7431a2dd514fa97e7ee99dfe4c1ef3f | /corehq/apps/reports/filters/fixtures.py | b1d405cf5fe618a016ff744ca772b08d95b379fc | [] | no_license | kennknowles/commcare-hq | 9bcae8301b5888b4aaf374b684a7670c2f6fa0e7 | b1b894f4cb4a266b2dff7598cf9a9ae295bfa671 | refs/heads/master | 2023-08-16T05:50:31.822089 | 2013-09-03T22:23:28 | 2013-09-03T22:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | import json
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_noop
from corehq.apps.fixtures.models import FixtureDataType, FixtureDataItem
from corehq.apps.locations.util import load_locs_json, location_hierarchy_config
from corehq.apps.reports.filters.base import BaseReportFil... | [
"biyeun@dimagi.com"
] | biyeun@dimagi.com |
e78104325761a22e41990587c6657fa0264a1470 | 117f066c80f3863ebef74463292bca6444f9758a | /finnhub_swagger_api/test/test_economic_event.py | 0680dd1b78155cbf3a758cdb20d37aad4454646f | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 945 | py | # coding: utf-8
"""
Finnhub API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
e2ffbcc78019f39efbb8a5987a61e52a6a20f3a7 | 5bc369d49b16bc46e23b76621144223dc4226997 | /model/backboneelement.py | 758f0a7a409f6cfe67910f0eba872570df4ea431 | [
"MIT"
] | permissive | beda-software/fhir-py-experements | 90d8e802f92f9e691d47d6ea4b33fda47957383a | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | refs/heads/master | 2022-12-17T05:19:59.294901 | 2020-02-26T03:54:13 | 2020-02-26T03:54:13 | 241,292,789 | 0 | 0 | MIT | 2022-12-08T03:38:55 | 2020-02-18T06:53:02 | Python | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/BackboneElement) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .element import Element
@data... | [
"ir4y.ix@gmail.com"
] | ir4y.ix@gmail.com |
222d5f8b367a6c13cd3e6b528fbb411a5aabb6af | d768f07ed90c0274e2d9d935eaf5ecfe734a1f56 | /export_analysis_data.py | a6837acdf7c614c00fc7a18f92724da0cf03ffb4 | [] | no_license | bvillasen/simulation_analysis | cfd0b5de865d2fb5992d828b2824079e6798774b | 645f0c397172ed30a713368942eec9ca68a9761a | refs/heads/master | 2023-06-02T19:06:39.851760 | 2021-06-25T18:40:58 | 2021-06-25T18:40:58 | 298,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import os, sys
import numpy as np
import pickle
sys.path.append('tools')
from tools import *
#Append analysis directories to path
extend_path()
from parameters_UVB_rates import param_UVB_Rates
from simulation_grid import Simulation_Grid
from simulation_parameters import *
from plot_UVB_Rates import Plot_Grid_UVB_Rates
... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
bdb5ac7c0f0dce9ca493553586d860621320d1fa | 793d8e06dd50b9e211833f962ac1d10fd425a1df | /tests/test_component.py | 981987983cbf7af2fae75115e0c7f8fab43c5b0a | [
"Apache-2.0"
] | permissive | iqduke/fruit | 7e715dae9e9dd56e7cd9cce8bba7de3504659ed4 | 56c39c6eae1312a2e71052602c21079de08b57d8 | refs/heads/master | 2021-01-12T04:19:35.897109 | 2016-12-27T10:09:08 | 2016-12-27T10:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,434 | py | #!/usr/bin/env python3
# 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... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
28f1e50f76dfb843b32fc6522e966b977acac0d5 | 7a402a4e06eb728f36923816748c210122fc383c | /C/0207.py | 6f212e28bcec2de71e9e7a5ddfef745f0c4e059a | [] | no_license | au-aist2120-19sp/york-lecture-files | 8eb6a0bb7d9f7ff9984262efc95fb87b3a59c3ab | a38cf780f3deda84663355812d765ab40ee6ea0c | refs/heads/master | 2020-04-19T18:59:46.387355 | 2019-04-25T21:17:45 | 2019-04-25T21:17:45 | 168,377,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | menu = '''
1) Burger
2) Fries
3) Checkout
'''
while True:
print(menu)
choice = input('Enter choice: ')
if choice == '3':
break
elif choice == '1':
print('Mmm. Wouldn\'t you like some fries?')
elif choice == '2':
print('Okay, but what about a juicy burger?')
else:
... | [
"paul@yorkfamily.com"
] | paul@yorkfamily.com |
1ba1dd25a4e97e2b5e0c797f2fd932dc29cb1d92 | d24f81b52917a7b0629fe615149ef4ac8a0bd049 | /backend/backend/urls.py | ff3520d0fb21d4109441eb4412346d7446d3cff9 | [] | no_license | ScrollPage/Test-Chat | f533c8d1112a4bc639d9659a126b9a9f886f68b2 | 3911b7555ca684b3eb31e9857d007fda3b6c7cd3 | refs/heads/master | 2023-01-03T13:37:44.600044 | 2020-10-30T08:43:27 | 2020-10-30T08:43:27 | 288,795,592 | 0 | 0 | null | 2020-08-24T13:35:51 | 2020-08-19T17:31:59 | JavaScript | UTF-8 | Python | false | false | 994 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from .yasg import urlpatterns as doc_urls
urlpatterns = [
path('admin/', admin.site.urls),
path('api/v1/', include('contact.api.urls')),
path('api/v1/', inclu... | [
"54814200+reqww@users.noreply.github.com"
] | 54814200+reqww@users.noreply.github.com |
57f77d61bfe442fe9917a5c076d507d598a55945 | ac83d1ddb84ecc904c73bdf779f458bd77efc98c | /test/programytest/dynamic/maps/test_successormap.py | 0a3b5850cb2d148fe8b8e20bd8184f4a9557f69f | [
"MIT"
] | permissive | secrecy27/chatbot | 77829f32a15e17563f038663aebebdb71e52c5a7 | e65a753cf665a4d6d97b57703431cba5331e4f0b | refs/heads/master | 2022-07-24T08:39:57.788009 | 2020-07-16T03:55:21 | 2020-07-16T03:55:21 | 130,678,143 | 4 | 4 | NOASSERTION | 2022-07-06T19:49:14 | 2018-04-23T10:12:01 | Python | UTF-8 | Python | false | false | 586 | py | import unittest
from programy.dynamic.maps.successor import SuccessorMap
from programy.context import ClientContext
from programytest.aiml_tests.client import TestClient
class TestSingularMaps(unittest.TestCase):
def setUp(self):
self._client_context = ClientContext(TestClient(), "testid")
def test... | [
"secrecy418@naver.com"
] | secrecy418@naver.com |
7e05009aba2e6b6f03f7c0b0439a1d17bbfc4249 | bf6f19c55f3af3704161e176384bcaf1c2b37537 | /pandas_demo/intro.py | 2b6a18f702a5dee13d47465865a4aa05bef0ffd6 | [] | no_license | huqinwei/python_demo | b0ba32e832533625b5ab55d56d3f3b2f6801d645 | 92da5ea2e480a9f57f8fbd619340bd9c9779cfd4 | refs/heads/master | 2021-07-18T19:23:09.914949 | 2019-01-26T13:37:47 | 2019-01-26T13:37:47 | 148,871,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # View more python tutorials on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
from __future__ import print_function
import pandas as pd
import numpy as np
s = pd.Series([1,3,6,np.nan,4,1]) #... | [
"qw072117@foxmail.com"
] | qw072117@foxmail.com |
e85a1e5147376b3a1c8fd9465a3d03454be0361b | defae005fad18f91be83de5b8e2fd51e3cbfbb35 | /base_app/utilities/menus/base_main_window.py | 172ccfe8b969003eb58def704e46bc63c3021cea | [] | no_license | MRedAero/BaseApp | 018f9887cd89abbd6117bcc43f8f8dca281220b0 | 8e16ff2f2d0dbc322e4c35a61ce298abe31797b0 | refs/heads/master | 2021-03-19T10:13:01.245176 | 2015-04-27T10:08:15 | 2015-04-27T10:08:15 | 32,956,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from PyQt4 import QtGui
from base_main_window_ui import Ui_MainWindow
class BaseMainWindow(QtGui.QMainWindow):
def __init__(self):
super(BaseMainWindow, self).__init__()
self.base_ui = Ui_MainWindow().setupUi(self)
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.arg... | [
"michael.j.redmond@gmail.com"
] | michael.j.redmond@gmail.com |
c044bc1d86e1de9fa6116743028140440a45ae37 | 6c547e3312e2d1bd3dab123b831053ed7aef7b6d | /tests/test_QTML-T362_Chrome.py | 2dd0f705b88231fc31ba6ece6341109dce4889eb | [] | no_license | kenito2050/BICL | 8c4239f1e897e4dfc04aa35e827816242b41d5dd | 82891aba56cc49c9cf96ce82472847c4cb10828f | refs/heads/master | 2020-12-31T22:10:44.784193 | 2020-02-10T23:00:10 | 2020-02-10T23:00:10 | 239,039,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | import pytest
from selenium import webdriver
import time
from config_globals import *
from pages.BICL.login.LoginPage import LoginPage
from pages.generic_page.generic_page import generic_page
from pages.BICL.default_page.user_drop_down.user_drop_down import user_drop_down
from pages.BICL.default_page.default_page impor... | [
"ken.villarruel@gmail.com"
] | ken.villarruel@gmail.com |
b1d51f180d8265f912b4de42692b767d6bb4182f | f85ce2baf753d65e8666bbda062acbdb0ccdb5ad | /leetcode/venv/lib/python2.7/site-packages/pyutil/ss/stream_core.py | 9ca853266c8734b7be2a2e8d21ba9627aff2e949 | [] | no_license | KqSMea8/PycharmProjects | 2a9d3fa59d08c77daf63be427da27695d4dea471 | c592d879fd79da4e0816a4f909e5725e385b6160 | refs/heads/master | 2020-04-14T11:54:56.435247 | 2019-01-02T10:15:36 | 2019-01-02T10:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # -*- coding: utf-8 -*-
from pyutil.etcd.etcd_util import get as etcd_get
# 服务降级策略:0 正常 1 降级
def get_stream_core_webdb_level():
return int(etcd_get("/web/stream/core/webdb/level", 0))
| [
"zhangyifeng@bytedance.com"
] | zhangyifeng@bytedance.com |
d1d3507dbf447a62f4869036ced20c2b6fc6cccc | fcc9c7d713179694d6e19c98693185789a1d90b9 | /CMGTools/H2TauTau/python/proto/analyzers/MuEleAnalyzer.py | b68e41c2a4d2462d41412fa681438a8bc5c6d5a9 | [] | no_license | hengne/cmg-cmssw | aedada0ce15562380d42dcc5c241d67fb8c65965 | 03946e4ce821b6186c8f881e2bbe4b2a30917b2d | refs/heads/CMGTools-from-CMSSW_7_4_7 | 2020-04-05T23:12:59.317945 | 2015-07-31T08:55:33 | 2015-07-31T08:55:33 | 40,015,437 | 0 | 1 | null | 2015-07-31T16:55:04 | 2015-07-31T16:55:04 | null | UTF-8 | Python | false | false | 6,679 | py | import operator
from PhysicsTools.Heppy.analyzers.core.AutoHandle import AutoHandle
from PhysicsTools.Heppy.physicsobjects.PhysicsObjects import Muon, GenParticle
# RIC: 16/2/15 need to fix the Electron object first
# from PhysicsTools.Heppy.physicsobjects.HTauTauElectron import HTauTauElectron as Electron
fr... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
c43ed3e2de1b6a302d4e2050a585230e34d3f23d | 6ec209c1f6f3ca8017a5373ba2e85da38dfda90c | /tree/114.py | 42e297bdf6ee4dc3cb36dd8fa348e0e637032d34 | [
"Apache-2.0"
] | permissive | MingfeiPan/leetcode | a70192233f7112ce39cc7b09d782bdcc52d29d06 | 057d9f014cf207ab4e50e14e5a9e015724de1386 | refs/heads/master | 2022-05-09T01:40:39.599374 | 2022-04-10T15:03:07 | 2022-04-10T15:03:07 | 60,593,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def flatten(self, root: TreeNode) -> None:
"""
Do not return anything, modify root in-place instead.
"""
... | [
"113104667@umail.ucc.ie"
] | 113104667@umail.ucc.ie |
1295ef0e561f0cce1242427cda2074929386f143 | eb15c60ef607040fb9f7fbca789405b8b26a86b1 | /batchpr/updater.py | 32140c6de55b9ea30721e056b19016c6004637b4 | [
"BSD-2-Clause"
] | permissive | bsipocz/batchpr | 5d2c32c3872e8b9b62d9e5ad51c3e041d661a330 | 5fbce1d357bf6e4f26ed3fcb0bda6f0a9447c614 | refs/heads/master | 2020-04-15T18:30:59.436646 | 2017-08-29T13:58:00 | 2017-08-29T13:58:00 | 164,914,948 | 0 | 0 | BSD-2-Clause | 2019-01-09T18:19:52 | 2019-01-09T18:19:46 | Python | UTF-8 | Python | false | false | 6,396 | py | import os
import abc
import six
import sys
import time
import shutil
import tempfile
import subprocess
from textwrap import indent
from github import Github
from termcolor import colored
import requests
GITHUB_RAW_FILENAME = "https://raw.githubusercontent.com/{repo}/master/{filename}"
class BranchExistsException(E... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
d5cc595979455d5e2cefd473cdc1d313daa2943f | ea872f0a2bcc4270b7089120e3eb2f8dd32a165e | /Baxter/devel/lib/python2.7/dist-packages/ric_board/msg/_Named_Data.py | ef3e76ac2b7e06e7ba4ae90f31c0d93c6b47d1fb | [] | no_license | ZhenYaGuo/Warehouse-Robotic-System | 2def137478911f499c45276aa3103a0b68ebb8d7 | 47b78d111b387102e29d2596bd5dc7c704f74f8f | refs/heads/master | 2021-08-24T04:12:43.379580 | 2017-12-08T01:48:09 | 2017-12-08T01:48:09 | 113,405,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ric_board/Named_Data.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Named_Data(genpy.Message):
_md5sum = "14a4844ed23f715d29194ae2fc141a58"
_type = "ric_b... | [
"31947861+ZhenYaGuo@users.noreply.github.com"
] | 31947861+ZhenYaGuo@users.noreply.github.com |
f81673adb2493b5d2d8ac7090a4f0b33f6e6cdc1 | e9e91f17b6ad129923ddb9e5cd086d0cef150a1f | /novel_site/apps/novel/migrations/0002_auto_20181012_1146.py | b8fca43b376cbfb2df558c1e3b976142b8ecd4d0 | [] | no_license | gzgdouru/novel_site | 45148b56521e23399d3289bee9c73b1c46145cd3 | 8879217f6dcc5f657adefaeb9d18914ce1dd9d90 | refs/heads/master | 2020-04-06T12:50:46.436608 | 2018-11-14T01:46:12 | 2018-11-14T01:46:12 | 146,424,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-10-12 11:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('novel', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"18719091650@163.com"
] | 18719091650@163.com |
f141b66fb751e15b9e5d356d965e6aa9723b10f0 | bb6ebff7a7f6140903d37905c350954ff6599091 | /chrome/common/extensions/docs/server2/whats_new_data_source.py | fd26764017dd1bd3f012009ae3dd3526d222e101 | [
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 3,498 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from itertools import groupby
from operator import itemgetter
import posixpath
from data_source import DataSource
from extensions_paths import JSON_TEMPLATE... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
087ad34833a0b4b6cd390d4910591bafd8977bfd | 8636c0fba825b4b7c5ca30c202e2e09afaf05e95 | /practicing_apps/tkinterTermoJuevesII/main.py | 83fcef9d568ca215f8376ab16bbc5dd075c81e6c | [] | no_license | manuetov/m02_boot_0 | 33fe5876ab0fbbcfcb08e2ccaee5144a57d71c57 | 04d3dceffda78b37a709cd08ef7a1dc1d31478b4 | refs/heads/master | 2021-10-12T02:45:55.161385 | 2019-01-31T20:27:14 | 2019-01-31T20:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from tkinter import *
from tkinter import ttk
class NumberEntry(ttk.Entry)
class mainApp(Tk):
entrada = None
tipoUnidad = None
__temperaturaAnt = ""
def __init__(self):
Tk.__init__(self)
self.title("Termómetro")
self.geometry("210x150")
self.configure(bg="#ECE... | [
"monterdi@gmail.com"
] | monterdi@gmail.com |
9b13a527404e03d33c008e8e26f41f9477864f2a | b99195cf2d181dec5c31aa7e58d747f474153802 | /Decision making and loop/Find Armstrong Number in an Interval.py | 535db3c64285194403e3dc59dbe320ff35181beb | [] | no_license | eldadpuzach/MyPythonProjects | b1b4d56a822fd781c7c4c7a9e4bb5408c180c187 | 3a961a7c265caf1369067d98e94564f01f1bde74 | refs/heads/master | 2020-03-20T18:07:43.319331 | 2019-02-13T22:07:10 | 2019-02-13T22:07:10 | 137,570,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # check Armstrong numbers in certain interval
# To take input from the user
lower = int(input("Enter lower range: "))
upper = int(input("Enter upper range: "))
for num in range(lower, upper + 1):
# order of number
order = len(str(num))
# initialize sum
sum = 0
# find the sum of the cube of each ... | [
"eldadpuzach@gmail.com"
] | eldadpuzach@gmail.com |
ef2f06d85a6c61ac5b042627f79667fcc7c3e334 | 82ffae21bc27e91643bcc344c89d2684b1105e56 | /train.py | bd024a2c5a3e7d90fe3700f9cf7ac95daa909997 | [] | no_license | liuchongwei/IB-INN | 4f4df0a0f9295fa4d9cc900170d1b7b59217dd7e | 440b75d5fbafec75842b18c9e7b6f03a8d76d16d | refs/heads/master | 2023-04-08T11:51:39.745227 | 2021-04-15T17:25:30 | 2021-04-15T17:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,366 | py | from os.path import join
from time import time
import sys
import numpy as np
from tqdm import tqdm
import torch.optim
import data
from model import GenerativeClassifier
from VIB import WrapperVIB
import evaluation
def train(args):
N_epochs = eval(args['training']['n_epochs'])
beta ... | [
"lynton.ardizzone@iwr.uni-heidelberg.de"
] | lynton.ardizzone@iwr.uni-heidelberg.de |
db1c8172d34f9db120085047d2d4df1f2e1ce3c5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_152/ch40_2020_09_28_14_38_11_448144.py | 869700df39676380d5c581c9967c8ac41f46af87 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def soma_valores(lista):
soma = 0
i = 0
size = len(lista)
while(i<size):
soma += lista[i]
i += 1
return soma | [
"you@example.com"
] | you@example.com |
f36445558f08904ce3cbc28219071f55910a3326 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/04c0870f3abb72e4d68e5e712e5eb4445eff4161-<_get_lzma_file>-fix.py | 406e9e4f070822a7fc5cd2a117bdddaaa5b300af | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | def _get_lzma_file(lzma):
"\n Importing the `LZMAFile` class from the `lzma` module.\n\n Returns\n -------\n class\n The `LZMAFile` class from the `lzma` module.\n\n Raises\n ------\n RuntimeError\n If the `lzma` module was not imported correctly, or didn't exist.\n "
if (l... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
f99a2d4d664426b40ad53acceb227493989c5cfa | d5905fa195a09883da60c584fd547e7cc5adab6a | /circhic/tests/test_utils.py | 34c41f3fab1f561a54ee31f51e964051f2cea0fb | [
"BSD-3-Clause"
] | permissive | ijunier/circhic_dev | 1370182f5a92d32d384f5d99a0556836d88cccb8 | d312cebd555058859daa7bf0bb5aabcc18ecd748 | refs/heads/master | 2023-01-07T20:43:22.449704 | 2020-07-20T13:20:41 | 2020-07-20T13:20:41 | 275,118,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from circhic import utils
import numpy as np
import pytest
def test_convert_xy_to_thetar():
lengths = np.array([42])
random_state = np.random.RandomState(seed=42)
n = 100
x = random_state.randint(0, lengths.sum(), n)
y = random_state.randint(0, lengths.sum(), n)
# Flush test to check the code... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
b17418f3c281dddaa920214c07c65cae375c55ba | 1587aad7b5df3159015a06ec70137ca9cbdb74d3 | /Fundamentals/Basics/comparearrays.py | af84baa6c18f4cfe6a49aef6c53112e5dedb44a5 | [] | no_license | brysonmckenzie/Python-Flask-Django | 21d7302401859dc7a3ade677238f739f32e87aaa | 38460ff4f321906b57c9c0167278e774e791a327 | refs/heads/master | 2021-01-18T16:37:19.737987 | 2017-08-16T08:16:35 | 2017-08-16T08:16:35 | 100,465,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | def CompareArrays(arr1,arr2):
if len(arr1) != len (arr2):
return False
elif len(arr1) == len (arr2):
for i in arr1:
if arr1 != arr2:
print arr1,arr2
return False
else:
return True
| [
"brysonmckenzie83@gmail.com"
] | brysonmckenzie83@gmail.com |
75a8c49083279d509530d4fc722e78913c10ba38 | 8c2791898f9bd5640353a7ba8088b6263da0ffa3 | /client/commands/__init__.py | 8035b273e180ba4438600a4f4d31eb92dd6db582 | [
"MIT"
] | permissive | dalejung/pyre-check | 570e123da8097cbceb331638ef915da410d05a85 | 1bcd0a68ff5dc6e4ab36992088de5a6cb5a82531 | refs/heads/master | 2020-03-25T22:43:20.049890 | 2018-08-10T04:46:04 | 2018-08-10T04:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .analyze import Analyze as Analyze # noqa
from .check import Check as Check # noqa
from .error_handling import ErrorHandling as ErrorHandling... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5675bc2d9d63337fe3c0cd7ce20077b8d0f5b066 | 553965e00fe5d7ba217b399d1b36f603743c9724 | /chromeos/components/file_manager/resources/gen_main_html.py | 624c8f318a61226d9874bfdf729c6e84e40f4cb0 | [
"BSD-3-Clause"
] | permissive | zoracon/chromium | 3892e77996c03807c7fb96f535d84745e6540a8c | eaa78fd27b11621c877c62e022f1c0c4f47c5c12 | refs/heads/master | 2023-01-02T17:18:46.663596 | 2020-11-18T18:56:44 | 2020-11-18T18:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/env python
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generate SWA files app main.html from files app main.html"""
import fileinput
import optparse
import os
import shutil
import sys
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4eae384c04fc6ece4f04f2b9d2b08fa2e38fe0ba | 9716a77ef1d0ba5ef9a61be04f6229494744d5d5 | /chapter06 정렬/수 정렬하기3.py | 8e0a8c303ae70ce83339bf67079a86549562e250 | [] | no_license | korea-space-codingmonster/Algorithm_Study | 98b00c81839cf8ac8365d3982c25650a21226ce9 | 8c92857e458994a2d1d77dc3ea0d4b645b8b6a4b | refs/heads/main | 2023-06-03T20:00:52.915447 | 2021-06-20T05:51:47 | 2021-06-20T05:51:47 | 329,354,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # 문제
# N개의 수가 주어졌을 때, 이를 오름차순으로 정렬하는 프로그램을 작성하시오.
# 입력
# 첫째 줄에 수의 개수 N(1 ≤ N ≤ 10,000,000)이 주어진다. 둘째 줄부터 N개의 줄에는 숫자가 주어진다. 이 수는 10,000보다 작거나 같은 자연수이다.
# 출력
# 첫째 줄부터 N개의 줄에 오름차순으로 정렬한 결과를 한 줄에 하나씩 출력한다.
# 예제 입력 1 복사
# 10
# 5
# 2
# 3
# 1
# 4
# 2
# 3
# 5
# 1
# 7
# 예제 출력 1 복사
# 1
# 1
# 2
# 2
# 3
# 3
# 4
# 5
# 5
# 7
| [
"replituser@example.com"
] | replituser@example.com |
6a712c9174d946d711b862d455e296f516466cbb | e7f67295e62fc5301ab23bce06c61f2311c2eeee | /mjml/helpers/py_utils.py | 945f8f9a0e51353211751f6935e021af74d3e325 | [
"MIT"
] | permissive | bayesimpact/mjml-stub | 94d10588359990cd58d2085429b19a3777c51f15 | 30bab3f2e197d2f940f58439f2e8cd9fadb58d48 | refs/heads/main | 2023-05-08T11:54:19.313877 | 2021-01-25T21:30:48 | 2021-01-25T21:30:48 | 344,026,118 | 0 | 0 | MIT | 2021-03-03T06:31:49 | 2021-03-03T06:31:48 | null | UTF-8 | Python | false | false | 1,037 | py |
import re
__all__ = [
'is_nil',
'is_empty',
'is_not_empty',
'is_not_nil',
'omit',
'parse_float',
'parse_int',
'strip_unit',
]
def omit(attributes, keys):
if isinstance(keys, str):
keys = (keys, )
_attrs = dict(attributes)
for key in keys:
if key in _attrs:... | [
"felix.schwarz@oss.schwarz.eu"
] | felix.schwarz@oss.schwarz.eu |
619e77d5ddd1def133e212f22da11d5ffd178366 | 639b8dee007e50e64f1cbb94c2f06f114c7824c8 | /config/config.py | 25ecdf38a473f3adc73cbef56ebd86cde3e49f6a | [] | no_license | mskoko/Voice-assistant | 42f40b457f06a16e26b408e5a2368b0b69360634 | d46f2cc13115c6e8261d8ce8c0534fb62692621f | refs/heads/master | 2022-12-03T10:17:55.459744 | 2020-08-15T13:17:50 | 2020-08-15T13:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,990 | py | # - *- coding: utf- 8 - *-
import logging
import os
LOG_FILE = "voice_assistant.log"
logging.basicConfig(level=logging.DEBUG, filename="voice_assistant.log",
format='%(asctime)s: %(levelname)s - %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p')
logger = logging
# logging - debug... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
754374375b34782f7c5e7f47fac2212c270272c6 | cfdf0fde6786c160e059502d3c4d5f679d63867e | /myApp/apiApp/management/commands/fetch.py | d10c7e295cf0280c2ed66fa3d529329481a42c20 | [
"MIT"
] | permissive | mdmarjanhossain0/Django-Demo-for-client | 30a89989c1e5446175377c174024ddc02cb3c660 | 5f345b2c9ec35f4d7210ce0de5fc7c2f36a33427 | refs/heads/main | 2023-07-13T23:38:34.992579 | 2021-08-18T13:54:19 | 2021-08-18T13:54:19 | 397,874,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | from django.core.management.base import BaseCommand
import django
import os
import requests
from apiApp import models
class Command(BaseCommand):
help = 'Fetch Data From API.'
def handle(self, *args, **kwargs):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myApp.settings")
django.setup()
... | [
"airriaislam@gmail.com"
] | airriaislam@gmail.com |
8cb7bea7bd989fe62805917eb6e5763389439f49 | a4ea28288898ff957d69f4fff2ea353aac09ec48 | /commander/thirdparty/covertutils/handlers/responseonly.py | 486eba43da1dfcdee6de07212316f213e5670f51 | [
"Apache-2.0"
] | permissive | how2how/ToyHome | d520b453b17a2bcd08e204cf209333cb02d2a3cf | 4457b1d28e21ed6fd4ab980a0f7fed345c570ae3 | refs/heads/master | 2021-06-19T16:51:44.116241 | 2019-09-18T16:43:26 | 2019-09-18T16:43:26 | 148,563,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from abc import ABCMeta, abstractmethod
from covertutils.handlers import BaseHandler
from covertutils.helpers import defaultArgMerging
class ResponseOnlyHandler( BaseHandler ) :
"""
This handler doesn't send messages with the `sendAdHoc` method. It implements a method `queueSend` to queue messages, and send them o... | [
"test@test.com"
] | test@test.com |
4482823c9b7d35b19f0b0ea846cfe8c197e4ca64 | 1c751c001357d23fe10e7a42490e3b76434dfa18 | /tools/py/zzcat.py | ba0a398a4f941704bfc9fae8f1c75e1a41730fa8 | [] | no_license | pie-crust/etl | 995925199a71b299544bfac1ed8f504f16fbadc2 | 14b19b542eaa69b8679ce7df4d9a5d2720b3c5c7 | refs/heads/master | 2022-12-12T18:40:31.866907 | 2019-10-14T15:46:16 | 2019-10-14T15:46:16 | 215,082,544 | 0 | 0 | null | 2022-12-08T05:22:54 | 2019-10-14T15:43:04 | Python | UTF-8 | Python | false | false | 1,180 | py | #!~/python27/bin/python
#s3://home-pmt-accounting-dev/racct/DY_Position_SD/file_0_100.2019-06-17.13_39_12.IQ.csv.gz test.csv.gz
from boto.s3.connection import S3Connection
import gzip
import csv
import io
class ReadOnce(object):
def __init__(self, k):
self.key = k
self.has_read_once = False
def read(self, s... | [
"olek.buzu@gmail.com"
] | olek.buzu@gmail.com |
1259e96f551d528f6556f7d5d26d78d353838ab1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YqeS2Ta52jyjS7cD7_4.py | b358e4ae709bb1d13c75abcf0c661fd77ecf4fc0 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py |
def is_prime(n):
if n == 0 or n == 1:
return False
for i in range(2,n):
if n % i == 0:
return False
return True
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3e3fdbd3a6d4194fc93724c838eeb04603f31191 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/17/usersdata/71/6755/submittedfiles/lecker.py | f80187761dd3724711eed58af6e9bd198d3cdcc8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input("Insira o valor de a: ")
b = input("Insira o valor de b: ")
c = input("Insira o valor de c: ")
d = input("Insira o valor de d: ")
if a>b and b>=c and c>=d:
print("S")
elif a=<b and b>c and c>=d:
print("S")
elif a=<b and b<c and c>d:... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
236cd21d398219589f77bf3b49cc6d3600f4a6ae | 21e73840ea6db347141b7c569bf9e70e617adbd4 | /src/posts/admin.py | 1093ba83e6e05259b916218134bc354c68e2f7b8 | [] | no_license | ratulkhan44/djangoBlog | 4b41e011fddb3095ef5c5ccbab8f711d054ed019 | 1da4a2fe96ae34cebd8d286bc1ab27d1623a7045 | refs/heads/master | 2023-01-23T14:27:08.225993 | 2020-11-28T15:26:17 | 2020-11-28T15:26:17 | 316,205,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.contrib import admin
from .models import Post, PostView, Like, Comment, User
# Register your models here.
admin.site.register(User)
admin.site.register(Post)
admin.site.register(PostView)
admin.site.register(Comment)
admin.site.register(Like)
| [
"ratulcse.khan@gmail.com"
] | ratulcse.khan@gmail.com |
b0a8b8742f5ffd386452964a27070ef0a186c91f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2541.py | 2571b77cac41e1d084f5c0929f63a1dc9bec94f1 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | '''
Created on 13/04/2013
@author: Rafael
'''
def cuadradoPalindromos(listaPalindromo):
listResult=[]
for i in listaPalindromo:
listResult.append(i*i)
return listResult
def hallaPalindromo(minNum, maxNum):
list = range(minNum, maxNum + 1)
listPalindromo = []
listaPali... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
535dc67b848397904e9589a841cb3eed33579914 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /crossmarketetf_bak/crossmarket_redemption_HA/YW_CETFSS_SHSH_067.py | 4f03de4f7cd81d8e34ba46a0bc890d0b0db273ca | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test")
from crossmarketetf.cetfservice.cetf_main_service import *
from crossmarketetf.cetfservice.cetf_get_components_asset import *
from crossmarketetf.cetfservice.cetf_utils import *
from mysql.QueryOrderErrorMsg import q... | [
"418033945@qq.com"
] | 418033945@qq.com |
ebd34678904d8f650aa47877f6328d14b8087b89 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /project/experiments/exp_020_random_bodies_revisit/src/gym_envs/my_envs.py | 4bdd9eeb25ef7e90771dc38a768f4ec97b664343 | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 2,604 | py | import numpy as np
import pybullet
from pybullet_envs.gym_locomotion_envs import WalkerBaseBulletEnv
from pybullet_envs.robot_locomotors import WalkerBase
class MyWalkerBase(WalkerBase):
def __init__(self, fn, robot_name, action_dim, obs_dim, power):
super().__init__(fn, robot_name, action_dim, obs_dim, po... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
3e3cd56dc57fe0dabd04a2540c24b971c3c33c09 | 80f1d4300aa4de8824ad76f3a2606e5ad020e638 | /right-to-left.py | 860ea3112096156c63467813db036b252ee3516c | [] | no_license | deanstreet/checkio | cf14419e921a6ffa18466ba2f01968ec1de271e4 | 825f648c5cbb8d02fe26cd675ddc0913296c0417 | refs/heads/master | 2021-01-02T08:24:53.693247 | 2015-05-11T00:01:00 | 2015-05-11T00:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | def left_join(phrases):
"""
Join strings and replace "right" to "left"
"""
return ','.join(map(lambda x: x.replace('right', 'left'), phrases))
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert left_join(("left", "right", "left",... | [
"mauricio.abreua@gmail.com"
] | mauricio.abreua@gmail.com |
02a4a248f3ff1f507622c9bba64ddc55b45a3f52 | f90341eea9ae5750ae34fee0fbab253c19b89ff0 | /abilian/sbe/apps/documents/tests/test_parser.py | 6cf799cb20ac801946a993d52476497b665d702e | [] | no_license | 0decimal0/abilian-sbe | f8e5d6ed1474484bbf35dc2a2d13029cbe47eb4e | bcf08c4aec1d761d2e525006fe2c1291cc00e0b8 | refs/heads/master | 2021-01-24T23:41:37.866768 | 2015-12-14T11:02:01 | 2015-12-14T11:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | from ..cmis.parser import Entry
XML_ENTRY = """\
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
<cmisra:object xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"... | [
"sf@fermigier.com"
] | sf@fermigier.com |
257323258e584c6ede80fc932efea1422a39ea6c | 64267b1f7ca193b0fab949089b86bc7a60e5b859 | /slehome/account/migrations/0007_auto_20150124_2357.py | 9dc78adf7b4c13fd262250eef42336da3db7bb8e | [] | no_license | hongdangodori/slehome | 6a9f2b4526c2783932627b982df0540762570bff | 3e558c78c3943dadf0ec485738a0cc98dea64353 | refs/heads/master | 2021-01-17T12:00:34.221088 | 2015-02-06T13:44:00 | 2015-02-06T13:44:00 | 28,847,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20150124_2347'),
]
operations = [
migrations.AlterField(
model_name='basicmemberinformation... | [
"chungdangogo@gmail.com"
] | chungdangogo@gmail.com |
51e916768da88495398585f4f2062d91c0e36cfb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03426/s835842924.py | 6a7b12f94298b54775e9eaca3a758d891cefb3a6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | import sys;input=sys.stdin.readline
H, W, D = map(int, input().split())
def dist(x, y):
return abs(x[0]-y[0]) + abs(x[1]-y[1])
X = []
for _ in range(H):
X.append(list(map(int, input().split())))
d = dict()
for i in range(H):
x = X[i]
for j in range(W):
d[x[j]] = (i, j)
Ls = []
for i in range(1,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
98c348967b90cbac75baa5e05e551e2d52e3a16a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02714/s632667651.py | fa656fe0bf144d612f78ab8ca7788c47309163aa | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from collections import *
N=int(input())
S=input()
c=Counter(S)
ans=c['R']*c['G']*c['B']
for i in range(N):
for j in range(i+1,N):
if S[i]==S[j]:
continue
k=j*2-i
if k>=N or S[k]==S[i] or S[k]==S[j]:
continue
ans-=1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
04d35b32d242e45e128b6a2f356d510d254e23f8 | 01de66bc478982722cb25120e9d15c39a235a051 | /python3/Library/Database/__init__.py | d595d0b40a3f9816257ed0044b084ab44fd52335 | [] | no_license | ptracton/experimental | 2503c2e8ead7e5719d7aee612fb2ba4d219e6c87 | 7d4a27126f7f2a93f7216b9ea4eed15789599bf3 | refs/heads/master | 2020-06-08T08:21:43.100928 | 2018-04-08T04:54:22 | 2018-04-08T04:54:22 | 7,012,360 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 378 | py |
"""
This is the init for our Database Libary.
"""
__all__ = ['Postgres']
import os
import sys
sys.path.append("/user/tractp1/scratch/src/experimental/python3/Library/Database")
sys.path.append("/home/ptracton/src/software/experimental/python3/Library/Database")
sys.path.append('c:\\Users\\tractp1\\src\\software\\e... | [
"ptracton@gmail.com"
] | ptracton@gmail.com |
4f1c677f0d7ba0732c066ffc7c83a94bdc902f04 | e73cd093ab804f3abe5efb14ce9af244c02ff5e1 | /todolist/urls.py | 52a6418268ecb901fd267833e3af073cfd1b8256 | [] | no_license | zhangfanjm/xadmin_Dj | 7c1d1e6b52f1d91755deaea36b4a356782796d36 | 72adc022e7fbe19e34cdc1d10ec6c0e1e152dbed | refs/heads/master | 2021-06-22T08:45:43.045362 | 2019-07-30T02:44:40 | 2019-07-30T02:44:40 | 199,424,964 | 0 | 0 | null | 2021-06-10T21:47:36 | 2019-07-29T09:47:08 | Python | UTF-8 | Python | false | false | 237 | py | from django.urls import path, include
from .import views
app_name = 'todolist'
urlpatterns = [
path('home/', views.home, name='主页'),
path('about/', views.about, name='关于'),
path('edit/', views.edit, name='编辑'),
] | [
"unknown@example.com"
] | unknown@example.com |
d2cf755b7757dc878ef76f0dcbcfca0aaa9c2f2e | 3f13885fdb0649374d866d24a43f86ccc6b4c782 | /apps/dns_pod/serializers.py | 2a47a921f91b8bb89af969adb71cb72ac1bcf18a | [] | no_license | linkexf/oneops | 426b271c00c5b4b4c55d1d91bf42030dab29623a | 64a9c7fd949b6220234a276614ab6555dc8cc17c | refs/heads/master | 2020-12-10T04:45:55.681731 | 2019-11-28T09:02:30 | 2019-11-28T09:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py |
from rest_framework import serializers
from dns_pod.models import Zone, Record
class ZoneSerializer(serializers.ModelSerializer):
class Meta:
model = Zone
fields = ('id', 'domain_name', 'type', 'comment')
class RecordSerializer(serializers.ModelSerializer):
class Meta:
model = Recor... | [
"andykaiyu@163.com"
] | andykaiyu@163.com |
91499efe1318209699fc0774996e2d989fdce2cf | b46f5825b809c0166622149fc5561c23750b379c | /AppImageBuilder/app_dir/runtimes/classic/helpers/test_qt.py | 32d64d7c94fe1937b457aa1232f754928e1b31ac | [
"MIT"
] | permissive | gouchi/appimage-builder | 22b85cb682f1b126515a6debd34874bd152a4211 | 40e9851c573179e066af116fb906e9cad8099b59 | refs/heads/master | 2022-09-28T09:46:11.783837 | 2020-06-07T19:44:48 | 2020-06-07T19:44:48 | 267,360,199 | 0 | 0 | MIT | 2020-05-27T15:42:25 | 2020-05-27T15:42:24 | null | UTF-8 | Python | false | false | 2,176 | py | # Copyright 2020 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
d82556b2fa08b9b5bf669d8a5260876206ab8720 | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /146-LRUCache.py | 0a03d9ada59e10ced0060bfe5e5ab5d7ae005f87 | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | class Node(object):
def __init__(self, key, val):
self.key = key
self.val = val
self.next = None
self.prev = None
class DoubleLinkedList(object):
def __init__(self):
self.head = Node(0, 0)
self.tail = Node(0, 0)
self.tail.prev = self.head
self.he... | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
f8202b25cbf0d1cf4eb8728ee8dd4f2ac4be6fe0 | d7cde25f64c784238919b5a4463aca8e98e1042d | /json2.py | 17bd12a4f1a2f2ccaed3d62658b168eaa7f5ef28 | [] | no_license | kwoshvick/pythonscripts | 6d684dbaaaa7d317c5393f7fd982e115770db3c4 | 1c56f21faab098752fcfdcbd2e28590e904a4e0c | refs/heads/master | 2021-09-23T03:19:31.799045 | 2018-09-20T06:20:47 | 2018-09-20T06:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | __author__ = 'kwoshvick'
import urllib.request as rq
import json
list_numbers = list()
# http://python-data.dr-chuck.net/comments_42.json
# http://python-data.dr-chuck.net/comments_171968.json
url = input("Please Enter URL: ")
urlhandler = rq.urlopen(url).read().decode()
jsondata = json.loads(urlhandler)
#print(js... | [
"kwoshvick@gmail.com"
] | kwoshvick@gmail.com |
7473164a03951ff6879bfaa6df6e9a56ab92202d | 75f6bbcdf10dec884202b3136feb0317842df55f | /apps/task/migrations/0014_taskscript_script_name.py | d71fecd9858efaf7f356441edd75b3326109e7d7 | [] | no_license | qt-pay/python-devops | bafa305fbcd7bef4498857ab75be7447bc1e0a42 | 60e9481ab84628cf817fde1c52f4a15d5085e503 | refs/heads/main | 2023-03-15T12:39:45.813287 | 2021-01-24T18:40:38 | 2021-01-24T18:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 2.2.2 on 2021-01-09 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('task', '0013_remove_taskscript_script_name'),
]
operations = [
migrations.AddField(
model_name='taskscript',
name='s... | [
"yans121@sina.com"
] | yans121@sina.com |
2c5ba50c4354a7a56ca98be6d504781db5df0726 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/72/usersdata/161/32028/submittedfiles/tomadas.py | 0c042de34b3f1ac31dff8e3c9989b37274d5862e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CODIGO AQUI
T1=int(input('Informe o número de tomadas da primeira régua:'))
T2=int(input('Informe o número de tomadas da segunda régua:'))
T3=int(input('Informe o número de tomadas da terceira régua:'))
T4=int(input('Informe o número de tomadas da quarta régua:'))
T=(T1-... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3687eb472a1646c1b493cf9ccb45d1cd84cf9d77 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_issue_py3.py | 441d34f087704a1372caae1431882ebe92453a81 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 2,129 | py | # 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
6f0abd001fc4ea2a018990b3eea17370b082a5ff | c1f09426670b5efe35956acd19c67a2de72af284 | /python/5.concurrent/ZCoroutine/z_spider/1.pyquery.py | 203181b9993d604b17a4b4e6131cdfed178857fc | [
"Apache-2.0"
] | permissive | keasyops/BaseCode | 388218d89d60b958c1fcc50eb15f29eafabaea1f | 0255f498e1fe67ed2b3f66c84c96e44ef1f7d320 | refs/heads/master | 2023-05-08T05:08:39.754170 | 2021-05-26T10:48:01 | 2021-05-26T10:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import asyncio
import aiohttp
from pyquery import PyQuery
error_urls = set()
# 获取页面html
async def fetch(session, url):
async with session.get(url) as response:
if response.status == 200:
return await response.text()
else:
error_urls.add(url) # 待处理的url集合
# 阻塞方法
def saves... | [
"39723758+lotapp@users.noreply.github.com"
] | 39723758+lotapp@users.noreply.github.com |
f28a1c6306277227ba9d8d0c585124aee5fa06f9 | 54277288865f738e44d7be1d6b41b19c63af267e | /configs/srtcp/r2plus1d_18_got10k_syn3x/finetune_hmdb51.py | 8bec58ef23f6b18b9d12f72d1e6dcdf965326cd4 | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | _base_ = '../r3d_18_got10k_syn3x/finetune_hmdb51.py'
work_dir = './output/tcp/r2plus1d_18_got10k_syn3x/finetune_hmdb51/'
model = dict(
backbone=dict(
type='R2Plus1D',
pretrained='./output/tcp/r2plus1d_18_got10k_syn3x/pretraining/epoch_300.pth',
),
cls_head=dict(
num_classes=51
... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
5ed876f70146b5735041edb9aa96dd8f7a27affe | 62bdd0d6ea614613eda76cba1862effb86f2acb7 | /dj4e_2/myarts/models.py | 31a9407d60ee6ee586a73e216aa66fb8edfa720d | [] | no_license | aman007shrestha/Django4everybody | bb2d1df8d681ddac369b1bdde13aff2b9bf08148 | 659bfd579b13d5d7b59022dec3dd3c14c7c37608 | refs/heads/main | 2023-01-21T06:39:48.560094 | 2020-12-02T06:55:20 | 2020-12-02T06:55:20 | 317,775,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from django.db import models
from django.core.validators import MinLengthValidator
from django.contrib.auth.models import User
from django.conf import settings
# Create your models here.
class Article(models.Model):
title = models.CharField(
max_length=200,
validators=[MinLengthValidator(2, "Title must be greate... | [
"KAN007BCT@student.kec.edu.np"
] | KAN007BCT@student.kec.edu.np |
76d1a103a3d9419a8f07e15c521acb164732079c | 6169a0af24553278c9493c9ac14d2351e9085afd | /tests/system/providers/google/cloud/gcs/example_firestore.py | 9be3b8dd8dcf3d071209a5d3b5743a6375bbd08b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | Nextdoor/airflow | c994f8fbaf48bebd891300f44dd78a58fd0b057b | 863ec46e25ea49d6d5b006d8fd3a83f50aa9db79 | refs/heads/master | 2023-06-12T19:25:58.052324 | 2023-01-20T17:43:14 | 2023-01-20T17:43:14 | 54,076,271 | 7 | 8 | Apache-2.0 | 2023-06-05T20:38:53 | 2016-03-17T00:34:45 | Python | UTF-8 | Python | false | false | 6,327 | py | #
# 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... | [
"noreply@github.com"
] | Nextdoor.noreply@github.com |
7ff31e753171c8ee1b134daddd4f357f9b1005f2 | 95386eb0d35216dec743388b2718da15f61b608d | /NETCONF/CODE/cisco_XR_netconf_2.py | 51c0d0e66d9773f20f106e54327e21ec87ee7c61 | [] | no_license | Preet2fun/NetworkProgramming | 930c48601d7f5199510479126806be298ccfcca5 | 78bf55d05574d85c373ad88df10c5df4139ed178 | refs/heads/master | 2020-05-17T23:54:48.517255 | 2019-09-30T09:43:45 | 2019-09-30T09:43:45 | 184,040,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #! /usr/bin/python3.6
from ncclient import manager
from cisco_device import IOS_XR
import sys
import xmltodict
import logging
logger = logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(levelname)s: %(message)s',stream=sys.stdout)
netconf_filter = open("ietf_fileter_interface.xml").read()
print (netconf_... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
25ad11b9bb7c1e93a1ad963baf5a210ef888e6fb | 2d5d13c4bdc64202a520f32e7d4a44bb75e2004f | /week-02/d01/variable_mutation.py | 22d74862ed356281daca16cc1e29a0bcfc7e14c3 | [] | no_license | green-fox-academy/andrasnyarai | 43b32d5cc4ad3792ef8d621328f9593fc9623e0b | 19759a146ba2f63f1c3e4e51160e6111ca0ee9c3 | refs/heads/master | 2021-09-07T16:19:34.636119 | 2018-02-26T00:38:00 | 2018-02-26T00:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | a = 3
# make it bigger by 10
print(a + 10)
b = 100
# make it smaller by 7
print(b - 7)
c = 44
# please double c's value
print(c * 2)
d = 125
# please divide by 5 d's value
print(d // 5)
e = 8
# please cube of e's value
print(e ** 3)
f1 = 123
f2 = 345
# tell if f1 is bigger than f2 (pras a ... | [
"andrasnyarai@gmail.com"
] | andrasnyarai@gmail.com |
4843baf002f6dae0fe5cb1470e278cd63ae8bfc9 | fbdc36fe99d2f49b150b8cb8d2f09fcb10bd7ca4 | /pytorch/train.py | 6e947e04b93dd6dfe8522b3940eada1aa41fe75f | [
"MIT"
] | permissive | MiaoDragon/completion3d | 9ff17cfba8706991f5fe88f6d270007eba06481b | 95430f16ae73c5b27180b542cf1c56f87b4cdbaf | refs/heads/master | 2020-06-14T06:01:22.167439 | 2019-07-29T01:58:19 | 2019-07-29T01:58:19 | 194,927,243 | 0 | 0 | null | 2019-07-02T20:01:59 | 2019-07-02T20:01:59 | null | UTF-8 | Python | false | false | 5,000 | py | """
"""
#from builtins import range
import os
import sys
sys.path.append(os.getcwd())
import _init_paths
from PointNetFCAE import *
#from modules.emd import EMDModule
from tools.obs_data_loader import load_dataset
from tools.import_tool import fileImport
import argparse
import torch
from chamfer_distance import Chamfer... | [
"innocentmyl@gmail.com"
] | innocentmyl@gmail.com |
82e3b37bdb2ad82c4f96ac43d5740de6895f4863 | 3df19730d14ee920f9efb5949a39b2b7ce03890b | /layerviewer/normalize.py | 2ce0e883731472496aff3e3df6a0238e3c4bff69 | [] | no_license | shalevy1/ivigraph | 6948f66ffa06e5132d5884658d1e78122ab6604c | 4e8c29d92d36cee27de3f9100d20df5c8ce706c7 | refs/heads/master | 2023-03-16T15:44:06.248049 | 2013-08-05T16:40:25 | 2013-08-05T16:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def norm01(dataIn,channelWise=False):
out=dataIn.copy()
if channelWise==False:
out-=out.min()
out/=out.max()
else :
for c in range(dataIn.shape[2]):
out[:,:,c]-=out[:,:,c].min()
out[:,:,c]/=out[:,:,c].max()
return out
| [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
fa561650bdf461db8a95273cbd2fbb8bdc7b0e54 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529105730.py | dfdfad8f4b990aa7ac7b90bed6d22e6fbfa94693 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,582 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
8a4bc42d9cafe0d8a4ab3a08aefcb128066c613a | d6eca1b4b056beb41ac494db7399e1f146099c97 | /alien_invasion/exercise/key.py | 7a13a30d303781ea41b65e756d2a29ca1604771a | [] | no_license | liangsongyou/python-crash-course-code | 15090b48d77de1115bfaaaa6e5638a9bb9b3c7cc | f369e18030f2aafe358dd0fab1e479ca7bf4ceb8 | refs/heads/master | 2021-05-08T06:42:29.147923 | 2017-08-11T06:41:30 | 2017-08-11T06:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from os import sys
import pygame
def main():
"""Main loop of the window."""
pygame.init()
scr_size = (1386,700)
screen = pygame.display.set_mode(scr_size)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
elif even... | [
"ramzanm461@gmail.com"
] | ramzanm461@gmail.com |
d02961f6bb0710a6363c4a70e20835eb34887b2a | b681f93e6790f86f5710820e5ba3aa35fefa6f25 | /Fred2/Apps/EpitopeAssembly.py | e0422ad80f47fb04fc50623c73547ae310e60a65 | [] | no_license | SteffenK12/Fred2 | 89be9d081cae4dda6be6ba49c13155910f4ecd00 | 4d627ee1f28380efb3c6af61895623d33ff8785d | refs/heads/master | 2020-04-05T23:39:27.786786 | 2015-10-09T14:18:37 | 2015-10-09T14:18:37 | 44,380,401 | 0 | 0 | null | 2015-10-16T11:18:44 | 2015-10-16T11:18:44 | null | UTF-8 | Python | false | false | 5,349 | py | __author__ = 'schubert'
import argparse, sys, os
from Fred2.Core.Peptide import Peptide
from Fred2.Core.Base import ACleavageSitePrediction
from Fred2.IO.FileReader import read_lines
from Fred2.EpitopeAssembly.EpitopeAssembly import EpitopeAssembly
from Fred2.CleavagePrediction import CleavageSitePredictorFactory
d... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
6b98fd9480c24ce1dfbab89aa37782b26192a924 | 4e04db11d891f869a51adf0e0895999d425f29f6 | /tests/accounting/testcases/tc_connect.py | 3461941a88ef6bf289dc812d1e69a820ca204837 | [] | no_license | mthangaraj/ix-ec-backend | 21e2d4b642c1174b53a86cd1a15564f99985d23f | 11b80dbd665e3592ed862403dd8c8d65b6791b30 | refs/heads/master | 2022-12-12T12:21:29.237675 | 2018-06-20T13:10:21 | 2018-06-20T13:10:21 | 138,033,811 | 0 | 0 | null | 2022-06-27T16:54:14 | 2018-06-20T13:04:22 | JavaScript | UTF-8 | Python | false | false | 2,283 | py | from rest_framework.test import APITestCase
from portalbackend.lendapi.accounts.models import Company
from tests.constants import ResponseCodeConstant, CompanyConstant, TestConstants
from tests.utils import TestUtils
class _001_ConnectionTestCase(APITestCase):
"""
Tests the Connection View
"""
def ... | [
"thangaraj.matheson@ionixxtech.com"
] | thangaraj.matheson@ionixxtech.com |
52ceffb3c9ec7ddad2e6056a9dde0fd42ae567a4 | 6fa81aea23e36b58c7d7788a2b6f3d98440a6891 | /basic-manipulations/break.py | f25ad1b6a962e8dc3533cda83c3693da01fab903 | [] | no_license | grbalmeida/python3 | 673b0cbde3481350795d41fb6ebf06633a70b462 | 3a542cea13f4442dcf7703b843df8f2bd44e9065 | refs/heads/master | 2020-04-29T09:40:20.635795 | 2019-03-17T05:08:28 | 2019-03-17T05:08:28 | 176,033,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # coding: utf-8
salary = int(input('Salário? '))
tax = 27
while tax > 0:
tax = input('Imposto ou (s) para sair: ')
if not tax:
tax = 27.
elif tax == 's':
break
else:
tax = float(tax)
print('Valor real: {0}'.format(salary - salary * tax * 0.01)) | [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
912d082a6dbe74f145802096419eb2c4ce1772a1 | 4cade98f144c81d98898de89763d4fcc7e6ae859 | /tests/rendering/repeat_separate_callback.py | 93e1614196d4f5d88f50767af65aca66f8754f88 | [
"Apache-2.0"
] | permissive | ndparker/tdi | be115c02721aa5829e60b9af820b4157ba24a394 | 65a93080281f9ce5c0379e9dbb111f14965a8613 | refs/heads/master | 2021-01-21T04:54:51.390643 | 2016-06-15T19:55:35 | 2016-06-15T19:55:35 | 13,570,597 | 4 | 1 | null | 2013-10-20T14:59:37 | 2013-10-14T19:14:14 | Python | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
import warnings as _warnings
_warnings.resetwarnings()
_warnings.filterwarnings('error')
from tdi import html
template = html.from_string("""
<node tdi="item">
<node tdi="nested">
<node tdi="subnested"></node>
</node><tdi tdi=":-nested">
</tdi>
</node>
""".lstrip())
class Mo... | [
"ndparker@users.noreply.github.com"
] | ndparker@users.noreply.github.com |
0b8646becbebeb2e60b26401ced6a214df15b8a5 | d9d75e429261d3f2b1075e0f7b598c756cb53a56 | /env/lib/python3.9/site-packages/django/contrib/admin/__init__.py | da396593162743eef0420c635f6044e7c811c764 | [] | no_license | elisarocha/django-tdd-course | f89ccff07c8fd5114ae10fcb9a400be562f088db | 7333fb9b5a5f8ea0f8fe7367234de21df589be59 | refs/heads/main | 2023-02-25T11:22:23.737594 | 2021-02-01T19:53:42 | 2021-02-01T19:53:42 | 334,710,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | from django.contrib.admin.decorators import register
from django.contrib.admin.filters import (AllValuesFieldListFilter,
BooleanFieldListFilter,
ChoicesFieldListFilter,
DateFieldListFilter,
... | [
"ecdgrocha@gmail.com"
] | ecdgrocha@gmail.com |
a9e1c39ac344a4077757def33a8fb95fab0757da | 6a607ff93d136bf9b0c6d7760394e50dd4b3294e | /CodePython/python_file/SSPassword.py | 0a00267cdf0932e971e83597190057c7c84a1732 | [] | no_license | n3n/CP2014 | d70fad1031b9f764f11ecb7da607099688e7b1de | 96a7cdd76f9e5d4fd8fb3afa8cd8e416d50b918c | refs/heads/master | 2020-05-15T07:08:17.510719 | 2014-02-14T03:21:05 | 2014-02-14T03:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | txt1 = raw_input()
txt2 = raw_input()
start = 0
store = {}
for j in xrange(len(txt2)):
tmp = ''
for i in xrange(1,len(txt2)+1):
if txt2[j:i] in txt1:
tmp = txt2[j:i]
if len(tmp) > 0:
store[tmp] = len(tmp)
val = store.values()
val.sort()
if len(val) == 0:
print 'Error!'
... | [
"s6070069@kmitl.ac.th"
] | s6070069@kmitl.ac.th |
114f29441491d265e57420d9a1e9f0120e7f3ef9 | 447aadd08a07857c3bcf826d53448caa8b6a59ee | /bin/python-config | 943b73297bb756dfe3e5f8227160dfde867f44aa | [] | no_license | aydanaderi/Site1 | 57461e9a43ddc7b7372d2e1690c37b09f73cbdef | 30dce3e5a52a221208b28bcaac51a57a35cd82c6 | refs/heads/master | 2021-06-03T11:30:54.317056 | 2020-05-01T13:43:07 | 2020-05-01T13:43:07 | 254,337,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | #!/home/ayda/Documents/Site/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >= ... | [
"ayda.f.naderi@gmail.com"
] | ayda.f.naderi@gmail.com | |
01ccdf77b9751e5d0b06610abd85dfec1a411893 | a1615563bb9b124e16f4163f660d677f3224553c | /LI/lib/python3.8/site-packages/astropy/table/connect.py | 20778cbcf66bf2fed8dc443a2322609ea7ab97d9 | [
"MIT"
] | permissive | honeybhardwaj/Language_Identification | 2a247d98095bd56c1194a34a556ddfadf6f001e5 | 1b74f898be5402b0c1a13debf595736a3f57d7e7 | refs/heads/main | 2023-04-19T16:22:05.231818 | 2021-05-15T18:59:45 | 2021-05-15T18:59:45 | 351,470,447 | 5 | 4 | MIT | 2021-05-15T18:59:46 | 2021-03-25T14:42:26 | Python | UTF-8 | Python | false | false | 4,446 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from astropy.io import registry
from .info import serialize_method_as
__all__ = ['TableRead', 'TableWrite']
__doctest_skip__ = ['TableRead', 'TableWrite']
class TableRead(registry.UnifiedReadWrite):
"""Read and parse a data table and return as a T... | [
"honey.bhardwaj.18cse@bmu.edu.in"
] | honey.bhardwaj.18cse@bmu.edu.in |
58364a12ae6bcd575ef90327f0483265e2a95353 | 36da6c5f553d4eb97cc2b6798d8017f313b2705e | /knowledgeCity0610/remoteio/remoteioMgr_old.py | 6fcb05c017354391204d8f286d5bfe7a2b081e7c | [] | no_license | MOZIJANE/jingxin | da10476edfc25ffbbe87eb8f127c600ce6ad30ce | 01e7e419b15da1b6a7c127d1db1a042a24a12146 | refs/heads/master | 2023-06-06T05:05:11.953104 | 2021-06-23T04:27:22 | 2021-06-23T04:27:22 | 378,850,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,888 | py | # coding=utf-8
# lzxs 2018-8-2 create
import sys, os
import threading
import json
import setup
if __name__ == '__main__':
setup.setCurPath(__file__)
import utility
# import remoteio.remoteioControl as remoteioControl
import modbusapi
import log
import time
import modbus_tk.defines as mdef
import lock as lockIm... | [
"1051945562@qq.com"
] | 1051945562@qq.com |
49dcedfd70d8de54cf3d3d22aef12b1c668a5e73 | f908adce7e25824f7daaffddfaacb2a18b3e721b | /feder/cases/migrations/0007_auto_20180325_2244.py | 8f103956f10efc94fc5f727235b3590001bc9abe | [
"MIT"
] | permissive | miklobit/feder | 7c0cfdbcb0796f8eb66fd67fa4dabddb99370a7c | 14a59e181a18af5b625ccdcbd892c3b886a8d97e | refs/heads/master | 2023-01-13T23:03:51.266990 | 2020-11-12T14:31:52 | 2020-11-12T15:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 2.0.3 on 2018-03-25 22:44
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("cases", "0006_alias")]
operations = [
migrations.AlterField(
model_name="case",
name="slug",
field=aut... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
5fb3a9efc2ea2479de46661403dc3c73482abc60 | 4e88ad4f7a14d4c1027d711ad19a70d616182cc4 | /backend/task/api/v1/urls.py | b3f694c192411f08420616b0dac4bb7edb39b6c1 | [] | no_license | crowdbotics-apps/test-24834 | 11c153b1f3a409a183de97cd822568f471ab2629 | 33b0b0b6a1793da8d2970b29a6c23152b2e6ec4b | refs/heads/master | 2023-03-15T15:47:38.489644 | 2021-03-05T18:28:00 | 2021-03-05T18:28:00 | 344,269,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import MessageViewSet, RatingViewSet, TaskViewSet, TaskTransactionViewSet
router = DefaultRouter()
router.register("tasktransaction", TaskTransactionViewSet)
router.register("task", TaskViewSet)
router.register("messa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
52263aca0037892c333edd8b32660fb688936773 | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/bfs_dfs/android_unlock_patterns_dfs.py | c71381245a6537441a29e3c941330844a078db20 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | from typing import List
class Solution:
"""
consist of minimum of m keys and maximum n keys
Runtime: 416 ms, faster than 78.53%
"""
def numberOfPatterns(self, m: int, n: int) -> int:
skip = {(1, 7): 4, (1, 3): 2, (1, 9): 5, (2, 8): 5, (3, 7): 5, (3, 9): 6, (4, 6): 5, (7, 9): 8}
res... | [
"dofu@ebay.com"
] | dofu@ebay.com |
792f6de6a225614864c5e4c376444da1f50d4038 | e5e0d729f082999a9bec142611365b00f7bfc684 | /tensorflow/python/estimator/canned/dnn_linear_combined.py | e28499368f1687c4ab4972f04888da66a47b0f5a | [
"Apache-2.0"
] | permissive | NVIDIA/tensorflow | ed6294098c7354dfc9f09631fc5ae22dbc278138 | 7cbba04a2ee16d21309eefad5be6585183a2d5a9 | refs/heads/r1.15.5+nv23.03 | 2023-08-16T22:25:18.037979 | 2023-08-03T22:09:23 | 2023-08-03T22:09:23 | 263,748,045 | 763 | 117 | Apache-2.0 | 2023-07-03T15:45:19 | 2020-05-13T21:34:32 | C++ | UTF-8 | Python | false | false | 1,349 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b4d4ceaff1275f2eb8b9a5807035b802950627f8 | 9a2413b572c0f89b1f80899a10237657d9393bd6 | /sdk/python/pulumi_keycloak/openid/client_optional_scopes.py | a52259f31c6be7621a5ada153c069d32b6118951 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaxxstorm/pulumi-keycloak | 5c25363ece6af49dad40bd693ce07b1fa0dedd74 | 2fc7b1060b725a40d2ada745aa0d10130243a0b5 | refs/heads/master | 2022-10-10T13:11:04.290703 | 2020-06-05T19:11:19 | 2020-06-05T19:11:19 | 270,870,883 | 0 | 0 | NOASSERTION | 2020-06-09T01:08:56 | 2020-06-09T01:08:55 | null | UTF-8 | Python | false | false | 3,482 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Client... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
2704e6f84e46c139529f9206e7c2166217968b5a | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/modules/tensformers/pooler.py | 89b4fdf3207eb1794f0a6c40a086cfe87d580336 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 1,383 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.