blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
e0889544104e6c7c8d0da19b000e6e4f617b4ccf | 5f8e7e119524319c14366d7ef56a6a1ff9fd971b | /django/django_intro/firstDjangoProject/firstDjangoProject/urls.py | 7f2c10295a53f3a890c89b349ad8adbd863b58c9 | [] | no_license | everhartC/Python | 8df322212eb72a7ac243609020f4bdfd2de93615 | 4f385acbf734bdfa957d659685b10d0506a8d94a | refs/heads/main | 2023-07-02T22:03:10.851211 | 2021-08-02T05:50:31 | 2021-08-02T05:50:31 | 329,521,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | """firstDjangoProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"cameron.r.everhart@gmail.com"
] | cameron.r.everhart@gmail.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 |
50e6cb70ed23e62e0f2206d5f819a6455f9db8a0 | b19c9fe62eaa309851dc11f6fd7a05bda463fb58 | /bigfish/apps/areas/__init__.py | 3dc4ee516b7d709d71001cd9eaf7f76c7fcbacf8 | [] | no_license | hyu9999/bigfish | 3ff3b025982e71bd6dd80f60ad6c70e735e98936 | 4189fdcacc20795a4778b53c9d47d6fdd3e71811 | refs/heads/master | 2022-07-08T13:55:12.908583 | 2019-03-22T09:36:12 | 2019-03-22T09:36:12 | 177,055,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | default_app_config = 'bigfish.apps.areas.apps.AreasConfig'
| [
"757147959@qq.com"
] | 757147959@qq.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 |
a374fbc7800f7c329eafa018a794f24d885140dd | bb767bfc9db2b0ab7f24d3561b168a829c4eb0bc | /1st_Year/1st_Semestre/Fpro/Python/saved files/practicing.py | c4a51e39f0cb59ec533d6e851b3242027a5511a9 | [] | no_license | Hugomguima/FEUP | 7e6e0faf5408d698a34c3b5aed977b20aa76c067 | f26887e2b8e92e41ae5050515cd0b3cdf94d6476 | refs/heads/master | 2023-06-09T05:21:38.897094 | 2021-06-29T17:00:01 | 2021-06-29T17:00:01 | 272,567,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | print(type(10.0))
print(type(10))
print(type('hello'))
print(type(True)) | [
"50011557+Hugomguima@users.noreply.github.com"
] | 50011557+Hugomguima@users.noreply.github.com |
50cd9fbadc769245e3339206c113b527065fe981 | cf070f44eb2e4a218af93432608a04e85e1bbfac | /web/tests/eSearch/test_4504.py | 332c2c5aced33e8c407502b881508f5e40c0a27e | [] | no_license | NadyaDi/kms-automation | fbb680e95394b0c3286653ac5ae187f6bc02845e | 3309a6f516386e824c23e03c6f6cb47661ea5ddd | refs/heads/master | 2022-01-15T14:50:22.616235 | 2019-05-16T10:29:20 | 2019-05-16T10:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,376 | py | import time, pytest
import sys,os
from _ast import Num
sys.path.insert(1,os.path.abspath(os.path.join(os.path.dirname( __file__ ),'..','..','lib')))
from clsCommon import Common
import clsTestService
from localSettings import *
import localSettings
from utilityTestFunc import *
import enums
class Test:
#========... | [
"45174452+CusHoria@users.noreply.github.com"
] | 45174452+CusHoria@users.noreply.github.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 |
bc8c2fe0c88ac4e6708e0ca76ad3267aa79466b7 | 32cf9c3099c36a46804e393dd1491a8954f50263 | /1학기 cloud9 총정리/django_intro/workspace/.c9/metadata/workspace/workshop_test/myapp/models.py | 9e07b03671da2d9a7f87d8d5dbb7b579bef71f19 | [] | no_license | ash92kr/s_code | ce3bda6a403600892750e181dca5ed8c4caebcb1 | 92eace551d132b91ee91db6c0afd38b93f9b647b | refs/heads/master | 2020-04-12T00:27:07.043091 | 2019-05-21T08:17:39 | 2019-05-21T08:17:39 | 162,200,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,238 | py | {"filter":false,"title":"models.py","tooltip":"/workshop_test/myapp/models.py","undoManager":{"mark":27,"position":27,"stack":[[{"start":{"row":3,"column":0},"end":{"row":3,"column":1},"action":"insert","lines":["c"],"id":2},{"start":{"row":3,"column":1},"end":{"row":3,"column":2},"action":"insert","lines":["l"]},{"sta... | [
"ash92kr@gmail.com"
] | ash92kr@gmail.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 |
f2d4383de12f63d69d6500687ee40ae98197b0fd | 82770c7bc5e2f27a48b8c370b0bab2ee41f24d86 | /microblog/flask/venv/lib/python2.7/site-packages/ws4py/client/__init__.py | 8e7ca0e86501ef31a0e9f07fe88de7042e5bf238 | [
"Apache-2.0"
] | permissive | johankaito/fufuka | 77ddb841f27f6ce8036d7b38cb51dc62e85b2679 | 32a96ecf98ce305c2206c38443e58fdec88c788d | refs/heads/master | 2022-07-20T00:51:55.922063 | 2015-08-21T20:56:48 | 2015-08-21T20:56:48 | 39,845,849 | 2 | 0 | Apache-2.0 | 2022-06-29T23:30:11 | 2015-07-28T16:39:54 | Python | UTF-8 | Python | false | false | 10,761 | py | # -*- coding: utf-8 -*-
from base64 import b64encode
from hashlib import sha1
import os
import socket
import ssl
from ws4py import WS_KEY, WS_VERSION
from ws4py.exc import HandshakeError
from ws4py.websocket import WebSocket
from ws4py.compat import urlsplit
__all__ = ['WebSocketBaseClient']
class WebSocketBaseClien... | [
"john.g.keto@gmail.com"
] | john.g.keto@gmail.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 |
5b483961bb98aa1739b96e6ff1a6efe36fa4b5a5 | 77c4ca9b33e007daecfc4318537d7babea5dde84 | /tensorflow/python/ops/ragged/string_ngrams_op_test.py | 6b3b3777cb5ab9cc1a16d444b6af4b3cd0764392 | [
"Apache-2.0"
] | permissive | RJ722/tensorflow | 308eede8e911e2b6a6930fef3e24a493ab9a2a61 | 6c935289da11da738f2eaed18644082f3a6938d6 | refs/heads/master | 2020-12-20T16:51:12.767583 | 2020-01-25T06:46:50 | 2020-01-25T06:51:20 | 236,138,137 | 2 | 3 | Apache-2.0 | 2020-01-25T07:12:41 | 2020-01-25T07:12:40 | null | UTF-8 | Python | false | false | 11,964 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the b"License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
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 |
7aa31c9b0250a3fa6b8760cf05b19f6f9ab425be | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2022_01_01_preview/aio/operations/_private_endpoint_connections_operations.py | bea1e46c5c841f5c1c1884b44e2698c5f7252586 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 24,471 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
96c4cfe9417124ff23fbdd2c85331526eb41d995 | 5373c570897992986b18c1f76b6a2e1482b9599d | /Exercícios/ex002.py | 57ba81c90b3ead48d9b2d3ae1cc2f883f40089b2 | [
"MIT"
] | permissive | CarolineSantosAlves/Exercicios-Python | 37ebe049919608ad6cf7f2558734f2f9b16082a1 | 3bbdc1fd996948142951e043175efd9d8a6c34f2 | refs/heads/master | 2022-09-08T20:29:26.375417 | 2020-05-30T23:44:04 | 2020-05-30T23:44:04 | 268,178,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | nome = input('Digite seu nome: ')
print('Bem vindo {}!'.format(nome))
| [
"caroline.santos.wb@gmail.com"
] | caroline.santos.wb@gmail.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 |
b5897eec2be4340eb61e541ba9839cdc53a882d5 | 1ebe5a07e7f6260c2c2ceb6ca00dcf2a0341e544 | /op_impl/built-in/ai_core/tbe/impl/yolo_v3_correct_region_box_v2.py | 1a325ec9c0766aa9ab0d67f45dd302d7f7dc0876 | [] | no_license | gekowa/ascend-opp | f5e09905336d85f9974d555d03d37a75cb8185c1 | 5c28a2faf9d2a117ea6f0923efe35fcd53904dd2 | refs/heads/master | 2023-04-09T12:14:40.337104 | 2021-04-19T23:00:59 | 2021-04-19T23:00:59 | 359,620,865 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,592 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"gekowa@gmail.com"
] | gekowa@gmail.com |
bf096364438dde5831dbbf402a3bebf75076c262 | a74b980fd95d5d810315f181449fc9d1710e6923 | /savecode/threeyears/idownclient/scan/shodan/shodanbase.py | 20cca24c06b1990ea28a1bb22d772c18772ab8d4 | [
"Apache-2.0"
] | permissive | cbbbbbbbb/sspywork | b70f5539203b47b21eec2f0514ddca155affc2b8 | 8f05a6b91fc205960edd57f9076facec04f49a1a | refs/heads/master | 2023-03-22T19:45:13.024076 | 2021-03-08T01:24:21 | 2021-03-08T01:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,946 | py | """
因为要增加下载某个国家数据的功能
以前这个功能就是随便应付下,但是现在好像是确实需要这个功能
所以重新好好写下
这里把shodan的代码整理下
"""
import re
import threading
import traceback
from abc import abstractmethod
import requests
from commonbaby.httpaccess import HttpAccess
from common.tools import sslparse
from idownclient.clientdatafeedback.scandatafeedback import (
Po... | [
"shiyuegege@qq.com"
] | shiyuegege@qq.com |
1351f5d54c8d7e52592aec025dbfeeaeec150d5f | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /device/bluetooth/bluetooth.gyp | b90b4e8221d7a5518abf586078d0082a8db46bcb | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 22,522 | gyp | # 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //device/bluetooth
'target_name': 'device_bluetooth',
't... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
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 |
7d7df800f2f943ea6eb981ce5a811699b8b95cb8 | 21e1d00c48c1732cc44af077572299831b93ffc2 | /PROBLEM_SOLVING/CODE_FORCE/P_200B.py | 6fab219e0a60ddaf6b771195f4745a2e57bdf4c1 | [] | no_license | GolamRabbani20/PYTHON-A2Z | 7be72041407e4417359b3a610ced0919f3939993 | 7c89223f253aa559fa15caacb89c68e0b78ff915 | refs/heads/master | 2023-05-09T00:43:03.012963 | 2021-05-26T07:56:56 | 2021-05-26T07:56:56 | 317,953,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | n=int(input())
f=input().split()
s=0
for i in f:
s=s+int(i)
print(s/n) | [
"mdgolamrabbani96@gmail.com"
] | mdgolamrabbani96@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 |
8ea1f65d0ffcdf98d13b393d63c9cd93dfc1f5dd | ffb05b145989e01da075e2a607fb291955251f46 | /pypers/meta/fill.py | ec92c0ba2e423d9f2c8c9731e9f9214ccb389d96 | [] | no_license | micheles/papers | a5e7f2fa0cf305cd3f8face7c7ecc0db70ce7cc7 | be9070f8b7e8192b84a102444b1238266bdc55a0 | refs/heads/master | 2023-06-07T16:46:46.306040 | 2018-07-14T04:17:51 | 2018-07-14T04:17:51 | 32,264,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import textwrap
text=file('meta.txt').read()
print textwrap.fill(text,70,replace_whitespace=False)
| [
"michele.simionato@gmail.com"
] | michele.simionato@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 |
b94bcefd6e49ffebaa03bbf8ba22b389bd93f07b | e511cdd3114e0d3611422e5f82eef7fc0f839402 | /413.total_energy.py | afb959cb79900dd3b66005a4a6c18d96c9ef3b23 | [] | no_license | GiantMolecularCloud/NGC253-outflow-at-2pc | 46898bb4d93ed1f30f5d24e6ee7d7efbe1d79a20 | b7ee55cc2f4bebf5af8912a662765d5ceed16977 | refs/heads/main | 2023-02-26T23:32:05.408835 | 2021-02-05T16:39:22 | 2021-02-05T16:39:22 | 336,310,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,743 | py | from __future__ import print_function
########################
# CASA ANALYSIS SCRIPT #
########################
# Get estimates for various quantities for disk (inside disk mask) and the rest (mainly outflows).
###################################################################################################
# im... | [
"26749617+GiantMolecularCloud@users.noreply.github.com"
] | 26749617+GiantMolecularCloud@users.noreply.github.com |
679e983d8074ebf8f7dbce8af00db87168d0c887 | f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b | /samples/python/apidocs/ee_number_abs.py | f4daf40ec08bb1ff5e89839d54938f661958a4b3 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | google/earthengine-community | 4e054b421f66f03507d58668084aee981062fc24 | ce931040c518860f8788b4888c0acfdebd2952fc | refs/heads/master | 2023-09-01T14:47:54.812703 | 2023-08-31T23:01:00 | 2023-08-31T23:01:39 | 200,732,820 | 428 | 552 | Apache-2.0 | 2023-09-13T21:46:51 | 2019-08-05T21:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 899 | py | # Copyright 2022 The Google Earth Engine Community 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
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 |
cdfb8014bcedb551132758dec0df2ed87e21ee59 | e9c9e38ed91969df78bbd7f9ca2a0fdb264d8ddb | /lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_user_radius_dynamicmapping_accountingserver.py | b9d570727b13fbb84e13fdb83e2a6d5f9444efec | [] | no_license | Arceusir/PRELIM_SKILLS_EXAM | 882fcf2868926f0bbfe1fb18d50e5fe165936c02 | b685c5b28d058f59de2875c7579739c545df2e0c | refs/heads/master | 2023-08-15T07:30:42.303283 | 2021-10-09T01:27:19 | 2021-10-09T01:27:19 | 415,167,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,540 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"aaronchristopher.dalmacio@gmail.com"
] | aaronchristopher.dalmacio@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 |
e051541904d7e0186fdaa038986ca03eacfcd709 | 608df16a4271aac72e15e5031601a5495ea27d6b | /Projects/dhl/env/bin/wheel | b90fc275d4c6b7143a86c237df4cc2e13b4bf859 | [] | no_license | HackV7/k-means_clustering | 2895108a57a60beffd8b525cbd972fe644f36404 | 5e40cece8037ef6ec499af00a7e0c3911e21d764 | refs/heads/master | 2021-07-09T06:27:00.543658 | 2017-10-08T03:56:35 | 2017-10-08T03:56:35 | 106,089,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/vishrut/Desktop/Projects/dhl/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kohlivishrut@gmail.com"
] | kohlivishrut@gmail.com | |
c5f1f29dadca98aef9c9bf1afbe50a266d59b0a4 | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/RetopoFlow/addon_common/common/updater_core.py | 9b22e9e85aa82bc9c2b1df0f0149ef92ac3fb991 | [
"MIT",
"GPL-3.0-only",
"GPL-1.0-or-later",
"GPL-3.0-or-later"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 64,117 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.