blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
029d697a574c9fdfbf4ccb42fbb86a781efbe764 | 4d2957df4a1ea37cd63435ed1c806cf2881a0249 | /search/utils.py | 5815723d060dcf523036a25cf20699062246f1bb | [] | no_license | reginax/bampfa_project | 1afbd8886ebe2feb9d938a5fbe37b7ee21cfbebe | 8ef363857829083317125426db6a230ff40d4041 | refs/heads/master | 2021-01-15T08:53:49.171680 | 2015-07-30T21:11:53 | 2015-07-30T21:11:53 | 38,779,057 | 0 | 0 | null | 2015-07-08T20:45:48 | 2015-07-08T20:45:46 | Python | UTF-8 | Python | false | false | 25,515 | py | # -*- coding: UTF-8 -*-
import re
import time, datetime
import csv
import solr
import cgi
import logging
from os import path
from copy import deepcopy
from django.http import HttpResponse, HttpResponseRedirect
# from cspace_django_site.main import cspace_django_site
# global variables
from appconfig import MAXMARKE... | [
"jblowe@berkeley.edu"
] | jblowe@berkeley.edu |
a9f1bbdce14ef6f3f4c83e4feeb3a0c113db891b | cfb4e971a702db4d010f66c58e2fb1011bb9b08c | /tutorial/03_load_display_save.py | 7175ce9e7bff928d6474996931fa1382ab3e58e1 | [] | no_license | Bugnon/tm-2018 | 7f2cc8cbc175cedf983c4f81fe8cee1be032ab29 | b54a155b706ab8b3ea7625326d2f4f3208b1dd64 | refs/heads/master | 2021-10-09T00:32:38.689530 | 2018-12-19T09:49:32 | 2018-12-19T09:49:32 | 116,138,161 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | ## Import the OpenCV library
import cv2
## Path to the image
path = "../images/trex.png"
## Read the image into memory
image = cv2.imread(path)
## Print some image parameters to the console
print("width: ", image.shape[1])
print("height: ", image.shape[0])
print("channels: ", image.shape[2])
## Display the image o... | [
"raphael.holzer@citycable.ch"
] | raphael.holzer@citycable.ch |
42060271071d5b40c5491b28ceb6a789dc8c0fe8 | f02e654d5590a861804e3220ed76ba2192e1699b | /deprecated/auval/vehicle.py | d0bbf501d71aed4465cc49480ff5517db758eec1 | [
"BSD-3-Clause"
] | permissive | AmarNathH/software | 73e2afd3affaf2c1595b406480edac8b8fb2fcac | e225810c7501250f48add43349a64f49450cc79f | refs/heads/master | 2020-12-02T20:50:18.439874 | 2017-07-03T16:51:07 | 2017-07-03T16:51:07 | 96,219,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,711 | py | # encoding: utf-8
"""
vehicle.py
Created by Nick Elser on 2006-09-17. Powered by "The Tears of Small Children" (tm) (c) (r)
"""
import math
from heading import Heading, HeadingDelta
from shm import *
shared_vars = {
#Sensors
"heading": kalman.heading,
"heading_integrate": kalman.heading,... | [
"software@cuauv.org"
] | software@cuauv.org |
eee9a66980701f24606a74a4469f091c93d39da8 | 455997dfce160f05e5862fbaee74bf699d1e9139 | /bigflow_python/python/bigflow/transform_impls/take.py | bf7eb46df7ba5011fe33b18f0aaabd60e2a388a3 | [
"Apache-2.0"
] | permissive | xiaomj/bigflow | bf7f21ddfe844891f4037a931e8761be939be9eb | fae5bc3c812cec605847b8e24bae1d03ad1fa777 | refs/heads/master | 2021-08-30T19:29:31.964868 | 2017-12-18T11:19:21 | 2017-12-19T06:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
#
# Copyright (c) 2015 Baidu, Inc. 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 o... | [
"zhangyuncong@baidu.com"
] | zhangyuncong@baidu.com |
40353b6999e66145e39202dbe855b65bc40d6eb3 | dc98a70c53686c0460c4eedb1aad5fb0c2555239 | /MStore/migrations/0003_productmodel_brand.py | a3962d4e4d985154531dcb41e21037147b67cb85 | [] | no_license | NahidAkhtar84/EMart | b7c6cdcfc48e4a1f982469bbdd3250a4172fcd2e | 49c83b042afc5c4a7357df4683faa30356060a30 | refs/heads/master | 2023-03-12T16:25:31.173626 | 2021-03-03T01:52:09 | 2021-03-03T01:52:09 | 335,021,664 | 0 | 0 | null | 2021-02-02T09:42:43 | 2021-02-01T17:01:30 | Python | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.1.5 on 2021-01-31 11:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MStore', '0002_auto_20210131_1658'),
]
operations = [
migrations.AddField(
model_name='productmodel',
name='brand',
... | [
"nahid.ibne.akhtar@gmail.com"
] | nahid.ibne.akhtar@gmail.com |
bd6dbc30f713ed3f342b92c41bafab017d200155 | 03be7a49a209ec1f7b1447573d026bd87c8469af | /tests/core/util/test_cached_bls.py | 8b425b97b93a87610707423e7d68120c9aefda21 | [
"Apache-2.0"
] | permissive | 13thProgression/lotus-blockchain | 96b06563c126a36c701257314abca015d2bc9879 | ea6d1973cac256bc0dae790a23aac3fe6925dd4e | refs/heads/main | 2023-08-06T13:54:31.260289 | 2021-09-10T19:18:44 | 2021-09-10T19:18:44 | 405,157,571 | 0 | 0 | Apache-2.0 | 2021-09-10T19:18:45 | 2021-09-10T17:13:30 | null | UTF-8 | Python | false | false | 1,769 | py | import unittest
from blspy import AugSchemeMPL
from lotus.util import cached_bls
from lotus.util.lru_cache import LRUCache
class TestCachedBLS(unittest.TestCase):
def test_cached_bls(self):
n_keys = 10
seed = b"a" * 31
sks = [AugSchemeMPL.key_gen(seed + bytes([i])) for i in range(n_keys)]
... | [
"gowke@hotmail.com"
] | gowke@hotmail.com |
e4a955321f645c89c26893b16bf219293ae2e3e0 | b86c2951454ae166e976f6c4b649ffb44a3cc5fd | /oracle/oracle_base数据库基础管理_用户与权限管理课件/05.py | a169ad1b04aca03789f78617631ae1393a0d702a | [
"MIT"
] | permissive | 1515806183/shixunyun | b6d40d0e6a920c36d745238b72035b3cc5118d32 | 816fe651220887943081564d4e32afd4ac2e4533 | refs/heads/master | 2020-05-25T02:26:50.245100 | 2019-10-14T06:18:43 | 2019-10-14T06:18:43 | 187,578,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
try:
import commands, os, re
test_name = '用户与角色管理课件题目五'
test_vlu = '查询关键信息'
save_address = "/tmp/score.txt"
name = "/examdata/result/granted_sysdba_user"
def run():
try:
f = open(save_address, 'w')
# 1
if os... | [
"test@runoob.com"
] | test@runoob.com |
ed552ffca071ef6c046a3b95a8d103fd84354ef7 | f2bea9cf7282304c56066078b6a804f19d96a350 | /samtools/sort/wrapper.py | 26fa6baa1d1a05607c5d7e2cb8a49b1a3973fca4 | [] | no_license | dohlee/snakemake-wrappers | e2415a67f16d016b08391bb062c07b6f0d82b52b | ca24cdce499458cfb5874325ed477ae78d258e1d | refs/heads/master | 2023-02-22T10:01:33.834358 | 2023-02-08T06:12:59 | 2023-02-08T06:12:59 | 138,970,887 | 18 | 4 | null | 2018-09-03T14:34:19 | 2018-06-28T05:35:39 | Python | UTF-8 | Python | false | false | 636 | py | __author__ = "Dohoon Lee"
__copyright__ = "Copyright 2018, Dohoon Lee"
__email__ = "dohlee.bioinfo@gmail.com"
__license__ = "MIT"
from os import path
from snakemake.shell import shell
# Extract log.
log = snakemake.log_fmt_shell(stdout=False, stderr=True)
# Extract parameters.
extra = snakemake.params.get('extra',... | [
"apap950419@gmail.com"
] | apap950419@gmail.com |
5ad4d50979d24f90467a9cc5b506d48607ec164d | e7c91b61f060816e15d38a683715f59d8736b9f7 | /tempest/lib/services/identity/v3/project_tags_client.py | dd1a2a50ba8eac6101e75b959e23ad8bd6c78cd4 | [
"Apache-2.0"
] | permissive | auria/tempest | d0ce0ba9605f553a45c5c5d3485516f708c153b6 | 31609dc1da5e4c6e47c5c2cf642565cc2d9e7097 | refs/heads/master | 2020-06-21T10:39:51.590135 | 2019-07-05T09:23:37 | 2019-07-16T04:37:16 | 197,424,141 | 0 | 0 | Apache-2.0 | 2019-07-18T13:31:02 | 2019-07-17T16:17:38 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2018 AT&T Corporation.
# 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 require... | [
"felipe.monteiro@att.com"
] | felipe.monteiro@att.com |
7b1457e8b8eacd43c0388be739637c8be7021712 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/classvs_20200630153949.py | 40f58bc6aa0b81228f7cc2de009f7d04647fdac4 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | class Person:
age = 0
# this is a constructor
def __init__(self,initialAge):
if initialAge > 0:
self.age = initialAge
self.age = 0
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
8a2ff0f603c0fb131338fe55645aad2dab21d40a | 7d3cf6650ab36a0a6acf156c1b3d2205db3df343 | /Libraries/cgNexusFlat.py | fd3bb4c39b60b4eb16cadfa41cab097cc5d69063 | [] | no_license | combiochem/ResearchScripts | 13c08051ede1f74341d0b707beaf4f46c1f39a31 | 38f81eee8d478179a53f5228fd1f0d3963e1c103 | refs/heads/master | 2020-04-07T23:59:41.677446 | 2011-04-29T22:06:52 | 2011-04-29T22:06:52 | 1,682,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,793 | py | import cgLuckyCharmsFlat as cgLuckyCharms
from copy import copy
import bioLibCG
import cgIndex
def lineUpdate(lineData, data, position):
'''lineList must NOT contain CR. data must be string'''
numSlots = len(lineData)
#put data in right position
if position < numSlots:
lineData[position] = data
else:
#upda... | [
"chrisgreer88@gmail.com"
] | chrisgreer88@gmail.com |
491a356daf2b4e35b0e2710536729d9e0f0a4536 | 1a75db8fb8ebff8c2253cff66a5e2416c21b0d6f | /tweets/admin.py | 9e2bb65aa778fe09c5c229241df8e2de9d730b0f | [] | no_license | Rabbi50/Tweeter-Clone | daf033b7a614fb549edd6b4704ce582233d2d380 | b6d3718d5819cc8990ca8e7a9cab771d68af8e96 | refs/heads/master | 2022-12-19T13:46:54.043062 | 2020-09-25T16:44:20 | 2020-09-25T16:44:20 | 290,155,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.contrib import admin
from .models import Tweet,TweetLike
# Register your models here.
class TweetLikeAdmin(admin.TabularInline):
model=TweetLike
class TweetAdmin(admin.ModelAdmin):
inlines=[TweetLikeAdmin]
list_display=['__str__','user']
search_fields=['content','user__username','user__ema... | [
"jasrabbi50@gmail.com"
] | jasrabbi50@gmail.com |
3c6567ffbe6bbac01a707b4091f06404a2a2947d | 2be2b1daea464c6b48706c6b2696a94af1b2439b | /lesson4/4.py | da963e53be4ba071ce5aa23a29f72c90dc04a114 | [] | no_license | kirigaikabuto/pythonlessons1400 | 584fbef15802accd10b21cd33fbd8aa7900e19f3 | af1df1f4b238e9e4476c75cb25a03f92957bc156 | refs/heads/main | 2023-07-12T19:06:08.117125 | 2021-08-14T08:09:11 | 2021-08-14T08:09:11 | 386,884,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | for i in range(0, 10, 1):
print(i)
# range(start,end,step)
# start - с какого числа начать цикл
# end -> до какого числа продолжать цикл
# step-> шаг
| [
"tleugazy98@gmail.com"
] | tleugazy98@gmail.com |
e2613f7e97d22e917890dda8d651fafaaf2d1212 | 4994bcf31988031daeb9a482f618330aff2869b9 | /src/txkube/test/__init__.py | ce8f5d59427acb1670eda462bb92fcc8b1499189 | [
"MIT"
] | permissive | LeastAuthority/txkube | 3e0a38530672acc22318110395a590b14c472216 | a7e555d00535ff787d4b1204c264780da40cf736 | refs/heads/master | 2021-01-11T20:34:32.556327 | 2018-12-18T15:04:58 | 2018-12-18T15:04:58 | 79,145,542 | 14 | 7 | MIT | 2018-12-18T15:05:00 | 2017-01-16T18:15:16 | Python | UTF-8 | Python | false | false | 68 | py | # Copyright Least Authority Enterprises.
# See LICENSE for details.
| [
"exarkun@twistedmatrix.com"
] | exarkun@twistedmatrix.com |
e3fbed4da9b29a056a3cd354a905d66ff9d0f3f6 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/pip/utils/build.py | 0cb32705bb8c8cc39a5ba0763c601b908d54323f | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 1,354 | py | from __future__ import absolute_import
import os.path
import tempfile
from pip.utils import rmtree
class BuildDirectory(object):
def __init__(self, name=None, delete=None):
# If we were not given an explicit directory, and we were not given an
# explicit delete option, then we'll de... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
f460a3ae761ce3bfe7e47740827b7242616cdea1 | 6673bd9425e7670d9d9949cea6845f5fdecfda3d | /ckan_cloud_operator/deis_ckan/namespace.py | 3f7ef59636fa091755968ab028fda7331263ca18 | [
"MIT"
] | permissive | datopian/ckan-cloud-operator | 19b9feae7ac607f37de24c00a65aac841df9eb80 | 30715b32a00bace400df8d6dce763b9469800f83 | refs/heads/master | 2022-12-24T14:07:33.778058 | 2022-03-19T20:23:01 | 2022-03-19T20:23:01 | 163,747,850 | 16 | 8 | MIT | 2022-12-08T03:29:59 | 2019-01-01T15:46:50 | Python | UTF-8 | Python | false | false | 2,350 | py | import subprocess
import yaml
from ckan_cloud_operator import kubectl
class DeisCkanInstanceNamespace(object):
def __init__(self, instance):
self.instance = instance
def update(self):
self.instance.annotations.update_status('namespace', 'created',
... | [
"ori@uumpa.com"
] | ori@uumpa.com |
b853e4fbcc84b0d15ce819aea5bda83d02542bac | 684ce99afc7c17e9c94bd0ed6dae1dd0fba245ad | /migration/test/test_create.py | 0342a3e677ee4f8e42ff04f18e0e1e9686612671 | [
"BSD-3-Clause",
"MIT"
] | permissive | prg127/Submitty | d53f7d71bfa63c8f8f131bc820d0ed583439bd97 | 1e66969d3e520cc93ee7edee5fd4740fb3247ba5 | refs/heads/master | 2020-05-06T15:46:17.841623 | 2019-04-08T04:39:04 | 2019-04-08T04:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,729 | py | """Test the create command."""
from argparse import Namespace
from io import StringIO
from pathlib import Path
import shutil
import sys
import tempfile
import unittest
import migrator
class TestCreate(unittest.TestCase):
"""Test the migrator."""
def setUp(self):
"""Set up the temp directory to use ... | [
"bmcutler@users.noreply.github.com"
] | bmcutler@users.noreply.github.com |
406b813fb17ceee92535857f84d473fd688c1528 | 0effd6f590f0d6d17f080e4c41660df13ffa64a7 | /commands/cat_plugins.py | de43056ea76acca8a74d8289d68d0b8b349d1457 | [] | no_license | vinodpanicker/sublime-elasticsearch-client | a6b2b5992979fa30d1b01cc98d962c657851ae1d | 62b8894f2dbbc776569bc4c6ab0586f7c89dd8c7 | refs/heads/master | 2021-01-13T06:21:02.945999 | 2015-09-14T04:01:33 | 2015-09-14T04:01:33 | 48,857,093 | 1 | 0 | null | 2015-12-31T17:30:18 | 2015-12-31T17:30:18 | null | UTF-8 | Python | false | false | 265 | py | from .base import CatBaseCommand
class CatPluginsCommand(CatBaseCommand):
command_name = "elasticsearch:cat-plugins"
def run_request(self):
options = dict(
params=dict(v=1)
)
return self.client.cat.plugins(**options)
| [
"kido@knowledge-works.co.jp"
] | kido@knowledge-works.co.jp |
96bbef0e20b2626993c296d2eb049d288559d1d4 | e837db39c9609830ab8e77dac2077ea30cadc5b3 | /flachdaecher_app/migrations/0011_auto_20191020_1822.py | 1e67a94887102addbfb9b5d9ff38ba87fdd5fefb | [] | no_license | windundschnee/accountneu | 9c8ff1507f725a5179604be2640d76b5302a0299 | da9066840a312a95bc628556c94738010787a01f | refs/heads/master | 2022-12-10T06:00:42.449898 | 2019-10-25T18:29:23 | 2019-10-25T18:29:23 | 211,513,631 | 0 | 0 | null | 2022-12-08T05:22:15 | 2019-09-28T14:34:00 | Python | UTF-8 | Python | false | false | 626 | py | # Generated by Django 2.2.4 on 2019-10-20 16:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flachdaecher_app', '0010_auto_20191020_1812'),
]
operations = [
migrations.AddField(
model_name='flachdachmodel',
na... | [
"du@example.com"
] | du@example.com |
6ef792a4ef2cd360192727a35e6de06a3b2e03c5 | 2008ff2a5e0a7790c4578d2c8ce402e0bb24bfda | /sandbox/sbxapp/tests.py | 4f2ab1de37395c3eca0d33755afaf6ba714040ac | [] | no_license | ganqzz/django_demo | 788a44a212cbf9e82b2ca84ba86147a90943756a | c880fc784e7bca4a78709ad76772c924b97dc393 | refs/heads/master | 2023-07-09T07:53:56.549362 | 2021-08-13T11:46:39 | 2021-08-13T11:46:39 | 356,131,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import hashlib
import time
from django.core.exceptions import ValidationError
from django.test import SimpleTestCase, TestCase, LiveServerTestCase
from django.test import tag
from django.urls.base import reverse
from selenium.webdriver.firefox.webdriver import WebDriver
from .forms import HashForm
from .models import... | [
"ganqzz@users.noreply.github.com"
] | ganqzz@users.noreply.github.com |
41d790156b594a8306d5cac1be24c2f2375d8d90 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Desert/ShineGetter.py | 10446fae8014850d04cae37c712fd1b96e208782 | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 349 | py | # Чтобы быстро собрать много золота, просто собирай золотые монеты.
while True:
coins = self.findItems()
coinIndex = 0
while coinIndex < len(coins):
coin = coins[coinIndex]
if coin.value == 3:
self.moveXY(coin.pos.x, coin.pos.y)
coinIndex += 1
| [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
e2ca0499037324cb6a120185861aa041d4590613 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/1171_Remove_Zero_Sum_Consecutive_Nodes_from_Linked_List.py | b90d012d659feaa71d860601111261a8bf246b2e | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """
Given the head of a linked list,
we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences.
After doing so, return the head of the final linked list. You may return any such answer.
(Note that in the examples below, all sequences are serializations of ListNode objects.... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
cbc34b1f9c49c9d43c84430dbdc32f0a5d47eec7 | 1e1aca2fb4e5114337bcc7b5aa27a22585bab191 | /rewardifycli/__internal/tests.py | 2a71a9cf658e7f5aa12fa3618f75e6e3f2a6ec41 | [
"BSD-3-Clause"
] | permissive | the16thpythonist/rewardifycli | 1ab134ef141785b31e4cf57d8dc519f125a2305f | 1774b989cb2dd5d496a2a33d93e357f08052b101 | refs/heads/master | 2023-01-09T21:40:12.624704 | 2019-06-16T17:22:27 | 2019-06-16T17:22:27 | 191,887,375 | 0 | 0 | NOASSERTION | 2022-12-26T20:47:40 | 2019-06-14T06:23:36 | Python | UTF-8 | Python | false | false | 4,733 | py | # standard library
import unittest
from typing import Dict, List
# third party
from click.testing import CliRunner
from rewardify.models import User
from rewardify._util_test import DBTestMixin, ConfigTestMixin
from rewardifycli.util import UserCredentials
# ################
# BEHAVIOUR MIXINS
# ################... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
47be17883a3189acef470cf3851fe46e86c471da | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_virtual_appliance_sites_operations.py | 1ba8245ccfb3716ff92a66c4d4217d6a3542f9ba | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 22,638 | 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"
] | scbedd.noreply@github.com |
1bf477e14c2b7a6cc74db1653a61282ed7e432bd | 0ff2c69eaafea3bf25a227127f9c1b99638c5804 | /scripts/parse_mgm.py | b69908b7efee250d99ec54af526393aae4bb708c | [
"MIT"
] | permissive | stuppie/create_compil | 758d311bda8fb151763307d20e11a2587343080f | 4d3c0854fe6436ea5c8b51032bd7c46685a731ce | refs/heads/master | 2020-06-10T20:27:58.455278 | 2017-02-26T20:04:32 | 2017-02-26T20:04:32 | 75,883,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python3
"""
parse_mgm.py root_dir
root_dir: folder containing the files listed below
prints fasta to stdout
184sample.uniq_gene.NR.anno.merge.gz
29_GL0004906 1/1 Clostridiales order root|cellular organisms|Bacteria|Firmicutes|Clostridia|Clostridiales no rank|no rank|superkingdom|phylum|c... | [
"gstupp@scripps.edu"
] | gstupp@scripps.edu |
36d70f3ddf388e19bdd2089d0c01e29910518675 | 087ebfcb987851af9d5780d8c5c424b0669a7a9b | /training/math/codes/tri_sss.py | 7935e4c39cc27a22dc85b6a77462d3397ab6dcef | [] | no_license | arjunjc93/school | 5ed56e083483abc2cda5b55b83f8e7251367b1dc | 3bbcbc3269e2bbe828553c7ebaa86d4ed4fb630b | refs/heads/master | 2023-02-21T05:15:48.159419 | 2021-01-23T03:01:00 | 2021-01-23T03:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | #Code by GVV Sharma
#December 7, 2019
#released under GNU GPL
#Drawing a triangle given 3 sides
import numpy as np
import matplotlib.pyplot as plt
#local imports
from line.funcs import *
from triangle.funcs import *
from conics.funcs import circ_gen
#if using termux
import subprocess
import shlex
#en... | [
"gadepall@gmail.com"
] | gadepall@gmail.com |
8a57b34e9a025d9df132b35bf942aad7890e5238 | edbf8601ae771031ad8ab27b19c2bf450ca7df76 | /42-Trapping-Rain-Water/TrappingRainWater.py | d41dd69e9072487a3a24c6f44d86e35ba9fdad23 | [] | no_license | gxwangdi/Leetcode | ec619fba272a29ebf8b8c7f0038aefd747ccf44a | 29c4c703d18c6ff2e16b9f912210399be427c1e8 | refs/heads/master | 2022-07-02T22:08:32.556252 | 2022-06-21T16:58:28 | 2022-06-21T16:58:28 | 54,813,467 | 3 | 2 | null | 2022-06-21T16:58:29 | 2016-03-27T05:02:36 | Java | UTF-8 | Python | false | false | 750 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
total = 0
if not height or len(height)<3:
return total
length = len(height)
left = [0]*length
right = [0]*length
m = height[0]
... | [
"gxwangdi@gmail.com"
] | gxwangdi@gmail.com |
dd4979009ceef9a067d62e7952b4cd4d53958306 | b3194c381b08d9c9d74631b243d711067fd89036 | /Jira/app/main/views.py | 50b90cf2f6ebf52c1f8d6eb911efe15efb4a9336 | [] | no_license | kulyashknr/Advanced-Django-2019 | 9a2084a2dfdf4470f35b034d05614d76263e1f58 | 15e7275514f8f300c8701f2d32880b705bebd5a6 | refs/heads/master | 2020-07-17T17:49:21.411993 | 2019-12-04T09:51:49 | 2019-12-04T09:51:49 | 206,065,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,080 | py | from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView, ListAPIView, UpdateAPIView
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import viewsets, status
from ... | [
"konyrova@gmail.com"
] | konyrova@gmail.com |
83cf46da8f261b59d3c7b124c75ff14c3ea5196f | 027dd49b92ee92c8faa5ea05bce95d28efd2268d | /Documents/django/CrudRestAPI/crudapp/views.py | 89e4bd4cfa19a4f62701071b9dd92c7e51a0df1f | [] | no_license | arunkumar27-ank-tech/RestAPIcrud | 0ac06a4f0b6cf3373eb76b815e3cd6c5748610d5 | 387c5fad78f4b72cfbbe47d06e79c1a15038ad69 | refs/heads/master | 2023-06-13T21:44:08.157685 | 2021-07-06T14:11:12 | 2021-07-06T14:11:12 | 383,477,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.shortcuts import render
from rest_framework import serializers
from crudapp.models import Todo
from crudapp.serializers import Todoserializer
from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.decorators import api_view
@api_view(['GET'])
def read(request)... | [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
d7313df9888223858bc36756dd311a0bd5f27815 | e4d3a552faf97bd8917991dc4411ba96693c578e | /integer_30/integer_9.py | 3c51839c6fcbb62c9225be2776c2ff1e935aa8d7 | [] | no_license | RuzimovJavlonbek/qudrat-abduraximovning-kitobidagi-masalalarni-pythonda-ishlanishi | 0a94ca4bde1f7532227ce340d9e9e3281030f20c | 0bf288858c44ca19fd26df26ef51ad2256939610 | refs/heads/main | 2023-06-29T12:47:44.385856 | 2021-08-02T14:03:31 | 2021-08-02T14:03:31 | 390,464,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #Bu dastur Qudrat Abduraximovning C++ ga asoslangan kitobidagi masalar asosida python dasturlash tilida yozildi
# O'rganuvchi bo'lajak dasturchi : J_Ruzimov
#Sana: 24.06.2021
# Maniz: Nukus
# Integer.
from math import *
print("Integer_9. \n ")
a = input(" A=")
#===========================================... | [
"ruzimov_javlonbek_1997@mail.ru"
] | ruzimov_javlonbek_1997@mail.ru |
ab38d141177307669a912412ac2a3a8794a974e5 | 26efd8bd49d1e5dc47177a550c897b5e2b99072b | /chap01_python101/readfile_multiplelinerecords.py | 4e05c3f36490f281c51a945293bb1a8a819dc0cd | [] | no_license | Nathan-Walk/code_py_book_data_structures_and_algo | 3763b072522b2bf8ca07560c658d5369964a60b2 | 4d79f74daeab8f0ab8a1aedde37ea7c61535c715 | refs/heads/master | 2023-04-04T20:26:29.507518 | 2021-04-08T10:41:31 | 2021-04-08T10:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import turtle
FILENAME: str = "./src/turtle_commands_multiplelines.txt"
def main():
t = turtle.Turtle()
screen = t.getscreen()
with open(file=FILENAME, mode="r") as file:
command = file.readline().strip()
while command != "":
if command == "goto":
x, y = floa... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
b87fcc90843ec2cde00df0c2ce7742acf6817987 | 5f92dd6164c41e5756842da0a053b207005be252 | /tests/system/providers/amazon/aws/example_rds_instance.py | b31be7c00720244b949a190bc10657566d0fdce6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | mans2singh/airflow | 24d17446457ebfbf17850d336722f79e46b06404 | de9633f93a366ebc0a46d1ec4df2c4aa9a18357d | refs/heads/main | 2023-03-20T17:56:18.506101 | 2022-10-22T19:41:57 | 2022-10-22T19:41:57 | 168,956,212 | 0 | 0 | Apache-2.0 | 2019-02-03T14:51:24 | 2019-02-03T14:51:23 | null | UTF-8 | Python | false | false | 4,090 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | mans2singh.noreply@github.com |
4f614544a5f8f115bc4d08e1d02599dba264becd | 6e086ba3d5a3e07815e2f684ba1f3caf9b16f55e | /chat/urls.py | cfddd367cdce5e294e7d84139a9728a2453d3018 | [] | no_license | sharif1302042/Social_network | d42123efa592291d2e3574cf4c95aadca66fac46 | 9a3a9800fc978f042bc7cf93ba0aa8ce01b2f5a9 | refs/heads/master | 2022-11-15T17:27:35.555909 | 2019-10-21T18:40:10 | 2019-10-21T18:40:10 | 215,288,683 | 0 | 0 | null | 2022-11-04T19:37:39 | 2019-10-15T12:05:12 | HTML | UTF-8 | Python | false | false | 188 | py | from django.urls import path
from chat import views
urlpatterns = [
#path('<room_name>/', views.ChatView.as_view(), name='chat'),
path('<room_name>/', views.room, name='chat'),
]
| [
"sharifulcsehstu@gmail.com"
] | sharifulcsehstu@gmail.com |
9955ead2c0a11adf4a268ea35f7b3f81ffea7f27 | 1ef56dcfef70ee14df8956eedd171f74406594af | /erp/entity/sys_res.py | 379cbcb9d28fe4e9a254898a77085c63f6b250a7 | [] | no_license | journeyends/webtest | 6c54ff19e01cd0cd99a34bcae55dd5701abf132f | 2a24c6d7c52aa627edfbba3dd5eb9ccc16abe9fb | refs/heads/master | 2020-04-17T07:38:52.873722 | 2019-03-21T09:36:50 | 2019-03-21T09:36:50 | 166,378,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from django.db import models
class SysRes(models.Model):
res_id = models.AutoField(primary_key=True, db_column="RESID")
res_name = models.CharField(max_length=128, db_column="RESNAME")
alias = models.CharField(max_length=128, db_column="ALIAS")
sn = models.IntegerField(db_column="SN")
icon = model... | [
"songliyang@goldmantis.com"
] | songliyang@goldmantis.com |
c78e645ee1b9507a1d6796714a9bab353a09685f | 3ecb2f6ab32277105e902aefbaefff6a5b15816a | /Bio/_py3k/__init__.py | 234820f2f13719a4ae81b8c4578c7c1d3add1cf6 | [
"LicenseRef-scancode-biopython"
] | permissive | pvanheus/biopython | 02968452f23fe32be3df57f9c371d0976d690c82 | f94450deea352f2decdc452d5a28bf773ac07fc4 | refs/heads/master | 2021-01-22T16:10:45.080737 | 2014-04-30T17:40:19 | 2014-04-30T17:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | # Copyright 2010-2013 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Python 3 compatibility tools (PRIVATE).
We currently have lines like this under Python 2 ... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
88310aadf08b7859ab4cf6bbf5f37e95467edd58 | c7c52dd66d04f778b3f92ed27efc608b65054b03 | /tests/test_minmonthpymt.py | 8af1e485e9aa3a89da76e850b2a0c0803bea6281 | [] | no_license | Angelica137/paying-off-debt | 04c55e5cb49b70effd2a6229f0c04e6ee236a9b6 | 2c20f1f88d0e172b6114c477866b8bd44a0f8e3e | refs/heads/master | 2022-11-05T14:40:26.552599 | 2020-06-25T17:30:30 | 2020-06-25T17:30:30 | 273,591,530 | 0 | 0 | null | 2020-06-25T17:30:32 | 2020-06-19T21:40:38 | Python | UTF-8 | Python | false | false | 181 | py | from scripts.minmonthpymt import MinMonthPymt
def test_calculate_min_monthly_payment():
minMoPmt = MinMonthPymt(0.04, 42)
assert minMoPmt.calcMinMonPymt(0.04, 42) == 1.68
| [
"Angelica137@users.noreply.github.com"
] | Angelica137@users.noreply.github.com |
7d156f192ca55912a3bed2300ad66df139784bab | f76862c7dfcc08a495927eae3f4a995e416b948c | /amulet_map_editor/programs/edit/api/behaviour/__init__.py | 62f92725d9d18cb096530100f43f79f94096feca | [] | permissive | Ex-Ark/Amulet-Map-Editor | 0bc1e6ac07349736114ea80e6c3ee2233863366e | 24704b91749727e8bce25aecf41d39f4b0eba433 | refs/heads/master | 2023-03-02T23:06:46.201874 | 2021-02-14T12:31:59 | 2021-02-14T12:31:59 | 221,939,739 | 0 | 0 | MIT | 2019-11-15T14:26:14 | 2019-11-15T14:26:14 | null | UTF-8 | Python | false | false | 516 | py | # API layout
from .base_behaviour import BaseBehaviour
# camera behaviour
from .camera_behaviour import CameraBehaviour
# ray casting behaviour
from .raycast_behaviour import RaycastBehaviour
# pointer box behaviour
from .pointer_behaviour import PointerBehaviour
# static selection
from .static_selection_behaviour ... | [
"james_clare1@yahoo.co.uk"
] | james_clare1@yahoo.co.uk |
b0b979a27849dc2f0ea8c5933d1792be0d71dd43 | 54db985cefb911824a61f1778db615bf903a92a4 | /tools/process_mpii.py | 133ff524a91c8b711550317e48eb5dcfe06cba4b | [
"MIT"
] | permissive | dangchenyu/cabin_pose | 1f710bb3b20feedb7c29dc3528f8306fd3d199dc | abfad0884b6c3d3366da8db71c77ae13b48de2ef | refs/heads/master | 2023-05-01T21:48:59.232279 | 2019-12-26T09:07:50 | 2019-12-26T09:07:50 | 214,624,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import json
import os
import cv2
import numpy as np
def main():
with open("C:\\Users\\DELL\\Desktop\\#3960结果26-50.json") as anno_file:
anno = json.load(anno_file)
new_json = []
for a in anno:
try:
image_name = a['image_name']
img = cv2.imread(
"C:\\U... | [
"dcy0921@outlook.com"
] | dcy0921@outlook.com |
5456dd3b08915c5860675baa04dedfcce1ba7146 | dd12725adcf93e352cb5bd38b7e0616929436cd5 | /keras_resnet/models/_2d.py | afaf75f0884a6098dfe171f8bab06720541b9855 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | bzamecnik/keras-resnet | 49a2420acd920fa0395e8d26427e501ff98b6d4d | 120f2b283563ac82e3b419ae15602302c3e9b538 | refs/heads/master | 2021-01-19T19:57:00.545884 | 2017-08-23T18:52:58 | 2017-08-23T18:52:58 | 101,214,362 | 0 | 0 | null | 2017-08-23T18:50:40 | 2017-08-23T18:50:39 | null | UTF-8 | Python | false | false | 7,711 | py | # -*- coding: utf-8 -*-
"""
keras_resnet.models._2d
~~~~~~~~~~~~~~~~~~~~~~~
This module implements popular two-dimensional residual models.
"""
import keras.backend
import keras.layers
import keras.models
import keras.regularizers
import keras_resnet.blocks
class ResNet(keras.models.Model):
"""
A custo... | [
"allen.goodman@icloud.com"
] | allen.goodman@icloud.com |
c74c7feef49e473dec48171eaabd7ab040f9bd48 | a73fd25dd9a8e6df0b1bf3eee0bccf5297722bc7 | /test/train_urban_mapper.py | 43f2d163ded16013706cb64aa799d7d0f4707c13 | [] | no_license | bohaohuang/sis | 23d0260d85903b62518fb8fb588661597248ad0d | 28a59f3182f0ba58ba582449377c6588af1d4cde | refs/heads/master | 2021-05-05T17:00:33.808099 | 2019-09-06T17:46:02 | 2019-09-06T17:46:02 | 117,362,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,285 | py | import os
import time
import argparse
import numpy as np
import tensorflow as tf
import sis_utils
from network import unet
from dataReader import image_reader, patch_extractor
from rsrClassData import rsrClassData
TRAIN_DATA_DIR = 'dcc_urban_mapper_train'
VALID_DATA_DIR = 'dcc_urban_mapper_valid'
CITY_NAME = 'JAX,TAM'... | [
"bohao.huang@duke.edu"
] | bohao.huang@duke.edu |
b7ef61d0a4e622944530b339a8b30798582be22b | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-145_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467486/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_3/run_cfg.py | f3007b10b9b438e3ef8487c9d975790c7e270f62 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-145_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467486/HTT_24Jul_newTES_manzoni_U... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
8e756a88f047e9af08d45c11b7f613eb8b01d5ef | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k15_s001_EroM/pyr_Tcrop256_pad60_jit15/pyr_1s/L7/step10_a.py | 4d1ec5eaa1d4df91efc1d6fb2b46709cdb6270f9 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,147 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
9a0151fb798a77e939d4a5246114ee0c6520ed5f | 73744790709a75fa15bd3a9c141777b81acf6402 | /cloudify_rest_client/secrets_providers.py | 38e90ce555a0b7c05d8092c0cdce38c93f8f44bd | [
"Apache-2.0"
] | permissive | cloudify-cosmo/cloudify-common | aea8f9b9b1f5d85a23b6f8d3f61b8a445d2fc27e | 246550c150e33e3e8cf815e1ecff244d82293832 | refs/heads/master | 2023-08-24T12:44:40.277500 | 2023-08-17T08:54:31 | 2023-08-17T08:54:31 | 132,621,915 | 8 | 16 | Apache-2.0 | 2023-08-24T12:27:03 | 2018-05-08T14:35:12 | Python | UTF-8 | Python | false | false | 7,514 | py | from cloudify_rest_client import utils
from cloudify_rest_client.exceptions import CloudifyClientError
from cloudify_rest_client.responses import ListResponse
from cloudify_rest_client.constants import VisibilityState
class SecretsProvider(dict):
def __init__(self, secrets_provider):
super(SecretsProvider... | [
"noreply@github.com"
] | cloudify-cosmo.noreply@github.com |
cdaf6bd4fc62d50f7c7103286f9a6af047a77fe0 | 94f180b4b0b0a699d6948fd5e1216d16d6735edc | /source-code/Merge Two Sorted Lists 21.py | 7bc9f33405549b55d126862773a77e8f42e71945 | [
"MIT"
] | permissive | ttungl/Coding-Interview-Challenge | 7093b7f8da0c03abaf2f61340384cdc15c7a31e7 | d80c3e15468d50b42ee53fcc73e9326c6c816495 | refs/heads/master | 2021-09-15T05:25:27.192040 | 2018-05-26T19:02:33 | 2018-05-26T19:02:33 | 115,586,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | # 21. Merge Two Sorted Lists
# ttungl@gmail.com
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeTwoLists(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
... | [
"noreply@github.com"
] | ttungl.noreply@github.com |
fcf66269528e13c5fa31159c31f76603911dca18 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/apimanagement/backend.py | 99a59278bbd50c4ba9de879de3c18516522e68e1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,073 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
1122171b1141da612612c1233d7230854be54a57 | a0cbae33d175fdf0299eddc775a1b4b84c0addcf | /orquesta/tests/unit/conducting/test_workflow_conductor_data_flow.py | f073caa0a15c3edb6d2672b3bf00e7ef7bde7f5e | [
"Apache-2.0"
] | permissive | batk0/orquesta | 240ff95c76c610c52518ee7d2e3eee11b6594a73 | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | refs/heads/master | 2020-04-17T10:48:48.016607 | 2019-01-19T15:40:05 | 2019-01-19T15:40:05 | 166,514,957 | 0 | 0 | Apache-2.0 | 2019-01-19T06:37:39 | 2019-01-19T06:37:39 | null | UTF-8 | Python | false | false | 3,444 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
e6b7c1a40799bebf93bc4a840d1e0b5553e99389 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02790/s225904166.py | d4cf36780aae06dd18a71542b391e534afe9e220 | [] | 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 | 223 | py | def main():
a,b= list(map(int,input().split()))
a_str=""
b_str=""
for i in range(0,b):
a_str+=str(a)
for i in range(0,a):
b_str+=str(b)
if a_str<b_str:
print(a_str)
else:
print(b_str)
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2fa80d5fd7a687e6bd0d298e2485c2faaabf13af | a1aec5bcbbc0c25bf4137f02f2c2443e4d5e7a66 | /Deep_Learning/Deep_neural_networks/keras_introduction/xor_using_keras.py | fde45b2d6229149a566fe4012daf7ed7154ac686 | [
"MIT"
] | permissive | coolsgupta/machine_learning_nanodegree | 3c9957520835abac82d577721e3bf7d34e27817d | 7858e72694a5c5c0266b4e4b81b39a8664dcebd2 | refs/heads/master | 2021-01-09T06:51:29.696097 | 2018-03-14T21:57:46 | 2018-03-14T21:57:46 | 81,132,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import numpy as np
from keras.utils import np_utils
import tensorflow as tf
tf.python.control_flow_ops = tf
# Set random seed
np.random.seed(42)
# Our data
X = np.array([[0,0],[0,1],[1,0],[1,1]]).astype('float32')
y = np.array([[0],[1],[1],[0]]).astype('float32')
# Initial Setup for Keras
from keras.models import Se... | [
"cool.sgupta@gmail.com"
] | cool.sgupta@gmail.com |
b5586409d0a551b0c03ff235d373b5dbaab83906 | 67e3388ed0e1154dc0ceb189c83a8521eba79fae | /katpoint/refraction.py | d8e376a31f059fea2116746171df040cb28d52f0 | [
"BSD-3-Clause"
] | permissive | astrojhgu/katpoint | 3dd0f946d76859280ade5f55c85f08538cc24462 | b0fa342c2f6dcebe7474cc405d5fbdb4f3f295bc | refs/heads/master | 2020-12-31T00:40:42.452856 | 2017-01-31T10:30:25 | 2017-01-31T10:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,080 | py | ################################################################################
# Copyright (c) 2009-2016, National Research Foundation (Square Kilometre Array)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
0e5500f8951c9dab342d1b68aec9b62325bbdab4 | 78f1cc341cd6313d02b34d910eec4e9b2745506a | /p02_personal_summary/p13_lee_yung_seong/p05_week/p02_thursday/C8.8.py | 9c53b93a9498eb9a811f435a8b84af706790db0c | [] | no_license | python-cookbook/PythonStudy | a4855621d52eae77537bffb01aae7834a0656392 | cdca17e9734479c760bef188dcb0e183edf8564a | refs/heads/master | 2021-01-20T17:23:35.823875 | 2017-07-30T10:56:13 | 2017-07-30T10:56:13 | 90,873,920 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,472 | py | #서브클래스에서 프로퍼티 확장
#문제
#서브클래스에서 부모 클래스에 정의한 프로퍼티의 기능을 확장하고 싶다.
#해결
#프로퍼티를 정의하는 다음 코드를 보자
class Person:
def __init__(self,name):
self.name = name
@property
def name(self):
return self._name
@name.setter
def name(self,value):
if not isinstance(value,str):
raise TypeEr... | [
"acegauss@naver.com"
] | acegauss@naver.com |
d6860b23ad279a83abe5a08a27fa8f193dca3481 | 7da93474c95b906dc7b94f17dd2199de64611914 | /apps/common/models.py | c36fb0b5dfc0bbc80e826939bd406e1ac37a9ce5 | [] | no_license | zyxyuanxiao/alchemyCMS | 9e27999d5ca29ca71c661c5e51089e45c552d531 | d484a2b2e7af4c723ab5d356b2f31956f4dfa46e | refs/heads/master | 2020-09-05T07:41:32.620647 | 2019-09-19T11:09:56 | 2019-09-19T11:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | __author__ = 'yuchen'
__date__ = '2018/8/27 17:38' | [
"irainsun@live.cn"
] | irainsun@live.cn |
6b5a2064008aebee85695b677f7628457b7f4dd8 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4675.py | 6de0fb805faaf8ed846e9652095fe7650aa27903 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4206c13a82f0be8d48910c19896079a18ddb0e66 | b70582d23299ddee49102cfa1c4d103a19bfe4ec | /api/namex/services/name_request/auto_analyse/mixins/get_synonyms_lists.py | 2eec00875edae9ee5bbb7ceb03db403723829285 | [
"Apache-2.0"
] | permissive | thorwolpert/namex | 2b26119a6178944d60e3ed8715bfea48e557f13f | 773c9ced6b5688ba6612f87712e611e55c149b85 | refs/heads/main | 2022-10-06T06:30:11.468388 | 2022-09-21T21:35:44 | 2022-09-21T21:35:44 | 142,053,557 | 0 | 0 | Apache-2.0 | 2018-07-23T18:30:10 | 2018-07-23T18:30:09 | null | UTF-8 | Python | false | false | 460 | py | class GetSynonymsListsMixin(object):
_prefixes = []
_synonyms = []
_substitutions = []
_stop_words = []
_number_words = []
def get_prefixes(self):
return self._prefixes
def get_synonyms(self):
return self._synonyms
def get_substitutions(self):
return self._subs... | [
"noreply@github.com"
] | thorwolpert.noreply@github.com |
a4ac510fbb98d15d194143d284c0c32e1a20e3c2 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1552724/snippet.py | e932ab267122e34b289b25470f1c692672c9b36b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,652 | py | #! /usr/bin/env python
class Pipeline(object):
def __init__(self):
self.source = None
def __iter__(self):
return self.generator()
def generator(self):
while True:
value = self.source.next()
if self.filter(value):
yield self.map(value... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
aae867c7403280a9c372157d406fb6c25c20dc2d | 35b6013c1943f37d1428afd2663c8aba0a02628d | /dialogflow-cx/detect_intent_disabled_webhook_test.py | 64422d3b5c99cd8df17b6f056a3d60ca332285bc | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,287 | py | # Copyright 2023 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
cf8068d5bada03d7a07c2bde6a6452821e586845 | bebba3fb1dfc13a2220f06997c4bc8da42ef8e87 | /smashlib/project_manager/util.py | 7ebf25d7c73cdb94638346da0833e306b8e5c19e | [
"MIT"
] | permissive | mattvonrocketstein/smash | b48b93c3419637f615c7ac3386b04ae756e1fadc | 98acdc27ab72ca80d9a7f63a54c0d52f126a8009 | refs/heads/master | 2021-01-18T23:23:59.340206 | 2016-07-14T01:28:17 | 2016-07-14T01:28:17 | 2,813,958 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | """ smashlib.project_manager.util
"""
def clean_project_name(name):
return name.replace('-', '_').replace('.', '_')
class UnknownProjectError(Exception):
pass
| [
"matthewvonrocketstein@gmail-dot-com"
] | matthewvonrocketstein@gmail-dot-com |
932db771c365a123320e75b32fab8b7f3b2b8a93 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03208/s470753818.py | e79a34f5821f20d70920a3812fa2fecd4853cc1e | [] | 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 | 672 | py | #!/usr/bin/env python3
# encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
from decimal import Decimal # 10進数で考慮できる
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI()... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a60d6b56974168c4f4a154cccb93d237dc20bc20 | 964b063c2461aad267ddd991fefaf7ab53b1ca94 | /8-kyu/fix-your-code-before-the-garden-dies!-/python/solution.py | eaaa87f975333df67daee7b8cf548821b1497fd7 | [] | no_license | lucasbflopes/codewars-solutions | 26c4e2cd1be19db50cc8c1d9fc117c51c82a2259 | 72ef2c02dde7bd0d5a691e04e3b2a383e892f84b | refs/heads/master | 2022-03-14T01:26:41.816498 | 2019-11-23T17:17:19 | 2019-11-23T17:17:19 | 114,834,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def rain_amount(mm):
if (mm < 40):
return "You need to give your plant %smm of water" % (40 - mm)
else:
return "Your plant has had more than enough water for today!" | [
"LucasBraganca@Lucas-MacBook-Pro.local"
] | LucasBraganca@Lucas-MacBook-Pro.local |
2d82591c9e0b9e5ba7af11ab953411e90932b5e7 | 3597ecf8a014dbd6f7d998ab59919a94aff8011d | /admin-web/src/www/application/modules/gene/comment/actions.py | 10f68c699af777de912c129d58a49877c6ec2d41 | [] | no_license | duytran92-cse/nas-genomebrowser | f42b8ccbb7c5245bde4e52a0feed393f4b5f6bf1 | d0240ad5edc9cfa8e7f89db52090d7d733d2bb8a | refs/heads/master | 2022-10-24T05:26:01.760241 | 2020-06-14T19:01:35 | 2020-06-14T19:01:35 | 272,264,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application import constants
from application.modules.gene import components as gene_components
from applica... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
b8bc2a10910908673c0a32329fd1ee7a7e567402 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/hamming/eeb774ba6cbf4c2d959a8089b6d72565.py | ac6d94db78bbdcd35fc99077980344ef0cd62de4 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 256 | py | def hamming(seqA, seqB):
n = min(len(seqA), len(seqB)) # minimum length of the two sequences
hdist = abs(len(seqA) - len(seqB)) # difference in length => starting distance
for i in range(n):
if seqA[i] != seqB[i]:
hdist += 1
return hdist
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c9937507e6d998bfcd2dadd1a6859e50ad3f11b3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s383612077.py | 858ebaa31eeaa9657ee1bc707c3b5ea1045cafa1 | [] | 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 | 457 | py | N = int(input())
ans = 0
for i in range(1, N+1):
a = list(map(int, str(i)))
x = a[0]
y = a[-1]
if x == y:
ans += 1
if y != 0:
for j in (5, 4, 3, 2, 1):
z = (y+1)*(10**j)
if z <= N:
ans += 10**(j-1)
elif y*(10**j) + x <= N and N < z... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3e6c2de33b4016876375544f17d04c903a7b5f81 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/massrc/com/citrix/mas/nitro/resource/config/ns/ns_csvserver.py | c43e7d22a9933d8a9d0699fc6e1e9f31fa6387ab | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 12,934 | py | '''
Copyright (c) 2008-2015 Citrix Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
fad0573a84a6f525458e33839bea0dc204bf780a | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/lsn/lsnpool_lsnip_binding.py | 2e09fb718cd26838232f3a200c7f51ee363019d7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,553 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# 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 l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
50e457ce76e4541286614ecc46dad35fdf8f3b4a | eb621c8c9cc04a9911cb5ca87867e16558f5932c | /astronum_2018/plots/sdc_plot.py | 02ff89f2e4767ef0b9c6eb7b91bcabc02fd8125d | [] | no_license | forest80/papers | e3b6598489321a9ac41580a8f7c49e8b2c9f2f49 | 313dbeab9f91fc33fffee66baa098e1209a6239f | refs/heads/master | 2020-04-13T06:51:20.112861 | 2018-12-19T21:54:54 | 2018-12-19T21:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | import numpy as np
import matplotlib.pyplot as plt
# read the Strang data into a numpy array
strang = np.loadtxt("strang_diag.out")
# now manually read it looking for the times that indicate when the Strang halves began
strang_starts = []
strang_second = []
with open("strang_diag.out") as f:
for line in f:
... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
184630603973ea592024038f3b1afffe88615783 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/AlexNet_for_TensorFlow/99-origin/utils/create_session.py | 566fc5ed2c6abe7cbc304da20092deb7b4c24817 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 1,284 | py | import tensorflow as tf
import os,sys
# for MultiGPU
import horovod.tensorflow as hvd
class CreateSession():
def __init__(self, config):
self.config = config
self.estimator_config = tf.ConfigProto(allow_soft_placement=False)
self.estimator_config.gpu_options.allow_growth = True
... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
13496a70bef2012cace6c00cad73736d13d0ad5d | e18f3f4e7f68ed100e577f16951e0c25714196bd | /cetweb/company/migrations/0003_auto__del_field_job_requests.py | 86065a78cc84c3cb8e19fbc3dc19b88ea0cb2003 | [] | no_license | sanchitbareja/cetweb | 8a24b9f9b59f8cb7bb84babdcd1d6fbc980e1fa0 | bf860c03fb19c142e258bb6771da23703d06e865 | refs/heads/master | 2020-12-24T14:45:20.028586 | 2013-04-30T22:59:48 | 2013-04-30T22:59:48 | 7,984,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,548 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Job.requests'
db.delete_column('company_job', 'requests_id')
# Adding M2M table f... | [
"hbradlow@berkeley.edu"
] | hbradlow@berkeley.edu |
7001a32cbcdf83708eb22f17fcbcc1bf5b8c9651 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /swagger_client/models/i_ospfv3_neighbor_cost.py | d5fd8a548e8c04ae306362aa54b256ab254c2431 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
3113701762a206851351ca3cfeed07eef4b86bf8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/tools/convert_datasets/pascal_voc.py | 89dd6e6c0250fc2b651b473d4587a76c153116cd | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,197 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
5c44d813e3bb0d21b708bffd74dba33c676eaaeb | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /05_Intergration/lev-distance.py | b12259ca1ead0504dd4840d0a5e5e0d73ae2a672 | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 1,694 | py | # 레벤슈타인 거리 구하기
def calc_distance(a, b):
''' 레벤슈타인 거리 계산하기 '''
if a == b: return 0
a_len = len(a)
b_len = len(b)
if a == "": return b_len
if b == "": return a_len
# 2차원 표 (a_len+1, b_len+1) 준비하기 --- (※1)
matrix = [[] for i in range(a_len+1)]
for i in range(a_len+1): # 0으로 초기... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
49a61789d143aeb1bc8dc6260a4fa168423b124b | ced6377b7cf6abc80184efe5e866faef96042c51 | /migrations/versions/cbdc96e4117d_initial_migration.py | 2ba20e170729ac545fc1b33d7c42c5f0447f0a05 | [] | no_license | anatulea/socialApp | d90397bd4b8048be3346acd3e9e333423503e7fe | c07f12e545d66dab4aef4ea60076d0f071b15f33 | refs/heads/master | 2023-02-15T13:05:01.871058 | 2021-01-06T01:21:02 | 2021-01-06T01:21:02 | 327,164,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | """initial migration
Revision ID: cbdc96e4117d
Revises:
Create Date: 2021-01-04 22:36:04.453954
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cbdc96e4117d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"anatulea14@gmail.com"
] | anatulea14@gmail.com |
0d9fe18a673e5563a26ab68473543f4d2576f534 | 54417b54c6e025a5d9bd89ae119c9134ccca4510 | /test/test_connectomics/views/test_maps.py | 51f84e3801336dd8da0d93724ae705083055be4b | [] | no_license | SheetsKG/py-connectome-analysis | 15481d579c089010b031d57141486114a2a153b2 | 169274d562b2981bc6f04032797c87ca5a66bbb0 | refs/heads/master | 2021-01-22T15:42:33.947279 | 2014-09-16T21:06:25 | 2014-09-16T21:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | '''
Created on Jun 19, 2013
@author: u0490822
'''
import unittest
import connectome_analysis.views.mappings as mappings
class LabelTest(unittest.TestCase):
InputLabelList = [' GAC Aii ',
'Rod BC ',
' Rod BC',
'CBa1w[G-, <> Aii]',
... | [
"james.r.andreson@utah.edu"
] | james.r.andreson@utah.edu |
ba1a47b7dc83b2ed8f27c4f4d03414f92f39c31d | d873d529a24a30e2a9fc3e5a15ef6fe595c1423e | /blockchain-env/Lib/site-packages/aiohttp/web_log.py | 4cfa57929a975a45ab9bf575b7c03b823a233393 | [
"MIT"
] | permissive | AdityaStark7/blockchain_backend | 2731d733a0029614565b484ec5820d04f615bfe7 | a019dda3bd4160ae962ced5bd95d060ad33f7f07 | refs/heads/main | 2023-08-19T12:26:38.211892 | 2021-10-15T05:31:18 | 2021-10-15T05:31:18 | 385,313,460 | 8 | 1 | MIT | 2021-10-11T17:28:22 | 2021-07-12T16:31:53 | Python | UTF-8 | Python | false | false | 7,498 | py | import datetime
import functools
import logging
import os
import re
from collections import namedtuple
from typing import Any, Callable, Dict, Iterable, List, Tuple # noqa
from .abc import AbstractAccessLogger
from .web_request import BaseRequest
from .web_response import StreamResponse
KeyMethod = namedtuple("KeyMe... | [
"ak511046@gmail.com"
] | ak511046@gmail.com |
68f23e1eea010ef5f7a7d68d0712852f4cdaf53d | 9dcb8ebf1f120ba5b762127fee93caa4f5c63734 | /pagseguro/tests/test_api.py | 7c808e85f412871ac64f84227b0e5e953494ba20 | [] | no_license | luxu/work-at-codevance | 8df233859d0e7372948b803b066db83fb499d4ec | bef239d55d75a4135a3df4cc1e96e6a315bdb98f | refs/heads/master | 2023-08-23T15:06:19.840784 | 2021-10-29T17:11:42 | 2021-10-29T17:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import pytest
from requests import get
from django.urls import reverse
from pagseguro.settings import BASE_URL
@pytest.fixture
def url_api_request_advance():
url_view = reverse('api_request_advance', kwargs={'payment_id': '6'})
url = ''.join((BASE_URL, url_view))
return url
@pytest.fixture
def url_api... | [
"zicadopv@gmail.com"
] | zicadopv@gmail.com |
b527540b4aa6cb8e8a77b351f5afe45398bbeaaf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/401.py | f43ff76aa8ffa46c02d19bf2715b6dd5cb8be4a2 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
import sys
import re
def findmin(h, w, map, H, W):
while 1:
tmp = map[h][w]
north = 10000
west = 10000
east = 10000
south = 10000
if (h > 0):
north = map[h-1][w]
if (w > 0):
west = map[h][w-1]
if (w < W-1):
east = map[h][w+1]
if (h < H-1):
south ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ecdfb5869b7ce4eda595d7c50cf3370dd5b12124 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_optimists.py | 9e56a3c953749eef49ce1184edfe233a2e829f37 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _OPTIMISTS():
def __init__(self,):
self.name = "OPTIMISTS"
self.definitions = optimist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['optimist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf3c2a1b252e863b381d0777b2510cb1e66c9fde | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /oxf7b7vroXvWBJ9Nq_7.py | 4a2506b2a7c4a1fbeae88772467e879982e5a268 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | """
We all love a little bargain.
Your function will get a price, and a load of discounts. Your job is to write
the function so that it calculates the **maximum possible** discount.
* The price is a Number.
* The load of discounts is a string like: `15%, 8, 50%`.
* So, percentages, with `%`, and amounts, wit... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
01311b1f44dc33d86ce8c2d58c191eb276f9cf42 | 817557cfa96a78417ff27e3b3e8f8142c2683cfb | /myapp/views.py | 877b13117a53218c70a84403560d25745cd18d0b | [] | no_license | iamsureshtumu/forms-updated-p7-updated | 530c12a14bc33403ada9aef84c511d3a9836bb2f | 7ffb93067ff27339acce165f04958839dcc2f462 | refs/heads/master | 2020-08-19T17:52:39.013156 | 2019-10-18T03:59:54 | 2019-10-18T03:59:54 | 215,939,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from django.shortcuts import render
from django.http import HttpResponse
from myapp.models import *
# Create your views here.
def page1(request):
return HttpResponse("<h1>welcome to page 1</h1>")
def page2(request):
return render(request,'page2.html',context={'data':"data is passed"})
def topic(request):
... | [
"akshayvk64@gmail.com"
] | akshayvk64@gmail.com |
2570ed0868aa95d55c5fa8d6bcf0679ba0ee7f8f | 492f793d9933aa5764519f6637da840aea0fbdab | /apps/srtp/migrations/0007_auto_20180615_1021.py | 8952c5327f5db4ee1fddaf0301360f7b75f102e1 | [] | no_license | gradenova/d | ca2c8489cea5acc41857fa62112c13fec8451b68 | bb52400b5869e5ae74ea292f96e57f9ede507976 | refs/heads/master | 2021-06-21T15:16:17.512718 | 2019-09-29T08:51:40 | 2019-09-29T08:51:40 | 222,163,595 | 0 | 0 | null | 2021-06-10T22:16:40 | 2019-11-16T21:49:37 | HTML | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.0.5 on 2018-06-15 10:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('srtp', '0006_projectmanageissue_attribute'),
]
operations = [
migrations.RenameField(
model_name='projectmanageissue',
old_n... | [
"956378834@qq.com"
] | 956378834@qq.com |
baeae7237f4f25aba2d5cf427a86f5a04805419e | 8b783c4891ff9dbe4bb2dacc2146f2d251dd0df6 | /learning_log/settings.py | d90c5b055ae7ecb9a7727e37feb9564f5065cd7a | [] | no_license | tngo0508/learning-log | a6e1e0b9dd2b588c84887f9d7874beac9d792ab8 | 65d8673c5fdc995fd4810f7a7fca00995af2650b | refs/heads/master | 2020-03-26T19:30:23.037554 | 2018-08-21T07:36:16 | 2018-08-21T07:36:16 | 145,268,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | """
Django settings for learning_log project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
705c48aa811a245897eebdf59df9c12004dbad27 | a06586c101a31bf6c9a7dc307cf664120ac092fd | /Trakttv.bundle/Contents/Code/data/__init__.py | 9940c7583ef194cd704315f79f3a5ddc792b31f1 | [] | no_license | HaKDMoDz/Plex-Trakt-Scrobbler | 22dd1d8275698761cb20a402bce4c5bef6e364f9 | 6d46cdd1bbb99a243b8628d6c3996d66bb427823 | refs/heads/master | 2021-01-22T00:10:18.699894 | 2015-05-25T23:52:45 | 2015-05-25T23:52:45 | 37,312,507 | 2 | 0 | null | 2015-06-12T09:00:54 | 2015-06-12T09:00:53 | null | UTF-8 | Python | false | false | 186 | py | import sys
# submodules for Plex plugins "hack"
import sync_status
sys.modules['data.sync_status'] = sync_status
import watch_session
sys.modules['data.watch_session'] = watch_session
| [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
b58cd6ea023d6b4d2903dc86bb9c6749a5704330 | 49744c351947b5c328ea481b2f5d2297e2531388 | /tests/test_config_dict.py | 34e9c3761acb45d022ac8f5bd9548a741fc599d2 | [
"MIT"
] | permissive | kudkudak/sacred | 8c87ac58d697563515336e332fd58fcbf19b3bbd | 6d6d15bdb14906021e66da2df0dc84c2503df763 | refs/heads/master | 2021-01-18T07:59:53.865537 | 2015-06-09T18:05:54 | 2015-06-09T18:05:54 | 32,754,410 | 0 | 0 | null | 2015-03-23T19:36:17 | 2015-03-23T19:36:16 | null | UTF-8 | Python | false | false | 3,496 | py | #!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
import pytest
import sacred.optional as opt
from sacred.config import ConfigDict
from sacred.config.custom_containers import DogmaticDict, DogmaticList
@pytest.fixture
def conf_dict():
cfg = ConfigDict({
... | [
"qwlouse@gmail.com"
] | qwlouse@gmail.com |
dab459975f0fc7f1d4a32d64a3e7fb8f0943f471 | 3a7d20020cac861524f12e138050e8030fe33e16 | /Stats/RapportsUsers/Paliers.py | 1ac606469bb29fb56014e61b6a13914d86aed402 | [] | no_license | OlborZ2/OlborTrack-Bot | 8f4a256bd14971a0b55f408fc8af5c1d48d8fb41 | 4b312d802176d56022509f9e8ca5603d8ff60941 | refs/heads/main | 2023-07-19T02:47:26.683781 | 2021-08-19T09:46:00 | 2021-08-19T09:46:00 | 383,921,269 | 0 | 0 | null | 2021-07-07T20:48:45 | 2021-07-07T20:48:45 | null | UTF-8 | Python | false | false | 2,655 | py | from Core.Fonctions.TempsVoice import tempsVoice
tableauMois={"01":"janvier","02":"février","03":"mars","04":"avril","05":"mai","06":"juin","07":"juillet","08":"aout","09":"septembre","10":"octobre","11":"novembre","12":"décembre","TO":"TOTAL","1":"janvier","2":"février","3":"mars","4":"avril","5":"mai","6":"juin","7"... | [
"lucas.triozon@orange.fr"
] | lucas.triozon@orange.fr |
3db5f46667774f1b6908b9ec61c225f6ec6f92ff | aacf039e6575b567f4d4433f2d5b0778da673e11 | /knowledge/models.py | a56529e1b2cb07219d536c59b08c072ebf4606c9 | [] | no_license | bluedazzle/RapoSite | 634137ca43d3f80c55ffc0d8b20f406dc3d67a25 | c1c9894a9efc16d7957826c6142d9426db8203da | refs/heads/master | 2016-09-10T10:44:48.255104 | 2014-11-17T14:25:59 | 2014-11-17T14:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.db import models
from rpsblog.models import *
# Create your models here.
class Requires(models.Model):
title = models.CharField(max_length=20)
content = models.CharField(max_length=20)
def __str__(self):
return self.title
class KnowLib(models.Model):
question = models.CharField(max_length=20)
subc... | [
"rapospectre@0163.com"
] | rapospectre@0163.com |
4c04bc72b0c4c9fe348f4798a5cdeb6732fc7340 | a7d497669dc91e6432216145a550755d42f6bb69 | /src/cogent3/draw/dotplot.py | bbd9434b764b001bc62adc576dd269135d98a5e3 | [
"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 | 9,796 | py | from cogent3.align.align import dotplot
from cogent3.core.moltype import get_moltype
from cogent3.draw.drawable import Drawable
from cogent3.util.union_dict import UnionDict
__author__ = "Rahul Ghangas, Peter Maxwell and Gavin Huttley"
__copyright__ = "Copyright 2007-2019, The Cogent Project"
__credits__ = ["Gavin Hu... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
0c4c6ca8e9bbd1c391c9d108e01d8762909c68f7 | 6109a95a284891792c35d0d19906ab8d1697f9c7 | /src/k8s-extension/azext_k8s_extension/custom.py | c0a2c4cdb6a09bc855249f34fb38942cb77e2b1f | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Tatsinnit/azure-cli-extensions | 3e5a1752edced00d7c33660027d2c17fae074569 | a1959b123d4c11149adae2728ab5791949889d54 | refs/heads/master | 2022-10-05T17:40:10.825889 | 2022-03-16T10:33:56 | 2022-03-16T10:33:56 | 250,102,909 | 0 | 0 | MIT | 2020-03-25T22:12:01 | 2020-03-25T22:12:01 | null | UTF-8 | Python | false | false | 14,104 | py | # --------------------------------------------------------------------------------------------
# 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"
] | Tatsinnit.noreply@github.com |
e45442dfe4d3b6c499bd12aa1074dc4810df494e | a15b462a00abc7b551ad52318db15df8ae83827e | /Maracutaia/env/Scripts/django-admin.py | 43e4ba5ddfa43f7dad749c380d37d5b4fd10680e | [] | no_license | redcliver/Maracutaia | 3a75b58d9ec0abc9cdc3cf39151239c81b1bc07f | 02190cfa48b44835f922cc2e18e64f54c3e01ad2 | refs/heads/master | 2023-01-12T01:54:27.452650 | 2017-09-28T19:08:47 | 2017-09-28T19:08:47 | 96,473,386 | 0 | 1 | null | 2022-12-21T01:38:14 | 2017-07-06T21:26:55 | Python | UTF-8 | Python | false | false | 191 | py | #!C:\Users\IGOR\Source\Repos\Maracutaia\Maracutaia\Maracutaia\env\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
3b21d21d1c35cfbfd1cabc05c8de3f9125688a56 | 7fae23d734356d2016f13f231673ee9ea1b6efd5 | /catkin_ws/src/pkg_t2_examles/scripts/node_eg4_go_to_pose.py | cd24fb3cbc8678f330f507c796cb09588269ca8c | [] | no_license | Tidu09/Eyantra | 57c4fd01a39305ff01758ed021643d894e61e60f | 2bca1cdce1742e79f1550b832cda086dc22e946f | refs/heads/main | 2023-01-12T07:57:54.356909 | 2020-11-22T05:41:40 | 2020-11-22T05:41:40 | 306,226,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,228 | py | #! /usr/bin/env python
import rospy
import sys
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
import math
class Ur5Moveit:
# Constructor
def __init__(self):
rospy.init_node('node_eg3_set_joint_angles', anonymous=True)
self._planning_gro... | [
"uditsharma.2000@gmail.com"
] | uditsharma.2000@gmail.com |
dad41412b9fdd5cccda9e2fb93dc27f15733a097 | 505dc9404c89e56aea70f2db9fc1b3fb311fc5d9 | /usr/lib/enigma2/python/Components/Renderer/speedypure2flipclock_metall.py | 972c77ada41606b83101a167823e44bd40d5c6b7 | [] | no_license | e2plugins/4ATV_speedy_blue | ae8181ed4017beb4b48e58fe7cbbcbe2a1696057 | c84da50a0d872a2e74812214eed5532ed0893534 | refs/heads/master | 2022-11-14T17:09:41.134795 | 2020-07-12T06:24:24 | 2020-07-12T06:24:24 | 277,350,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | # FlipClock
# Copyright (c) .:TBX:. 2016
# Mod by Maggy
# Th4ATV_speedy_black program 4ATV_speedy_black free software: you can red4ATV_speedy_blacktribute it and/or modify
# it under the terms of the GNU General Public License as publ4ATV_speedy_blackhed by
# the Free Software Foundation, either version 3 of the Licens... | [
"captain.onboard@web.de"
] | captain.onboard@web.de |
de47e0436a489f036dba6c00d40c851cb87e4dae | 6c838b17ff4e68a958045bcaab17371250748100 | /python/looping/demo3.py | 4d985c6464c938e9080c229196336d4cc718fa3f | [] | no_license | suchishree/django_assignment1 | b0938c5de2d0b508f711e569110a12d229b6c0f5 | 1e6b83dce9505c35d7a1b31414c81f2596a00943 | refs/heads/main | 2023-07-15T05:10:15.842262 | 2021-08-13T14:25:39 | 2021-08-13T14:25:39 | 376,197,760 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | for x in range(1, 6):
for y in range(0, x):
print(chr(y+65), end="", )
print()
| [
"suchishree99@gmail.com"
] | suchishree99@gmail.com |
5d3380a6f656482937a4eae9b959dd1bc44282af | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/setuptools/setuptools/command/register.pyi | 02c63f18e1932163a6beff78350f32c1098190be | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 105 | pyi | import distutils.command.register as orig
class register(orig.register):
def run(self) -> None: ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
cc8176cf736bc535d1cca489e06f66215aa3dff9 | 68f167d02467a4a20fbd7586a6fa32aca56e0714 | /calc_5_class_单向链表.py | 39c937e93959c923526832209a9c33cf04bc82a7 | [
"MIT"
] | permissive | qq453388937/calc_mmd | 8a8630dbc9010dfafe164c05d2ca7a69e2c4f3af | 3c61dccbcabe2aafbf46c35fdd19fd8e6d717221 | refs/heads/master | 2020-03-28T13:53:28.798742 | 2018-11-09T09:18:54 | 2018-11-09T09:18:54 | 148,439,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | # -*- coding:utf-8 -*-
class BaseNode(object):
# 结点基本属性
def __init__(self, item):
self.item = item # 存放数据元素
self.next = None # 下一个结点地址(结点对象)
class SingleLinkList(object):
""" 单向链表 """
# 链表基本属性,自动当前链表获取头结点信息
def __init__(self, node=None):
""" 链表头结点__haed可能为空 """
... | [
"453388937@qq.com"
] | 453388937@qq.com |
28336ce6807f70571ac3c84f41a792deda6c0be9 | e5f194129752f3f89eed53478416d2c92cde0259 | /.cache/Microsoft/Python Language Server/stubs.v4/lxZFQG_YCJATvcHJZPT3KS4tVSXSHe9W0opaD3PnDKQ=/apt_pkg.cpython-38-x86_64-linux-gnu.pyi | 622cb1a6c4cc6f1038289e76abd202711553d43b | [] | no_license | stepin-s/st | 1677fc25cb42c36afd76d2e3a48a1c0a5daf1b93 | b4cf346a446d57210197ee7f6f809cbc0a5b8799 | refs/heads/master | 2023-07-27T17:37:39.268414 | 2021-05-25T12:08:10 | 2021-05-25T12:08:10 | 405,090,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,703 | pyi | import builtins as _mod_builtins
class Acquire(_mod_builtins.object):
"Acquire([progress: apt.progress.base.AcquireProgress])\n\nCoordinate the retrieval of files via network or local file system\n(using 'copy:/path/to/file' style URIs). The optional argument\n'progress' takes an apt.progress.base.AcquireProgress ... | [
"stpn.s@yandex.ru"
] | stpn.s@yandex.ru |
2abfe84e50f51313e9342daec8d775d7c9df00d4 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/Basic_Class/문제풀이코드/08_DFS&BFS/타겟넘버_wooseong.py | fb181fdecbe9e0b5014c46087357d500438cd1ba | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,075 | py | # 스택 풀이 - dfs인가?
def solution(numbers, target):
# 수식을 시작하기 위한 초깃값 0
# G에는 numbers에서 하나 씩 빼서 만든 중간 수식들의 결괏값
G = [0]
# numbers에서 하나 씩 빼서
for n in numbers:
# 걔를 G의 모든 숫자와 더하거나 빼서 수식을 늘려감
G = [g + n for g in G] + [g - n for g in G]
# 그 중 target을 셈
answer = G.count(targe... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
9ad8731a78b6a5ca906d1fb8216910fccf184ef5 | 281a8f6446f57b90441b62f101f5a34cd33ff256 | /funNLearn/src/main/java/leetcode/algorithms/P001_P100/P010_RegularExpressionMatching.py | fd307c385337d84b85fb51cf34ce52c853659254 | [] | no_license | poorvavm/practice-fun | df55e662735dba43f9cc2be408898f38d616c33c | beba0f3766307b458f177fa7de63a61a25f2e611 | refs/heads/master | 2020-05-04T13:31:30.571191 | 2019-04-01T22:13:18 | 2019-04-01T22:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | """
Tag: string, regex, recursive
Given an input string (s) and a pattern (p), implement regular expression matching
with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not parti... | [
"vishalm@vmware.com"
] | vishalm@vmware.com |
71b8f4c91a91fb769b630f194047d08dc46b148f | dd6e870a400353c123529999555517c84c864474 | /migrations/versions/1135a454bb84_.py | d0770c4f4c4cf961f89c85406bc835d0c694b275 | [] | no_license | fenriz07/flask-hippooks | 7bfea8e397603d74426725c31cf135758cc5e0d2 | a7e88fce2d588bca49d63a9800c8344f117a4469 | refs/heads/master | 2020-04-30T20:09:08.550402 | 2019-03-22T03:02:30 | 2019-03-22T03:02:30 | 177,058,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | """empty message
Revision ID: 1135a454bb84
Revises: 234b2409a954
Create Date: 2016-06-28 14:40:39.378056
"""
# revision identifiers, used by Alembic.
revision = '1135a454bb84'
down_revision = '234b2409a954'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
### ... | [
"servio.za@gmail.com"
] | servio.za@gmail.com |
66ba3785ae8958a2c91a9832d2045a7ecc0df0d8 | 7f49743af148b0e27ced3db17ee0d0127864bc6a | /app/mail/migrations/0002_auto_20180709_1221.py | 414aec0d1c2dbce7b34de8cb96ca57c125214226 | [] | no_license | seokjaehong/ticket | b08bd05e9f0459db7ce08bcf8f8feebd868f6a93 | f27437c83ca98b990dfbc4aa28ead85dae8f5425 | refs/heads/master | 2021-04-15T05:14:12.772829 | 2018-07-21T02:26:36 | 2018-07-21T02:26:36 | 126,504,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # Generated by Django 2.0.3 on 2018-07-09 03:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mail', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='receiver',
old_name='ticket',
new_n... | [
"hsj2334@gmail.com"
] | hsj2334@gmail.com |
3ae0e59eda69ff734b5a7a63deac46b471fd62d0 | 8eee3d122c887b2700617cb7f620be4bd66c29ee | /lab meeting examples/model_david2.py | a924409288cdac805843ab00bfc416b73116adae | [] | no_license | davidbestue/interference_topography | 2f3d606045853a335715118f32385b0202624e12 | 305169179ff1398c88f30076dcc969981a8678f5 | refs/heads/master | 2022-05-09T08:41:44.007944 | 2022-03-30T18:24:20 | 2022-03-30T18:24:20 | 175,014,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,756 | py | # -*- coding: utf-8 -*-
"""
@author: David Bestue
"""
import math
from math import floor, exp, sqrt, pi
import cmath
import numpy
from numpy import e, cos, zeros, arange, roll, where, random, ones, mean, reshape, dot, array, flipud, pi, exp, dot, angle, degrees, shape, linspace
import matplotlib.pyplot as plt
from ite... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
a318cc5379a8d19bb20a1d78431ed99f3488b8cc | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/505.迷宫II.py | 2dd510b9486097488326e7a8602d8383fc5f3eb3 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 505.迷宫II.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
2a5ef98d330433d63f3ebb4b07961981e3d2601d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_052/ch82_2020_04_11_04_25_23_221825.py | c0b616b97e6ba99093b63c1722c5d1193e481fcd | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | def primeiras_ocorrencias (string):
dic = []
c = 0
for i in string:
if i not in dic:
dic[i] = c
c += 1
else:
c += 1
return dic | [
"you@example.com"
] | you@example.com |
7852704fd4b2ea3349e91c56f7ea1a87385d5951 | 857320b8fa93158e520fc9e395581d5c2b12bad1 | /run_experiment.py | 516bda3257b61cb9834e110cacf7683c7e2da1a5 | [] | no_license | skeate/cs7641-p3 | 9e12e8124a5166f097c908ac1863f058dba981c5 | 4787f00c1890b1da56cd6dc7b6358b80ae68f6da | refs/heads/master | 2020-05-01T12:03:03.770456 | 2019-03-24T19:15:28 | 2019-03-24T19:15:28 | 177,457,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,426 | py | import argparse
import logging
import sys
import random as rand
import numpy as np
import experiments
from experiments import plotting
from datetime import datetime
from data import loader
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logge... | [
"skeate@gmail.com"
] | skeate@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.