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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88af47fd8f2bb9f4357a3ce833c9215cbd29d941 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Amazon/S3/GetBucketLocation.py | a1f23c406555210b7f451832e408e86e7fd8a9b2 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetBucketLocation
# Returns the Region where the bucket is stored.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import ... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
2e7a19ed77da94d4c570f8512c0d330cd72973e2 | c2ae65792af1fab2e7843303ef90790819f872e8 | /Algorithm/BinaryTree/Construct-Binary-Tree-from-Inorder-and-Postorder-Traversal.py | cb21bbd260364c5cdc8da1af67095bbd9ee8d995 | [] | no_license | behappyyoung/PythonSampleCodes | 47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f | f7640467273fa8ea3c7e443e798737ca5bcea6f9 | refs/heads/master | 2023-03-15T00:53:21.034605 | 2023-02-13T17:12:32 | 2023-02-13T17:12:32 | 26,919,763 | 3 | 3 | null | 2023-03-07T12:45:21 | 2014-11-20T15:57:16 | Python | UTF-8 | Python | false | false | 851 | py | """
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
inorder = [9,3,15,20,7]
postorder = [9,15,7,20,3]
3
/ \
9 20
/ \
15 7
"""
from _BinaryTree import TreeNode, print_btree
def buildTree(inorder, postorder)... | [
"behappyyoung@gmail.com"
] | behappyyoung@gmail.com |
c6c8384d2cd0660325972a4383b80d1d5322e456 | bf3379daa827d8141aa56f9e8f281312e7439707 | /sect/triangulation.py | 6f91ba3ed63ae682f333b55464618e555128d898 | [
"MIT"
] | permissive | lycantropos/sect | 7e8ff0010104150e98f07c97201cca7c8f3ec512 | e362cd9518def706822e785e1aa56509605ce567 | refs/heads/master | 2023-06-08T09:32:12.029217 | 2023-05-30T23:05:33 | 2023-05-30T23:05:33 | 249,774,307 | 27 | 1 | MIT | 2020-09-25T04:19:27 | 2020-03-24T17:32:30 | Python | UTF-8 | Python | false | false | 185 | py | from .core.delaunay.quad_edge import QuadEdge as _QuadEdge
from .core.delaunay.triangulation import Triangulation as _Triangulation
QuadEdge = _QuadEdge
Triangulation = _Triangulation
| [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
4a7df159a5e005fd017b018dd15e18b8c4d0f936 | bd69d00be499d9974a1f63612fcae5dccf3b0da7 | /tests/components/cover/test_command_line.py | bab0137f4f8a93c73a73e21925cddcc83ee0876e | [
"MIT"
] | permissive | casimec/home-assistant | 0d7d48cbf3852f4574e38eef22c3c3cc18db0245 | 705b3571f45cb36ce7b9899e6e1393370f3f90ee | refs/heads/dev | 2021-01-21T20:22:21.866130 | 2016-08-31T16:12:34 | 2016-08-31T16:12:34 | 67,054,337 | 1 | 0 | null | 2016-08-31T16:22:03 | 2016-08-31T16:22:03 | null | UTF-8 | Python | false | false | 2,996 | py | """The tests the cover command line platform."""
import os
import tempfile
import unittest
from unittest import mock
import homeassistant.core as ha
import homeassistant.components.cover as cover
from homeassistant.components.cover import (
command_line as cmd_rs)
class TestCommandCover(unittest.TestCase):
... | [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
c46f668e8d39ef46d0d285c3adb60a497e03827d | 4cc143f0fdafd566f414460c9f2cb105f5892842 | /AAAI_Workshop/M2_BPS/demo_balanced_scheduling.py | 7ba717cbeda698fe62a12b0ba3768cf3854cbb8f | [
"MIT"
] | permissive | littlemoon13/SUOD | 562868a61fa769871622d71df9e8109ad57ac0dc | 5f5b0f4bc011b13c5e304320cfa7079649e56f16 | refs/heads/master | 2020-12-12T01:38:58.013278 | 2020-01-15T00:29:51 | 2020-01-15T00:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,537 | py | import os
import sys
import time
import warnings
import numpy as np
import scipy as sp
from scipy.stats import rankdata
from sklearn.preprocessing import StandardScaler
from joblib import effective_n_jobs
from joblib import Parallel, delayed
from copy import deepcopy
from joblib import load
from pyod.models.iforest i... | [
"yzhao062@gmail.com"
] | yzhao062@gmail.com |
e95632da1adefee06e982ddc97cbf509f70f9629 | 22c5aee2ac42532ec143bf716001f7615cd49bfa | /docs/source/conf.py | 9b9a82f493b4b7b7bef8b8641e87bd69c6fb231f | [
"BSD-3-Clause"
] | permissive | thelabnyc/django-activity-stream | 2cf1cb463444ceae81c187e99c1b5b7f3fc89a96 | d464e891349b7917069480ba97b5854e89f72e8c | refs/heads/master | 2021-01-17T06:37:20.282926 | 2020-04-08T20:39:19 | 2020-04-08T20:39:19 | 41,499,647 | 1 | 1 | BSD-3-Clause | 2020-04-08T20:39:21 | 2015-08-27T16:54:58 | Python | UTF-8 | Python | false | false | 5,683 | py | # -*- coding: utf-8 -*-
#
# Django Activity Stream documentation build configuration file, created by
# sphinx-quickstart on Sat Oct 1 12:35:29 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"justquick@gmail.com"
] | justquick@gmail.com |
2606f5c477ba26d19aa5a7ea9655a7deb71dad0d | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/petstore/python/petstore_api/model/array_of_enums.py | 1be72e32c39a15ed32c9747a09ed2ad02acf1db6 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 1,457 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
4f2e5926c098f182d3846624332d1614d10362d7 | 7b9527f6a66bf544071c07498163883ae33ff9ec | /python/11055.py | b9c735b13ce5f3b4c7e5a2d8d7d9dab189b6ae39 | [] | no_license | rhyun9584/BOJ | ec4133718934e59689cdcc0d3284bad9a412dc7a | f4c651da7c4840595175abf201d07151d4ac9402 | refs/heads/master | 2023-08-31T21:29:07.550395 | 2023-08-25T16:53:53 | 2023-08-25T16:53:53 | 225,122,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import copy
N = int(input())
A = [int(x) for x in input().split()]
sum = copy.deepcopy(A)
for i in range(1, N):
for j in range(i):
if A[i] > A[j]:
sum[i] = max(sum[i], sum[j]+A[i])
print(max(sum)) | [
"rhyun9584@naver.com"
] | rhyun9584@naver.com |
78f7d9e47fc2f5dcf5e819f41a8d938b9c47dbe1 | 69a60cdf962de532d63aa6111ddd7e3f9663abf3 | /wagtail/tests/testapp/migrations/0024_validatedpage.py | 0dabd2129083748178ee9e2d6261712fec43eeed | [
"BSD-3-Clause"
] | permissive | JoshBarr/wagtail | 47b827dc7394a8ebda76a7cc40e343fcd181ad96 | 7b8fbf89dac69386dfeb57dd607f43ab42d1ffab | refs/heads/master | 2021-01-09T06:35:13.010607 | 2016-02-08T13:06:05 | 2016-02-08T13:06:05 | 33,353,097 | 1 | 2 | null | 2016-02-23T20:14:13 | 2015-04-03T07:49:11 | Python | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-25 05:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0024_alter_page_content_type_on_delete_behaviou... | [
"matt@west.co.tt"
] | matt@west.co.tt |
ba9f1e97ab03afb6a5fec1f7644f0bf55edb7a46 | 17737f86e3b9c98f82037f1676faa1a41614aaa5 | /manage.py | 6b1404bafc43dc492222bff2db78395846b91151 | [] | no_license | tsh/django-ajax-simple-chat | ea2ab7402ee8637c6bf6da677c3fabdaee8930d2 | 0b38f2dbd5e5ec64451e780c40ec67abe86ab59f | refs/heads/master | 2023-09-04T02:36:53.800947 | 2014-01-24T17:40:06 | 2014-01-24T17:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_Chat.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"dr.tallin@gmail.com"
] | dr.tallin@gmail.com |
7e27264993c1ec43d5c131acb31c0dc06e4e296f | 2ea33df726a1a3867ad7fecfc334e8dfb15c4458 | /packages/gosamcontrib-toolfile/package.py | bc59b55f7013ff8217c73671c28bad048155f409 | [] | no_license | gartung/cmssw-spack | fe0ad7997777cfe58de273a5cd2e2aa368d1a1e2 | 37795d92596303197710fb043723c03775339220 | refs/heads/master | 2023-01-22T11:40:03.835528 | 2021-08-04T15:03:34 | 2021-08-04T15:03:34 | 78,494,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from spack import *
import sys,os
sys.path.append(os.path.join(os.path.dirname(__file__), '../../common'))
from scrampackage import write_scram_toolfile
class GosamcontribToolfile(Package):
url = 'file://' + os.path.dirname(__file__) + '/../../common/junk.xml'
version('1.0', '68841b7dcbd130afd7d236afe8fd5b949... | [
"gartung@fnal.gov"
] | gartung@fnal.gov |
0c14d4d2ac20db2756834a8f42fb89cdc30b4671 | dc0a6e23ee55c4009f18e7c646c0e41598dcd0a9 | /src/utils.py | b564e2db7d64dfda46fac24a2f607ea7d0d7834a | [] | no_license | danbailo/ic | aabf189de058814a78219e7b0946e234b21e91db | ef75e3f01c2cf2f001c657aa87bf98c969a656c0 | refs/heads/master | 2023-01-11T15:36:11.665681 | 2020-11-18T19:50:18 | 2020-11-18T19:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import argparse
import os
def create_args():
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v",
"--video",
type=str,
help="path to input video file")
return vars(ap.parse_args())
def delete_imgs():
op = input("Delete all images? ")
if op... | [
"danbailoufms@gmail.com"
] | danbailoufms@gmail.com |
9e62ec0fcaeb3720f83703d0b87c089994007002 | cbc4782342ad277b9f8cda805a57854ba3468edb | /SVDBias/SVDBias-surprise-ml.py | 1d901e4b3608f43e52e756d00bc9b4c71150066c | [] | no_license | qingkongmengnuan/BayesianRS | f7f1cdc7ca6336e3d18e98e441b65aa767846005 | e440f6bb26bdc9485d2ae15826c0900b7457b92d | refs/heads/master | 2022-11-30T20:00:20.305454 | 2020-08-11T08:25:11 | 2020-08-11T08:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | # coding:utf-8
'''
@author: Jason.F
@data: 2019.07.15
@function: Implementing SVDBias with surprise lirbray
Dataset: Movielen-1m
Evaluating by hitradio,ndcg
'''
import numpy as np
import pandas as pd
import math
from collections import defaultdict
import heapq
import surprise as sp
... | [
"sharpsword@163.com"
] | sharpsword@163.com |
b953777105e563ce297fc573f61fb938f2f8ba97 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.ec2.NetworkInterfaceSecurityGroupAttachment-python/__main__.py | f1281ca3d2cd3bc2dcd7d4b7dfa5a2d565d096fe | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import pulumi
import pulumi_aws as aws
ami = aws.get_ami(filters=[{
"name": "name",
"values": ["amzn-ami-hvm-*"],
}],
most_recent=True,
owners=["amazon"])
instance = aws.ec2.Instance("instance",
ami=ami.id,
instance_type="t2.micro",
tags={
"type": "test-instance",
})... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
e2c7d8563d77db0c7809b623e690dec82dce8949 | 31da199014d3fcbfa697c65743ceff554bd2bb75 | /cabinet/admin.py | 68a0b68e7d740b6ce6c82b558dad1a531f608402 | [
"BSD-2-Clause"
] | permissive | barseghyanartur/django-cabinet | 59c12d7e3aab80f6dd44ad1c6b53ceb85dd5bc5f | 38b4732c9b00d21718216271a2572a19ea35d25c | refs/heads/master | 2021-08-28T07:49:56.394240 | 2017-12-11T15:21:17 | 2017-12-11T15:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from django.contrib import admin
from django.template.defaultfilters import filesizeformat
from django.utils.html import format_html
from django.utils.translation import ugettext_lazy as _
from cabinet.base_admin import FileAdminBase
from cabinet.models import File
@admin.register(File)
class FileAdmin(FileAdminBase... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
da96e40b01e37315d3107d46905dbca1c84906a4 | a349c67e63c1cf8203c938ea1b1c9fa4f10252fa | /admin_back/steam/migrations/0001_initial.py | 81fb50fbfcc2c2729dfb2297e6bcc1bb755b1eee | [] | no_license | shubham2704/TopaAcademy_ | a068b45e62f857786c0aa43f6c47dfea4cdd85d0 | 859ed88489dbabebf0318a53eabe91eae80297ca | refs/heads/master | 2023-01-11T22:58:33.052314 | 2019-11-10T11:52:22 | 2019-11-10T11:52:22 | 220,782,125 | 0 | 0 | null | 2022-12-10T08:26:33 | 2019-11-10T11:45:51 | JavaScript | UTF-8 | Python | false | false | 691 | py | # Generated by Django 2.2.2 on 2019-07-03 17:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Steam',
fields=[
('id', models.AutoField(au... | [
"rs188282@gmail.com"
] | rs188282@gmail.com |
4fc23e4af088971f09b34d9af4fec8adcf08a223 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_058/ch19_2019_08_16_20_39_45_330140.py | adab61593c78e274fb4aca5ff8ea32f41ea78ff3 | [] | 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 | 172 | py | from math import sin
from math import sqrt
def calcula_distancia_do_projetil(y,v,a):
p= (v**2)/(2*9.8)
s= sqrt(1+(2*9.8*y/((v**2)*(sin(a)**2)))
t= sin(2*a)
return p*s*t | [
"you@example.com"
] | you@example.com |
33a85e4ec2754e47ca9829202bec986216389e8a | e15768382ea9553ee5a2bd708e96796b3f3275d2 | /applications/ContactStructuralMechanicsApplication/tests/SmallTests.py | 0ba9e389f7a2766f5f04022b489ec84a5a03bcf3 | [] | no_license | KratosCSIC2016/Master | 2c8edcd0c6c5745d198bede2b7e8cac6811e6ede | f15871e1830829bb41fdcb3203f4db59147bee01 | refs/heads/master | 2020-06-17T20:08:41.482931 | 2016-12-13T12:03:49 | 2016-12-13T12:03:49 | 74,974,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | import os
# Import Kratos
from KratosMultiphysics import *
# Import KratosUnittest
import KratosMultiphysics.KratosUnittest as KratosUnittest
import Kratos_Execute_Solid_Test as Execute_Test
# This utiltiy will control the execution scope in case we need to acces files or we depend
# on specific relative locations o... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
148f6a20ab8aa33250be698258046bce2d174ffb | ea9d5e38d55d7e69bcb4ae74bb3dfd3028fba4d3 | /closed/Alibaba/code/resnet50/tensorrt/ResNet50.py | 75122546670ae6df306c1587df690994bbec0d65 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ltechkorea/inference_results_v1.0 | cbe29d0f32c525b74525c1c215bf66d8385f3fd0 | 48e24f151f2625a579d34f0a721ad3698d173dbb | refs/heads/ltech | 2023-07-04T06:38:49.691181 | 2021-08-09T23:40:48 | 2021-08-10T01:33:22 | 387,295,024 | 0 | 0 | NOASSERTION | 2021-07-31T00:54:06 | 2021-07-19T00:20:19 | C++ | UTF-8 | Python | false | false | 5,029 | py | #!/usr/bin/env python3
# Copyright (c) 2021, NVIDIA CORPORATION. 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
#
# U... | [
"tjablin@google.com"
] | tjablin@google.com |
cdad24c6114bdf200c7a1307a44ec6a5fdd6ec85 | 2324d8e4544a9b813153ce0ed0f858972ea7f909 | /516-最长回文子序列.py | 0312c08a87b375e402d691bb4276da62e1ce97ac | [] | no_license | Terry-Ma/Leetcode | af8a4ad8059975f8d12b0351610336f1f5f01097 | cc7f41e2fb3ed5734c2a5af97e49a5bc17afbceb | refs/heads/master | 2021-08-10T16:40:20.482851 | 2021-07-03T08:35:56 | 2021-07-03T08:35:56 | 225,814,239 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | class Solution:
def longestPalindromeSubseq(self, s: str) -> int:
if len(s) <= 1:
return len(s)
dp = [[0] * len(s) for i in range(len(s))]
for i in range(len(s)):
dp[i][i] = 1
for i in range(len(s) - 2, -1, -1):
for j in range(i + 1, len(s)):
... | [
"rssmyq@aliyun.com"
] | rssmyq@aliyun.com |
200279fd26cc47748b2257023c7ac14a3f65119b | 91e439530dcc8dd06e999fabf46a6418b928e2a9 | /bank.py | 53fe8f991d42e21ae8ae6b5c9f1a08453a8a592e | [] | no_license | bee-san/bank | c36a59eebe10baa42981a07f8bc457cb51a92c10 | 4db116e499f8593de5150a3e668d55e25d6678fa | refs/heads/master | 2021-09-17T10:00:35.502326 | 2018-06-30T13:51:07 | 2018-06-30T13:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,986 | py | import csv
from monzo.monzo import Monzo # Import Monzo Class
class finance():
"""
** ATTRIBUTES **
- initial_take_out
how much is initially taken out of the bank account (leaving 20%)
- updated_take_Out
this is the same as initial_take_out but is updated in the program when 10% is remo... | [
"brandonskerritt51@gmail.com"
] | brandonskerritt51@gmail.com |
8bae397672f78e82110159c58eca7b50e537f310 | 34811c84cf06e5b9cd0966fb1c7847e015608a72 | /monitoreo/simas/urls.py | 87b89970ac3a6a36e37654bac7adcba9f0d98046 | [] | no_license | fitoria/MonitoreoSimas | ba6f7e13b84d180d676713e9464796305201051b | 1570701eb425ca021b1f1df5ab9fa892b62de208 | refs/heads/master | 2021-01-18T06:12:41.905008 | 2011-05-19T20:48:58 | 2011-05-19T20:48:58 | 1,243,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import os
from django.conf.urls.defaults import *
from django.conf import settings
from models import Encuesta
urlpatterns = patterns('monitoreo.simas.views',
(r'^index/$', 'inicio'),
(r'^index/ajax/organizaciones/(?P<departamento>\d+)/$', 'get_organizacion'),
(r'^index/ajax/municipio/(?P<departamento>\d+)... | [
"carcas@sacrac.info"
] | carcas@sacrac.info |
bb6d634403b1b873f897897d279b35f55ec05aa7 | e42197009793944a7d54873c71999daa787ca897 | /src/app.py | d955ebb428b52bb4e680247d49eccda612ca8153 | [
"Apache-2.0"
] | permissive | kferrone/kubernetes-webhook-examples | a686a49bb27ef9efe7b926e793623a08f2f33379 | c1a4c817badb0b410d0cc7fa57a5fd4a185f6325 | refs/heads/master | 2023-04-11T00:39:25.091165 | 2019-08-29T12:14:28 | 2019-08-29T12:14:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | import base64
import copy
import http
import json
import random
import jsonpatch
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route("/validate", methods=["POST"])
def validate():
allowed = True
try:
for container_spec in request.json["request"]["object"]["spec"]["containers"]... | [
"gareth@morethanseven.net"
] | gareth@morethanseven.net |
dc85d1535c4d5fb53bc4ac15c57457735f27d609 | 5a5f62501ac77ba50a9661ed54322748a598438a | /SUASImageParser/modules/log_parser.py | 334df75b85e39f9376f9aef9a7a6ad7bd21e379e | [
"MIT"
] | permissive | OpenGelo/SUAS-Competition | fe5b2a283eb4f7dc7be666194e7ff909e85d2d1f | 75eef01223bda382381bfe160cc2e19b022397f8 | refs/heads/master | 2021-01-20T16:21:31.305561 | 2016-05-05T14:37:16 | 2016-05-05T14:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import cv2
class PixhawkLogParser:
"""
Parses Pixhawk's logs to identify vital information to the mission.
"""
def __init__(self):
self.log = ""
def parse(self, logfile, condition_to_trigger):
"""
Parse the log files looking for the following components:
1) GPS lo... | [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
7e126dca8e793f832da0623feaad6843af2eadc2 | 7896baeb297e131bab53cfbff712d1fd77bccede | /magenta/models/image_stylization/image_stylization_train_with_mask.py | d86cf95b9e2d8fdb1b13053b4d2a451ccd5cb3b3 | [
"Apache-2.0"
] | permissive | gombru/magenta_styleTransfer | 599b85b24dd406a82df271bb769fe3dc1fa19f0b | bd41b0bf3bb18988653e4a355d95dac8632e814f | refs/heads/master | 2020-04-11T23:11:47.133793 | 2019-02-12T12:12:50 | 2019-02-12T12:12:50 | 162,159,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | # 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 required by applicable law or ag... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
e491f2bc8734c96214c5a43225e5aa586056dfbe | 2a318f4c8372c75224b2d79106ef52d8f4375e71 | /python/get_childfolders.py | 791db7a1c597c37eaff85ff6824fc483f8880fa2 | [] | no_license | keyur32/graph-snippets | 0d4bacc66b5fb0bbfddb73695fa61a5538eaf038 | e416d3ad86abdb30449325c06758e8cc6d73c137 | refs/heads/master | 2021-01-23T05:29:59.155567 | 2017-06-01T02:11:23 | 2017-06-01T02:11:23 | 92,971,791 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | import http.client
conn = http.client.HTTPSConnection("graph.microsoft.com")
conn.request("GET", "/v1.0/me/mailFolders/%7Bid%7D/childFolders")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
| [
"keyur32@hotmail.com"
] | keyur32@hotmail.com |
87fd0e1e366ef2caef73ad6ac6b0ab25bc98a9e6 | 13d93c2922005af35056d015f1ae3ebebe05ee31 | /python/oreilly/cours_python/chap04/fibo1.py | d1eeb07bc2b72494a1ed0c68ba53211f802586da | [] | no_license | scls19fr/openphysic | 647cc2cdadbdafd050d178e02bc3873bd2b07445 | 67bdb548574f4feecb99b60995238f12f4ef26da | refs/heads/master | 2021-04-30T23:16:26.197961 | 2020-11-16T20:21:17 | 2020-11-16T20:21:17 | 32,207,155 | 1 | 1 | null | null | null | null | ISO-8859-1 | Python | false | false | 551 | py | #! /usr/bin/env python
# -*- coding: Latin-1 -*-
# Premier essai de script Python
# petit programme simple affichant une suite de Fibonacci, c.à.d. une suite
# de nombres dont chaque terme est égal à la somme des deux précédents.
print "Suite de Fibonacci :"
a,b,c = 1,1,1 # a & b servent au calcul des t... | [
"s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259"
] | s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259 |
8d6ac2e0515b7df04cefef10ee64a54bfd319ad8 | 53983c1dbd4e27d918237d22287f1838ae42cc92 | /demo/plot.py | 5ac6310fad8fe1b293a3bb3c7d36e789ee28fadb | [] | no_license | xshii/MDAOXS | da5060ea6b6ac600b3b85dddbb7460f62ab4a684 | d4c54b79d7c84740bf01d8e8573e54522de2e6d0 | refs/heads/master | 2021-09-24T10:35:31.295574 | 2018-10-08T10:54:44 | 2018-10-08T10:54:44 | 108,884,304 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import numpy as np
FORCE_FILE = "/Users/gakki/Dropbox/thesis/surface_flow_sort.csv"
info = np.loadtxt(FORCE_FILE,delimiter=',',skiprows=1)
num_elements = info.__len__()
num_nodes = info.__len__()
force_dict = {}
force_dict['GLOBALIDX'] = np.array(info[:,0],dtype=int)
force_dict['X'] = info[:,1]
force_dict['Y'] = in... | [
"xshi@kth.se"
] | xshi@kth.se |
b5cbf11fb7b1ecff4f136de303477a0e972a7af8 | 00cd46c5722fbb4623d8cefc33bbce6e4c6bf970 | /Medium/70. Binary Tree Level Order Traversal II/Solution.py | 32d67bd39c759cadff9b855c310b3e12769d5848 | [
"MIT"
] | permissive | jxhangithub/lintcode | 9126d0d951cdc69cd5f061799313f1a96ffe5ab8 | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | refs/heads/master | 2022-04-02T22:02:57.515169 | 2020-02-26T21:32:02 | 2020-02-26T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param root: A tree
@return: buttom-up level order a list of lists of integer
"""
def levelOrderBottom(self, root):
# write your... | [
"nazhenye@gmail.com"
] | nazhenye@gmail.com |
dc20f889c44e724734de93e3c50622e58953615b | ead6ec54c304046e8017289ecae2acb69f2e463d | /examples/plot_expression_vs_inconsistent_splicing.py | 2cbc43e5fdf0860ab5f93a19da28d89f2488e1bd | [] | permissive | YeoLab/flotilla | 93e3576002f1b51917bc8576897d399176e1fa3a | 31da64567e59003c2b9c03fc8f4eb27ee62e299c | refs/heads/master | 2023-04-28T04:23:30.408159 | 2017-04-19T07:03:03 | 2017-04-19T07:03:03 | 19,319,564 | 104 | 27 | BSD-3-Clause | 2023-04-15T19:16:52 | 2014-04-30T16:14:31 | Jupyter Notebook | UTF-8 | Python | false | false | 308 | py | """
Show percentage of splicing events whose psi scores are inconsistent between pooled and single
==============================================================================================
"""
import flotilla
study = flotilla.embark(flotilla._shalek2013)
study.plot_expression_vs_inconsistent_splicing() | [
"olga.botvinnik@gmail.com"
] | olga.botvinnik@gmail.com |
cb1d46fd4ac57eda6a865a2a39ceb56d92a15920 | bd4dcd90d41aa228f0384c9ba03edd105a93d7ec | /checkout/migrations/0023_auto_20200306_0042.py | fb7d6f1e8c278ffe0c123a28a64a9e4eb78cd84b | [] | no_license | deganoth/mu-shop | 0be0bb0cfa635986b37edbe371daf8373f09aefd | dc1a77ecf6217286c005d762b559fe3f61ef2f6d | refs/heads/master | 2023-02-17T08:23:36.339586 | 2023-01-10T17:51:21 | 2023-01-10T17:51:21 | 243,972,792 | 0 | 1 | null | 2023-02-15T23:10:09 | 2020-02-29T13:22:02 | Python | UTF-8 | Python | false | false | 443 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-03-06 00:42
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0022_auto_20200305_2100'),
]
operations = [
migrations.RenameField(
... | [
"oliver.deegan@gmail.com"
] | oliver.deegan@gmail.com |
c097a069919c268b3216715892888aaeac7ad2c6 | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/mark_luckeroth/lesson08/mailroom/mailroom_neo4j/initial_donor_data.py | 4e5607319fe29a51cad05a59db5525a69396fd06 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 625 | py | """
Data for database initialization
"""
def get_donor_data():
"""
demonstration data
"""
donor_data = [
{
'name': 'Peter Pan',
'amount': [10., 10., 10., 10.]
},
{
'name': 'Paul Hollywood',
'amount': [5., 5000., 5., 5.]
... | [
"mluckeroth@gmail.com"
] | mluckeroth@gmail.com |
7dc55a929586528ad8c370d7547fbc9424219378 | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /client_tools/svc/mgmt_Encryption.py | 103105ba9875d2dc7422365f420a93bb88511ca6 | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 3,026 | py |
import os
import pyaes as AES
import threading
import base64
from color import p
def fast_urandom16(urandom=[], locker=threading.RLock()):
"""
this is 4x faster than calling os.urandom(16) and prevents
the "too many files open" issue with concurrent access to os.urandom()
"""
try:
return... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
769219adae4387ad2ba40f50b8ca9c1c48888478 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/296/95757/submittedfiles/testes.py | e500c6c53d33aa7c9f97e8ef4d2d530847785cdd | [] | 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 | 617 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
#ENTRADA
#n = int(input("Digite o valor de n: "))
#a = []
#for i in range(0,n,1):
# a.append(int(input('Digite um valor: ')))
#media = sum(a)/len(a)
#soma = 0
#for i in range(0,n,1):
# soma += (a[i] - media)**2
# desvio = ((1/(n-1)*soma))**0.5
#print(des... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
96bd5bd6157df167e82e703da1539aa517133836 | abe8db893dcb244a95fef47b611c4527b591eae4 | /env_log.py | 123a310207555d60a46f9dd1c4959baf54529d45 | [] | no_license | JohnMwashuma/raspberry-pi-home-automation-system | e057afa315e86c70e39ce3f0e46dc2e2e70f8ea9 | 6f889b7417c73fdbb142556d5f23083a64819bba | refs/heads/main | 2023-07-08T06:33:54.353884 | 2021-08-16T22:50:30 | 2021-08-16T22:50:30 | 396,997,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import sqlite3
import sys
import adafruit_dht
import board
import pickle
import os
import RPi.GPIO as GPIO
import time
basedir = os.path.abspath(os.path.dirname(__file__))
weather_pred_model_file = os.path.join(basedir, 'static/ml_models/weather_pred_model.pkl')
with open(weather_pred_model_file, 'rb') as file:
we... | [
"jmwashuma@live.com"
] | jmwashuma@live.com |
8050a9e913c22b8feb35fa71d990b997b2a8cf43 | 9bbb00c09aaaa19565d3fb8091af568decb5820f | /8_Introduction_To_Data_Visualization_With_Seaborn/3_Visualizing_A_Categorical_And_A_Quantitative_Variable/6_Adjusting_The_Whiskers.py | 1d4d59cccf0bb3ca2373e18884ab62c217e56e7e | [] | no_license | PeterL64/UCDDataAnalytics | 4417fdeda9c64c2f350a5ba53b2a01b4bdc36fc7 | d6ff568e966caf954323ecf641769b7c79ccb83a | refs/heads/master | 2023-06-14T04:10:41.575025 | 2021-07-07T15:23:50 | 2021-07-07T15:23:50 | 349,780,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # Adjusting the Whiskers
import matplotlib.pyplot as plt
import seaborn as sns
sns.catplot(x="romantic", y="G3",
data=student_data,
kind="box")
# Adjust the code to make the box plot whiskers to extend to 0.5 * IQR. Recall: the IQR is the interquartile range.
sns.catplot(x="romantic", y="G3",... | [
"peterlyonscbar@gmail.com"
] | peterlyonscbar@gmail.com |
2172ea23665176c578172d05c7209180cf0bda9a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/kepler_j184307+425918/sdB_kepler_j184307+425918_coadd.py | 9551f6bef545a195fef94c13c21906800ee1465f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[280.779167,42.988333], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_kepler_j184307+425918/sdB_kepler_j184307+425918_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
cb48d1aa3eea8abd662c8a3212d0cea4ee4a0e02 | 245381ad175dcc03ee0710964340eed4daa2ef85 | /accounts/all/expenses/migrations/0001_initial.py | 4bd9f71bd00c98b1fabbc6d6ba7d680a7be15c40 | [] | no_license | musabansari-1/Shagroup-erp-backend | 2c1f56f7ce5763dae668d160cdcc1a26dbc2e8d7 | 87845f11faae50301d5bb73ffa0c3ee0bed38256 | refs/heads/main | 2023-04-13T02:25:36.808755 | 2021-04-15T16:28:19 | 2021-04-15T16:28:19 | 358,324,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 3.1.2 on 2020-11-27 11:06
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AccountH... | [
"musabzahida@gmail.com"
] | musabzahida@gmail.com |
9a00bd567fb868335fe522f381502191a0a21c24 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/components/lib/fmdv/rate_limiting_mgmt.py | 81486feffc93fc8b5e7a464da6cf053afb738d39 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | import logging
import time
from pprint import pprint, pformat
from RuckusAutoTest.common.utils import *
from RuckusAutoTest.components.lib.AutoConfig import * # rarely reloading, so import *
from RuckusAutoTest.components.lib.fm.config_mapper_fm_old import map_cfg_value
# %s = 0 to 7
# 0 --> Wireless 1
# 1 --> Wirele... | [
"tan@xx.com"
] | tan@xx.com |
7ee1566109a0e1439a00b673b8094e4310cedd42 | 865bd0c84d06b53a39943dd6d71857e9cfc6d385 | /210-course-schedule-ii/course-schedule-ii.py | db96e80bd54c95cb7537ecfde09c1863953c45f2 | [] | no_license | ANDYsGUITAR/leetcode | 1fd107946f4df50cadb9bd7189b9f7b7128dc9f1 | cbca35396738f1fb750f58424b00b9f10232e574 | refs/heads/master | 2020-04-01T18:24:01.072127 | 2019-04-04T08:38:44 | 2019-04-04T08:38:44 | 153,473,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | # There are a total of n courses you have to take, labeled from 0 to n-1.
#
# Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
#
# Given the total number of courses and a list of prerequisite pairs, return the ordering of courses yo... | [
"andyandwei@163.com"
] | andyandwei@163.com |
5e527ba3ed03cb611093ea4a7ed402f680cbcf51 | d2fdd6b10b0467913971d1408a9a4053f0be9ffb | /datahub/company/migrations/0066_ch_registered_address_country_not_null.py | cf658a1cd0ef5705a3155be10c71d4023ec716e7 | [] | no_license | jakub-kozlowski/data-hub-leeloo | fc5ecebb5e4d885c824fc7c85acad8837fcc5c76 | 7f033fcbcfb2f7c1c0e10bec51620742d3d929df | refs/heads/master | 2020-05-18T13:29:14.145251 | 2019-04-30T12:12:50 | 2019-04-30T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # Generated by Django 2.1.5 on 2019-02-12 16:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('company', '0065_ch_registered_address_2_not_null'),
]
operations = [
migrations.AlterField(
mod... | [
"info@marcofucci.com"
] | info@marcofucci.com |
6f67a3c7a74f5f30b7116e81f2094dc0e086e3bc | 9aabce2e3e0f7b8050918639db14e4111de66a40 | /mains/code/main.py | c555d9e7e3671ceab6a3b406ef02c223f79d4398 | [] | no_license | LeGrosLezard/cadju | 3dd8007fa6a05c13a8d736b1929067ea775ab801 | 76d5893cdd099b7da34d551f208433072c479d70 | refs/heads/master | 2020-06-29T00:23:18.428684 | 2019-11-13T17:36:35 | 2019-11-13T17:36:35 | 200,383,501 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import cv2
import numpy as np
import csv
import os
import scipy
import sklearn
from sklearn.feature_extraction import image
from scipy.io import loadmat
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import cv2
import numpy as np
from config import model
from config import config
f... | [
"noreply@github.com"
] | LeGrosLezard.noreply@github.com |
579b7789e11594bdb660fc41763c770c4547fd2e | 90f729624737cc9700464532a0c67bcbfe718bde | /lino_xl/lib/votes/roles.py | 0576b9a664dd91b9ea3447edc05977681908fbdb | [
"AGPL-3.0-only"
] | permissive | lino-framework/xl | 46ba6dac6e36bb8e700ad07992961097bb04952f | 642b2eba63e272e56743da2d7629be3f32f670aa | refs/heads/master | 2021-05-22T09:59:22.244649 | 2021-04-12T23:45:06 | 2021-04-12T23:45:06 | 52,145,415 | 1 | 5 | BSD-2-Clause | 2021-03-17T11:20:34 | 2016-02-20T09:08:36 | Python | UTF-8 | Python | false | false | 501 | py | # Copyright 2016-2017 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
"""User roles for this plugin. """
from lino.core.roles import UserRole
class SimpleVotesUser(UserRole):
"""A user who has access to basic contacts functionality.
"""
class VotesUser(Simp... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
6b7b317bf5f3524b3b732fa3d54bbaa6be9c5b9d | 36f5ae42b7e34ddfad452200c45f367889132cbc | /accounts/migrations/0001_initial.py | caa7aef2c131306426dcdd4fde72a1e9fc670815 | [] | no_license | SqpuHkS/eCommerce_project | c17bfac40a63b8bac42e908efa1ee3215e383683 | dc31f25349044c481ffc003d574dab6bce8c222c | refs/heads/master | 2022-12-10T01:24:46.144399 | 2020-09-13T17:36:24 | 2020-09-13T17:36:24 | 260,966,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # Generated by Django 3.0.5 on 2020-08-07 14:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='GuestEmail',
fields=[
('id', models.AutoFie... | [
"kovaleksey01@gmail.com"
] | kovaleksey01@gmail.com |
5c5a1bf63e8776a081904cadab852a52397d6fdb | bc441bb06b8948288f110af63feda4e798f30225 | /topology_sdk/model/topology/link_pb2.pyi | b05c2f57e9570634dfd81450d5f5ab5a77a6ad22 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from topology_sdk.model.topology.linkStyle_pb2 ... | [
"service@easyops.cn"
] | service@easyops.cn |
33ea6da52fd684973803ad2dd1e01cc34d4b4f38 | 795b68819d51af14dfabb8dbe40c9e8153029188 | /test.py | e99fd09873fc63ba62a1705f21df709d2b20760f | [] | no_license | MotazBellah/Code-Challenge | 507f1fd3d5b3265e54905979c80d609afd81c54d | c38c95239193e26c1a88f6736d2ab9ee37185964 | refs/heads/master | 2022-02-25T02:54:10.216892 | 2022-02-19T19:28:05 | 2022-02-19T19:28:05 | 193,115,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | #!/usr/bin/env python3
import unittest
import itertools
from max_money import get_max_money
def read_input():
"""Read the input file
output: tuble (the info about the restructuring
and info about single machine and the length of restructuring data)"""
# Use with to make sure the file will be closed aft... | [
"engineer.android@yahoo.com"
] | engineer.android@yahoo.com |
cc93075d751b80d89ebf5e8b8af695e4da533b65 | 70af71ad602a8b983aae24f5df4a7040d1f7d7ab | /fabfile/fabhelper/result.py | 1dcdaa7ddea0f77b56050d07801235b432052552 | [] | no_license | suzuki-hoge/fabhelper | afd5c5f1c618dd0eb091b10a90a2b19a98472982 | eb97e3e2e4767105592910a3ccb4d9a5dc288d88 | refs/heads/master | 2021-01-01T03:43:53.658837 | 2015-03-29T06:24:36 | 2015-03-29T06:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from fabric.api import hide
from util import execute
from configure import result
def done(command, bold = False):
color = result.done
__print(color, bold, command)
def error(command, bold = False):
color = result.error
__print(color, bold, command)
def already(command, bold = False):
color = result.already
... | [
"user.ryo@gmail.com"
] | user.ryo@gmail.com |
ef7aea42c5fa7f9c5fbe860ead6ebc311dddf263 | 8066a31f8a8e7abf2bcd077eef5b6346f7c66874 | /test_scripts/GUI_test/GUI_pyqt5graph_class_test.py | ddec36eaa1d4fa2ff3d2ca38143ce7527c0a8711 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | steinnymir/RegAscope2017 | 42831893eba851ad0cc6705445629e405efe1520 | 138e11613c15cea73d73a64daed591c15303fd4d | refs/heads/master | 2021-01-20T01:53:28.278365 | 2018-08-21T14:40:22 | 2018-08-21T14:40:22 | 89,341,133 | 1 | 1 | null | 2017-05-09T10:08:23 | 2017-04-25T09:15:04 | Python | UTF-8 | Python | false | false | 3,461 | py | """
GUI graph plotting test
author: S.Y.Agustsson
"""
from PyQt5 import QtGui, QtCore, QtWidgets # (the example applies equally well to PySide)
import sys
import pyqtgraph as pg
import numpy as np
def rand(n):
data = np.random.random(n)
data[int(n*0.1):int(n*0.13)] += .5
data[int(n*0.18)] += 2
dat... | [
"sagustss@uni-mainz.de"
] | sagustss@uni-mainz.de |
dbbfad268ab0c217e2d7721ad1784c524bf85e45 | c4c0734c2ea10585e5862de8d8448df3425e8c89 | /interview_collection/crawler/interview_exp_new_coder.py | 34b6f46b012dcde01d8bb69daf579ce8b34624fa | [] | no_license | dalalsunil1986/online-judge-boosting | 19123449ed7b78d40335b3fe9fc13626a5b79b9a | 036bd382e9ace22066f7cad05fe9e7370d0fcf1b | refs/heads/master | 2022-04-15T16:32:58.189990 | 2020-04-15T17:16:57 | 2020-04-15T17:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | # encoding: utf-8
"""
@author: pkusp
@contact: pkusp@outlook.com
@version: 1.0
@file: interview_exp_new_coder.py
@time: 2019/11/24 6:20 PM
这一行开始写关于本文件的说明与解释
"""
import re
import logging
import os
from bs4 import BeautifulSoup
import bs4
import requests
ms_exp_url = '/discuss/tag/146?type=2&order=0&query=' ## type=... | [
"pkusp@outlook.com"
] | pkusp@outlook.com |
d03c1870d27e055548f8e560d73dad39e7d7237b | ba995756ff6c856abe98c387bd85ea8cfca66a74 | /medium/question17.py | 49513b1b09fa9ca8363896b41f8de933b8f6953c | [] | no_license | HarshilModi10/MCP_Competition | ae7be388c947ce0a80a84dfe4cda426060d993c5 | 646e0fe39a51a1d48a8a987435307f7cfca7938a | refs/heads/master | 2020-04-24T17:27:31.522701 | 2019-08-04T15:40:12 | 2019-08-04T15:40:12 | 172,147,919 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | class Solution(object):
def letterCombinations(self, digits):
"""
:type digits: str
:rtype: List[str]
"""
map = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl',
'6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz'}
return [a + b for a in map[digit... | [
"modih1@mcmaster.ca"
] | modih1@mcmaster.ca |
f7b3bc201a9f991db77d8d84c5b71676c73ffe6d | f58e6240965d2d3148e124dcbdcd617df879bb84 | /tensorflow_datasets/image_classification/plantae_k_test.py | e9b757eeb288bef7229ee3f471c0759f67b3eae8 | [
"Apache-2.0"
] | permissive | suvarnak/datasets | b3f5913cece5c3fe41ec0dde6401a6f37bfd9303 | 3a46548d0c8c83b2256e5abeb483137bd549a4c1 | refs/heads/master | 2022-09-27T03:38:20.430405 | 2022-07-22T15:21:33 | 2022-07-22T15:27:07 | 176,061,377 | 0 | 0 | Apache-2.0 | 2019-03-17T05:45:33 | 2019-03-17T05:45:32 | null | UTF-8 | Python | false | false | 1,475 | py | # coding=utf-8
# Copyright 2022 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7c35c58f2eb9eae4e9ce96a132bcbff67880b63e | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/1049-Last-Stone-Weight-II/1049.py | d728e7a777981aa408cabd7de388682424de0a21 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 389 | py | class Solution:
def lastStoneWeightII(self, stones: List[int]) -> int:
all_sum = sum(stones)
mem = [0]*(all_sum//2+1)
mem[0] = 1
for i in stones:
for j in range(all_sum//2, i-1, -1):
mem[j] |= mem[j - i]
for i in range(all_sum//2, -1, -1):
... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
286b923345d5064a03a8fa12f9518a40fc2944eb | 8df496a1131913d660515db3fe7372a37fb58023 | /api/users/serializers/plan_subscriptions.py | 30b23f359ca0597e82267d2816efd47c32b720d6 | [] | no_license | alexhernandez-git/freelanium | d99ff35ed3f1a4b3f0ab5cbf3bf94d0414ff33b4 | 4dea2123d92375a223dad63eb79d90084ac5b1af | refs/heads/main | 2023-04-08T15:37:12.663455 | 2021-04-05T12:33:13 | 2021-04-05T12:33:13 | 347,499,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py |
"""Users serializers."""
# Django REST Framework
from rest_framework import serializers
# Django
from django.conf import settings
from django.contrib.auth import password_validation, authenticate
from django.core.validators import RegexValidator
from django.shortcuts import get_object_or_404
# Models
... | [
"vlexhndz@gmail.com"
] | vlexhndz@gmail.com |
f6d2414e76479c560be6ec01a500aae4be5fd2b0 | 3cd9d29a607d0065cccc2a470f4bf1770b6bff9b | /reset.py | 9d0abe01cf4a257e7206c6869f002b7d228d59db | [] | no_license | Toofifty/the-great-sub | 851898cc1411a9ab78792fc5f44f08a2f5c37c2e | 6fe254191c366fd0e1fc2c41591ccdaf4a0485c3 | refs/heads/master | 2021-01-10T15:18:59.316478 | 2015-05-29T10:24:26 | 2015-05-29T10:24:26 | 36,076,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | """
Reddit '/u/sub_toppings_bot' v2.0
Subreddit reset button. Clears the entire subreddit
of submissions (posted by the bot).
Super dangerous.
@author: Toofifty
"""
import time, praw
def main():
print "\nIdentifying with Reddit...",
# Loading from plain text like a bawss
with open("creds.txt", 'r') as f... | [
"amatho250@gmail.com"
] | amatho250@gmail.com |
7e23225dbc77f5be0faada6dddeae7e98d592d56 | 9e28200b71d43de1e122a964e88f1b547bfde465 | /question_leetcode/1429_3.py | bc7115a17c8ab44a58629efdf7f6f2e2b9be4680 | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | class ListNode(object):
def __init__(self, val):
self.val = val
self.next = None
class FirstUnique(object):
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.duplicates = set()
self.dummy = ListNode(0)
self.tail = self.dummy
... | [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
351465cd5d103b3015853288b8258f66980667a7 | 6fd5d30cf21716893388442eb0f9c16e13b91315 | /ABC/126/c.py | 0dc724c417c71312c44ef93b5be6268dcf6ba8f9 | [] | no_license | mgmk2/atcoder-python | 23d45f3195977f1f5839f6a6315e19cac80da2be | beec5857a8df2957ff7b688f717d4253b4196e10 | refs/heads/master | 2021-06-09T20:00:22.500222 | 2021-05-04T15:36:39 | 2021-05-04T15:36:39 | 179,711,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | n, k = map(int, input().split())
p = 0
for i in range(1, n + 1):
pp = 1 / n
x = i
while(x < k):
x *= 2
pp *= 0.5
p += pp
print(p)
| [
"xis.t65@gmail.com"
] | xis.t65@gmail.com |
93c750e5bdabcb3777de20ca4eed00a264d0e2fe | 9848584d5f1858692fb4cdbe793bc91ed3be920e | /coding/00140-word-break-2/solution.py | 75105c1a14a80febf2af16e768ebd2d7e030105c | [] | no_license | misaka-10032/leetcode | 1212223585cc27d3dfc6d2ca6a27770f06e427e3 | 20580185c6f72f3c09a725168af48893156161f5 | refs/heads/master | 2020-12-12T09:45:31.491801 | 2020-09-14T00:18:19 | 2020-09-14T00:18:19 | 50,267,669 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | #!/usr/bin/env python3
# encoding: utf-8
from typing import List
class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> List[str]:
cache = [None for _ in range(len(s))]
# Searches all the possible sentences starting at i (aka s[i:]).
def _search(i: int) -> List[str]:
... | [
"longqicai@gmail.com"
] | longqicai@gmail.com |
9ea7ed67d3760852f9f7767573808a2a70feaed6 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/website_slides/tests/test_ui_wslides.py | 7338295a1db6623b8786633e158556134d748251 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 7,486 | py | # Part of Odoo. See LICENSE file for full copyright and licensing details.
import base64
from dateutil.relativedelta import relativedelta
from odoo import tests
from odoo.fields import Datetime
from odoo.modules.module import get_module_resource
from odoo.addons.base.tests.common import HttpCaseWithUserDemo, HttpCase... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
1097b0a0571d6e2b69a5b26de3ac21eaf5ecd112 | 95badd05be1f7e995d9108d7eaf671dad33f903c | /home/migrations/0002_customtext_homepage.py | 1afe808fb46df255a5057e30f1f4ede6e17e3776 | [] | no_license | crowdbotics-apps/test-27786 | c65ca32485fd6107030154e7587e1b14487497e0 | caa7fcd2aa40503cb815d3904c387fcaf54ce970 | refs/heads/master | 2023-05-14T19:16:06.918352 | 2021-06-07T02:24:55 | 2021-06-07T02:24:55 | 374,510,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # Generated by Django 2.2.20 on 2021-06-07 02:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_load_initial_data'),
]
operations = [
migrations.CreateModel(
name='CustomText',
f... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4528ae758d5b4d7defd06d9e176db0f4723381a0 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/avs/get_datastore.py | bd68caf5cf28a5844cf9215fd3e4d7a42d123eba | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | 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
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
d85653339ed548579ccc3ca4c68fbf947769f96d | 4e30d990963870478ed248567e432795f519e1cc | /tests/models/validators/v3_1_1/jsd_c37778a2faa5552894cc60cec13c56c7.py | 0e77d342731ea99cb71a16f2b95d3224ccf266d2 | [
"MIT"
] | permissive | CiscoISE/ciscoisesdk | 84074a57bf1042a735e3fc6eb7876555150d2b51 | f468c54998ec1ad85435ea28988922f0573bfee8 | refs/heads/main | 2023-09-04T23:56:32.232035 | 2023-08-25T17:31:49 | 2023-08-25T17:31:49 | 365,359,531 | 48 | 9 | MIT | 2023-08-25T17:31:51 | 2021-05-07T21:43:52 | Python | UTF-8 | Python | false | false | 3,817 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine getGuestSsid data model.
Copyright (c) 2021 Cisco and/or its affiliates.
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, i... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
268ed2fbcce7f04d15de4cf001dcfde0ec0d8237 | 41c64b0495902c111ab627b71a6a5e54a8e12bcf | /category/TensorFlow/scope_diff.py | ccb5d4d894f1af6c833d93ea6f7eab3f854c7b09 | [] | no_license | ZhangRui111/Rui_utils | 80c335e3fcfa8e7e88accf7af6079ed7b7b30a25 | 5e1a303cf2dab26f2ec092d0953f09354a787079 | refs/heads/master | 2021-10-08T16:03:13.636857 | 2021-10-08T05:01:20 | 2021-10-08T05:01:20 | 160,489,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | """
It is for the purpose of the variable sharing mechanism that a separate type
of scope (variable scope) was introduced.
As a result, we end up having two different types of scopes:
- name scope, created using tf.name_scope
- variable scope, created using tf.variable_scope
Both scopes have the same effect on all op... | [
"zhangruisg111@163.com"
] | zhangruisg111@163.com |
f63b3f17855c6ebe013cc3f02795411f3145f368 | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/linux/sysroot_scripts/build_and_upload.py | 8acee0223a23e771d9d50ff16b587e00632765b0 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | #!/usr/bin/env python
# Copyright 2016 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.
"""Automates running BuildPackageLists, BuildSysroot, and
UploadSysroot for each supported arch of each sysroot creator.
"""
... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
17f16c6b0242cfa8b0c0dee505972f84dcf42559 | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /508. Most Frequent Subtree Sum.py | 9e55bad2a74e8c0daa5b1a1c6df059b01657157c | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import Counter
class Solution(object):
def helper(self, root, sums):
if None == root:
return 0
s = r... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
f01985c1ec6968aaf7c366012fe7663cc0dcf5ca | 314245750f897949bc7867883d22b8ff1465fbe1 | /implement/wallInspection.py | c031862aaae80371d8d7ecb0c1912b7a1b7118f6 | [] | no_license | dongho108/CodingTestByPython | e608d70235cc6c6a27c71eea86ee28d1271d4d1d | 475b3665377a8f74944d7698e894ad3eafc49ad4 | refs/heads/master | 2023-05-24T15:01:56.563359 | 2021-07-01T14:23:20 | 2021-07-01T14:23:20 | 330,833,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | from itertools import permutations
def solution(n, weak, dist):
answer = 0
length = len(weak)
for i in range(length):
weak.append(n+weak[i])
answer = len(dist) + 1
for start in range(length): # 취약점들을 시작점으로 두려고
for friends in list(permutations(dist, len(dist))): # 모든 경우의 친구들 순서
... | [
"dongho108@naver.com"
] | dongho108@naver.com |
bdb17c8a2d12915f16193ddd1093df7f98bab53b | 4f801ddc0d7df23c2de9fcb887a4292517d9467b | /room/settings.py | cf582f25f21ab6d9121ebc01f3c43cba0db8f1b3 | [] | no_license | maxhasan882/create_game_room | c3ca78d070f1194510226358b010bf40f80ede2e | 80363eb645c31e7f52a5bbe678d71c0a90700214 | refs/heads/master | 2021-02-24T02:05:37.474817 | 2020-03-13T10:35:04 | 2020-03-13T10:35:04 | 245,417,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,468 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import queue
from datetime import timedelta
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deploym... | [
"rhmithu50@gmail.com"
] | rhmithu50@gmail.com |
8130b6dc8cd35a0f986b99d18b20afe35a90a61e | 1fd0991e163e3cbb2286a5ea30d8143a63107b8d | /fst_defs.py | 806543e8ed82a5f619fb932728d1e6e50293a0ea | [] | no_license | mnunberg/intellibak | 37d111566e015b3f143738a42e95796536d1aba0 | 79a0ce8eb76282a2079978d67ead8eb93357ae47 | refs/heads/master | 2020-05-20T23:54:10.204337 | 2011-09-15T07:43:52 | 2011-09-15T07:43:52 | 2,391,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | #!/usr/bin/env python2.6
import fscopy
import lvmnested
from fs import FSType
fst_list = []
for nval, obj in enumerate(
(("Linux", "ext[234]|jfs|reiser|xfs|jfs", fscopy.TarArchive),
("UFS_BSD", "unix fast file system", fscopy.UFSDump),
("NTFS", None, fscopy.NTFSClone),
("LVM", "lvm|lvm2", lvmnested.... | [
"mnunberg@haskalah.org"
] | mnunberg@haskalah.org |
f41a1c4f606667b441de60c227adfb91c2887858 | fdd836226529a1d0098a8dd9c2014a53e645bcc9 | /rocksdb/quizup/analysis/latency/mutant-latency-local-ssd-ebs-mag-by-sstable-otts/Conf.py | de5d933d83550e9766834e2d50b3fb3c6b1ac999 | [] | no_license | hobinyoon/mutant-misc | 41520b952964421c016d973dbd6cd29356da1f25 | b6ea031b00cda723dbd20a79884ec460c8e7c5ff | refs/heads/master | 2021-01-02T23:02:51.782760 | 2018-03-09T18:03:25 | 2018-03-09T18:03:25 | 99,450,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | import os
import yaml
class Manifest:
_doc = None
_init = False
@staticmethod
def _Init():
if Manifest._init:
return
fn_manifest = "%s/work/mutant/misc/rocksdb/log/manifest.yaml" % os.path.expanduser("~")
with open(fn_manifest, "r") as f:
Manifest._doc = yaml.load(f)
Manifest._init = True
@static... | [
"hobinyoon@gmail.com"
] | hobinyoon@gmail.com |
acee531285f3512277e5a1f525bae30cf58510c3 | 22e5656f437a32dc7f22799ed73a952b8799b40b | /utils/django/routers.py | 79714470c00a1e2f3dd39a1d6f08bd36cec90df1 | [] | no_license | smpio/python-utils | 0ffff742649368f4b0bd59c42ce80c950c132b95 | 7e159041b0203faef93f359346c553a56437d4cb | refs/heads/master | 2023-04-14T01:27:12.900232 | 2023-04-06T14:39:47 | 2023-04-06T14:39:47 | 127,027,145 | 1 | 4 | null | 2023-04-06T10:07:40 | 2018-03-27T18:08:16 | Python | UTF-8 | Python | false | false | 465 | py | from rest_framework import routers
class NoDetailTrailingSlashMixin:
def get_routes(self, viewset):
return [self._fix_route(route) for route in super().get_routes(viewset)]
@staticmethod
def _fix_route(route):
if '{lookup}' in route.url:
return route._replace(url=route.url.rep... | [
"dbashkatov@gmail.com"
] | dbashkatov@gmail.com |
7350d72cc5eaeff79fde1cade70451d9c4967c96 | 61004e474b7b2ad0071c16766f0f7874f04f9466 | /examples/python-cicd-with-cloudbuilder/my_module/my_module.py | e89f6d7695a72e218ae1ba53c5cb94576b33a3fd | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/professional-services | eb79751efae765a8c691a745e520f44f51bd715c | 0f51121b945bd74c7f667e74e8861fceda87565c | refs/heads/main | 2023-09-05T02:57:33.328973 | 2023-08-30T14:40:30 | 2023-08-30T14:40:30 | 91,730,359 | 2,626 | 1,381 | Apache-2.0 | 2023-09-14T20:13:42 | 2017-05-18T19:29:27 | Python | UTF-8 | Python | false | false | 2,580 | py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"jferriero@google.com"
] | jferriero@google.com |
71856eef1c928822337eb452b459376fa2805d37 | b0a894acdec7cee431ffe21381c4ec633900ecba | /python/responses/discount_test.py | ddd68389addfb7e7d47f1b2d963e746b94dee55e | [] | no_license | polikashechkin/discount | bca6b0f5ac9686851d3ca1bf743584c8e2cbe13c | 2141435b6eace059064fd19312f4234da0e98c7c | refs/heads/main | 2023-02-08T16:15:49.798061 | 2021-01-04T23:13:43 | 2021-01-04T23:13:43 | 326,829,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import flask, os
from domino.core import log, DOMINO_ROOT
from . import Response as BaseResponse
class Response(BaseResponse):
def __init__(self, application, request):
super().__init__(application, request)
def __call__(self):
discount_test_py = os.path.join(DOMINO_ROOT, 'products', ... | [
"polikash@gmail.com"
] | polikash@gmail.com |
3c4da521dd7d78f7569acebeff32954d90f6f598 | 27a066c48096e30e3cf4a795edf6e8387f63728b | /mysite/mzitu/views/chart.py | 5df8820510ddc9505ba2079c7e2b7c33c52c79cd | [] | no_license | 26huitailang/django-tutorial | 2712317c3f7514743e90fb4135e5fe3fed5def90 | 28a0b04ee3b9ca7e2d6e84e522047c63b0d19c8f | refs/heads/master | 2023-01-07T11:55:37.003245 | 2019-09-04T09:19:50 | 2019-09-04T09:19:50 | 113,199,279 | 1 | 0 | null | 2023-01-03T15:24:01 | 2017-12-05T15:27:52 | Python | UTF-8 | Python | false | false | 1,616 | py | # coding: utf-8
from rest_framework import status
from rest_framework.viewsets import GenericViewSet
from rest_framework.response import Response
from rest_framework.decorators import action
from mzitu.models.proxy_ip import ProxyIp
from mzitu.models.tag import Tag
from mzitu.serializers import MzituDownloadedSuiteSe... | [
"26huitailang@gmail.com"
] | 26huitailang@gmail.com |
e334daf0b31e4360e6cdf2afd408c0e88fdc5bf2 | fb4f1eb0cef8b1b3f37c5c175a64954976e8becb | /main test psp.py | a8efbaf342d0724fcc1b9ce8ccffd5f5de50aa69 | [
"MIT"
] | permissive | rtstock/rtstock4 | ccfbc7dbbe9015e12d2c96e49eb1680e720afedd | 040b3409cfb022767dde467578f359210a689512 | refs/heads/master | 2021-08-24T10:50:01.890638 | 2017-12-09T09:18:43 | 2017-12-09T09:18:43 | 113,656,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!flask/bin/python
from flask import Flask, jsonify
import pullstackedprices as psp
app = Flask(__name__)
symbols = ['MSFT','AMZN','GOOG']
fromdate,todate = '2017-09-01','2017-09-30'
df_prices = psp.stockpricesstacked(symbols,fromdate,todate)
tasks = df_prices.T.to_dict().values()
@app.route('/todo/api/v1.0/tasks', ... | [
"justin.malinchak@gmail.com"
] | justin.malinchak@gmail.com |
b299fe35884d7f09b8f4486fbc769258fc4a72a4 | 871dddb5c8059d96b767a323b0f87d3fbb62e786 | /vint/ast/plugin/scope_plugin/__init__.py | dd9e9a6f46981cf74b1053802f7605f5df0c65e4 | [
"MIT"
] | permissive | msabramo/vint | 6ef12ed61d54d0d2b2a9d1da1ce90c0e2c734ab2 | f13569f2a62ff13ff8ad913e7d6fb2c57953af20 | refs/heads/master | 2023-08-24T01:20:14.699485 | 2014-12-31T18:28:59 | 2014-12-31T18:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from vint.ast.plugin.scope_plugin.reference_reachability_tester import (
ReferenceReachabilityTester as ScopePlugin,
REACHABILITY_FLAG,
REFERECED_FLAG,
)
| [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
5d68868ce1759fe705efb235f6ff71e8dd3ce84c | a10c6356db4ca2ecc5e5701601dc5dd18e295320 | /di5tian.py | 77c2cf0a1830e81c03bd578bc53ea4e95845b19b | [] | no_license | iefan/psy_python | 56f249729c7bb14b00868e9bda551c27e3189914 | 802b513703b166f459102fd831195c75e4d179c7 | refs/heads/master | 2020-05-09T12:41:06.535332 | 2019-10-14T13:46:07 | 2019-10-14T13:46:07 | 181,119,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | def jiajianqi():
x=input()
x=int(x)
if x>100:
x-=10
if x<100:
x+=10
print(x)
def panduanshuzi():
print("请输入一个数:")
n=input()
n=int(n)
if n%2==0:
print("它是偶数。")
if n%2==1:
print("它是奇数。")
def tiaosheng():
print("请输入1分钟跳绳次数:")
n=input()
n... | [
"mybsppp@163.com"
] | mybsppp@163.com |
eda46fbebf2ccc570887262cdd4be7f03a6b6fca | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Lazymux/routersploit/tests/creds/generic/test_ssh_default.py | e1dd5e99bdd91851a9ac265bd57fc4357e3b5bab | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f4d5753ff51381be86be84ae0ce056b28916e63591642d1f56d7d50f3b0580e6
size 600
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
f7a80e7026bb2ff0a23da37c912d27b519a0ade1 | 8c1aa957a41954daac70b13f1be06df0c4046bb2 | /wagtailwebsitebuilder/multisite/migrations/0007_seosettings.py | 13df3d6c31f0eae5eaa4ef0acd8b85d72b45c46c | [] | no_license | hanztura/wagtailwebsitebuilder | 6c1a2358d53877e4f70d70e5c7c6b472fabec974 | f56d1b799f9eda53b5596ed882b60df154581cc5 | refs/heads/master | 2021-05-21T08:30:16.170885 | 2020-08-29T22:35:59 | 2020-08-29T22:35:59 | 252,619,323 | 1 | 0 | null | 2021-04-16T20:26:46 | 2020-04-03T03:01:27 | Python | UTF-8 | Python | false | false | 876 | py | # Generated by Django 2.2.12 on 2020-04-23 16:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermission'),
('multisite', '0006_sitebranding_css'),
]
operati... | [
"hanztura@github.com"
] | hanztura@github.com |
9c28185c4c4eef844bafa20c6f6a7c3e67bb12ef | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/google/trees_and_graphs/737_sentence_similarity_II.py | 4cb050c3ac8492ac926734896cc01923fc0ff951 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | from typing import List
# NlogP + P
class Solution:
def areSentencesSimilarTwo(self, words1: List[str], words2: List[str], pairs: List[List[str]]) -> bool:
if len(words1) != len(words2):
return False
parent = {}
size = {}
def find(p):
parent.setdefault(p, p... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
2adaf59542f49107aaf705211037eece8356908c | 06e1f3c6c1930e1072f4ba23b7b831b839f01863 | /apps/bot/commands/EasyCommands/Issues.py | 100feaaddffdfdbaf68ef8732631be4986edbcf5 | [
"MIT"
] | permissive | FuckBrains/petrovich | 8426a050cb9cf72d480f6113c8244dc20d9621dd | 274a0a32889726fb5db5995b865bf2a126b98779 | refs/heads/master | 2023-05-18T21:58:04.669670 | 2021-05-16T08:11:20 | 2021-05-16T08:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from apps.bot.classes.common.CommonCommand import CommonCommand
class Issues(CommonCommand):
name = "баги"
names = ["ишюс", "ишьюс", "иши"]
help_text = "список проблем"
def start(self):
return "https://github.com/Xoma163/petrovich/issues"
| [
"Xoma163rus@gmail.com"
] | Xoma163rus@gmail.com |
87fac722461a7dfc71a9030b1519b2d5f96c72ed | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/NasFPN/configs/faster_rcnn/faster_rcnn_x101_32x4d_fpn_2x_coco.py | 927609206e1323dcf1173c4a5393e3f03d534c0a | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 370 | py | _base_ = './faster_rcnn_r50_fpn_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d20611c382a270e6bedfebabc4b96fcff2d7239b | 2545624bbbf982aa6243acf8b0cb9f7eaef155d6 | /2020/round_2/pancake_2021_p_again/gen.py | 33b3cdba217ccd93bf8b8effea2925398b1b753e | [] | no_license | dprgarner/codejam | 9f420003fb48c2155bd54942803781a095e984d1 | d7e1134fe3fe850b419aa675260c4ced630731d0 | refs/heads/master | 2021-07-12T05:36:08.465603 | 2021-07-03T12:37:46 | 2021-07-03T12:37:46 | 87,791,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | cases = []
for i in range(1, 10):
for j in range(1, 10):
cases.append((i, j))
print(len(cases))
for i, j in cases:
print("{} {}".format(i, j))
| [
"dprgarner@gmail.com"
] | dprgarner@gmail.com |
8bdbc29333dfc50a656a1130f2b4d2525b0bfcd3 | bd6fd6bb82bf3179a4571c7a2ca3a030f5684c5c | /mundo1-Fundamentos/022 - Analisador de Textos.py | 424fbfc5d1608bd3da42e8531325cd47c9a2fb1b | [
"MIT"
] | permissive | jonasht/CursoEmVideo-CursoDePython3 | b3e70cea1df9f33f409c4c680761abe5e7b9e739 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | refs/heads/master | 2023-08-27T12:12:38.103023 | 2021-10-29T19:05:01 | 2021-10-29T19:05:01 | 276,724,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | nome = str(input('Nome?: ')).strip()
print('tudo maiusculo {}'.format(nome.upper()))
print('tudo minusculo {}'.format(nome.lower()))
nses = nome.replace(' ', '')
print('QTD de letras sem espaço {}'.format(len(nses)))
nd = nome.split()
qtdpn = len(nd[0])
print('QTD de letras do primeiro nome {}'.format(qtdpn)) | [
"jhenriquet@outlook.com.br"
] | jhenriquet@outlook.com.br |
053af721e4cec0a579f203ee57f45a2625da4492 | 862af34d5a1ebb3eb700e40c5877e394ee845b5f | /src/core/src/tortuga/kit/rhelOsKitOps.py | 30e23c97d265c1e3975abab78df519e6f6035d98 | [
"Apache-2.0"
] | permissive | ffxf/tortuga | 4e59617153de92cfc1a9b7bd95f8bae5ea8e1134 | a20ef7d0274be18bdaae6b9fbe879cd0473eaf1b | refs/heads/master | 2021-01-25T13:42:05.809188 | 2018-03-01T20:31:32 | 2018-03-01T20:31:32 | 123,608,729 | 0 | 0 | null | 2018-03-02T17:21:59 | 2018-03-02T17:21:59 | null | UTF-8 | Python | false | false | 3,791 | py | # Copyright 2008-2018 Univa Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"mfrisch@univa.com"
] | mfrisch@univa.com |
81198d05d7b9de729d65c4cfd9ca7322d8ce2914 | 0ba1743e9f865a023f72a14d3a5c16b99ee7f138 | /problems/test_0287_binarysearch.py | 765cd2ac10c5543cba973dcd972909865da6bf77 | [
"Unlicense"
] | permissive | chrisxue815/leetcode_python | d0a38a4168243b0628256825581a6df1b673855c | a33eb7b833f6998972e5340d383443f3a2ee64e3 | refs/heads/main | 2022-06-20T15:09:27.221807 | 2022-06-02T21:55:35 | 2022-06-02T21:55:35 | 94,590,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import unittest
class Solution:
def findDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
lo = 1
hi = len(nums) - 1
while lo <= hi:
mid = lo + ((hi - lo) >> 1)
count_smaller = 0
count_mid = 0
fo... | [
"chrisxue815@gmail.com"
] | chrisxue815@gmail.com |
0216cd791452706346a47f22e45505688ecaa1b4 | c36b0d629ef5ad6242966de7142094c9164ada5b | /trackself/urls.py | 46d20f2b04748e6ee62ec06f472aed543f00ca32 | [] | no_license | fingerecho/trackingsite | 039f340d845759d50effb7f0270b587c2897085d | fad56ba8b31233536117339a70a25617b18fe853 | refs/heads/master | 2020-04-08T01:43:39.023302 | 2018-11-24T06:03:23 | 2018-11-24T06:03:23 | 158,907,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.urls import path
from . import views
from django.contrib import admin
urlpatterns = [
path(r'admin/',admin.site.urls),
path(r'index',views.index,name='index'),
]
| [
"m13001282105@163.com"
] | m13001282105@163.com |
182370860c50efe71212fbfbb24a0f86937877ac | 943dca755b940493a8452223cfe5daa2fb4908eb | /abc263/b.py | dd46fc2c62eda6ba999865235f599fb3eb0de688 | [] | no_license | ymsk-sky/atcoder | 5e34556582763b7095a5f3a7bae18cbe5b2696b2 | 36d7841b70b521bee853cdd6d670f8e283d83e8d | refs/heads/master | 2023-08-20T01:34:16.323870 | 2023-08-13T04:49:12 | 2023-08-13T04:49:12 | 254,348,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | n = int(input())
l = list(map(int, input().split()))
p = l[-1]
ans = 0
while 1:
ans += 1
if p == 1:
break
p = l[p - 2]
print(ans)
| [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
d2613d463f09241944ccd28d5c5081addcf81b51 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2726/60770/291984.py | 9c810f3e01a258e60602e7d11959c4bfd510c69f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | def solve():
tree=input()[1:-1].split(',')
res=float('inf')
def lsonOf(fa):
fa += 1
fa *= 2
fa -= 1
if fa>=len(tree):
return -1
return fa
def rsonOf(fa):
res=lsonOf(fa) + 1
if res==0:
return -1
return res
def ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cad26ad0f638787079323346b860726624b0212d | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0692.py | 858ba66f976157debb0ff7f5e396462d417c3430 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from typing import List
import collections
class Solution:
def topKFrequent(self, words: List[str], k: int) -> List[str]:
counter = collections.Counter(words)
heap = [[-v, k] for (k, v) in counter.items()]
import heapq
heapq.heapify(heap)
return [heapq.heappop(heap)[1] for ... | [
"lih627@outlook.com"
] | lih627@outlook.com |
17d271c6a427fff9b4dfe9932c56fde042095f96 | 0bd5f9a235f1399f7daa3539ba6d1f6be7a80912 | /Documents/aoomuki competences version 3/app_competences/migrations/0001_initial.py | bcf18ba6409fd354af19ac6fcab220108ed946c9 | [] | no_license | Kamelgasmi/matrice-aoomuki-version-3 | cb71943526dcc11523ed7df0bfab5d7efb686af2 | ca6b6f582aba6e20c5726eb7a87f4555172d4020 | refs/heads/master | 2023-04-07T11:31:57.959292 | 2021-04-13T12:56:21 | 2021-04-13T12:56:21 | 357,554,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | # Generated by Django 3.1.7 on 2021-04-12 13:39
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
... | [
"kam_7@hotmail.fr"
] | kam_7@hotmail.fr |
56e2015c19dc92772cd6d0548b4d740fd39e9f45 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_058/ch78_2019_11_26_23_48_23_922955.py | 6c96774e2a01d0587cf432fa11cf584cfb020b05 | [] | 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 | 586 | py | import math
corredores = {}
x = input('Digite um nome : ')
while x != 'sair':
y = float(input('Qual sua aceleração? '))
corredores[x] = y
x = input('Digite um nome : ')
def calcula_tempo(dicionario):
tempo = {}
for k,v in dicionario.items():
Vf = math.sqrt(0**2 + 2*v*(100 - 0))
t = (Vf-0)/v
tempo[k] = t... | [
"you@example.com"
] | you@example.com |
3fd13b7132ecb66410981b9c0ade681ac6e53469 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/35/usersdata/117/13608/submittedfiles/dec2bin.py | 30109acd2c7b1f8f7145532764154498a57aa105 | [] | 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 | 265 | py | # -*- coding: utf-8 -*-
from __future__ import division
p=input('digite p:')
q=input('digite q:')
cont=0
a=p
wile p>0:
p=p//10
cont=cont+1
p=a
sub=0
while q>0:
ulti=q%(10**cont)
if ulti==p:
sub=bub+1
break
else:
q=q//10 | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e9f9cc1a0ee03e4ac6a36a4a894c784c4a493690 | ae844174eff5d14b8627ef8b32e66713f03772c8 | /Labs/Lab7/lab07files/lab7_check2.py | 80d5573f19e05584b1b05570c4c93f1f2e945988 | [] | no_license | tayloa/CSCI1100_Fall2015 | 1bd6250894083086437c7defceddacf73315b83b | 4ca1e6261e3c5d5372d3a097cb6c8601a2a8c1c6 | refs/heads/master | 2021-01-22T22:43:55.301293 | 2017-05-30T04:52:21 | 2017-05-30T04:52:21 | 92,784,700 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | def parse_line(line):
if line.count("/")<3:
return None
else:
line = line.split("/",3) #split can have a max
if (line[0].isdigit() == False) or (line[1].isdigit()==False) or (line[2].isdigit()==False):
return None
else:
line = (int(line[0]),int(line[1]),i... | [
"halfnote1004@gmail.com"
] | halfnote1004@gmail.com |
0426299a5e2bc8d83f983d588f345dc253ccb2a7 | 0e77ebcc2b72b8e1b620d916336166badd38a887 | /Python项目开发实战/第4章 创建桌面应用/4.12 存储本地数据/test_locale.py | d58d1c235c8a2c703f4ad201e6c2331c2ed2fcbc | [] | no_license | L1nwatch/Mac-Python-3.X | ce70f2c3691a73db9256bcf47510c415d68591f0 | 73022b40d26ad09051329ae7ff8aae7201d8de6d | refs/heads/master | 2022-08-08T20:59:58.041245 | 2022-08-07T14:41:39 | 2022-08-07T14:41:39 | 50,715,245 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #!/bin/env python3
# -*- coding: utf-8 -*-
# version: Python3.X
''' Mac OS X 10.10 Python3.4.4下测试locale
'''
__author__ = '__L1n__w@tch'
import locale as loc
import time
def main():
# 在不同会话中重复这些操作会看到一些差别,系统非常清楚地指定了不同的区域.货币使用了合适的符号
# 并且日期和时间与UK版本有很大的区别.
print(loc.setlocale(loc.LC_ALL, ""))
# print(loc.... | [
"490772448@qq.com"
] | 490772448@qq.com |
c9bd445000a1cf3113f03ab73d9ab5e2fae14d37 | f0eadce9fa0a2cc0dc4cbe2f534df8952bb97c66 | /torchvision/prototype/models/quantization/inception.py | e9f48d097f69d12a2e0bf9c505328bde80a5ce40 | [
"BSD-3-Clause"
] | permissive | Hsuxu/vision | e78ea6bfbc8aa50c56573b467939e86df0138d07 | 8d3fb3455d5e1acb0fed412ece913b73774fbca4 | refs/heads/master | 2022-12-02T05:35:54.121664 | 2021-12-20T12:06:53 | 2021-12-20T12:06:53 | 215,186,338 | 1 | 0 | BSD-3-Clause | 2019-10-15T02:18:27 | 2019-10-15T02:18:27 | null | UTF-8 | Python | false | false | 2,937 | py | from functools import partial
from typing import Any, Optional, Union
from torchvision.prototype.transforms import ImageNetEval
from torchvision.transforms.functional import InterpolationMode
from ....models.quantization.inception import (
QuantizableInception3,
_replace_relu,
quantize_model,
)
from .._ap... | [
"noreply@github.com"
] | Hsuxu.noreply@github.com |
f90d35587b9d175438dbef49cecb78e821bd4444 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/Stripe/RetrieveInvoiceItem.py | 172fd56db2ed79b938b7e3caa824b0c46b744c8b | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py |
###############################################################################
#
# RetrieveInvoiceItem
# Retrieves invoice items with a specified id.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temboo.... | [
"miriam@famulus"
] | miriam@famulus |
785a58526be736640a04656184c4044f41773f12 | bae5f696b76af428fb5555c147c4f1bcff1bb62e | /metalearn/metalearn/components/__init__.py | b92fcf251dc0446ca613d9c05a62233e48318bb2 | [
"MIT"
] | permissive | cosmicBboy/ml-research | 1e309f881f9810e7a82a262d625db5d684752705 | 04fd31f68e7a44152caf6eaaf66ab59f136dd8f5 | refs/heads/master | 2021-01-24T09:58:25.662826 | 2020-08-10T22:08:23 | 2020-08-10T22:08:23 | 123,030,133 | 8 | 4 | MIT | 2019-06-29T20:13:37 | 2018-02-26T21:03:02 | Jupyter Notebook | UTF-8 | Python | false | false | 331 | py | from .. import ignore_warnings
from . import (
algorithm_component, classifiers, constants, data_preprocessors,
feature_preprocessors, hyperparameter, regressors)
__all__ = [
algorithm_component,
classifiers,
constants,
data_preprocessors,
feature_preprocessors,
hyperparameter,
reg... | [
"niels.bantilan@gmail.com"
] | niels.bantilan@gmail.com |
75cf07e523193c41c942da387d214a49e9496885 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /uS8tMvEyvTXD88wps_18.py | 37c9907328e853b8866b8e881a203640fea172f4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | """
Write a function that takes a string of one or more words as an argument and
returns the same string, but with all five or more letter words reversed.
Strings passed in will consist of only letters and spaces. Spaces will be
included only when more than one word is present.
### Examples
reverse("Reverse") ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6f3b3d341b798c8f51760663f81a43fb115bcb36 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2614/60654/288271.py | 7e91ab794edd7b4d263d9d979428fe5efdf5fda9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | a = int(input())
for i in range(a):
a1 = int(input())
b = list(map(int,input().split()))
c = list(map(int, input().split()))
d = list(map(int, input().split()))
for j in range(a1):
if b[j]-c[j] in d:
print(d.index(b[j]-c[j])) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
095e9c57f0e4181ee8a24b0683e0a1e5f1714b67 | 20a53d9a52f839ddec0cacff6ac12b63626c9548 | /phonopy/cui/collect_cell_info.py | 54e27b00ff106c1b0effd776a0e271eba6706872 | [] | permissive | ntq1982/phonopy | 339c6756c38cd7301167fc26fa117afdf1343b90 | fc73c9ba8815180bff8428174495c157d9444c68 | refs/heads/master | 2021-09-25T01:00:58.826347 | 2021-09-15T07:50:17 | 2021-09-15T07:50:17 | 238,440,992 | 0 | 0 | BSD-3-Clause | 2020-02-05T12:06:21 | 2020-02-05T12:06:20 | null | UTF-8 | Python | false | false | 5,759 | py | # Copyright (C) 2018 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notic... | [
"atz.togo@gmail.com"
] | atz.togo@gmail.com |
8b141305bed2823096e4588e17ad9b7156da71df | 4a5ddb5fe1e1d532c9b6a4bb8b6f708bb548b60a | /scripts/elasticsearch-administer.py | 8bcad199ffaa57a3435785b5bea1c8fb589fb65b | [] | no_license | saketkanth/commcare-hq | 526ce305717e12f7b72d6484bfd15c2a6038aaff | 6d3eb1a0e70cc2a59a82ec5bba12170387803150 | refs/heads/master | 2021-01-18T02:08:41.430694 | 2016-06-14T15:19:10 | 2016-06-14T15:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | #!/usr/bin/env python
"""
Utilities for administering elasticsearch
These can be run locally when connected to the VPN
"""
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from collections import namedtuple
import json
import sys
from elasticsearch import Elasticsearch
from elasticsearch.client import... | [
"esoergel@gmail.com"
] | esoergel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.