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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f71cc94f36ef33894211800b575ba93635c1aa98 | d9d0d3a82d5ba4016097491c276409b9b1ea778a | /Kattis/herman.py | 5fa957e3de8b390189011b0ba1c15357ab4f87a0 | [
"MIT"
] | permissive | ruidazeng/online-judge | 311b9f2c3120b47da91da2d404e2ea1d9a2a24dd | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | refs/heads/master | 2022-02-16T00:35:11.852600 | 2022-01-26T02:28:53 | 2022-01-26T02:28:53 | 191,827,952 | 0 | 1 | MIT | 2019-07-31T10:25:36 | 2019-06-13T20:21:18 | Python | UTF-8 | Python | false | false | 289 | py | import math
r = int(input())
euclid_area = math.pi * (r ** 2)
# A "circle" in taxicab geometry is essentially
# a square in Euclidean geoemtry due to the difference
# in the definition of distance between two points.
taxicab_area = 2.0 * (r ** 2)
print(euclid_area)
print(taxicab_area) | [
"ruida.zeng@vanderbilt.edu"
] | ruida.zeng@vanderbilt.edu |
c44fe85c55066d0cbe2c3bf9275386756e8aebd3 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/business/door_company/fact_teacher_house/company_kid/head/city.py | 103c52e2e03469c909fa9df81062a0203586b728 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,019 | py | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
// Install Newtonsoft.Json with NuGet
using Newtonsoft.Json;
namespace TranslationService.Controllers
{
public class Translate
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
da5b358ab0c841e5d291990f66e96b87d35a0939 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02793/s337460286.py | ff9425501f83e0dd33b0725197a63bf00ddc5dcc | [] | 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 | 993 | py | import sys,math,collections,itertools
input = sys.stdin.readline
m=10**9+7
"""nを素因数分解"""
"""2以上の整数n => [[素因数, 指数], ...]の2次元リスト"""
def factorization(n):
arr = []
temp = n
i=2
if temp%i==0:
cnt=0
while temp%i==0:
cnt+=1
temp //= i
arr.append([i, cnt])
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ee447baa97770ee3b32bf098d9231801ca357018 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/572937405.py | 48d92720d2c0f9a1dcc5ee63e4113c8312743378 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 4,135 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 572937405
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 4, 4, 6)
assert board is... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
368b3b764b6f5aba6e63d1981d0e141083dadc21 | 24977a5bff7b2d8a13796c3dee703afb46bda3d5 | /IntroductionToPythonAndProgrammingBasic-Cisco-master/contents/programs/b.py | e8696e1c591cd7fcac6b27cbc0f488c59a7ada32 | [] | no_license | chunche95/ProgramacionModernaPython | 139699fd35923406b5cf92d65465738a5ae1d423 | 9da99388e73c29c021a0637be7ac74c6926f0ceb | refs/heads/master | 2023-05-09T18:37:27.845901 | 2021-02-28T11:39:53 | 2021-02-28T11:39:53 | 185,662,309 | 3 | 0 | null | 2023-05-02T18:56:10 | 2019-05-08T18:49:17 | Jupyter Notebook | UTF-8 | Python | false | false | 140 | py | #!/bin/python
import os
os.system('clear')
os.system('cls')
# @author: [ Paulino Bermúdez R.]
# @Description:
import a
print("b", end="") | [
"paeste95.pb@gmail.com"
] | paeste95.pb@gmail.com |
c2e0c3f75022ea775768cd7dc379a6aea1365518 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210829231956.py | 05f1be7428d3da016f5ac83191bd8314adfe5124 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | # class Empresa:
# def __init__(self,nom="",ruc=0,dir="",tele=0,ciud="",tipEmpr=""):#3
# self.nombre=nom
# self.ruc=ruc
# self.direccion=dir
# self.telefono=tele
# self.ciudad=ciud
# self.tipoEmpresa=tipEmpr
# def datosEmpresa(self):#3
# self.nombre=input... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
e5edcd6641fb3ac587c00cfbc0fbf94247a0a12a | fbf4f26a2b97d4fe35aa7b66e9cfed4cd0224e89 | /manage.py | 3f91665a15966e4664745d3ef4f63275ef43e0b7 | [] | no_license | metagenlab/chlamdb | a100ab93407e15c33684b8d7175873adc6720d0b | f1829cf19ac1ded032d65689fbbff2d37489f739 | refs/heads/master | 2023-03-07T05:30:02.793914 | 2023-03-02T10:30:57 | 2023-03-02T10:30:57 | 179,291,344 | 6 | 1 | null | 2022-11-01T07:01:54 | 2019-04-03T13:02:40 | HTML | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/env python
import os
import sys
import django
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
38918cff7cfb75e6163b72ec20fce5f920a5a4da | 93c22f53bc7ce33a4384c53f02988e6c9ccd86c9 | /numpy_slicingellipsis.py | b22e528184f6a603fca2703559c8947d2f7e52d2 | [
"Apache-2.0"
] | permissive | Kalpavrikshika/python_modules | a5ce678b58f94d32274846811388d991c281d4d3 | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | refs/heads/master | 2020-03-08T02:23:08.650248 | 2018-06-28T07:38:01 | 2018-06-28T07:38:01 | 127,858,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import numpy as numpy
a = numpy.array([[1,2,3],[3,4,5],[4,5,6]])
print ('Our array is:')
print (a)
print ('\n')
print ('The items in the second column are:')
print (a[...,1])
print ('\n')
print ('The items in the second row are:')
print (a[1,...])
print ('\n')
print('The items column 1 onwards are:')
print (a[...,1... | [
"vrikshikakalpa@gmail.com"
] | vrikshikakalpa@gmail.com |
2c68b236b9aec710cf208dfdad12660bd3df7d91 | 789bc5ded26f44d999ce968f2c422b3ed09e732b | /palm/forward_calculator.py | 53122d16d0c11af6c469edaa21dfdfdee7e23794 | [] | no_license | milapour/palm | 36346974eabcaf2098f7a6523661b33d08e51d04 | 53cfce67f6621795ca419a79bd91c9ecf02cc93f | refs/heads/master | 2020-04-20T20:07:52.869832 | 2013-07-29T17:28:36 | 2013-07-29T17:28:36 | 11,798,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | import numpy
from palm.linalg import asym_vector_matrix_product, vector_matrix_product
class ForwardCalculator(object):
"""
Computes the product of a vector, a matrix exponential, and a matrix.
Parameters
----------
expm_calculator : object
A matrix exponential calculator object.
"""
... | [
"grollins@gmail.com"
] | grollins@gmail.com |
851afe4265a379a56c76cf0fe6aa15f0e4ed6d3f | bad44a92fb338260f9c077689d7fa5472526c3fe | /src/tools/nnfusion/extensions/Slice | c05167b345ec0f70e453d550633d81e621d363ae | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/nnfusion | ebc4c06331b8e93dbf5e176e5ecd3382e322ff21 | bd4f6feed217a43c9ee9be16f02fa8529953579a | refs/heads/main | 2023-08-25T17:41:37.517769 | 2022-09-16T05:59:01 | 2022-09-16T05:59:01 | 252,069,995 | 872 | 157 | MIT | 2023-07-19T03:06:21 | 2020-04-01T04:15:38 | C++ | UTF-8 | Python | false | false | 912 | #!/usr/bin/env python3
import sys, json
op_v2 = json.loads(sys.argv[1])
inputs, config = op_v2["input_dict"], op_v2["config"]
output_name = op_v2["output_name"]
where_range = [x for x in inputs[0]["shape"]]
in_items, out_items = [f'N{i}' for i in range(len(where_range))], [f'N{i}' for i in range(len(where_range))]
for ... | [
"noreply@github.com"
] | microsoft.noreply@github.com | |
aed841c32afaa6eafa4c7083e100989bca185c50 | cd78d84441e69c1fc40b6a6e9e235e7cf6882454 | /python/50.pow_x_n.py | 2ab6e62dd4db24d1087af0461ecb1b1df42d4586 | [] | no_license | buy/leetcode | 53a12d4e0298284a5a2034c88353d0dc195aa66c | da0e834e3f2e3016396fffc96ef943ab9ec58ea4 | refs/heads/master | 2021-01-13T01:48:01.176632 | 2015-06-14T06:17:17 | 2015-06-14T06:17:17 | 31,863,627 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Implement pow(x, n).
class Solution:
# @param {float} x
# @param {integer} n
# @return {float}
def myPow(self, x, n):
if n < 0:
return 1 / self.pow(x, -n)
else:
return self.pow(x, n)
def pow(self, x, n):
if n == 0:
return 1
tem... | [
"cliu@groupon.com"
] | cliu@groupon.com |
94c3a2b2eb7b0692bbf9d993d15c0dbdb784cb41 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/cnos/test_cnos_facts.py | a2ffac88c8ce6a65e4cbe10796b1c79bcc90402e | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,407 | py | # (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible 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 License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
d56703b06dc4c97c15a72905438a6ee4cd84a1b0 | e217f190b316071ca83892c9e25385d69f5bb22f | /pytext/models/test/module_test.py | 0c49f42d8f81e19f572b032f0716d2c2e1e2ea02 | [
"BSD-3-Clause"
] | permissive | VonRosenchild/pytext | 49bb2ef3fce3f23ac66b7dd061f133fd4f49e618 | 97f0d503a354a536bbd9ef8913bed5155d3801de | refs/heads/master | 2020-06-29T09:30:14.583895 | 2019-08-03T01:09:20 | 2019-08-03T01:12:29 | 200,499,490 | 1 | 1 | NOASSERTION | 2019-08-04T13:58:53 | 2019-08-04T13:58:52 | null | UTF-8 | Python | false | false | 1,856 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
from pytext.config.component import create_model
from pytext.config.field_config import DictFeatConfig, FeatureConfig, WordFeatConfig
from pytext.data import CommonMetadata
from pytext.fields import FieldMeta... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
103e7732421b4b1e2352733db2f516d13d4b357e | e982ad81d18e3a983756b4c90311b007b9d5e276 | /pyspec/embedded/setting.py | 30e78e1f8366237d3f2f851f13481c90b0877d32 | [
"MIT"
] | permissive | jyotijaya/pyspec | 2ca4428c3c9924154f7467edbdc1d8fddd59a817 | ae7a4de39beb3cf2e0838b6c3a9ef73d082445eb | refs/heads/master | 2022-12-27T20:42:15.818388 | 2020-10-01T11:50:19 | 2020-10-01T11:50:19 | 300,260,536 | 0 | 0 | NOASSERTION | 2020-10-01T11:49:40 | 2020-10-01T11:49:39 | null | UTF-8 | Python | false | false | 6,121 | py | # -*- coding: ascii -*-
"""
"""
import os
import imp
import sys
import copy
import pickle
import string
import languages.en
class PySpecFrameworkOption(object):
def __init__(self):
#: This option controls pre post conditions
self.dbc_prepost_option = False
#: This option controls invaria... | [
"yoshiki@shibu.jp"
] | yoshiki@shibu.jp |
73197a59e1409a5a86c88fb246e7e0fb008d1601 | 17a842ef4d894e80cdb0fafc79a9eabfe240e469 | /test_realizar_dump.py | bc44075cdb0ce2693fd89baaeaebc63fa0cac2f4 | [] | no_license | HuayraLinux/huayra-visor-manual | 89f13482475813aed32146506da17e8147e3e40d | c3049c795bc19ac7cd284ebb12a4defbf51007fa | refs/heads/master | 2020-04-06T03:33:44.653826 | 2017-05-26T14:53:27 | 2017-05-26T14:53:27 | 14,371,449 | 0 | 3 | null | 2013-11-21T19:07:25 | 2013-11-13T17:43:48 | JavaScript | UTF-8 | Python | false | false | 4,040 | py | # -*- encoding: utf-8 -*-
import unittest
from reducir_dump import *
class Test(unittest.TestCase):
def testPuedeEliminarSrcset(self):
texto_de_prueba = """
<div id="contentSub"></div>
<!-- start content -->
<div id="mw-content-text" lang="e... | [
"hugoruscitti@gmail.com"
] | hugoruscitti@gmail.com |
ebf332c577a9547998468167164745c87520ecc0 | 3e807408d8e27e763d356509a158ed924015feec | /test_trained_nn.py | 2df7573982152a5aa170a0f0e4f99ce6026f36c8 | [] | no_license | atulkumar03/learn-midi | 04b3c3b73354d1c647156359c7ce19198d450c67 | f9c5705bdea738eac4cbf1871cc20f54aa5d80df | refs/heads/master | 2021-05-27T01:38:16.056445 | 2011-06-16T18:06:01 | 2011-06-16T18:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/python
from decode import *
from soundutils import *
import sys
def origRawPcm():
if len(sys.argv) > 1:
midifile = sys.argv[1]
else:
midifile = sample_mid_file
midievents = midi_to_midievents(midifile)
rawpcm = midievents_to_rawpcm(midievents)
return streamcopy(rawpcm)
import pickle
import trai... | [
"albert.zeyer@rwth-aachen.de"
] | albert.zeyer@rwth-aachen.de |
e4d5507042e9ae046e42ba17b5f81204172bd6d2 | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Green_06/day_7_quiz_2.py | fa80aa8161cd5f2f5201fc7bbb4d7e1db8787e92 | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | a = str(input())
count = 0
for i in range(len(a)):
s = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
for j in s:
if j in a[i]:
count += 1
print(count) | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
33a070a8eed15d52a4f20f51e5755a7626ab36ca | 83c1071a8c1ceb7311dd553a0ac5cdfd7cc56c62 | /ch1/bannergrab/bannergrab.py | 38b05a480563c0d358a1bee9fa604c7ad8476a37 | [] | no_license | macduff23/violentpython | 88cd6ddd15a1bcc090ef89bf80e0b44abd9ea28b | 34f791629c35f0e9da523cb702acb821d44c791c | refs/heads/master | 2021-06-15T09:25:33.522617 | 2017-03-17T05:26:49 | 2017-03-17T05:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | #first we import the socket module. This makes the toolset available to the script.
import socket
#Now we use the module.function() syntax.
#Here, we use the socket modules setdefaulttimeout functionality to set a timeout to 2 seconds
# if it doesnt work in 2 seconds, we abort.
socket.setdefaulttimeout(2)
#Now we ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a3eac4383bffdbdea91374221a19aa7f5f1de8cb | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab9/set 2/MATTHEW E BARFIELD_19360_assignsubmission_file_Lab 9/Lab 9/Simple.py | 718088005b135ed46bd4a760cf8dc2413bb30245 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | class Simple:
def __init__(self, i):
self.i = i
def double(self):
self.i = self.i + self.i
s1 = Simple(4)
for i in range(4):
s1.double()
print s1.i
s2 = Simple("Hello")
s2.double(); s2.double()
print s2.i
s2.i = 100
print s2.i | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
f2bb0250c292ed38923169a6e701e908771be698 | df0fcac76d3c48ca8e90d1ab67fccfc161795133 | /tests/test_catalog/test_course.py | 5de5e8b46e249fa562ee692ff8837af1f7ec87a9 | [
"MIT"
] | permissive | galvezz/udacity-api-python | 7ebc21bdd2fbe539115c0fc21f8450cb5108a121 | e128a7757a59d3124e935bc07b0014bcd3d73a2a | refs/heads/master | 2021-01-18T08:32:31.778137 | 2015-02-17T20:28:22 | 2015-02-17T20:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from nose.tools import *
import udacity
def test_cs101():
'''Tests Catalog.course('cs101').'''
catalog = udacity.Catalog()
assert type(catalog.course('cs101')) is dict
assert len(catalog.course('cs101')) == 29
assert catalog.course('cs101').get('key') == 'cs101'
def test_invalid():
'''Tests... | [
"tylucaskelley@gmail.com"
] | tylucaskelley@gmail.com |
251f685d33388a12442e9b633f962d9450ef6839 | b68fea9d645de59ee31da970d3dc435460fde9de | /encode_decode.py | 088aa9aad89ce5edc3ab6adb8f9b5b61b414bbda | [
"BSD-3-Clause"
] | permissive | shagun30/djambala-2 | 03fde4d1a5b2a17fce1b44f63a489c30d0d9c028 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | refs/heads/master | 2021-01-10T04:20:30.735479 | 2008-05-22T05:02:08 | 2008-05-22T05:02:08 | 54,959,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | #-*-coding: utf-8 -*-
"""
/dms/encode_decode.py
.. enthaelt Routinen zum Kodieren und Dekodieren von HTML/Umlauten
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst werden.
0.01 04.05.... | [
"hans.rauch@gmx.net"
] | hans.rauch@gmx.net |
c4e45bae58c24906da8111d0c021e2d06e6f70fa | 18783303fec404a4386c8ed0a8b8737c1424eadd | /Py exercises/My code/GettingWeatherFrom680.py | fd79dbb500bd1eb3bc8d0111b7973f6e8108ecf3 | [
"MIT"
] | permissive | arvindkarir/python-pandas-code | a5b23b724c387d5ff745e017f968681847c506ad | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | refs/heads/master | 2020-08-13T02:05:16.469398 | 2019-10-23T02:18:10 | 2019-10-23T02:18:10 | 214,887,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 29 13:58:02 2017
First attempt at scraping some data from a website
@author: User
"""
import re
from urllib.request import urlopen
from bs4 import BeautifulSoup
URL = "http://www.680news.com/weather/"
soup = BeautifulSoup(urlopen(URL), "lxml")
find_string = so... | [
"arvindkarir@gmail.com"
] | arvindkarir@gmail.com |
ef8c12463077485f4404a60fecaedcc811d04082 | b64fcb9da80d12c52bd24a7a1b046ed9952b0026 | /tests/core/middleware/test_name_to_address_middleware.py | dbdc3ce0d47c93d356e857fe9c981593ca25bf02 | [
"MIT"
] | permissive | PlatONnetwork/client-sdk-python | e59f44a77690806c8763ed6db938ed8447d42417 | 94ad57bb34b5ee7bb314ac858071686382c55402 | refs/heads/master | 2022-07-09T08:49:07.312759 | 2021-12-24T08:15:46 | 2021-12-24T08:15:46 | 173,032,954 | 7 | 16 | MIT | 2022-08-31T02:19:42 | 2019-02-28T03:18:03 | Python | UTF-8 | Python | false | false | 1,578 | py | import pytest
from client_sdk_python import Web3
from client_sdk_python.exceptions import (
InvalidAddress,
)
from client_sdk_python.middleware import ( # noqa: F401
construct_fixture_middleware,
name_to_address_middleware,
)
from client_sdk_python.providers.base import (
BaseProvider,
)
NAME = "dump... | [
"hietel366435@163.com"
] | hietel366435@163.com |
46413a3cd83988b25be326eed8fc19f2562b4bd0 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.FUV/Sun-ExtA_16/pdf_to_json_test_Latn.FUV_Sun-ExtA_16.py | d92e457170940b391563c6b875300db7faba38a6 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.FUV/Sun-ExtA_16/udhr_Latn.FUV_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
1e3c6718d5c157f3ce5603480abe4843fc9b2e03 | 0ced2772b02e46991c1347fdd430ee0be8c1bb2b | /test_scribbles/network_operation_brian.py | 43b9d4185827dd3510f4c199ee6d5f3f7364c898 | [] | no_license | ab3nd/NeuronRobotInterface | 771f8de2b7963f500a4ba1667539e1ff02f2582b | 330b13d26cade9370818b79663c34918522d4a8d | refs/heads/master | 2021-01-21T01:44:42.802964 | 2014-06-03T20:56:38 | 2014-06-03T20:56:38 | 62,169,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/python
#Mostly from http://briansimulator.org/demo/
from brian import *
from brian.network import network_operation
@network_operation
def printMessage():
print "LOL MESSAGE"
# Network parameters
N = 5000
Vr = 10 * mV
theta = 20 * mV
tau = 20 * ms
delta = 2 * ms
taurefr = 2 * ms
duration = .1 * second
... | [
"orphrey@gmail.com"
] | orphrey@gmail.com |
a627df1e5e3fe0c18e7b0d27c7864d8051ed444a | 54f63580a298ffa63520771c734f5b6dd15894bc | /HackerRank/Practice/Classes/Class2_Find_the_Torsional_Angle.py | 6274987604f8d9533a5ec112a938d931579603df | [] | no_license | CKMaxwell/Python_online_challenge | 048d24128b588d1af3db03379fb462cf7ea908a9 | f13444612d93cf98aff760a6ff01d82a18082725 | refs/heads/master | 2023-01-03T20:19:27.001425 | 2020-10-26T18:25:07 | 2020-10-26T18:25:07 | 287,968,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # 20200810 - Class 2 - Find the Torsional Angle
import math
class Points(object):
def __init__(self, x, y, z):
def __sub__(self, no):
def dot(self, no):
def cross(self, no):
def absolute(self):
return pow((self.x ** 2 + self.y ** 2 + self.z ** 2), 0.5)
if __name__ == '__main__':
... | [
"39400519+CKMaxwell@users.noreply.github.com"
] | 39400519+CKMaxwell@users.noreply.github.com |
7dd982c68e4454b13ea009acab248c4aa8e815fb | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/Google/Calendar/RefreshToken.py | a544c66b72f2150a6479a517ad05605318d46cf6 | [] | 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,902 | py |
###############################################################################
#
# RefreshToken
# Retrieves a new access token when the provided access token is expired.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chore... | [
"miriam@famulus"
] | miriam@famulus |
24d174ae8982ce5a51bdcacdf7022c2da8a4398c | b8fe7c1769a274964d289d05c1594f2d9f702560 | /build/mav_msgs/catkin_generated/pkg.installspace.context.pc.py | e595b6688d319eff79b0a7f779f093cc1a081f5a | [] | no_license | amilearning/mavros_ws | f3f19c98562cb6fab00e3735b5798dc8fc65652f | b822676abb0a36fe34f7e4064a162db0ddd75fe5 | refs/heads/master | 2023-06-30T08:27:45.134723 | 2021-07-16T06:52:35 | 2021-07-16T06:52:35 | 386,538,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;geometry_msgs;trajectory_msgs".replace(';',... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
3bf82816bf13799c38f73053050a0bcab654da2f | 8bd7bbad6003ef476bcccc2c40109ec838834975 | /backend/home/management/commands/load_initial_data.py | 23454c568507cf1b9d0f1c226833f5ad27b3c7fb | [] | no_license | crowdbotics-apps/kindnessmatters-3687 | 631d6cb89abe88a85b60d0a5660a151b1eda7d81 | 6bf8e7c3d0c296c28550bc9c3faa680fbb2513ae | refs/heads/master | 2020-05-26T01:36:22.258764 | 2019-05-22T15:08:41 | 2019-05-22T15:08:41 | 188,062,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">kindnessmatters_3687</h1>
<p class="lead">
This is the sample application created and deployed from the crowdboti... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
38e28268e60305f43bc66f243da9fa3cb4b54ecd | bf411cd2356ea9294d45a3b220f966418949e68a | /gitman/tests/test_common.py | bf10dc2ae3853a25c4b77f92a78874f7d5cc1214 | [
"MIT"
] | permissive | jacebrowning/gitman | 30abfaa557f61e0b1387e1afa0d34bf21076f1a5 | 19166000f3706b459936c1721299ffb70718d815 | refs/heads/main | 2023-08-29T14:47:46.205739 | 2023-07-25T22:15:17 | 2023-07-25T22:15:17 | 30,629,582 | 155 | 38 | MIT | 2023-08-13T19:38:27 | 2015-02-11T03:55:12 | Python | UTF-8 | Python | false | false | 3,047 | py | # pylint: disable=attribute-defined-outside-init
# pylint: disable=unused-variable,expression-not-assigned
from unittest.mock import Mock, call
from expecter import expect
from gitman import common
from gitman.common import _Config
class TestShowConsole:
def setup_method(self, _):
_Config.indent_level ... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
e85547e92310d76ee64b06376527937f96924b55 | 15b3a875414814653524ccb04dc4657f52a4fbef | /src/Read.py | 4aa3862766e55c63d95cd3269069ac8b3917dbaa | [
"BSD-3-Clause"
] | permissive | dendisuhubdy/neural_sound_generation | 93a814eac5f853f92d8aebbab06801d39e0effb2 | 2a5a5c4e92fdeb7e96fc626deacbce819e18462d | refs/heads/master | 2020-04-01T08:02:03.772165 | 2018-11-14T01:59:19 | 2018-11-14T01:59:33 | 153,014,574 | 1 | 1 | BSD-3-Clause | 2019-12-09T07:05:06 | 2018-10-14T20:11:46 | C++ | UTF-8 | Python | false | false | 6,784 | py | ################################################################################
# Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. #
# Leap Motion proprietary and confidential. Not for distribution. #
# Use subject to the terms of the Leap Motion SDK Agreement available at ... | [
"suhubdyd@iro.umontreal.ca"
] | suhubdyd@iro.umontreal.ca |
27154921e692e796ece49adb3f04de13bf3d3c6c | b486fb94c06e09167ec97e68964a2cdfc00a3f34 | /tests/test_get_caller_name.py | daf9e4836c8c72aabdd22838723c4f98abf74940 | [] | no_license | frossie-shadow/utils | 97afb1c07ee45c60deab24b6a2d1b65ce61d9b93 | b7ca535d296da14be4b24e30b13e92d04b1455b5 | refs/heads/master | 2021-01-19T17:49:56.347112 | 2017-08-17T20:09:21 | 2017-08-17T20:09:21 | 35,149,421 | 0 | 0 | null | 2015-05-06T08:58:53 | 2015-05-06T08:58:53 | null | UTF-8 | Python | false | false | 2,457 | py | #
# LSST Data Management System
# Copyright 2016 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# 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 Softwar... | [
"rowen@uw.edu"
] | rowen@uw.edu |
21ed0e4fedf40d6b13b39a5443138abf2a1941bd | f15893b2d1c102635f0d89327efc270ef25792f9 | /src/test/pop.py | 2171dd2a438273652a76f1f562eb7dba88699a3a | [
"MIT"
] | permissive | codacy-badger/neworder | 3944c328dfac83501a67829864cdadd1a72f1fbf | 451420836c53c620de8b2187bf534ca71ed9977f | refs/heads/master | 2020-06-01T04:12:59.593653 | 2019-06-06T12:58:34 | 2019-06-06T12:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py |
DEPRECATED
import collections
#import numpy as np
import pandas as pd
import neworder as no
Person = collections.namedtuple('Person', ['id', 'location', 'age', 'gender', 'ethnicity'])
class Population:
def __init__(self):
self.data = [ Person(id=0, age=30, gender='male', location="E09000001", ethnicity=1), \... | [
"a.p.smith@leeds.ac.uk"
] | a.p.smith@leeds.ac.uk |
7d51e5ae70021cf0854a70c49705d060dbcba7c3 | 873a385d1ef1ae2fe0159904952464005ec0408f | /tests/contact/ellipsoids.dp.py | 878b2fb689b2a106ac42ef016f6a62eb6fefd76a | [
"MIT"
] | permissive | drwanghan/Mirheo | 09144ee2a374963244dc48d5a4e9d18cfc048ce6 | 83c081746ed062db9f59c9731d07271fb7b99c79 | refs/heads/master | 2022-11-20T01:44:59.669641 | 2020-07-17T15:13:50 | 2020-07-17T15:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | #!/usr/bin/env python
import mirheo as mir
import numpy as np
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--density', type=float)
parser.add_argument('--axes', type=float, nargs=3)
parser.add_argument('--coords', type=str)
parser.add_argument('--bounce_back', action='store_tru... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
daaf3366b38a9ce1e2f927f5583332f66944b081 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210414094552.py | 56f9ee24e552a5c4bab362cfbbc441a758ccf85f | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
for f in Path('/Users/Natalie/Desktop/cs1430/CV-final-project/data/test').glob('*.jpg'):
try:
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
70bdaaeb04442722a3052262eb15a5cd2b4bb44b | 5a9d8c64c6478f3816b63f59f1cdaca73c0848eb | /Small_Project/learn_matplotlib/plt1.py | 9d4f7beaab5e40386467b53032b74f4ce6b7f00b | [] | no_license | wangredfei/nt_py | f68134977e6d1e05cf17cec727644509f084c462 | fedf03c0d52565f588e9b342d1c51df0b6dc2681 | refs/heads/master | 2020-04-08T07:55:08.302589 | 2018-11-23T09:53:48 | 2018-11-23T09:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | import matplotlib.pyplot as plt
input_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
# 绘制图形
plt.plot(input_values,squares,linewidth=5)
plt.title("Square Numbers", fontsize = 24)
plt.xlabel("Value", fontsize = 14)
plt.ylabel("Square of Value", fontsize = 14)
# 设置刻度
plt.tick_params(axis='both',labelsize=14)
plt... | [
"289498360@qq.com"
] | 289498360@qq.com |
388832d51f21359fdd1bbaefc3e509a363e80b65 | 8d2be474d04876c9c4a030586e1699be80d9f383 | /fs_ops/dev/what_age_does.py | 66084d31d4a548c881c4e2775d077c0a75178e4d | [] | no_license | MatteoLacki/fs_ops | 3db426fc64dc503a39ce42bef594a3d55ea6dcff | 1e158d29cf9e191c802cd55ea9585d5fb0c7b9d7 | refs/heads/master | 2021-08-08T20:13:10.882180 | 2021-01-14T14:52:19 | 2021-01-14T14:52:19 | 240,224,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from pathlib import Path
from fs_ops.utils import age
import os
path = Path('C:/Projects/tests/test.txt')
with open(path, 'w') as f:
f.write('Hello World')
age(path, 's')
age(path.parent, 's')
with open(path, 'a') as f:
f.write('Good bye')
age(path, 's', os.path.getmtime)
| [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
290bcf7994c9deecb73688a2cecc73d9cf76dd14 | 594b5152cfc6774282aa7be589e200bedaba5400 | /ietf/release/urls.py | 0f86ddad1e1d53c995dcfe5621285b7d93653c22 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wpjesus/codematch | a3adaae02ed848e24058c818bc847eab824e8f23 | 5af455fbe6b0c7e60b8af360718345ba044597a4 | refs/heads/master | 2021-04-12T04:10:10.423230 | 2016-12-21T14:39:18 | 2016-12-21T14:39:18 | 35,008,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django.conf.urls import patterns
from django.views.generic import TemplateView
urlpatterns = patterns('',
(r'^$', 'ietf.release.views.release'),
(r'^(?P<version>[0-9.]+.*)/$', 'ietf.release.views.release'),
(r'^about/?$', TemplateView.as_view(template_name='release/about.html')),
(r'^todo/?$', ... | [
"wanderson.paim@gmail.com"
] | wanderson.paim@gmail.com |
1b5096461c30c8aa3cf77283a7391055b0e22282 | 888f629be95c177a92d295b9e7fe3a65da769cb0 | /ScrapyRedisTest/settings.py | ab44401d096f43ee1b1e96d6cec035cb6b839a84 | [] | no_license | nanmuyao/scrapy-redis | 4b912138164445c4f35cc653fdb1fd417f77ef27 | cacb899dee8578e213b6d6987d5dc1e6b6590c97 | refs/heads/master | 2020-03-18T11:32:37.765698 | 2018-06-25T08:34:38 | 2018-06-25T08:34:38 | 134,677,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,234 | py | # -*- coding: utf-8 -*-
# Scrapy settings for ScrapyRedisTest project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/late... | [
"1558249222han@gmail.com"
] | 1558249222han@gmail.com |
5af19bb4f714459d58638824b26c1a741e8e1e96 | a1029b1f6957aabe74806f576eb6776198bcc338 | /meiju/meijumi.py | e2f18a9af8872820b699e3d20fa7c9c2bfc5421e | [] | no_license | wwq0327/pytoy | 5d03669cc99b01bf4e08ee467dba829dffbeecc8 | 8bb3115c0e3fd16823de69a84b6dcbfbc5380a57 | refs/heads/master | 2020-05-24T13:33:22.574559 | 2014-11-12T11:40:57 | 2014-11-12T11:40:57 | 19,447,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# wwq @ 2013-09-29 21:26:23
import re
import sys
import optparse
import datetime
import requests
reload(sys)
sys.setdefaultencoding('utf-8')
URL = 'http://www.yyets.com/tv/schedule'
class MeiJuMi:
def __init__(self, url):
self.url = url
def month_end_d... | [
"wwq0327@gmail.com"
] | wwq0327@gmail.com |
187774acb0c9d8c2be39ca71cc520f5cce9f531b | 47ae5c98b44385caa0bbf759c947b1b3661d33f3 | /wagtail_graphql/types/pages.py | 985d277efb7c9e29960bf92bfa06400682a08033 | [
"BSD-3-Clause"
] | permissive | timonweb-forks/wagtail-graphql-api | ebe850b5b4ae9616904e1f43f1caa0931316c20c | d9e20bae95539cacd71556bc87a29aec5e166999 | refs/heads/master | 2022-01-27T14:03:57.968434 | 2019-07-10T21:43:44 | 2019-07-10T21:43:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | from django.utils.translation import ugettext_lazy as _
from wagtail.core.models import Page
import graphene
from wagtail_graphql.types.base import create_model_type
from wagtail_graphql.types.structures import QuerySetList
from wagtail_graphql.utils import get_base_queryset_for_page_model_or_qs
def create_page_ty... | [
"hi@tmkn.org"
] | hi@tmkn.org |
7d34bf72fc7bf51b8ee6e67236f7c86defd5af7b | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/23-08-21_20210912091013.py | b1b7b20a4e9ce741125389dc9e456749d0a5c8ef | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | class Empresa:
def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"):
self.nombre=nom
self.ruc=ruc
self.telefono=tel
self.direccion=dir
def mostrarEmpresa(self):
print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc))
clas... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
aaa8f35bdd837a6a55a5d29a589bb1e5a49419dc | d873f3e6c322c930068711e795bfc635ed98fd6a | /mainapp/model/OrderDetail.py | 226715cc099f1b865231b19e59b9b52401e17e00 | [] | no_license | trunganhvu/personalweb | 3d912366045448b20ec9b7722e9190197cef4f61 | b7afc1a32665e578cbd546b1d2c375597b060914 | refs/heads/master | 2023-08-18T04:30:40.302843 | 2021-09-30T15:46:24 | 2021-09-30T15:46:24 | 401,062,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from django.db import models
from mainapp.model.Order import Order
from mainapp.model.ProductDetail import ProductDetail
class OrderDetail(models.Model):
"""
trunganhvu 2021/08/29
"""
order_detail_id = models.AutoField(primary_key=True)
order_id = models.ForeignKey(Order, on_delete=models.CASCADE)
... | [
"vutrunganh1@gmail.com"
] | vutrunganh1@gmail.com |
ae7fad766cabbea84042d786003f2e25e7093966 | c0dab4c3f949b09044b8731d19c1c3cb82abc9ae | /airmozilla/base/youtube.py | 924f4477fb8dda9c71d9098a7b5e16e71e90a2a4 | [] | no_license | mudithkr/airmozilla | 274d64464ca24ed9c0f8d805fdf9233cdf2fed22 | 5e78ebd28c678dabf54d471aab2b31fd742d4205 | refs/heads/master | 2020-04-05T23:12:44.840465 | 2016-02-04T19:07:23 | 2016-02-04T19:07:23 | 45,274,575 | 1 | 0 | null | 2015-10-30T20:19:54 | 2015-10-30T20:19:54 | null | UTF-8 | Python | false | false | 3,599 | py | import os
import re
import cgi
import urlparse
import requests
from apiclient.discovery import build
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
class VideoNotFound(Exception):
"""when the ID leads to ... | [
"mail@peterbe.com"
] | mail@peterbe.com |
647f28117b05e4c614d616d698738d5afae76dd5 | 40804cfe754f4a0c99055e81966367f5a8641fac | /binary_tree_serialization.py | 7e5cca9b459328bc9c2915a5751de5756e376d0e | [] | no_license | raochuan/LintCodeInPython | a3731b9a14c623278c8170fedd7be85fd7acfbfb | e57869437287bcc7619411f9d3d965a83e2bfacb | refs/heads/master | 2021-01-17T23:57:47.709879 | 2016-08-02T07:21:36 | 2016-08-02T07:21:36 | 64,736,138 | 1 | 0 | null | 2016-08-02T07:48:56 | 2016-08-02T07:48:54 | Python | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*-
class Solution:
'''
@param root: An object of TreeNode, denote the root of the binary tree.
This method will be invoked first, you should design your own algorithm
to serialize a binary tree which denote by a root node to a string which
can be easily deserialized by your o... | [
"linying_43151@163.com"
] | linying_43151@163.com |
109da33ce3c02540d57130182f6a13acaac42db4 | 07d46b5d7b09558ef9faf84e889df177a7c838ff | /esp32/uwebsockets/client.py | 6808d3f79836d082874924e0c5e680131416331d | [] | no_license | gpspelle/django | 4b520fc55e7bdce5d445fd6cc6928f6c0d3e41cb | 5e9cf446a233dfe4637f830021e8592b8d7dfb4e | refs/heads/master | 2022-01-18T07:55:48.111498 | 2020-05-05T13:48:08 | 2020-05-05T13:48:08 | 243,100,309 | 0 | 0 | null | 2022-01-06T22:51:31 | 2020-02-25T20:53:43 | Python | UTF-8 | Python | false | false | 2,190 | py | """
Websockets client for micropython
Based very heavily off
https://github.com/aaugustin/websockets/blob/master/websockets/client.py
"""
import usocket as socket
import ubinascii as binascii
import urandom as random
import ussl
from .protocol import Websocket, urlparse
if __debug__:
try:
import logging... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
427e129ab785aa2fe02d35ea354a5301595027f8 | 193e23056ce7ad8adc36e44057a9348bbbc3ad76 | /speech2image/SemEmbedding/image_annotate.py | c08576af0aa903fdd2068a17b03961d2375b86f7 | [] | no_license | JSALT-Rosetta/jsalt-rosetta-2017 | 4a3600ce20c0992218b882f55bde220f90081833 | a7be64a0b483c44ff0cf42fb080235013df73b4e | refs/heads/master | 2021-03-22T05:22:43.493382 | 2017-06-23T01:10:00 | 2017-06-23T01:10:00 | 92,210,215 | 0 | 0 | null | 2017-06-21T21:11:51 | 2017-05-23T19:12:07 | null | UTF-8 | Python | false | false | 6,109 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import sys
import os
import tensorflow as tf
#from scnn_test import *
# This script retrieves the top n images with highest similarity scores for a given speech
def read_file_list(n):
# Read a dict from index to filename for both image and ca... | [
"lwang114@illinois.edu"
] | lwang114@illinois.edu |
71d1a623dba45a8ed1febe059ecab30bcd8e9383 | 356b7cc54ca5993d36f3ee8491c32262cdd103ba | /Examples/saliency_blob.py | cc16593af8a04f7f282c2596b351931b25651fcc | [] | no_license | lws803/threshold_cv | 83eda7eed122f0527fbdc97b61df24e080a275f5 | f3834164c56d95400f57701e4615fcb4766996ae | refs/heads/master | 2020-03-24T15:17:06.929900 | 2018-10-01T11:38:26 | 2018-10-01T11:38:26 | 142,785,548 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | import cv2
import numpy as np
import math
import requests
import io
from utils.algorithms import norm_illum_color, MovingMedian, shadegrey_lab, power_law, get_salient, sharpen, grayworld, get_salient_lab
import sys
# Usage
# python master_threshold.py <FILENAME>
# adjust slider in treshold bar to tune thresholding
# ... | [
"lws803@gmail.com"
] | lws803@gmail.com |
712d794a98f09b0fa13b40d0279cc9a5b1ccde9b | bfd5d16aeb3ef1a864a14c6eca1733d9a36f9ab7 | /users/migrations/0001_initial.py | 60490720887ef30908c790b29c822cf637f251a2 | [] | no_license | Code-Institute-Submissions/dennyshow-milestone-project4-2 | c0a6e554dc270f9bdcf3e760baff0ae25f58e7e6 | a4144b9ccf8133c5852c44773aab6ba549218950 | refs/heads/master | 2023-08-08T20:45:13.877914 | 2020-01-11T23:19:00 | 2020-01-11T23:19:00 | 233,587,461 | 0 | 0 | null | 2023-07-25T15:41:56 | 2020-01-13T12:10:49 | Python | UTF-8 | Python | false | false | 871 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-06 20:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations... | [
"ec2-user@ip-172-31-47-222.ec2.internal"
] | ec2-user@ip-172-31-47-222.ec2.internal |
b78e0b9d9dcff5bf18323c1d9ef742ebc8b726fb | 95cac77d39b7b9cac5186b743fef587946c8bad7 | /Day01-15/Day11.py | 5f8ceaf398392e6a3dbec9f91a4ab461718326ef | [] | no_license | Asunqingwen/Python100days | 7f882bc58ec2bb6fcb0438a142e949554b7098c0 | bb19365405ebc9abb2f8492cd1e7d8c194e1c909 | refs/heads/master | 2020-05-22T05:45:28.913279 | 2019-05-22T10:22:44 | 2019-05-22T10:22:44 | 186,240,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from math import sqrt
def is_prime(n):
'''判断素数的函数'''
assert n > 0
for factor in range(2, int(sqrt(n)) + 1):
if n % factor == 0:
return False
return True if n != 1 else False
def main():
filenames = ('a.txt', 'b.txt', 'c.txt')
fs_list = []
try:
for filename in filenames:
fs_list.append(open(filename... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
3f7e778d6a6393652b17e533af5fc50b87bb2362 | c2a496fd00d85be4ee33406b916a553b03d7e976 | /settings.py | 14314576a495a5ceffcb5158fbf966bd7b439eb0 | [] | no_license | thanhlt998/themeforest_template_crawler | 7ddc46b38708e8ecf1eb01ffa5b3c939b15c3d25 | 9dcf5a1371984d4d52d5bf503f502893e73f0676 | refs/heads/master | 2022-12-28T02:16:41.573779 | 2020-10-04T19:42:51 | 2020-10-04T19:42:51 | 301,212,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | SETTINGS = {
'LOG_FILE': 'log/crawler.log',
'ITEM_PIPELINES': {
# 'scrapy.pipelines.images.ImagesPipeline': 300,
'pipelines.MyFilesPipeline': 300,
},
'DEPTH_PRIORITY': 1,
# 'CONCURRENT_REQUESTS': 1,
# 'CONCURRENT_REQUESTS_PER_DOMAIN': 1,
'LOG_LEVEL': 'INFO',
'HTTPERROR_... | [
"thanhlt998@gmail.com"
] | thanhlt998@gmail.com |
c4b55b20c4536651df2593f4619007a3868da590 | 6fb91acc154bb7b931f4e8841c445aa85f84ded8 | /jubakit/test/loader/test_csv.py | df51e395619bea60e003503db2ea7775a8d6680f | [
"MIT"
] | permissive | kmaehashi/jubakit | 6d90634e9791b0593a2e9e13a94931e6bc37de3f | 51847a6922be7cd8308a139a08fb73bb723f2918 | refs/heads/master | 2020-12-09T01:07:39.770500 | 2016-07-25T06:56:56 | 2016-07-25T06:56:56 | 55,938,248 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from unittest import TestCase
from tempfile import NamedTemporaryFile as TempFile
from jubakit.loader.csv import CSVLoader
class CSVLoaderTest(TestCase):
def test_simple(self):
with TempFile() as f:
... | [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
9cc055b1a832e2d84d042fac512966875dc92f3c | a908a9f1f6028fe78a5b23621dff4b8fa7047414 | /flatmap_lv5/record_evaluate_ppo_lstm.py | 08bef48b76b6839d2f33a1b18331faa36011f1c2 | [] | no_license | ViZDoomBot/stable-baselines-agent | 502edd5e64c45a6adbe073a22e477b0e41ac213d | a76c1c3449dab518462f6a7bc2a0dcb668f08b77 | refs/heads/main | 2023-04-27T14:45:27.389418 | 2021-05-05T06:54:51 | 2021-05-05T06:54:51 | 340,531,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : record_evaluate_ppo_lstm.py.py
# @Author: harry
# @Date : 3/15/21 5:29 PM
# @Desc : Evaluate and record a video
import sys
import os
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
... | [
"zhouziqun@cool2645.com"
] | zhouziqun@cool2645.com |
5204518deaf01d292d096c9c9acddc42f025ae15 | 6ff1c4a6ba35d1775d4aa2ec72462331fd09b4c4 | /course1/week6/knapsack.py | 04d7c645a402eb9139f90d89c56746a30af68d62 | [] | no_license | MohamedFawzy/Data-Structures-And-Algorithms-Specialization | eb9bfd66e94a95b3b357f77df8863eb585d1cf13 | a57953b831e80cdb15ffd0984f3f3a3e7b80d657 | refs/heads/master | 2020-03-15T05:49:36.261276 | 2019-01-20T12:33:48 | 2019-01-20T12:33:48 | 131,995,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Uses python2
import sys
import numpy as np
def optimal_weight(W, w,n):
# write your code here
matrix = np.zeros(shape=(len(w), W + 1), dtype=int)
for j in range(0, len(w)):
for i in range(1, W + 1):
if w[j] > i:
matrix[j, i] = matrix[j - 1, i]
else:
... | [
"mfawzy22@gmail.com"
] | mfawzy22@gmail.com |
859c615806c5a45a9331c0b1e2a23f4491624ebd | 63e658a984fe2f0ba8429370ac6ced15f1dddad4 | /파이썬라이브러리를활용한머신러닝 20181117/p087_logistic regression.py | 51248532579b1384b46fc416c3829af7f08583be | [] | no_license | gema0000/kerasStudy | dcb727046311a6098a4f2922caa4223eafc9b8d2 | 5473481745c0ac1cf8cd0f36c5c15a6afbc8633f | refs/heads/master | 2020-04-01T02:35:44.158484 | 2019-09-26T16:11:11 | 2019-09-26T16:11:11 | 152,786,145 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
import matplotlib.pyplot as plt
import numpy as np
import mglearn
################# matplotlib 한글 구현 #############################
from matplotlib import font_manager,... | [
"gema0000@naver.com"
] | gema0000@naver.com |
c4ced0940fe1c048776229a628c5df146ac1d8bd | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/pandas/tests/series/test_period.py | 41c31ae551274dbd22d7973f12e5641b376dcbfb | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Period, Series, period_range
from pandas.core.arrays import PeriodArray
class TestSeriesPeriod:
def setup_method(self, method):
self.series = Series(period_range("2000-01-01", periods=10, freq="... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
c45099df85fb6db4e20c09e177ace4803e281e41 | f41c6554420d342b74b0d793063b50452f695a60 | /bookorbooks/quiz/admin.py | d3e3b8d97124cde9239d0c9290a1ca153d986691 | [
"MIT"
] | permissive | talhakoylu/BookOrBooks | 167c91c5caf6366d06dc6878597ffbe50631e39a | abdb979b61d01710f30d85ed2fe5b49599866a40 | refs/heads/main | 2023-08-03T11:22:57.851556 | 2021-08-17T18:13:06 | 2021-08-17T18:13:06 | 385,674,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,097 | py | from quiz.models.taking_quiz_answer_model import TakingQuizAnswer
from quiz.models.taking_quiz_model import TakingQuiz
from quiz.models.answer_model import Answer
from quiz.models.question_model import Question
from django.contrib import admin
from quiz.models import Quiz
from django import forms
from constants.quiz_st... | [
"ahmettalha.net@gmail.com"
] | ahmettalha.net@gmail.com |
8953f4d2b61e49f4071fd9e8692d62abd7c2beda | f7a252b63b16a8f21d6921fd1f5c20075fec4cc9 | /helpers/hadoop/wikipedia/data/convert-outlinks.py | 27e92ca70778a046a63f94000c288859f572b3d0 | [] | no_license | zymITsky/twittomatic | 5803b4c2db5f3c0ee1b65af86171b2c5f9b2c797 | 396c0800b594a85fbcb54e772b3bc60837ed3eab | refs/heads/master | 2020-06-01T10:44:38.887254 | 2013-02-14T20:28:17 | 2013-02-14T20:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import sys
import json
for line in sys.stdin:
src = json.loads(line)
src_id = src['id']
for dst in src['links']:
print "%d\t%d" % (src_id, dst['id'])
| [
"stack.box@gmail.com"
] | stack.box@gmail.com |
14cc7f8784884c7533dea528ebc70ff6f3335286 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_infatuation.py | 1c57392882046bf2e61fa761c8ceaee5acdc1b28 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
#calss header
class _INFATUATION():
def __init__(self,):
self.name = "INFATUATION"
self.definitions = [u'strong but not usually lasting feelings of love or attraction: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
05823453af6f31f6e8c7fce6908898811393c050 | fbcf396625e2e07ea0d9cbadf8b65abd055acdc0 | /2018/day_3/puzzle_1.py | ae46469e235ead13d033d2eb5119fe5cdd04ede9 | [] | no_license | XinnuoXu/AdventofCode | 8a1cbcb94f2c540ccf3f42ed343d47317aafaa99 | a5e32d3ff31da9f46e7a947420dffefe05a53d48 | refs/heads/master | 2021-06-21T09:22:33.244345 | 2020-12-27T13:03:09 | 2020-12-27T13:03:09 | 160,044,653 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #coding=utf8
import re
pattern = re.compile(r'\#(?P<ID>\d+) @ (?P<fleft>\d+),(?P<ftop>\d+): (?P<wide>\d+)x(?P<tall>\d+)')
if __name__ == '__main__':
# Initialization
fabric = [[0 for i in range(1000)] for j in range(1000)]
# Processing
for line in open("test.txt"):
m = pattern.match(line.strip... | [
"xuxinnuo@yahoo.com"
] | xuxinnuo@yahoo.com |
f1cd0e215d3400580655df6e4bfeb22febd48c69 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_78/237.py | 203726d07914677d6e46de18a0dffc0d17c56bb0 | [] | 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 | 1,087 | py | from re import *
from sys import stderr
def readint():
return int(raw_input())
def readfloat():
return float(raw_input())
def readarray(N, foo=raw_input):
return [foo() for i in xrange(N)]
def readlinearray(foo=int):
return map(foo, raw_input().split())
def NOD(a, b):
while b:
a,b = b, a%b
return a
def gen_p... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1a8dc09825167575e62eb542cb360441b750e38e | 6eda28491dd2c00e2ed913d13e3a8d313a8b1201 | /tests/test_module.py | 120a5af28a1d5f2e9ad5ba7f49e127e4298f58b9 | [
"MIT"
] | permissive | basilfx/haystack-queryparser | 1a7e4c31ef3a7985c3f080f5ef39eaa13bbf4903 | 690c3945d13a12ad6700aefc1ce8916a385ed067 | refs/heads/master | 2023-03-18T14:07:00.740619 | 2017-08-01T17:18:30 | 2017-08-01T17:18:30 | 99,020,304 | 0 | 0 | null | 2017-08-01T16:11:07 | 2017-08-01T16:11:07 | null | UTF-8 | Python | false | false | 3,591 | py | from haystack_queryparser import ParseSQ
from haystack.query import SQ
import unittest
class HaystackQueryparserTest(unittest.TestCase):
"""
Testing common search query syntax.
"""
def test_parse(self):
testcase = {
"note": str(SQ(content="note")),
'"need note"': str... | [
"basstottelaar@gmail.com"
] | basstottelaar@gmail.com |
111a040063c179a8dda86d0872cce09fdb13c793 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/arm/checks/resource/PostgreSQLServerSSLEnforcementEnabled.py | 1a77232e405c55f1db5b4c645dcd7d4fb21787f2 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 810 | py | from typing import Any
from checkov.arm.base_resource_value_check import BaseResourceValueCheck
from checkov.common.models.enums import CheckCategories
class PostgreSQLServerSSLEnforcementEnabled(BaseResourceValueCheck):
def __init__(self) -> None:
name = "Ensure 'Enforce SSL connection' is set to 'ENABL... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
626246945773a553435d5e511d5911eb2f982ed6 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_update_account_feed_response_wrapper.py | b09cce9d196920d5a1dc017e47a33d7939a80f92 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,117 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.accountfeed.model.update_account_feed_response_wrapper_body import UpdateAccountFeedResponseWrapperBody
from baiduads.common.model.api_resp... | [
"yangxp@YangxpdeMacBook-Pro.local"
] | yangxp@YangxpdeMacBook-Pro.local |
b9896eddf7b087561dbaacfdef5a87957dfa5d3f | cc3f02a20be883424ecd140d20e721932eddfe4c | /VFPix/FullSimStudies/test/vfpixAnalyzer_cfg.py | 68ce15024e0ade0047c681a877559976cac4597c | [] | no_license | lsoffi/DelphesForFPix | 71eb72b88a623620fc8ec037db583c51f77e4c5e | 3ea05da2a420d3e79a87910d162bec193a28454e | refs/heads/master | 2021-01-10T07:41:22.565503 | 2016-01-20T15:56:24 | 2016-01-20T15:56:24 | 50,033,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,515 | py | 0;115;0cimport FWCore.ParameterSet.Config as cms
import sys
import math
import VFPix.FullSimStudies.fileNames_cfg as fileNames
jobNumber = int (sys.argv[2])
nJobs = int (sys.argv[3])
scenario = sys.argv[4]
files = []
outputFile = ""
if scenario == "noTrkExt":
files = fileNames.noTrkExt
outputFile = "vbfHToTauTau... | [
"livia.soffi@cern.ch"
] | livia.soffi@cern.ch |
82ecee9e15d9bd20a78c68ea97d77b379bb8038f | 763a50af0ba1254c00421bf36ae579c66fdb9b9e | /train.py | 8cc015ab18dc47982f054bbe7ab9807441181941 | [
"MIT"
] | permissive | smsharma/mining-for-substructure-lens | b6ae3e3ebd34eef9ed0a0633020116e00184104e | 8f432b58cecdafd70054fa63f285f3f284fa0720 | refs/heads/master | 2020-04-17T20:02:42.024537 | 2019-10-17T20:01:19 | 2019-10-17T20:01:19 | 166,888,944 | 25 | 11 | MIT | 2019-10-17T14:20:01 | 2019-01-21T22:23:07 | TeX | UTF-8 | Python | false | false | 6,010 | py | #! /usr/bin/env python
from __future__ import absolute_import, division, print_function, unicode_literals
import sys, os
sys.path.append("./")
import logging
import argparse
import numpy as np
from inference.estimator import ParameterizedRatioEstimator
from inference.utils import load_and_check
def train(
me... | [
"mail@johannbrehmer.de"
] | mail@johannbrehmer.de |
843416a0bf4f489188bdb894ae9794634cf8a895 | f45cc0049cd6c3a2b25de0e9bbc80c25c113a356 | /LeetCode/股票购买专题/714. 买卖股票的最佳时机含手续费.py | 6f267e4dfa7112443ddf1cdb8546876c2537fdea | [] | no_license | yiming1012/MyLeetCode | 4a387d024969bfd1cdccd4f581051a6e4104891a | e43ee86c5a8cdb808da09b4b6138e10275abadb5 | refs/heads/master | 2023-06-17T06:43:13.854862 | 2021-07-15T08:54:07 | 2021-07-15T08:54:07 | 261,663,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | """
给定一个整数数组 prices,其中第 i 个元素代表了第 i 天的股票价格 ;非负整数 fee 代表了交易股票的手续费用。
你可以无限次地完成交易,但是你每笔交易都需要付手续费。如果你已经购买了一个股票,在卖出它之前你就不能再继续购买股票了。
返回获得利润的最大值。
注意:这里的一笔交易指买入持有并卖出股票的整个过程,每笔交易你只需要为支付一次手续费。
示例 1:
输入: prices = [1, 3, 2, 8, 4, 9], fee = 2
输出: 8
解释: 能够达到的最大利润:
在此处买入 prices[0] = 1
在此处卖出 prices[3] = 8
在此处买入 prices[4] = 4
在此处卖... | [
"1129079384@qq.com"
] | 1129079384@qq.com |
e2c145aae0ba4fe6fdca3d8da13e434fd3c51a66 | 55668bc4e19fd9aa3caa4395add2fe73741eb844 | /131/main.py | a9f5a233bbfea2b324616ca257e09a952c87d372 | [
"MIT"
] | permissive | pauvrepetit/leetcode | cb8674e10b0dc6beb29e9b64a49bede857b889fd | 2fda37371f1c5afcab80214580e8e5fd72b48a3b | refs/heads/master | 2023-08-30T07:39:08.982036 | 2023-08-25T08:52:57 | 2023-08-25T08:52:57 | 151,678,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # 131. 分割回文串
#
# 20210730
# huao
# 就硬递归
from typing import List
class Solution:
def check(self, s: str) -> bool:
return s == s[::-1]
def partition(self, s: str) -> List[List[str]]:
if len(s) == 1:
return [[s]]
res = []
if self.check(s):
res = [[s]]
... | [
"hu__ao@outlook.com"
] | hu__ao@outlook.com |
77493f2f817af8741fe8adf428e0d2a93ddfb801 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/meta/FortSettingsVacationPopoverMeta.py | 39cfae8290fe2190ab9daf163e1d994028a7baa1 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,246 | py | # 2016.11.19 19:51:24 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FortSettingsVacationPopoverMeta.py
from gui.Scaleform.daapi.view.lobby.popover.SmartPopOverView import SmartPopOverView
class FortSettingsVacationPopoverMeta(SmartPopOverView):
"""
DO NOT MODIFY!... | [
"info@webium.sk"
] | info@webium.sk |
9776272fbe6a313eecdc3bfdd82d0bc8be207820 | c001d8cff7e634bfa19d682ccdcf5261bc7bf397 | /ambiente/models.py | 1a541de9040469f8284beeef6ecd30cf07b6861c | [] | no_license | yusnelvy/mtvmcotizacionv02 | 4053a6883519901e3652a141ef83c297c5aa0ccd | f0d94faff9c721f25018b7db12a07786508da565 | refs/heads/master | 2021-01-21T12:58:49.014716 | 2016-05-06T20:49:59 | 2016-05-06T20:49:59 | 50,135,715 | 0 | 0 | null | 2016-05-25T12:32:34 | 2016-01-21T20:48:27 | CSS | UTF-8 | Python | false | false | 2,295 | py | from django.db import models
from direccion.models import EspecificacionDeInmueble
from estadoderegistro.models import EstadoDeRegistro
from django.contrib.auth.models import User
# Create your models here.
class Ambiente(models.Model):
"""docstring for Ambiente"""
def __init__(self, *args, **kwargs):
... | [
"yusnelvy@gmail.com"
] | yusnelvy@gmail.com |
90d278151095619274e4ba40f40ecc236fd132c8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1421.py | 90ce34cd8af2d1f672387980e7bd090a96816198 | [] | 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 | 709 | py | t = int(raw_input()) # read a line with a single integer
import numpy as np
for i in xrange(1, t + 1):
string_N, string_K = [s for s in raw_input().split(" ")]
N = int(string_N)
K = int(string_K)
n = np.floor(np.log2(K))
Kprime = K - 2**n +1
average_interval = (N+1) / (2**n) - 1
dec_part ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d38a3978a913f72e7e8843eb3b899d2b18278024 | 7d49c3e6266b5f671c5b3f324a9c09159ff45586 | /chatbackend/myauth/models.py | 131cf31190583e5c29c0d654d74f89e31b3a5e99 | [] | no_license | shusaku-ishikawa/saychat | c1580d9c74d98a1bd78461b890782d344497927e | a672244cb346a30450693c28c23b7ad229627286 | refs/heads/master | 2020-09-20T22:16:57.785229 | 2019-11-28T08:23:39 | 2019-11-28T08:23:39 | 224,604,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,439 | py | from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
from django.core.mail import send_mail
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.utils import timezone
from django.ut... | [
"ishikawasyuusaku@gmail.com"
] | ishikawasyuusaku@gmail.com |
89b2446ea164b7c6cbb122fe37520585de43d939 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1CuVWmp8xfdTaqrJvbKik3YNhkWFCasdUF.py | 2e8ae5a101d920699f6380bbae39e08a82f8096e | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,134 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1CuVWmp8xfdTaqrJvbKik3YNhkWFCasdUF(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
9ba3c392f19704442487edf655bceae5844ef2cd | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/web_infrastructure/jenkins_script.py | de92a79224ae38dff4a2a9f18922d0abe84eef3b | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 6,358 | py | #!/usr/bin/python
# encoding: utf-8
# (c) 2016, James Hogarth <james.hogarth@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
c9b78b08dd6c4debb7fbd2badbb68b2782dd1194 | 0aad1f032876366b555d4b4d0bd80ad2ae74c226 | /src/ingest-pipeline/md/data_collection.py | b7af3ef754c495a346c83a6fdcf34da7b3b8e116 | [
"MIT"
] | permissive | icaoberg/ingest-pipeline | d876c33e5f5414f21c6194cd2085c02a126ef73c | 8c8296daaf2a3a71cd213a6b7b8a067739fa5272 | refs/heads/master | 2022-11-19T11:54:00.264295 | 2020-07-01T21:07:08 | 2020-07-01T21:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | #! /usr/bin/env python
import os
import json
from metadata_file import MetadataFile
import data_file_types
_MD_TYPE_TBL = None # lazy initialization
class DataCollection(object):
category_name = 'Base'
match_priority = -1.0 # normally >= 0.0, higher is better
@classmethod
def test_match(cls,... | [
"welling@psc.edu"
] | welling@psc.edu |
7bc89c42b5054a9f6341fe7dc6c3b642d3ad51bd | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/Lib/encodings/mac_farsi.py | 499da043ecffda06d74b4bd038e145882a87003b | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,978 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/encodings/mac_farsi.py
import codecs
class Codec(codecs.Codec):
def encode(self, input, errors='strict'):
return codecs.charmap_encode(input, errors, encoding_table)
def decode(self, input, errors='strict'):
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
61966a3bd18fa24100fe569a2487e7aeb9e1ccee | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /onnxruntime/test/python/quantization/test_op_transpose.py | 392451cf6461170fd521100a616b2ffec881f547 | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | Python | false | false | 6,207 | py | #!/usr/bin/env python
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
79f817311a3e810af0079004551e8ca737b53364 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03069/s989598653.py | e5552569faef860643af950c17052fb40d20398b | [] | 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 | 487 | py | n = int(input())
s = input()
a = [0] * (n + 1)
b = [0] * (n + 1)
for i in range(n):
#先頭からi番目までの#の数
if s[i] == '#':
a[i + 1] = 1
#末尾からi番目までの.の数
if s[n - i - 1] == '.':
b[n - i - 1] = 1
#累積和をとる
a[i + 1] += a[i]
b[n - i - 1] += b[n - i]
ans = 100100100
for i in range(n):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b37f106b19ed93bdb0b2951ec98428eaa5cf768b | 90d6eeb7e6aca38d3cbf4457bbd539e7770c862b | /mainsite/asgi.py | 7b55d0f8c1992b89a33a79f046f71d0c11843992 | [] | no_license | sulembutproton/commsys | 8b7ebd5bc3b64cda6e992de06ca0c14ac793ee4a | d4156ac788bd7177529cf226a7f40885f3637555 | refs/heads/master | 2023-04-10T10:50:59.783387 | 2021-04-16T22:51:38 | 2021-04-16T22:51:38 | 358,736,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for estore project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"sulembut@protonmail.com"
] | sulembut@protonmail.com |
4f7969ed4f627d49afd03e208068b18459123f0e | 9f9602564477414a69108093d2c919ad82bd0487 | /setup.py | d40585655d190483a103c091d075bee3f2936a27 | [] | no_license | csxeba/Artifactorium | 771a486d532c75927d331b7a63d8954673b4481c | aead5d5a316123a0dd7374ee5ae5d7edbdf5e901 | refs/heads/master | 2021-04-20T17:16:55.853782 | 2020-04-01T17:02:21 | 2020-04-01T17:02:21 | 249,704,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from setuptools import setup, find_packages
long_description = open("Readme.md").read()
setup(
name='artifactorium',
version='0.9.0',
packages=find_packages(),
url='https://github.com/csxeba/Artifactorium.git',
license='MIT',
author='csxeba',
author_email='csxeba@gmail.com',
descriptio... | [
"csxeba@gmail.com"
] | csxeba@gmail.com |
db736e99d249ce6a37b6235d0f84356d6ab797e2 | 11de979392caa0d5bc1983040ab9c679919d7e96 | /resttutorial/bookstore/books/serializers.py | a6db2f034bf16b5fa647bb07a327781539112850 | [] | no_license | Yanmaolei/tutorials | 3f2e05a6b5ce79199afc03516e4351ba5136c777 | c28db47c1707ea4f33bdce645fa03b9c15c0077f | refs/heads/master | 2020-03-19T23:22:38.020466 | 2018-06-11T08:55:50 | 2018-06-11T08:55:50 | 137,004,142 | 0 | 0 | null | 2018-06-12T02:08:37 | 2018-06-12T02:08:36 | null | UTF-8 | Python | false | false | 188 | py | from rest_framework import serializers
from books.models import Books
class BooksSerializer(serializers.ModelSerializer):
class Meta:
model = Books
fields = "__all__"
| [
"zuoyuantc@126.com"
] | zuoyuantc@126.com |
6e1b92cc0296d0449fd0be5f99a9f3ed64129b19 | 19d2363d22e12da8d83a98c64077cbb0b9129986 | /jaraco/net/http/content.py | 03d97bb87296947b3810010908d7e11506145c2e | [
"MIT"
] | permissive | lirongjiang/jaraco.net | 010546fa1933d004c7742b34826c0471dbc8da8c | 130e19e381a4866b149c05c963aac8b11bb6e041 | refs/heads/master | 2021-01-20T23:03:37.230647 | 2016-03-05T14:43:43 | 2016-03-05T14:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import cherrypy
form = """
<form method="post" enctype="multipart/form-data">
<input type="file" name="file"/>
<input type="submit" />
</form>
"""
class ContentTypeReporter(object):
@cherrypy.expose
def index(self, file=None):
if not file:
return form
return "Content type is {file.content_type}".format(**va... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
2da1e78d27602112cbdae4f4069d8ed63f916fca | 6d59e7b2a9ac7e7312d4814dcd7af4cd390b4916 | /2D/flatland/haar/wavelet/solution/main_thres.py | 9f21238af6620816e58b97dbf78aafc55658f729 | [] | no_license | pinkeshb/radiosity | 70a98e32660ba45949074f2035a4bf357cb03a2e | d2a61ed0a86ece05f3f52457ab10474004b9362f | refs/heads/master | 2021-01-23T07:29:47.973092 | 2015-06-18T17:21:51 | 2015-06-18T17:21:51 | 34,603,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | from kernel_haar_phi import *
from mpmath import *
import sys
from wavedecs import *
from save_read import *
def thres(K_dwt, top_n):
L = []
K = []
n = K_dwt.cols
K_dwt_thres = matrix(n, n)
K = K_dwt.tolist()
print n
for i in range(n):
L.extend(K[i][:])
for i in range(len(L)):
... | [
"barsopia@gmail.com"
] | barsopia@gmail.com |
fca840d54310e4e76be9a35ad5526d2c09b5f9ca | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/datamigration/v20171115preview/get_service.py | df144b3ab1b1396bf874079f8948048495d0762d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | 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
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
8a8b6e427eece19aaed5788e1fc8fad816577822 | d1e2f5993573a16ed6cf359215e596814db33ad7 | /spider/note-01.py | ce40dea600fcc7913c064949463ba74602c92dfd | [] | no_license | Andor-Z/My-Learning-Note | a6b62fd10119cede9ba4c6c79b2dcb5c346d11e0 | 202401f1be1f9f7c32049623315c0c54720498f7 | refs/heads/master | 2022-10-22T13:55:44.821097 | 2016-07-10T09:21:02 | 2016-07-10T09:21:02 | 42,592,078 | 1 | 1 | null | 2022-10-20T21:49:08 | 2015-09-16T14:24:01 | Python | UTF-8 | Python | false | false | 1,907 | py | import urllib
import urllib.request as ur
url_baidu = 'http://www.baidu.com'
url_ftp = 'ftp://example.com/'
username = 'Andor'
password = '0123'
values1 = {"username":username,"password":password}
values = {'name' : 'Andor',
'location' : 'zh',
'language' : 'Python' }
url_3 = 'http://www.so... | [
"zyfsta@outlook.com"
] | zyfsta@outlook.com |
905c5cc9157d68725fc81e3271afbb899a974e6a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/VNet/demo.py | 53f9e9ed24a00e3618f4adc19a9c732c9ca38b0c | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 3,825 | py | # Copyright 2020 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
25b6347560795472d4d5352a081b37bb045ae7b7 | ae48c2a1fa0c4776ec2cc79281cd3ebb9ade0c4d | /site/solutions/DMOJ/ccc07s4.py | 53e5624ed9c4f810f0ccf807e4294b72114e4c45 | [] | no_license | shunr/cbcs-docs | c9cac20de9624fcfaed7a753a28c91993909d830 | 42b065fa6f8d80c50ae9d724d8d777b2a41df7d6 | refs/heads/master | 2021-01-23T00:56:44.540801 | 2017-09-23T01:48:32 | 2017-09-23T01:48:32 | 92,857,947 | 1 | 2 | null | 2017-09-23T01:48:33 | 2017-05-30T17:19:43 | HTML | UTF-8 | Python | false | false | 546 | py | from sys import stdin
n = int(stdin.readline())
graph = {}
g2 = [[] for i in range(n+1)]
paths = [0 for i in range(n+1)]
paths[1] = 1
while True:
p = [int(_) for _ in stdin.readline().split()]
if p[0] == 0:
break
#if p[0] not in graph.keys():
# graph[p[0]] = []
#if p[1] not in g2.keys():
# g2[p[1]] =... | [
"shunyu.rao@gmail.com"
] | shunyu.rao@gmail.com |
b96a0a41f632e317f4ea1ff890d9e222ac076da1 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/door/test/service_money_program_city/part.py | e97505bb8dc7c5828262ce807d55d54220100be4 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | package PlagiarismDetection;
/*
* CSIT214/814 GROUP ALPHA
*/
import java.io.*;
import java.net.*;
import java.util.*;
import javax.net.ssl.HttpsURLConnection;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
public class Micros... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
205bee18ea6f3e34ed0c49b191128ba40af8eb22 | 4c3ad36846fe4382fafd55ed831bd2fef8e454cd | /medium/Integer Replacement.py | de3d7b8d5fddf5c1cf9171b345ba7974d9d65284 | [] | no_license | gjwei/leetcode-python | 809f1f2d43d62eb931d42f2e7e271abf4a426017 | 7f25fa62c8cfa0fb24d57fd2a62059e0e98a6002 | refs/heads/master | 2021-01-20T01:38:01.149608 | 2018-01-05T06:43:05 | 2018-01-05T06:43:05 | 89,308,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
created by gjwei on 7/30/17
"""
class Solution(object):
def integerReplacement(self, n):
"""
:type n: int
:rtype: int
"""
h = [0 for _ in xrange(n + 1)]
for i in xrange(2, n+1):
if i & 1 == 0:
... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
7906623a8b406edd535a5f34b3d3f010b5b3a7a1 | 4579d9f75640f3808f17d59519ad62c84dd69cef | /CRC/District_wise_no_of_schools_per_crc.py | 3c6fe8b301a6ae4829d694290df2f6a59bd144f2 | [] | no_license | chetandg123/CqubeMetric | f5b9b3451b1e970cc3a89fcf8510e97a17a12a34 | 10cff99cf0c9c47a6fd3f87696b02d2ebfd55ca3 | refs/heads/master | 2022-10-05T02:33:26.858925 | 2020-06-05T07:52:38 | 2020-06-05T07:52:38 | 269,001,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | import configparser
import time
import unittest
import pandas as pd
import requests
from CRC.reuse_func import crc_get_data
from Queries.test_crc_quary import CRC_Query
from Queries.test_query import TestQuery
from TS.reuse_func import cqube
from get_dir import pwd
p = pwd()
config = configparser.ConfigParser()
confi... | [
"sdevaraja85@gmail.com"
] | sdevaraja85@gmail.com |
55cc5cfd43a7a30914efbcda9a701fa247a55884 | b8f77ec8e4c6da4a2117140a3eeac0201ab08678 | /seleniumbase/virtual_display/unicodeutil.py | f94263edae2983ffb016f7b93ba1cb933d6a88ff | [
"MIT"
] | permissive | CyrilShch/SeleniumBase | b07571172c173278eaf49b88ee24dd0eac779936 | 269e367d2b7bcd3741840241c5da184d7a3b2bc7 | refs/heads/master | 2023-06-11T20:42:13.325171 | 2021-07-04T12:56:30 | 2021-07-04T12:56:30 | 381,798,302 | 0 | 0 | MIT | 2021-06-30T18:29:27 | 2021-06-30T18:29:27 | null | UTF-8 | Python | false | false | 1,608 | py | import shlex
import sys
import unicodedata
PY3 = sys.version_info[0] >= 3
if PY3:
string_types = (str,)
else:
string_types = (basestring,) # noqa: ignore=F821
class EasyProcessUnicodeError(Exception):
pass
def split_command(cmd, posix=None):
"""
- cmd is string list -> nothing to do
- ... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
0a9c8cbcea074fc2de9f42c149833a821deca4e6 | 7c3e8c81e1ad611fbaaf46e8a353424e7cc0f132 | /Bnuep/urls.py | ad2e91605ac6a2b708c8838a491ade48dfdb0b71 | [] | no_license | DICKQI/Bnuep | c6c33c78c2a88612c52d0919aa0d9d63bafff568 | a5fd1a191ab7ebc6ee7b73a8eb0b14f0659e086b | refs/heads/master | 2020-08-14T19:18:41.538641 | 2019-11-08T06:24:48 | 2019-11-08T06:24:48 | 215,221,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """Bnuep URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-based v... | [
"dickqi87@gmail.com"
] | dickqi87@gmail.com |
7920b38f0068e9c3d7cc7694354f9a641b605fcd | a83bafc38b514a0339a5991be15870551ac49681 | /test/test_ifc_merge_request.py | 5b61ef92af81737fcb8a7088941638fd44faef6a | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 929 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
8d0787dc7a7b2046b9c79083123705c3ff29f5d0 | 39307cc2ac15aa1dd944d0205d30c11bf2e7cbf2 | /virtual/bin/django-admin | b58e15df520e2a9dcf2f33d1803955379704f46c | [
"MIT"
] | permissive | MungaiKeren/Me-gallery | aa7e4f437a4744fe90a3f9bf0464cc13dbd58c47 | a435189fb6f1cd22fb3df1b9ace5114c93506a09 | refs/heads/master | 2021-09-09T14:44:33.639499 | 2019-10-07T14:29:55 | 2019-10-07T14:29:55 | 212,760,520 | 0 | 1 | MIT | 2021-09-08T01:20:31 | 2019-10-04T07:35:58 | Python | UTF-8 | Python | false | false | 303 | #!/home/keren/Documents/Me-gallery/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"wambukeren@gmail.com"
] | wambukeren@gmail.com | |
d69068282e89d241a4407b79377bee350c5f322f | 6f54650b754233c24f5ede3cd57ae4e5cb93b46b | /Python/Django/exercise1/main/apps/first_app/views.py | 22a648c76fae5b854b890d39f94ca9b0355519f1 | [] | no_license | nielschristiank/DojoAssignments | 35f229ff967d727e4916ee1d44eed3afe622305a | f08c961bc8b6192baafe5f11ca2c0fa982bda79b | refs/heads/master | 2021-01-19T20:50:51.299243 | 2017-06-13T19:40:57 | 2017-06-13T19:40:57 | 88,566,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
#CONTROLLER
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse
def index(request):
print("*" * 100)
return render(request, "first_app/index.html")
# response = "Hello, I am your first request!"
# return HttipResponse(response)
# Create... | [
"nielschristiankielland@gmail.com"
] | nielschristiankielland@gmail.com |
875c8507fd9c88cbac29f01ffc28241a07414e59 | ec6b94f8fa4558f2156f5cdf1ab0347fb5573241 | /snuba/utils/metrics/backends/dummy.py | 8ba2743280350b33076059fb52b017e5193f82ce | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | pombredanne/snuba | 8e9a55bf38b3ac84407d0c2755e3c0ac226688de | eb1d25bc52320bf57a40fd6efc3da3dd5e9f1612 | refs/heads/master | 2021-08-27T20:55:46.392979 | 2021-08-14T08:21:47 | 2021-08-14T08:21:47 | 171,631,594 | 0 | 0 | Apache-2.0 | 2020-01-10T10:42:17 | 2019-02-20T08:26:17 | Python | UTF-8 | Python | false | false | 1,698 | py | from collections import Mapping
from typing import Optional, Union
from snuba.utils.metrics.backends.abstract import MetricsBackend
from snuba.utils.metrics.types import Tags
class DummyMetricsBackend(MetricsBackend):
"""
A metrics backend that does not record metrics. Intended for use during
development... | [
"noreply@github.com"
] | pombredanne.noreply@github.com |
222539b8d14a501c836d2e11d10fa260c0c45f77 | 68d64b465cc1a680ce423ebb23266149cf4e2e0e | /gsw/gibbs/geostrophic_48.py | 62d643ff9ad6ee378980a0e43f6930de0483e2ff | [
"MIT"
] | permissive | cesar-rocha/python-gsw | 88a0696c02ba0a07ec23d0b0d493d466187f405c | 92dae32d123d29730d14a660c62fa6fc15a4bbd4 | refs/heads/master | 2021-05-28T09:37:18.464461 | 2015-02-21T17:16:44 | 2015-02-21T17:16:44 | 31,243,402 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
__all__ = ['geo_strf_Cunningham', # TODO
'geo_strf_dyn_height', # TODO
'geo_strf_dyn_height_pc', # TODO
'geo_strf_isopycnal', # TODO
'geof_str_isopycnal_pc', # TODO
'geo_strf_Montgom... | [
"ocefpaf@gmail.com"
] | ocefpaf@gmail.com |
170bb8c9363d71162bfe05edc3f6fac99ce56100 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /8rXfBzRZbgZP7mzyR_18.py | 4533d8e39d2003de6a9d9f911d1b27f860033ba0 | [] | 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 | 487 | py | """
Create a function that takes a string (a random name). If the last character
of the name is an "n", return `True`, otherwise return `False`.
### Examples
is_last_character_n("Aiden") ➞ True
is_last_character_n("Piet") ➞ False
is_last_character_n("Bert") ➞ False
is_last_character_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bcaac7b1736247dda99f752ff8cc87e68ffba0ed | 524baf7de05bd3fc5b9d08083cbb0b7b47a67979 | /68.py | 7bd39554a82cb23f04ee7ce29f63338f7497762a | [] | no_license | gk90731/100-questions-practice | 1356dd577516567a5c51a4257f59fe01b123e7ff | f855549e037b9924dd6f0370dc2f2a53765d9227 | refs/heads/master | 2020-05-25T14:04:59.642819 | 2019-05-21T12:49:04 | 2019-05-21T12:49:04 | 187,835,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | '''Question: Create an English to Portuguese translation program.
The program takes a word from the user as input and translates it using the following dictionary as a vocabulary source. In addition, return the message "We couldn't find that word!" when the user enters a word that is not in the dictionary. Also, make ... | [
"gk90731@gmail.com"
] | gk90731@gmail.com |
5e9a9e46ba32ae6331a89855afb8b2531d645c02 | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-08-14_p3_idade/script_matriz1b_idade_2020-03-08.py | 36d2a04322b523089621f0b9adf99bbbcc08cafb | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #!/bin/env python3
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
projectID = "42"
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd40d5d30694f356").decode("ascii")
headers = { 'Authorization' : 'Basic %s' % userAndPas... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.