blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
609aaf7f8fd928896f6e8001f695b16b2e6a9073 | 4b4d21f6a2aaf8cb0ece595e4aaf9cb705ffdd49 | /manage_project_team/__manifest__.py | 3bec19915b2a24224db8ffd3a573785b80ce7467 | [] | no_license | sc4you/odoo-project-10.0 | e8c82b4cd42c0672e996561e75e0f9d0717821fa | bca7e400b6316bcbcefe6f0d088cb97a28f644bb | refs/heads/master | 2020-03-21T13:41:08.042847 | 2018-05-15T07:41:58 | 2018-05-15T07:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Auth: Gavin GU Email:guwenfengvip@163.com
{
'name': '项目团队管理',
'summary': '项目团队管理',
'category': 'Project Management',
'description': """
* 建立项目团队
""",
'author': 'Gavin Gu',
'website': "",
'v... | [
"guwenfengvip@163.com"
] | guwenfengvip@163.com |
2749456550bf8b4e33370afc4747db5d70a9e168 | 3f9d28984403cdd84b984d7a82eb6136018966a4 | /loyalty_in_pos/__manifest__.py | feab1bdf9f1d655e97c04ffde69be6e9116bc5e3 | [] | no_license | joevm018/temasq | bee1c69aee4c87de415e66e236b40c28201e2951 | 74f003c6a009716bf26a6438f5ee48e7dfcbb030 | refs/heads/master | 2023-03-18T23:42:13.598853 | 2021-03-11T11:35:16 | 2021-03-11T11:35:16 | 346,671,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
{
'name': 'POS Loyalty',
'version': '10.0.1.0.0',
'category': 'Point of Sale',
'license': 'AGPL-3',
'author': 'Al Kidhma Group',
'website': "",
'depends': ['point_of_sale', 'beauty_pos'],
'data': [
'security/ir.model.access.csv',
'views/templates... | [
"esreejishnu@gmail.com"
] | esreejishnu@gmail.com |
b703be27bc55cf997be57531bcff211078d8e1c7 | a947eebe4bb4e0ae70febc0c1bd3d7843abe8f1f | /tf_agents/bandits/agents/neural_epsilon_greedy_agent_test.py | 9f8ac99eb34151ab683ab36af463a34c4991bafb | [
"Apache-2.0"
] | permissive | MarioBonse/agents | 79d1762a59e4bbbbaf6a7fc99de792626426032e | c727141f67051b86d2564c4bd5fbc080623bfe19 | refs/heads/master | 2021-02-25T10:26:50.883869 | 2020-03-05T17:34:23 | 2020-03-05T17:34:51 | 245,453,318 | 1 | 0 | Apache-2.0 | 2020-03-06T15:24:44 | 2020-03-06T15:24:44 | null | UTF-8 | Python | false | false | 4,374 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
82c519c211fe5d8969dbd52afd97b9155f4786da | d2ef8af8bec6a9bb0cc282b222b3c9870937c7fd | /rango/migrations/0002_auto_20181125_2252.py | 165f24cebaddf19fb46235076c6c27463a50a4ad | [] | no_license | jonerra/tango_with_django | 0c417e55635991ad19e5e2e65af030f4c5821c8a | 1ae48041bb8db50d24e785787ef304cf59ae82c6 | refs/heads/master | 2020-04-09T05:26:20.643292 | 2018-12-03T03:56:04 | 2018-12-03T03:56:04 | 160,064,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 2.1.3 on 2018-11-26 03:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name_plur... | [
"jonerra23@aim.com"
] | jonerra23@aim.com |
d3ec057ca0415c323e31f71fe83f9957fecc19e2 | b3aa3d77836fa8f05b54d68e7bd6bff19dced90d | /Codeforces/595 Div 3/A.py | 3962f814607c38628d91d2387882fe675afae7bd | [] | no_license | anoubhav/Codeforces-Atcoder-Codechef-solutions | 660c5b78723791bc33b1d51977bf11ebe6dfe4c1 | aeebcae332af64aba49f52261d11aa6996f33b1c | refs/heads/master | 2022-12-08T14:02:49.574928 | 2020-08-29T14:18:30 | 2020-08-29T14:18:30 | 255,004,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # 12 mins. Very slow. No submision errors. Scopula took 4 mins.
from sys import stdin, stdout
q = int(input())
answers = []
for _ in range(q):
n = int(input())
nums = list(map(int, stdin.readline().strip().split()))
d = dict()
for i in nums:
d[i] = 0
ans = 1
for i in num... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
a9f32b3e38fdfc964e1ae7e3a8fc0a3249844622 | a5747577f1f4b38823f138ec0fbb34a0380cd673 | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisZZTo2L2Q.py | 0193a948e43e5e0d7b4b2c028f3f398ba4b4c6f8 | [] | no_license | xdlyu/fullRunII_ntuple | 346fc1da4cec9da4c404aa1ec0bfdaece6df1526 | aa00ca4ce15ae050c3096d7af779de44fc59141e | refs/heads/master | 2020-08-03T07:52:29.544528 | 2020-01-22T14:18:12 | 2020-01-22T14:18:12 | 211,673,739 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'ZZTo2L2Q'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Fall17_17Nov2017_V8_MC_L1FastJet_AK4PFchs.txt'... | [
"XXX@cern.ch"
] | XXX@cern.ch |
9c34ff68ed2a8c2ac9ba13b74e29aef14d4df6f3 | 14b9f5b596c755325ef2bf4d4e6a2ca85d64c1d3 | /main.py | caef9ee752c54e6fd23b643eb7a63cfdd1d017c6 | [] | no_license | chelseatroy/speed_test | b7dd8ab3d2d2fb023aa76562a647dbce9d4910ae | c29787f31e13736bbb5aa7d1a503015b7b02dec7 | refs/heads/master | 2020-04-03T07:59:40.906188 | 2018-11-09T20:42:49 | 2018-11-09T20:42:49 | 155,120,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | # from multiply import python_multiplication, c_multiplication
import numpy as np
import time
import ctypes
import time
from _ctypes import Structure, POINTER, byref
from ctypes import c_int, c_float
import pyximport; pyximport.install()
import multiplication
import numpy as np
def c_multiplication(a, b):
class... | [
"chelsea.dommert@gmail.com"
] | chelsea.dommert@gmail.com |
2c769a4226b66757b69871a2e6054f5c67edbe86 | 0d6d35d692f8b160b33a09e72ff3e5a6d86407f8 | /georef/(old)/helpers/messages.py | 8d73d0ba05c5002c083509627bb3d5402a4c2ef2 | [
"MIT"
] | permissive | karimbahgat/GeoRef | 51071bdb217249611933bdc5d95284611de149b7 | 858fc525b5a7504ce7d62323ff7322a2bf24d611 | refs/heads/master | 2021-01-17T07:42:25.154396 | 2019-11-18T01:42:35 | 2019-11-18T01:42:35 | 19,272,427 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,523 | py | # Import main modules
import sys, pickle, Queue
# Import custom modules
from textual import txt
import timetaker as timer
def SnapVars(onlyvars=[], excludevars=[]):
"""
not working yet bc only snaps local vars...
"""
print ("snapshot of variables:")
print ("----------------------")
if onlyvars: allvars... | [
"Karim.bahgat.norway@gmail.com"
] | Karim.bahgat.norway@gmail.com |
ae0b74e0ed0c233279aa29ebe931b725b06b004c | e79de9c9def60b0f814ab0625a2eb8bce3428ddd | /challenges/pybites/bite_189_tst.py | 1a92e2e5622ea5082f12a3a47610a06a0e60c15e | [] | no_license | mh70cz/py_old | a80e2140a279541c3639f89df70fadad34f7df0f | 1af878cfbff24e5c6d39219c2c4faebd5a12f0c4 | refs/heads/master | 2022-04-05T15:07:10.840387 | 2020-01-13T18:39:50 | 2020-01-13T18:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | """
Bite 189. Filter a list of names
"""
import pytest
from bite_189 import filter_names
@pytest.mark.parametrize("names, expected_return", [
(['bob'], []),
(['bob', 'berta'], []),
(['quit', 'ana'], []),
(['12', 'bas'], []),
(['ana', 'bob'], ['ana']),
(['ana', 'bob', 'quinton'], ['ana']),
... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
c8bf1a8cafae2c3e3c8a49c632d07cc4eee303c4 | ad6f20ca36dc65e34b43c69db66f383554718fed | /dp/@graph.py | 3a3801e3358c0405de3631e25c56616359941090 | [] | no_license | atulanandnitt/questionsBank | 3df734c7389959801ab6447c0959c85f1013dfb8 | 477accc02366b5c4507e14d2d54850a56947c91b | refs/heads/master | 2021-06-11T21:39:24.682159 | 2021-05-06T17:54:18 | 2021-05-06T17:54:18 | 175,861,522 | 0 | 1 | null | 2020-05-02T09:26:25 | 2019-03-15T17:10:06 | Python | UTF-8 | Python | false | false | 1,042 | py | #code
#https://practice.geeksforgeeks.org/problems/largest-square-formed-in-a-matrix/0/?ref=self
def largest_square_formed_in_a_matrix(l,m,n):
a = []
now = 0
for i in range(m):
a.append(l[now : now + n])
now += n
dp = [[0 for i in range(n)] for j in range(m)]
f... | [
"atul.anand.nitt@gmail.com"
] | atul.anand.nitt@gmail.com |
beaf53cd271107b732e3d44827bff512c5baab65 | 4db158b65cabb64ac47dbde09732a7d2c42fb8d1 | /LintCode/378. 将二叉查找树转换成双链表.py | 9c126d5065e812e9e819d4f7313716f57ebf43d3 | [
"Apache-2.0"
] | permissive | iFengZhao/Algorithms-1 | e87c52ccaf73a26338e136100acd516b722b3255 | ffb722703ffc7947bff56ffabe7a491e1e4049f4 | refs/heads/master | 2023-03-14T00:32:01.329241 | 2021-03-06T07:17:40 | 2021-03-06T07:17:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
Definition of Doubly-ListNode
class DoublyListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = self.prev = nextDefinition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
... | [
"realchangyu@gmail.com"
] | realchangyu@gmail.com |
003a007ddf5cb504e03c8aa543e110c40451dd71 | b89474ef844f3b860b0027e46206ae0aa911dfd3 | /Programming Funcamentals Using Python/Day 2/flight_ticket.py | 9f51fa9ae60bef34cecde026e527839c4a309132 | [] | no_license | AgentT30/InfyTq-Foundation_Courses | 6e2574fca0dc5ff1126d1e910d5086e695921dce | a676478df0c083839ebe56ee3dcb9fffd2307390 | refs/heads/master | 2022-12-01T11:28:06.052658 | 2020-08-13T04:41:34 | 2020-08-13T04:41:34 | 287,181,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | def calculate_total_ticket_cost(no_of_adults, no_of_children):
total_ticket_cost = 0
total = 37550.0 * no_of_adults + (37550.0 / 3) * no_of_children
total += (total * 0.07)
return (total - (total * 0.1))
total_ticket_cost = calculate_total_ticket_cost(3, 1)
print("Total Ticket Cost:", total_ticket_co... | [
"cthekkunja304@gmail.com"
] | cthekkunja304@gmail.com |
abca5c5170ba3a73c9557635a1d0bd0b16620f0b | 17c380fe1fee2d6dd7a249c506a6b8827c3d0417 | /04/Python/t4_2.py | 8d28045ca99786bf5e798765f3bb197f73055d29 | [] | no_license | LubosKolouch/adventofcode_2019 | b80f0603ee2a642c56def502b1575dde6e1f02b2 | 84d381f3ad416940de6c891ee095e1770f44c0bf | refs/heads/master | 2023-02-06T14:08:30.962125 | 2020-12-28T08:04:54 | 2020-12-28T08:04:54 | 225,130,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #! python3
count = 0
for i in range(172851, 675870):
prev_num = 0
ok = 1
for char in str(i):
if int(char) < prev_num:
ok = 0
prev_num = int(char)
if ok == 1:
found = 1
prev_char =0
for char in str(i):
if (char != prev_char):
... | [
"lubos@kolouch.net"
] | lubos@kolouch.net |
6b2f3a0f1b1a5d818d240e9b23a22bc48321e378 | 0a2cc497665f2a14460577f129405f6e4f793791 | /tools/azure-devtools/setup.py | d800c2b0fbca9b3871c1d85086bf9aa9671fb517 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 2,245 | 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"
] | hivyas.noreply@github.com |
267fc18107fc667d7a3cdc29a81e8ba5c97f395e | c7dc3be23ca32c66426c115229c05094c2843d72 | /mill_stock/models/__init__.py | ac998e3147475472992f60144555178efe511521 | [] | no_license | shivam1111/singla | 4270f693ae1103ba49a715a248516d6689ba2105 | c7b7ed871088a18ccb5643938abc4c9453d7fc00 | refs/heads/master | 2023-03-17T00:56:41.487835 | 2023-03-11T11:40:04 | 2023-03-11T11:40:04 | 142,576,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import material_grade
import heat_heat
import stock_line
import mill_purchase_order
import chemical_composition
import test_test
import res_partner | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
09fe24a9aac983f3252b4d76a4ab4d1577b4b8b0 | c2d48caa5db7e746a38beca625406fcf47379d3c | /src/olympia/scanners/migrations/0010_auto_20191023_0908.py | 2b6f2cc85af8aa0b26f6363c1217365f461f4ce6 | [] | permissive | mozilla/addons-server | 1f6269ec0a4aa5a0142a5f81978ef674daf213a7 | e0f043bca8a64478e2ba62f877c9dc28620be22f | refs/heads/master | 2023-09-01T09:34:41.867534 | 2023-09-01T07:21:22 | 2023-09-01T07:21:22 | 16,416,867 | 920 | 590 | BSD-3-Clause | 2023-09-14T16:15:01 | 2014-01-31T18:44:15 | Python | UTF-8 | Python | false | false | 229 | py | # Generated by Django 2.2.6 on 2019-10-23 09:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [('scanners', '0009_auto_20191023_0906')]
# Nothing to do...
operations = []
| [
"noreply@github.com"
] | mozilla.noreply@github.com |
732584cad8ac2aa933008f98152141bce8c423f9 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/check_point/mgmt/tests/units/modules/test_cp_mgmt_verify_policy.py | bd708bff0724ea542013919c8b33b60e7077dcda | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 2,474 | py | # Ansible module to manage CheckPoint Firewall (c) 2019
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dist... | [
"sifang@cisco.com"
] | sifang@cisco.com |
b989d637becc43a18e3a3c7fdf223f8b5aa2d273 | 0684ecda0d987862a3ecc7c5f3bd4a11c0c5f7f6 | /moda/dataprep/utils.py | ba663db16c94fe94d4e7338121969b19fffd9350 | [
"MIT"
] | permissive | HH0000HH/moda | a5b55383c84c90cfc41c9583e18b1cef60dc8394 | ebddd6475f38b30a1c3a09a94ba68316d7b3abfd | refs/heads/master | 2022-12-26T12:45:50.234420 | 2020-10-08T14:06:55 | 2020-10-08T14:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import numpy as np
import pandas as pd
def raw_to_ts(raw, min_date=None, max_date=None, date_format=None):
"""
Turns a raw pd.DataFrame into a time-series DataFrame, by creating a DatetimeIndex and a 'timestamp' column
:param raw: a pd.DataFrame with a date column
:param min_date: Minimum date for the... | [
"omri.mendels@microsoft.com"
] | omri.mendels@microsoft.com |
dac6a847718c50fbeb33bc5646c8b45d7f2ec874 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/42511101.py | 8ecc39c4f4d0ec881c8bd13266c9cca9ab36fbbe | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/42511101.py generated: Fri, 27 Mar 2015 16:09:59
#
# Event Type: 42511101
#
# ASCII decay Descriptor: pp -> [W+gamma -> mu+ nu_mu gamma {,gamma} {,gamma}]cc ...
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/Wgammamunu=PHOTOS.py... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a3c90dcf135f3ba225354224e1643c2e9ace7ca8 | b76daa106277ef2f7ab7f6e3278546c6da0bb967 | /excel/chat1/read_cell2.py | eeda9aef339815032bfe32174667698132f3a0d4 | [] | no_license | DyLanCao/ipython | d071b4659999062106438ec077d27754a711ef92 | 746e070d193de04002d277e5170ddf8b5d9d4d44 | refs/heads/master | 2021-06-12T19:31:44.325346 | 2021-02-20T03:17:58 | 2021-02-20T03:17:58 | 142,657,284 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/python3
import openpyxl
book = openpyxl.load_workbook('items.xlsx')
sheet = book.active
cells = sheet['A1': 'B6']
for c1, c2 in cells:
print("{0:8} {1:8}".format(c1.value, c2.value))
| [
"caoyin2011@163.com"
] | caoyin2011@163.com |
96264b7028b2c81c9453d126155bd030211e1e0a | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/aws/ECSServiceFargateLatest.py | 954481d98c91462fba6bbcfacffc3aa77e4b72cf | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,423 | py | from __future__ import annotations
from typing import Any
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ECSServiceFargateLatest(BaseResourceCheck):
def __init__(self) -> None:
"""
NIS... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
3cb52ce6e88283fc7ec91fbb3193fa95fb558063 | 5ace97f6bf2aeb661b4c544e1cc183684afe8413 | /euler/133.py | c58d0a10f617595300ade2b10cf91fe4b03ccf3a | [] | no_license | crazymerlyn/code | 1aada845b70486ef45408ff67bd722d910c58dd6 | 3deed9c8a1393c160866f33d5efc6dd3d1a4c469 | refs/heads/master | 2022-07-26T21:13:23.588366 | 2022-06-11T15:35:13 | 2022-06-11T15:35:13 | 97,077,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from utils import primes
def factor_count(n):
a, b = 0, 0
while n % 2 == 0:
n //= 2
a += 1
while n % 5 == 0:
n //= 5
b += 1
return a, b
limit = 10**5
res = 0
for prime in primes(limit):
a, b = factor_count(prime - 1)
possib = False
for i in range(a+1):
... | [
"crazy.d.merlyn@gmail.com"
] | crazy.d.merlyn@gmail.com |
5f3805fc2f61715880c917cd8a766a744023acb5 | 7c66bba92b484e5fa6ee282ef39f2c26875ca775 | /DSP_Configure/handler/rich_editor.py | ee716ec6479d8a01a21ee2d58d03f48af93f2c3d | [] | no_license | KqSMea8/PythonTools | a5ac17182b2689a706180dc349d59c2484d3984c | 7279570b82fecbf59b71aa6b58ef975e90c660df | refs/heads/master | 2020-04-13T04:19:19.209243 | 2018-12-24T05:13:12 | 2018-12-24T05:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #! /usr/bin/env python
# __author__ = 'Xuecheng Yu'
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
# Copyright YXC
# CreateTime: 2016-07-23 22:13:02
import sys
sys.path.append("/home/linus_dev/git_103/trunk/PythonSource/DSP_Configure")
import tornado.web
from handler.base import BaseHandler
class RichEditorHandler(BaseHa... | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
fefd126e33dd7a2a952244eb2b43629cf50d6f7b | 887f4beeb3ba480f3bcc7dff1e9eb3d61d445f9b | /console/admin_/templatetags/msg_submit.py | a066f9d83faa66365d6eed856ae37ef7dcdf2364 | [] | no_license | wang-shun/console | ccaa8a1716e2ab6bf5ed6d1c4240cecd4e59f155 | 50425ff068c4795bf13bd178891da126f8677383 | refs/heads/master | 2020-04-04T18:15:14.382006 | 2018-07-09T14:42:42 | 2018-07-09T14:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # coding=utf-8
__author__ = 'chenlei'
from console.console.message.models import Message
from django import template
register = template.Library()
@register.filter
def msg_submit(msg_id):
msg = Message.get_msg_by_id(msg_id=msg_id)
if msg is None:
return False
if msg.msg_status in ["for_submit"]:... | [
"lhongzhan@126.com"
] | lhongzhan@126.com |
b83ea4d48eb0f0361e877cb4484fbf229c307990 | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /contrib/scene2d/scene2d/camera.py | c4a2693ff66413bd12a8764cfe4b3198f49c1c35 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/env python
'''
Camera for projecting 2d flat scenes
====================================
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from pyglet.gl import *
from pyglet.event import *
class Camera(object):
def project(self):
'''Set up the GL projection matrix. Leave us in GL_... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
80f480e72f9b1c9c97791995b654b3980d891707 | 5e601244fbf32ee5190fb5210a0cd334473a0abe | /functions/options/docoptOps.py | 8e56468bc35e36b6e5faa685dd460e632fa908d4 | [] | no_license | DingGuodong/LinuxBashShellScriptForOps | 69ebe45cf3f92b741a078b9b78c2600328ce9b9e | b2ca1e4c870626dd078d447e2d1479b08602bdf6 | refs/heads/master | 2023-08-21T20:53:40.617397 | 2023-07-17T01:41:05 | 2023-07-17T01:41:05 | 57,015,255 | 453 | 343 | null | 2023-02-16T01:29:23 | 2016-04-25T05:55:28 | Python | UTF-8 | Python | false | false | 1,220 | py | #!/usr/bin/python
# encoding: utf-8
# -*- coding: utf8 -*-
"""
Created by PyCharm.
File: LinuxBashShellScriptForOps:docoptOps.py
User: Guodong
Create Date: 2016/12/12
Create Time: 17:33
Example of program with many options using docopt, control system service.
Usage:
docoptO... | [
"uberurey_ups@163.com"
] | uberurey_ups@163.com |
e5e48b4cf2c558052bb4522eb9172ca4c5c60bcd | 0d4e44b20af1217eebf0df4fc0e00b4c8cd50651 | /video_demo/video_demo.py | d0c606be348b33a2ba7fc1dde304981a3038ca49 | [] | no_license | YTArjunBhayana/minecraft-pi | 16d6121663819c3eb1caec54b6a77ae6ee66921a | c1e85755db9b92e6c7caa8e4d96446f7991596b7 | refs/heads/master | 2021-12-08T15:11:46.942184 | 2016-03-23T12:50:40 | 2016-03-23T12:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """
author: matt venn
"""
import mcpi.minecraft as minecraft
import mcpi.block as block
from random import randint, choice
import time
mc = minecraft.Minecraft.create()
import ipdb; ipdb.set_trace()
mc.player.setPos(0,10,0)
# ids of some solid type blocks
solid_blocks = [14,15,16,1,17,49,98]
# wipe out everything ... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
43502a3daaa568789f4636b903cb46d16ffa342e | 7da87c6d4c4d8443f1a9930b5edc277ce2a6c358 | /098_azimuth-at-treasure-island.py | 8164e4e5e6052942ed5575f76a7e09129a077ae0 | [] | no_license | kazamari/CodeAbbey | 2e1f28a20d5f773fc08b5b20899d437d5ba420f2 | 4f5031585ddad8d8be71ee1f80872712b139051e | refs/heads/master | 2021-04-15T14:49:10.839383 | 2018-03-23T12:18:17 | 2018-03-23T12:18:17 | 126,477,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | '''
Input data will be in format close to the directions inscribed on a map:
The first line contains words Stand at the pole with the plaque START - you can safely ignore this.
Next lines contain words go X feet by azimuth Y - you are to extract numbers from them.
Last line contains phrase Dig here!
Answer should conta... | [
"maha_on@yahoo.com"
] | maha_on@yahoo.com |
292c340769f27f5417e892b92e3128d026836005 | 7fb5a022b7e2e75ca2fea0b626bb751251225e56 | /bin/mcmc/test_pearce_mcmc_split_alpha.py | 5453b4e2653c81bb31ba2e693fd15e067a622fd0 | [
"MIT"
] | permissive | mclaughlin6464/pearce | c305d03e10dfe8af51aa75657182c61eef87f4e6 | 746f2bf4bf45e904d66996e003043661a01423ba | refs/heads/master | 2021-07-05T22:32:50.665309 | 2020-12-09T19:25:43 | 2020-12-09T19:25:43 | 66,886,175 | 0 | 3 | MIT | 2021-01-26T05:10:37 | 2016-08-29T22:47:36 | Jupyter Notebook | UTF-8 | Python | false | false | 4,545 | py | from pearce.emulator import OriginalRecipe, ExtraCrispy
from pearce.mocks.customHODModels import *
from pearce.mocks import cat_dict
from pearce.inference import run_mcmc
from halotools.mock_observables import wp
from astropy.table import Table
import numpy as np
from os import path
training_dir = '/u/ki/swmclau2/des/... | [
"mclaughlin6464@gmail.com"
] | mclaughlin6464@gmail.com |
f177ba4dab84ad1ec86d4b5e028f59b6676e917a | cd84067d109f9f95bb259da4248ddafdf561c9a5 | /func_sig_registry/registry/migrations/0005_bytessignature_bytes4_signature.py | 7bda7d39d47d60fc4fe25b9bf74afb6e768aa49b | [] | no_license | Nurts/ethereum-function-signature-registry | 755b8f107c1f4c3347083fee607e88f76dec37d3 | f0219873c12f2f49b0c9374d8a43922bb0ea37a4 | refs/heads/master | 2023-01-05T00:40:25.591210 | 2020-10-27T13:24:20 | 2020-10-27T13:24:20 | 284,265,909 | 1 | 0 | null | 2020-08-15T13:03:38 | 2020-08-01T13:31:57 | Python | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-08-04 19:24
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registry', '0004_auto_20160804_1923'),
]
operations = ... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
6b7e309f4c77bcd1da3521a70095fe80c300c8eb | 6362d18d6aadefa9949d10eae31030b25ff46fd0 | /ndstats/loggers/generic.py | 46509e90519a259a958586456e8bab27bd496148 | [] | no_license | yedpodtrzitko/ndstats | 2ab3c0d389401b4c5e96f976b45f443f09057a70 | d59b6395729269e311119c6edae7577303ec5d1b | refs/heads/master | 2022-12-09T18:59:03.916427 | 2019-10-23T04:05:36 | 2019-10-23T04:05:36 | 40,006,216 | 0 | 0 | null | 2022-12-08T02:25:49 | 2015-07-31T13:19:30 | JavaScript | UTF-8 | Python | false | false | 625 | py | import re
from ndstats.loggers import UnknownLineError
re_ignore_line = re.compile((
'^('
'Log file|'
'Started map|'
'rcon from|'
'\[META\]|'
'server|'
'STEAMAUTH:|'
'"Console<\d+>"|'
'"(\w+)" = "(.*)"|'
'Team ".*?" scored|'
'Connection to Steam|'
'Public IP|'
'Assi... | [
"yed@vanyli.net"
] | yed@vanyli.net |
ca806bb85a2a6c8835d2c74078cbc23267b1e2fb | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/cr-buildbucket/appengine_config.py | 37938d4fdf4e50be847f5b64da6a199f99175fa2 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 424 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
components_ereporter2_RECIPIENTS_AUTH_GROUP = 'buildbucket-ereporter2-reports'
components_ereporter2_VIEWERS_AUTH_GROUP = 'buildbucket-ereporter2-viewers'
c... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
779757059feb8dd1815130a5fd3cf6f806c01996 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/neuralnet/Keras_LSTM_prototype1_ozone.py | dc38973fe91ff1176e2057b3f4b6e1fe16aab5ff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 191 | py |
import Keras_LSTM_prototype1_gen as nntest
nntest.full_test('data/ozone-la.csv', 'Ozone', 24, 100)
#for ep in [10 , 40, 160, 640]:
# for lags in [8 ,32]:
# full_test(lags, ep)
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
44eac0681ec5e7832117e95ba78465a6c2ca0ec4 | cbb8fb2dd2de981e20f0f1e2f6ee0853c546446c | /clientes/urls.py | c59d96acbc4db0b829e654291d304f4eaebda95f | [] | no_license | BrunoVittor/Crud_completo_deploy_Heroku | 7424ecd9fcbafc382220a7710b0268b62c973cf3 | 1d7d497033b001ac770c98baed78e2fd8eb5adfa | refs/heads/master | 2023-04-01T02:26:49.618315 | 2021-04-04T16:51:19 | 2021-04-04T16:51:19 | 353,429,585 | 1 | 0 | null | 2021-04-04T16:51:19 | 2021-03-31T16:58:16 | Python | UTF-8 | Python | false | false | 542 | py | from django.urls import path, include
from .views import car_list, car_create, car_update, car_delete
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', car_list, name='car_list'),
path('new', car_create, name='car_create'),
... | [
"bv.everit@itmss.com.br"
] | bv.everit@itmss.com.br |
6d7ff38c4b752cd7ad6021a9ca176cafb07326a0 | 65a898537f04204108c17b1a715e69184f2699e7 | /tests_oval_graph/test_commands/test_command_line_client/test_client_arf_to_html.py | ebc95df711f1b59270fa7fe32a0522001ecc6fde | [
"Apache-2.0"
] | permissive | AutomateCompliance/openscap-oval-graph | 9fa544e956001ababb0831f997c2f074871e2025 | 4f986aa2e57291e5907e4250bca76d3c643b3e08 | refs/heads/master | 2023-07-25T01:18:17.807232 | 2021-08-31T07:59:16 | 2021-08-31T07:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import tempfile
import uuid
from pathlib import Path
import pytest
from oval_graph.command_line_client.arf_to_html import ArfToHtml
from ...test_tools import TestTools
from .constants_for_tests import (EXPECTED_RULES_ID,
EXPECTED_RULES_ID_WITH_ARGS,
... | [
"hony.com@seznam.cz"
] | hony.com@seznam.cz |
8be39331e564fbb75efe51416669532027541708 | 3ebed5d25b0f325736e435f03fb7cbf027a18da4 | /emc/memberArea/tests/test_workflow.py | 1ec5b57be85e4d63200d4b744f75fd7bbfef717d | [] | no_license | adam139/emc.memberArea | 82950eca452c781d0976d5f1c5c3140526f5823e | a549074240d780933cb590ce46c78bdecdbda654 | refs/heads/master | 2022-05-31T18:44:58.841750 | 2020-09-29T12:59:16 | 2020-09-29T12:59:16 | 47,908,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | #-*- coding: UTF-8 -*-
from Products.CMFCore.utils import getToolByName
from emc.memberArea.testing import FUNCTIONAL_TESTING
from emc.memberArea.testing import INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID, login, TEST_USER_NAME, \
TEST_USER_PASSWORD, setRoles,logout
from plone.testing.z2 import B... | [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
6c92d64ed845ad92a3be266bf9f6391b27710317 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day03/递归.py | 475524ce03d8087fa206fa4fa46e8efa9ef54a85 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 193 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
def calc(n):
print(n)
if int(n/2) > 0:
n = calc(int(n/2))
return n
calc(10)
print("result:", calc(10)) | [
"284607860@qq.com"
] | 284607860@qq.com |
11865de8f4aaadb17f5817273fb348e07a2e40f4 | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /老男孩/装饰器/装饰器3.py | 858ef40d21f54e159ccfb444312446a9ecd5c05a | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 2,847 | py | """加上返回值:"""
# import time
# # 装饰器框架
# def timmer(func): # func = test
# def wrapper():
# start_time = time.time()
# res = func() # 就是在运行test()
# stop_time = time.time()
# print('run time', stop_time - start_time)
# return res
# return wrapper
#
#
# @timmer # 完成的操作是: test = timmer(test)
# def test():
# ... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
e2b1e305d1c68e15b565dca4cb996fa351dc2204 | f1b7edc2b5b47baa9dd116c49c49dcf2318ddb38 | /apps/works/templatetags/filename.py | b894ebeba1b966b8aa1cd222669a1aa4de0558e3 | [] | no_license | wd5/bellib | 3f3dd550dadc0981e274cc89bcef9ec7a8de65c6 | c7e9cd490bb755075c0b3b6cb656109e319820a5 | refs/heads/master | 2021-01-10T01:37:34.908838 | 2012-05-09T14:35:30 | 2012-05-09T14:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | # -*- coding: utf-8 -*-
import os
from django import template
register = template.Library()
@register.filter
def filename(value):
try:
return os.path.basename(value.file.name)
except IOError:
return '' | [
"DrMartiner@GMail.Com"
] | DrMartiner@GMail.Com |
e8855a93428edb2f8190514c9dfa5e6acb44b1ec | 291ba018243613b621a1ae40a6b266392114a525 | /setup.py | 99dc247cd34eaffd1effdacf0fabb8b1d8790baf | [
"BSD-3-Clause"
] | permissive | flaviovdf/tag_assess | f7b72d70c0e2e262faee8c4190208d51d18414bb | 6955d968f3f4f01c33be2bb77fa5409648c2f89e | refs/heads/master | 2020-05-28T13:48:52.185591 | 2014-10-27T17:46:19 | 2014-10-27T17:46:19 | 1,523,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | #!/usr/bin/env python
# -*- coding: utf-8
'''
Setup script.
'''
import glob
import numpy
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
SOURCE = 'src/'
if sys.version_info[:2] < (2, 7):
print('Requires Python version 2.7 or... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
e6cbf63a0867ed1d47a04df33a4ae48d8c79a5e2 | 99ba551645dc9beed36f0478b396977c50c3e7ef | /程序员面试金典/面试题17.13.恢复空格.py | 997d751ef10d541c68476839cb0a7d87c1aac818 | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | # #!/usr/bin/python
# #coding:utf-8
#
# 面试题17.13.恢复空格
#
# https://leetcode-cn.com/problems/re-space-lcci/
#
# 哦,不!你不小心把一个长篇文章中的空格、标点都删掉了,并且大写也弄成了小写。像句子"I reset the computer. It still didn’t boot!"已经变成了"iresetthecomputeritstilldidntboot"。在处理标点符号和大小写之前,你得先把它断成词语。当然了,你有一本厚厚的词典dictionary,不过,有些词没在词典里。假设文章用sentence表... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
780207b383ac6b8bbf034abbca3c3de018efce17 | 25a3960f2d358d38cbd580b1e7d2b599793920a1 | /django_photo_gallery/settings.py | 0481ea3b74291af5a87ae056ea2bb82583d556b7 | [] | no_license | Adityaraj1711/django_image | 00d5ac244a1c310b616d90d73669d063582b752a | fe5b02726ff66c8ac2af375cafe3e3ec7e912d5e | refs/heads/master | 2022-11-08T19:24:27.885538 | 2018-09-19T22:05:28 | 2018-09-19T22:05:28 | 123,629,271 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | import os
#import posixpath
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '8ace3072-47a0-4910-b522-dc3601f38c35'
# SECURITY WARNING: don't r... | [
"adityamailbox0@gmail.com"
] | adityamailbox0@gmail.com |
2a198a54226dcf43342fccecdd1fd6e14a85a5e7 | 0f074e5adef64fa16e88dc2499e76f08b4c33c02 | /prj/idl/01_filter_p2p/02_调用_UI.py | 641719fdb02a24b925f211c29bb68a734da9cd25 | [] | no_license | guozhenjiang/Python | 0ac39adaf72df0bfee51795fabcfd959a69b1862 | 44b07bd767f3f2a947331111ab920200ac2412c6 | refs/heads/master | 2021-05-19T16:54:40.725132 | 2020-11-19T16:26:26 | 2020-11-19T16:27:11 | 252,035,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | from PySide2.QtWidgets import QApplication, QMessageBox
from PySide2.QtUiTools import QUiLoader
from PySide2.QtCore import QFile
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
import pyqtgraph.opengl as gl
import numpy as np
class DataFilter:
def __init__(self):
# ----... | [
"guo_zhen_jiang@163.com"
] | guo_zhen_jiang@163.com |
5c6447195d2d4c1096a93e65805eab3e3ecaf047 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00003/s671080158.py | 3dab648ff39ae8531a7f4cb7410108f585efc8a7 | [] | 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 | 404 | py | n=int(input())
a=[]
c=[]
for i in range(n):
a.append([])
for j in range(3):
a[i].append([])
for i in range(n):
#for j in range(3):
a[i][0], a[i][1], a[i][2]=map(int, input().split())
a[i].sort()
if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
k="YES"
c.appen... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38ce00bb0ed2b59c861cc25b241027084f171d2b | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_day_cq_dam_core_impl_jmx_asset_update_monitor_impl_properties.py | d592ef58f49481def29987365cb8f003d96b71b6 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,343 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
aee502628f12dada2685572449717b022bbeb4b7 | bd4bb67830d8275ecb73e0c16fd073bedf4398e7 | /src/logger.py | 98ba91506b69616bae86780e8f1850fcc424f9dd | [] | no_license | Ino-Ichan/Classification-Template | 2b852dade7a91c5ab2c1275abf10b960461a4225 | 326f7acb18b66464871859a5feae7d7344992f27 | refs/heads/main | 2023-03-05T14:06:34.038733 | 2021-02-16T12:13:33 | 2021-02-16T12:13:33 | 339,387,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import logging
import sys
LOGGER = logging.getLogger()
FORMATTER = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
def setup_logger(out_file=None, stderr=True, stderr_level=logging.INFO, file_level=logging.DEBUG):
LOGGER.handlers = []
LOGGER.setLevel(min(stderr_level, file_level))
if stde... | [
"sys.b11noway@gmail.com"
] | sys.b11noway@gmail.com |
7ea7b38ad2ee78f8971b8481274e32c42a1c68e6 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/ssh/azext_ssh/vendored_sdks/hybridconnectivity/_hybrid_connectivity_management_api.py | 7b1c37cd7eaa1636e5b084f5c7127f89c6a1685e | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 2,743 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
c4ec1632014a42eed3b4267a5cbabce6a560ed23 | da229938296bff6c49fcc25cd75e3bb41dd0711b | /Coursera_Advanced_Techs/Course_4_GANs/face_generator.py | 758516e46732e53fbb8fd7415a2bd13f2252ca27 | [] | no_license | benjaminmace/Tensorflow_git | c88c8103458fc25b441da848e50ce0735cb25c6c | 8ed218233f61b56d1e5f20b29c35c920af496e5e | refs/heads/main | 2023-04-08T19:59:55.903288 | 2021-04-17T02:30:49 | 2021-04-17T02:30:49 | 358,766,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras import mixed_precision
import numpy as np
physical_devices = tf.config.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_device... | [
"mace.benjamin.e@gmail.com"
] | mace.benjamin.e@gmail.com |
5ca9c0d5859261a581031c8c3df899f949355464 | c48b05e48fa4bc114b57033bfba378d7b23e4edb | /lib/modules/powershell/management/wdigest_downgrade.py | 59f48f67a0c9326054fc6876afd6f620d44dc88a | [
"MIT"
] | permissive | swagkarna/invader | 39f14ed42c176caaf62b7c418e091ce426d87cfb | 3e4adf56e089bdd16f6950419db7a31428bce352 | refs/heads/master | 2020-09-25T06:24:42.066772 | 2019-12-04T17:41:37 | 2019-12-04T17:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-WdigestDowngrade',
'Author': ['Entynetproject'],
'Description': ("Sets wdigest on the machine to explicitly use "
"logon cr... | [
"noreply@github.com"
] | swagkarna.noreply@github.com |
a502906a01f53cbe8a3ed8a9bfa7e3c86fdfdec7 | 5016f2c14dbdf49968b1656a456c3ad8fec2db04 | /poem/filters.py | 3126c1dd013dd971df3dc37b0c655aaf226e8d5a | [] | no_license | OllyDorvelus/poetster-backend | 56d90af4243375f65e4a96267ebac4a5da46c80e | 9f58e22d055eaa9fda065a16b077a4e48c4afc4a | refs/heads/master | 2022-12-03T01:58:03.738153 | 2020-07-19T18:17:48 | 2020-07-19T18:17:48 | 231,968,435 | 0 | 0 | null | 2022-11-22T04:38:41 | 2020-01-05T19:57:19 | Python | UTF-8 | Python | false | false | 1,353 | py | from django.contrib.auth import get_user_model
import django_filters
from poem.models import Poem, Genre, Category
User = get_user_model()
class PoemFilter(django_filters.FilterSet):
"""Custom filter set for poem model"""
user = django_filters.ModelChoiceFilter(field_name='user__pen_name', to_field_name='p... | [
"ollydorvelus@gmail.com"
] | ollydorvelus@gmail.com |
8e3660735d962b0ddda7889b33aaf9c7c1bfa535 | 16ecabb5d9010c7fa4aebb8ab852f7c6a19193db | /src/0414.py | fb81c9fcda71d094703f425a09e2055fdfb089b6 | [] | no_license | LeeSM0518/OpenCV-python | 74ff0d899d291a35f9cd82d2ef37835a0c5ccdf2 | 46c234879f5d48876ca0888bdede8bfb347b7c30 | refs/heads/master | 2020-04-30T19:35:33.201278 | 2020-02-25T14:35:20 | 2020-02-25T14:35:20 | 177,043,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # 0414.py
import cv2
import numpy as np
src = cv2.imread('../data/lena.jpg', cv2.IMREAD_GRAYSCALE)
dst = cv2.resize(src, dsize=(320, 240))
dst2 = cv2.resize(src, dsize=(0,0), fx=1.5, fy=1.2)
cv2.imshow('dst', dst)
cv2.imshow('dst2', dst2)
cv2.waitKey()
cv2.destroyAllWindows()
| [
"nalsm98@naver.com"
] | nalsm98@naver.com |
fa29c126ae7a6d5d881eb0af559a1b3f4081365b | 6719aa2e0598ec5bb9bb6bfd47390583b91dd015 | /94/99b.py | 1d7dc246cd2176be21d9bd447bb2c5905964cce9 | [] | no_license | huangyuzhen/let | 2f8ed6f41792a4bedf1b808d6b1c21e99f406da9 | 653d8a5aee803d2b414d0135f791a8f9d83bb272 | refs/heads/master | 2020-09-05T05:22:50.220859 | 2020-02-16T12:15:39 | 2020-02-16T12:15:39 | 219,995,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def recoverTree(self, root):
"""
:type root: TreeNode
:rtype: None Do not return anything, modify root in-p... | [
"huangyuzhen@earch"
] | huangyuzhen@earch |
7e0ae0c710f7af1276d60c4511375ee106fbf93e | a3ba2914ba948eb869ab9ed2436dd509fff95d1c | /manage.py | 753a115f153f81344c9669840bfc73465822b850 | [] | no_license | phonxis/vk-api-wall | 538909e8a443a744ffcc8ccbf380e29aeb5a3d49 | 5533997a908e41eb29367abb38a9e33603f0433f | refs/heads/master | 2022-11-30T06:55:26.317193 | 2017-04-29T11:59:41 | 2017-04-29T11:59:41 | 89,450,944 | 0 | 0 | null | 2022-11-22T01:11:43 | 2017-04-26T07:23:41 | JavaScript | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vkwall.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"phonxis@gmail.com"
] | phonxis@gmail.com |
ab3336bb2769b0f3fce7cc6bcc2990d7a18a5f45 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/connectedvmware/azext_connectedvmware/vendored_sdks/models/hardware_profile_py3.py | c276b221a9094a069b6f347af4dd2777b54c3b4c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 2,703 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
9065f4bee2142e99d95dd6f0edd39ce4f8f1a576 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1045.py | c09cf595a9687715e86e56f7d9d1e5a21c771b6a | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | from collections import defaultdict
class Solution:
"""
@param S: a string
@return: a list of integers representing the size of these parts
"""
def partitionLabels(self, S):
# Write your code here
occ = defaultdict(list)
ssize = len(S)
for i, c in enumerate(S):
occ[c].append(i)
... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
5e506d7259beb1a0a05d6d9dbe32d0737fd9d870 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2718/60676/235624.py | 813c8ffd8a8ef9041a476f9c028561d03a55447a | [] | 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 | 1,341 | py | raw_str = input()
N = len(raw_str)
graph = [[] for i in range(N)]
for i in range(N):
graph[i].append(i)
# Function to add edge
def add_edge(u, v):
graph[u].append(v)
graph[v].append(u)
for item1 in graph[u]:
for item2 in graph[v]:
if item2 not in graph[item1]:
grap... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
88680b17bf228808080d1ead3b7d70131754603e | f6ea5b606b9c10327cacc00aea356b4b014199b5 | /week02/2020-12-09/206.reverse-linked-list.py | 9496030fe785adc723b9b5ea60ac13ba6e7c47d0 | [] | no_license | youwithouto/leetcode-practice | afd291104ed269cf4e9a3f7d00b33f4e13a1c446 | 024c83142d82ad3deae6682ab419b7ead349d3d0 | refs/heads/master | 2023-02-23T03:45:01.241800 | 2021-01-30T11:44:32 | 2021-01-30T11:44:32 | 325,770,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head:
return head
pre, curr = None, head
while curr:
... | [
"youwithouto.z@gmail.com"
] | youwithouto.z@gmail.com |
19047b325a640b0232553ab17d04e46a097dd080 | 67ac354a3c380980161598acff3665c99c799f0c | /envergo/evaluations/migrations/0003_rename_rr_mention_evaluation_rr_mention_html_and_more.py | 720ff367ccc4dba087a79faa2bce9d4498f27d23 | [
"MIT"
] | permissive | MTES-MCT/envergo | 0c03eef60d22a6910b407064b8bc32a672041edd | 3a08f780e149e900c9031f47e5e0aa983707e384 | refs/heads/main | 2023-08-31T04:43:56.731868 | 2023-08-25T09:49:44 | 2023-08-25T09:49:44 | 383,059,680 | 3 | 1 | MIT | 2023-09-11T12:55:49 | 2021-07-05T07:55:49 | Python | UTF-8 | Python | false | false | 642 | py | # Generated by Django 4.2 on 2023-06-06 08:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("evaluations", "0002_evaluation_rr_mention"),
]
operations = [
migrations.RenameField(
model_name="evaluation",
old_name... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
9fda9339279c8e639747c36d7de332412f3aeb14 | 9f2b07eb0e9467e17448de413162a14f8207e5d0 | /tests/pytests/materials/obsolete/TestElasticMaterial.py | 5903a9a2a151e3bb370310c654b8d45f0cd1c598 | [
"MIT"
] | permissive | fjiaqi/pylith | 2aa3f7fdbd18f1205a5023f8c6c4182ff533c195 | 67bfe2e75e0a20bb55c93eb98bef7a9b3694523a | refs/heads/main | 2023-09-04T19:24:51.783273 | 2021-10-19T17:01:41 | 2021-10-19T17:01:41 | 373,739,198 | 0 | 0 | MIT | 2021-06-04T06:12:08 | 2021-06-04T06:12:07 | null | UTF-8 | Python | false | false | 2,294 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
ea90cef0312601c5fc899e8c51c09a0590131504 | 981a006a2c63082e36e67d0a273d89698c910cb9 | /test/manual/models_classy_vision_model_test.py | b0e3a5168f4666401e924b9aa20c534743979693 | [
"MIT"
] | permissive | elrach/ClassyVision | 8d3aa5e431868dc3f657efa395ec7d67a72df0d2 | ac2993df04dcb85d1ad85cc020da1ac9cfa28066 | refs/heads/master | 2022-12-23T10:22:11.757461 | 2020-09-12T06:20:38 | 2020-09-12T06:23:14 | 295,558,705 | 0 | 0 | MIT | 2020-09-14T23:05:00 | 2020-09-14T23:04:59 | null | UTF-8 | Python | false | false | 3,853 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import copy
import unittest
from collections import defaultdict
from test.generic.config_utils import get_test_model_co... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3a704f1aaf4727316d31bcbd105454e91223359f | 4c2466568dd3f702e99026fe7d1b47617aa498ee | /mailling/survey.py | 2084069b6243dba60329d75e8aa48ec2eaeaa683 | [
"MIT"
] | permissive | evhart/energyuse | 4c8cae80d2683090f2e5b45d4986d1c018f897f4 | be76bac535bfea33d30867e232c2dcb35e1c7740 | refs/heads/master | 2023-01-03T18:34:33.104523 | 2019-02-04T17:20:16 | 2019-02-04T17:20:16 | 167,557,294 | 0 | 0 | MIT | 2022-12-26T20:15:35 | 2019-01-25T14:08:06 | JavaScript | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(1,'/data/web/energyuse.eu/energyuse2')
sys.path.insert(1,'/data/web/energyuse.eu/energyuse2/mailling/')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "energyuse.settings")
import django
import energyuse.settings
energyuse.settings.TEMPLATE_DIRS = (os.path... | [
"evhart@users.noreply.github.com"
] | evhart@users.noreply.github.com |
a898954d7cec13baa5965b25eab741bdb9a06bcb | bdc10ba57424040129cc72ad018ff26bc8bca66a | /ConfigDefinitions/UserConfigs/SMHTT_2018_MCOnly_Configs_Deep/VBFHWWConfig.py | a427a25e8e6b5cbe44bdfcd07367c384f2197eb0 | [] | no_license | aloeliger/Jesterworks | 61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe | 96a22bac4ce20b91aba5884eb0e5667fcea3bc9a | refs/heads/master | 2021-06-09T15:39:06.976110 | 2021-04-23T11:25:06 | 2021-04-23T11:25:06 | 157,698,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config
from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2018_MC_Collection import MCCollection as BranchCollection
from ConfigDefinitions.CuttingDefinitions.UserCutConfigs.SMHTT2018Cuts_MC_wDeep import SMHTT2018Cuts ... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
526e37403afcac523dda9065c9c6f7fe1142648d | f8da66ab1fe942e39dcdaf67ae3432ffff42decf | /sphinxcontrib/sadisp.py | d9a08c689fe3de03b6cc06bea66e0a811152bb76 | [] | no_license | Global-localhost/sadisplay | 523b5b2b7dfe420afcb5cca542cf2b2c7462b19e | dd0d979df2065b55eb71c5098557346f3e1b769f | refs/heads/master | 2022-12-03T23:14:45.711200 | 2020-07-19T21:30:02 | 2020-07-19T21:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | # -*- coding: utf-8 -*-
import os
import sys
import logging
import subprocess
try:
from hashlib import sha1
except ImportError: # Python<2.5
from sha import sha as sha1 # pyflakes:ignore
from docutils.parsers.rst import Directive
from docutils.parsers.rst import directives
from docutils import nodes
from s... | [
"tatarkin.evg@gmail.com"
] | tatarkin.evg@gmail.com |
422dca4e12aba57c37015f0fb2057642616276b2 | 71ec941712decba1f7326e83c02df998a55e8fb3 | /tensorflow_datasets/core/features/text_feature.py | 588e528ebec527bf261c7d018462de120f1f108a | [
"Apache-2.0"
] | permissive | temiafeye/datasets | 6c79d30a948c4bdac577dd2fe004aed51e079beb | 4d8c05c471c710aaf3302046b73e222a70d663c1 | refs/heads/master | 2020-04-20T18:03:50.609952 | 2019-03-11T06:27:14 | 2019-03-11T06:27:14 | 169,007,422 | 0 | 0 | null | 2019-02-03T23:57:17 | 2019-02-03T23:57:17 | null | UTF-8 | Python | false | false | 5,136 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
75d3d068b3ab6533db2f3cf5ae0ceb05de6ab1a3 | 39f817c236bf119145a315f4839c519f8d904e0a | /python problems/set problems/setMembership.py | e36de787953e745be049c3ffb52ca949d7cc80b6 | [] | no_license | tmnewt/hacker-rank-python-work | 350cafa2b073766e87888a749b97ed4b2fb4788c | 5c6eef15c2611c5f7a5b8b272b8e4191ce58ff24 | refs/heads/master | 2023-01-24T11:36:10.573113 | 2020-12-09T00:26:22 | 2020-12-09T00:26:22 | 270,749,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | '''Union'''
# https://www.hackerrank.com/challenges/py-set-union/problem
testS1 = set([1,2,3,4,5,6,7,8,9])
testS2 = set([10,1,2,3,11,21,55,6,8])
n1 = int(input())
s1 = set(map(int, input().split()))
n2 = int(input())
s2 = set(map(int, input().split()))
u = s1.union(s2)
print(len(u))
'''Intersection'''
# https://ww... | [
"timothy.newton.cma13@gmail.com"
] | timothy.newton.cma13@gmail.com |
e87a2941ac5c2bbe6ca85b62290c90c98e4ca597 | 21e6fd368aee8acb80747141291a00f83fb67d1e | /python/WoT/SourcesRes/9.10/client/gui/scaleform/daapi/view/meta/promopremiumigrwindowmeta.py | 2f60a52b8a8e717148583a2c651e0a66d6db1b2b | [] | no_license | Infernux/Projects | e7d1eab9b25471c543aa82985ec0bfcca2cfe05e | da7a9f71231b76dafbc4c7348065f1fc2dead854 | refs/heads/master | 2023-08-24T09:17:23.834855 | 2023-08-05T14:18:46 | 2023-08-05T14:18:46 | 23,395,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | # 2015.01.14 22:24:30 CET
from gui.Scaleform.framework.entities.DAAPIModule import DAAPIModule
class PromoPremiumIgrWindowMeta(DAAPIModule):
def as_setTitleS(self, value):
if self._isDAAPIInited():
return self.flashObject.as_setTitle(value)
def as_setTextS(self, value):
if self.... | [
"mrnux@nux.com"
] | mrnux@nux.com |
b72d635e69ef706a8db49cfc58aac5acceb085c5 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/third_party/google/api/logging_pb2.py | fdee8e4f5bc4f3c21ff72c883d64b531971d32ad | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 6,722 | 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 o... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
92c6bf94a834cd1236a5fac735bb1e8c9bf44809 | 1d958cdaa3962f73b25086f042c21dfaec5d0a4b | /Algorytmy/unstructuredAlgorithms/_SPOJ/cyfrySilni.py | 82969bc31f22c484fdf0812e341868b7a72f28e5 | [] | no_license | kfigon/RandomCode | 6ed4e6d13e7c04e9ea75ba0cdaab6294f594d129 | 3925ccc8ae05faffc42890b3c69490dbaf552522 | refs/heads/master | 2023-08-07T23:43:23.232719 | 2023-07-30T18:01:25 | 2023-07-30T18:01:25 | 98,911,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import unittest
from typing import List, Tuple
def factorial(x: int) -> int:
if x == 0:
return 1
return x * factorial(x-1)
def factorialIter(x: int) -> int:
if x < 2:
return 1
out = 1
for i in range(1,x+1):
out *= i
return out
# zwroc cyfre dziesiatek i cyfre jednosci ... | [
"kamil.figon@gmail.com"
] | kamil.figon@gmail.com |
ddc4581f339a51c64e98322f5b20941e61fa54aa | 22903b998f7d981c93bf14c27f7ba71697cdd19d | /From_Scratch/03_PyORBIT_Sims/00_Split_HKICKER_With_MULTIPOLE/Plot_PTC_cf_MADX_Closed_Orbit.py | dbaa7d88f71f728e2f2bae1f0598795b2f3f003d | [] | no_license | HaroonRafique/PS-injection-bump | d062e96e6051090c59a09b34118803975c2baf9d | a751e2df42818f0de3ff2b158840eb6f5148da8b | refs/heads/master | 2023-01-19T18:47:48.313522 | 2020-11-26T23:10:34 | 2020-11-26T23:10:34 | 189,207,614 | 0 | 1 | null | 2019-05-29T10:55:43 | 2019-05-29T10:55:38 | null | UTF-8 | Python | false | false | 6,258 | py | # Script to read multiple PTC twiss files and plot the closed orbit
# Expects a PTC twiss created with the following command:
# select, flag=ptc_twiss, column=name, s, betx, px, bety, py, disp3, disp3p, disp1, disp1p, x, y;
# 26.08.19 Haroon Rafique CERN BE-ABP-HSI
import matplotlib.pyplot as plt
from matplotlib.line... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
f6a642c7d310cd1b2f6a9d6c27dc0515af8b2e93 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/aws/tests/integration/targets/s3_bucket_notification/files/mini_lambda.py | d0d08dae90f1d40c0e758842def42906a908d5f2 | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 328 | py | # 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
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!'... | [
"sifang@cisco.com"
] | sifang@cisco.com |
88500cae1959d3a50aa79f110b56e75c6c48538a | 2ca65045c273dbd9d283dc68ebec9a2775d613ad | /code/versions/v5_exceptions/birthday.py | 929faa4e51e9d07af40700f099f4ecea2eeb151c | [
"MIT"
] | permissive | mbrochh/python-101 | 9456c8b4ec658e8a323c2c755ff2036186891f06 | 55b3a4a8e4ae44d8832ec74a04809d1caaf74f7c | refs/heads/master | 2021-01-10T07:32:36.219276 | 2016-01-18T01:03:51 | 2016-01-18T01:03:51 | 47,603,591 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import sys
BIRTHDAY = "1982-09-08"
age = None
try:
age = int(sys.argv[1])
except ValueError:
print("ERROR: Please enter an integer")
if age is not None:
if age < 0:
print("ERROR: Negative ages are not allowed")
else:
message = "I am born {} and I am {} years old".format(BIRTHDAY, age)
... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
9a0abce4a5daf52619e614c878da6a9a10f548a7 | 6ba38fe94e7ea5146c633f56f59c0c3278d695a7 | /tools/python/run_tests.py | 3e8f20a7d3d93459c70260f5a9221e9fb44713b4 | [
"MIT"
] | permissive | mworks/mworks | b49b721c2c5c0471180516892649fe3bd753a326 | abf78fc91a44b99a97cf0eafb29e68ca3b7a08c7 | refs/heads/master | 2023-09-05T20:04:58.434227 | 2023-08-30T01:08:09 | 2023-08-30T01:08:09 | 2,356,013 | 14 | 11 | null | 2012-10-03T17:48:45 | 2011-09-09T14:55:57 | C++ | UTF-8 | Python | false | false | 640 | py | import sys
import unittest
def main():
print('Running tests for Python %d.%d' % sys.version_info[:2],
file = sys.stderr)
if len(sys.argv) == 1:
tests = unittest.defaultTestLoader.discover('.')
else:
tests = unittest.defaultTestLoader.loadTestsFromNames(sys.argv[1:])
suite =... | [
"cstawarz@mit.edu"
] | cstawarz@mit.edu |
4289ac55a56d229e3e372945af918d5e75f668f6 | c6e23f02b28604d43ad37cb339738560e8fefdee | /python3/example_of_guess.py | a25c142b152c48f1126f58cda4fa1f0206bdc684 | [] | no_license | testdata6/python-test | 5fcf3449c3ed84be3f0d526048bb2a26baf4fa7f | 3539ddfc70416943b28691c2cac9f7f03aad5991 | refs/heads/master | 2020-04-09T07:07:26.503612 | 2019-10-02T10:57:17 | 2019-10-02T10:57:17 | 160,141,238 | 0 | 3 | null | 2019-10-02T10:57:19 | 2018-12-03T06:10:20 | Python | UTF-8 | Python | false | false | 930 | py | #!/usr/bin/python
## example for game program
secret_word = "batman"
guess = ""
guess_limit = 3
guess_count = 0
out_of_guess = False
print("You have only 3 Guess..\n")
print("Who is bruce wayne..??")
while guess != secret_word:
if guess_count < guess_limit:
guess = input("Enter a guess: ")
guess... | [
"amit.ganvir6@gmail.com"
] | amit.ganvir6@gmail.com |
cea9529d27ca31b7925da2e07de43c6f02d9876c | e2a189a9e273d6a0a3bc0f12c526f95ac0eb89ba | /azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_batch_linked_service.py | b47aa4665eeedcd89e0174093567444847d503e4 | [
"MIT"
] | permissive | tdjin/azure-sdk-for-python | f787c6532b8ed538e3680a16ab4525171e082523 | 3ef94140fa1de9bd9ca3ae31faec1151416b7a3a | refs/heads/master | 2021-05-15T22:47:40.555332 | 2017-10-11T17:47:31 | 2017-10-11T17:47:31 | 106,751,704 | 1 | 0 | null | 2017-10-12T22:27:30 | 2017-10-12T22:27:30 | null | UTF-8 | Python | false | false | 3,500 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
15706c4d97675754be5847064a13bc612a6ffda1 | 0e52e94bf043f2b226105d3ba2c0720d15d58747 | /resources/migrations/0003_auto_20161129_1950.py | 1e07c3ebc9ccb62ec78022cec219d48b3b67e4eb | [
"BSD-3-Clause"
] | permissive | PARINetwork/pari | 80bc361a05322e30e4f2315c12440d4d4d0c7b59 | 08e4c42475ab62b37f3c3ab3ae6369acc2685ecc | refs/heads/master | 2022-11-13T19:47:58.424896 | 2021-08-15T05:19:30 | 2021-08-15T05:19:30 | 39,291,289 | 37 | 16 | BSD-3-Clause | 2022-11-10T10:29:27 | 2015-07-18T08:01:30 | Python | UTF-8 | Python | false | false | 657 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resources', '0002_auto_20150731_0952'),
]
operations = [
migrations.AlterField(
model_name='resource',
... | [
"thejaswi.puthraya@gmail.com"
] | thejaswi.puthraya@gmail.com |
d096da2c9bdbac4a41886d03e09e69102a7f38dc | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2048. Next Greater Numerically Balanced Number/2048.py | 2e0fd2aca9e3da7d1dfeff3444dcb293a37ca2d5 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 363 | py | class Solution:
def nextBeautifulNumber(self, n: int) -> int:
def isBalance(num: int) -> bool:
count = [0] * 10
while num:
if num % 10 == 0:
return False
count[num % 10] += 1
num //= 10
return all(c == i for i, c in enumerate(count) if c)
n += 1
while n... | [
"me@pengyuc.com"
] | me@pengyuc.com |
6a055bcfe8b6d07bfa5d45b81fd2c1f431f5e6e1 | 5917a63a6d16de893f54e86a70f5d881648112c1 | /Py1_spc-master/Lec9/main4.py | ffaff412e4806eaa3f496a9e576fe3d33a4ad98b | [] | no_license | litded/lessons | f14e8e68577d417fc87eaca1c426f535baa04e8b | af2e0f6cae61878a833a7eebd7c2509d930ede48 | refs/heads/master | 2023-08-22T00:49:50.362770 | 2021-10-16T20:33:01 | 2021-10-16T20:33:01 | 417,940,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | """
Сравнение строковых литералов.
В Python строки хранятся в unicode.
"""
print("A" < "a") # 65 > 97
print("a" > "ABCDEFGH")
# Как сравниваются односимвольные строки?
print("A ordinal:", ord("A"))
print("Z ordinal:", ord("Z"))
print("91, 92, 93", chr(91), chr(92), chr(93))
print("a ordinal:", ord("a"))
print("b ordi... | [
"i.ivlev@westwing.ru"
] | i.ivlev@westwing.ru |
83790f074e58012e2da2c4ea1593852b7e398f2b | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc109/b.py | cb797384d27bb98d1011b6a93a2541b603c08567 | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | n = int(input())
ans = 'Yes'
words = [input() for _ in range(n)]
said = set()
tail = words[0][0]
for w in words:
if w in said or w[0] != tail:
ans = 'No'
break
said.add(w)
tail = w[-1]
print(ans) | [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
70d305debcce036600e190b80ecbf2a20ad2225d | b8630509b97621ddc3bbeaef8d1cd54ff77b3dde | /myvenv/lib/python3.5/site-packages/django/core/wsgi.py | c7be733c51ea1fa37d8b3f3be318bb7a6bbe7098 | [] | no_license | ChibaUnppluged/BandMaker-ogi | c4080204d63495fed42e26306663e06df8ffb373 | 68a4a6eceb3f385b97afe8741fc538216800f893 | refs/heads/master | 2021-01-01T04:29:28.436614 | 2017-10-20T16:30:00 | 2017-10-20T16:30:00 | 97,184,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # coding:utf-8
import django
from django.core.handlers.wsgi import WSGIHandler
def get_wsgi_application():
"""
The public interface to Django's WSGI support. Should return a WSGI
callable.
Allows us to avoid making django.core.handlers.WSGIHandler public API, in
case the internal WSGI implementat... | [
"pochi.0226.ogi@gmail.com"
] | pochi.0226.ogi@gmail.com |
7a389c3316ba0f517633942018387b465c8afc38 | cf457dacc75ade598d52a4cfd58c2120192da84c | /Python1808/第一阶段/day20-时间模块/01-作业.py | 2d3bc80fb1b9f61817370beedfb75298331700f0 | [] | no_license | LYblogs/python | b62608d73eb0a5a19306cabd4fd5706806fd557b | 1ee0bcecc3a78c6d2b191600872a1177e9c8df60 | refs/heads/master | 2020-04-12T10:12:01.478382 | 2018-12-19T10:59:47 | 2018-12-19T10:59:47 | 162,422,214 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # import re
# re_str =r"\d+\.?\d+"
# str1 =input("请输入字符串:")
# result =re.findall(re_str,str1)
# sum =0
# for countent in result:
# sum+=float(countent)
# # print(sum)
# print(ord("年"))
# print(chr(24180))
# print(hex(24180))
# # 5e74
# print(str.split("sadas/adas/23123/d","/"))
list1 = [
{'name': '张三', 'age': ... | [
"2271032145@qq.com"
] | 2271032145@qq.com |
e0637f771e9118316c07f1797a742be17a59b45f | 032f82a947c49145dba58b7add515fa8db372bd2 | /detectFace/smile.py | 25375b2c34fd90bb0723428e61759d7bd5b7b6f5 | [] | no_license | iamkamleshrangi/faceRecognition | dc50e865a596b79ed578bf32181494ee09d4d892 | c4a04c40bdb5584dbb11b328922e89b0d8670d6b | refs/heads/master | 2022-01-27T23:46:51.293573 | 2019-01-13T13:57:02 | 2019-01-13T13:57:02 | 165,401,241 | 4 | 0 | null | 2022-01-21T04:27:31 | 2019-01-12T15:09:54 | Python | UTF-8 | Python | false | false | 592 | py | import cv2
video = cv2.VideoCapture(0)
smile_detect = cv2.CascadeClassifier('../models/haarcascade_smile.xml')
#smile_detect = cv2.CascadeClassifier('../models/haarcascade_frontalface_alt2.xml')
while(True):
status, frame = video.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
smiles = smile_detect... | [
"iamkamleshrangi@gmail.com"
] | iamkamleshrangi@gmail.com |
96565b1eeecf90f8c57e59d969eb57ecacff790a | e0ed932fc2e4edb953cc4e423362dabc19083008 | /python/sanic_learn/docs/learn_mysql_直接连接.py | 7b353121f0890f57dd8d544e9078f25ccfbd9fa3 | [] | no_license | glfAdd/note | 90baee45003ac3998d898dcfbc618caa28f33b74 | 19a9aff61450be25904bff0fe672f660d49d90ff | refs/heads/main | 2023-05-27T13:28:36.092352 | 2023-05-24T03:35:58 | 2023-05-24T03:35:58 | 240,066,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """
异步数据库连接
文档
https://aiomysql.readthedocs.io/en/latest/
"""
import asyncio
import aiomysql
loop = asyncio.get_event_loop()
async def test_select():
"""
需要执行 fetchall fetchmany fetchone
耗时的io操作可以使用await来修饰
"""
# 创建连接
conn = await aiomysql.connect(host='172.17.0.1', port=3306, user='root',... | [
"2239660080@qq.com"
] | 2239660080@qq.com |
92d828fc8bf85ee5c1bd9ee1a1aebbac596976b8 | 7130f6c992982edfe680ae88acaf85773e4b66c7 | /gp/line/__init__.py | 103a6930407ffada8d20b06fd2febf1c0d6faa19 | [
"MIT"
] | permissive | westamine/gp | bd7b4d70d1e0142340d38352a39c5d185977e0cb | 4d511cd91b88c95cea69eff522f9a8ff0fa4cba8 | refs/heads/master | 2020-06-09T11:31:39.927909 | 2015-07-05T20:06:35 | 2015-07-05T20:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__all__ = ["load_data", "plot_data", "plot_results", "least_squares",
"interactive", "sample"]
from .data import load_data
from .plotting import plot_data, plot_results
from .lls import least_squares
from . import interactive
from .mcmc import sample
| [
"danfm@nyu.edu"
] | danfm@nyu.edu |
e1b8ccdec4cd5e758122582a2fd9a59057aeaefb | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/replace_task_module.py | e98a24b07f9b0b175a36c623d4827f84d1c33905 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | """
Script for replacing underlying module of tasks.
Requestor: Ridwaan Arbee
Developer: Jakub Tomaga
Date: July 2016
"""
import acm
from at_ael_variables import AelVariableHandler
def python_modules_hook(selected_variable):
"""Display module names of selected tasks."""
python_modules = []
if selected_... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
6dcb7b5ec15990f5b896c06d7f1c994a0d421c27 | 7bf287e00b35f50afa70e8585f41d1db543d98f2 | /Easy/VerifyingAnAlienDictionary.py | b20c9588ff212572ed1b54704881128b53211a6a | [] | no_license | mangalagb/Leetcode | eac611453de07ffc635265e98c39b46255cf76c6 | fcf6c3d5d60d13706950247d8a2327adc5faf17e | refs/heads/master | 2022-05-14T23:16:28.007044 | 2022-04-29T19:33:24 | 2022-04-29T19:33:24 | 158,616,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | #In an alien language, surprisingly they also use english
# lowercase letters, but possibly in a different order. The order
# of the alphabet is some permutation of lowercase letters.
#
# Given a sequence of words written in the alien language, and the
# order of the alphabet, return true if and only if the given words... | [
"mangalagb@gmail.com"
] | mangalagb@gmail.com |
1249da0151fc017d5576e0e6c75ea252623baeef | 0367282068af22fbd3c8497d80f3dc62a81b4ff5 | /notebooks/production/Y2017M10D04_RH_Threshold_WaterStress_V02.py | 6a809e3cd26bdaaae5ba2ad8e7ebeeb132535d3c | [] | no_license | c11/Aqueduct30Docker | 4adf2d56dc22740a309b1415065f5cf2f5a50cb6 | 5768347f8db5a9fca305b8cf601de6e5c88ddb65 | refs/heads/master | 2021-07-12T08:29:39.586590 | 2017-10-18T16:27:34 | 2017-10-18T16:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,588 | py |
# coding: utf-8
# # Thresholds WaterStress
#
# * Purpose of script: add arid and low water use, set thresholds and labels.
# * Author: Rutger Hofste
# * Kernel used: python35
# * Date created: 20171004
# In[1]:
import time, datetime, sys
dateString = time.strftime("Y%YM%mD%d")
timeString = time.strftime("UTC %H:... | [
"rutgerhofste@gmail.com"
] | rutgerhofste@gmail.com |
343af610943a92fd1d8e176748125ebddbf7da98 | 5f07c38899e350b0b776510fd7d7831d44cf1404 | /dfr2modelserializer/testapp/models.py | c119e003df1c7745a2482c797ba2eb38dac736df | [] | no_license | shubham454/Django-Rest | b733f1d47ada9df452e912dcd8acad48a7ec4c75 | 3d94f57cab3537c51caa68807d5fcdf8883d2d2c | refs/heads/master | 2022-12-14T20:37:11.835794 | 2020-08-13T18:43:26 | 2020-08-13T18:43:26 | 287,354,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.db import models
# Create your models here.
class Employee(models.Model):
eno = models.IntegerField()
ename = models.CharField(max_length=20)
esal = models.FloatField()
eaddr = models.CharField(max_length=50)
| [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
1579def2fa6f80ba6dfd435b6fff891f01993574 | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-1997.py | f3a26aa41665cfe5f0f22efc9fcccb13fab27569 | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#info:http://www.wooyun.org/bugs/wooyun-2015-0130135
import urlparse
def assign(service, arg):
if service == "hf_firewall":
arr = urlparse.urlparse(arg)
return True, '%s://%s/' % (arr.scheme, arr.netloc)
def audit(arg):
url = arg + 'setdomai... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
f67c1f598cae58a498fbf8fd0e2bc3c70b8bbca1 | 27a580304382e3a79c7307f42a83b689566dbf30 | /math/0x03-probability/7-main.py | 3c6a9d45e98d9aed3edc8c518ebf4cbbf5a0053a | [] | no_license | salmenz/holbertonschool-machine_learning | a37712a125cd2e9e4bd6975c3bb2338f3533474f | a49eb348ff994f35b0efbbd5ac3ac8ae8ccb57d2 | refs/heads/master | 2023-07-11T06:00:36.162782 | 2021-08-11T17:45:35 | 2021-08-11T17:45:35 | 279,366,817 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python3
import numpy as np
Normal = __import__('normal').Normal
np.random.seed(0)
data = np.random.normal(70, 10, 100).tolist()
n1 = Normal(data)
print('Z(90):', n1.z_score(90))
print('X(2):', n1.x_value(2))
n2 = Normal(mean=70, stddev=10)
print()
print('Z(90):', n2.z_score(90))
print('X(2):', n2.x_va... | [
"salmen.zooro@gmail.com"
] | salmen.zooro@gmail.com |
d697120315978be526aa241494b23f4a0e7f9925 | 18d6f64e55893c5057a83552e666ecacdd60c1a4 | /day23/solve.py | 8bc2a2f4017592322a674f9bea21c99cda6aa5c6 | [] | no_license | turtlegraphics/advent-of-code-2020 | bcf0c81c3f19da193483bd85436f6fecf9587b98 | ea75f5d57f130992369d64f173af15c4310582bc | refs/heads/main | 2023-02-07T09:44:08.265054 | 2020-12-25T06:14:07 | 2020-12-25T06:14:07 | 323,831,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | #
# Advent of Code 2020
# Bryan Clair
#
# Day 23
#
import sys
import re
sys.path.append("..")
import aocutils
args = aocutils.parse_args()
# sooo overcomplicated.
# just use an array next[1],....,next[100]
# then given n, it's easy to find n-1.
# too bad I didn't come up with that during the show
class Cup:
def... | [
"bryan@slu.edu"
] | bryan@slu.edu |
ba065267e35f7f153525d6072d10645f44d8b6f3 | 3e321a7c381bf77d7563869b494a6d3a84816e75 | /Back-end/Abogados/caso/models.py | 76d097c8baa451cb5b7915735988822dc273f70e | [] | no_license | MrDavidAlv/Abogados | 865541efe223582f1eff42ae65d7295a5cc3407f | e1f2c4d7957e5686a6035f468f72d1b3fe6d2182 | refs/heads/master | 2023-03-18T22:14:07.010015 | 2021-03-08T15:06:38 | 2021-03-08T15:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.db import models
from tipocaso.models import Tipocaso
from persona.models import Persona
# Create your models here.
class Caso(models.Model):
Persona = models.ForeignKey(Persona, on_delete=models.CASCADE)
Tipocaso = models.ForeignKey(Tipocaso, on_delete=models.CASCADE)
Estado = models.CharFie... | [
"efnaranjo6@misena.edu.co"
] | efnaranjo6@misena.edu.co |
5b63b8ba18d4485a3cef8318da3faad02ac6ae28 | 89fe1d65133ed74535dc5fd2cd4918de320e7801 | /labelling_dataset/remove_api/tensorflow.compat.v1.disable_resource_variables - remove_api/1.py | c7fe0c30e77740c14074d3bfb374c4e713ea58fa | [] | no_license | soarsmu/MLCatchUp | 62a615ac62e2233a722e298bd1bf7c8a622ef0c6 | c874ea38aca653875671b349f09985d4c38fdd5d | refs/heads/master | 2023-01-13T11:50:14.944239 | 2020-11-23T08:15:21 | 2020-11-23T08:15:21 | 271,773,805 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"stefanusagusharyono@gmail.com"
] | stefanusagusharyono@gmail.com |
81de24dc8ed63d6ea901da330ade528a11523e6d | 6e7e037c63a71fad935882b9204e923788e8d7cd | /Basic-Python/code/test_tuple.py | 17ea1e159611f6309af97e9bf421dfc9a376832c | [
"MIT"
] | permissive | AI-System/ai-learning-material-old | 93d219c11778b6a59bac5972c6a4341bf465910a | 1719f5b6ecb9b9caf485b9d806c1211b142b8ed5 | refs/heads/master | 2021-10-23T20:57:50.532039 | 2019-03-17T23:40:47 | 2019-03-17T23:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | '''
元组与列表类似、不同之处在于元组的元素不能修改, 元组写在()内,元组之间用逗号隔开
元组中的元素类型也可以不同
元组与字符串类似,可以被索引,下标从0开始,-1表示从末尾开始的位置
元组也可以截取操作
可以把字符串看做一种特殊的元组
举例:
a=(10,20,30)
type(a) # <class 'tuple'>
a[0] # 10
a[1] # 20
a[1]=100 # 报错,不可修改
a[1:2] # (20,)
a[1:] # (20, 30)
a*2 # (10,20,30,10,20,30)
b=(80,90)
print(a+b) # (10,20,30,80,90)
'''
### 两种创... | [
"johnnynode@gmail.com"
] | johnnynode@gmail.com |
cbfead7e0befa23e4ce06733c7a0fc2174ce0d78 | a4ebfeefa95e97d60f9ad2fe36e75e59e3b50769 | /build/lib/Behaviour_Analysis/Plot_Behaviour_Matrix.py | d072b17292016ee2086e8d5d7320c31dc78e8625 | [] | no_license | matt-j-harvey/Widefield_Analysis | 9f1566ac26d4164d988ab9a43d953f228b15746d | e03037e909ce986d8221113e1bbf5d46ddd7ad70 | refs/heads/master | 2023-05-01T12:30:27.064246 | 2023-04-24T11:23:37 | 2023-04-24T11:23:37 | 252,776,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,854 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec, patches
def get_patch_colour(trial_type):
if trial_type == 1:
patch_colour = 'b'
elif trial_type == 2:
patch_colour = 'r'
elif trial_type == 3:
patch_colour = 'g'
elif trial_type == 4:
... | [
"matthew.jc.harvey@gmail.com"
] | matthew.jc.harvey@gmail.com |
5867e03172869c7f15826c33d3d528575e8620c3 | 920ba5f0459755ee2354c1f50ec5d99fef38facb | /lstm/vis.py | 04a51b1ba53e5fbf7ac0b1c773c45cd1b7089e95 | [] | no_license | mobeets/nullSpaceFits | 50d7352b9381b46b3e0a2bd32490e577d91f3b74 | b4f980cdc26bbcaea7b4b0d48a169e2cbc14089c | refs/heads/master | 2021-01-12T04:41:17.526909 | 2018-07-17T15:37:58 | 2018-07-17T15:37:58 | 77,710,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | import os.path
import numpy as np
import matplotlib.pyplot as plt
def plot_tunings(gs, yte, yhats, ytr, outdir='', prefix=''):
fig = plt.figure(facecolor='white')
one_dim = len(yte.shape) == 1
if one_dim:
yte = yte[:,None]
ytr = ytr[:,None]
yhats = [yhat[:,None] for yhat in yhats]
... | [
"mobeets@gmail.com"
] | mobeets@gmail.com |
e4dd3377781c4a0c6f5f3b46b4a2912423d0af33 | 07c46f65354b3826556d3ab1ac2c556ed97da4ed | /re/exercises/regex_solution.py | 3ba87ed05e414d3513839625008da9fa540f455d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yunzhang599/Python3_Package_Examples | 34e2cb194540a829fe2c5f71290306226c3622b9 | 3e479925f3f6818bf35e46123f720839acf075eb | refs/heads/master | 2020-09-11T11:31:43.688890 | 2019-10-10T21:24:16 | 2019-10-10T21:24:16 | 222,050,071 | 1 | 0 | MIT | 2019-11-16T05:05:53 | 2019-11-16T05:05:52 | null | UTF-8 | Python | false | false | 1,714 | py |
import re
from compare import compare
def substitution_examples():
"""Some examples of using regular expression substitution."""
# example text
text = "7 apples, 24 bananas, 14 carrots, and oranges are fruit"
# replace one word by another
result = re.sub('carrots','pears',text)
com... | [
"krother@academis.eu"
] | krother@academis.eu |
8053621a0411fa97b47c6011c5c12756c407718b | 22cec5da2b1fb83dcc9cf7c888f1e2078b05b62e | /flora/types/generator_types.py | d6159acf244c1f549b2b569fdc734349bd99f42b | [
"Apache-2.0"
] | permissive | JuEnPeHa/flora-blockchain | 649d351e096e73222ab79759c71e191e42da5d34 | 656b5346752d43edb89d7f58aaf35b1cacc9a366 | refs/heads/main | 2023-07-18T08:52:51.353754 | 2021-09-07T08:13:35 | 2021-09-07T08:13:35 | 399,297,784 | 0 | 0 | Apache-2.0 | 2021-08-24T01:30:45 | 2021-08-24T01:30:44 | null | UTF-8 | Python | false | false | 1,189 | py | from dataclasses import dataclass
from typing import List
from flora.types.blockchain_format.program import SerializedProgram
from flora.util.ints import uint32
from flora.util.streamable import Streamable, streamable
class GeneratorBlockCacheInterface:
def get_generator_for_block_height(self, height: uint32) -> ... | [
"github@floracoin.farm"
] | github@floracoin.farm |
e2f1f00cf0dad07929ca55db1af43756621c1941 | 75c7004744315a22afdad8a68f20c06b8d3efad0 | /网络设备脚本/盛科命令行/日志.py | 6c656e2af100ada66f5ebce9be426580a2427f52 | [
"MIT"
] | permissive | cflw/network_device_script | b13cde8719f23402cdd6acd3ca9048a7d65952aa | c3644e933a3c557c44951a0a1994a49357e49c02 | refs/heads/master | 2023-08-03T11:00:29.188101 | 2023-07-29T13:58:09 | 2023-07-29T13:58:09 | 182,526,402 | 18 | 12 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import cflw代码库py.cflw网络地址 as 地址
from ..基础接口 import 操作
from ..命令行接口 import 命令
from ..命令行接口 import 模式
from ..命令行接口 import 日志 as 南向日志
#ev6
class C日志ev6(模式.C同级模式, 南向日志.I日志配置):
"""适用于: 盛科e580(v6.x), 浪潮cn61108pcvh(v6.x), 浪潮s5350(v6.x)"""
def __init__(self, a):
南向日志.I日志配置.__init__(self, a)
def fs服务器开关(self, a操作 = 操作.E操作.... | [
"cflw@outlook.com"
] | cflw@outlook.com |
5d32fee72334a792726003b83bf20f2513e0e006 | 4289fcc440e0cf3d2ecaca03bd2cb1a40933f8fc | /dtformats/tracev3.py | d220b2de0448c6c977fa59b4e1ac65728081954f | [
"Apache-2.0"
] | permissive | ydkhatri/dtformats | 4251563ad8a42dbfb8f293890ed844e29b2c856a | 692d53616f7c89e5ff4d6950778c46d3b94a0130 | refs/heads/master | 2020-04-20T23:41:11.816017 | 2019-02-03T12:40:55 | 2019-02-03T14:32:54 | 169,174,860 | 2 | 0 | Apache-2.0 | 2019-02-05T01:16:42 | 2019-02-05T01:16:41 | null | UTF-8 | Python | false | false | 7,901 | py | # -*- coding: utf-8 -*-
"""Apple Unified Logging and Activity Tracing (tracev3) files."""
from __future__ import unicode_literals
import lz4.block
from dtformats import data_format
from dtformats import errors
class TraceV3File(data_format.BinaryDataFile):
"""Apple Unified Logging and Activity Tracing (tracev3) ... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
a2ce438ff7170ae6cd3a03cad8f529b66f0c7d7e | 21c602c8b40c3cdf572fb63a745c15616adf5f31 | /enso/enso/contrib/scriptotron/cmdretriever.py | db19f4e29d16bf1cd1654c022dc1d97a10a20bf8 | [
"BSD-2-Clause"
] | permissive | GChristensen/enso-portable | a3353e5020dfd83ae612c728a0961dfd6615a0c8 | 61351f52f01367439e8810d2c482a9c9897545d8 | refs/heads/master | 2023-03-15T22:22:12.738941 | 2023-03-09T15:07:59 | 2023-03-09T15:07:59 | 3,496,184 | 144 | 39 | null | 2022-04-30T13:02:03 | 2012-02-20T17:58:22 | C | UTF-8 | Python | false | false | 4,022 | py | import logging
import inspect
import types
import re
COMMAND_EXPRESSION = re.compile( r"(?P<cmd>.+) {(?P<arg>.+)}" )
SCRIPT_PREFIX = "cmd_"
def _makeVarNameHumanReadable( funcName ):
return funcName.replace( "_", " " )
def _getCommandInfoFromFunc( func, funcName, cmdName,
argName = N... | [
"gchristnsn@gmail.com"
] | gchristnsn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.