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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
968eadac93287d1119a7ddb27177eb8d3cfdd37b | 24d070c6410fdf7212c4c37c2fadc932cd4e8aec | /trac/upgrades/db7.py | 152484af38f5c9a71333680ef0ac55a29fa1e93d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | clubturbo/Trac-1.4.2 | 4f111e8df9e8007a0e02080bec560361b25fc11c | 254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78 | refs/heads/master | 2023-01-20T16:20:44.724154 | 2020-12-03T08:57:08 | 2020-12-03T08:57:08 | 317,922,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2004-2020 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://trac.edgewall.org/wiki/TracLicense.
#
# This soft... | [
"jonn@mindhunterx"
] | jonn@mindhunterx |
a2c41a0a155f5dc87c2a0887ec74bf14d6428d9a | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1501-1600/1582-Special Positions in a Binary Matrix/1582-Special Positions in a Binary Matrix.py | 7cbdfa072c94254fc6586b5fc53f4786dcb88eea | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 513 | py | class Solution:
def numSpecial(self, mat: List[List[int]]) -> int:
m, n = len(mat), len(mat[0])
rows = [0] * m
cols = [0] * n
for i in range(m):
for j in range(n):
if mat[i][j] == 1:
rows[i] += 1
cols[j] += 1
... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
14a0d134762bf69692096a949314bb6402cbd34b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /alexaforbusiness_write_1/contact_delete.py | 3e5de06761bc5be4a7539a9e46a18c6bc45e04e1 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/alexaforbusiness/delete-contact.html
if __name__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
d687a556d3be27c2cd073f4c266299eb254abeae | 62974b03a14008f950db0c68d5962311a3401d3b | /dailycoding_problem/find_strings_with_prefix.py | 682cedffeec315b9623f32eca651257154db00a6 | [] | no_license | wuxu1019/leetcode_sophia | 818f39e8324aaf2b588150b1f7edbc2897f64935 | 0e99f9a5226507706b3ee66fd04bae813755ef40 | refs/heads/master | 2018-10-13T13:58:29.762836 | 2018-07-24T04:20:23 | 2018-07-24T04:20:23 | 111,624,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | """
Good morning! Here's your coding interview problem for today.
This problem was asked by Twitter.
Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, return all strings in the set that have s as a prefix.
For example, given the query string de and the set of... | [
"wuxu1019@hotmail.com"
] | wuxu1019@hotmail.com |
ad64d0bfdea1390b2c929fb93b12954533195d36 | c32cfa9933b75a0b750ced5c26b6ce98c9a5afd2 | /Flask/User.py | 4de8f362e83c4cf64906beda9f072fb228557049 | [] | no_license | CentreeTech/backend | 32eeda2693592fdf0f4015821fc2aa5fca244b42 | 57c521367b37fc37cbdc31de23e099aa12a007ea | refs/heads/master | 2021-01-01T20:44:34.066840 | 2017-08-03T18:45:57 | 2017-08-03T18:45:57 | 98,923,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | import json
import uuid
from flaskapp import db, app
from sqlalchemy.dialects.postgresql import JSON
from flask import request, Response, send_file, send_from_directory
from Utility.color_print import ColorPrint
import datetime
from Models.Service_Model import Service_Model, User_Subscription
from Models.User_Model imp... | [
"samcrane8@gmail.com"
] | samcrane8@gmail.com |
0a43304911a5a329fa73ca94732b6818cf69b291 | 2092f23db140d4273c2812107e54fdb652a7d1eb | /openstack/tests/test_user_preference.py | 337f193fdfd70a849cdd4916b6329b6c41a446a9 | [
"Apache-2.0"
] | permissive | roaet/python-openstacksdk | 0db962eea48341bfa02890e1e3fffb8b1e9fbbf1 | 6a64ca6dc7ec3963f962a92e92da34363b6aa68a | refs/heads/master | 2020-04-08T18:05:26.665377 | 2015-02-13T16:01:32 | 2015-02-13T16:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | # 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 writing, software
# distributed under t... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
8d04456aa3cd6221b443f418f8890f1d5dc9aba6 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /pyqtgraph使用/LineUi.py | 43fa565e0609003220e1131efdb8a403b05d39ac | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'LineUi.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui... | [
"443765159@qq.com"
] | 443765159@qq.com |
5bfa569a44d6c343c33aa21d62488c3f6b4ce632 | ea44a1681e276b3cc85226b53de217f6096a05d4 | /fhir/resources/STU3/tests/test_flag.py | 72216fd6615b9da0e1acce2c88c4c7d513c678ef | [
"BSD-3-Clause"
] | permissive | stephanie-howson/fhir.resources | 69d2a5a6b0fe4387b82e984255b24027b37985c4 | 126e9dc6e14541f74e69ef7c1a0b8a74aa981905 | refs/heads/master | 2020-05-04T22:24:49.826585 | 2019-06-27T15:51:26 | 2019-06-27T15:51:26 | 179,511,579 | 0 | 0 | null | 2019-04-04T14:14:53 | 2019-04-04T14:14:52 | null | UTF-8 | Python | false | false | 4,050 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.1.11917 on 2019-01-17.
# 2019, SMART Health IT.
import os
import pytest
import io
import unittest
import json
from .fixtures import force_bytes
from .. import flag
from ..fhirdate import FHIRDate
@pytest.mark.usefixtures("base_settings")
cl... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
7c93c949c399c83c2e5a130c25952fcfdd135d45 | a072ad6016997fed718fef1c68c861c980e6cd1d | /2015/09/part1.py | 31ece69cb20c6df7c9da281086ae93c20a7fe625 | [] | no_license | bqqbarbhg/adventofcode | 5f224ca0da751d22e4fa214b263ef1feaf0a9ad4 | c78a24d0bd910c109992fc366196a46440c4daaa | refs/heads/master | 2023-01-08T04:06:19.084412 | 2022-12-25T17:15:42 | 2022-12-25T17:15:42 | 47,267,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #!/usr/bin/env python
import sys
import re
from collections import defaultdict, namedtuple
import heapq
class Node(object):
def __init__(self):
self.edges = []
self.min_edge = 0.0
self.mask = 0
graph = defaultdict(Node)
RE_LINE = re.compile(r'(\w+)\s+to\s+(\w+)\s*=\s*(\d+)')
for line in sys.stdin:
parts = RE... | [
"samuli.1995@hotmail.com"
] | samuli.1995@hotmail.com |
a8b1f0c429283956413d7aa52bdecaa6c3a4bd65 | f8e8a78342948f992f3d5cf67f90a01a63a4e14b | /Dev/interface_CLI/contacts.py | 442a8450a1633a5b594828bb1cbe8661088cd407 | [] | no_license | Nioub/GLMF190 | 5b2d96ec83ca156d736b96933358ff4875bcd88c | 5e07e2f716db40f2b7727c9210add2beb4d76684 | refs/heads/master | 2021-01-16T20:59:17.335495 | 2016-02-08T08:41:20 | 2016-02-08T08:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | """
Annuaire avec envoi de mails pour GNU/Linux Magazine
Author: Tristan Colombo <tristan@gnulinuxmag.com>
(@TristanColombo)
Date: 17-12-2015
Last modification: 17-12-2015
Licence: GNU GPL v3 (voir fichier gpl_v3.txt joint)
"""
import argparse
import sqlite3
from Con... | [
"tristan.colombo@gmail.com"
] | tristan.colombo@gmail.com |
b10ffc50b1add15e27ca4d87fd46b2de695d14a1 | 2035a6ac10d000f4f938c9e99f0230ac5e61f551 | /setup.py | ae4f2f1b5591c647e7186381e33c97014626f788 | [
"BSD-2-Clause"
] | permissive | GilCampos/cdlib | 98b08223c0de1bb853dfd3f68851a430df23e0f6 | 3d588b051bb6619f69d12bba83e72493acbdff13 | refs/heads/master | 2020-12-15T17:10:04.973104 | 2020-01-20T20:17:31 | 2020-01-20T20:17:31 | 235,190,382 | 0 | 0 | BSD-2-Clause | 2020-01-20T20:14:01 | 2020-01-20T20:14:00 | null | UTF-8 | Python | false | false | 2,728 | py | from setuptools import setup, find_packages
from codecs import open
from os import path
__author__ = 'Giulio Rossetti'
__license__ = "BSD-2-Clause"
__email__ = "giulio.rossetti@gmail.com"
def get_requirements(remove_links=True):
"""
lists the requirements to install.
"""
try:
with open('requ... | [
"giulio.rossetti@gmail.com"
] | giulio.rossetti@gmail.com |
da8ecf5b96eb8d719c01ec00770692d0a7512cf0 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/BaseHTTPServer/save_cookie.py | 20c4f9c67eaa9e49441569f5d5443f4dd3828438 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #! /us/bin/env/python
import cookielib
import urllib
import urllib2
ID_USERNAME = 'login_username'
ID_PASSWORD = 'password'
USERNAME = 'phpers'
PASSWORD = '123456'
LOGIN_URL = 'http://www.example.com/vmallshop/index.php/login/index'
NORMAL_URL = 'http://www.example.com/vmallshop/'
def extract_cookie_info():
cj =... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
b4867f46fd6ad67fb4187326109c2f9a86dea10c | a856764438cbbf3c19f64bdf9a186fc7e2ba0000 | /cpython_stats/import_python_core_toml.py | a48146d70cf354a346f04093e3d8437db3d1cbb3 | [
"Apache-2.0"
] | permissive | ambv/cpython-stats | a77d9c8a4b215066c781ae2cda59e091107ee828 | a9e015bfd434f5180f24e940232b3ab8834c94fd | refs/heads/main | 2023-08-23T04:52:53.662986 | 2021-10-18T18:09:21 | 2021-10-18T18:09:21 | 395,309,989 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | # © Copyright 2021 Łukasz Langa. Licensed under Apache License, Version 2.0.
from __future__ import annotations
from typing import *
from pathlib import Path
import sys
from sqlite_utils import Database
import tomli
from . import console
from . import env
from . import gh_utils
print = console.print
def main()... | [
"lukasz@langa.pl"
] | lukasz@langa.pl |
39718d2811d01f3f204a516b59ba06c647f6e2d2 | 9c6522db2db8c4c075e23f2953776384973891a8 | /cn.zero/py.ori.fmt/t102b.bin.py | 73cf360d9802cb771b11ea7798d3aefd0f03a48d | [] | no_license | ZhenjianYang/ZeroAoVoiceScripts | b388c28b498049d7d4277b8344cdc098488fd258 | 7e0b696d743912739b855acb4306f1dcf564d6c0 | refs/heads/master | 2021-05-18T08:58:59.482674 | 2021-02-19T08:22:19 | 2021-02-19T08:22:19 | 94,624,272 | 12 | 5 | null | 2021-02-19T08:22:20 | 2017-06-17T13:06:15 | Python | UTF-8 | Python | false | false | 52,371 | py | from ZeroScenarioHelper import *
def main():
CreateScenaFile(
"t102b.bin", # FileName
"t102b", # MapName
"t102b", # Location
0x0095, # MapIndex
"ed7513",
0x00002000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
3b7595f220604cf9529e5756421b526e56a45a92 | 14956dbed8ae4fba1d65b9829d9405fcf43ac698 | /Cyber Security/Capture the Flag Competitions/2022/STACK the Flags/Web/Extended/web_extended/src/db/createtable.py | 32f0b86bcc14baaac3ba077482eaee3debcf9ef7 | [] | no_license | Hackin7/Programming-Crappy-Solutions | ae8bbddad92a48cf70976cec91bf66234c9b4d39 | ffa3b3c26a6a06446cc49c8ac4f35b6d30b1ee0f | refs/heads/master | 2023-03-21T01:21:00.764957 | 2022-12-28T14:22:33 | 2022-12-28T14:22:33 | 201,292,128 | 12 | 7 | null | 2023-03-05T16:05:34 | 2019-08-08T16:00:21 | Roff | UTF-8 | Python | false | false | 413 | py | import sqlite3
import random
import hashlib
userlist = [
("%032x" % random.getrandbits(128), "REDACTED", hashlib.md5(b'REDACTED').digest(), 1, "REDACTED"),
]
conn = sqlite3.connect('../app/jaga.db')
c = conn.cursor()
c.execute("CREATE TABLE j4g4_us3rs (uid, username, password, role, flag)")
c.execu... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
f87f166bbc022a759fb2f1b18c5bcc0109213505 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03370/s861783728.py | c4722d872cd832d8a4596ba76268f30e627cb375 | [] | 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 | 313 | py | import sys
import math
import bisect
def solve(A, m):
n = len(A)
ans = n
m -= sum(A)
ans += m // min(A)
return ans
def main():
n, m = map(int, input().split())
A = []
for i in range(n):
A.append(int(input()))
print(solve(A, m))
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b5dde19c042dc77a7fbfd62a10e12108cb267322 | 30d36cbbc483a3fcf3c43dac42d4e78f0821d16a | /SDWAN/SDN/test/test_protocol.py | 0e584d2d665518df7f771b9b2f62c47f78fc6ef0 | [] | no_license | sindhukotluru/HAPPIEST_FRAMEWORK | d84f70051ac3b82af81e91c62e51f394b0467dca | 6f65a498b40e906e7b806de043cfc4e2bd157244 | refs/heads/master | 2020-04-12T14:46:36.439718 | 2018-12-19T08:14:53 | 2018-12-19T08:14:53 | 162,561,162 | 0 | 0 | null | 2018-12-20T10:05:26 | 2018-12-20T10:05:26 | null | UTF-8 | Python | false | false | 622 | py | import unittest
from pprint import pprint
from odl.util.protocol.ospf import HEADER
class TestProtocol(unittest.TestCase):
def test_ospf_header(self):
obj_header = HEADER(r'C:\Users\Karthik.prakash\PycharmProjects\SDN\test\data\ospf_packets\header.bin')
print obj_header.get_field_siz... | [
"dinesh.bhatta@happiestminds.com"
] | dinesh.bhatta@happiestminds.com |
6442f0e61b01658116a2f4751ce9423b3638d16d | c3856325644c582625fef74ce798fcbe0355ad4d | /workflow/rules/Alignment/Coverage.smk | d04ab10e5ebbe8bab4a88094c3c7a95885447124 | [] | no_license | mahajrod/AVAVpipe | fcd1eaa4e8214a23113334a9c63e3e15c0e6182f | 18354c343e2285b1086380f3aefce03a9083a463 | refs/heads/master | 2023-03-29T03:48:02.364703 | 2021-04-03T03:42:47 | 2021-04-03T03:42:47 | 345,326,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | smk | rule mosdepth:
input:
bam=rules.bwa_map.output.bam,
bai=rules.index_bam.output
output:
alignment_dir_path / "{sample_id}/{sample_id}.coverage.per-base.bed.gz"
params:
min_mapping_quality=config["mosdepth_min_mapping_quality"],
output_pefix=alignment_dir_path / "{sampl... | [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
4c69992e3a779c7ad5c7eaf1290e2fa811126e03 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/RecExample/RecExConfig/python/ObjKeyStore.py | 4b20f03fef91e198823f002c9b41baa6defcd95c | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,026 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Author Sebastien Binet
__all__ = [ 'ObjKeyStore', 'objKeyStore', 'cfgKeyStore' ]
# do not trace within ObjKeyStore
from AthenaCommon.Include import excludeTracePattern
excludeTracePattern.append("*/RecExConfig/ObjKeyStore*")
from AthenaCom... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
bcccd94856479fe61d5ecd62bd6ac5c8770932fe | 23f151e0799edaffeba3412140c35c456dc3c603 | /largescale/src/network/__init__.py | 1f8281ec9b7ccdd7dd58a1a81cf9f0f39b7b128e | [
"MIT"
] | permissive | cosmozhang-lab/motion-illusion-model | 846fa5b80384ed3639bcbf7fbd30ba85183183f4 | 32a5ccab920095818b220642bae491429ff71f27 | refs/heads/master | 2021-09-03T10:11:11.902122 | 2018-01-08T09:19:21 | 2018-01-08T09:19:21 | 111,637,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # Package: largescale.src.network
from pinwheel import PinwheelNetwork | [
"cosmozhang1995@gmail.com"
] | cosmozhang1995@gmail.com |
924886af5420aa3e6f90bd0edc3bd706055a5465 | 4a59e35a12af911f588224f07aab52d24fd6b044 | /venv/lib/python2.7/site-packages/pyOCD/flash/flash_kl27z4.py | e5468e805e6b5a61abbf151b0e887bf0529266ca | [] | no_license | ryankurte/mbed-node | 95caba48404e06c4f21f48a850152c08d911bbc8 | 3584d391fca00fc3cda138c26ae28fdbe5527d83 | refs/heads/master | 2021-01-22T13:23:08.506740 | 2017-11-02T17:40:26 | 2017-11-02T17:40:26 | 100,665,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,475 | py | """
mbed CMSIS-DAP debugger
Copyright (c) 2006-2013 ARM Limited
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 a... | [
"ryan.kurte@trutest.co.nz"
] | ryan.kurte@trutest.co.nz |
450745e255ca5ab0408fe7908134079f38920567 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03287/s633864344.py | ef9426a75479b4da2d5b406cc8d9fe3fe4414d44 | [] | 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 | 178 | py | N,M = map(int,input().split())
A = list(map(int,input().split()))
D = {0:1}
a = 0
ans = 0
for n in range(N):
a = (a+A[n])%M
ans+=D.get(a,0)
D[a] = 1+D.get(a,0)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f2e013eea8c310998a7250bf7cb79bf0bf7736d | 2dbb46a9cb019d594a234b1b97eb281534e0e8a6 | /Desafios/desafio066.py | 7a3667e183f80e6d4bc31ae1ae5b95221a969cd8 | [] | no_license | Omupadh/python3 | 70110500773ad64d5197c66364311fee2ad507ec | ff2b0ddf2f61e85158f88db65d71da408d2c1e87 | refs/heads/master | 2022-05-28T12:35:00.765736 | 2020-04-22T02:07:21 | 2020-04-22T02:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | c = s = 0
while True:
n = int(input('Digite um valor (999 para parar): '))
if n == 999:
break
c += 1
s += n
print(f'A soma dos {c} valores é {s}!')
| [
"wellingtonfernandesbarbosa@github.com"
] | wellingtonfernandesbarbosa@github.com |
0975ba4c5a8a49f749d99f1b4512a9abebaebb4d | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.workspaces.IpGroup-python/__main__.py | 51e993433f6624b49afe28649cc73990c0657c57 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import pulumi
import pulumi_aws as aws
contractors = aws.workspaces.IpGroup("contractors", description="Contractors IP access control group")
| [
"jvp@justinvp.com"
] | jvp@justinvp.com |
5915821beac5c3bf33fd36a4f3466c8fd4377235 | 07febcf04283559f4545afb5e27bde6f93f1106e | /uniprint/migrations/0007_remove_printout_duplex.py | 8bdf32c336ecd78427ed03ab01ae12cb7a36f307 | [
"Beerware"
] | permissive | TK-IT/uniprint | c0d96919b4ea061a99558483a77849c3faafb148 | 2cfa13e4b97266234f1d962f6c53b0c2ba9ffd0c | refs/heads/master | 2020-06-10T21:56:44.428921 | 2018-04-16T19:08:29 | 2018-04-16T19:08:29 | 75,861,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uniprint', '0006_populate_lp_option_string'),
]
operations = [
migrations.RemoveField(
model_name='printout',
... | [
"rav@cs.au.dk"
] | rav@cs.au.dk |
fcaf7d1bfe476a1d85a620c04cf47eb4c13374d7 | 573fa4524ea8be37d0bcc2e3195d9529235f577b | /tests/apps/app1/overrides/http/model_router.py | cf9c9aa29d242ca57867e709c4d3572b95cf8862 | [
"MIT"
] | permissive | webclinic017/framework | 72753f541f3c7f2cb13ae314785f23fb56ae5908 | 9c21b85e9e470c6d789899340332a9abd0b26ab1 | refs/heads/master | 2023-09-04T07:37:57.966539 | 2021-10-15T19:36:42 | 2021-10-15T19:36:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import uvicore
from uvicore import typing
# ModelRoute is the only class that cannot be EXTENDED becuase I am inspecting
# the class dynamically. If you want to extend or change the ModelRoute you
# must re-impliment the entire class.
@uvicore.service()
class _ModelRoute:
def routes(self, Model, route, path, ta... | [
"mail@mreschke.com"
] | mail@mreschke.com |
f6f4adffff32bfed26b5751791a5a066311694f9 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/new_20200709211359.py | c8b1d7139bf743d8ca96241d04885e2e4f107159 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # [3,4] [1,2,7,7,0]
# --> new set {1,2,7,7}
# 4-3 = 1
# [5,9] [1,2,6,7]
# smaller = 5
#
# ---> 3
# left = {1:4,2:5,7:10,0:3}
# ---> 4
# right = {1:5,2:6,7:11,0:4}
#
# newArr = sorted(min[[1,0],[2,1]])
# newArr =[2,6]
# if newArr[0] == 0:
#
# 2,6
# "not possible"
# 13,4 - [1,2,3,6,14]
'''
smaller = 4
ans... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
05b1c341648c18901fafd2b8ad300b44bc0188a5 | 1eb95b6ccd4aeea46ebc9e8bfe84d22a961f2cbc | /peachpy/x86_64/__main__.py | 31043d85213fb4678cac61b6000979673d04a369 | [
"BSD-2-Clause"
] | permissive | rjmcguire/PeachPy | efbe24eaada6826162268af629aa981408d71e03 | 6ad037d9191764b7df35f944c0fcefb853a16c50 | refs/heads/master | 2021-01-21T07:45:51.180828 | 2016-07-08T09:23:06 | 2016-07-08T09:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,042 | py | # This file is part of Peach-Py package and is licensed under the Simplified BSD license.
# See license.rst for the full text of the license.
from __future__ import absolute_import
from peachpy import *
from peachpy.x86_64 import *
import sys
import argparse
import six
parser = argparse.ArgumentParser(
desc... | [
"maratek@gmail.com"
] | maratek@gmail.com |
2d82a62aef7df588acd0cdc631334672397e1945 | 61fa932822d22ba480f7aa075573e688897ad844 | /simulation/decai/simulation/contract/classification/classifier.py | 036d7ed47433e68035b645a39c4091e0c8fca16a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/0xDeCA10B | a8f118fa1f89f387a0b83f297250fc1846521f41 | 4066eeb2b5298c259a7c19c4d42ca35ef22e0569 | refs/heads/main | 2023-07-26T08:09:34.718104 | 2023-01-25T12:47:17 | 2023-01-25T12:47:17 | 181,561,897 | 538 | 133 | MIT | 2023-07-19T03:10:38 | 2019-04-15T20:37:11 | Python | UTF-8 | Python | false | false | 2,740 | py | import logging
from abc import ABC, abstractmethod
from typing import List
from decai.simulation.contract.objects import SmartContract
from decai.simulation.data.featuremapping.feature_index_mapper import FeatureIndexMapping
class Classifier(ABC, SmartContract):
"""
A classifier that can take a data sample a... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
e5a6ac076510f1b2c476ea64f251559ead09db16 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2020/binary_tree_tilt.py | ca11d6cf4584c145cb56450e917ed2caff9dada0 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 501 | py | """
https://leetcode.com/problems/binary-tree-tilt/
"""
from test_helper import TreeNode
class Solution:
def __init__(self):
self._tilt = 0
def findTilt(self, root: TreeNode) -> int:
def get_sum(root: TreeNode) -> int:
if not root:
return 0
left, rig... | [
"“mengyu.jiang@gmail.com"
] | “mengyu.jiang@gmail.com |
376556a8410c277e316fe1e235f82c2c47de50f7 | 26ba9c2c59402a946a13f6210a5c29ea62a62153 | /atb/spiders/stories.py | 467aaa960d1f7622f305bdb0e9722ce0d67f5c3a | [] | no_license | SimeonYS/atb | bebb477aa9f841b87e601b87765b63120ca4e0fb | c5afe6adcb645e8c43ca817bad0d25fc43080899 | refs/heads/main | 2023-04-10T12:38:18.341147 | 2021-04-16T07:30:47 | 2021-04-16T07:30:47 | 358,514,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import re
import scrapy
from scrapy.loader import ItemLoader
from ..items import AtbItem
from itemloaders.processors import TakeFirst
pattern = r'(\xa0)?'
class StoriesSpider(scrapy.Spider):
name = 'stories'
start_urls = ['https://www.atb.com/company/news/stories/archive/',
'https://www.atb... | [
"simeon.simeonov@adata.pro"
] | simeon.simeonov@adata.pro |
ccd705aa79d9ed040c1bccbc3abb14ac44eac79f | d77e61d5a9eb08736d5c3621896a66ab970ccea6 | /python/test/unit/problems/dynamic_programming/test_all_pairs_shortest_path_floyd_warshall.py | 3b8cca6e7589e08b3aea9b0fa253af92330cc9ae | [] | no_license | santhosh-kumar/AlgorithmsAndDataStructures | edc1a296746e2d2b0e1d4c748d050fe12af7b65f | 11f4d25cb211740514c119a60962d075a0817abd | refs/heads/master | 2022-11-15T00:22:53.930170 | 2020-07-10T03:31:30 | 2020-07-10T03:31:30 | 269,263,401 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | """
Unit Test for all_pairs_shortest_path_floyd_warshall
"""
from unittest import TestCase
from problems.dynamic_programming.all_pairs_shortest_path_floyd_warshall import \
AllPairsShortestPathsFloydWarshallAlgorithm
class TestAllPairsShortestPathsFloydWarshallAlgorithm(TestCase):
"""
Unit test for AllPa... | [
"santhoshkumar.sunderrajan@gmail.com"
] | santhoshkumar.sunderrajan@gmail.com |
f7a202d7aba5155abd3b8ca8f6b686bb0d4e330c | dacb2bba2c91877c5157ccb8ab34e112abfea0ee | /projects/project_52/src/models/gradcam.py | 46da1cd6cf9e432a3bc2be0a82bfc33a4d76d323 | [] | no_license | amuamushu/projects-2020-2021 | 7fd4e29a8f51406ded59a97cd878a5752ffc700b | f1c385e46d2d5475b28dec91b57a933ac81c23c5 | refs/heads/main | 2023-04-01T11:47:55.935278 | 2021-03-28T00:37:29 | 2021-03-28T00:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,392 | py | ################################################################
# Implemented by Jacob Gildenblat (jacob.gildenblat@gmail.com) #
# #
# PyTorch-compatible implmentation of Grad-CAM proposed in #
# "Grad-CAM: Visual Explanations from Deep Networks ... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
0f7b02d53de4a64c079effe2af90d8837ec5e154 | 8a240d69b7684a281d5740628fd6e9aaa59a8852 | /ulmg/migrations/0018_player_fg_fv.py | 5ccf553516d60c45c335e459edb87556d0d70b02 | [] | no_license | jeremyjbowers/ulmg | 65e42fc9fd3bbb9837cfcb85ae9c5d9e72d8e44e | 50f250ebb7627aacd1be5a0bda6f936269bda2b3 | refs/heads/main | 2023-08-11T02:00:57.628539 | 2023-07-21T20:35:25 | 2023-07-21T20:35:25 | 120,004,789 | 0 | 0 | null | 2023-09-10T18:02:52 | 2018-02-02T16:31:16 | HTML | UTF-8 | Python | false | false | 453 | py | # Generated by Django 3.0.7 on 2021-02-15 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("ulmg", "0017_auto_20210215_1313"),
]
operations = [
migrations.AddField(
model_name="player",
name="fg_fv",
... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
aa06dbccb05178f72dc3945772e1fba4748b3650 | 573932f2fc40e94001a3659043b902db4d70a912 | /4-Data-Visualization/dash/components/dash-table/tests/selenium/utils.py | 960ce18664e2f2a46f0098c01e4a107c9b542b1e | [
"MIT"
] | permissive | BioInformatica-Labs/My-Data-Science-Journey | 69f441f88e9e106975ec27de873d82af2dd351c7 | 92e04aa2e3612a198dc213f2dbd13b5df404bfbe | refs/heads/main | 2023-08-28T05:22:56.970894 | 2021-11-08T20:05:10 | 2021-11-08T20:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,827 | py | from datetime import date, timedelta
read_write_modes = [dict(virtualization=False), dict(virtualization=True)]
basic_modes = read_write_modes + [dict(editable=False)]
def generate_markdown_mock_data(rows=100):
return dict(
columns=[
dict(id="markdown-headers", name=["", "Headers"], ... | [
"viannaandresouza@gmail.com"
] | viannaandresouza@gmail.com |
9a6173cee081c71ccb5d0536b36713cd03979c8e | e367c2641da3ecc24fdeff70ce633cde9681e26b | /SEIR_model.py | 9124ed30dbfa13eb9615101c3a15674bad2eb24b | [
"MIT"
] | permissive | MuAuan/collective_particles | ece38ae191c019f683eed6e47fdd34c70472f3a3 | e83111d71a4de82ccd5abdef80f3ae814c03a0f3 | refs/heads/master | 2021-03-21T12:01:49.235339 | 2020-07-26T03:53:02 | 2020-07-26T03:53:02 | 247,290,892 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
# Define differential equation of SEIR model
'''
dS/dt = -beta * S * I / N
dE/dt = beta* S * I / N - epsilon * E
dI/dt = epsilon * E - gamma * I
dR/dt = gamma * I
[v[0], v[1], v[2], v[3]]=[S, E, I, R]
dv[0]/dt = -beta * v[0] * v[2... | [
"noreply@github.com"
] | MuAuan.noreply@github.com |
a16aa807787350fbd53edf348301ca678b312f64 | 83bc96df34fc2311a33a68e8e79af802d84370b9 | /vmraid/utils/response.py | a05260a9b154b6f9515b29482411247d068713e4 | [
"MIT"
] | permissive | sowrisurya/vmraid | 001072130ac6be5a3ef5a84523d8949d891e6954 | f833e00978019dad87af80b41279c0146c063ed5 | refs/heads/main | 2023-05-05T13:52:45.386039 | 2021-05-31T10:23:56 | 2021-05-31T10:23:56 | 372,466,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | # Copyright (c) 2015, VMRaid Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import json
import datetime
import decimal
import mimetypes
import os
import vmraid
from vmraid import _
import vmraid.model.document
import vmraid.utils
import vmraid.sessions
im... | [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
4e21169872e34ca76a6f05a0aa58f19507e554b2 | 45ba55b4fbdaf1657fde92beaeba4f173265afcd | /setup.py | 8157720105d2fb33d60d7bb4bc813c87c75659a1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | strawberry-graphql/strawberry | af96afd4edd1788c59e150597a12501fbc7bf444 | 6d86d1c08c1244e00535840d9d87925431bc6a1c | refs/heads/main | 2023-08-30T03:34:12.929874 | 2023-08-24T12:01:09 | 2023-08-24T12:01:09 | 162,690,887 | 3,408 | 529 | MIT | 2023-09-14T21:49:44 | 2018-12-21T08:56:55 | Python | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/env python
# we use poetry for our build, but this file seems to be required
# in order to get GitHub dependencies graph to work
import setuptools
if __name__ == "__main__":
setuptools.setup(name="strawberry-graphql")
| [
"patrick.arminio@gmail.com"
] | patrick.arminio@gmail.com |
9dc525cbb8c18f15413f97ac4e1397510a2964c8 | 5292b03998384c0d2bb5858058892d7e45c5365b | /HacktivityCon/2021/crypto/Sausage_Links/sausage_links.py | 66679bba8cc9ae006d32575d1db368e6440e296a | [
"MIT"
] | permissive | TheusZer0/ctf-archives | 430ef80d367b44fd81449bcb108e367842cb8e39 | 033ccf8dab0abdbdbbaa4f0092ab589288ddb4bd | refs/heads/main | 2023-09-04T17:56:24.416820 | 2021-11-21T06:51:27 | 2021-11-21T06:51:27 | 430,603,430 | 1 | 0 | MIT | 2021-11-22T07:24:08 | 2021-11-22T07:24:07 | null | UTF-8 | Python | false | false | 641 | py | #!/usr/bin/env python3
from gmpy import *
from Crypto.Util.number import *
import gensafeprime
flag = open("flag.txt", "rb").read().strip()
bits = 512
p = getPrime(bits)
q = getPrime(bits)
r = getPrime(bits)
n = p * q * r
phi = (p - 1) * (q - 1) * (r - 1)
l = min([p, q, r])
d = getPrime(1 << 8)
e = inverse(d, phi)... | [
"sajjadium@google.com"
] | sajjadium@google.com |
1e8f3163830bca90cfb90e01daa758063ebff58f | ea262de505a1dd5ae1c7b546b85184309c3fdd35 | /src/models/backbones/rexnet_lite.py | aa4969d8181ac4d3e2133b69787ba5be59283456 | [
"MIT"
] | permissive | Runki2018/CvPytorch | 306ff578c5f8d3d196d0834e5cad5adba7a89676 | 1e1c468e5971c1c2b037334f7911ae0a5087050f | refs/heads/master | 2023-08-25T09:48:48.764117 | 2021-10-15T05:11:21 | 2021-10-15T05:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,023 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Time : 2021/8/27 16:30
# @Author : liumin
# @File : rexnet_lite.py
import torch
import torch.nn as nn
from math import ceil
def _make_divisible(channel_size, divisor=None, min_value=None):
"""
This function is taken from the original tf repo.
... | [
"569793357@qq.com"
] | 569793357@qq.com |
af7789b4acfbf654918c577e73c3896b8cf7aafe | f07a42f652f46106dee4749277d41c302e2b7406 | /Test Set/Open Source Projects/flask/03a2996bb89a0f35f82beb389788539ceb58ba46-30-bug.py | 3440d981c92a818a2887653e963adf2aa20e16bd | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,156 | py | # -*- coding: utf-8 -*-
"""
flask.cli
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
import ast
import inspect
import os
import re
import ssl
import sys
i... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
bcbfc6edda16f6d4ab5485b5ffb20a35ba5952ef | f4b74154a7e50a9cfd325b45046b6c86c1682847 | /js_projects/apps.py | 1b812ce80be5c7ebbd983c40ce8cfa2ca80b0f8f | [] | no_license | toxicOxygen/personal_website- | 826225a979ef0e62aaddf9730d1fd5d533400310 | 1826ef3de43fc4d162a509f48a1f90392ac136e5 | refs/heads/master | 2021-09-23T09:28:51.103637 | 2020-03-30T02:12:58 | 2020-03-30T02:12:58 | 251,178,977 | 0 | 0 | null | 2021-09-22T18:54:41 | 2020-03-30T02:13:38 | HTML | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class JsProjectsConfig(AppConfig):
name = 'js_projects'
| [
"kwakukusi30@outlook.com"
] | kwakukusi30@outlook.com |
6686a04992e7986a915ad198a4a52e6a9ada3664 | f225709950b0d66dfe109b64b06bf82ad61221f3 | /branches/button/engine/game.py | 2682ed84242deb79e79958b1d3021e4e7dc36e0e | [] | no_license | BGCX262/zycars-svn-to-git | ab9d7eeba2245285a0dd7b743470273249b93173 | a1e53a00f02b3b11213eea44cb69d5e593a58f31 | refs/heads/master | 2020-04-18T06:34:53.071044 | 2015-08-23T06:58:07 | 2015-08-23T06:58:07 | 41,257,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | # -*- encoding: utf-8 -*-
import pygame
from pygame.color import *
import data
import resource
import keyboard
import button
import xml.dom.minidom
from pygame.locals import *
class Game:
'''
Clase encargada de inicializar pygame. Tiene el bucle principal .
También lleva el control de cada estado del jue... | [
"you@example.com"
] | you@example.com |
11be2ecd8db22bcf428fdea4897ca9b1badc7b79 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /jwzgYjymYK7Gmro93_12.py | 6be68fde80d3743643e3af5a048a73aed0497b78 | [] | 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 | 597 | py | """
Create a function that returns the indices of all occurrences of an item in
the list.
### Examples
get_indices(["a", "a", "b", "a", "b", "a"], "a") ➞ [0, 1, 3, 5]
get_indices([1, 5, 5, 2, 7], 7) ➞ [4]
get_indices([1, 5, 5, 2, 7], 5) ➞ [1, 2]
get_indices([1, 5, 5, 2, 7], 8) ➞ []
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2ee0f2e51635611ee4ab23644ac24692c5992dc2 | a09740e643d6277ada23c82d8e87853a1cd1a9e5 | /AOmPy_o_/lib_o_x/rpaclss.py | f56066145f54fdda55d184805889a4a35c79a5d3 | [
"Apache-2.0"
] | permissive | FuckBrains/omEngin | c5fb011887c8b272f9951df3880a879456f202e8 | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | refs/heads/main | 2023-03-20T18:27:53.409976 | 2021-03-14T15:50:11 | 2021-03-14T15:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,036 | py | import pandas as pd
import numpy as np
import os
from datetime import *
from collections import defaultdict
from pathlib import Path
sys.path.append(str(Path(os.getcwd()).parent.parent.absolute()))
try:
from lib_o_.o_fn import *
from lib_o_.o_rpadef import *
from lib_o_.o_rpafn import *
import lib_o_.o_... | [
"omi.kabirr@gmail.com"
] | omi.kabirr@gmail.com |
b4009a6e91fab5486efdd42e730dc10a6d5b82e1 | 93c9a87fa9417af09621921929c426140ad3a8d5 | /dimod/utilities.py | 63825ef84ad31ff7bf3299d19efab7eee35564f2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kenkoooo/dimod | 3750208d9a822e74e2ee4f5da4aa351a65aa7c09 | 7308fd07605f4466f867b45a90c107036bcc8372 | refs/heads/master | 2021-07-04T01:39:28.092188 | 2017-09-26T14:48:32 | 2017-09-26T14:48:32 | 104,897,704 | 0 | 0 | null | 2017-09-26T14:46:24 | 2017-09-26T14:46:24 | null | UTF-8 | Python | false | false | 4,381 | py | """
A collection of utility functions useful for Samplers.
"""
import sys
from collections import defaultdict
__all__ = ['ising_energy', 'qubo_energy', 'ising_to_qubo', 'qubo_to_ising']
PY2 = sys.version_info[0] == 2
if PY2:
iteritems = lambda d: d.iteritems()
else:
iteritems = lambda d: d.items()
def isi... | [
"acondello@dwavesys.com"
] | acondello@dwavesys.com |
067184c72b752c72d5cd4020f0f10391eff79213 | 2e24a9b5bdae31136c29bebef19377ffe69fe82a | /src/profiles/migrations/0011_auto_20151217_1025.py | e1479573a843fa5e9690b181bdfd0580a3a18948 | [] | no_license | RPowerHimself/bouncetribeapp | ec9581f2f9fa76017ad6f030eb43f54fc08bf57b | c26618a5e76e75520992a547681d024c37c38807 | refs/heads/master | 2021-01-19T04:15:53.995024 | 2016-07-28T06:51:57 | 2016-07-28T06:51:57 | 63,909,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('profiles', '0010_auto_20151217_0850'),
]
operations = [
migrations.AlterField(
... | [
"rpowermusic@gmail.com"
] | rpowermusic@gmail.com |
8518641e6b27b9cb072013d50fb9d31c992bd3f4 | 77a87e7b15d58b2d23bfdd9ed78b637bebfcc6eb | /.closet/jython.configurator.efr32/5.2.3.201904231805-1264/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg12xfull/revA2/__init__.py | 788557cd1bcbe387c68d952b14ce4ff68013e469 | [] | no_license | lenloe1/other-stuff | b06331a4f247f06066579472b296f1ae66f6bdaf | 897069e0464b19f81b14488d463710c81bb7fda4 | refs/heads/master | 2021-05-19T13:41:04.509601 | 2020-03-31T20:52:38 | 2020-03-31T20:52:38 | 251,728,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,045 | py |
# -*- coding: utf-8 -*-
"""
Overview
--------
This Python package contains a static source generation of the peripheral,
register, fields, and enums found in the ARM `CMSIS System View Description (SVD)
XML <http://www.keil.com/pack/doc/CMSIS/SVD/html/index.html>`_.
The static source code provides auto-completion i... | [
"31710001+lenloe1@users.noreply.github.com"
] | 31710001+lenloe1@users.noreply.github.com |
5400ca8328228c9eeb4f111ac9e3c3073db594c4 | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/06_Collections/04_Dictionaries/h_dicts.py | 7b161b17244c09055ac1dc5f3ea8cd65c7d6b8a4 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | #!/usr/bin/python
"""
Purpose: ways of defining dictionaries
"""
from pprint import pprint
# ways of creating dictionary
a = {'one': 1, 'two': 2, 'three': 3}
b = dict(one=1, two=2, three=3)
c = dict([('two', 2), ('one', 1), ('three', 3)])
d = dict(
zip(['one', 'two', 'three'], [1, 2, 3])
)
e = dict({'three': 3, ... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
8478ec5fb730911412bdc42943683f78bb12b889 | 487a8eec200bd41087c35ab33ffe5dc5c64ff20a | /hardware.py | 90cd45b90fdf07eb741b219ae5fc30743756e8b2 | [] | no_license | Darth-Neo/FacialRecognition | 5660652a9d5e52405a61eadf9a30cd8081a46a70 | 43863e60861d1032bf419222b6cb4e85e4b73852 | refs/heads/master | 2021-03-08T19:32:39.028757 | 2016-04-16T13:14:13 | 2016-04-16T13:14:13 | 56,383,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/env python
import time
import cv2
import RPIO
from RPIO import PWM
import picam
import config
import face
class Box(object):
"""Class to represent the state and encapsulate access to the hardware of
the treasure box."""
def __init__(self):
# Initialize lock servo and button.
... | [
"morrisspid.james@hotmail.com"
] | morrisspid.james@hotmail.com |
e7a74cd6958b69ddf322ec7d00534cc0db436202 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/65/usersdata/222/31789/submittedfiles/investimento.py | adf8cee1accf3386f1666a0ce4cf0acbf6b86078 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # -*- coding: utf-8 -*-
from __future__ import division
investimento=float(input('Digite o valor de investimento inicial :'))
taxa=float(input('taxa de crescimento percentual :'))
for i in range (1, 10, 1):
investimento = investimento + (investimento * taxa)
print (' %d R$%.2f')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2a0f5277870fee2fc1a3a730cbe0dfb98f8766c3 | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/managedidentities/v1beta1/get_peering.py | 680a2f06d134e15a450555fcece89c693389b268 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 6,205 | 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 copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
8800eed99af9c70cc1b91e8d1fc2d85e71576e96 | 27fb4799500dbdd4b6db48880f909038ab45ebb2 | /blog/feeds.py | 1919efd29935f9a5d34915f1ed90dbc295b69ec7 | [] | no_license | tonyxuxuxu/blog | 37b0c0cf905be4d404855fe2bbc570ad14c8f46b | 39d180af38c906a39a4775502dcdb6afe26cf2c9 | refs/heads/master | 2021-09-23T13:05:30.400978 | 2018-09-23T05:49:06 | 2018-09-23T05:49:06 | 105,885,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.contrib.syndication.views import Feed
from .models import Post
class AllPostsRssFeed(Feed):
title = 'Django personal blog'
link = '/'
description = 'Django blog'
def items(self):
return Post.objects.all()
def item_title(self, item):
return '[{}] {}'.format(item.catego... | [
"tonyxu0124@yahoo.com"
] | tonyxu0124@yahoo.com |
859cec7e75ec15104498ccb9b693734f17d8f5bf | 1076afd96dc5ebbafcb6151953e5b61291645bfa | /Lesson9MiniHack/ex16.py | 768ce4cfa7b4a20d6b529faa8b6a5daf056e9abe | [] | no_license | jackandrea54/C4T39-NDN | 73f6dd411f0a1df7f3274269cd2146e343359309 | bd05d671f8f2efed46e1f29fe43b18b482daa1a7 | refs/heads/master | 2020-08-22T04:56:34.845509 | 2019-10-20T07:40:19 | 2019-10-20T07:40:19 | 216,322,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | highscores = [75,85,60,98,99,100]
highscores.sort(reverse=True)
print(highscores)
for i in range(len(highscores)):
print(i+1,highscores[i],sep='. ')
new = int(input("Your score: "))
highscores.append(new)
highscores.sort(reverse=True)
print("New High Scores")
for i in range(len(highscores)):
print(i+1,highsco... | [
"piddfae@gmail.com"
] | piddfae@gmail.com |
78418bbf65782172346d03dd1c81ebc6ff932b07 | 2035bb89a24d088f53d351f99c6c646730eac376 | /test/test_periodogram.py | cd3cac9aeb0d6bcfa0fcb7e63909707a25467e91 | [] | no_license | eteq/spectrum | 17a161e265997f749cb7d75de072b7c9b68d96da | 0b1587c063ffd1625190b1de0b4d7a136a4d469c | refs/heads/master | 2021-06-21T03:30:23.500549 | 2017-08-07T12:43:15 | 2017-08-07T12:43:15 | 100,305,349 | 0 | 0 | null | 2017-08-14T20:08:56 | 2017-08-14T20:08:56 | null | UTF-8 | Python | false | false | 754 | py | from spectrum import *
from pylab import linspace, log10, plot, ylim, savefig
from spectrum.periodogram import *
def test_Periodogram():
p = Periodogram(marple_data)
p()
p.plot()
print(p)
def test_periodogram():
"""check that rho is correct (appendix 10.A )and reproduce figure 10.2"""
psd = s... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
8ccc27ca0345ea1607ae7996ff4367ad78c1139e | 20d1e9bd8f04b3862b1db6993f50b9347ede8e3a | /test_plot_2.py | d20b7c7d39b4134945680f9fc36132c05fb437c3 | [] | no_license | DimitriMisiak/fine-neutron-analysis | 9c3933c276a8e9caed8b83dd63eac1a340faba0d | 4371781d89caa6ecd322e2671c8f2a5734c01ccc | refs/heads/main | 2023-06-20T01:54:29.127390 | 2021-07-20T09:45:35 | 2021-07-20T09:45:35 | 387,755,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 14 12:04:43 2020
@author: misiak
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patheffects as pe
import matplotlib.ticker as mticker
cartoon = [
pe.Stroke(linewidth=3, foreground='k'),
... | [
"dimitrimisiak@gmail.com"
] | dimitrimisiak@gmail.com |
d2c036d16071ce333de3a48e39422e161b0b7411 | 29cbdb32adbf993022ba9ec367f9d39f99144e29 | /user_manager/views.py | c8c6b0ff7a6d86284236183380ce7383ea4a6528 | [] | no_license | uiandwe/django_rest_board | e29096c085ec72bf3776469d27ea1876d4f66f71 | aa9f7218d29d9c394649dd0370d0078559d01689 | refs/heads/master | 2021-01-19T03:02:02.831489 | 2016-07-19T11:57:16 | 2016-07-19T11:57:16 | 63,668,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | from django.shortcuts import render
from django.template.loader import get_template
from django.template import Context
from django.http.response import HttpResponse
from django.core.context_processors import csrf
from user_manager.forms import LoginForm, JoinForm
from django.contrib import auth
from django.shortcuts i... | [
"uiandwe@gmail.com"
] | uiandwe@gmail.com |
d2ef826f9966f994cbed7c84642f9693bf8dd862 | 3ff660941132bcaed5bfe309861843bd6657ee37 | /Companies/Practise/140. Word Break II.py | 43a55ef7f17913d24a3b95d2eb2e19d7c842c569 | [] | no_license | mrunalhirve12/Interviews2 | 04295cebe1946de1f310857d7fbded11a02f8eb1 | c48bd0a4e1112804da8bdf2d7e43ab0f2ef00469 | refs/heads/master | 2023-03-26T14:35:06.029701 | 2021-03-25T21:31:46 | 2021-03-25T21:31:46 | 351,593,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | """
Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences in any order.
Note that the same word in the dictionary may be reused multiple times in the segmentation.
Example 1:
Input: s = "catsandd... | [
"mrunalhirve@gmail.com"
] | mrunalhirve@gmail.com |
8161b46dc765c614c8730010c711a3b236ea8c83 | 2d101a977c9388dbf1ddb3e03f8145a77e6bb736 | /app/database_models/model.py | 761ec5d160c3f95b61a0cacba8d06674c163a7ba | [
"BSD-3-Clause"
] | permissive | lorentzenman/Apfell | 38d921f5be73340496fb819078ec25651fb6c0d0 | 2bbef240c7652e8d50e06f934dbb29748c30b4e8 | refs/heads/master | 2020-04-21T20:45:51.562154 | 2019-02-09T01:28:40 | 2019-02-09T01:28:40 | 169,856,105 | 1 | 0 | null | 2019-02-09T10:38:45 | 2019-02-09T10:38:45 | null | UTF-8 | Python | false | false | 47,604 | py | import peewee as p
import datetime
from app import apfell_db
import app.crypto as crypto
import json
class Operator(p.Model):
default_dark_config = json.dumps({
"background-color": "#303030",
"text-color": "#66b3ff",
"hover": "#b3b3b3",
"highlight": "#b3b3b3",
... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
0528a9460a25db09b5d259dada5dc88d2057e068 | f259a50a663a035c7c79bffbe4f7e08fc1ca5ce2 | /pepysdiary/annotations/management/commands/attribute_annotations.py | 004c74ed2582c9e6a835f36985de11d3f269c14e | [] | no_license | eskadah/pepysdiary | a22aa5d4c82c9a92410940e5e9562eb232873258 | 7fd706fc862e216216d8d80238516328404f5786 | refs/heads/master | 2022-09-13T12:21:19.237047 | 2020-06-03T10:34:54 | 2020-06-03T10:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | from optparse import make_option
import re
from django.core.management.base import BaseCommand, CommandError
from pepysdiary.annotations.models import Annotation
from pepysdiary.membership.models import Person
class Command(BaseCommand):
args = "[options] <email> <person_id>"
help = (
"Associate Ann... | [
"phil@gyford.com"
] | phil@gyford.com |
2c6a52dab794e5f81b4ec6273225cc15c84f93fa | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/AllotmentPayment/YW_PGJK_SHPG_016.py | 6fb6e92921fbb6eb4ab0d466fa1002ab2c5fb88f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from mainService import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/utils")
from QueryOrderErrorMsg... | [
"418033945@qq.com"
] | 418033945@qq.com |
a6dfe5da219e4a21b98592e37311fff4277ce9f9 | 2bbc7ba3ecdb54feffa446ed50297432f249e3dc | /ezdxf/algebra/matrix.py | 91dfacd152da9e196dba41e5318ee497162a24eb | [
"MIT"
] | permissive | stephenthoma/ezdxf | 16f7b06e43bad55ccf96387e22b68fd624a5d8fb | 5cb1fb0298707d69d1b039858523b97990d85fba | refs/heads/master | 2020-04-04T11:59:42.480375 | 2018-04-02T05:01:49 | 2018-04-02T05:01:49 | 155,910,581 | 0 | 0 | NOASSERTION | 2018-11-02T19:07:21 | 2018-11-02T19:07:21 | null | UTF-8 | Python | false | false | 5,824 | py | # Copyright (c) 2018 Manfred Moitzi
# License: MIT License
from itertools import repeat
class Matrix(object):
"""
Simple unoptimized Matrix33 math.
Initialization:
Matrix33(shape=(rows, cols))
matrix filled with zeros
Matrix33(matrix[, shape=(rows, cols)])
copy constructor and... | [
"mozman@gmx.at"
] | mozman@gmx.at |
bf29e5871f60ba677c6c4b3697482bf2f634701b | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /test/python/primitives/test_backend_sampler.py | 46ca9b935eea23678cae2b42fa43a1723b7ebe9a | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 12,842 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
b89a33b11743579c1f48e71a194dd75772550f04 | ba4c4147f545352502c13d01ff85b2ca947630e2 | /tests/test_npc.py | 3f71f1114bc7146bd46b4aa1c18315f4099f5568 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | narfman0/foxtrot | 8353e657ed4d4073805ab2e6f4c000490c9da9de | ffcf9c4c0e01cda5ca65c4a3dd978a18cf762860 | refs/heads/master | 2020-03-26T12:09:15.866476 | 2018-09-14T01:21:52 | 2018-09-14T01:21:52 | 144,878,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import random
from unittest import TestCase
from unittest.mock import Mock
from foxtrot.models.npc import NPC
class NPCTest(TestCase):
def setUp(self):
random.seed(1)
self.world = Mock()
self.world.npc_in_chunk.return_value = []
def test_npc_velocity(self):
npc = NPC(random=r... | [
"narfman0@gmail.com"
] | narfman0@gmail.com |
f578bdeb8b335764d4b4ffe22757173c94afe37a | 66c6f9a24c9a1f912e93f96b439b81a10cffac77 | /test/vanilla/AcceptanceTests/asynctests/test_bool.py | 9ec1f573af2ee781fc33d1964a398e9cd8580dcf | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kairu-ms/autorest.python | 5dd0e8bf2ebf0c0dc148342003899fabd269f946 | 20870e3870fcfeae9567b63343d2320bf388f3c6 | refs/heads/master | 2023-04-29T23:00:50.568945 | 2020-01-17T18:03:00 | 2020-01-17T18:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""),... | [
"noreply@github.com"
] | kairu-ms.noreply@github.com |
83adf180318bdcc6a32d48c46f6d0a0250a17ff8 | 44cf0bda12c8ca392a7000efa709adc2ac2aff42 | /17_파일입력함수.py | 5bfdd78ea177796240d44138de86cfd74afbe89e | [] | no_license | swj8905/Shinhan_Basic_Course | a3d0ebe9aa12a70f3da56cf78e7eca39c5a92238 | b59ad0eeaa4ef77bee5d41d504ecd76148dbf9f8 | refs/heads/master | 2023-06-03T07:30:24.585194 | 2021-06-29T09:32:02 | 2021-06-29T09:32:02 | 380,967,321 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | f = open("./test.txt", "r")
# result = f.read()
# result = f.readline()
# result = f.readline()
result = f.readlines()
print(result) | [
"swj8905@naver.com"
] | swj8905@naver.com |
c4d4c9171a7c709a116899fd5e07f9a3bec62380 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/networkconnectivity/v1alpha1/networkconnectivity-v1alpha1-py/tests/unit/gapic/networkconnectivity_v1alpha1/test_hub_service.py | 17fea2d6aa2af38cdcc842f93eb62f1052b98538 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,006 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7d2d0e9af53c93a8cc4b9c54ff62bfc22bae311b | 3996539eae965e8e3cf9bd194123989741825525 | /RecoHGCal/TICL/multiClustersFromTrackstersProducer_cfi.py | 86e86459e2f18f241003efe395c86f5750fbe9bd | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 334 | py | import FWCore.ParameterSet.Config as cms
multiClustersFromTrackstersProducer = cms.EDProducer('MultiClustersFromTrackstersProducer',
Tracksters = cms.InputTag('Tracksters', 'TrackstersByCA'),
LayerClusters = cms.InputTag('hgcalLayerClusters'),
verbosity = cms.untracked.uint32(3),
mightGet = cms.optional.untrac... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
f2e56814ea9e31e7e579caad25cdae21de0e6fb8 | 67b37ec7edd381c3738aa341d553fbeca908f7e0 | /hadoop/forum_analysis/wordreq_mapper.py | aeba718e8a90620689cf6e183d334a7f27e329b2 | [] | no_license | mbhushan/bigdata | a9577e0cebba2c822b4679ff00d0c8b63eb0767f | 1418e384d9f1ba87b185c35feeedf57b400c014b | refs/heads/master | 2016-09-07T19:01:49.129025 | 2015-09-04T08:14:43 | 2015-09-04T08:14:43 | 40,545,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/python
import sys
import csv
import re
patt = re.compile(r'\W+')
reader = csv.reader(sys.stdin, delimiter="\t")
firstrow = True
key = "fantastic"
for line in sys.stdin:
row = line.strip()
# row = re.findall(r"[\"](.*?)[\"]", row)
# print row
# print "TYPE: ", type(row)
if firstrow:
... | [
"manibhushan.cs@gmail.com"
] | manibhushan.cs@gmail.com |
c688597827eb717e28d584bfb3f05a3d89335ec1 | ca3d7f4cb0c23dffcd9b6a9b53bb5ee6240524be | /c02.py | b5fa67640c6fb0565296c09852c78975f09809d1 | [] | no_license | kevinelong/advanced_python | a61e62029ced7d0ea6df15b86fcfa1f33455111a | efbfa5400410933f7dcaf7d7ec41581ce5769fa6 | refs/heads/master | 2023-08-30T00:06:39.699900 | 2021-11-06T00:35:55 | 2021-11-06T00:35:55 | 276,710,848 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | import c01
print(c01.fib(10))
print(c01.version())
| [
"kevinelong@gmail.com"
] | kevinelong@gmail.com |
6fb8803474bdcae50521ecf083e6917b04bfc68c | 141d1fb160fcfb4294d4b0572216033218da702d | /exec -l /bin/zsh/google-cloud-sdk/.install/.backup/lib/surface/api_gateway/operations/describe.py | 93db0919893c03bca6bfce1d7d35adacb7df9f51 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sudocams/tech-club | 1f2d74c4aedde18853c2b4b729ff3ca5908e76a5 | c8540954b11a6fd838427e959e38965a084b2a4c | refs/heads/master | 2021-07-15T03:04:40.397799 | 2020-12-01T20:05:55 | 2020-12-01T20:05:55 | 245,985,795 | 0 | 1 | null | 2021-04-30T21:04:39 | 2020-03-09T08:51:41 | Python | UTF-8 | Python | false | false | 1,400 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"yogocamlus@gmail.com"
] | yogocamlus@gmail.com |
326821f62b712fd97e93114050ed41971c1a72fc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/323/usersdata/278/90994/submittedfiles/mdc.py | 4ca51a81f305d3f7de3933a9fab76a328beb936b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input("Digite o primeiro número inteiro: "))
n2 = int(input("Digite o segundo número inteiro: "))
mdc=1
resto=0
if n1>n2:
for i in range (2,n2,1):
for x in range (2,n2,1):
restox=i%x
resto+=restox
if resto==i:
resto... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
eb1b4e4630ebdac1f1595130b38f85aaa811da4e | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_icaar-eugei/freesurfer_scripts/04_plot_weight_maps.py | daae2c89842af1e05197a2fab7afc0ca692831f1 | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 22 09:30:30 2016
@author: ad247405
"""
"""
Created on Thu Sep 22 10:49:50 2016
@author: ad247405
"""
import os
import json
import numpy as np
from sklearn.cross_validation import StratifiedKFold
import nibabel
from sklearn import svm
from sklearn.metrics import precisio... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
1c65071e600a19fd7c0198932844b1802a89fb95 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03108/s947213370.py | cacb19363b2877ecb0388610d555deb027cbb008 | [] | 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 | 1,344 | py | class UnionFindWithSize(object):
"""UnionFindTree based on union by size + path compression.
"""
def __init__(self, size):
self.parent = [i for i in range(size)]
self.size = [1]*size
def find(self, x):
if self.parent[x] == x:
return x
# path compression
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4735babafec25802a5333d3b3bdf9ac075fe3981 | a2b9983aff0f9125a2112bfcd8396b33b1c1f8df | /docker/init/99_migrate_django_database.py | f7ba710e06e3dc69517448dbeaae242d9e621114 | [] | no_license | JivanAmara/meditate | 2f7a09d2ae7dd34fc26899821a2243dff0ef7971 | d44e4c9d0bb521cfdb98c63a4be5bf4b936c078d | refs/heads/master | 2021-05-10T20:26:38.946230 | 2018-05-25T20:26:39 | 2018-05-25T20:26:39 | 118,188,457 | 0 | 1 | null | 2018-03-16T18:45:19 | 2018-01-19T23:04:17 | HTML | UTF-8 | Python | false | false | 1,104 | py | #!/opt/meditate/virtualenv/bin/python3
# This script is for creating/migrating a sqlite3 database for the django project.
# If the database is created, it also loads initial data
import sys, os
import subprocess
from django.conf import settings
python_bin = '/opt/meditate/virtualenv/bin/python'
project_dir = '/opt/me... | [
"Development@JivanAmara.net"
] | Development@JivanAmara.net |
dcbdb9192be242c86bd1f87fad9fb6e0b488766f | c41edf53089b1ee466ea578aa74f0c1e9b95a8b3 | /aqi_v9.0.py | e7ddcc30a65d4b3fa949984af702f95d3a5a8f84 | [] | no_license | gjw199513/aqidemo | fb4e81e6d1f6b40c14bbcc5401ce57eac11beb2b | 64dc64def274916aa513890cb24e18777518c375 | refs/heads/master | 2021-05-11T12:33:20.256133 | 2018-01-16T09:17:49 | 2018-01-16T09:17:49 | 117,661,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # -*- coding:utf-8 -*-
__author__ = 'gjw'
__time__ = '2018/1/16 0016 上午 9:33'
# AQI计算
# 爬去pm25.in网站来获取数据
# 使用beautifulsoup4来爬去网页
# 获取所有城市
# 获取的aqi放入csv文件中
# 用pandas处理数据
import pandas as pd
def main():
"""
主函数
:return:
"""
aqi_date = pd.read_csv('china_city_aqi.csv')
print("基本信息:")
print(aq... | [
"gjw199513@163.com"
] | gjw199513@163.com |
5d06c7f936de0785a3ba361cd2dc222bc054ce47 | 966ac74b7c0ed2a75dd07e3feac1cc60092e7805 | /src/getImageList.py | b6c64ec889fcbce7a79ae070d0169f00f3253725 | [] | no_license | Sangkwun/image | 534efdceb6394173c62570c9ad194ee6529d44a3 | 7b8e741bb3b80a138631018b6e0cbb163fe01d9e | refs/heads/master | 2021-04-30T01:24:59.542634 | 2018-02-16T07:29:27 | 2018-02-16T07:29:27 | 121,483,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import os
import numpy as np
def search(dirname):
image_list = {}
filenames = os.listdir(dirname)
for filename in filenames:
if(filename[0] != "."):
full_filename = os.path.join(dirname, filename)
images = os.listdir(full_filename)
for image in images:
... | [
"wer2774@gmail.com"
] | wer2774@gmail.com |
f1940966ccdea847e781436e564dcc55d02796ee | d705e1e486564576b33202cb4e7f52dd7b5a4cf8 | /pj_login/urls.py | 29b75c9840ff33dedca5fb1cc3015bbdb1af772a | [] | no_license | gatchang/django-website-11 | 318c2f10210e90c3d12d1b0e21629508cb1beee4 | 3412b76f8542e919b43f1d4dabf68d1f2d0863b5 | refs/heads/master | 2023-03-20T09:07:54.006363 | 2020-10-13T13:04:30 | 2020-10-14T02:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from django.contrib import admin
from django.urls import path, include
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
from registration import views
# 実はページを表示するだけならこのように1行で書くことが出来ます。
index_view = TemplateView.as_view(template_name="registration/index.html")
u... | [
"you@example.com"
] | you@example.com |
d2a5157211ad7933597754043f58793866684b8c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2741/60737/251529.py | db964c261859092caa10b47597a0c9a8f6a58f13 | [] | 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 | 388 | py | def find_len(nums):
if len(nums) <= 1:
return len(nums)
maxlen = 0
count = 1
for i in range(len(nums)-1):
if nums[i]<nums[i+1]:
count += 1
else:
maxlen = max(count, maxlen)
count = 1
maxlen = max(count, maxlen)
return maxlen
if __name... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6436dfeb02025f42d05122a2ed77bca8f774078e | 199c19abc71108b4507d1689537a632ccb1a76f9 | /session3/homework/login.py | 0d775a68c6ef78786503b728322381dbc68d8c20 | [] | no_license | VetKira/daotrongcuong-fundamentals-c4e23 | 15d1932c95574462540088b3abba7fed6631c03f | ea1da093146ef5c69640bb57cb13aee7f568cfcd | refs/heads/master | 2020-04-02T17:18:49.342412 | 2018-11-01T13:29:34 | 2018-11-01T13:29:34 | 154,652,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py |
print(" hi there , this is superuser gateway ")
user = input("username : ")
if user == ("c4e"):
ps= input("password : ")
if ps ==("codethechange"):
print("welcome c4e")
else :
print("cheater , bitch , password is incorrect")
else :
print("you are not superuser") | [
"doanxem.ml@gmail.com"
] | doanxem.ml@gmail.com |
e9aeda020011aa97254693cfe5db003f9f1dd06b | f8db8b11ad41d246cd4a0d71b75e3a324a481b14 | /main.py | b66f88f9f16dafb3418603fe0ea0b5a4729901ab | [
"MIT"
] | permissive | secretBiology/SecretPlots | b978703497d255eb099b471fdafcea7fdf793bd3 | eca1d0e0932e605df49d1f958f98a1f41200d589 | refs/heads/master | 2022-07-07T07:00:57.625486 | 2022-01-14T05:44:54 | 2022-01-14T05:44:54 | 206,092,023 | 0 | 1 | MIT | 2022-06-21T22:45:18 | 2019-09-03T14:03:56 | Python | UTF-8 | Python | false | false | 53 | py | from SecretPlots.network.graphs import run
run()
| [
"rohitsuratekar@gmail.com"
] | rohitsuratekar@gmail.com |
4eb4e26d8504af15a1e996de5de6eeee40d2f889 | e1841bd6fcbd3393c47c6c08a136c6e8f6592528 | /game_ac_network.py | d1250fb499cec95aaa59cc835405687cee982061 | [
"Apache-2.0"
] | permissive | ml-lab/async_deep_reinforce | 6bc6a904cba41ef9546b2982240673ea5644c129 | a99c73760273cdeb31eb81ef07407901d8211895 | refs/heads/master | 2020-12-14T09:43:19.862051 | 2016-04-27T15:43:21 | 2016-04-27T15:43:21 | 57,276,036 | 1 | 0 | null | 2016-04-28T06:17:44 | 2016-04-28T06:17:44 | null | UTF-8 | Python | false | false | 4,710 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
# Actor-Critic Network (Policy network and Value network)
class GameACNetwork(object):
def __init__(self, action_size):
with tf.device("/cpu:0"):
self._action_size = action_size
self.W_conv1 = self._weight_variable([8, 8, 4, 1... | [
"miyoshi@narr.jp"
] | miyoshi@narr.jp |
e0e8035ecc2ff9981da1443e9bc3b7ed0e3bc71b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03424/s659188627.py | 9d62941732fe8431fcfdcf67085d9ff693d2bff2 | [] | 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 | 449 | py | # -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1
def main():
N=int(input())
S=set(list(i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dedcc7bcb8e30e79736b0372d3dc9aedbbb3f5ee | 70d4ef0863906b3ca64f986075cd35b8412b871e | /pipeline/management/commands/create_atoms_app.py | b149f253cf24c09240598e5893cf4402cb71a5cd | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | selinagyan/bk-sops | 72db0ac33d9c307f51769e4baa181ceb8e1b279e | 39e63e66416f688e6a3641ea8e975d414ece6b04 | refs/heads/master | 2020-05-07T16:44:33.312442 | 2019-04-11T02:09:25 | 2019-04-11T02:09:25 | 180,696,241 | 0 | 0 | null | 2019-04-11T02:07:11 | 2019-04-11T02:07:10 | null | UTF-8 | Python | false | false | 2,083 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"pagezhou@tencent.com"
] | pagezhou@tencent.com |
f64f23de6f8765f7335949bc19a991c14f41bbd3 | 81cac5d646fc14e52b3941279d59fdd957b10f7e | /tests/components/senseme/__init__.py | 2286b1ad890e4e42de53c9eb87f3479000271379 | [
"Apache-2.0"
] | permissive | arsaboo/home-assistant | 6b6617f296408a42874a67a71ad9bc6074acd000 | 554e51017e7b1b6949783d9684c4a0e8ca21e466 | refs/heads/dev | 2023-07-27T20:56:52.656891 | 2022-01-19T19:30:57 | 2022-01-19T19:30:57 | 207,046,472 | 2 | 0 | Apache-2.0 | 2019-09-08T01:35:16 | 2019-09-08T01:35:16 | null | UTF-8 | Python | false | false | 3,269 | py | """Tests for the SenseME integration."""
from contextlib import contextmanager
from unittest.mock import AsyncMock, MagicMock, patch
from aiosenseme import SensemeDevice, SensemeDiscovery
from homeassistant.components.senseme import config_flow
MOCK_NAME = "Haiku Fan"
MOCK_UUID = "77a6b7b3-925d-4695-a415-76d76dca44... | [
"noreply@github.com"
] | arsaboo.noreply@github.com |
3f10b57b42a7af641b87f336fba623bd56bd2b16 | bf681fbd7edbf4f8f1e0b20cbd09b362f777c9c3 | /python/ray_example/ray_exec_all.py | d8a6939fd0aa5444eeb195b00f50a63763413f0f | [
"BSD-3-Clause"
] | permissive | EricCousineau-TRI/repro | 308d4a86f3c7da8be5811db2f3f68d39db60d7ed | 9800f45e07f511c9a355ee90333955451b55559a | refs/heads/master | 2023-08-31T13:49:23.540640 | 2023-08-25T19:18:33 | 2023-08-25T19:18:33 | 87,116,976 | 24 | 13 | NOASSERTION | 2023-03-25T01:40:55 | 2017-04-03T20:19:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,458 | py | #!/usr/bin/env python3
"""
Executes commands on both head and worker nodes.
"""
import argparse
import dataclasses as dc
from multiprocessing.pool import ThreadPool
from os.path import expanduser
import re
import shlex
from subprocess import run, PIPE, STDOUT
from textwrap import indent
def subshell(args, *, check=... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
7249c4da36ba9765f1dfbf66f091d500e115741c | c69072cdfc6cf2f3d93b77697d3fc2fc876b4903 | /dataloaders/kitti_dataloader.py | eabc537dd3b269f734f929fecc2632648090a2eb | [] | no_license | HieuPhan33/deep-ordinal-regression-depth-estimation | af15562da37b34968fb47ea0edc4642cb51a1d2c | 8663b0424face47642bf4a696651f5b58d9344bb | refs/heads/master | 2022-12-17T02:59:00.226510 | 2020-02-23T03:21:27 | 2020-02-23T03:21:27 | 237,359,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,239 | py | # -*- coding: utf-8 -*-
"""
@Time : 2019/1/23 23:00
@Author : Wang Xin
@Email : wangxin_buaa@163.com
"""
import os
import numpy as np
from PIL import Image
from torch.utils.data import Dataset
IMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp', '.pgm', '.tif']
def pil_loader(path, rgb=True):
#... | [
"wangxin_buaa@163.com"
] | wangxin_buaa@163.com |
83b47c7bd712b3cea96b4caed67f0e6195eb8649 | 920ab19b73a7cba21d340a49d9d24e2d1eeabf3d | /idpsreact/lib/python3.7/site-packages/sentry_sdk/integrations/aiohttp.py | 7361213334de14ba4bdad66bef16dbde56b1b5a8 | [
"MIT"
] | permissive | DTrafford/IDPS | 5fa2b73f2c47cbf50b90a1a786c10f7d69c995b4 | 1eaccfc218adcb7231e64271731c765f8362b891 | refs/heads/master | 2022-12-16T16:28:34.801962 | 2020-03-30T18:08:09 | 2020-03-30T18:08:09 | 234,163,829 | 0 | 0 | MIT | 2020-09-10T06:26:02 | 2020-01-15T20:10:09 | Python | UTF-8 | Python | false | false | 6,195 | py | import sys
import weakref
from sentry_sdk._compat import reraise
from sentry_sdk.hub import Hub
from sentry_sdk.integrations import Integration
from sentry_sdk.integrations.logging import ignore_logger
from sentry_sdk.integrations._wsgi_common import (
_filter_headers,
request_body_within_bounds,
)
from sentry... | [
"d.trafford@outlook.com"
] | d.trafford@outlook.com |
9871a3a31dd4ea3499b6ad77ee954b4a2c10aa00 | dcf65c5811010a38c45c595f1582c94b6a78dd3c | /Django JavaScript Integration- AJAX and jQuery/0349_Code/0349_07_Code/07.py | 95f5cfe51bddcade43f28ba5ec924e52f0f347fd | [] | no_license | jerryxing98/Tully | 7d4d9ee177902cbda0601c7f02715d29a417c2f6 | 78bb082ce16fd3b814d4d590a875bfbcdfdfe5fb | refs/heads/master | 2021-06-25T01:42:20.388899 | 2014-04-11T14:20:33 | 2014-04-11T14:20:33 | 11,405,119 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | @login_required
def profile(request, id):
entity = directory.models.Entity.objects.get(pk = id)
emails = directory.models.EntityEmail.objects.filter(entity__exact =
id).all()
all_entities = directory.models.Entity.objects.all()
all_locations = directory.models.Location.objects.all()
return Htt... | [
"jerry_xing8@163.com"
] | jerry_xing8@163.com |
a0910a2a3fe2ff6502857650032e446f2aab78a9 | 2c4cb7b19a0b942c8f3ddadb6fde65cc0901ef66 | /sdf-net/lib/torchgp/sample_near_surface.py | 702fe25d8cec4c7af43f83a2f9a955a6a74a5dab | [
"MIT"
] | permissive | kingcodefish/nglod | 04871b6d9efd2b2aeb8a8ec8ff02c9fd500b9302 | 765b847bb291070d4b7df8eb12dd061e11945185 | refs/heads/main | 2023-08-22T04:25:20.641217 | 2021-09-15T11:56:57 | 2021-09-15T11:56:57 | 406,733,127 | 0 | 0 | MIT | 2021-09-15T11:22:50 | 2021-09-15T11:22:49 | null | UTF-8 | Python | false | false | 1,896 | py | # The MIT License (MIT)
#
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, co... | [
"tovacinni@gmail.com"
] | tovacinni@gmail.com |
ffafa8ae312d411b1024cdfbcd7e179252122192 | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/feed/rank/offline/construct_training_data/tuwen/config.py | 1fb66759bcfb34c271b20726fee214cc9ce57c2e | [] | 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 | 978 | py | DEBUG=0
COMPRESS='com.hadoop.compression.lzo.LzopCodec'
# COMPRESS=None
MARK='0' # '0' for tuwen '1' for video '2' for both
TYPE='tuwen'
TUWEN_MARK='0'
VIDEO_MARK='1'
ALL_MARK='2'
HASH_ONLY=0
# in you app you can choose 2kw,3kw,5kw,1y,2y
FEAT_DIM=600000000
ENCODING='gb18030'
FILTER_RATIO=0.
NUM_PRES=18
# mid, do... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
bb76a907c1bb1a26f494d87e577b4158088aae26 | 873a385d1ef1ae2fe0159904952464005ec0408f | /tests/plugins/density_outlet.py | 3fb5994f0d5daf769ef01fdfce4e3182236f8195 | [
"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 | 1,188 | py | #!/usr/bin/env python
import mirheo as mir
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--max_density", type=float, required=True)
args = parser.parse_args()
dt = 0.001
ranks = (1, 1, 1)
domain = (32, 32, 32)
u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log', no_splas... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
746b88463c5b7deec4d2f6709b26099f677e6e93 | b1fe2c3fb682cee698316fe87b906e34c4243862 | /spiders/spiders/spiders/chengyu_spider.py | 1c85f5cd1912552cb45657e61c32428a460311da | [] | no_license | hongweizeng/scrapy | 43b5b89518a715252d4a2fa79d0f855b5d46f567 | ec89e9c464877d69a3e1f753b43e924fcc2ebcfe | refs/heads/master | 2021-06-06T12:38:03.135787 | 2016-09-26T02:08:19 | 2016-09-26T02:08:19 | 66,512,543 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | # -*- coding:utf-8 -*-
import os,sys
import re
import scrapy
from bs4 import BeautifulSoup
import urllib
import string
reload(sys)
sys.setdefaultencoding('utf-8')
from spiders.items import ChengyuSpidersItem
class ChengyuSpider(scrapy.Spider):
#name = "chengyu"
start_urls = []
for word in string.uppercase:
start... | [
"zhw1025@gmail.com"
] | zhw1025@gmail.com |
704c1ad20f1ef17bc9761d3440f382c294a9136c | f5d02c9d508f71fa4c8c2da4073415e4b881e9ea | /node_launcher/configuration/configuration.py | a553d3ad2a32f47c6db7f31b34ba934b7454d573 | [] | no_license | QuinnDK/node-launcher | b9a6185035da8ee2f613fdcba5ac69fde9339a03 | 99634b5974f07478c6475b49cb223d8c7182c9ee | refs/heads/master | 2021-10-02T21:30:10.730054 | 2018-11-30T23:54:36 | 2018-11-30T23:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from node_launcher.configuration.bitcoin_configuration import \
BitcoinConfiguration
from node_launcher.configuration.directory_configuration import DirectoryConfiguration
from node_launcher.configuration.port_configuration import PortConfiguration
from node_launcher.node_software.bitcoin_software import BitcoinSof... | [
"pierre@rochard.org"
] | pierre@rochard.org |
0c14cd6901469b59733c9db6ed6db19b7b6af691 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/squareroot/e2490181-2d9c-4fb5-bf3b-6ea36aae6bd8__power.py | 5f7bc1b0bda97db4d16232a3fcf3501479a14058 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import os
import sys
import numpy as np
f=float(sys.argv[1])
def power(x):
return x**2
def square_root(x):
return np.sqrt(x)
square=power(f)
root=square_root(f)
print "square result=",square, "root result =",root
for num in range(201):
print "The top ",num+1 , "is :",num
| [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
675d36fa795e937d9cc209d3cb2fd810484a4c4e | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/e74f1f5197b8947af933/snippet.py | bbcb7478d83bee649436f5b5d8cd62306fe3bd17 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 440 | py | from functools import wraps
def defaults(method='__init__', **default_args):
"""Class decorator. Overrides method default arguments."""
def decorate(cls):
func = getattr(cls, method)
@wraps(func)
def wrapper(self, *args, **kwargs):
default_args.update(kwargs)
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
eec79f90f0b25de5f0766eb741c2926875c84c3f | 53c4ec58760768fc9073793cf17cd8c55978c3af | /annotator/uniformer/mmcv/utils/ext_loader.py | 08132d2c1b9a1c28880e4bab4d4fa1ba39d9d083 | [
"Apache-2.0"
] | permissive | HighCWu/ControlLoRA | 0b6cab829134ed8377f22800b0e1d648ddf573b0 | 3b8481950867f61b2cf072b1f156d84f3363ac20 | refs/heads/main | 2023-08-05T08:51:25.864774 | 2023-02-28T13:06:24 | 2023-02-28T13:06:24 | 603,359,062 | 421 | 20 | Apache-2.0 | 2023-08-02T02:14:40 | 2023-02-18T09:12:15 | Python | UTF-8 | Python | false | false | 2,021 | py | # Copyright (c) OpenMMLab. All rights reserved.
import importlib
import os
import pkgutil
import warnings
from collections import namedtuple
import torch
if torch.__version__ != 'parrots':
def load_ext(name, funcs):
ext = importlib.import_module('mmcv.' + name)
for fun in funcs:
asser... | [
"highcwu@163.com"
] | highcwu@163.com |
3e281064a8b3194d618f27356101a8635542e78d | e9f096e564afc9f0cfabaeaac67c2ff2b1c46d24 | /requestsDemo/Test02_url.py | 8f87b1ec94c2decaa9bd32bdf7dcebea901dadfe | [] | no_license | zh199609/pythonLearning | dcb4bfb4560fab0ac66a88934af278489abff38d | 430c70f1892966cf8f6b01e30e3a7996e83cc7ff | refs/heads/master | 2021-11-21T12:49:21.522780 | 2021-08-31T13:14:55 | 2021-08-31T13:14:55 | 238,373,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import urllib.parse
import requests
# 通过url传递参数
response = requests.get("http://localhost/Home/Goods/search.html?q=手机")
# 通过params传递参数
response2 = requests.get("http://localhost/Home/Goods/search.html", params="q=手机")
# 字典
params3 = {
"q": "手机"
}
response3 = requests.get("http://localhost/Home/Goods/search.html... | [
"1120123073@qq.com"
] | 1120123073@qq.com |
c0169b4b34376115fe99a5f5aaf54907f7bccdea | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /tests/gem5/learning_gem5/part3_test.py | eb758afe5db996b323d0ac1791d5222147d35c4f | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 2,559 | py | # Copyright (c) 2019 The Regents of the University of California.
# 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, this li... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
6ad834c8f1847155850b5dfb7f7183820b134652 | 974e884ec655e14179c4434b82764aa3d05d3262 | /src/0135.py | bf29b680f48867553a2070c81e6b4cb701040275 | [] | no_license | brickgao/ProjectEuler | 13d842bf24f217a95ec9732bfb5d1d4b496b21a2 | 6ca88ff53feff744e64868a75c47a4783a7dc4e0 | refs/heads/master | 2020-12-24T06:58:25.682464 | 2016-04-10T08:33:49 | 2016-04-10T08:33:49 | 16,065,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/bin/env python3
# -*- coding: utf-8 -*-
def solve():
limit = 10 ** 6
rec = [0 for i in range(limit + 1)]
for u in range(1, limit):
v = 1
while u * v <= limit:
if (u + v) % 4 == 0 and 3 * v - u > 0 and (3 * v - u) % 4 == 0:
rec[u * v] += 1
v += 1
... | [
"brickgao@gmail.com"
] | brickgao@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.