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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a7dcff347cf0be58c7f7e31b6ad5683d3ad83bb | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_1/16_1_2_ramesh_srivatsan_file.py | 48a62c972a704f3e67df69ac6179a26b29de87ff | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 454 | py | t = int(raw_input())
for _ in range(t):
n = int(raw_input())
l = {}
for i in range(2*n-1):
pp = str(raw_input()).split()
for a in pp:
if l.has_key(a):
l[a]+=1
else:
l[a]=1
li = []
for key, value in l.iteritems():
if valu... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
fe67d0066e94d1d7a237475ee1a475f287a22508 | 4b87a0de0f43de2bde41f2590faac970c18fe482 | /core/migrations/0123_auto_20210210_1037.py | 460ef79d8183a699baef11dcc6f3debf78449c3e | [] | no_license | krishSona/testbackend | d0bc325776537d9814b9022b3538b5e8a840e6a4 | d87e050d02542c58876d4f81c2ea99815ab4160e | refs/heads/master | 2023-04-08T01:26:42.070058 | 2021-04-03T06:08:54 | 2021-04-03T06:08:54 | 354,214,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.0.5 on 2021-02-10 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0122_domain'),
]
operations = [
migrations.AlterField(
model_name='domain',
name='name',
field=m... | [
"kali@dailysalary.in"
] | kali@dailysalary.in |
995cc4b4e5c8fe123f68dc302262b15b94a96e8d | 135aca3b7bab7c32d590986b0ac8cfe905c75657 | /pytx/wsgi.py | 6bd72939eb054853dc32c6bf1f974fc2ab870c46 | [
"MIT"
] | permissive | pytexas/PyTexas | 9e083d4ad3ba72126babcf0df656f793a4439472 | 6ab364dee4f23de0b0fa78036a2428be7497fdf2 | refs/heads/master | 2022-01-12T03:35:15.409636 | 2019-05-05T14:31:44 | 2019-05-05T14:31:44 | 101,810,610 | 0 | 1 | MIT | 2019-04-05T02:57:54 | 2017-08-29T22:00:51 | Python | UTF-8 | Python | false | false | 458 | py | """
WSGI config for pytx project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
BASE_DIR = os.path.dirname(os.path.di... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
702130c3e1067acdf330242f29c3a53c8bb944fb | e58df4aeee11f8a97bdeede6a75a776d130f86d2 | /molpal/objectives/pyscreener/docking/__init__.py | 0efcc759bcd9da402e1f0ed64dd4aa57d63ad4b9 | [
"MIT"
] | permissive | ashuein/molpal | 6ecd79767d8ef254e2c852e20f77cd9338844f35 | 1e17a0c406516ceaeaf273a6983d06206bcfe76f | refs/heads/main | 2023-01-29T03:23:10.525555 | 2020-12-15T14:17:56 | 2020-12-15T14:17:56 | 321,720,018 | 1 | 0 | MIT | 2020-12-15T16:09:48 | 2020-12-15T16:09:48 | null | UTF-8 | Python | false | false | 521 | py | from typing import Dict
from molpal.objectives.pyscreener.docking.base import Screener
def screener(software, **kwargs):
if software in ('vina', 'qvina', 'smina', 'psovina'):
from molpal.objectives.pyscreener.docking.vina import Vina
return Vina(software=software, **kwargs)
if software in... | [
"deg711@g.harvard.edu"
] | deg711@g.harvard.edu |
1f4bd1ecea902d5847f4ab2e2dfa0f1d7161688b | 1f8e15456b2b591ebdbdd123868d72995f801f5f | /single/NormalBLP3.py | 9741f0d90bad8502a727abe60781cb4fc2b550e7 | [] | no_license | BaiLiping/ControllerBasedCoaching | bcc4104d42c310ccb234bd84ae9ef66a3ba74e78 | c718ef9896dc36819a2970465f47187ff0c7a261 | refs/heads/master | 2023-02-09T01:29:21.814357 | 2021-01-06T01:42:58 | 2021-01-06T01:42:58 | 308,488,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | from tensorforce import Agent, Environment
import matplotlib.pyplot as plt
import numpy as np
import math
import pickle
from tqdm import tqdm
#setparameters
num_steps=10 #update exploration rate over n steps
initial_value=0.95 #initial exploartion rate
decay_rate=0.5 #exploration rate decay rate
set_type='exponential... | [
"blp_engineer@outlook.com"
] | blp_engineer@outlook.com |
d3175d32a255ed2f4a57786732b6ab243f101446 | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /client_cli/src/__init__.py | 36ea25a06ca41f5a26e0c71ada5e8a185c1910f8 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 842 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
6c12c0b8fdc44ffc4c2c3cee8a47b873de1de762 | 724e29f9984ca7f607356ce1783bc29d8cb8dae8 | /lib/net/POINT2_model.py | 49933907cdf0435de1de30d029af6ab380ac410d | [
"MIT"
] | permissive | LiuLiluZJU/POINT2-pytorch | 3d9e4d5552c757986106b3dd3ca0b828f09b73d6 | c9f5fad59e2f7da2c169255de5a730d861a1a96e | refs/heads/master | 2022-11-25T02:20:47.018315 | 2020-08-08T05:20:48 | 2020-08-08T05:20:48 | 266,246,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchviz import make_dot
from kornia import SpatialSoftArgmax2d
from .unet_model import UNet
from .FE_layer import FE_layer
from .POINT_model import PNet
from .triangulation_layer import triangulation_layer
import matplotlib.pyplot as plt
import ma... | [
"email@example.com"
] | email@example.com |
de8ef6ccebcd187a581faf86b86c35701d6200f7 | 11e484590b27585facf758f0432eeebe66bf790a | /fal_invoice_milestone_purchase/wizard/purchase_make_invoice_advance.py | 0691ee65cc3d7a53ce22b97a015a0d621c6c880b | [] | no_license | jeanabreu/falinwa_branch | 51b38ee5a3373d42417b84a0431bad9f7295f373 | be96a209479259cd5b47dec73694938848a2db6c | refs/heads/master | 2021-01-18T10:25:49.866747 | 2015-08-25T10:05:05 | 2015-08-25T10:05:05 | 41,369,368 | 0 | 1 | null | 2015-08-25T14:51:50 | 2015-08-25T14:51:50 | null | UTF-8 | Python | false | false | 6,431 | py | from openerp.osv import fields, orm
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
class purchase_advance_payment_inv(orm.TransientModel):
_name = "purchase.advance.payment.inv"
_description = "Purchase Advance Payment Invoice"
_columns = {
'amount': fields.flo... | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
2fcec0007bb738adbc0f9bba1db2d6d3e174a56f | bacd13a19aa2cc0037961d101207afc5b26405ca | /configs/May_05_2018_Penalva_RPS05.py | e12fbc5446cda7c2f4d80a947b04c6fdb4898bc6 | [
"BSD-3-Clause"
] | permissive | saketkc/ribo-seq-snakemake | 85f74eda7a9972ce02f3091c0d181be64c688384 | 06b56d7fa1119c483a9f807c23f31fb9efa00440 | refs/heads/master | 2021-09-15T10:52:54.488854 | 2018-05-31T04:25:36 | 2018-05-31T04:25:36 | 82,966,027 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py |
## Absolute location where all raw files are
RAWDATA_DIR = '/auto/cmb-06/as/skchoudh/dna/May_05_2018_Penalva_RPS05/PenalvaL_05022018'
## Output directory
OUT_DIR = '/staging/as/skchoudh/rna/May_05_2018_Penalva_RPS05'
## Absolute location to 're-ribo/scripts' directory
SRC_DIR = '/auto/cmb-panasas2/skchoudh/github_... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
e81f3c205ce8eb12f67b402c0e69686aa7398c8c | 9cc8b489018dc25781b0aaa407a9ddc2a5caa72b | /examples/animations/leaky_echo_state_network.py | 8dce1fd3c088fdc0ccd48e68a4fa18fd481179bb | [
"Apache-2.0"
] | permissive | SocratesNFR/EvoDynamic | 2921fba58fec60ff8c3d239be4f84dced2f41d01 | ddd93c999d0120349ab022e47fd370ca58ec5ce7 | refs/heads/master | 2023-03-30T21:31:55.031043 | 2023-03-29T12:15:15 | 2023-03-29T12:15:15 | 183,439,783 | 17 | 5 | Apache-2.0 | 2020-09-07T13:08:13 | 2019-04-25T13:26:45 | Python | UTF-8 | Python | false | false | 3,996 | py | """ Simple animation of Echo State Network """
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
import evodynamic.experiment as experiment
import evodynamic.connection.random as conn_random
import evodynamic.connection as connection
import evodynamic.cells.activation as act
import networkx... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
8247d63f1aa8f4e29ddecf52de7dbe954d7f95a3 | 6b3e8b4291c67195ad51e356ba46602a15d5fe38 | /rastervision2/core/predictor.py | 9b6af32dc47db091718b15160f358eb35de21eed | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | csaybar/raster-vision | 4f5bb1125d4fb3ae5c455db603d8fb749221dd74 | 617ca15f64e3b8a391432306a743f7d0dfff352f | refs/heads/master | 2021-02-26T19:02:53.752971 | 2020-02-27T17:25:31 | 2020-02-27T17:25:31 | 245,547,406 | 2 | 1 | NOASSERTION | 2020-03-07T01:24:09 | 2020-03-07T01:24:08 | null | UTF-8 | Python | false | false | 4,141 | py | from os.path import join
import zipfile
from rastervision2.pipeline import rv_config
from rastervision2.pipeline.config import build_config
from rastervision2.pipeline.filesystem.utils import (download_if_needed,
make_dir, file_to_json)
from rastervision2.core.data.... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
e3108d7acd8e38aaf51c1907544cd85f233fe97f | 212724dd876c15ef801fb781e907b1c7dd08f4ae | /skyline/analyzer_dev/agent.py | 119b1a148c34b95fdd80d9a272df3f2da99a8d70 | [
"MIT"
] | permissive | wfloutier/skyline | b9e769cddccdefeeb7c7cc258524bbf489f9d5eb | b12758dc11564de93c7ad76c1f8ed3327db78aa4 | refs/heads/master | 2020-08-08T03:19:40.283298 | 2019-10-09T11:05:13 | 2019-10-09T11:05:13 | 213,693,601 | 0 | 0 | NOASSERTION | 2019-10-08T16:20:15 | 2019-10-08T16:20:15 | null | UTF-8 | Python | false | false | 7,067 | py | import logging
import sys
import traceback
from os import getpid, kill
import signal
from os.path import dirname, abspath, isdir
from daemon import runner
from time import sleep, time
from logging.handlers import TimedRotatingFileHandler, MemoryHandler
import warnings
warnings.filterwarnings('error', 'a', RuntimeWarn... | [
"gary.wilson@of-networks.co.uk"
] | gary.wilson@of-networks.co.uk |
e8d681f0fd6132ac3ec5f78f2a19a7626eb73e81 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/ios/apple8900/Apple8900Constants.pyi | f4484ba6bda351773a13dd061d24c65d6032375b | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 958 | pyi | import java.lang
class Apple8900Constants(object):
AES_IV_ZERO_BYTES: List[int] = array('b', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
AES_KEY_BYTES: List[int] = array('b', [24, -124, 88, -90, -47, 80, 52, -33, -29, -122, -14, 59, 97, -44, 55, 116])
AES_KEY_STRING: unicode = u'188458A6D15034DFE386... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
e9fa3b97e68a4174d68b1eb712a4ecfc00517d6a | 2337351b228818e41be3002bd38f68f77c2aa074 | /vc/migrations/0026_vcdomainprovisioning_resource_group.py | f3e9edecabe1e4aaa2a15c894edf84d4149fce74 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 706 | py | # ----------------------------------------------------------------------
# Add Resource Group to vc domainprovisioning
# ----------------------------------------------------------------------
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------... | [
"aversanta@gmail.com"
] | aversanta@gmail.com |
5cf693023453b8bd4cd23869f8c84666ede5542d | 481daea741175413a840e922014505b0089dfd04 | /processers/processer.py | c60964c6cf600594387bf9f42e0ac39550dd57d8 | [] | no_license | the16thpythonist/JTShell | b512813104e3ba5d19964bcb1dbb1e124adc6b5e | 7b194b5132512aa9ed79a0c7d9757f24dbde9a5f | refs/heads/master | 2021-05-30T02:19:48.182831 | 2015-11-07T00:43:35 | 2015-11-07T00:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | __author__ = 'Jonas'
from JTShell.util.message import Message
import time
class Processer:
"""
the base class for all objects, that are involved with the command execution process of the Shell, implementing the
connection with the logger and writer objects of the program, if needed/enabled, that can both ... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
9e599e8b5fd751743f099de05205732cd4bc081c | e77b92df446f0afed18a923846944b5fd3596bf9 | /Programers_algo/Graph/kruskal.py | d1d113114a54256cb73edd9e6cc8c3d493ea7ea5 | [] | no_license | sds1vrk/Algo_Study | e40ca8eb348d1fc6f88d883b26195b9ee6f35b2e | fbbc21bb06bb5dc08927b899ddc20e6cde9f0319 | refs/heads/main | 2023-06-27T05:49:15.351644 | 2021-08-01T12:43:06 | 2021-08-01T12:43:06 | 356,512,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # 크루스칼 알고리즘
# 가장 적은 비용으로 모든 노드를 연결
# UnionFind
import sys
sys.stdin=open("input.txt","r")
# 특정 원소가 속한 부모 집합 찾기
def find_parent(parent,x):
# 루트 노트가 아니라면, 루트 노드를 찾을떄까지 재귀적으로 후촐
if parent[x]!=x:
parent[x]=find_parent(parent,parent[x])
# parent[x]가 갱신됨
return parent[x]
# 두 원소가 속한 집합 합치기
def union... | [
"51287886+sds1vrk@users.noreply.github.com"
] | 51287886+sds1vrk@users.noreply.github.com |
8b1cec12c2e95e9c6e1aa2b3a1dc3890902dccb6 | 6a69d57c782e0b1b993e876ad4ca2927a5f2e863 | /vendor/samsung/common/packages/apps/SBrowser/src/media/cast/test/utility/utility.gyp | 93e2f14842b82bec4a5561b751635ce8a87d4a77 | [
"BSD-3-Clause"
] | permissive | duki994/G900H-Platform-XXU1BOA7 | c8411ef51f5f01defa96b3381f15ea741aa5bce2 | 4f9307e6ef21893c9a791c96a500dfad36e3b202 | refs/heads/master | 2020-05-16T20:57:07.585212 | 2015-05-11T11:03:16 | 2015-05-11T11:03:16 | 35,418,464 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 891 | gyp | # Copyright 2013 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.
{
'targets': [
{
'target_name': 'cast_test_utility',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)/',
],
... | [
"duki994@gmail.com"
] | duki994@gmail.com |
b8ed59691aeefe3e4e9152934a20f1a38dd76ec1 | 135254b8c00935efd0efd33c708ce69470e23741 | /Hard/149. Max Points on a Line.py | b3ccdb55fe8727f1317734272d23f558f8fa762e | [] | no_license | MinecraftDawn/LeetCode | 4974e6f96612f01e4774ecd5c30bc42dfff79467 | 0404bcce27ff363430e6ab71dbc27a69055fd261 | refs/heads/master | 2021-06-19T05:50:08.000396 | 2021-06-14T05:57:09 | 2021-06-14T05:57:09 | 188,446,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | class Solution:
def maxPoints(self, points: list) -> int:
length = len(points)
if length < 3: return length
ans = 0
for i in range(length-1):
for j in range(i+1,length):
x1,y1 = points[i]
x2,y2 = points[j]
... | [
"eric4902077@gmail.com"
] | eric4902077@gmail.com |
a714c5b7c7804e9c67533f18dde8b0eedd53ddb4 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /turtle_天花乱坠动画2.py | fcf7f1dd160a5abe55f5b10729cabd0a1f397bb2 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # 在这里写上你的代码 :-)
from turtle import *
import math
x0,y0=0,0
u,v,w=.1,.2,.3
def Trgl(x,y,q):
global x0,y0
rgb="#"+hex(0x100000+(q**3) % 0xEFFFFF)[2:]
clr="#"+hex(0x100000+(q**2) % 0xEFFFFF)[2:]
pu()
goto(x0,y0)
pd()
pensize(6)
pencolor(rgb)
goto(x,y)
lt(.1) #旋转(角度制)
fill... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
af9f7a13d84ec8d9dcd93612ecfb7ab3e5a9bcd3 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /python/baekjoon/10991.py | 8b5a24ec3813157fd199bc0c010da37a72249e58 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | n = int(input())
for i in range(n):
for j in range(i + 1, n):
print(" ", end="")
for j in range(i+1):
print("* ", end="")
print()
| [
"kyun2dot@gmail.com"
] | kyun2dot@gmail.com |
7b218f14178cea2f621b90959936835954be0bd5 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/SWEA_문제/swea_1211_Ladder2_풀이.py | 8caa8091e792d5a7c8190b1981bcb752ee8bf14e | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | dc = [-1, 1] # 좌우
def dir_check(r, c): # 방향 체크.
for i in range(2):
nc = c + dc[i]
if 0 <= nc < 100 and ladder[r][nc] == 1:
return i
return 2
def go(st):
col = st_pos[st]
cnt = 0
idx = st
for i in range(100):
d = dir_check(i, col)
if d < 2:
... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
2fd557c72c6c708381632158e55b0b34053df367 | 7e93b1c33045b4c03054f42b6a2b800279b12a9b | /core/cache/backends/dummy.py | dd3b537c31f94fd76440864c0633ceb9028bcdbe | [
"MIT"
] | permissive | anthill-arch/framework | 6f8036980667843f2be1414850255cf6a10e2dcd | a6c238a62ae9c3fb319d12e77f7e9047aab75e8d | refs/heads/master | 2020-05-09T06:01:31.186830 | 2019-08-23T13:52:43 | 2019-08-23T13:52:43 | 180,988,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """Dummy cache backend"""
from anthill.framework.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache
class DummyCache(BaseCache):
def __init__(self, host, *args, **kwargs):
super().__init__(*args, **kwargs)
def add(self, key, value, timeout=DEFAULT_TIMEOUT, version=None):
key = self.m... | [
"x55aah@gmail.com"
] | x55aah@gmail.com |
990c86e2db482e655b196f5e1532da5ba6511e28 | 21b201ebf2ffbbc19fa8d74e5657e12ef597b02d | /research/attention_ocr/python/datasets/fsns_test.py | ae4bd198024cacb58466a58ae414192674610642 | [] | no_license | alhsnouf/model | fa619691ad9d0afc7ad849a9471e6bb0643a8d47 | 5fe429b115634e642a7469b3f1d4bc0c5cf98782 | refs/heads/master | 2021-04-12T11:16:02.150045 | 2018-03-27T15:19:18 | 2018-03-27T15:19:18 | 126,702,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:adecb7ba327b3d3e67e0b87d2739a254b0a9b16b81fbffc730ee0c03476db08d
size 3374
| [
"alhanouf987@hotmail.com"
] | alhanouf987@hotmail.com |
7589cc724a6de9341855ab64e3e966192de85fb8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dns/huaweicloudsdkdns/v2/model/associate_router_request_body.py | 1fee2936721baab02638a1cc01ff60243363cc0b | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,088 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AssociateRouterRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
861702d38884274207c83fc6a9221108052e545b | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/holidays/holiday_commands.py | d5c08c9ea3a12970f2e84cae9f7fa63bd14fa313 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\holidays\holiday_commands.py
# Compiled at: 2018-03-22 23:30:43
# Size of source mod 2**32: 2819 byt... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
3eeadc182efdc464262b1666ed9e13d5177d14a7 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /Code/.history/listogram_20200211102152.py | dba8833384547273220a2bdcaa8ac891eb054bfd | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 5,653 | py | #!python
from __future__ import division, print_function # Python 2 and 3 compatibility
import random
from sample import prob_sample
class Listogram(list):
"""Listogram is a histogram implemented as a subclass of the list type."""
def __init__(self, word_list=None):
"""Initialize this histogram as ... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
78e865b1517223315d05ca75adde29b5a753601b | acad86f0365aa0b5b613644a896bffb9d4dc533f | /django_session_jwt/test.py | 8e931858e91b4e4cab19fa50500ef1161aa607b8 | [
"MIT"
] | permissive | willstott101/django-session-jwt | f85be9c9d5cefe26f5e6253886018baa256c2a83 | ca5dc90c61190305f902ceab03a30abf0e184865 | refs/heads/master | 2023-08-29T13:42:35.587372 | 2021-09-23T19:18:26 | 2021-09-23T19:18:26 | 421,750,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from importlib import import_module
from django.conf import settings
from django.test.client import Client as BaseClient
from django.contrib.auth import SESSION_KEY, get_user_model
from django_session_jwt.middleware import convert_cookie, verify_jwt
User = get_user_model()
class Client(BaseClient):
def login(... | [
"btimby@gmail.com"
] | btimby@gmail.com |
9c3072e28bebc804c79f0b1fa0248796a4500f7e | 82e8593a7e91a260a39b150e13f25741da4d6f8f | /pylib/cli.py | a4dbf7efd887a15e93d2dcb068d85565d0cc2891 | [] | no_license | grandi23/winterpy | 5b9074c62d0f3da370705b99ae2a5f9d9f6ada59 | 989fe6595dc53dca9a0f6da3feb8e05d009d7958 | refs/heads/master | 2021-01-17T12:08:10.737815 | 2015-05-03T09:24:48 | 2015-05-03T09:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # vim:fileencoding=utf-8
# This file is in the Public Domain
'''
Convenient functions for command-line use.
Python 2 & 3
'''
import os
import re
def repl(local, histfile=None, banner=None):
import readline
import rlcompleter
if 'libedit' in readline.__doc__:
readline.parse_and_bind('bind ^I rl_complete')
... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
e8d8d9af59056af753ef58acd36c9b21d2d45cbf | 39354dfc8f61f57f022522a3e3a880c73a540d0d | /shenfun/utilities/__init__.py | ab4cb0c3b03aa606b0854b11a59de03b0f3e750b | [
"BSD-2-Clause"
] | permissive | mstf1985/shenfun | aab9cd416ea7cb549ef191ed9e32f4cd66d522d0 | 83a28b3f7142ef3bf60b20d707ba8c1d2f13a8ff | refs/heads/master | 2022-12-10T20:27:51.825173 | 2020-08-28T13:58:58 | 2020-08-28T13:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | """
Module for implementing helper functions.
"""
import types
from numbers import Number
try:
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
from collections import defaultdict
import numpy as np
import sympy as sp
from scipy.fftpack import dct
from shenfu... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
00f9596b9cdd8422623d02cb8b0bb31ff158a62c | 27b4d1b7723845812111a0c6c659ef87c8da2755 | /face_recognition/02.py | 688d0fa1923af488a037fb7b805f09b4f024848a | [] | no_license | NAMEs/Python_Note | 59a6eff7b4287aaef04bd69fbd4af3faf56cccb4 | f560e00af37c4f22546abc4c2756e7037adcc40c | refs/heads/master | 2022-04-11T09:32:17.512962 | 2020-03-17T09:30:58 | 2020-03-17T09:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | '''
自动找到图像中的所有面孔
'''
from PIL import Image
import face_recognition
#加载图片
image1 = face_recognition.load_image_file('./unknow/5.jpg')
# 返回一个列表,列表中用元组保存图片中的所有人脸的位置
face_locations = face_recognition.face_locations(image1)
# print(face_locations)
print("There are {} people in the picture.".format(len(face_l... | [
"1558255789@qq.com"
] | 1558255789@qq.com |
4edf1fe1a5e22527573a5583c5b23eb261503734 | 308c6fb81f0023b9d5682731c10402ce6a2ebb49 | /django-coreyschafer/bin/wheel | 22071a9376b83a7a00b89f03cc28124ac54f7bc7 | [] | no_license | frclasso/django-project1 | 221646ddc9a6702ab8ab2b0e475f4eed09411457 | 9527e30f5f6d54be2a77524411f114441c968a92 | refs/heads/master | 2020-07-06T13:42:28.314546 | 2019-08-26T00:55:25 | 2019-08-26T00:55:25 | 203,033,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/fabio-gurus/Desktop/repositories/django_projects/django-coreyschafer/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br | |
f6d9cbd62c65febcdc5836464a6acb874d242b87 | 197420c1f28ccb98059888dff214c9fd7226e743 | /Адаптивный_тренажёр/1.All_including/1.All_including.py | aa7587c23d75e4631ca3603a350790351678c14f | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | '''
Напишите программу, которая находит все позиции вхождения подстроки в строку.
Формат ввода:
На первой строке содержится исходная строка, на второй строке ввода указана подстрока, позиции которой требуется найти. Строки состоят из символов латинского алфавита.
Формат вывода:
Строка, содержащая индексы (индексаци... | [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
50b9a5870c5e0c488973768abc415d1754612da4 | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_6_273.py | 28a9e0a2585490ed604b3493f38cb928c2fa2009 | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #
#
# Euler Problem 273
#
#
from Functions import IsPrime,RetFact
from itertools import combinations
def Prod(f):
retval = 1
for vv in f:
retval *= vv
return retval
p=[]
S=set([])
for k in range(1,39):
v = 4*k + 1
if IsPrime(v): p+=[v]
print p
l = len(p)
summ = 0
cnt = 0
for i in range(1,3):
n =... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
a467f80425555a9c632f0c29053bb48fe8de5aa0 | af35f890c0c6a2fa531f47a4c2ed132e8920190d | /python/leetcode/string/1111_nesting_depth.py | bc58f9173f4a28b783a17a8182e19c032ec63a0c | [] | no_license | Levintsky/topcoder | b1b17cd3fddef5a23297bcbe4e165508d09a655d | a5cb862f0c5a3cfd21468141800568c2dedded0a | refs/heads/master | 2021-06-23T10:15:27.839199 | 2021-02-01T07:49:48 | 2021-02-01T07:49:48 | 188,175,357 | 0 | 1 | null | 2020-05-19T09:25:12 | 2019-05-23T06:33:38 | C | UTF-8 | Python | false | false | 3,287 | py | """
1111. Maximum Nesting Depth of Two Valid Parentheses Strings (Medium)
A string is a valid parentheses string (denoted VPS) if and only if it consists of
"(" and ")" characters only, and:
It is the empty string, or
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (... | [
"zhuoyuanchen2014@u.northwestern.edu"
] | zhuoyuanchen2014@u.northwestern.edu |
7d9a15a515e928321da6c01ad4a4b0c6c281c704 | e6a5fce33aad4fcba37842e135a51ba441b06f48 | /Algorithms/Strings/BeautifulBinaryString.py | 788b7087da8bc68a467ba09d592dd229b79f83b4 | [
"MIT"
] | permissive | pavstar619/HackerRank | 6710ddd450b06fbb69da5abad9f570e5e26bbbc0 | 697ee46b6e621ad884a064047461d7707b1413cd | refs/heads/master | 2020-06-18T18:53:53.421685 | 2020-02-18T09:35:48 | 2020-02-18T09:35:48 | 196,408,726 | 0 | 0 | MIT | 2019-07-11T14:18:16 | 2019-07-11T14:18:16 | null | UTF-8 | Python | false | false | 233 | py | #!/bin/python3
class Main():
def __init__(self):
self.n = int(input())
self.s = input()
def output(self):
print(self.s.count('010'))
if __name__ == '__main__':
obj = Main()
obj.output()
| [
"mokit.aust@gmail.com"
] | mokit.aust@gmail.com |
1d392f1ad1a591ca3f59ee411b29ba1720d86905 | 770d4df866b9e66a333f3ffeacdd659b8553923a | /results/0175/config.py | 2eb890c054ba7a06a78c2e58b47304712cdacb6d | [] | no_license | leojo/ResultsOverview | b2062244cbd81bc06b99963ae9b1695fa9718f90 | a396abc7a5b4ab257150c0d37c40b646ebb13fcf | refs/heads/master | 2020-03-20T19:52:37.217926 | 2018-08-05T12:50:27 | 2018-08-05T12:50:27 | 137,656,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | import os
import numpy as np
import waveUtils
class config(object):
def __init__(self):
self.prepare_data()
# Bsub arguments
bsub_mainfile = "main.py"
bsub_processors = 4
bsub_timeout = "4:00"
bsub_memory = 8000
# Epoch and batch config
batch_size = 128
latent_dim = 100
epochs = 100
epoch_updates = 1... | [
"leojohannsson91@gmail.com"
] | leojohannsson91@gmail.com |
1e0458e35481d98afa1fca38f79c63efacd7cb96 | b24fa24a96036253a0cd168ac8f6dd41c9102b0a | /backend/test1_20020/urls.py | 9496714a7230f5aec24f0c409c3dbda66af31988 | [] | no_license | crowdbotics-apps/test1-20020 | a13c64c66d2028f99723f38e0341873a46d3ae3f | 9d59b62483172e4900990c07afed60f443c211bc | refs/heads/master | 2022-12-07T00:18:07.268473 | 2020-09-04T03:27:46 | 2020-09-04T03:27:46 | 292,737,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | """test1_20020 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
de97fb29bc50a39e1dba26ab527c2bf6030e1521 | a392cd0963b030c934f2a9e329867a68515f4a5c | /cotoha/ne.py | acae889f794da0baf8c1d02b9350faa61b31d382 | [] | no_license | hatopoppoK3/COTOHA-Python | b89517bc6037c95a692dd85c98007727a712da24 | df333167f775e7a550827d016bf1892e36ac5602 | refs/heads/master | 2021-01-16T02:14:44.716987 | 2020-05-20T15:22:31 | 2020-05-20T15:22:31 | 242,940,170 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from cotoha.api import Cotoha
from cotoha.api import check_dic_class, get_sentence_class
class CotohaNe(Cotoha):
"""固有表現抽出に関するクラス.
"""
def __init__(self, sentence: str, kuzure_flag=False, dic_class=[]):
"""
Args:
sentence (str): 解析対象文.
sentence_class (bool, option... | [
"hatopoppo0320@gmail.com"
] | hatopoppo0320@gmail.com |
88a06957d542b33485cfa40edd4ee1565f4d15eb | c3cfd90531b560b9522a10089101dd09ed13233e | /arithmetic.py | c91f0e9764c593d10713fc7d9bd05f1a91842425 | [] | no_license | kateybatey/calculator-1 | 602368782265dd302fc4eee376e0d3568e826f2a | 01b24c34d4d0c369279eea6e8ced9fd17bf35722 | refs/heads/master | 2021-01-22T02:04:27.807606 | 2017-05-24T19:48:10 | 2017-05-24T19:48:10 | 92,330,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """Math functions for calculator."""
def add(num1, num2):
"""Return the sum of the two input integers."""
total = num1 + num2
return total
def subtract(num1, num2):
"""Return the second number subtracted from the first."""
total = num1 - num2
return total
def multiply(num1, num2):
"""M... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
567fa248d17de4c3fd124cb904e5495ef97e5a25 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_64/27.py | 4c01b978bd8b3ea6271d01fc75a29607b2413799 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | import sys
import pdb
class Reader:
def __init__(self, filename):
self.fp = open(filename)
def read(self):
tokens = self.fp.readline().split()
result = []
for token in tokens:
try:
result.append(int(token, 10))
except ValueError:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1bfa2e3038d4e8f3250045713006589dc9f8952b | 2afb1095de2b03b05c8b96f98f38ddeca889fbff | /Python_Basic/def/decorators_2.py | 33bb013abb5f1e24d9295d6568415f5872fd17b5 | [] | no_license | draganmoo/trypython | 187316f8823296b12e1df60ef92c54b7a04aa3e7 | 90cb0fc8626e333c6ea430e32aa21af7d189d975 | refs/heads/master | 2023-09-03T16:24:33.548172 | 2021-11-04T21:21:12 | 2021-11-04T21:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | import time
''"""
添加会员,我们要先模拟一个会员库,比如有一个会员名字叫synferlo,密码是harry618
如果不通过装饰器,为了避免大规模修改源代码的函数,我们只能通过修改函数调用方式(即高阶函数)的方法达到效果。
也就是说,我们将一个函数作为参数传入到另一个函数中
"""''
"""
方法:
在log_in_system()函数中嵌套一个inner函数,然后return inner,这样整个log_in_system不会返回US,JP函数的结果,而是把inner函数执行后的内存地址返回
然后我们把它赋值给一个变量,在通过这个变量名+()的方式调用inner函数,通过闭包完成不修改源代... | [
"13701304462@163.com"
] | 13701304462@163.com |
ce7ffbdec0eb226aa156c9473f3ba0daa63fab4c | 63191be7f688591af69263972d68423d76fb5f74 | /geekshop/adminapp/controllers/user.py | 05aa0358e05154eb814c7758f5dea946a87f8647 | [] | no_license | IliaNiyazof/Django | 5eee4c226a1f06178fdbb5626444fff406886de7 | 052cb4f3f142c4224454ebac9fb27f63de9cbc47 | refs/heads/master | 2021-07-19T05:52:56.620026 | 2020-06-05T16:17:47 | 2020-06-05T16:17:47 | 166,776,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import user_passes_test
from django.urls import reverse_lazy
from django.shortcuts import HttpResponseRedirect
... | [
"IFHRJCFY@yandex.ru"
] | IFHRJCFY@yandex.ru |
452d3cb8763ef5630fe140977e5d2231bfa8a948 | f0316e656767cf505b32c83eef4df13bb9f6b60c | /LeetCode/Python/Medium/113_path_sum_2.py | 06fd48759de839c50e4e5968b112c39a587e6b81 | [] | no_license | AkshdeepSharma/Classroom | 70ec46b35fab5fc4a9d2eac430659d7dafba93da | 4e55799466c101c736de6c7e07d716ff147deb83 | refs/heads/master | 2022-06-13T18:14:03.236503 | 2022-05-17T20:16:28 | 2022-05-17T20:16:28 | 94,828,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | 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 pathSum(self, root, wanted_sum):
"""
:type root: TreeNode
:type sum: int
:rtype: Lis... | [
"akshdeep.sharma1@gmail.com"
] | akshdeep.sharma1@gmail.com |
c0913253a2a5b39283be769ece6b4ad5d083e695 | 2c635d6b558a65e62a9d37c12abf9e4ecbe8938c | /Interleaving String/Interleaving String.py | 078587fe65f8837338f6aae0a16ec2d3583abaf1 | [] | no_license | GreatStephen/MyLeetcodeSolutions | c698e13b7088fc9236250b6ec10331b88fe99ed1 | 73a8f79f2cd5c769b195c503f0346893b102acdc | refs/heads/master | 2023-03-01T04:53:19.698040 | 2021-02-05T22:28:18 | 2021-02-05T22:28:18 | 284,350,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | class Solution:
def isInterleave(self, s1: str, s2: str, s3: str) -> bool:
# 比较简单的dp,dp[i][j]检查s1[:i]和s2[:j]能否组成s3[:i+j]
if len(s1)+len(s2)!=len(s3): return False
R,C = len(s1), len(s2)
dp = [[False]*(C+1) for i in range(R+1)]
dp[0][0] = True
for i in range(R... | [
"litianyou97@gmail.com"
] | litianyou97@gmail.com |
2eda2055c3ab058a4a5366e1564e1d8455fe7dd3 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/compute/models/ssh_public_key.py | 0eb39d154705f352f3944718f3a54a63168a0c13 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 1,813 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
31f3a8fd24cca93817cf22a6198a2aeb399d5091 | 099b4f825cf6ccf7a9795154f2d7a7daa64d4691 | /Python_Programming_For_The_Absolute_Begginer_Scripts/HeroInventoryThree.py | a4f02b299117ad2f7f80a9e270f4c94c8a4214da | [] | no_license | espiercy/py_junkyard | 22637f4b1056cd7571d99dfc14e27a0590695733 | 48204ddd00a366e67e98e2d6a01921b659677d57 | refs/heads/master | 2020-03-23T11:27:46.779467 | 2018-09-22T12:55:08 | 2018-09-22T12:55:08 | 141,504,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | #Hero's Inventory 3.0
#Demonstrates lists
#Evan Piercy
#3.21.15
#creates a list with some items and displays with a for loop
inventory = ["sword" , "armor" , "shield" , "healing potion"]
print("Your items: ")
for item in inventory:
print(item)
input("\nPress the enter key to continue.")
#get length of list
print... | [
"evanpiercy@gmail.com"
] | evanpiercy@gmail.com |
d253cc3acea300934927e626015ca9d87ed976b8 | 5215ee22217a0bddc6a6eae3b0e49c1216a77bbc | /snippets/genomescan/extractHmmerResults.py | 3b6b53509ce7664ff31e629035a853ba702a58e0 | [
"Artistic-2.0"
] | permissive | PapenfussLab/Mungo | 5cda4d19a5ef4cb51da495f7abf259b4cd4d1697 | 02c5b0e48ecd28596cb9481b282753859f47fed6 | refs/heads/master | 2021-01-17T07:40:08.832760 | 2015-08-20T01:21:19 | 2015-08-20T01:21:19 | 41,067,597 | 1 | 3 | null | 2016-06-12T23:31:20 | 2015-08-20T01:02:28 | Python | UTF-8 | Python | false | false | 2,136 | py | #!/usr/bin/env python
"""
extractHmmerResults.py <ioDir>
Input: Hmmer output 'DEFB.txt'
Outputs:
- the genomic version (DEFB_genomic.txt)
- a summary (DEFB_summary.txt)
- extracted sequence (DEFB_extracted.fa)
- the translation of this (DEFB_extracted_pep.fa)
Author: Tony Papenfuss
Date: Tue Aug 15 ... | [
"papenfuss@mac2576.wehi.edu.au"
] | papenfuss@mac2576.wehi.edu.au |
c0251a93285a9c216b2e657cd6f5ee75e88fd87c | e2f507e0b434120e7f5d4f717540e5df2b1816da | /363-prime.py | eec06779fac42ecf5ef0cc3980108a841e115439 | [] | no_license | ash/amazing_python3 | 70984bd32ae325380382b1fe692c4b359ef23395 | 64c98940f8a8da18a8bf56f65cc8c8e09bd00e0c | refs/heads/master | 2021-06-23T14:59:37.005280 | 2021-01-21T06:56:33 | 2021-01-21T06:56:33 | 182,626,874 | 76 | 25 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | def is_prime(n):
if n < 2: # 1 is not prime
return False
for m in range(2, n):
if n % m == 0:
return False
return True
for x in range(50):
if is_prime(x):
print(x)
| [
"andy@shitov.ru"
] | andy@shitov.ru |
f41d9ea36dbee55843bb4d1ff6dba6377fb63e81 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/common/migrations/0016_auto_20190206_2246.py | e67cae7f190201b42f384a4f3f519d771ff61775 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Generated by Django 2.0.5 on 2019-02-06 17:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0015_remark_status'),
]
operations = [
migrations.AlterField(
model_name='remark',
name='content',
... | [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
bc4fb90c32c6b9ad7010a25b5c8a0a524ed26ae7 | 277d4ee56616bb5930c57a57c68a202bf5085501 | /stubs/torch/nn/parallel/replicate.pyi | f337d4b8bd699302940ca17613883b9bed788aa2 | [
"MIT"
] | permissive | miskolc/spacy-pytorch-transformers | fc502523644eb25cb293e0796b46535ba581a169 | ab132b674c5a91510eb8cc472cdbdf5877d24145 | refs/heads/master | 2020-07-22T09:47:17.905850 | 2019-09-04T15:12:09 | 2019-09-04T15:12:09 | 207,156,566 | 1 | 0 | MIT | 2019-09-08T18:37:55 | 2019-09-08T18:37:55 | null | UTF-8 | Python | false | false | 221 | pyi | # Stubs for torch.nn.parallel.replicate (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def replicate(network: Any, devices: Any, detach: bool = ...): ...
| [
"honnibal+gh@gmail.com"
] | honnibal+gh@gmail.com |
9650f1d30391a7d26762cbdb090a2f7a374bd8d4 | b731d1b35a5416cdd73d421ea3b88a3a18e4c6d3 | /ecliptic/support/sequtils.py | 8f51fb3e102d63eb8f64f97e3d6b21a2e5d694ec | [] | no_license | xflicsu/ecliptic | ad772d3563cff1875dddc7d29d156093e03afd07 | e9d2e671bcabc5df30ada0cf42953769099ad5d7 | refs/heads/master | 2020-12-28T21:06:37.212834 | 2013-06-18T14:13:23 | 2013-06-18T14:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | # Copyright (c) 2011-2012 Hyeshik Chang
#
# 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, copy, modify, merge, publish,... | [
"hyeshik@snu.ac.kr"
] | hyeshik@snu.ac.kr |
2cb7966f9848c20ac6a089497ae7bb6742d0382b | 7d2ee33675a0b0bd3c25ee22766eca3b658efbab | /tests/validate_json_schemas.py | 879f38c7c26e8804615b48b00ca61940d6ebae9e | [
"MIT"
] | permissive | AD-SDL/polybot-schema | 8caef7d6ae01f5723b01e620a6d364b4fcb2ebc9 | 8bc3dbf39e8d71ac6279baa40f08679a3bdbb80a | refs/heads/main | 2023-06-27T03:50:20.856468 | 2021-07-29T17:30:45 | 2021-07-29T17:30:45 | 389,676,088 | 0 | 0 | MIT | 2021-07-26T17:38:07 | 2021-07-26T15:12:15 | Python | UTF-8 | Python | false | false | 663 | py | from jsonschema import Draft7Validator, RefResolver
from pathlib import Path
import json
# Find all the schemas
schema_path = Path(__file__).parent / '..' / 'json'
schemas = schema_path.rglob('*.json')
# Loop through to make sure they are all valid
for schema in schemas:
print(f'Checking {schema.relative_to(schem... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
c30c48fa7dd725d285fdae6c1a5dd6d450f5beef | ce498e1b0fd9c2ae9ebd04c5834f4052a9a46219 | /tuples/sorting-with-value.py | 01e568039bac15ac185b8e92f489cf4c611c3c0e | [] | no_license | wechuli/python | b32e84bb44646810f3f03f9fcfb67e7d8f54ebb6 | 40cc1782724179567128f6da202f166a0c9a0ea1 | refs/heads/master | 2022-02-20T19:18:03.578752 | 2019-09-24T17:19:27 | 2019-09-24T17:19:27 | 117,241,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | my_nary={'The':'Heart','is':"exceedingly",'deceitful':'and','wicked':'above','all':'things'}
my_nary2={'The':5,'is':85,'deceitful':2,'wicked':-8,'all':22,'things':85}
my_list=list(my_nary2.items())
my_lis2=list()
for key,vals in my_list:
my_lis2.append((vals,key))
my_lis2.sort(reverse=True)
print(my_lis2)
| [
"wechulipaul@yahoo.com"
] | wechulipaul@yahoo.com |
9edcfd8e23912adb9f02ffa2158ad3e4a1c337a0 | 6cf0c21f14076979edafb401caf6f0be54377490 | /vedastr_cstr/vedastr/models/bodies/rectificators/sspin.py | 26c593457eb7e1d3db2b610c4456f3b659256f07 | [
"MIT",
"Apache-2.0"
] | permissive | shekarneo/ocr-teamcode | abb23a6cb1df597ee0f8a45d1caf4c6374ce1d46 | 86d5070e8f907571a47967d64facaee246d92a35 | refs/heads/main | 2023-06-02T19:29:20.640271 | 2021-06-23T15:03:31 | 2021-06-23T15:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # We implement a new module which has same property like spin to some extent.
# We think this manner can replace the GA-SPIN by enlarging output features
# of se layer, but we didn't do further experiments.
import torch.nn as nn
from vedastr.models.bodies.feature_extractors import build_feature_extractor
from vedastr... | [
"coodingpenguin@gmail.com"
] | coodingpenguin@gmail.com |
0503c67578bed73112c1a1fd91865ab9220e8817 | fd1a3d5f1eb2a85a204b9694f26e2168e1e2fa10 | /msu/fall2013/ece867/project/src/coroutine.py | 63c83844bcb50a519b15c68480dac7474e52f568 | [] | no_license | csboling/studies | 61d3d31ce8ccd4c9370e19fa60fc4ad8fbc26e30 | 1a212d63420ff1602755950124136993bc967849 | refs/heads/master | 2021-01-21T14:08:59.397293 | 2016-03-30T17:49:21 | 2016-03-30T17:49:21 | 25,365,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | def coroutine(f):
def start(*args, **kwargs):
g = f(*args, **kwargs)
g.next()
return g
return start
@coroutine
def consume():
while True:
(yield)
@coroutine
def broadcast(targets):
while True:
msg = (yield)
for target in targets:
target.send(msg)
@coroutine
def accrue(depth, tar... | [
"charles.samuel.boling@gmail.com"
] | charles.samuel.boling@gmail.com |
c7c8dbb3871913fc00fa414dd0a9cd0fb3f622c3 | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /resource_management/views/add_item/add_item.py | c02a116732e5c57847c249eb40a4f70e1961fbef | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | from functools import reduce
def add_item(*args, **kwargs): # pylint: disable=invalid-name
"""
Note: replace below mock implementation with your actual implementation
Request:
kwargs["user"] -> request user
kwargs["user_dto"] -> request user_dto
kwargs["request_o... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
b16c44dca67fbbadaa94bfac55dcddd6bcb70005 | dbfeec6da584a41f8f341535728385db4d777ddf | /scripts/analysis/constant_accuracy_overall.py | 60a0851b55bc554e5bc8a13d1d76b9a36a924242 | [
"MIT"
] | permissive | alan-turing-institute/CSV_Wrangling | 7b0abfcfc0d3a7a91252da80064952ede4c71578 | 3e073b8eee906c8fc71a5ce4499b07bbe67e8807 | refs/heads/master | 2022-01-24T13:31:36.381401 | 2022-01-20T22:13:17 | 2022-01-20T22:13:17 | 158,363,564 | 29 | 10 | MIT | 2022-01-20T22:13:48 | 2018-11-20T09:28:05 | TeX | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Overall accuracy of a method averaged over multiple corpora.
Author: Gertjan van den Burg
Copyright (c) 2018 - The Alan Turing Institute
License: See the LICENSE file.
"""
import argparse
import sys
from common.detector_result import Status
from .core import load_... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com |
ee853b1f9ace43cba6d45251c3e5f56064033d04 | a7d497669dc91e6432216145a550755d42f6bb69 | /src/cogent3/util/transform.py | e6859405cf90f5a8c193163b7ae0393da4be8a4f | [
"BSD-3-Clause"
] | permissive | jbw900/cogent3 | 8887ee4b8be02a2086ad8d6fcaa54afe462baee5 | 9168c9b86d851992d008c8f730a5516b89aef835 | refs/heads/master | 2020-09-10T19:19:36.443143 | 2019-11-14T23:48:34 | 2019-11-14T23:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | #!/usr/bin/env python
"""Provides transformations of functions and other objects.
Includes:
Standard combinatorial higher-order functions adapted from David Mertz (2003),
"Text Processing in Python", Chapter 1.
Functions for performing complex tests on strings, e.g. includes_any or
includes_all.
Functions for gener... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
2ed208d6f7e98069fb6da757364000b2bbd9ed4e | 6b3cccf29a604cf6e433bf411f71c9f2692e1c93 | /openapi_core/schema/schemas/unmarshallers.py | b3d0ece1a8b9e32093802a0be93761dfc1ecadd3 | [
"BSD-3-Clause"
] | permissive | srgkm/openapi-core | d826f942fb4551e4d7193e4cb7c156a48c2feb0b | 4b712cb2b5d045166cecce89ca9e47eb3da5163f | refs/heads/master | 2020-12-13T21:16:23.803664 | 2020-01-13T10:43:32 | 2020-01-13T10:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | from six import text_type, binary_type, integer_types
from openapi_core.schema.schemas.enums import SchemaFormat, SchemaType
from openapi_core.schema.schemas.exceptions import (
InvalidCustomFormatSchemaValue,
UnmarshallerStrictTypeError,
FormatterNotFoundError,
)
from openapi_core.schema.schemas.util impo... | [
"maciag.artur@gmail.com"
] | maciag.artur@gmail.com |
748aab2283fd79854e093608d29d48ce9b13ead4 | 53c91272444bfab92e7e89e0358047b27eab1125 | /03.代码/豆瓣评论/scrapydouban/scrapydouban/middlewares.py | 61c53041598417f8298ce947bccbc3bfded65d56 | [] | no_license | MrFiona/python_module_summary | 2bbf9f30e0fbfe302e7e6c429754fa7bf4bfc411 | 4e36f6f5f6abed10fc06b16b0ed7c12cde7746d0 | refs/heads/master | 2021-01-20T03:54:38.105298 | 2019-01-07T07:28:36 | 2019-01-07T07:28:36 | 101,373,212 | 2 | 0 | null | 2018-04-15T05:56:45 | 2017-08-25T06:28:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ScrapydoubanSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scr... | [
"1160177283@qq.com"
] | 1160177283@qq.com |
d2b1b651ebf6b8b808ed94202ed67b4c9425c296 | e44d00ffcea03f8656c40b3d4d993d51a38af3b0 | /leetcode/July/J15_ReverseWords.py | 7c56ae8d6499aa463fa5c626d3acfd51ddc0ed3f | [] | no_license | Ayushmanglani/competitive_coding | d6beec4f2b24aef34ea44c3a4a72074985b4a766 | 12325b09ae2bc6b169578b6a0a091069e14c9227 | refs/heads/master | 2023-06-12T04:43:41.130774 | 2021-07-03T13:01:37 | 2021-07-03T13:01:37 | 262,079,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Solution:
def reverseWords(self, s: str) -> str:
s = s.split()
return(" ".join(s[::-1]))
#method 2
class Solution:
def reverseWords(self, s: str) -> str:
s = s.split(" ")
s = s[::-1]
res = ""
for i in s:
if i != "":
res += i + " ... | [
"ayush.manglani@gmail.com"
] | ayush.manglani@gmail.com |
b8d73b63c2697f898dd70e716bd7a8aef651e60c | 6bd71bdfe9234e5e6de90bb40b6cd8d3e25ca6d2 | /Tier3-Data/ViaSRM/copy-files-SRM-2-SRM.py | ff8770089328f651fa01741ca337dc1b036f041c | [] | no_license | andres0sorio/CMSWork | f1f30a12bf43eb688ef9e95c53c94fe32fc7fe66 | 81e60a0a9b70cd2ae01d17b15be386a6cd925416 | refs/heads/master | 2021-01-22T13:12:16.094247 | 2015-10-26T04:47:12 | 2015-10-26T04:47:12 | 9,710,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!/usr/bin/python
import os,sys
import string
from optparse import OptionParser
# ...
# Andres Osorio - aosorio@uniandes.edu.co
# ...
#-----------------------------------------------------
#-----------------------------------------------------
parser = OptionParser()
parser.add_option("-f", type = "string", dest="inf... | [
"osorio.af@gmail.com"
] | osorio.af@gmail.com |
9bf77a66acd94e715057b64921810fafc903c148 | ce68e6f989ebf72becce3638dc920fc60edec45c | /SWEA/D3/SWEA_2814_최장경로.py | 6082630ee9fd834346af54032643eb3679e71238 | [] | no_license | hyeinkim1305/Algorithm | 103513e502241a619a60e6663ed8346e5c574ebc | 93541b01fab0a6ceb6f9dd06a7c049c8b57d94f9 | refs/heads/master | 2023-05-09T19:07:58.280912 | 2021-06-10T01:51:29 | 2021-06-10T01:51:29 | 330,079,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py |
# D3
# 두 정점 사이에 여러 개의 간선 존재?
def dfs(idx, cnt):
global max_cnt
vis[idx] = 1
if cnt > max_cnt:
max_cnt = cnt
for j in range(1, N+1):
if idx != j and adj[idx][j] == 1:
if vis[j] == 0:
dfs(j, cnt+1)
# 아래 줄이 없으면 한번 씩만 방문함
# 아래 줄을 쓰게 되면 각 정점들을 시작점으로 돌 수... | [
"haileyyy1305@gmail.com"
] | haileyyy1305@gmail.com |
4727b92f82d006d2db8a575d76f06b2f66888c5a | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/MemsIPE/server/openmtc-server/src/openmtc_server/Event.py | 6a3ca161a5ec34a44d4d93e69312d5e4a98fb703 | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 2,910 | py | from abc import abstractmethod, ABCMeta
from futile import issubclass as safe_issubclass
from futile.logging import LoggerMixin
from openmtc.model import Resource
class Event(LoggerMixin):
__metaclass__ = ABCMeta
@abstractmethod
def fire(self, *event_data):
raise NotImplementedError()
@abst... | [
"sro"
] | sro |
a4977e1faa3a4d326cda4f0f40893a477d82fba0 | 9613620632d8a60afa1ac66a752f2eb543a8530d | /src/posts/apps.py | 139fec2d7e31d75c47e310e121e5c3e2843e2d5b | [] | no_license | loristron/iSocial | 72dc48b36ff1959d98fdb1d4df66495575f9d48a | 417d7a344a9a078d76380c221d32860d8775f36d | refs/heads/master | 2023-02-24T15:46:17.450470 | 2021-02-03T00:52:26 | 2021-02-03T00:52:26 | 335,385,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.apps import AppConfig
class PostsConfig(AppConfig):
name = 'posts'
verbose_name = 'Posts, Comments and Likes'
| [
"loremmiranda@gmail.com"
] | loremmiranda@gmail.com |
a9fd455aafe7b51c2e12403c2de811af29e4df85 | a0947c2778742aec26b1c0600ceca17df42326cd | /Python/Web/72of79DB.py | 9cd00e6e182ec0bd2fd0d3e52465a807cc2c731d | [] | no_license | JohnCDunn/Course-Work-TTA | 5758319d4607114914ba9723328658bed8fb2024 | 8c4f60d51007dac2ac4cceb84b0f9666e143c0d7 | refs/heads/master | 2021-01-10T16:37:02.609879 | 2016-02-01T18:05:38 | 2016-02-01T18:05:38 | 49,983,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import sqlite3
conn = sqlite3.connect('time_database.db')
c = conn.cursor()
c.execute('''CREATE TABLE time_table (last_update text, last_timestamp)''')
c.execute("INSERT INTO time_table VALUES ('1', '20150101010101')")
conn.commit()
conn.close()
| [
"JohnClydeDunn@Gmail.com"
] | JohnClydeDunn@Gmail.com |
5807b840bdeeec376fc32e131f19b981354fc4c6 | 735bc5756b554009c552844616183b2bcf9ac50b | /sauna/reload/interfaces.py | 3b5b4b263f04e0e9abe866d5e57392c026b534f8 | [
"ZPL-2.1"
] | permissive | collective/sauna.reload | 31a2e3be956a9ef2168016e9f199c4b3d1c0b052 | e12a0a9e01204de324ab934aec5754773ac30bd6 | refs/heads/master | 2023-03-22T11:29:17.651087 | 2018-10-18T11:15:02 | 2018-10-18T11:15:02 | 2,267,806 | 10 | 1 | null | 2014-10-19T14:24:33 | 2011-08-25T12:40:05 | Python | UTF-8 | Python | false | false | 1,779 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2011 University of Jyväskylä and Contributors.
#
# All Rights Reserved.
#
# Authors:
# Esa-Matti Suuronen <esa-matti@suuronen.org>
# Asko Soukka <asko.soukka@iki.fi>
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of... | [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
5e6b20b5c16d81d1f4479bc5620f2397b8e7486d | 76b0fad21d63847896e09b0c4792637ae2b1c460 | /src/cookbook_10.py | 912825055e51f3438d430db57449e5901cd71756 | [] | no_license | hezhiqiang-book/python-cookbook | 0718056aff37648246958fc38dffde66bc9df40a | a432835755a9a8703789890018561c4218a42259 | refs/heads/master | 2020-12-09T15:53:43.316368 | 2015-11-29T02:56:38 | 2015-11-29T02:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Counter(object):
def __init__(self):
self.dict = {}
def add(self, item):
count = self.dict.setdefault(item, 0)
self.dict[item] = count + 1
def counts(self, desc=None):
result = [[val, key] for (key, val) in self.dict.it... | [
"sixu05202004@gmail.com"
] | sixu05202004@gmail.com |
043315ef85ed72f41f1faddc9dab297d8fb220e9 | bc435c8e7e8e418015e4848bb196adeac1343855 | /tools/spider/getItem.py | b53c0b6bc94a57170f41aef5772d7fa577a6dee3 | [] | no_license | xiaoZ-hc/PwnMe | 13a580268273dfaa2957c70fe485475fc8a42bb4 | 2269b9461f6bf8b5a6f600801a03bb60da3adadc | refs/heads/master | 2020-09-05T00:58:28.343371 | 2018-08-01T08:47:15 | 2018-08-01T08:47:15 | 219,939,668 | 0 | 1 | null | 2019-11-06T07:44:20 | 2019-11-06T07:44:19 | null | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python
# encoding:utf-8
import requests
import bs4
import time
import sys
import os
headers = {
"Host" : "www.exploit-db.com",
"User-Agent" : "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0",
"Accept" : "text/html,application/xhtml+xml,application/x... | [
"wangyihanger@gmail.com"
] | wangyihanger@gmail.com |
a5a3e0a1a6d2bee081cc972ef984f9da33515eb9 | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/api/compute/openstack/compute/certificates.py | 61aaa716f6f6ade322e2c850f6dd52375a387db5 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | # Copyright (c) 2012 OpenStack Foundation
#
# 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 ... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
bcb2e8de18e2d1eac6fd24c457f468bfab851648 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Dsz/PyScripts/Lib/dsz/mca_dsz/file/cmd/get/types.py | 869ee75deb26cb39c8dca695a2111e7c46c17f43 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: types.py
from types import *
MSG_KEY_PARAMS = 65536
MSG_KEY_PARAMS_RAW_INDEX = 65537
MSG_KEY_PARAMS_OFFSET = 65538
MSG_KEY_PARAMS_BYTES_TO_READ = 655... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
a9fb728e80d05f1c60a425baa7e4130d5f496aa1 | 22b363b0a4d67427d4746414090d6fef701fd3b9 | /src/triage/__init__.py | f148179bcdd93eca35d0d477df9f079e43aba6e1 | [] | no_license | Barbarioli/triage | 12557dd410def01291da355051966b4d2e5885b4 | 5d1ef41f1d89b150b30fae0c300028ef8dc39321 | refs/heads/master | 2020-03-13T10:35:48.469855 | 2018-04-14T02:29:03 | 2018-04-14T02:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # -*- coding: utf-8 -*-
__author__ = """Center for Data Science and Public Policy"""
__email__ = 'datascifellows@gmail.com'
__version__ = '2.2.0'
| [
"tristan.h.crockett@gmail.com"
] | tristan.h.crockett@gmail.com |
b13b2d3ef3319d540e3e1ead4ca55bb548c596ab | 3bb4d1c4060a8d0f30cbfa01328a3b1520ce1bd5 | /apps/system/migrations/0002_auto_20190404_2012.py | 5c220e6021475f5576c584f224796a70d5180679 | [] | no_license | Chen320048/HuoChenGuang_Files | 8750bc7afe871128d7ae526741da83a2ac485ce4 | f4f847572a69ecad1f8ab22c7364cbffe70571fc | refs/heads/master | 2020-05-31T09:05:37.257383 | 2019-06-04T13:18:47 | 2019-06-04T13:18:47 | 190,204,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2019-04-04 20:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('system', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"123456@qq.com"
] | 123456@qq.com |
f462aa831af9c6ef63296255f49b337746e77814 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/yuikitaml/method-examples/method-examples.py | bbf85edccd7069000af9984fb7999be1f545bd7f | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/env python
# coding: utf-8
# ## Method examples quick look
# Using Titanic dataset
# In[ ]:
import pandas as pd
import numpy as np
import re
import sklearn
import xgboost as xgb
import seaborn as sns
import matplotlib.pyplot as plt
get_ipython().magic(u'matplotlib inline')
import plotly.offline as py
py.... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
a813e9d7480febc65bed94dcd2c611f754601bb5 | d28d47bc1d25161629d2174a465ae3eb38e02802 | /myapp/migrations/0002_auto_20190904_1909.py | 86cd65d9520221dee1b35b5c4957107f4966576a | [] | no_license | Lider-neuromedia/opx-opensource-web | 4df776607d701f0fe89ad1fb178502ec089678be | b44bb24830e52df9a641181f1ab644e9da08ff1d | refs/heads/master | 2022-06-05T01:25:28.312145 | 2020-04-29T22:23:41 | 2020-04-29T22:23:41 | 260,053,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # Generated by Django 2.2.4 on 2019-09-04 19:09
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='usuario',
old_name='userpa... | [
"="
] | = |
ea8d95bb65ad2ff1b41bf10867f308283fee4d22 | ee86ad4b38f6ba13f195246f14224ba781f933cc | /02_2차원배열/2차원 순회.py | bf7faa2b62022360c75ed078fa6eac2111d6d63e | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | arr = [[0,1,2,3],
[4,5,6,7],
[8,9,10,11]]
# i : 행의 좌표
n = len(arr)
# j : 열의 좌표,
m = len(arr[0])
# 행 우선 순회
for i in range(len(arr)):
for j in range(len(arr[i])):
print(arr[i][j], end=' ')
print()
print()
# 열 우선 순회
for j in range(len(arr[0])):
for i in range(len(arr)):
... | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
ded0ba095bd9d4078345e5fdce6768005fe044fe | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_0/Python/Zolmeister1/tictac.py | 2879fa0314f0c731fcb36909d595b1a0d320f8b9 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | fin = open('tictac.in').read()[2:].strip().split('\n\n')
fout = open('tictac.out','w')
def pp(s):#print end case
print 'Case #%d: ' % (cnt) +s
fout.write('Case #%d: ' % (cnt) +s+'\n')
cnt=0
for game in fin:
cnt+=1
rows = game.split('\n')
cont = False
for r in rows:
os = r.count('O')... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
bece03e4588034620ff88252c2a43363cd91a680 | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_MaterialKit.py | e6f20a6022f0fd5e3b40448fc97fc45454fa77e7 | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 1,198 | py | """
Classes from the 'MaterialKit' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
MTVisualStyling = _Class("MTVisualStyling")
MTVisualStyl... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
08786c00f9edae0282a030938082a24985a78bfb | 3011e024b5f31d6c747a2bd4a143bb6a0eeb1e1d | /django-rest-framework/day132_01/venv/Scripts/pip-script.py | 30ef622f420166e537def6d1a18be62e0beda706 | [] | no_license | yingkun1/python-django | a3084460a83682f3e0848d5b40c881f93961ecc2 | 08c9ed3771eb245ee9ff66f67cf28730d2675bbe | refs/heads/master | 2022-12-11T12:33:20.788524 | 2019-06-12T09:30:59 | 2019-06-12T09:30:59 | 189,977,625 | 1 | 0 | null | 2022-11-22T02:57:01 | 2019-06-03T09:43:30 | Python | UTF-8 | Python | false | false | 421 | py | #!E:\python-django\django-rest-framework\day132_01\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"925712087@qq.com"
] | 925712087@qq.com |
10adf812c3b3204b61a65a1935b9b8ed4ed9a65d | 2d1fdf69b3f00d1840f2e8956b91bd97c4777c24 | /mohet/mohet_app/migrations/0002_auto_20210604_2126.py | 210c1f080297d77c0f3631e679d1324652951377 | [] | no_license | DiyarBarham/project-mohet | d8a4df41ee19365dd9a6e4c756477f3ccaffd60f | 03b92cd28fa315322d76f5e1632b5403f117fa25 | refs/heads/master | 2023-05-25T11:47:05.351526 | 2021-06-06T14:53:31 | 2021-06-06T14:53:31 | 374,387,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # Generated by Django 2.2.4 on 2021-06-04 18:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mohet_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='article',
name='id',
fi... | [
"diyarbarham@gmail.com"
] | diyarbarham@gmail.com |
3463202e5e93b0f832989da3363bc365a09d764d | 07917881310fc81d85a2cbdf27c9b3c4fa03c694 | /python1812/python_4/四阶段/day01/code/python3code/job51.py | 959f5d9501613b5eb6c690f4ff91b6599ea99e23 | [] | no_license | zaoyuaner/Learning-materials | 9bc9a127d1c6478fb6cebbb6371b1fd85427c574 | 1f468a6f63158758f7cbfe7b5df17f51e3205f04 | refs/heads/master | 2020-05-18T11:38:45.771271 | 2019-05-20T09:07:44 | 2019-05-20T09:07:44 | 184,384,050 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import re
import urllib.request
headers = {
"User-Agent":"User-Agent, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
}
#获取前程无忧的接口
url = "https://search.51job.com/list/040000%252C010000,000000,0000,00,9,99,python,2,1.html?lang=c&stype=&postchann... | [
"13510647877@163.com"
] | 13510647877@163.com |
685728b1b73a4e7b80a069a6247b6266c4e245ae | e16cf4d5dc7a0055892feee2397ac341a4c9b375 | /data-structures/stacks_and_queues/test_stacks_and_queues.py | 6ed1937c2e223db01050abe6469abfaee4309c5a | [
"MIT"
] | permissive | arsummers/python-data-structures-and-algorithms | 47935b75216594566a706083f91c6d71ae01a96c | 30a488bd1100d8edac3b7fda73f7d7d999c61bfc | refs/heads/master | 2021-06-18T08:33:36.210039 | 2020-09-24T23:23:32 | 2020-09-24T23:23:32 | 195,889,918 | 3 | 1 | MIT | 2021-04-20T18:35:42 | 2019-07-08T21:42:19 | Python | UTF-8 | Python | false | false | 2,307 | py | import pytest
from stacks_and_queues import Stack, Queue
# Can successfully push onto a stack
def test_stack_push_one():
s = Stack()
s.push('a')
assert s.peek() == 'a'
# Can successfully push multiple values onto a stack
def test_stack_push_multiple():
s = Stack()
s.push('a')
s.push('b')
... | [
"aliyasummers1@gmail.com"
] | aliyasummers1@gmail.com |
88f49fdc3e4695c32dc863b2acf20931279d3de7 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000476.py | 79c655e3af493ac7bfbe5077aba07884817c5816 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
861c710c6e89b0ffb3546483f63f4f2e2af85838 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /first_eye/world/old_problem/right_government/eye_or_case.py | e661a8e74622ff9a608787dce1a027c2b2be1f36 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py |
#! /usr/bin/env python
def government(str_arg):
small_company(str_arg)
print('early_fact')
def small_company(str_arg):
print(str_arg)
if __name__ == '__main__':
government('week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
aa00fe43e3785a75507fb2a0b3aaad991da96511 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re2_test_file/regexlib_2890.py | bbf1cafd2ceabdcfdc8a3bcc7fb879bc369f6b85 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # 2890
# (([\w|\.]*)\s*={1}\s*(.*?))$
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"1"*10000+"!_1!1 _SLQ_1"
import re2 as re
from time import perf_counter
regex = """(([\w|\.]*)\s*={1}\s*(.*?))$"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "1" * i * 10000 + "!_1!1 _SLQ_1"
LEN = ... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
e77c02bc990fe5e539985d34b266c7a0618a1fbb | b1ddae0f702f7af4a22ccf8e57eccb6778eaa8a5 | /apps/users/migrations/0006_auto_20180703_0743.py | 5623ef9fa7b291ce5b84c28a1155b44805a9c8f0 | [] | no_license | MoNaiZi/Mxoinline3 | 1cd1effa716bacbe4a7fc83c4687adc1fdbbea03 | 8d8ba1322fbaefcf8767160e1e2d05afc755fe5c | refs/heads/master | 2020-03-17T00:03:41.868735 | 2018-07-11T00:48:09 | 2018-07-11T00:48:09 | 133,101,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-07-03 07:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20180630_2043'),
]
operations = [
migrations.AlterField(
... | [
"you@example.com"
] | you@example.com |
6b65d35046b48be71a3df21e7ab47327a6e56a42 | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/ros_archive/dyros_backup/original/catkin_ws_right/build/gps_test/catkin_generated/pkg.installspace.context.pc.py | 562b7a65ea657b1e00388349bb7282ec2cc8d76f | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 414 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lgps_test".split(';') if "-lgps_test" != "" else []
PROJECT_NAME = "gp... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
b5e7c3e35e02e537e325be2564d2639f88a3b296 | 98fe2f95d7fba400c592996681099014279bff70 | /voomza/apps/books_common/tests/yearbook_signs.py | f38d5cbb32ad58c562791185ed125b22280af276 | [] | no_license | bcattle/monkeybook | 51435a3c0416314597adcbb5f958c2761d92bfea | e01f2c371d124449f053ee37eb71ce9a64732e56 | refs/heads/master | 2016-09-06T13:28:23.332786 | 2013-03-22T02:04:15 | 2013-03-22T02:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | import random
from django.test import TestCase
class YearbookSignPaginationTestCase(TestCase):
short_sign = "Remember when we snuck into the pastry shop on 23rd street??? " \
"I wont' forget the epic nights out in 2012."
long_sign = "Remember when we snuck into the pastry shop on 23rd street?... | [
"bryan.cattle@gmail.com"
] | bryan.cattle@gmail.com |
9f0f9a18fd94e3ee3b6e016fcc1957d57a35bd41 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03805/s294798234.py | 6299c897ff1f6ded8b87e4e179c3be4d195d7f46 | [] | 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 | 355 | py | from itertools import permutations
N, M, *ab = map(int, open(0).read().split())
g = [[0] * N for _ in range(N)]
for a, b in zip(*[iter(ab)] * 2):
g[a - 1][b - 1] = 1
g[b - 1][a - 1] = 1
ans = 0
for path in permutations(range(1, N)):
path = [0] + list(path)
if all(g[v][nv] for v, nv in zip(path, path[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ea31f37141bfa7d31525e6ecb85ea0031e0c6fa7 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.ILO/Sans_16/pdf_to_json_test_Latn.ILO_Sans_16.py | 7498107868f61c7e89533ff42e20ed1ada2c1374 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.ILO/Sans_16/udhr_Latn.ILO_Sans_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d94f312791ea3d44722cbec54149613205bd4fb5 | 1a2bf34d7fc1d227ceebf05edf00287de74259c5 | /Django/Day08/Day08Django/Day08Django/wsgi.py | 0968ce766de35b9635af8d718732d6bee6fea12b | [] | no_license | lzn9423362/Django- | de69fee75160236e397b3bbc165281eadbe898f0 | 8c1656d20dcc4dfc29fb942b2db54ec07077e3ae | refs/heads/master | 2020-03-29T18:03:47.323734 | 2018-11-28T12:07:12 | 2018-11-28T12:07:12 | 150,192,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for Day08Django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"411121080@qq.com"
] | 411121080@qq.com |
133c880358e31259569b80e438475e23bc74d029 | 172e2da04fc84d2fe366e79539c6ab06d50a580f | /backend/chocolate_23135/settings.py | 804ba5930fcf2868173176c571c1fa7eafd441d5 | [] | no_license | crowdbotics-apps/chocolate-23135 | ff3c3a0e0e9ae0eefb7811868cb9e1281af2981b | 64060aef4a3a3bd1fb61c2fc457fdbd46b072ca6 | refs/heads/master | 2023-03-05T07:34:50.965348 | 2021-02-18T16:13:56 | 2021-02-18T16:13:56 | 317,985,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,018 | py | """
Django settings for chocolate_23135 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2786bd4521b775c949294da93fc52e7ff191eced | 7ce2b2000cfefe8fbefc2271ebc7df2061c88194 | /CAIL2020/sfzyzb/main.py | 81c4fd79e0ccba4eebf1f25f8dfbbd916da8e606 | [
"Apache-2.0"
] | permissive | generalzgd/CAIL | f06d79acf42ac2188938c02087f7d07b9b43095c | 57529e64ee2f602324a500ff9bed660ddcde10bb | refs/heads/master | 2023-01-24T01:14:05.382525 | 2020-11-20T03:40:47 | 2020-11-20T03:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | """Test model for SMP-CAIL2020-Argmine.
Author: Yixu GAO yxgao19@fudan.edu.cn
Usage:
python main.py --model_config 'config/bert_config.json' \
--in_file 'data/SMP-CAIL2020-test1.csv' \
--out_file 'bert-submission-test-1.csv'
python main.py --model_config 'config/rnn_confi... | [
"bangtech@sina.com"
] | bangtech@sina.com |
4f14f1f037cb2454bf6a63efb237c3c8c970e2ab | 26c4426d2c9cd10fd7d4a73609512e69e31b64ba | /html2ex/h2e_openpyxl.py | 9dae85c7684b7fa2b0f2370c7e75e7a9298de7c7 | [] | no_license | KirillUdod/html2exc | 550761213eb6edd7d3ea4787938cce65584606c3 | 60569f01822a15b2e5b6884a42774cd428953700 | refs/heads/master | 2021-01-15T17:07:05.906492 | 2016-01-06T11:51:38 | 2016-01-06T11:51:38 | 34,809,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,578 | py | from openpyxl.cell import get_column_letter
from openpyxl.styles import Alignment, Font, Border, Side, PatternFill
from openpyxl.workbook import Workbook
from openpyxl import load_workbook, drawing
from lxml.html import document_fromstring, HTMLParser
# Value must be one of set(['hair', 'medium', 'dashDot', 'dotted', ... | [
"kirilludod@gmail.com"
] | kirilludod@gmail.com |
86ed9f46f1c2d2d11c6802437d45c5809fb30eeb | 56befbe23e56995f9772010f47dcbf38c8c150bc | /0x04-python-more_data_structures/3-common_elements.py | eea467f21330bd685f084a863c29e797149a3f26 | [] | no_license | lemejiamo/holbertonschool-higher_level_programming | a48175156816a856dba0ddc6888b76f6e04b7223 | 3f756ed3a907044bfc811f108d5ae98bb0e9802c | refs/heads/main | 2023-08-14T13:22:13.481356 | 2021-09-28T04:09:50 | 2021-09-28T04:09:50 | 361,910,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/python3
def common_elements(set_1, set_2):
equals = []
for i in set_1:
for j in set_2:
if j == i:
equals.append(j)
return equals
| [
"luismejia69@gmail.com"
] | luismejia69@gmail.com |
d3f4ba1961c78164f76c03bb013ed36231123fa8 | be471cdee10e2273ce41631c4a58f16227f18b5b | /server/walt/server/threads/blocking/images/publish.py | c0d87e832bd7edbf59ba092d26d354f78180beb8 | [
"BSD-3-Clause"
] | permissive | dia38/walt-python-packages | d91d477c90dbc4bd134fdcc31d7cb404ef9885b8 | e6fa1f166f45e73173195d57840d22bef87b88f5 | refs/heads/master | 2020-04-29T17:41:19.936575 | 2019-11-26T10:11:58 | 2019-11-26T10:11:58 | 176,303,546 | 0 | 0 | BSD-3-Clause | 2019-03-18T14:27:56 | 2019-03-18T14:27:56 | null | UTF-8 | Python | false | false | 516 | py | from walt.server.threads.blocking.images.metadata import \
update_user_metadata_for_image
# this implements walt image publish
def publish(requester, server, dh_peer, auth_conf, image_fullname):
# push image
server.docker.hub.push(image_fullname, dh_peer, auth_conf, requester)
# upd... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
484e6d6524860d2e105423312211ef8bece01452 | e13542cc246837c0f91f87506fc75a2d946f115c | /aula1/beta/bin/wheel | 0dc4c3b65acc995f2e7f7bec7b3abab2907ee749 | [] | no_license | Gamboua/python-520 | a042d265cd1d1b9d6c0839d1d4dbdde3e7d401a6 | 52aa4f7c9688be88855e81c473e10cd88788dd64 | refs/heads/master | 2021-09-18T10:23:21.900421 | 2018-07-12T21:44:40 | 2018-07-12T21:44:40 | 109,701,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/var/www/html/python/beta/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gabriel.bonfim@4linux.com.br"
] | gabriel.bonfim@4linux.com.br | |
f501eef3959ee7b7694575e29d87512d48a2abc3 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/zd/CB_ZD_Get_Mgmt_IPV6_ACLs.py | eab30af67937b2aaea57f45e04f394791f085722 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Copyright (C) 2011 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""
Description:
@author: Cherry Cheng
@contact: cherry.cheng@ruckuswireless.com
@since: Oct 2011
Prerequisite (Assumptions about th... | [
"tan@xx.com"
] | tan@xx.com |
df48824f457902ed3e11b5e29e8b28c3cabb0ba9 | 2067c90b12a5b10fbb97bb2fe52a30f79d502b7b | /booking/migrations/0006_auto_20200216_1826.py | 3c6f8b2d33482cc143f75329a8b5d7acec770d3f | [] | no_license | info3g/payapal_integration | bc632841abd0284a6757f31cf13d9ee1946bba33 | a8e745df3497f553d437988c799cd9882602d3b8 | refs/heads/master | 2022-12-10T01:15:46.167005 | 2020-03-03T16:36:48 | 2020-03-03T16:36:48 | 243,932,807 | 0 | 1 | null | 2022-12-08T03:43:42 | 2020-02-29T08:34:31 | Python | UTF-8 | Python | false | false | 528 | py | # Generated by Django 3.0.3 on 2020-02-16 17:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booking', '0005_customer_price'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='address',
... | [
"infothreeg@gmail.com"
] | infothreeg@gmail.com |
d3fc4e749b5623648d7755c22b43adbca799339d | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/keras/datasets/cifar10.py | 863c9df822d0ee351f438d2d076f8030cbbc3a5f | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:63d66a0e745552af02799b65d4289ea59046aeae4e0e92fffe1446ff879f32e4
size 3548
| [
"business030301@gmail.com"
] | business030301@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.