blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
484d22743621347e04a5afca0a5dc817e9d97036 | b5b7eb43e811b1a98d774bb6e64e72e213c4039a | /rest_api/tests/unit/test_receipt_requests.py | f79efbf393e61e42ed56e944d44464f2784978bb | [
"Apache-2.0",
"Zlib",
"MIT"
] | permissive | suomichain/suomi-core | 09a34f0dc9a43a56e0e51585dd150c6a2d9d3fb7 | dada0499ddc2b4b4a5d9a975de5af63b87ded9d2 | refs/heads/master | 2021-04-26T23:25:48.358607 | 2018-04-21T23:34:18 | 2018-04-21T23:34:18 | 123,993,124 | 28 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,481 | py | # Copyright 2017 Suomi 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 wri... | [
"leifu.chen@gmail.com"
] | leifu.chen@gmail.com |
a43b073ba62e3560645db1d8e65e2ac207c8453b | bd75c7ec55b78ef189f57596520744f82ec73073 | /Remove Duplicates from Sorted List II.py | 1456a191b4fb9e1087d1b22d5a3db616ef784dcf | [] | no_license | GaoLF/LeetCode-PY | 17058ac0743403292559f9b83a20bf79d89e33f6 | ccd294cfe0c228a21518d077d1aa01e510930ea3 | refs/heads/master | 2021-01-23T02:24:05.940132 | 2015-07-22T13:44:01 | 2015-07-22T13:44:01 | 38,248,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def deleteDuplicates(self, head):
dummy = ListNode(1<<31)
dummy.next = head
temp = dummy
... | [
"gaolongfei@pku.edu.cn"
] | gaolongfei@pku.edu.cn |
f87af35591ba03e59d41b5f3b11c732c35a321b8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/pnz.py | c949d86ab8892455ec13c1ee554765e79a2e85d5 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
035880f09743bc5a1cab302770759c91bc725c9a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02573/s669346244.py | 7b72f2c5ecc9d22187ce0a7f35336d7c53738d5d | [] | 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 | 513 | py | from collections import deque
N, M = map(int, input().split())
g = {i:set() for i in range(N)}
v = [-1 for i in range(N)]
for _ in range(M):
a, b = map(int, input().split())
a, b = a-1, b-1
g[a].add(b)
g[b].add(a)
Q = deque()
ans = 0
for a in g:
if v[a]==-1:
v[a] = 1
ans_tmp = 1
Q.append(a)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
21a0ce99bef657fe84108e6ad443ed5b7c608b92 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5646553574277120_0/Python/EnTerr/LessMoney.py | 8adf47e215669cf9d9d2f96bfd97e8027bbd049c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #
# Google Code Jam 2015
# Roaund 1C: C. Less Money = More Problems
# submission by EnTerr
#
'''
Input
4
1 2 3
1 2
1 3 6
1 2 5
2 1 3
3
1 6 100
1 5 10 25 50 100
Output
Case #1: 0
Case #2: 1
Case #3: 1
Case #4: 3
'''
import sys
from time import clock
f = open(sys.argv[1])
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5ff18081ba00c3a519220734c8418d0cdf727efb | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.NYN/Mono_12/pdf_to_json_test_Latn.NYN_Mono_12.py | db7cb45b09b8d2362087c9f26218f854742c3626 | [
"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 | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.NYN/Mono_12/udhr_Latn.NYN_Mono_12.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 |
2eac8b13bd7e900df92c21cb6f68723484f8cb8e | 49460eb225ab1b9ce826e6cb7b3ea8025c035be9 | /runner.py | 866c5224fafc84fb4d06484b39c4de04dff95f0b | [] | no_license | kagesenshi/data_ingest_utils | 55a995436d28e0ee3f5da641211069b041cf4fc7 | 032b35dcd1a16094f496b174e59463d661577d9b | refs/heads/master | 2021-04-29T08:44:37.572419 | 2017-05-04T11:00:07 | 2017-05-04T11:00:07 | 77,671,738 | 1 | 5 | null | 2017-07-17T03:24:42 | 2016-12-30T08:08:46 | Python | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
import argparse
import sys
import os
REGISTRY = {}
def command(name):
def decorator(func):
REGISTRY[name] = func
return decorator
def main():
parser = argparse.ArgumentParser()
parser.add_argument('command', choices=REGISTRY.keys())
args = parser.parse_args()
i... | [
"kagesenshi.87@gmail.com"
] | kagesenshi.87@gmail.com |
6f5a6c20baa5d51e1c430e6d3c4472d79cc93505 | b0cb7cc3dae9c6f402bfb0bff5ac37372fd3d9b0 | /src/NATS/Client/sample/DEMO_MultiUser/Client_Admin_Step2_beta1.4.py | f2f5b66f1d5e5e1d1711d90a4479434d951da71e | [] | no_license | ymlasu/NASA_ULI_InfoFusion | 7d0eeefe84cdae35959402fc216a8439e3a61696 | aa22138005469a227bf5eb69c867946a7be9d333 | refs/heads/master | 2021-06-11T08:07:29.195760 | 2019-04-26T20:02:36 | 2019-04-26T20:02:36 | 133,870,791 | 2 | 3 | null | 2019-05-22T15:48:29 | 2018-05-17T21:35:22 | C | UTF-8 | Python | false | false | 4,811 | py | # NATS sample
#
# Optimal Synthesis Inc.
#
# Oliver Chen
# 03.21.2019
#
# This program demonstrates Administrator operations.
#
# The program logs into NATS as Administrator.
# The user starts the real-time simulation.
from jpype import *
from array import *
from datetime import datetime
import os
import time
import c... | [
"michael.hartnett@swri.org"
] | michael.hartnett@swri.org |
5370f19d99b5901b8c0f3aef7ad8b17d0cbcbdde | d83f50302702d6bf46c266b8117514c6d2e5d863 | /add-strings.py | 41105d05cbb46bdde6942e99f9f575aa5642e1dd | [] | no_license | sfdye/leetcode | 19764a6bdb82de114a2c82986864b1b2210c6d90 | afc686acdda4168f4384e13fb730e17f4bdcd553 | refs/heads/master | 2020-03-20T07:58:52.128062 | 2019-05-05T08:10:41 | 2019-05-05T08:10:41 | 137,295,892 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | class Solution:
def addStrings(self, num1, num2):
"""
:type num1: str
:type num2: str
:rtype: str
"""
i, j = len(num1) - 1, len(num2) - 1
ans, carry = [], 0
while i >= 0 or j >= 0:
x = int(num1[i]) if i >= 0 else 0
y = int(num2[... | [
"tsfdye@gmail.com"
] | tsfdye@gmail.com |
146c054ee04ea5a97a693381f8bddeb1b77e1b09 | fbd8da864e49960d1b21445234b9cfa3c8ca2e36 | /ethpm_cli/commands/registry.py | b1ea698482808f24fa7d3caf99e083a78b87dc01 | [
"MIT"
] | permissive | corydickson/ethpm-cli | 18ebce393b032584959ceafe8408af8a2273bf99 | bc25860d6a81d28603d76be06b3a896893324a39 | refs/heads/master | 2020-12-28T17:16:31.953278 | 2020-01-30T16:41:16 | 2020-01-30T16:41:16 | 238,419,683 | 0 | 0 | MIT | 2020-02-05T10:06:20 | 2020-02-05T10:06:19 | null | UTF-8 | Python | false | false | 7,937 | py | import json
from pathlib import Path
from typing import Any, Dict, Iterable, NamedTuple, Optional, Tuple
from eth_typing import URI
from eth_utils import to_tuple
from eth_utils.toolz import assoc, assoc_in, dissoc
from ethpm.backends.registry import is_valid_registry_uri, parse_registry_uri
from ethpm.constants impor... | [
"nickgheorghita@gmail.com"
] | nickgheorghita@gmail.com |
96720eee1660a89c5f52e73dfe17404b7f7c56a4 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /core/enumerators/SeverityType.py | 75923168856e1da549cb78cc02ebc04dc878732a | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 2,220 | py | # <License type="Sun Cloud BSD" version="2.2">
#
# Copyright (c) 2005-2009, Sun Microsystems, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must reta... | [
"devnull@localhost"
] | devnull@localhost |
c5527fce385deb94be23b507620877effe29eaea | 9875d011bf7b478421a4a5a57c6b42c24c069903 | /examples/06_vtk/Applications/FiniteElementAnalysis/app_local_view.py | 15b74c578961211ddcbac8a9d8c9a9c8e9f5a581 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kitware/trame | bc9a0d7d6a845050f4fb386d514bd7e9b7060a21 | 861b60718798cca2db292e65e6ad39106ba75ccd | refs/heads/master | 2023-08-20T22:42:57.129511 | 2023-08-18T04:25:32 | 2023-08-18T04:25:32 | 410,108,340 | 198 | 41 | NOASSERTION | 2023-09-14T15:29:10 | 2021-09-24T21:38:47 | Python | UTF-8 | Python | false | false | 11,801 | py | r"""
Version for trame 1.x - https://github.com/Kitware/trame/blob/release-v1/examples/VTK/Applications/FiniteElementAnalysis/app_local_view.py
Delta v1..v2 - https://github.com/Kitware/trame/commit/03f28bb0084490acabf218264b96a1dbb3a17f19
Installation requirements:
pip install trame trame-vuetify trame-v... | [
"sebastien.jourdain@kitware.com"
] | sebastien.jourdain@kitware.com |
6bde48d385ffeb6d9ab80a98155c09b112db24e7 | b4d25688cd86062d3877d1aaad85d4abde98aa96 | /MultiSC/MultiServer/__config__/server_config.py | ac6bde2a5a7385fc95b95e590717b87672bfd850 | [
"MIT"
] | permissive | hvuhsg/MultiSC | 7ffced49f10c43d82f970c17a2911adbd3556ce6 | 079f7be1b8fed4938e6003a81e2d03a8ea03ffd4 | refs/heads/master | 2020-05-26T22:45:10.731554 | 2019-06-19T09:37:28 | 2019-06-19T09:37:28 | 188,402,849 | 8 | 0 | MIT | 2019-06-02T21:16:03 | 2019-05-24T10:29:16 | Python | UTF-8 | Python | false | false | 160 | py | # server ip
IP = "0.0.0.0"
# server port
PORT = 84
# connection queue size in the server
QUEUE_SIZE = 50
get_new_connections = True
check_black_list = True
| [
"hvuhsg6@gmail.com"
] | hvuhsg6@gmail.com |
193f491f7c0d91dbfdb932d40ec2f4b3ae6fe3f5 | 800f518b00396e35dfb1c2dad112e1541ceac125 | /neuclease/misc/generate_thumbnails.py | 383d93e198167a9936da713122d39fc143b3c6e2 | [
"BSD-3-Clause"
] | permissive | janelia-flyem/neuclease | a5ec6fe4fd06cb0327df0071b7bc25ff33931bc5 | 45d363b044362e5707fde2af646816474feeda6d | refs/heads/master | 2023-09-04T00:22:39.954723 | 2023-08-31T20:59:35 | 2023-08-31T20:59:35 | 116,870,283 | 9 | 4 | NOASSERTION | 2023-04-08T20:51:07 | 2018-01-09T21:00:52 | Jupyter Notebook | UTF-8 | Python | false | false | 4,505 | py | import argparse
from itertools import chain
from functools import partial
import vigra
import numpy as np
from skimage.transform import rescale
from ..util import downsample_mask, compute_nonzero_box, extract_subvol, round_box, iter_batches, compute_parallel
from ..dvid import fetch_sparsevol_coarse, find_master, fe... | [
"bergs@janelia.hhmi.org"
] | bergs@janelia.hhmi.org |
edc7bd61a9d412c282309fac57f5bcbe2f5309aa | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/mind/gmind/tools/to-corpus.py | de062bb67f8e01acf168dd7e66ade5bd137418bf | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file merge-emb.py
# \author chenghuige
# \date 2020-06-03 22:36:34.375581
# \Description
# =============================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
5d210721c7725096c52ac4d72056c09bb0646bd0 | 24bee7f6973c1005702416b230ec789ac74624e0 | /round1C 2008/speedLimit/main4.py | 71459d3c98c960398a513a4901567a3c3f43160b | [] | no_license | shaik1990/Codejam | 8da4e844d567352e7165291dacc8a08cce3dd3ed | 19e7505292c69d813b02c24973d23db5a9a3c73a | refs/heads/master | 2021-01-17T04:56:15.280569 | 2015-06-01T03:48:16 | 2015-06-01T03:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | '''
Created on 2013-6-9
@author: Yubin Bai
'''
import time
from multiprocessing.pool import Pool
from bintrees.rbtree import RBTree
from bisect import bisect_left
parallelSolve = False
infinity = 1 << 36
class FenwickTree:
'''
// In this implementation, the tree is represented by a list
// Elements are nu... | [
"baiyubin@gmail.com"
] | baiyubin@gmail.com |
a76476ad7b4de9c815083562f26de22e061039cd | 4976610365a7a5ab997c8d080dc8568f6aa60b14 | /backend/manage.py | 945843004051178c78511aaf1d7dd6661b3eb401 | [] | no_license | crowdbotics-apps/tst-rn-app-dev-19186 | b7391b3cb179c540eb3cc9d33141eaf68ea36616 | c5c39284d9f3314d8483b38f3ee3b0552c18a11b | refs/heads/master | 2023-03-04T08:37:59.465203 | 2021-02-08T11:19:50 | 2021-02-08T11:19:50 | 337,051,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tst_rn_app_dev_19186.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
99ce33d019066d718605106eb032fc2ce18ea553 | 4a238068e29a1f6871cc049a0486b20b27e781de | /Inspur/benchmarks/bert/implementations/pytorch/unit_test/test_bert_batch_7.py | 3cd92193a48cee69b25e8c5f3a4e6129cb7999e6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pixelz-Inc/training_results_v1.0 | 61b4555ad482b189d1966be3edd127858addd628 | c507130c4e04c1f274a9ae8b7284aac79f26325a | refs/heads/master | 2023-08-18T22:46:13.316503 | 2021-10-22T04:01:57 | 2021-10-22T04:01:57 | 399,047,712 | 0 | 0 | NOASSERTION | 2021-08-23T09:37:25 | 2021-08-23T09:37:25 | null | UTF-8 | Python | false | false | 30,236 | py | # NVIDIA
import math
import numpy as np
import pickle
import unittest
from parameterized import parameterized, parameterized_class
import test_data_path
import unit_test_utils
import global_vars as gv
from modeling import BertConfig, BertForPretraining
import torch
from torch import nn
#@parameterized_class(('den... | [
"vsb@fb.com"
] | vsb@fb.com |
1bb10e860da32e30b2913b3c54b564ab8dad16c1 | 0308ca5b152a082c1a206a1a136fd45e79b48143 | /usvao/VAO/software/desktop/pyvo/releases/v0.0beta1/tests/dal/aTestSIAServer.py | 802ad10b631d821a94bd5e692c5af8cb15f5ca60 | [] | no_license | Schwarzam/usvirtualobservatory | b609bf21a09c187b70e311a4c857516284049c31 | 53fe6c14cc9312d048326acfa25377e3eac59858 | refs/heads/master | 2022-03-28T23:38:58.847018 | 2019-11-27T16:05:47 | 2019-11-27T16:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | #!/usr/bin/env python
"""
a test DAL server for testing dal.query
"""
import os
import sys
import shutil
import re
import threading
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
testdir = os.path.dirname(sys.argv[0])
if not testdir: testdir = "tests"
siaresult = "neat-sia.xml"
scsresult = "twomass-cs.... | [
"usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5"
] | usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5 |
60a6eb809104afd7f48f849d696d32e469b06945 | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/matplotlib/tests/test_backends_interactive.py | 7465bb9197e2eb967055b988b75230609e4068cf | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 5,861 | py | import importlib
import importlib.util
import os
import signal
import subprocess
import sys
import time
import urllib.request
import pytest
import matplotlib as mpl
# Minimal smoke-testing of the backends for which the dependencies are
# PyPI-installable on Travis. They are not available for all tested Python
# ve... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
0c3e7ce189c1bfba5ec5c3ac8ec17ad119e36af5 | be7a228782cf18993bf4e65196f7b74d1c998b27 | /MITClab/bill_course_practices/python_microsoft/python-pptx/makeppt_addeachslides.py | 8ccd2718defd509702591a8c4269ce27915ee232 | [] | no_license | bill0812/python3_daily_programming | 96e0a01f934cc28d4a25c698c352b40a5ce86c81 | f4f97bd18c6a966c73c7d43f5e92b807a2f6ca4b | refs/heads/master | 2021-02-08T03:08:14.450870 | 2020-03-01T15:38:16 | 2020-03-01T15:38:16 | 244,101,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import os
from pptx import Presentation
from pptx.util import Inches, Pt
img_path = 'monty-truth.png'
prs = Presentation()
for i in range(len(prs.slide_layouts)) :
slide = prs.slides.add_slide(prs.slide_layouts[i])
print(len(slide.shapes.placeholders))
# 儲存 PPT
prs.save(os.getcwd() + '/add_each_slides.pptx'... | [
"maxwell111023@gmail.com"
] | maxwell111023@gmail.com |
41a20b7a36c3f1a29a11d94161319ad4e48447c8 | 8c4af05e0257661195c95b0b9e0873eeb6391dab | /packages/python-packages/apiview-stub-generator/apistub/_stub_generator.py | d9d0b97d324c5e06c9aa3e87bac9f4ff2c49bc1d | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-sdk-tools | 6d171054800807fcbe7b8b878c5903a202d31faa | 2dce521dedc3f5169007d4c481ae8ec077be4450 | refs/heads/main | 2023-09-01T00:00:32.662190 | 2023-08-31T22:21:44 | 2023-08-31T22:21:44 | 170,592,186 | 113 | 174 | MIT | 2023-09-14T21:53:41 | 2019-02-13T22:55:46 | C# | UTF-8 | Python | false | false | 13,649 | 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"
] | Azure.noreply@github.com |
8a4496498e721d58a2a33684b62676622f1fb0d4 | 88bbf27deb0b2a1b96985c0a94ff0b7a3d012820 | /comments/urls.py | 5169d91f23cdfb37b4c1a970c820cd911c5d89f6 | [] | no_license | Code-Community99/Hiq-django | e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0 | af62622648ad88f6e8d94e86a8dc5d6660e3bbe2 | refs/heads/master | 2022-12-14T01:12:45.218318 | 2020-05-18T23:29:35 | 2020-05-18T23:29:35 | 233,811,384 | 2 | 1 | null | 2022-12-08T03:34:53 | 2020-01-14T10:02:55 | JavaScript | UTF-8 | Python | false | false | 228 | py | from django.conf.urls import url
from . import views
app_name = "coms"
urlpatterns =[
url(r"(?P<feedid>[\d]+)" , views.commentview , name = "comments"),
url(r"addcomment/" , views.addcomment , name = "addcomment"),
]
| [
"duncansantiago18@gmail.com"
] | duncansantiago18@gmail.com |
1c5dd29b791da93e118e62aa1aff263d45867b3c | 32dda10669e459cf37c31f426fa709001d2c75b0 | /leetcode_cn/contest/solved/biweekly81_b.py | aa2068ae69995bb1f0883b20a3d1b4a0caca846b | [] | no_license | fastso/learning-python | 3300f50d06871245d0bfcbe9d201224580f70852 | d21dbd1b9f31017cdb1ed9b9ffd1e53ffe326572 | refs/heads/master | 2023-02-10T14:43:53.726247 | 2023-01-26T10:14:59 | 2023-01-26T10:14:59 | 193,454,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import collections
from typing import List
class Solution:
def countPairs(self, n: int, edges: List[List[int]]) -> int:
graph = [[] for _ in range(n)]
for u, v in edges:
graph[u].append(v)
graph[v].append(u)
ans = total = size = 0
vis = [False] * n
... | [
"fastso.biko@gmail.com"
] | fastso.biko@gmail.com |
1c34d5266e78e11eb739e9e2bf49d89058b048fc | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/plugins/twisted_web2.py | 7ceb5b1ad72eab4a7ac5ace050789823fc26e1ae | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
from zope.interface import implements
from twisted.python.components import backwardsCompatImplements
from twisted.plugin import IPlugin
from twisted.web2.iweb import IResource
class _Web2ResourcePlugin(object):
implements(IPlugin... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
e193ab4842cc9c2e58ca505c989a78ba78b8c441 | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/binary_search/find_num.py | a8382040dbd6cdeacb76af4b06dc5369f734074b | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 886 | py | # baekjoon 1920 수 찾기
import sys
def solution(n_nums, m_nums):
n_nums.sort()
result = [0 for i in range(len(m_nums))]
start = 0
end = len(n_nums)
for i in range(len(m_nums)):
start = 0
end = len(n_nums)
while (end - start) >= 0:
mid = (start + end) // 2
... | [
"galid1@naver.com"
] | galid1@naver.com |
10bddf2a12df3b9a08082cf1cec5778f6a1c0846 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2140/60686/282276.py | e9c3a2b6a475bb9f5c5499428b530bbef9a0d949 | [] | 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 | 670 | py | nums = int(input())
list_num = []
for i in range(nums):
num = int(input())
list_num.append(num)
for i in range(nums):
num = list_num[i]
sum = 0
count = 2
while sum < num:
sum += count
count += 1
if sum == num:
count -= 1
else:
count -= 2
output_list = ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
55566e8035a629304ac775e285c516b826505b87 | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/test/test_minidom.py | 07f2bc350ab5a83f91438922a26fffbc3f0e7bce | [
"ISC",
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 67,356 | py | # test for xml.dom.minidom
import copy
import pickle
from test import support
import unittest
import xml.dom.minidom
from xml.dom.minidom import parse, Node, Document, parseString
from xml.dom.minidom import getDOMImplementation
tstfile = support.findfile("test.xml", subdir="xmltestdata")
sample = ("<?xml version=... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
356b5d8ef5f354f7c73dc79bd4e0122204572324 | 6a8927e8a6597403a07ce9d2c700cdb7cc1e7834 | /tests/tests_support_pyro4/test_async/test_async_proxy.py | 3acf992e6d3eb85e5f81a1ba088e409d7539c979 | [] | no_license | SDRAST/support_pyro | 6263a5b61ef0ca86293171738048bb979f5b3fbd | 1c1c143de30de04e92a7e800b326e7af2a26e1dc | refs/heads/master | 2022-12-16T18:22:03.565901 | 2020-09-13T04:04:53 | 2020-09-13T04:04:53 | 295,199,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,306 | py | import sys
import inspect
import logging
import threading
import unittest
import Pyro4
from support.logs import setup_logging
from support_pyro.support_pyro4.async import async_callback
from support_pyro.support_pyro4.async.async_proxy import AsyncProxy
from support_pyro.support_pyro4.async.async_client import Async... | [
"dshaff001@gmail.com"
] | dshaff001@gmail.com |
3b2b50597b84de2ee5c9007a3bee7d34c43b3458 | 06fa1aefc051ee0d6c325afef13dfcc14e52c6e4 | /ulmo/preproc/utils.py | e8b563926482f88e52238e8b420871528dd8e67d | [] | no_license | cxzhangqi/ulmo | 98e7b2783720b13f0e31a8bdf6ae70ab2a217bc7 | c1c570e75332243b8a2a16a8d6c68544e1ba02cd | refs/heads/main | 2023-06-30T19:15:04.279986 | 2021-07-31T19:45:51 | 2021-07-31T19:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,619 | py | """ Utilities for pre-processing steps"""
import numpy as np
import os
import pandas
import h5py
from skimage.restoration import inpaint as sk_inpaint
from scipy.ndimage import median_filter
from scipy import special
from skimage.transform import downscale_local_mean
from skimage import filters
from sklearn.utils im... | [
"xavier@ucolick.org"
] | xavier@ucolick.org |
e34a69b1b091074804c571b1f969ffa758a9b7cb | 96e6f4cacf6030b1f9310d26be9fb2d31c30aeaa | /gov_track_hk_web/legco/migrations/0004_auto_20160714_1604.py | 1ddd196d0b376d7db0e26fedbf90cfb0d5a007d7 | [] | no_license | g0vhk-io/g0vhk_legco_web | f9ae6355667d9c39aad7f66ad3fb0d1b12663d11 | 94304ffae4c9a84453517b4c4983c90ac16414f5 | refs/heads/master | 2023-01-09T07:19:56.108040 | 2018-09-20T22:43:52 | 2018-09-20T22:43:52 | 92,956,060 | 12 | 9 | null | 2022-12-29T10:25:15 | 2017-05-31T14:42:22 | Python | UTF-8 | Python | false | false | 2,468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('legco', '0003_auto_20160714_1547'),
]
operations = [
migrations.AlterField(
... | [
"howa.wong@gmail.com"
] | howa.wong@gmail.com |
a02755abe4b806776baef51a6f3c2f6de1e712fe | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/aws_s3_bucket_facts.py | 08d7c3992bd05bab7c1167613ba5dc54afb683a6 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 2,716 | py | #!/usr/bin/python
# Copyright (c) 2017 Ansible Project
# 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',
'status': ['prev... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
9e44398b4e1aa9acfed2c454763fd75410ed51ef | 110f2716895105b9c9f387cd093a2991a1eed694 | /python/fundamentals/coolpython.py | 6a3311e372540b52716696e8fd029014a688c995 | [] | no_license | vicvv/cdojo-PythonStack | a8813e1e8a8f82fa4c455566793297e799fc75f3 | 42f67512725c60fd2ee64422d46d80e8d76269cd | refs/heads/master | 2020-08-27T17:08:30.024566 | 2020-03-07T22:40:53 | 2020-03-07T22:40:53 | 217,440,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # How to merge two dictionaries
# in Python 3.5+
x = {'a': 1, 'b': 2}
y = {'b': 3, 'c': 4}
z = {**x, **y}
# In Python 2.x you could
# use this:
z = dict(x, **y)
# How to sort a Python dict by value
# (== get a representation sorted by value)
xs = {'a': 4, 'b': 3, 'c': 2, 'd': 1}
print(sorted(xs.items(), key=lambd... | [
"xolosno270@gmail.com"
] | xolosno270@gmail.com |
56ae2e393bdae7021bb42c73f343b096028afb10 | 5d61120cf73592e2decffe1ad5a61cfa91a66002 | /quarry/net/server.py | ba68f8506704cc0ad6a3405cb43836b7f8f8523c | [
"MIT-feh"
] | permissive | BonemealPioneer/quarry | 1abf39b480edb82160b99dc025eeddd6e21dd0f2 | dc39f52d3a6528b20f32d61db3c518a66b348535 | refs/heads/master | 2021-01-12T11:57:21.640582 | 2016-07-20T22:50:20 | 2016-07-20T22:50:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,025 | py | import base64
from twisted.internet import reactor, defer
from quarry.net.protocol import Factory, Protocol, protocol_modes
from quarry.mojang import auth
from quarry.utils import crypto, types
from quarry.utils.errors import ProtocolError
class ServerProtocol(Protocol):
"""This class represents a connection wi... | [
"barney.gale@gmail.com"
] | barney.gale@gmail.com |
d425a2bc052479bc5ca305255f199945d7fa5f0c | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/hood/DLHoodAI.py | 09ed6f9c25eb0df1125a4357fb057e3ce990404b | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 2,008 | py | #Embedded file name: toontown.hood.DLHoodAI
from toontown.classicchars import DistributedDonaldAI
from toontown.hood import HoodAI
from toontown.safezone import DistributedTrolleyAI
from toontown.toonbase import ToontownGlobals
from toontown.ai import DistributedResistanceEmoteMgrAI
from toontown.ai import DistributedT... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
cd6be46c9c62d798979e883b81e723ed69b705a0 | 7af00fd5131a296ab7377d2bd568ae8911e905f5 | /examples/signal/05_annotations.py | a255ce96a9adc6ac695bd7ff2277034fd915626d | [
"BSD-3-Clause"
] | permissive | MunsuDC/visbrain | 41333ae6c0c8d397cb95d8824949d771d50c11e8 | 8d85426a3fc28463ee2ecfc6559db37301a6d8b4 | refs/heads/master | 2021-07-10T11:41:45.775450 | 2017-09-23T08:23:44 | 2017-09-23T08:23:44 | 105,835,704 | 0 | 0 | null | 2017-10-05T01:03:11 | 2017-10-05T01:03:11 | null | UTF-8 | Python | false | false | 986 | py | """
Import, save and add annotations
================================
Import annotations from a text file and annotate trials.
All annotations are added to the Annotations/ tab. Then, select a row of the
table to jump to it.
Download an example of annotation file :
https://drive.google.com/file/d/0B6vtJiCQZUBvMG95RH... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
c47fa74b4ac194fa61ab3c8549846e0eb38e75a5 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/8868dab5adaf4d96bfe4935f495b73cf.py | e30dcdd11527a470fd2008e772b8e6a071715c90 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 330 | py | import re
def hey(what):
if not re.search(r'\w',what):
reply = 'Fine. Be that way!'
elif re.search(r'[A-Z]', what) and not re.search(ur'[a-z\u00E0-\u00FF]', what):
reply = 'Whoa, chill out!'
elif re.search(r'\?$', what):
reply = 'Sure.'
else:
reply = 'Whatever.'
ret... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
af17e769d85b8cf8989de1eb663351725a39f54a | d5a20de424fb6b617343300740284ba1829e32e9 | /catapi/models/abc/model_abc.py | 2944cc449e26b59b416efff95f56cc08009e6acf | [
"MIT"
] | permissive | ephreal/catapi.py | 54e338e08f7a3c76690992fd186d0d6e40167a7f | f1f39536a659b97afb7397665b7c0814b9ebc802 | refs/heads/master | 2023-08-10T00:12:25.054330 | 2023-07-20T15:45:29 | 2023-07-20T15:45:29 | 258,025,793 | 2 | 0 | MIT | 2023-07-20T15:45:31 | 2020-04-22T21:38:30 | Python | UTF-8 | Python | false | false | 820 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2020 Ephreal under the MIT License.
To view the license and requirements when distributing this software, please
view the license at https://github.com/ephreal/catapi/LICENSE.
"""
from abc import ABC
class Model(ABC):
"""Abstract class for all database models.
All ... | [
"tjannx@hotmail.com"
] | tjannx@hotmail.com |
0d3db9b06319a987bc56d46819be4f7062cbcbdf | 14729df6a2a18565466a288cf70172d03b08035b | /submissions/keras_inceptionResNetV2_finetunning_imbalanced4/batch_classifier.py | 172b5c0c35f816f0e1cd11930dbc824494fcdc7b | [] | no_license | vfdev-5/pollenating_insects_3 | 2228c5fe6aa62bad680b0a9aaddaf4432204e7f8 | 8112faebb51b4d9e8e38c78ed0952f1e9e1bc796 | refs/heads/master | 2021-07-19T09:51:59.101767 | 2017-10-24T23:47:40 | 2017-10-24T23:47:40 | 107,047,266 | 2 | 0 | null | 2017-10-15T20:35:37 | 2017-10-15T20:35:37 | null | UTF-8 | Python | false | false | 19,926 | py | from __future__ import print_function
import os
from collections import defaultdict
from datetime import datetime
import types
from sklearn.model_selection import StratifiedShuffleSplit
from joblib import delayed
from joblib import Parallel
import numpy as np
import cv2
from keras.models import Model
from keras.lay... | [
"vfdev.5@gmail.com"
] | vfdev.5@gmail.com |
54c20598461a382629f068d18d5f14d7953058b0 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/apimanagement/v20210401preview/open_id_connect_provider.py | 809c11babcd6f0c9094e2db3cc634461349522a0 | [
"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 | 14,612 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
88052e69a1df622aaadc61caf0db43e4129e1a8a | b616f2c54b04e5ab09a11a9153e0f5e5c005add2 | /backend/core/tests/test_endpoints.py | b9f74af34e982ca2d33f907d5e60ad6f5d0b84e7 | [
"BSD-2-Clause"
] | permissive | getlinky/linky | 34bfb0afa0d6170ac87535545b4633515ef9ae4e | fe76df7149a0d15818bf5904e66e98a2e9affeb7 | refs/heads/master | 2021-09-06T17:30:44.825157 | 2018-02-09T02:48:16 | 2018-02-09T02:48:16 | 72,317,205 | 5 | 1 | BSD-2-Clause | 2018-02-06T02:48:54 | 2016-10-30T00:48:37 | Vue | UTF-8 | Python | false | false | 6,523 | py | from django.test import TestCase
from rest_framework.test import APIClient
from rest_framework import status
from freezegun import freeze_time
from core.models import MyUser
from collections import OrderedDict
class TestEndPoints(TestCase):
def setUp(self):
client = APIClient()
self.email = 'te... | [
"steve@dignam.xyz"
] | steve@dignam.xyz |
1cde4d438e0406b4643c5702ee74978170d8fc15 | be3ade838f5e43c6fb6fa5a994a568490b89ccea | /podship/pod/components/user/__init__.py | 2787b54151ac312fc1a5deed644475cd253ddb30 | [
"Apache-2.0"
] | permissive | piraz/podship | 6f1be97ae28045a221451fad60bc9b5ed409c678 | 9e858df652d9cbc8e4143f6aeb983879aeaddf9b | refs/heads/develop | 2020-05-20T18:31:08.696765 | 2017-07-10T05:40:19 | 2017-07-10T05:40:19 | 44,075,246 | 0 | 0 | null | 2016-08-04T05:23:13 | 2015-10-12T00:26:49 | Python | UTF-8 | Python | false | false | 882 | py | #!/usr/bin/env python
#
# Copyright 2015-2017 Flavio Garcia
#
# 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... | [
"piraz@candango.org"
] | piraz@candango.org |
0876e9f8cfee8fd942ff2d124987c00bce470af3 | d3720c1848fb69a05121fcd378a12a6d1921f303 | /4_LEETCODE/1_DataStructure/5_TREE/4_UnionFind/最长连续序列.py | 4eac8df3848f0a0010af4af0f2b85d5a89d82989 | [] | no_license | fzingithub/SwordRefers2Offer | 32a44e87c178bafc554108f1d1e479e18b0ee028 | 57f303aa6e76f7c5292fa60bffdfddcb4ff9ddfb | refs/heads/master | 2023-04-08T09:35:02.082121 | 2023-03-28T00:06:00 | 2023-03-28T00:06:00 | 219,700,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | class Solution:
def longestConsecutive(self, nums):
pre_dict = {}
for i in nums:
pre_dict[i] = 1
res = 0
for i in pre_dict:
if i - 1 not in pre_dict:
y = i + 1
while y in pre_dict:
y += 1
r... | [
"35060424+fzingithub@users.noreply.github.com"
] | 35060424+fzingithub@users.noreply.github.com |
158a73a59c24c7b87a6cc8ca73249d0e5facbd37 | 9a1e5a9a08984a6fa05ce726880e4dae614bf266 | /libraries/powerups.py | f32c9a6333d1334e97d0bd577230057903fd6790 | [
"Apache-2.0"
] | permissive | flaper87/moronians | 972151e5171031c14701b7486b6538c0670e6c8d | bc8a74392551cc9cf2f2515820aa41ca7b01500e | refs/heads/master | 2020-12-03T00:37:43.234100 | 2015-04-21T13:54:22 | 2015-04-21T13:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | from __future__ import absolute_import
from random import randint
import pygame
class SpritePowerUp(object):
def __init__(self, game):
self.game = game
self.active = False
self.sound = pygame.mixer.Sound(self.sound_file)
self.image = pygame.image.load(self.image_file)
sel... | [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
17c2531610502128d41c26337ba3d54e9bdabc52 | 815061e8c4222d9fc1c419de614d8f0fb8088645 | /websauna/system/admin/__init__.py | 690f1676245da906ecec562b88d949742eaf3123 | [
"MIT",
"Apache-2.0"
] | permissive | maikroeder/websauna | 8aad02ae1b6f03707668d53e21fae71bf0f29bce | fd266cf5e4761cd4c1f3e33be47ad8358b4c6afa | refs/heads/master | 2021-01-13T08:21:03.911177 | 2016-10-23T01:02:14 | 2016-10-23T01:02:14 | 71,771,112 | 0 | 1 | null | 2016-10-24T09:04:05 | 2016-10-24T09:04:04 | null | UTF-8 | Python | false | false | 63 | py | """Admin interface and automatically generated model admins.""" | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
0ae2d3812652e4e7f16b64dd22c1a6cb60824e46 | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/GoodGuide/__init__.py | b13286a162029b4c12a8e928ce348d4c80ce15ec | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from QueryByUPC import *
from Query import *
from QueryByID import *
| [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
7a2742e30432a7f427aab6c44508645ece9d5094 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/02608/2608.py2.py | 9c250aaa658af32d3544d1330cf31520c3942dd1 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
e7dbde6d87cd298779778673f9b91cccb696d26d | 3e660e22783e62f19e9b41d28e843158df5bd6ef | /script.me.syncsmashingfromgithub/smashingfavourites/scripts/install/old scripts/install4.py | e68357c8d7cceefbe27b8dc59af748196549607f | [] | no_license | monthou66/repository.smashingfavourites | a9603906236000d2424d2283b50130c7a6103966 | f712e2e4715a286ff6bff304ca30bf3ddfaa112f | refs/heads/master | 2020-04-09T12:14:34.470077 | 2018-12-04T10:56:45 | 2018-12-04T10:56:45 | 160,341,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # -*- coding: utf-8 -*-
import xbmc
import os
def printstar():
print "***************************************************************************************"
print "****************************************************************************************"
printstar()
print "install3.py has just been started... | [
"davemullane@gmail.com"
] | davemullane@gmail.com |
c234a37a4b0984c91c1a2efca9609cd65ac0d814 | 276e60f69b51de7c50a333ce12212c823aeef71a | /char-lm-ud-stationary-vocab-wiki-nospaces-bptt-two-sequences.py | 611a92efa5f1fcbec0a767c8bb003d29c0954b3e | [] | no_license | m-hahn/probing-char-lms | e6ea3b00f82326140e28656290447d6c998278d6 | 5ab45883cefb1f69788e441b60d56d886833b3e4 | refs/heads/master | 2020-03-21T20:50:58.949446 | 2019-04-29T03:06:26 | 2019-04-29T03:06:26 | 139,032,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,818 | py | from paths import WIKIPEDIA_HOME
from paths import CHAR_VOCAB_HOME
from paths import MODELS_HOME
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--language", dest="language", type=str)
parser.add_argument("--load-from", dest="load_from", type=str)
parser.add_argument("--save-to", des... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
95ef215eda0260b6ef1612dda0dfbfebd5ffcb9a | 7d8022661a756f77f715ee4d099fb17cb9da671a | /quantlab/feature/zoo/MACD_Daily.py | 096bc7d8fe96eee9658ab971df1996a5111186c7 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from quantlab.feature import *
from quantlab.feature.ops import *
class MACD_Daily(PersistentFeature):
description = 'MACD由负转正,是买的信号。MACD由正转负,是卖的信号'
formula = 'MACD=2*(DIFF-DEA)'
granularity = 'day'
def _create_feature(self, instrument_id, time_range):
return Sub(DIFF_Daily(), DEA_Daily()).l... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
cbee18838ff83c63943e96cb868680f54ea52657 | 5210993914691c70076be979aa5c57c33d5d3bc4 | /Programming0-1/Week_5/1-On-Budget/budget.py | bf46ab42e1b27af4039d0c44c64dec2dac84e03c | [] | no_license | presian/HackBulgaria | d29f84ab7edc85a4d8dfbf055def7d0be783539e | 8bc95bb31daeb1f5a313d25b928f505013f5f0b0 | refs/heads/master | 2021-01-10T04:38:05.759005 | 2015-10-15T07:05:21 | 2015-10-15T07:05:21 | 36,889,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def on_budget(books, budget):
bookwithbudget = 0
books = sorted(books)
result = {}
for i in range(0, len(books)):
if budget >= books[i]:
budget -= books[i]
bookwithbudget += 1
else:
laon = sum(books[i:]) - budget
result = {
... | [
"presiandanailov@gmail.com"
] | presiandanailov@gmail.com |
724973561a774e308b2bcddb4641ef09d62f833e | 8baa00a8c04f64e983532fa4a420c68f490bdaa8 | /devel/lib/python2.7/dist-packages/pal_detection_msgs/msg/_LegDetections.py | 02537b25099d85c22389670d0fb1960dfff7cf10 | [] | no_license | samuel-cavalcanti/TIAGo | e52c778f40ba8e03af21ba275b45b7faac5625b3 | 575533f713338b28ee5709279a874c9e374d77bd | refs/heads/master | 2021-04-06T01:32:09.090002 | 2018-03-10T23:51:45 | 2018-03-10T23:51:45 | 124,707,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | /home/samuel/tiago_public_ws/devel/.private/pal_detection_msgs/lib/python2.7/dist-packages/pal_detection_msgs/msg/_LegDetections.py | [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
0eeecada4cf99ed4ddc2b5d46288feba4aa29377 | 33c51931bc7d6f73da5a64ecc0e7cb751e7fc62c | /karesansui/gadget/console.py | 8abe90afa7c538422e50ff3d3fe6f66fade94404 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | qmutz/karesansui | e86ed107f313f8c4140797a2c3250c5f16b524c2 | f4ba1cf6f88cf76c3e4dbc444139d73134f7c9d1 | refs/heads/develop | 2023-05-06T14:52:38.668631 | 2019-02-01T03:57:00 | 2019-02-01T03:57:00 | 316,682,704 | 0 | 0 | MIT | 2021-06-03T14:59:45 | 2020-11-28T07:43:33 | null | UTF-8 | Python | false | false | 3,481 | py | # -*- coding: utf-8 -*-
#
# This file is part of Karesansui.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | [
"taizo@karesansui-project.info"
] | taizo@karesansui-project.info |
1d9bf7a086bfdf1c48292fb0a97e46dd41edfd0e | 03330fc41b226e3b597676944b335a77f1979965 | /ezdxf/drawing.py | 9fb1de90ef9062c68f08d37dc884b5a540aef237 | [
"MIT"
] | permissive | ols3er/ezdxf | b00076742022b21118d3645685205fbdae419b38 | a01ed68ea45f25a231e470d239aefed73ab285d5 | refs/heads/master | 2020-05-29T16:57:18.235926 | 2019-02-24T03:41:09 | 2019-02-24T03:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,074 | py | # Created: 11.03.2011
# Copyright (c) 2011-2018, Manfred Moitzi
# License: MIT License
from typing import TYPE_CHECKING, TextIO, Iterable
from datetime import datetime
import io
import logging
from itertools import chain
from ezdxf.database import EntityDB
from ezdxf.lldxf.const import DXFVersionError, acad_release, BL... | [
"mozman@gmx.at"
] | mozman@gmx.at |
a386ca5a08e120748c25afcf59da8080f2515288 | fce8fffcd05a77b42b64a867f6a49f77287c28f6 | /pyconde/schedule/management/commands/schedule_xml_export.py | 14254fd7babe607c5f4187417064e69698f46dfb | [
"BSD-3-Clause"
] | permissive | EuroPython/djep | e0ffea25dbc27e1380a0ad5e4218dcd95c4a2e50 | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | refs/heads/develop | 2016-09-08T02:41:40.835043 | 2014-08-20T21:08:22 | 2014-08-20T21:08:22 | 14,085,218 | 5 | 4 | null | 2014-07-26T08:01:01 | 2013-11-03T12:46:07 | Python | UTF-8 | Python | false | false | 1,453 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from ...exporters import XMLExporter
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('--out', '-o',
... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
400fa3d1eb8931d24617b347a7cfa474b71393de | 5ce93a6950ca8eb7094667334a6b773dbf069f65 | /poem/Poem/poem/migrations/0004_delete_metrics.py | a2b0943f1140772469b91911ed2b9a48379d6829 | [
"Apache-2.0"
] | permissive | ARGOeu/poem-2 | 07a26f62c94af081f830eb1103d0b39c4a161113 | ca80af551262e206678866eb8c2095fd19b5444d | refs/heads/master | 2023-08-10T16:15:56.340426 | 2023-08-03T11:05:38 | 2023-08-03T11:05:38 | 181,649,977 | 1 | 4 | NOASSERTION | 2023-09-11T10:31:26 | 2019-04-16T08:42:22 | JavaScript | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.2.5 on 2019-10-10 15:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('poem', '0003_metric_change_group_field'),
]
operations = [
migrations.DeleteModel(
name='Metrics',
),
migrations.AlterMo... | [
"katarina.zailac@gmail.com"
] | katarina.zailac@gmail.com |
41db3c738cc174ed88663c308b97e4345ae38fa4 | 72760c89712f157d3039083c8da7c0bdcd1d1b14 | /except_subway.py | ec1ac8826e200519822d89581262787b08d20ebc | [] | no_license | mgh3326/seoul_subway_parse | 4db67fb5cb7f016378e57f33ec0d64951be9f1f0 | 9c12442ec34e10342d6a3b5dc8c879f03f00ffea | refs/heads/master | 2022-07-11T06:36:19.598464 | 2019-05-14T06:43:20 | 2019-05-14T06:43:20 | 186,560,109 | 0 | 0 | null | 2020-02-20T12:57:53 | 2019-05-14T06:36:51 | Python | UTF-8 | Python | false | false | 525 | py | import json
import operator
from model import *
from util import my_dict
file_name = "./data/subway.json"
with open(file_name, encoding="utf-8") as json_file:
json_data = json.load(json_file)
line=3
my_list=["연신내","충무로","신사","남부터미널","양재","압구정","고속터미널"]
name_list=[]
for i in json_data['lines'][line- 1]["stations... | [
"mgh3326@naver.com"
] | mgh3326@naver.com |
c44cf95fd7682568966b1a5f2b2c2153245b9a86 | 5a047b77a717f24e00253fa1fc0a1aae2d1cff1f | /nexson/validation/_badgerfish_validation.py | 0707a55db05bca32134315eb03f6af6faf1cdb31 | [
"BSD-2-Clause"
] | permissive | OpenTreeOfLife/nexson | d02e3d086393abafc0ce06c6cbbffb6ab4c723fe | d2c803b58300ed5024bc1be98e280cfa8fefeb2e | refs/heads/main | 2021-05-25T18:36:43.365012 | 2021-02-02T17:21:21 | 2021-02-02T17:21:21 | 253,871,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,746 | py | #!/usr/bin/env python
from .helper import _NEXEL, error_return
from .err_generator import (gen_InvalidKeyWarning,
gen_MissingCrucialContentWarning,
gen_MissingMandatoryKeyWarning,
gen_MultipleRootsWarning,
ge... | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
f160f384e5b75dec6ceb3c204cfa488739fef7a8 | cb583e6d4b79eca522cd6365f1ef60d2828a941c | /ambry/partition/hdf.py | 8165c2285d17d88dff3a30123a57551c22120ac4 | [
"BSD-2-Clause"
] | permissive | mihailignatenko/ambry | c93e8f8d933e700b75530a32f584267cb1e937fa | faea74eee1449896e64d1945f3e814936fe9c276 | refs/heads/master | 2021-01-21T15:58:15.791663 | 2015-05-03T04:53:58 | 2015-05-03T04:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | """Copyright (c) 2013 Clarinova.
This file is licensed under the terms of the Revised BSD License,
included in this distribution as LICENSE.txt
"""
from . import PartitionBase
from ..identity import PartitionIdentity, PartitionName
class HdfPartitionName(PartitionName):
PATH_EXTENSION = '.h5'
FORMAT = 'hd... | [
"eric@clarinova.com"
] | eric@clarinova.com |
ff9d371fdbad1aa7c56a86e979cc63aa2646fad4 | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /algorithms/dynamic_programming/01_knapsack.py | 652c65e9c1a4d6c649b164c88859ac23106ab165 | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 607 | py | def knapsack(values, weights, total):
total_items = len(weights)
rows = total_items + 1
cols = total + 1
# rows are the number of items
# columns are the values of weights required
t = [[0 for i in range(cols)] for i in range(rows)]
for i in range(1, rows):
for j in range(1, cols... | [
"prabhupant09@gmail.com"
] | prabhupant09@gmail.com |
eafdd8667e51a45e6e9cec8bab53d6f4f67848a3 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/monoHWW/SemiLep/Full2016_v7/darkHiggs/plot_inv.py | 138c1a3a3fdd742d2bc263269a4365cc075fc60c | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 9,453 | py | groupPlot['Higgs'] = {
'nameHR' : "SM Higgs",
'isSignal' : 0,
'color': 632+3, #kRed +3
'samples' : ['Higgs']
}
groupPlot['multiB'] = {
'nameHR' : 'multiB',
'isSignal' : 0,
#'isSignal' : 1,
'color': 857, # kAzure -3
#'samples' : ['WW', 'WWewk', 'ggWW', 'VBF-V', 'WZqcd', 'WZewk', ... | [
"senne.vanputte@student.uantwerpen.be"
] | senne.vanputte@student.uantwerpen.be |
6a82094a03228932f32b8e17af84af6f2852cd15 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_Thanabhat_Coin_Jam.py | 555a04698c367da81b78fd268c65f4dd42787daa | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,326 | py | PP = 1000000
isPrime = [True] * 1000000
isPrime[0] = False
isPrime[1] = False
prime = []
for i in range(PP):
if isPrime[i]:
for j in range(i * 2, PP, i):
isPrime[j] = False
for i in range(PP):
if isPrime[i]:
prime.append(i)
lenPrime = len(prime)
m = 32769
N = 16
J = ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d03a4b298be215da05cadd76fb7643b5fec10dcb | c06efd90533c51c2b29b7e92cd13723388de25ee | /actions/listExtensionsV1beta1ReplicaSetForAllNamespaces.py | 8ea1a675ab8cfbbe738b4ffba67d7aebeffabca0 | [] | no_license | ajohnstone/stackstorm-kubernetes | 490e4a73daad3713d7c5b5b639d5f30ff1ab3e58 | 99ffad27f5947583a2ab1b56e80c06003d014c47 | refs/heads/master | 2021-01-11T23:29:49.642435 | 2016-12-07T13:20:34 | 2016-12-07T13:20:34 | 78,588,572 | 0 | 0 | null | 2017-01-11T00:48:59 | 2017-01-11T00:48:59 | null | UTF-8 | Python | false | false | 1,013 | py | from lib import k8s
from st2actions.runners.pythonrunner import Action
class listExtensionsV1beta1ReplicaSetForAllNamespaces(Action):
def run(self,config_override=None,fieldSelector=None,labelSelector=None,pretty=None,resourceVersion=None,timeoutSeconds=None,watch=None):
myk8s = k8s.K8sClient(self.confi... | [
"andy@impulsed.net"
] | andy@impulsed.net |
eeda65ffe63a01ae150d2bd4ade10deb409b3b17 | 4cdad8dc1e0f0314ef9dbc850b23be4116ce9142 | /nbgrader/html/formgrade.py | d5cf7fcfc5a729fb68d4833147d33ff0c40e775e | [
"BSD-3-Clause"
] | permissive | scshepard/nbgrader | c667ae48f45e7bf30ed005b9c522cd9a0d7d86ec | 477a1473b088a9c6dcb326ff79c6acc93648da77 | refs/heads/master | 2020-12-24T18:23:04.045526 | 2015-01-24T04:12:32 | 2015-01-24T04:12:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,205 | py | import json
import os
from flask import Flask, request, abort, redirect, url_for, render_template, send_from_directory
app = Flask(__name__, static_url_path='')
@app.route("/static/<path:filename>")
def static_proxy(filename):
return send_from_directory(os.path.join(app.root_path, 'static'), filename)
@app.rou... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
6beb7803a48116bb92cb2f53d9b107b44249537d | 4b38257d6dc0f77b60629c33d173ec65ef06d60d | /Glib/base/__init__.py | ff1d9cebc26a43e8e0fc77135faac1499ec9101a | [
"MIT"
] | permissive | HamletWantToCode/Graphlib | 4d764115e556e674501d9e18b51b37123ad7ea68 | a4e06658e02241f699e1bfb0ecae5005c0a7773e | refs/heads/master | 2022-01-10T04:34:13.271381 | 2019-07-23T13:14:12 | 2019-07-23T13:14:12 | 198,343,035 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from .base_data_loader import *
from .base_model import *
from .base_trainer import *
__all__ = ['BaseDataLoader', 'BaseTrainer', 'BaseModel'] | [
"hongbinrenscu@outlook.com"
] | hongbinrenscu@outlook.com |
c91efb86180c8b52f8b1be704eb49e5bcf7f2bdd | 537d28fb2142331e27c84ebf2c16bad77aceb24e | /cslee201909/ml/m14_pipeline.py | 134b4a9373ac595f2b5f8c0e95af82a40a07c47a | [] | no_license | gema0000/bit2019 | c27c3cec8d8d3a0907ade41523ce1c5ee86337b6 | 2f44ad3956b387186935374d9a488ad40a13bcaf | refs/heads/master | 2020-07-03T05:19:41.051447 | 2019-10-26T23:56:25 | 2019-10-26T23:56:25 | 201,796,021 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from sklearn.model_selection import KFold
from sklearn.model_selection import GridSearchCV
# 붓꽃 데이터 읽어 들이기
iris_data = pd.read_csv("./_data/csv/iris2.csv", encoding="utf-8")
... | [
"gema0000@naver.com"
] | gema0000@naver.com |
c727234540a254e6a3183a8f8e92d4e2b0fe2972 | 7e97ed715d2f624c2a8228bc4a6734835815a36a | /tutorial/tutorial/tutorial/settings.py | c334d3734425c3853dafacf9b5c8beb6ced34d2f | [] | no_license | Victor-Alexandru/django-rest-framework-tutorial | 8d4bcc97c296ea242cbd31623445a30307be91bc | a4f8a72eeac6f1895f2b4b4bdefa2eec55198303 | refs/heads/master | 2022-10-20T09:18:40.765192 | 2019-09-09T19:58:43 | 2019-09-09T19:58:43 | 206,147,842 | 0 | 1 | null | 2022-10-07T04:38:23 | 2019-09-03T18:40:41 | Python | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"victor21cuciureanu@gmail.com"
] | victor21cuciureanu@gmail.com |
5b187fc6c8876e6e4b4c61eef7da8a6969054136 | 8ec910de801b424540abb4e6e955838a287663b6 | /CursoPython/Unidad8/Ejemplos/funcion_modulo_os_mkdir.py | 616fcfa5026799745a40dec0bed9ea8bac0a3455 | [] | no_license | hector81/Aprendiendo_Python | f4f211ace32d334fb6b495b1b8b449d83a7f0bf8 | 9c73f32b0c82f08e964472af1923f66c0fbb4c22 | refs/heads/master | 2022-12-28T03:41:20.378415 | 2020-09-28T09:15:03 | 2020-09-28T09:15:03 | 265,689,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # Crear un directorio.
# >>>os.mkdir(path[, modo]) | [
"noreply@github.com"
] | hector81.noreply@github.com |
e36dfec2fd2cbe9e83e691dc4f69c4b18be445f2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sparred.py | 14df662e18848168369dec012cf5df7a38c33550 | [
"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 | 228 | py |
from xai.brain.wordbase.nouns._spar import _SPAR
#calss header
class _SPARRED(_SPAR, ):
def __init__(self,):
_SPAR.__init__(self)
self.name = "SPARRED"
self.specie = 'nouns'
self.basic = "spar"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
869781c170d58ca6450f8782c7fb04109db24016 | 740af83394e19b1e68c08dc0fdbec8c44ac6216e | /jesse/store/state_tickers.py | 09012ac144f9b324c25b7cb9c3155f42376b4c3c | [
"MIT"
] | permissive | dinet/jesse | 9a6b60c48b4f51a09e7092bf66df446763dd7b21 | e6f59fba3f56b01b12bf6c1adf9829afe8dcd2df | refs/heads/master | 2022-06-22T21:06:42.348993 | 2020-05-09T19:45:35 | 2020-05-09T19:45:35 | 262,654,825 | 1 | 0 | MIT | 2020-05-09T20:38:11 | 2020-05-09T20:38:10 | null | UTF-8 | Python | false | false | 1,489 | py | import numpy as np
import jesse.helpers as jh
from jesse.config import config
from jesse.libs import DynamicNumpyArray
from jesse.models import store_ticker_into_db
class TickersState:
def __init__(self):
self.storage = {}
def init_storage(self):
for c in config['app']['considering_candles']... | [
"fischersully@gmail.com"
] | fischersully@gmail.com |
edb208055d9f03eef13479e9dcdc5a859b0e13a5 | 48517a9b7ec7b0f0bf0a03291b7d1e3def751c0a | /Pibow/double_ripple_2.py | 16edbadd21fd2d234819ef9219320669253d2407 | [
"MIT"
] | permissive | Breakfast-for-Pigeons/Unicorn-HAT | 1ae033bf11c05b9cc739b1eacfc77665506e0bc8 | 9ff1388ee627a8e81f361929e9e9b708db4e2832 | refs/heads/master | 2021-06-06T12:22:48.162031 | 2020-10-22T17:31:51 | 2020-10-22T17:31:51 | 74,648,524 | 1 | 0 | null | 2018-10-02T17:37:31 | 2016-11-24T07:28:23 | Python | UTF-8 | Python | false | false | 1,957 | py | #!/usr/bin/python3
"""
Double Ripple 2 - Pibow
Retrieves the rainbows and sends them to the ripple function.
With the GPIO pins at the top of the Raspberry Pi, the rainbows ripple
from the top left to the bottom right.
....................
Functions:
- double_ripple_2: Gets 9 rainbows and sends them to the double ri... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
b691322ca389d3352de0829d3427d99f68930e9e | 8d4abbc8bfeb53a112f62d86f214d39deb81d0d6 | /test/test_concurrency.py | 95af8edc3295c30a491c5019abbbd13c44e7e2ec | [
"MIT"
] | permissive | farisachugthai/viconf | 8dafd10445a5a289aee3d0c899fc2dca7ba20ae3 | 6d8dece6a17cc53616d3b61845232b29fc1a5032 | refs/heads/master | 2023-01-05T22:29:02.838556 | 2021-09-10T10:01:12 | 2021-09-10T10:01:12 | 148,306,078 | 19 | 2 | MIT | 2022-12-27T15:38:32 | 2018-09-11T11:22:37 | Vim script | UTF-8 | Python | false | false | 797 | py | import sys
from threading import Timer
from pathlib import Path
root = Path().cwd().parent
sys.path.insert(0, root.joinpath("python3").__fspath__())
from pynvim import Nvim
def test_interrupt_from_another_thread(vim):
timer = Timer(0.5, lambda: vim.async_call(lambda: vim.stop_loop()))
timer.start()
ass... | [
"farischugthai@gmail.com"
] | farischugthai@gmail.com |
44377b4ab8cc8fd72f1a15fb709a37a6606a0c74 | dc182283f6eed3b5aaa45c7da61bdc07b41ee161 | /third_party/android_deps/libs/org_jetbrains_kotlin_kotlin_stdlib_common/3pp/fetch.py | 1f768a0321c5a7d09e7d3f57d668c8414a539864 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"JSON"
] | permissive | KHJcode/chromium | c2bf1c71363e81aaa9e14de582cd139e46877e0a | 61f837c7b6768f2e74501dd614624f44e396f363 | refs/heads/master | 2023-06-19T07:25:15.090544 | 2021-07-08T12:38:31 | 2021-07-08T12:38:31 | 299,554,207 | 1 | 0 | BSD-3-Clause | 2020-09-29T08:33:13 | 2020-09-29T08:33:12 | null | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/env python
# Copyright 2021 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.
# This is generated, do not edit. Update BuildConfigGenerator.groovy and
# 3ppFetch.template instead.
from __future__ import print_fun... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
22388b1f4e766f0b28a8ed9af660ac22d44bc720 | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/066/C.py | 36ca1befa08b47473e0ec85e1671ad56faf6c94a | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from collections import deque
def main():
n = int(input())
a = [0] + list(map(int, input().split()))
b = deque(maxlen=n+1)
for i in range(1,n+1):
if (i % 2 == 0 and n % 2 == 0 ) or (i % 2 != 0 and n % 2 != 0 ):
b.appendleft(a[i])
else:
b.append(a[i])
print(*b... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
951ffe1742d6dea2fe80397241bb558fa7801758 | d09cd6b13fd4368f772c0cb563d8e70c959f345d | /bot/wikidata/museum_rotterdam_import.py | 503d856a78d2e643e3d64838360d5ae4507de26e | [] | no_license | jjmhtp/toollabs | c9caaa3e680f21b188248a9ba069921ca43a4a89 | 98cc2d21c19a4de7c222528f718e8573eb93089f | refs/heads/master | 2021-01-21T17:41:34.868819 | 2017-05-22T11:45:25 | 2017-05-22T11:45:25 | 91,983,002 | 0 | 0 | null | 2017-05-21T19:45:59 | 2017-05-21T19:45:59 | null | UTF-8 | Python | false | false | 4,091 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Bot to import paintings from the Museum Rotterdam to Wikidata.
Using the v2 Europeana api, see
http://www.europeana.eu/portal/en/search?q=what%3A%22schilderij%22&f[DATA_PROVIDER][]=Museum+Rotterdam
http://www.europeana.eu/api/v2/search.json?wskey=1hfhGH67Jhs&profile=minima... | [
"maarten@mdammers.nl"
] | maarten@mdammers.nl |
263d91462565a8149c4f8a4635b38743adcb2bb9 | e87c04d6c2bbba383f9c75620b16f02358039ab5 | /200824알고/2750수정렬하기.py | 39cbb3fdc180d78de59f4410ecb88f726ad6950b | [] | no_license | yoonwoo123/Algorithm | 2bf6e103009572cbcf3abfd783f6c28762529340 | 5d1e76f1bf6c2fc6acb25dc5296d62b2ca453ec6 | refs/heads/master | 2022-06-18T14:06:06.248906 | 2022-05-29T10:41:15 | 2022-05-29T10:41:15 | 221,483,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import sys
sys.stdin = open("수정렬하기_input.txt")
I = sys.stdin.readline
O = sys.stdout.write
N = int(I())
A = []
for _ in range(N):
A.append(int(I()))
A.sort()
O('\n'.join(map(str, A))) | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
24ae4cba1b936c422a02fd2704441ffe3666636d | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/piemenus/pie_redBrushes.py | 2da3dc86c3098e6d4308b2fb57bebd88ed954d6d | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,741 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2010, Dan Eicher.
# All rights reserved.
#
# 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 notice,
# thi... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c12e6cebc96de320736593965ddfdf665f8e1e9a | 039e42db8bb6140f140fc79fa1d0a5e34773c7f2 | /caigou/pipelines.py | 87047797c2843e2c41edf97399a8d80fa4ab9e36 | [] | no_license | hfxjd9527/caigou | 7e0a5179bd3850bc519384ea0f45cbf90f36d23a | 8b538ec9e00253a8fdee51d0571fcc5da9a02728 | refs/heads/master | 2020-05-02T20:21:44.229179 | 2019-03-30T09:37:20 | 2019-03-30T09:37:20 | 178,188,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class CaigouPipeline(object):
def process_item(self, item, spider):
return item
| [
"1725824530@qq.com"
] | 1725824530@qq.com |
d2e30ca19a024d8987a7aeb41e1870b112b1ea6c | 8b56f2c35da6ac0838c35a2b6c8a6f6cb1cacb7b | /pycoin/tx/TxIn.py | e6d930b9b9bf5b7505b074fa8df7f112d7ef1c5f | [
"MIT"
] | permissive | SF-Bitcoindevs/pycoin | a7c097be214ad9bdbf91c889d912d17c94234c9b | e818d37965dc0aa318b4ae0293eb10db0f92e3c7 | refs/heads/master | 2021-01-18T10:06:42.503743 | 2014-07-17T01:36:32 | 2014-07-17T01:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | # -*- coding: utf-8 -*-
"""
Deal with the part of a Tx that specifies where the Bitcoin comes from.
The MIT License (MIT)
Copyright (c) 2013 by Richard Kiss
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 t... | [
"him@richardkiss.com"
] | him@richardkiss.com |
6f4307e1eccbc89de540856d040d9bd4d4162424 | 53ccc4f5198d10102c8032e83f9af25244b179cf | /SoftUni Lessons/Python Development/Python Advanced January 2020/Python Advanced/12. EXERCISE FUNCTIONS ADVANCED/01. Arguments Length.py | 0e52a1696397cc5d429dfa8745447324f4dd47d4 | [] | no_license | SimeonTsvetanov/Coding-Lessons | aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d | 8f70e54b5f95911d0bdbfda7d03940cb824dcd68 | refs/heads/master | 2023-06-09T21:29:17.790775 | 2023-05-24T22:58:48 | 2023-05-24T22:58:48 | 221,786,441 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | def args_length(*args):
return len(args)
print(args_length(1, 32, 5))
print(args_length("john", "peter"))
print(args_length([1, 2, 3]))
| [
"noreply@github.com"
] | SimeonTsvetanov.noreply@github.com |
f5748f7cadeda62395a0681531f7abbe19698311 | 3345eb032afa159a5b4b32fe0b62e4435dac523f | /dingtalk/api/rest/OapiEduClassStudentBatchgetRequest.py | d6283955c1587fdfc876cfcdebdc023dc058f7ab | [] | no_license | xududu/dingDingApi | ada6c17e5c6e25fd00bdc4b444171b99bc9ebad7 | b1e7c384eb8fb7f79f6f5a6879faadfa95d3eda3 | refs/heads/master | 2023-08-31T03:04:48.438185 | 2021-10-13T08:52:13 | 2021-10-13T08:52:13 | 416,558,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | '''
Created by auto_sdk on 2021.02.19
'''
from dingtalk.api.base import RestApi
class OapiEduClassStudentBatchgetRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.request_param = None
def getHttpMethod(self):
return 'POST'
def getapiname(self):
return 'dingtalk.oapi.edu.class.s... | [
"739893589@qq.com"
] | 739893589@qq.com |
5dc2b7a7d4f2e8ad064d25c50eff2432276fe05a | 68dee0c48a0527d56e74c2cd9bd35e73f360d233 | /hydrus/client/importing/ClientImportControl.py | 085014f7b30d6fe9ade4efe476977a14264fbab1 | [
"WTFPL"
] | permissive | pokeball99/hydrus | a9a10c9c7dfb751a308de22ac4a3000f71a27454 | e939c11b7ad5071b88b9cc310cda9fb9f2dc68e4 | refs/heads/master | 2022-10-06T23:43:39.656510 | 2022-09-17T20:56:42 | 2022-09-17T20:56:42 | 46,509,660 | 0 | 0 | null | 2015-11-19T17:44:48 | 2015-11-19T17:44:46 | null | UTF-8 | Python | false | false | 3,559 | py | import typing
from hydrus.core import HydrusData
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
from hydrus.client.importing import ClientImportFileSeeds
from hydrus.client.importing import ClientImportGallerySeeds
from hydrus.client.importing.options import FileImportOptions
de... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
fcd1ee9fc1c82a3135c299cec47ed794e2a8b905 | 45bf5cb4dad0ecf63820410c3cc209626e75e57e | /dynamic_programming/knapsack.py | b5db05bf32f41e6bc103cc1dd0037a69b71e9ac3 | [] | no_license | shohei/optimization | f4e0812129576e72c126fbac52faa091dd8bc346 | 88ee195091aa85f0f4f7afdd7df44fc204ba7665 | refs/heads/main | 2023-07-20T16:16:16.745276 | 2021-08-30T13:04:41 | 2021-08-30T13:04:41 | 400,821,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | #!/usr/bin/env python
import numpy as np
np.set_printoptions(linewidth=100)
wvs = [(2,3),(1,2),(3,6),(2,1),(1,3),(5,85)]
n = len(wvs)
W = sum([wv[0] for wv in wvs])
dp = np.zeros((n+1,W+1))
for i in range(1,n+1):
for w in range(W+1):
if(w-wvs[i-1][0]>=0):
dp[i][w] = max(dp[i][w],dp[i-1][w-wvs[... | [
"shoaok@gmail.com"
] | shoaok@gmail.com |
591c1c52b61ce3bde3980152b4ea02ff81a819f8 | a95236e2dccd588627c6f0a1542f37e26f6899f3 | /Chap03DataStructures/1-4-5.约瑟夫问题.py | 0c5e26329077d59f017a7b78e81b16401538f715 | [
"MIT"
] | permissive | royqh1979/programming_with_python | 43b1cf0ab1b6a54ad165e30991250cf7bf318bd6 | aa0603058f40b5bc7406e92c92134ee34f3b15e2 | refs/heads/master | 2023-06-11T02:11:59.590880 | 2023-05-29T06:39:03 | 2023-05-29T06:39:03 | 166,190,796 | 5 | 4 | MIT | 2023-02-15T23:13:33 | 2019-01-17T08:38:56 | Python | UTF-8 | Python | false | false | 724 | py | n=41
alive=[True]*(n+1) # alive[i] 为True,表示第i个人还或者,为False表示第i个人已死
# 注意我们声明了n+1个元素,以便使用1..n作为下标
dead_lst=[] # (按照自杀顺序)存放已死的人的编号
count = 0 # 保存目前的报数
i=1 # 目前是谁正在报数
while len(dead_lst)<n:
if alive[i]: #如果这个人已死,那么跳过他(尝试让下一个人报数)
count+=1 # 让当前的人报下一个数
if count == 3: # 报3,要自杀
alive[i]=False
... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
1a2a4aaa233c8b20133ec099c9b2d3b0d8f86682 | b8017e1e41eaeb6e482a6595fc10147cb57db292 | /test/test_type.py | d3f724f29fec2f2065043b0166ce10e5747d69d4 | [
"Apache-2.0",
"MIT"
] | permissive | brianjbuck/orjson | 9b9700c4a67f91606dadebd408619912c07118f7 | f884b8cb9d3465e47279c8aeea771235426bd251 | refs/heads/master | 2020-09-01T15:59:51.617671 | 2019-10-29T14:00:46 | 2019-10-29T14:00:46 | 218,999,584 | 0 | 0 | NOASSERTION | 2019-11-07T16:16:35 | 2019-11-01T14:20:04 | null | UTF-8 | Python | false | false | 11,083 | py | # SPDX-License-Identifier: (Apache-2.0 OR MIT)
# coding=UTF-8
import unittest
import orjson
import pytest
class TypeTests(unittest.TestCase):
def test_fragment(self):
"""
orjson.JSONDecodeError on fragments
"""
for val in ("n", "{", "[", "t"):
self.assertRaises(orjson... | [
"ijl@mailbox.org"
] | ijl@mailbox.org |
de67b96339a0e2d5b46f7c1d57e690a1eeb2c199 | 65d45b6ba8be8b5e059ead75a94d69c15a322d9e | /turnstile/middleware.py | 59afb1c5df4ea7ca278112d9d12e28f8a5772862 | [
"Apache-2.0"
] | permissive | pperezrubio/turnstile | 289781736aa1672b9d39261087bb0e4567864cc9 | 88304362a1f0ba493d018ab20c66a5b9313a5961 | refs/heads/master | 2021-01-18T06:59:32.511750 | 2012-04-30T15:24:43 | 2012-04-30T15:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,941 | py | # Copyright 2012 Rackspace
# 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 app... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
4c675ab65039c0091c4580af79d7006509852ef3 | 1eaaad1e366f032717e93739dd0380469bb8f5cf | /visualization/effect-of-year-locale.py | 709941f6d6ecba0f3648d7dc853c3914aa76021e | [] | no_license | mac389/clinic | 8bd7c6ec32593f844757406e7178ce086d9cc582 | 45f3f9e8dd1f6e5ff78a53ff73363d2d89aced2b | refs/heads/master | 2016-09-16T10:57:48.285653 | 2014-04-03T10:41:13 | 2014-04-03T10:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | import csv
import Graphics as artist
import utils as tech
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from matplotlib import rcParams
from pprint import pprint
import cPickle
makeDict = lambda x: dict(zip(x,len(x)*['']))
rcParams['text.usetex']=True
filename = '../Data/11-13-2013.csv'... | [
"mac389@gmail.com"
] | mac389@gmail.com |
5530b7fd630d0e880894efe6bf3db42f803984ab | 8c94f2517a80c2bdf5f7f21cd97d71c8f41143af | /src/opengeo/geogit/diff.py | 1f5bed656ad99c12c7553b64331f6405c402388d | [] | no_license | garnertb/suite-qgis-plugin | ce0a295c2e82925ec80c1cd70762740860aa93d4 | 61d65381223ce9b36c7557706c5385e3f8a64189 | refs/heads/master | 2020-12-25T00:03:35.255681 | 2013-09-24T06:21:39 | 2013-09-24T06:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from feature import Feature
TYPE_MODIFIED = "Modified"
TYPE_ADDED = "Added"
TYPE_REMOVED = "Removed"
NULL_ID = "0" * 40
class Diffentry():
'''A difference between to references for a given path'''
def __init__(self, repo, oldref, newref, path):
self.repo = repo
self.path = path
... | [
"volayaf@gmail.com"
] | volayaf@gmail.com |
24c4f50cd700b52e4be1d5d6766e9cd4d8692057 | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /digits_sum.py | 4c32bb26da9f8c7e5ce1833a9167885c3972a400 | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | N = int(input())
min_res = 100000
for i in range(N):
A = i+1
B = N - A
if (B >= 2) and (B < N):
res = 0
a_num = A
b_num = B
while a_num > 0:
q, mod = divmod(a_num, 10)
res += mod
a_num = q
while b_num > 0:
q, mod = di... | [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
3a069753c9e14089006fe7994a0e98632d539aa6 | a961aaa37bde0c8217453631809da11203a145c3 | /clients/python/SolviceRoutingClient/models/stats_goals.py | 0007a5030f319e9f64038362d664bf123f78e6a0 | [
"MIT"
] | permissive | solvice/solvice-routing-client | 0f3fdb69244e1d3db92159db4be651adcdf23eb1 | cdaedaf47d202965549c9e2b7d9102d292c91d5b | refs/heads/master | 2020-06-22T16:56:52.871358 | 2019-09-25T14:46:54 | 2019-09-25T14:46:54 | 197,749,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,574 | py | # coding: utf-8
"""
OnRoute API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"cvh@solvice.io"
] | cvh@solvice.io |
566165c659f03b6559e9087914c9f60f6708aee9 | 6a61667e176b06ccdef07e84d79b382b2fb491bb | /app/interviews/tests/tasks/interview.py | 38c7f35e04ac0b7c37d7f8d24c7048054b83b218 | [] | no_license | vsokoltsov/Interview360Server | 333f08f13b33ef88928b3e4b844f60e72ebec809 | 252b0ebd77eefbcc945a0efc3068cc3421f46d5f | refs/heads/master | 2022-12-11T05:38:01.310133 | 2019-03-24T17:47:09 | 2019-03-24T17:47:09 | 95,320,167 | 2 | 3 | null | 2022-12-08T04:54:08 | 2017-06-24T20:09:08 | Python | UTF-8 | Python | false | false | 1,400 | py | from . import (
TestCase, Interview, Notification, remind_about_interview,
mock, datetime, mail, override_settings
)
class InterviewTaskTest(TestCase):
"""Tests for interview tasks."""
fixtures = [
"skill.yaml",
"user.yaml",
"company.yaml",
"vacancy.yaml",
"int... | [
"vforvad@gmail.com"
] | vforvad@gmail.com |
ab66e185c8f1b40021eb6b904ff03aae22cd1f85 | d7db8cd9cf18d21a57c6bdb1a3ead018d81801a9 | /剑指offer/27. 二叉树的镜像.py | 5aec79c9bfc598b66b734d34ae4582b9cedc4c60 | [] | no_license | Eleanoryuyuyu/LeetCode | a1e8c230162a3a850e6714ed7c2d4d946bc5f33b | 44b65f3ab6cc6ca3ef2a2fd7ef39d4df0cd7f7eb | refs/heads/master | 2021-06-01T15:25:44.812448 | 2020-08-06T07:32:44 | 2020-08-06T07:32:44 | 144,653,156 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding:utf-8 -*-
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# 返回镜像树的根节点
def Mirror(self, root):
# write code here
if not root:
return None
root.left, root.right = root.right, root.le... | [
"yangjieyu@zju.edu.cn"
] | yangjieyu@zju.edu.cn |
d13f04ef40abdd894b290f18561b07a64a56f230 | a7e1c00e01a8a623a13483800f8465f94bbada80 | /scripts/submit_real_data_jobs.py | 30643528950c37d5ed8e99026248be08d2700e5e | [] | no_license | csinva/mdl-complexity | 43f823b2d84a96347a55c6dbd25d4da08db2debe | 24628b0b9d5dfed546c23d26c8ede3ef6151f843 | refs/heads/master | 2023-06-23T07:05:30.725519 | 2023-06-12T01:19:47 | 2023-06-12T01:19:47 | 263,444,831 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | import itertools
import numpy as np
from copy import deepcopy
import config
import subprocess
#################################### Here we specify a bunch of different hyperparameters
OUT_BASE = config.test_dir
PARAMS_BASE = {
'out_dir': [OUT_BASE + 'test'],
'seed': range(3),
'num_features': [500], ... | [
"chandan_singh@berkeley.edu"
] | chandan_singh@berkeley.edu |
58f7cdbdc15d9ac048f830676fc18ff0177f3754 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/isis_state/router_isis_config/isis_system_info/nsap/__init__.py | bae68e66f117e51849edfea343c550284b93e977 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,583 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
e8822aea9ef5bffed64d39ae309bc73489500f52 | b4e8db4a2b52be338fc7adad0aeb8dc3ffd312f2 | /job_blogs/models.py | 3aeeed9dac86f9b7b913893eda7debe091333838 | [] | no_license | ganavi12/joboffers_rest | 539b59231aed3d96b6474e7d20580baac053fb52 | 5ad16fec3329d06b7973c80fafed50a0059b33dd | refs/heads/master | 2023-05-05T18:13:43.829769 | 2021-05-25T12:36:30 | 2021-05-25T12:36:30 | 370,687,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | from django.db import models
# Create your models here.
class JobOffer(models.Model):
company_name = models.CharField(max_length=50)
company_email = models.EmailField(max_length=254)
job_title = models.CharField(max_length=50)
job_description = models.TextField()
salary = models.IntegerField()
... | [
"ganavi.k@actcorp.local"
] | ganavi.k@actcorp.local |
f18080ec937e9165f69d378bb3c06a4212b92a1b | 2136701f48ad131084b331039d864f85988cf451 | /spider/work/news_spider/somenew_V0.4_11/somenew/spiders/laodong.py | b2c9de4b0f8ae1527b084d07304cae023824aa5d | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # -*- coding: utf-8 -*-
import scrapy
from urllib import parse
import hashlib
import datetime
from somenew.items import SomenewItem
# 劳动报新闻爬虫,http://www.labour-daily.cn/
# 爬取新闻头条
class LaodongSpider(scrapy.Spider):
name = 'laodong'
allowed_domains = ['51ldb.com']
start_urls = ['http://www.51ldb.com/ldb/nod... | [
"494658565@qq.com"
] | 494658565@qq.com |
c4eb7804ad48636b4c4e81db77db684f104feeb8 | 536584e323161a97db79453b1aa192c89979a755 | /tests/fixtures/defxmlschema/chapter21/example21161.py | 837838bbd255af74e3d48169ea35aeaf837c87d8 | [
"MIT"
] | permissive | brunato/xsdata | c792ae2749afb4ac5704f77b138f0f871002100c | dfa84cfd6be5373c929f5bc4178fe1fb7b7d2e3b | refs/heads/master | 2022-04-13T09:59:57.008871 | 2020-04-04T09:01:42 | 2020-04-04T09:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from dataclasses import dataclass, field
from typing import Optional
from tests.fixtures.defxmlschema.chapter21.example21162 import (
ItemsType,
)
@dataclass
class OrderType:
"""
:ivar number:
:ivar items:
"""
number: Optional[int] = field(
default=None,
metadata=dict(
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
cbb4557c70066e0d023b35b16595b7bf65febc50 | c85f19a599d9e58022d1226431c02e3a083f0a16 | /templates/import_library.py | f04e6437769852f9c0b320b91f8d1cee25694a5c | [
"Apache-2.0"
] | permissive | nosmokingbandit/Autolycus | 5aed1344a94867a36acb3515f2c27600a0118c86 | 37b376ba2fc27aa7e98f0071b457ebfbc605d4ab | refs/heads/master | 2020-05-26T15:37:10.907416 | 2017-04-23T20:47:21 | 2017-04-23T20:47:21 | 82,493,195 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | import core
import dominate
from cherrypy import expose
from dominate.tags import *
from header import Header
from head import Head
class ImportLibrary():
@expose
def default(self):
doc = dominate.document(title='Autolycus')
doc.attributes['lang'] = 'en'
with doc.head:
He... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
f7ee0f4d554697ffe2cef602cfeebdc4b8c4ead6 | a3c7c11c607800155457ea1f886e2d84eadd9610 | /examples/3_NeuralNetworks/dynamic_rnn.py | 04acb7069fd1d04acd565a842ead2b4a2a072fe8 | [
"MIT"
] | permissive | 353622088/CapsNet | eddba478143bd092ce27bd49dbb65c63d80824e4 | 04408978dfccd9a6545fc250648fd2f600974a95 | refs/heads/master | 2021-08-28T02:22:56.958370 | 2017-12-11T03:03:52 | 2017-12-11T03:03:52 | 112,295,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,376 | py | """ Dynamic Recurrent Neural Network.
TensorFlow implementation of a Recurrent Neural Network (LSTM) that performs
dynamic computation over sequences with variable length. This example is using
a toy dataset to classify linear sequences. The generated sequences have
variable length.
Links:
[Long Short Term Memory... | [
"chk0125@126.com"
] | chk0125@126.com |
a119e9cf09e272ea07f8e60a905e60e6b9c51a0f | 14028bea18dcd4f89fca2306bf51dcbf6acabb44 | /apps/accounts/apps.py | 0e86e83360ab4f1d5e40ad3c1db4484d26e70741 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | CMSgov/bluebutton-web-server | 5694c7149d9f2f6efed9a2814c928d8a7539e4cb | fb0904c0b9d77dfb00523fe6ce69b946b640441e | refs/heads/master | 2023-09-01T18:17:31.088628 | 2023-08-25T20:43:14 | 2023-08-25T20:43:14 | 50,062,960 | 30 | 33 | NOASSERTION | 2023-09-14T10:24:34 | 2016-01-20T21:52:00 | Python | UTF-8 | Python | false | false | 167 | py | from django.apps import AppConfig
class OAuth2AccountsConfig(AppConfig):
name = 'apps.accounts'
label = 'accounts'
verbose_name = "Accounts and Invites"
| [
"aviars@videntity.com"
] | aviars@videntity.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.