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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f5ab9c2968ebebea5d7bee44efc0cd8b2654b26 | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/plum/types/property/submodule.py | c7fde187b7be2313d64acbade9f0a3bc5e711ba6 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | from .plum_property import PlumProperty
import torch.nn as nn
class Submodule(PlumProperty):
def __init__(self, default=None, required=True, type=None, tags=None):
self._default = default
self._required = required
if type is None:
def any_type(x):
return T... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
9197ed24cac4246e593e240d233fa8bef16cedc0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_fatherlands.py | 8ba1a35575d89333db2a00481b5443ff629ef5a3 | [
"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 | 238 | py |
#calss header
class _FATHERLANDS():
def __init__(self,):
self.name = "FATHERLANDS"
self.definitions = fatherland
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['fatherland']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
db9fe5e9cb4bda725fe01b0c4fe09c6fa1902e6a | 1e2b69476b2b174ac210ba525b197c621280a390 | /Configuration/Geometry/python/GeometryExtended2017Plan1_cff.py | 6ed28868e6981ebbfff879df8fd786e61a845e77 | [
"Apache-2.0"
] | permissive | skinnari/cmssw | 640e5fe2f23a423ccb7afe82d43ea1b80a2603f0 | 62b49319e475fbcf14484d77814d47a552c61f63 | refs/heads/L1TK_CMSSW_11-1-0-pre4 | 2022-10-27T03:55:33.402157 | 2020-03-24T14:18:04 | 2020-03-24T14:18:04 | 11,660,178 | 2 | 3 | Apache-2.0 | 2020-03-24T14:16:54 | 2013-07-25T12:44:13 | C++ | UTF-8 | Python | false | false | 397 | py | import FWCore.ParameterSet.Config as cms
#
# Geometry master configuration
#
# Ideal geometry, needed for simulation
from Geometry.CMSCommonData.cmsExtendedGeometry2017Plan1XML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi import *
from Geometry.EcalCommonData.ecalSimulationParameters... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
392a88d06ae3d8ebc39cc6872208fe79a63c7d0d | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/context/aws/resources_builders/scanner/resources_tagging_list_builder.py | 5cb9815c2ef85ff46f3f0573716faf4abef4a865 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 588 | py | from cloudrail.knowledge.context.aws.resources_builders.scanner.base_aws_scanner_builder import BaseAwsScannerBuilder
from cloudrail.knowledge.context.aws.resources_builders.scanner.cloud_mapper_component_builder import build_resources_tagging_list
class ResourceTagMappingListBuilder(BaseAwsScannerBuilder):
def ... | [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
9695f7ae9065259aa8878bac3d67707a89736479 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-enterpriseknowledgegraph/google/cloud/enterpriseknowledgegraph_v1/types/job_state.py | 9980364dd9433a2eb7720c4ca26313554eb86dfa | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,203 | py | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
9ec0e0a5d45e3039214a48188142d86b1534571a | f2658c4bd7f833ace25ac2b63e88317b05f4602d | /2017 July/2017-July-11/st_rdf_test/model/WaysNavigableLinkTimezone.py | ec567c431d1b3d80de464f2214bce132f5730431 | [] | no_license | xiaochao00/telanav_diary | e4c34ac0a14b65e4930e32012cc2202ff4ed91e2 | 3c583695e2880322483f526c98217c04286af9b2 | refs/heads/master | 2022-01-06T19:42:55.504845 | 2019-05-17T03:11:46 | 2019-05-17T03:11:46 | 108,958,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,753 | py | #-------------------------------------------------------------------------------
# Name: WaysNavigableLinkTimezone model
# Purpose: this model is used to mapping the rdf_nav_link, rdf_link and rdf_access
# columns: [ ]
#
# Author: rex
#
# Created: 2016-01-29
# Copyright: (c) rex 2016
... | [
"1363180272@qq.com"
] | 1363180272@qq.com |
1876baded258b0f238e61b62902741d2f5805194 | 8b59108f621e94935b3b72aae3c441e10cb64a1c | /toggle_lods.py | a076d80ac06be061fdc6e2b1799d90097d95d484 | [] | no_license | CyberSys/CE_Python | 97a373b1fe2d214ae854d454dc5e7d79bc150d8e | 721ac005e215f1225fb3c99491b55dc48b19ab30 | refs/heads/master | 2022-01-13T08:04:08.558594 | 2019-07-22T17:05:46 | 2019-07-22T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | cvar = general.get_cvar('e_DebugDraw')
if cvar != 22:
general.set_cvar('e_DebugDraw', 22)
if cvar == '22':
general.set_cvar('e_DebugDraw', 0)
| [
"chrissprance@gmail.com"
] | chrissprance@gmail.com |
93f1260fdf0cb8d633f4967c78c99ea23c315318 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /good_point_and_great_person/place.py | b3c68823b8fc17e94d73df2acd0901fd60e6be4e | [] | 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 | 213 | py |
#! /usr/bin/env python
def person(str_arg):
get_great_case(str_arg)
print('young_hand_or_first_life')
def get_great_case(str_arg):
print(str_arg)
if __name__ == '__main__':
person('good_week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
587cd786cb7e5627440b322af69c2291af3c666d | eb54a89743222bc7d72cf7530e745b8986cad441 | /leetcode/canFormArray.py | 39cc9feeb2c341db226cbd358f4dd9e799cad443 | [] | no_license | ugaemi/algorithm | db341809e2497b36e82fc09939ae8e3f1ca7d880 | e4f57f01d21f822eb8da5ba5bfc04c29b9ddce78 | refs/heads/master | 2023-01-10T05:16:55.167675 | 2023-01-04T13:12:20 | 2023-01-04T13:12:20 | 200,671,606 | 3 | 10 | null | 2022-02-27T12:52:31 | 2019-08-05T14:28:56 | Python | UTF-8 | Python | false | false | 954 | py | import unittest
class Solution:
def canFormArray(self, arr, pieces):
for piece in pieces:
if len(piece) > 1:
result = any(piece == arr[i:i+len(piece)] for i in range(len(arr) - 1))
if not result:
return result
else:
... | [
"u.gaemi@gmail.com"
] | u.gaemi@gmail.com |
bb9ebaaa51633a24e64e44e7dfb51ff0f21d2fdc | 5f29a9f8b218f7b02a76af02b49f8cf5aaa8ec97 | /ecommerce/ecommerce/settings.py | 1f96bed14501297d0c6f25199abbbb08ba9df6f9 | [] | no_license | yemiemy/Footwear-Stores | 58c026b38ffe828cef17c58365b77169ad21ce80 | 92f719824c019044aef78b2b481597b9f94405e0 | refs/heads/master | 2022-12-18T13:34:05.283709 | 2019-09-01T22:32:31 | 2019-09-01T22:32:31 | 205,739,701 | 2 | 0 | null | 2022-12-08T06:06:26 | 2019-09-01T22:31:27 | HTML | UTF-8 | Python | false | false | 4,190 | py | """
Django settings for ecommerce 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/
"""
import os
... | [
"rasholayemi@gmail.com"
] | rasholayemi@gmail.com |
d9da6299c37925b684c7e641e6e4b21e82cdd5c1 | 7a02c39b1bd97576991581379fed7e4209c199f2 | /Learning/day20/s12bbs-code/s12bbs-code/aa.py | a44becfde85a3b36497596a8daf7ff50434c0b70 | [] | no_license | chenjinpeng1/python | 0dc9e980ea98aac7145dd6ef966dd3903d488810 | 342d3d5079d158764a5f27838dcaf877e7c430ab | refs/heads/master | 2020-04-06T13:28:11.158318 | 2016-10-16T16:11:09 | 2016-10-16T16:11:09 | 48,805,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #python 3.5环境,解释器在linux需要改变
# -*- encoding:utf-8 -*-
#Auth ChenJinPeng
if __name__ == '__main__':
s = set()
s.add("aaaaa")
s.add("bbbbbb")
# print(s)
with open("tzc.txt", 'w', encoding="utf-8") as f:
for i in s:
print(i)
write_value = "%scccccc\n" % i
p... | [
"1585742649@qq.com"
] | 1585742649@qq.com |
ddf0d322979e965f66a2702d1b4fd867fa63cc0e | 8c016302f173a8a2c4cdbc8c3398e1be61808cc9 | /itkwidgets/widget_line_profiler.py | b8db546a3b430a5f5617574ff54595bdbf2e5b2f | [
"Apache-2.0"
] | permissive | jpambrun/itk-jupyter-widgets | cba7b760912446f6ec801bbf4e3d83dafa70b8b5 | 3e00592e2f7285deea1b4eed0257c96179e5dc96 | refs/heads/master | 2020-04-09T20:10:21.686169 | 2018-11-26T19:25:32 | 2018-11-26T19:25:32 | 160,565,931 | 0 | 1 | Apache-2.0 | 2018-12-05T19:10:03 | 2018-12-05T19:10:03 | null | UTF-8 | Python | false | false | 8,145 | py | """LineProfiler class
Image visualization with a line profile.
"""
from traitlets import Unicode
import numpy as np
import scipy.ndimage
import ipywidgets as widgets
from .widget_viewer import Viewer
from ipydatawidgets import NDArray, array_serialization, shape_constraints
from traitlets import CBool
import matplot... | [
"matt.mccormick@kitware.com"
] | matt.mccormick@kitware.com |
f84ba0dc45e75e82e0edb109d4c3ce7da79af4d9 | 4eea6c0940439d4e78cd125c311d0e1a12a826ed | /messiah_ast_optimizer/common/classutils.py | be8047fdbe9e8e3284be1bd1b0aac878653c08a4 | [] | no_license | chenyfsysu/PythonNote | 5c77578423f95399b1eda7651dc73f1642ee3cb7 | 9b49eced10bab794ddf5452f18bba55d8ba24c18 | refs/heads/master | 2021-05-07T06:14:56.825737 | 2018-10-18T06:49:41 | 2018-10-18T06:49:41 | 111,645,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | # -*- coding:utf-8 -*-
import ast
def ismethod(node):
return isinstance(node, ast.FunctionDef)
def getmembers(mro, predicate=None):
result = {}
finder = AttributeFinder(findall=True, predicate=predicate)
for cls in mro:
for (key, value) in finder.find(cls).iteritems():
if (key not... | [
"chenyfsysu@gmail.com"
] | chenyfsysu@gmail.com |
6695b4cc772773778236433871367a45cddbb7d3 | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/providers/alibaba/cloud/example_dags/example_oss_bucket.py | 83d0255349f6eb143226b6fdc12c5eab8c85d2d5 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 1,413 | 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"
] | coutureai.noreply@github.com |
017d97be74d253ad06c54ee180f0c4270f0ebb4a | 23d1d8e2f2cb54ce1227765f949af3324063357f | /shopify/webhook/tests/factories.py | fc7cbd2900f88739c76bf00a9f4daccbb7f83e4b | [
"BSD-3-Clause"
] | permissive | CorbanU/corban-shopify | 4586b6625511c594b9f37b72d0adf57b71c7677c | 5af1d9e5b4828c375fe8c3329e13f7dcad5e5cfc | refs/heads/master | 2021-01-17T13:50:39.845955 | 2017-05-17T18:36:24 | 2017-05-17T18:36:24 | 29,499,681 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import factory
from factory import fuzzy
from mock import patch
from django.utils.timezone import now
from shopify.product.models import Product
from shopify.product.models import Transaction
from shopify.webhook.models import Webhook
class ProductFactory(factory.django.DjangoModelFactory):
class Meta:
... | [
"jason.bittel@gmail.com"
] | jason.bittel@gmail.com |
87762da3e9e92ee74337ce102ce0e7fa74365ffc | 2d311d74071ea2d5e0c756186e41cfc567f56b6c | /app/core/tests/test_models.py | 4c43911407bd1cbce4dc7cd67ba5ffdf7ca942c2 | [
"MIT"
] | permissive | frankRose1/recipe-app-api | ab128d4b97f76f55f61a5a6eb17e4acdf8348981 | 0fff174ecb59bb06e6b631a33e34984e2f12f68a | refs/heads/master | 2022-02-05T03:55:00.043139 | 2019-08-01T03:43:14 | 2019-08-01T03:43:14 | 197,990,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | from unittest.mock import patch
from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
def sample_user(email='testUser@local.host', password='testPass'):
"""
Create and return a sample user
:param email: Email address
:type email: str
:param pass... | [
"frank.rosendorf1@gmail.com"
] | frank.rosendorf1@gmail.com |
1fa0fb7eeeffdef62a38f01de113f43e004559c7 | 76e9b6cd86803cfd619c32bea338fbf64bf29221 | /gui.py | c53e9809dad7296d77a12ed04aa958293c411b36 | [] | no_license | remton/Python_Chess | 3f004d3d6be4321f75e4176a36f7d728a4c2fc8e | 977ee7d6d154037f9588f826c03a3943a2122d94 | refs/heads/master | 2022-12-03T11:14:15.552912 | 2020-08-13T05:17:32 | 2020-08-13T05:17:32 | 285,480,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,936 | py | # gui.py
# Handles all the gui
from tkinter import *
from util import col_to_board, row_to_board
import util
# First thing when working with tkinter
root = Tk()
root.title("Remi's Chess Game")
def on_close():
raise SystemExit
root.protocol("WM_DELETE_WINDOW", on_close)
# PhotoImage must keep the original variabl... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
e8ab10ad4da9ab0533ae01589b7ed1aee5b30997 | 32166eebe7767379259192d322939d3cf83fd403 | /Token_Management/windows_token_demo.py | ff475a3862172025ec0b690048044e4004b7bf58 | [] | no_license | wifinigel/semfio-mist | 1294e52d42f0c373eb24724beaf754f9332d742e | f501b6488de621b30c5f3a99b3e53bb129970915 | refs/heads/master | 2022-09-30T04:53:55.968239 | 2020-05-22T11:22:47 | 2020-05-22T11:22:47 | 266,056,873 | 0 | 0 | null | 2020-05-22T08:18:51 | 2020-05-22T08:18:51 | null | UTF-8 | Python | false | false | 2,002 | py | """
This script that demonsrates how to use token_class.py on Windows
Before running the script, you must define a user-level environmental
variable that contains your Mist API token. This will be used to access
the Mist cloud and create the required temporary key(s) to perfom
scripted actions.
The token_class mod... | [
"wifinigel@gmail.com"
] | wifinigel@gmail.com |
131f171e663006b3246eeba41b11a128b8d050df | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03626/s622123482.py | 66a5287c093edaa7fe69b4f24155002213a9e8f0 | [] | 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 | 483 | py | MOD = 10**9 + 7
N = int(input())
S = input()
S2 = input()
check = []
flg = False
for i in range(N-1):
if flg:
check.append(2)
flg = False
continue
if S[i] == S[i+1]:
flg = True
else:
check.append(1)
if flg:
check.append(2)
else:
check.append(1)
ans = 3 if chec... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5e4e68907abd04d355a44780c5bfe0fa5ebfdc8d | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/django/db/models/fields/related_descriptors.py | ebcd53f1822ef4847790158e594127aaabf8fc0d | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c80ba94b54aa0987fdd1aca4451b1c1266148d2b48d83ceb5c33ec8048d478d7
size 54061
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
5000e704ec583c0179a3f2695f926eb0e8621667 | caa05194b8f11f29a19767c94fdc93628be694d5 | /examples/asr/quantization/speech_to_text_calibrate.py | 165623f283c29b64d870e226782f5cc7f6844a2a | [
"Apache-2.0"
] | permissive | Jimmy-INL/NeMo | a589ab0ab97b9ccb8921579670e80c470ce7077b | 6a3753b3013dc92a3587853d60c5086e2e64d98f | refs/heads/main | 2023-04-02T22:28:29.891050 | 2021-04-13T18:22:24 | 2021-04-13T18:22:24 | 357,681,603 | 1 | 0 | Apache-2.0 | 2021-04-13T20:34:12 | 2021-04-13T20:34:12 | null | UTF-8 | Python | false | false | 6,150 | py | # Copyright (c) 2020, NVIDIA 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 required by appli... | [
"noreply@github.com"
] | Jimmy-INL.noreply@github.com |
5e3fae95e1de68e3ee68cb9335bfce8908637b86 | d5796258828bf3e12abc8def1ad1828aa14b4cfc | /apps/courses/migrations/0005_video_url.py | b491a64be7002102502b318d5ee3e0948700ff8e | [] | no_license | ghjan/imooc2 | fbd3b1478df12a2961c77ee05f15cffc9cc26097 | 4652ba68db80577466f72ef1cda087c820144879 | refs/heads/master | 2020-03-18T16:12:28.828646 | 2018-11-28T07:52:14 | 2018-11-28T07:52:14 | 134,952,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-26 11:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0004_course_tag'),
]
operations = [
migrations.Ad... | [
"cajan2@163.com"
] | cajan2@163.com |
471d50f0791bed7f3468efcec297cac090555298 | 567c54ba9176581a5d5e1ae65212a6e87a604f0b | /wsgi/pico/pico/urls.py | 10f56e5d61f05915d1344f8a55c10f6a8cc5c632 | [] | no_license | andrewidya/pico | e0641433e1e63ab865fe65924c32c687c75b8d83 | 4a0e8ff885601004aa92ba05d204e3fe6bd90731 | refs/heads/master | 2021-01-10T13:46:20.543152 | 2015-12-08T13:14:40 | 2015-12-08T13:14:40 | 45,040,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.sitemaps import CMSSitemap
from django.conf import settings
from django.conf.urls import * # NOQA
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.contrib.staticfiles.u... | [
"andrywidyaputra@gmail.com"
] | andrywidyaputra@gmail.com |
41ca6333a252f2922ade21e51fce832cc16380cd | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/backend_buckets/update.py | e0ebec42cade87a67f1e4d9830e24530ac96f7af | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 3,509 | py | # Copyright 2015 Google 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 obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
6f42842cd6d4e2a15cbf9d8d790618bcd0159ee0 | 86e904c75d0140eea3e4169d216955e1c34801b3 | /python06/otherlist/tuple.py | 08901db550a2d42cbcae9e73445464e794c265e3 | [] | no_license | reharmony/cloudpython | d62f61749e5b5862d3b81e449d5154e188a14d21 | 98e033e537d763ba86d162f58d0fe8f64249a291 | refs/heads/master | 2020-04-29T16:58:55.281917 | 2019-05-15T12:11:43 | 2019-05-15T12:11:43 | 176,281,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # 튜플 연습
data1 = (1,2,3)
print(data1)
print(data1[0])
print(data1[0:2])
print(data1[1:])
print(data1[:2])
print()
data2 = "나는 파이썬 프로그래머입니다."
print(data2[0])
print(data2[0:3])
print()
print(len(data2))
data2[0] = "너"
print(data2)
| [
"noreply@github.com"
] | reharmony.noreply@github.com |
f0471cb047e073636ed9b5e06738bc66e893f364 | a4a01e251b194f6d3c6654a2947a33fec2c03e80 | /PythonWeb/Django/1809/djangoproject/djangodemo03/index/migrations/0005_book_isactive.py | f1824439227422bb93b902a60723b849ee4ecca1 | [] | no_license | demo112/1809 | 033019043e2e95ebc637b40eaf11c76bfd089626 | e22972229e5e7831dce2aae0b53ce19a6e3bb106 | refs/heads/master | 2020-04-09T07:10:49.906231 | 2019-02-27T13:08:45 | 2019-02-27T13:08:45 | 160,143,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-01-15 06:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0004_author_book'),
]
operations = [
migrations.AddField(
... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
ef1e1182e010d8e86a23b996d3675af834a646b9 | 77a37559730c9228c6ae9c530dc80b8488080c23 | /src/my_plagin/scripts/getoff.py | 776c307efdf299d807b2958f889c159a44ee4cc4 | [] | no_license | tdtce/quadrotor | f01e889ef1252ef5e28fc146521a057ead6fa62e | 64677c9c0c461f5bc7ef73b922d5cd912c2e6783 | refs/heads/master | 2020-03-10T17:06:53.133096 | 2018-05-19T16:42:21 | 2018-05-19T16:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
import math
from geometry_msgs.msg import Twist # message for topic /cmd_vel
from geometry_msgs.msg import Vector3
import sys
def cmd_command():
msg = Vector3(-5.0, 2.0, 1.0)
#rospy.loginfo(cmd)
return msg
def open_loop():
rospy.in... | [
"fantaa499@gmail.com"
] | fantaa499@gmail.com |
e57e48ae6f83a97426f4e9b7b4dac4ea7bc018d9 | 51da71a26628a3c6d1814e6da38f5c48f3101d9b | /uri/1174.py | e4d914cf072f646eca444af1f90e1b8b071a2f5b | [] | no_license | da-ferreira/uri-online-judge | 279156249a1b0be49a7b29e6dbce85a293a47df1 | 6ec97122df3cb453ea26e0c9f9206a2e470ba37d | refs/heads/main | 2023-03-30T11:47:05.120388 | 2021-04-02T19:45:25 | 2021-04-02T19:45:25 | 309,744,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py |
vetor = []
for i in range(100):
vetor.append(float(input()))
for i in range(len(vetor)):
if vetor[i] <= 10:
print('A[{}] = {:.1f}'.format(i, vetor[i]))
| [
"noreply@github.com"
] | da-ferreira.noreply@github.com |
bfc11d3a1f557d7017409f177799342afc40ecc8 | 826a8aeb87cb074938b2056ada22c89b9bd9276c | /serve.py | 004adc1f26237b22a69263d9b3e9026761ba3a59 | [] | no_license | priyom/priyomdb2 | ce441d755d021c838684aba705b3fb905461ca9f | 47deecab60febd427af692149788d37cd9f770ba | refs/heads/master | 2020-07-04T01:59:29.506148 | 2014-03-03T11:51:14 | 2014-03-03T11:51:14 | 25,634,647 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | #!/usr/bin/python3
if __name__ == "__main__":
import argparse
import logging
import tornado.wsgi
import tornado.httpserver
import tornado.ioloop
parser = argparse.ArgumentParser()
parser.add_argument(
"-f", "--app-file",
default="app.wsgi")
parser.add_argument(
... | [
"j.wielicki@sotecware.net"
] | j.wielicki@sotecware.net |
f7e19b16b6647eb623e4fae8467f79c39b656c7b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_191/ch78_2020_04_12_20_17_38_556773.py | ba021a809518ee7a4dbb3ecf4bc6fe0b3537e17a | [] | 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 | 273 | py | import math
v=True
j={}
while v:
n=input('nome')
if n=='sair':
v=False
else:
a=float(input('acele'))
j[n]=a
l={}
for i,u in j.items():
t=math.sqrt(200/u)
l[i]=t
v=list(l.values())
k=list(l.keys())
print(k[v.index(min(v))],min(v)) | [
"you@example.com"
] | you@example.com |
193ff6392df5dd4435f1d59cf1f51002b58aace6 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22359.py | 9f9e50568fed7f7401e8c7ecdc5d72c124a37a6f | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # Python AttributeError: 'module' object has no attribute 'DIST_LT2'
(dist_transform, labels) = cv2.distanceTransform(opening,cv2.cv.CV_DIST_L2,5)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
482a8858558f606aab6c71a41ac79a62af32faa4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03337/s150510433.py | fda17f4d3d34cc307fe022e909e277f692423ff1 | [] | 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 | 472 | py | import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8270b057878ea47f1b8c898a9f6f688170c9102c | 56d56b40dd7202e07b475b03cebd3d6fb2f58441 | /safi/app/wsgi/endpoints/subjectchallenges.py | eb5290580896381d40f8df878002573a1d23895a | [] | no_license | wizardsofindustry/quantum-safi | 7284db981d14777a46d5372fa0080b1d72d8cd80 | 6c97ae544444e90753e375ecc68f25534d97764a | refs/heads/master | 2020-03-23T03:10:50.171082 | 2018-11-23T21:59:34 | 2018-11-23T21:59:34 | 141,014,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | import ioc
import sq.interfaces.http
class SubjectChallengesEndpoint(sq.interfaces.http.Endpoint):
"""Deserializes, serializes and validates the structure of the input and output
(requests and response) to its configured URL endpoint, which exposes the
following functionality:
Retrieve the Factor... | [
"cochise.ruhulessin@wizardsofindustry.net"
] | cochise.ruhulessin@wizardsofindustry.net |
6752105ec117800345237119406cf6949287fc2a | c2008671b9902adfd5444607ead35ebe9f33ebda | /pico/yay.py | 6db68296f63d178b98d45e8d08bd67190a30e769 | [] | no_license | joelburton/secret-pico | 08fb73e8354dc810656bdfe1fb2c943abfba1fc5 | 0705489798c6ded9d54f785e7c86b3421f6ba87a | refs/heads/main | 2023-03-16T06:50:49.366872 | 2021-03-05T17:08:17 | 2021-03-05T17:08:17 | 343,303,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | """Yay!"""
from common import rainbow, oled_page, joel_msg, mark, url
def start():
mark("yay")
oled_page("Yay!")
rainbow()
print("""
You did it! It was fun for me to lead you through this.
And here's a personal message from Joel for you:
--
{joel_msg}
--
You can learn more, as well as get the ta... | [
"joel@joelburton.com"
] | joel@joelburton.com |
8f8ac91f2bc59a3ba97c42c10fc4c389efdacaca | bec623f2fab5bafc95eb5bd95e7527e06f6eeafe | /django-shared/private_messages/utils.py | bc292ce9750e2ee0c41d087232e5725d000f47c4 | [] | no_license | riyanhax/a-demo | d714735a8b59eceeb9cd59f788a008bfb4861790 | 302324dccc135f55d92fb705c58314c55fed22aa | refs/heads/master | 2022-01-21T07:24:56.468973 | 2017-10-12T13:48:55 | 2017-10-12T13:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | from django.utils.text import wrap
from django.utils.translation import ugettext_lazy as _
from django.contrib.sites.models import Site
from django.template import Context, loader
from django.template.loader import render_to_string
from django.conf import settings
# favour django-mailer but fall back to django.core.ma... | [
"ibalyko@ubuntu-server-16-04"
] | ibalyko@ubuntu-server-16-04 |
17ae827cd8a089e7fe6471407c7d6f3424ac2078 | 41586d36dd07c06860b9808c760e2b0212ed846b | /hardware/library/aufs-headers/actions.py | 98601510ff4ca8e2ec68a21d6b5148f725093a73 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Suleyman POYRAZ (Zaryob)
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shel... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
8002be677ca26279c21afda1f4891664c842fd7f | 8c7a187ebfe858ff3f840602585d166b29fce576 | /appstore/translation.py | b8994cca4910d34679e424ebbe4ce5c70da3c2d9 | [] | no_license | ohannes/pythonScripts | b756faa2e6d5314cb04c7afc0ca07f69027f59b2 | 5249b2735d8b2a9a2c6ad8a1ae625cb47f50d0b5 | refs/heads/master | 2020-04-06T04:20:29.565042 | 2015-07-19T17:40:39 | 2015-07-19T17:40:39 | 34,119,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | import os
language_yml_path = "/home/arcelik/projects/appstore2.0/server/config/locales"
EOL = "\n"
CR = "\r"
TAB = "\t"
SPACE = " "
skip_characters = [SPACE, TAB, CR, EOL]
file_extension_splitter = "."
yml_extension = "yml"
extension = "translation"
language_code_length = 2
reference_language_code = "en"
reference_l... | [
"yasinyildiza@gmail.com"
] | yasinyildiza@gmail.com |
2d08fab219857c1c78989b15f11f4bad4e48c065 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_expedited.py | 7d2b6ebd4dc9da31f59bc5114301568600ec3d23 | [
"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 _EXPEDITED():
def __init__(self,):
self.name = "EXPEDITED"
self.definitions = expedite
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['expedite']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
195342a7a8d19ad4d68a02c17a005b456d2aeceb | 0a42fed6746cd9093fc3c3d4fbd7ac5d2cff310f | /python高级编程io/study07/code01_ORM_test.py | 918a9b4bd5423b334ab34b3fbb20d8b68d656220 | [] | no_license | luoshanya/Vue_Study | 4767fc46f2186c75a4b2f7baeeb2fcc9044bd9a4 | d3a07364a63f0552b166a5697a7245f56e38e78d | refs/heads/master | 2020-06-19T02:15:20.253362 | 2019-07-17T08:49:48 | 2019-07-17T08:49:48 | 196,529,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,630 | py | import numbers
import pymysql
class Filed:
pass
class IntField(Filed):
def __init__(self, db_column, min_value=None, max_value=None):
self._value = None
self.min_value = min_value
self.max_value = max_value
self.db_column = db_column
if min_value is not None:
... | [
"310927880@qq.com"
] | 310927880@qq.com |
c5bc92e292c60a7a58f74a7e71291cac3968bfc8 | 1aeb828e57be9b046ee25433fff05956f01db53b | /python_bms/ALGORITHMS/SWEA/SWEA_d2/1986.지그재그숫자.py | 00ecd7e2ed3f2062c756fb5f7c20c59c9c54153c | [] | no_license | LynnYeonjuLee/TIL_BMS2 | 11f2753e2e82c4898a782d6907a21e973c34cf69 | f363723391598caf5ec6b33925fcb8a13a252d9f | refs/heads/master | 2023-01-22T00:45:25.091512 | 2020-12-04T00:22:44 | 2020-12-04T00:22:44 | 290,238,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | T = int(input())
for test_case in range(1, T+1):
N = int(input())
result = 0
for i in range(1, N+1):
if i % 2 == 1:
result += i
else:
result -= i
print(f'#{test_case} {result}') | [
"lynnlyj9@gmail.com"
] | lynnlyj9@gmail.com |
75d4d2d5cd7f43565d0f937dec45d592a73eaed0 | 2442d073434d463cede4a79ae8f9fd31c62174f8 | /procedural-programming/exceptions/name-error.py | 832f2844420c2a3aed590e3ddd8ab52153adc4d3 | [] | no_license | grbalmeida/hello-python | 3630d75cfdde15223dc1c3a714fd562f6cda0505 | 4d9ddf2f7d104fdbc3aed2c88e50af19a39c1b63 | refs/heads/master | 2020-07-10T10:04:38.982256 | 2020-02-26T00:37:36 | 2020-02-26T00:37:36 | 204,237,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | try:
print(nonexistent_variable)
except NameError as error:
print(error.args)
print(f'The variable was not set: {error}')
else:
print('The code was executed without throwing any exceptions')
| [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
afb8519068bdf6411c8ce24d687543a19994b39f | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/canvas/tasks/designer.py | 43aed5471b6e5e63fc8030de8446c425a50ab10d | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,887 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
ad5d8cd83f719b59a3793b8bfcbfda33cd7f65b0 | 095521582f598b65b76f222d8c1acbcaca0c24bf | /output_raw/output_input_Lx1Ly3.py | db4de0907eb008061450f4a61a6d47971d67167b | [
"MIT"
] | permissive | ryuikaneko/itps_contraction | cf07e41d32e93c10db6ebeb1c4f5246b238e737b | 10816fb6c90d77f5a3b2f804ab22573d1d676eb4 | refs/heads/master | 2020-08-28T23:05:00.262183 | 2020-08-03T01:04:22 | 2020-08-03T01:04:22 | 217,847,703 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | def Contract_scalar_1x3(\
t0_4,t1_4,t2_4,\
t0_3,t1_3,t2_3,\
t0_2,t1_2,t2_2,\
t0_1,t1_1,t2_1,\
t0_0,t1_0,t2_0,\
o1_3,\
o1_2,\
o1_1\
):
##############################
# ./input/input_Lx1Ly3.dat
##############################
# (o1_2*(t1_2*((t2_2*(t2_1*(t1_1*((o1_1*t1_1.... | [
"27846552+ryuikaneko@users.noreply.github.com"
] | 27846552+ryuikaneko@users.noreply.github.com |
6f587046be7066cad70382b794003f17a416b0aa | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /eet/Pacific_Atlantic_Water_Flow.py | b5b510ce650e4d832898d5e4641d865557b67c63 | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """
Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and bottom edges.
Water can only flow in four directions (up, down, left, or right) from a cell to ano... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
262a0db07ed6e9da60628477540a51c51d4cdb30 | 7365f2410c139c5f4bf5ba0777ed0321322c92d9 | /python/数组中只出现一次的数字.py | bf189f784d5f0e385008e6c963df8d84172acffe | [] | no_license | EvanJamesMG/Point-to-the-offer | 956a17a3c2a0d99a11428765f6af9f4ebbbe5fc3 | cc9b6b7572cf819f0e53a800899e1ebd9fd6cf9d | refs/heads/master | 2021-01-10T17:11:06.125860 | 2016-04-21T03:47:15 | 2016-04-21T03:47:15 | 52,489,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # coding=utf-8
__author__ = 'EvanJames'
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class RandomListNode:
def __init__(self, x):
self.label = ... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
a5d12bb6d61ae83e3e28dc74139590146591a395 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/filter_ip_config.py | 599025d68f0a892418ff10e71716b77276675c3d | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 2,058 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class FilterIpConfig(object):
"""Implementation of the 'FilterIpConfig' model.
Specifies the list of IP addresses that are allowed or denied at the job
level. Allowed IPs and Denied IPs cannot be used together.
Attributes:
allowed_ip_a... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
6a9a4b92daa1da9160d1d1440fa87b2c6ff94510 | 4cf652ee4168f6f728d4ad86a9df13fd3431fd98 | /DynamicProgramming/perfect-squares.py | 66193dfcb8ff4d53f8769187374993dfe945a26b | [] | no_license | jadenpadua/Foundation | 73940b73720a3e84f46502797a02fa19117b653c | 042a83177e8cce7291c9b31b54b3d71e4d4c9696 | refs/heads/master | 2023-03-07T03:20:21.546843 | 2021-02-16T23:16:43 | 2021-02-16T23:16:43 | 286,326,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | class Solution:
def numSquares(self, n: int) -> int:
dp = [0] *(n+1)
for i in range(1, n+1):
min_val = i
j, sq = 1,1
while sq <= i:
min_val = min(min_val, 1 + dp[i-sq])
j += 1
sq = j*j
dp[i] ... | [
"noreply@github.com"
] | jadenpadua.noreply@github.com |
d26cece290c619bc7a5ac2689dfeb990b05579af | 10aefc154e740941a9b340f471b785739280fc93 | /May2020/1st_week/reverse_int.py | e8da53f0c7436c79be3d129f843d5e3032f765cd | [] | no_license | saurabh-kumar88/leetcode | 465b9eaa7d844eba21c3bc4e9cc1e3348c75c037 | 282b270c1a97bc726b835f8288fdb898a8d0c81c | refs/heads/master | 2022-12-04T13:13:32.144792 | 2020-08-21T14:54:24 | 2020-08-21T14:54:24 | 280,216,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | class Solution:
def reverse(self, x: int) -> int:
# check if number is greater then 32 bit
if x < -(2**31) or x > (2**31) -1:
return 0
string = str(x)
if x < 0:
result = int("-" + str(-x)[::-1])
else:
result = int(string[::-1])
# Ag... | [
"ykings.saurabh@gmail.com"
] | ykings.saurabh@gmail.com |
9b5c50da6072d37a8bab42e3f2baa02890590e25 | 77741ac3384cf80ba9f5684f896e4b6500064582 | /PycharmProjects/模块、包、异常/04-捕获异常信息.py | 67d9c93ccddcea9b796f7cc827d2ccf9e5016259 | [
"MIT"
] | permissive | jiankangliu/baseOfPython | 9c02763b6571596844ee3e690c4d505c8b95038d | a10e81c79bc6fc3807ca8715fb1be56df527742c | refs/heads/master | 2020-05-09T12:11:02.314281 | 2019-04-13T01:17:24 | 2019-04-13T01:17:24 | 181,104,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # print(num) # NameError
# 捕获异常类型
# try:
# print(num)
# # print(1/0)
# # except ZeroDivisionError:
# except NameError as e:
# print(e)
# try:
# # print(num)
# print(1/0)
# except ZeroDivisionError as e:
# # except NameError as e:
# print(e)
try:
print(1 / 0)
print(nu... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
3713d0ee0e3afed4e3607b6ad33354ee81071a6e | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190914133048.py | 615e3723c4902560ba9ac1776831448b19fbf81a | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 6,307 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
055318a7275ecbf68596296f9cb1e45c5239ea9f | c0ce40b948129cd1d293bb024649d103348b30a4 | /tkinter_demo2.py | 3775dd3054875a5bb3f456f9ead8512748209608 | [] | no_license | BrettMcGregor/udemy-python-tim | ee6dc2882b57cd05f9df433459917e2ae6f05cd1 | fd4e3368987740491a802cab7ce469db5b528505 | refs/heads/master | 2020-03-11T17:05:38.268836 | 2018-07-11T23:11:04 | 2018-07-11T23:11:04 | 130,137,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | # this uses the grid configuration
import tkinter
# print(tkinter.TkVersion)
# print(tkinter.TclVersion)
#
# tkinter._test()
main_window = tkinter.Tk()
main_window.title("Country Destroyer")
main_window.geometry("640x480+8+200")
label = tkinter.Label(main_window, text="Choose a country to destroy.\n(Important: Can... | [
"brett.w.mcgregor@gmail.com"
] | brett.w.mcgregor@gmail.com |
682e8bc78b5df1311583a636f8d185ddbcf42c35 | a33a1490b1b344f603e347e7f2db2daab5a23d32 | /components/app_outputs/chain_flow_assembler/system_definition.py | 3ea53efff4ee2d2136f036878e91f878fba07eb4 | [
"MIT"
] | permissive | glenn-edgar/esp32_gateway | 16fabe8c4e937d9d98ca825ad28275b1c3ede6a7 | 5dc4a65eeb2226b6a6529c91a5491df7080b853f | refs/heads/master | 2020-03-26T12:10:03.555424 | 2019-02-21T22:54:39 | 2019-02-21T22:54:39 | 144,878,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from helper_functions import Helper_Functions
from assembler import CF_Assembler
cf = CF_Assembler()
hf = Helper_Functions( cf )
cf.define_chain("initialization",True)
hf.one_step("analog_output_store_cf_handle_ref")
hf.one_step("analog_output_subscribe_configuration")
hf.one_step("analog_output_subscribe... | [
"glenn-edgar@onyxengr.com"
] | glenn-edgar@onyxengr.com |
8d73df9c54e5b8fc70e96d319792bc44f407983d | 7d117771094a24bc411ec8d5a7b8525a5b85b018 | /ninfo_plugins/google_safebrowsing/google_safebrowsing_plugin.py | fdf9a34ee3d85a5cecf0a8b3fc774763ca184c82 | [] | no_license | kraigu/ninfo_plugins | 18ca1be940101a5d5f863320c53a0cd7cc80efce | 746cc48567036337763e888f913f3a4321f166d3 | refs/heads/master | 2021-01-18T06:36:08.108586 | 2013-09-19T16:06:25 | 2013-09-19T16:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import urllib
import requests
from ninfo import PluginBase
class SafeBrowsing(PluginBase):
"""This plugin looks up the address using the google safe browsing API"""
name = 'google_safebrowsing'
title = 'Google Safe Browsing'
description = 'Google Safe Browsing check'
cache_timeout ... | [
"justin@bouncybouncy.net"
] | justin@bouncybouncy.net |
7625a230d83e667833e77845ff3774f296eff5a9 | 08607218396a0269a90e8b4e6d099a5e99e39a8b | /database/schemes/520/script/testCase/U商城项目/U商城管理端/商城设置/邮件配置/邮件配置.py | ab4610a6db1d39606a04c5f3d9dbf57d04b89f88 | [
"MIT"
] | permissive | TonnaMajesty/test | 4a07297557669f98eeb9f94b177a02a4af6f1af0 | 68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f | refs/heads/master | 2021-01-19T22:52:18.309061 | 2017-03-06T10:51:05 | 2017-03-06T10:51:05 | 83,779,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # coding=utf-8
from time import sleep
from SRC.common import utils_user
from SRC.common.decorator import codeException_dec
from SRC.common.utils_user import randomStr
from SRC.unittest.case import TestCase
from script.common import utils
class EasyCase(TestCase):
def __init__(self, webDriver, paramsList):
# 请不要修改... | [
"1367441805@qq.com"
] | 1367441805@qq.com |
79bbfeded34d7846b0dbd38c449856cccf9fbf93 | 5ec7d0bad8a77c79843a2813f5effcb3a2b7e288 | /tests/test_main.py | ffea5974434e9311dd3cf5d9a101028cc1cd9e96 | [
"Apache-2.0"
] | permissive | xdpknx/lean-cli | aca9b9c9c4e156c9faefcfa8ccdfc20423b510a0 | c1051bd3e8851ae96f6e84f608a7116b1689c9e9 | refs/heads/master | 2023-08-08T02:30:09.827647 | 2021-09-21T21:36:24 | 2021-09-21T21:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache... | [
"jaspervmerle@gmail.com"
] | jaspervmerle@gmail.com |
50dff405b181b454abda8be27a8b50fe2ebcce82 | c67831f476cb530fc0c26e0bf4258ce18e986749 | /module_index/tests.py | d40565133c9787f282d39d67ff2417b2a4fb2303 | [
"MIT"
] | permissive | cz-qq/bk-chatbot | a3ce4b86452b3de0ff35430c1c85b91d6b23a3e6 | da37fb2197142eae32158cdb5c2b658100133fff | refs/heads/master | 2023-06-05T05:48:22.083008 | 2021-06-15T10:21:30 | 2021-06-15T10:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making
蓝鲸智云PaaS平台社区版 (BlueKing PaaSCommunity Edition) available.
Copyright (C) 2017-2018 THL A29 Limited,
a Tencent company. All rights reserved.
Licensed under the MIT License (the "License");
you may not use this file excep... | [
"123@qq.com"
] | 123@qq.com |
072ad3bba17592aa2916cb1ee06e7e4366f0d1fb | 5c7da7dabdc076ad7113ccd20561a8bbf5f9a70e | /platforms/migrations/0067_platformnames_fee_owner.py | 2fa176863442ed5c10e75d08a2ca64160573d7a4 | [] | no_license | aqcloudacio/cloudaciofeez | 2499fb5fc5334fa871daab2abea6c34bfa8c7667 | 8399560ece9aa10a6d6801f42c027dca26a65936 | refs/heads/master | 2023-02-27T22:36:20.501159 | 2021-02-11T00:03:46 | 2021-02-11T00:03:46 | 337,887,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 2.2.7 on 2020-12-10 04:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('platforms', '0066_auto_20201208_1532'),
]
operations = [
migrations.AddField(
model_name='platf... | [
"alejandro.quintero@clouxter.com"
] | alejandro.quintero@clouxter.com |
f0fd341dcb455bd497a306d34aeb64a84913de71 | 8bb2842aa73676d68a13732b78e3601e1305c4b2 | /July LeetCoding Challenge 2021/566.py | c30bd6b11c5ff1581dc588c3d5f8330669d264cd | [] | no_license | Avani18/LeetCode | 239fff9c42d2d5703c8c95a0efdc70879ba21b7d | 8cd61c4b8159136fb0ade96a1e90bc19b4bd302d | refs/heads/master | 2023-08-24T22:25:39.946426 | 2021-10-10T20:36:07 | 2021-10-10T20:36:07 | 264,523,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Reshape the Matrix
class Solution(object):
def matrixReshape(self, mat, r, c):
"""
:type mat: List[List[int]]
:type r: int
:type c: int
:rtype: List[List[int]]
"""
rows_i = len(mat)
cols_i = len(mat[0])
if ((rows_i * cols_i) != (r * c)):
... | [
"noreply@github.com"
] | Avani18.noreply@github.com |
34ddb517ab73070ec1ffc68b3d04d73e62872135 | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/coghq/CashbotMintPaintMixer_Action00.py | 0bfa075dbffebda1a3def8fec4fe276964ae82d7 | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,710 | py | # File: C (Python 2.4)
from toontown.coghq.SpecImports import *
GlobalEntities = {
1000: {
'type': 'levelMgr',
'name': 'LevelMgr',
'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'phase_10/models/cashbotHQ... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
dc308ae03a1692f1bb5d53d761488815310d9758 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/test_complex_matmul.py | dac4e36ea673b72b5e420b85829f3e38486777ed | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 5,152 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
c740d6c49db87e26fd2bd32ca3610d557caa9339 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /quiz/quiz07.py | fadef90d8f86b8e8e71307f16c7b517ae7e108c2 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # Quiz) 당신의 회사에서는 매주 1회 작성해야 하는 보고서가 있습니다.
# 보고서는 항상 아래와 같은 형태로 출력되어야 합니다.
# - X 주차 주간보고 -
# 부서 :
# 이름 :
# 업무 요약 :
# 1주차부터 50주차까지의 보고서 파일을 만드는 프로그램을 작성하시오.
# 조건 : 파일명은 '1주차.txt', '2주차.txt', ... 와 같이 만듭니다.
for week in range(1, 51):
with open(str(week) + "주차.txt", "w", encoding="utf8") as report_file:
rep... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
4e14b6ef3d00c50c0713fd1960605860a932cd44 | 41bb2cbeaa736b97772fe29e5377f6998ff383e9 | /20200404/2_多继承方法/appMain2.py | f83c6adb6e904a6cc1ea796e866cb13c4ffa0aea | [] | no_license | Aimee888/Python-20200113 | 64a8168e88d81bb710ee9025c716360ad0fa434e | 7f14a3506532114519ff54a8b250e114e597c0f1 | refs/heads/master | 2023-01-04T21:59:16.349441 | 2020-11-03T02:27:03 | 2020-11-03T02:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # # appMain2.py 多继承方法
"""
多继承方式优缺点:
1. 界面上的组件都成为窗体业务逻辑类QmyWidget的公共属性,外界可以直接访问。优点是访问方便,缺点是过于开放,
不符合面向对象严格封装的设计思想
2. 界面上的组件与QmyWidget类里新定义的属性混合在一起了,不便于区分。当窗体上的界面组件较多,
且窗体业务逻辑类里定义的属性也很多时,就难以区分哪个属性是界面上的组件,哪个属性是在业务逻辑类里新定义的,
这样不利于界面与业务逻辑分离。
"""
import sys
from PyQt5.QtWidgets import QWidget, QApplication
from F... | [
"961745931@qq.com"
] | 961745931@qq.com |
8040733f75d402ff7cacf2eba45b397ac4d18907 | 45be4ca6db49cfeeee722f94a21481634898c851 | /deepneuro/outputs/classification.py | e397b41385d3cf1f316350db9effb59994ffa255 | [
"MIT"
] | permissive | QTIM-Lab/DeepNeuro | 30de49d7cf5d15411591988bca5e284b4fe52ff5 | 8a55a958660227859439df003ac39b98ce3da1b0 | refs/heads/master | 2021-07-13T01:05:19.374945 | 2020-06-24T13:00:14 | 2020-06-24T13:00:14 | 93,092,834 | 122 | 40 | MIT | 2019-12-12T09:30:31 | 2017-06-01T19:36:34 | Jupyter Notebook | UTF-8 | Python | false | false | 235 | py | from deepneuro.outputs.inference import ModelInference
class ClassInference(ModelInference):
def load(self, kwargs):
""" Parameters
----------
"""
super(ClassInference, self).load(kwargs)
| [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
e90c0e5048eee6f670156dc8bbf5e574502e5208 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02916/s608156999.py | ea1415b01d211aa3d75f9003f9e054e9ce3481d7 | [] | 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 | 251 | py | n=int(input())
alist=list(map(int,input().split()))
blist=list(map(int,input().split()))
clist=list(map(int,input().split()))
sum=0
bef=-2
for a in alist:
sum += blist[a-1]
if bef + 1 == a:
sum += clist[bef-1]
bef = a
print(sum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b80f926c78af1a1030c449eb028537d964f87402 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/pyinstaller/tests/functional/modules/pyi_egg_unzipped.egg/unzipped_egg/__init__.py | bd4c8cd299144aae63d2dc6a6bc9dfb7ff1e56d0 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:99ad4a63a6375b9f8f4b215f5ea338161138e0b4f656a42ab109bc1ab97922fa
size 679
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
6d1267ae57626f3695274dfe368089d04bd66985 | 2e0f8a7e59abc371e1af68670881998f42282e08 | /alita_session/utils.py | 7aaf38a7c746a9a2b042f07d35d5fe95cf5e0d8f | [] | no_license | dwpy/alita-session | a052eba48f68d99ddd55417be94224ecee409435 | e2d402df7d8adfcb39f61fe2d638c64bcce59378 | refs/heads/master | 2020-04-27T21:31:43.495879 | 2019-06-19T03:41:20 | 2019-06-19T03:41:20 | 174,700,897 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | import time
import socket
import datetime
def _format_timetuple_and_zone(timetuple, zone):
return '%s, %02d %s %04d %02d:%02d:%02d %s' % (
['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'][timetuple[6]],
timetuple[2],
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep',... | [
"dongwei@gstianfu.com"
] | dongwei@gstianfu.com |
670f929e728a157e4e43fe92d964437cc11835e9 | d570fc2e36f0842605ad6e9dda3cbd4910160a07 | /src/ZServer/__init__.py | cbb6b0fcc33e9fd8d92b0bfbeac60fca80b57fa8 | [
"ZPL-2.1",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zopefoundation/ZServer | 8540fc7c411a7857abf4034068f75f2f1c7ba98c | eb047c795a278c22ae77f5af4284411e4689025e | refs/heads/master | 2023-06-21T20:54:53.580461 | 2023-02-10T09:43:55 | 2023-02-10T09:43:55 | 65,092,325 | 6 | 9 | NOASSERTION | 2020-09-17T07:25:50 | 2016-08-06T16:47:48 | Python | UTF-8 | Python | false | false | 2,355 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
f5e96f07ed638db617a09624e914897823a5a5da | ed6e89a79d593fc188252483d329bbd800fd4f09 | /dnsproxyserver/exceptions.py | b1e20c79ab7ed76104ae022712adf64cf572833f | [] | no_license | mol310/crawl-new2 | 8bfd1dfd0769f1706d559aef936635235e2d6c2e | af9ceb3178b3248af90282ca4d0f8c79df6faeec | refs/heads/master | 2023-04-26T04:29:47.795433 | 2021-05-13T10:17:48 | 2021-05-13T10:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | """
This file contains the exceptions to work with while working with DNS
"""
class InvalidIPError(Exception):
pass
class InvalidQueryError(Exception):
pass
| [
"421798321@qq.com"
] | 421798321@qq.com |
d1506efd6e51e9a2c8e55fcf8b4103dc5f7a20a7 | 0bb49acb7bb13a09adafc2e43e339f4c956e17a6 | /OpenNodes/OpenProject/writeIntegrityPanic.py | f0c1ebd613d9722a50198b1c1ef45d5a94908626 | [] | no_license | all-in-one-of/openassembler-7 | 94f6cdc866bceb844246de7920b7cbff9fcc69bf | 69704d1c4aa4b1b99f484c8c7884cf73d412fafe | refs/heads/master | 2021-01-04T18:08:10.264830 | 2010-07-02T10:50:16 | 2010-07-02T10:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | ###OpenAssembler Node python file###
'''
define
{
name writeIntegrityPanic
tags opdb
input dbPath Path "" ""
input string Problem "" ""
input string Description "" ""
output int result "" ""
}
'''
import os, sys
from Setup import opdb_setup
from getElementType import getElementType
from checkLogPath imp... | [
"laszlo.mates@732492aa-5b49-0410-a19c-07a6d82ec771"
] | laszlo.mates@732492aa-5b49-0410-a19c-07a6d82ec771 |
b3c5e424ca5f2dfac310f49b0a4abc5e37f4ec84 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/generated_samples/policy/get_policy_assignment_with_overrides.py | 44e76a97a5a312f124505643ad70cb2f8853bc12 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,593 | 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"
] | Azure.noreply@github.com |
936ee675faaf7b5a426607d8e366a07ef4d54b4b | d7016f69993570a1c55974582cda899ff70907ec | /sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/aio/operations/__init__.py | 864e7adaf87ad4c50ff0bc8b43760f713ca114d3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,532 | 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"
] | kurtzeborn.noreply@github.com |
8bb24c369cf2c56a5201a359b3519f53426c6fae | c7e028d71b5dd72eb18b72c6733e7e98a969ade6 | /src/algoritmia/problems/sequencecomparison/editdistance.py | d7c6c1f237167b2b49477c6b96900aa38d7010dc | [
"MIT"
] | permissive | antoniosarosi/algoritmia | da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f | 22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b | refs/heads/master | 2023-01-24T06:09:37.616107 | 2020-11-19T16:34:09 | 2020-11-19T16:34:09 | 314,302,653 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #coding: latin1
#< lev
class EditDistanceComputer:
def distance(self, x: "IList<T>", y: "IList<T>") -> "int":
D = [[None] * (1+len(y)) for _ in range(1+len(x))]
D[0][0] = 0
for i in range(1, len(x)+1): D[i][0] = D[i-1][0] + 1
for j in range(1, len(y)+1):
D[0][j]... | [
"amarzal@localhost"
] | amarzal@localhost |
92956fd36c855fc14f40668998f7046f607a7564 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2150/60698/299948.py | a54f1cafd8fa4c945cb3f4e4b47fa17f1f7fa679 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,373 | py | # 利用三进制保存q个外卖的状态的所有情况(下称“全状态”),对于每一个外卖,0为未取,1为已取,2为已送达
# e.g.三个外卖 222(3)即所有均送达 012(3)即第一个未取,第二个已取,第三个送达
# dp[i][j]记录了当前外卖小哥在i点时,状态为j(这里为十进制)的最少耗时,不存在这种case时dp[i][j]=-1
# e.g. 三个外卖,dp[4][26]=5 即当前外卖小哥在点4时,所有外卖均送达的情况下的最少耗时,【状态为26(10)即222(3)】
# floyed记录两两地点之间的最短耗时
# 为什么记录最少耗时? 为了尽可能送多一点外卖
# 算法:遍历所有的可能的所有外卖的状态,【从000->222】
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2b2724df6e6fb6aa180639b8c5d25312b088e3c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02769/s268865969.py | e6d7c21f16d1582956ba4370c32464516cac53c7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # coding: utf-8
import sys
import numpy as np
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
MOD = 10 ** 9 + 7
# K回の移動が終わった後、人がいる部屋の数はNからN-K
def cmb(n, k):
if k < 0 or k > n: return 0
return fact[n] * fact_inv[k] % MOD * fact_inv[n-k] % MOD
def cu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
627772fbe4cbc2fc05cc650df338bd5545964369 | 55c552b03a07dcfa2d621b198aa8664d6ba76b9a | /Algorithm/BOJ/2841_외계인의 기타 연주_s2/2841.py | 574e79795b2e42e3ddef66e9a2bf53e2e1c65b19 | [] | no_license | LastCow9000/Algorithms | 5874f1523202c10864bdd8bb26960953e80bb5c0 | 738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71 | refs/heads/master | 2023-08-31T12:18:45.533380 | 2021-11-07T13:24:32 | 2021-11-07T13:24:32 | 338,107,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # boj 2841 외계인의 기타 연주 s2
# noj.am/2841
N, Prat = map(int, input().split())
_stack = [[0] for _ in range(7)] # 기타줄 1~6번(0번 무시)
ans = 0
for i in range(N):
jul, p = map(int, input().split()) # 줄, 프랫
while _stack[jul][-1] > p: # 해당 줄번호의 끝값(프랫)이 누르려는 플랫보다 높을 경우 뗀다.
_stack[jul].pop()
ans += 1
... | [
"sys19912002@hanmail.net"
] | sys19912002@hanmail.net |
e4e9c74f17467c1f9c5d94063a76cdd8f31a890d | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/repy/tests/ut_repytests_testclose.py | c66cca115a3b888957c4da8ce126813b46dc1158 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 691 | py | import subprocess
import time
import sys
import utf
processOne = subprocess.Popen([sys.executable, 'repy.py', '--simple', 'restrictions.default', 's_testclose.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(rawstdoutFirst, stderrFirst) = processOne.communicate()
processOne.wait()
processTwo = subprocess.Popen([... | [
"USER@DOMAIN"
] | USER@DOMAIN |
1325a237518e2caeb1a5dc18eabd0f94cf70cc8f | dbb1a4d2fb0ae2e1765e9176c9082f5149d6c9f8 | /api_titles/migrations/0002_genre.py | 407aa738a8b3cc0b248541fd89cb50b89f8c133f | [] | no_license | DmitryShinkarev/yamdb_final | 5de7e066ce9bc56793645cd395be70c13cf04cde | 8ec98bf5c393475cc355a9987cec562b01ed9764 | refs/heads/master | 2022-12-29T12:34:02.530836 | 2020-10-19T07:00:33 | 2020-10-19T07:00:33 | 303,366,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 3.0.5 on 2020-07-05 07:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_titles', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
('id',... | [
"dsh.dev33@gmail.com"
] | dsh.dev33@gmail.com |
fa5a388b938d33d5aca424d943f1b00d68d9238e | 4e70deb8527ed532eb7bef320e53d3ddefa67840 | /src/pilot/Pilot.py | 9e072565c6c8d130ea5f966f0128c522959f389a | [] | no_license | sanzhanghongzhi/jetson-car | f58e0519546e1d23c6b4f918863522cdc95a5b72 | 4bfbcdce9181869f2c64bf5ba5e4e77e976ab513 | refs/heads/master | 2021-01-23T07:49:46.257214 | 2017-03-10T19:08:22 | 2017-03-10T19:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | #!/usr/bin/env python
'''
This script activate pilot mode to take control over Jetson Car.
However, one can use joystick to stop by pressing X button
'''
# Keras Model
import keras
import tensorflow as tf
from keras.models import model_from_json
from keras import backend as K
# Utils
import numpy as np
import cv2
imp... | [
"tdat.nguyen93@gmail.com"
] | tdat.nguyen93@gmail.com |
ba2bb8efd8d22d54b3df75981acda0a402985864 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03737/s288807767.py | d80566d9db1c023a7f03b46a5dba6ce922f57744 | [] | 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 | 131 | py | row1, row2, row3 = input().split()
row1 = row1.upper()
row2 = row2.upper()
row3 = row3.upper()
print(row1[0] + row2[0] + row3[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
82138afaa9db8438d988f89ac94b594e29f4f357 | e743d3c474b77808a4618c3a19344cdacda47eb1 | /04 模块/04 time & datetime 模块/01 时间的表示方式.py | 95aea741ef854a066cc0aafcb75d02130c9f316a | [] | no_license | ryan-yang-2049/writeCodeLearnPython | adf9c78ced9ef83af1e3be5315b9cc8c9281ad07 | 864afa6becc6dc68b82783012df01e907c13c5ed | refs/heads/master | 2021-04-09T13:58:38.378385 | 2018-03-21T07:42:01 | 2018-03-21T07:42:01 | 125,314,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # -*- coding: utf-8 -*-
"""
__title__ = '01 时间的表示方式.py'
__author__ = 'ryan'
__mtime__ = '2018/3/18'
"""
'''
在Python中,通常有这几种方式来表示时间:
1. 时间戳
2. 格式化的时间字符串
3. 元组(struct_time)共九个元素。由于Python的time模块实现主要调用C库,所以各个平台可能有所不同。
时间戳(timestamp)的方式:通常来说,时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量。我们运行“type(time.time())”,返回的是float类型。
元组(stru... | [
"11066986@qq.com"
] | 11066986@qq.com |
86f101ca0292cba67c7e5a2822243f2636c50e45 | d24d48cd3f24457179fea3092c1676d83662138c | /src/sellers/urls.py | 266587970a56aab5f61e16450858bd9b3bc10daa | [] | no_license | RommelTJ/DigitalMarketplace | 3a2225bf30dc4d4ee151a845c8cc019a59c3d6f8 | cccab59fbf1d2c5714765524d3e6defe9669bad8 | refs/heads/master | 2021-01-17T10:22:42.082227 | 2016-06-09T04:11:13 | 2016-06-09T04:11:13 | 58,979,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | from django.conf.urls import url
from django.contrib import admin
from products.views import (
ProductCreateView,
ProductUpdateView,
SellerProductListView,
)
from views import (
SellerDashboard,
SellerProductDetailRedirectView,
SellerTransactionListView,
)
urlpatterns = [
url(r'^$', Seller... | [
"rommeltj@gmail.com"
] | rommeltj@gmail.com |
101ed3197ca359325a4996c7f938ca44ce391d34 | 85406dcda2b5f4e6e7d1a07cad6ff4e5b5b5ca1e | /core/models.py | d54fd0f2d45f62036540f51393266113a5861c6d | [
"MIT"
] | permissive | alstn2468/nomad-coder-django-challenge | 94fc3e1e42f21ba4dfb2d35a78ffc45c5fb77f1d | 93be1c89d153bf4e1256a46e12ff02860251748e | refs/heads/master | 2022-12-24T07:24:04.850487 | 2020-09-22T06:52:44 | 2020-09-22T06:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.db import models
from datetime import datetime
class AbstractTimeStamp(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class AbstractItem(AbstractTimeStamp):
title = mod... | [
"alstn2468_@naver.com"
] | alstn2468_@naver.com |
eb14982d77a036a071e1a8ba4b88a65aac29b07a | a8bacc2f0a0a6b128842a4a25c28dd7c115cda5e | /operators/consumers/base_consumer.py | 9e5294f485063d92734ead5f79611d304a3b9ebb | [] | no_license | linkcheng/data-pipeline | 937131d5e2b6e250105f555f519d9ff7fa13459c | 6aab118c5323844cd1a9f43b9b6f9cbbdff0e8b4 | refs/heads/master | 2023-02-08T08:40:55.339245 | 2019-09-05T09:53:45 | 2019-09-05T09:53:45 | 206,530,483 | 1 | 0 | null | 2023-02-02T06:39:20 | 2019-09-05T09:53:01 | Python | UTF-8 | Python | false | false | 1,210 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
@author: Link
@contact: zhenglong1992@126.com
@module: base_consumer
@date: 2019-06-29
"""
import abc
import logging
from operators.base import Base
logger = logging.getLogger(__name__)
class BaseConsumer(Base, metaclass=abc.ABCMeta):
"""\
每接受一条数据,经过路由处理,... | [
"zheng.long@shoufuyou.com"
] | zheng.long@shoufuyou.com |
b5be38d9219a3768964318721705938cea951799 | 03178d92f30fd9c835c2252dd06d98419ce1c12b | /build.py | ff9c42ad7b8cafa9778034f158f6c6443fe25b5a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | QPC-database/torch-ort | 9e53d8005222129ae86d63bf8bfbeb79b69d5443 | a9ea703000cda4f28424be0dfcf1a0ed304580ad | refs/heads/main | 2023-05-31T21:59:15.502843 | 2021-07-01T17:34:12 | 2021-07-01T17:34:12 | 383,518,838 | 1 | 0 | MIT | 2021-07-06T15:38:18 | 2021-07-06T15:38:17 | null | UTF-8 | Python | false | false | 1,959 | py | import argparse
import os
import sys
import subprocess
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument(
"--wheel_file", help="wheel filename used to test. skip build wheel and install")
return parser.parse_args()
def run_subprocess(args, cwd=None):
if isinstance(... | [
"noreply@github.com"
] | QPC-database.noreply@github.com |
1194ce4c05f36d1066f5910bd2bc7c68e6b20021 | d247a30f42a26476f8005b0f963880df6ca568b9 | /web_flask/3-python_route.py | edf0f423486587f2c03cb0825b09b7b268d5156f | [] | no_license | hurtadojara/AirBnB_clone_v2 | 824689cf440a1717178c6562e06562dc55d1fa69 | 9ca6fd3e61bcdb38bb4e3d2bedbc5026e62c2534 | refs/heads/master | 2023-02-18T20:58:49.166959 | 2021-01-21T04:46:02 | 2021-01-21T04:46:02 | 321,381,842 | 0 | 0 | null | 2020-12-16T00:38:40 | 2020-12-14T14:57:40 | HTML | UTF-8 | Python | false | false | 696 | py | #!/usr/bin/python3
'''HBNB'''
from flask import Flask
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def hello_route():
'''main route '''
return "Hello HBNB!"
@app.route("/hbnb", strict_slashes=False)
def hbnb_route():
'''hbnb route'''
return "HBNB"
@app.route("/c/<text>", strict_sla... | [
"andreshurtadojaramillo@gmail.com"
] | andreshurtadojaramillo@gmail.com |
b934a4b1a3becfbd6187f63a382a023893a36bc3 | 58ec3e8c5615d2b33e1d0abc418db617653b4e43 | /synphot/docstrings.py | 8dc084982bb103cb01b95289aa6c72995dd8e139 | [
"BSD-3-Clause"
] | permissive | aidantmcb/synphot_refactor | 31c83d794c6d4444ccf1ef3ad4d22b00057689a3 | e6766e53b71de16a4c21d2435d5ed6c883bcf569 | refs/heads/master | 2020-03-30T12:11:02.192998 | 2018-08-14T19:05:02 | 2018-08-14T19:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""It gets to be really tedious to type long docstrings in ANSI C
syntax (since multi-line string literals are not valid).
Therefore, the docstrings are written here, which are then
converted by setup.py into include/docstrings.h, which is
included by src/... | [
"lim@stsci.edu"
] | lim@stsci.edu |
9d5857f5560b732acedb6d66e42f791f0769d714 | ae9ba2a16e91cfbcf52ed16fe90f0c09ae662dd5 | /order/migrations/0014_auto_20180715_2115.py | 591a91d92d195d38701277a1ecd62f8a571741a6 | [] | no_license | GoatWang/xiaononshop | b12fc2ac065723760dab54157602af3151e6ca57 | 6549154abb0159d0cb4580474dbffe551bc32868 | refs/heads/master | 2022-12-13T07:33:37.701925 | 2018-08-16T12:59:06 | 2018-08-16T12:59:06 | 141,209,866 | 0 | 1 | null | 2022-12-08T02:16:51 | 2018-07-17T00:32:56 | Python | UTF-8 | Python | false | false | 1,272 | py | # Generated by Django 2.0.6 on 2018-07-15 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0013_auto_20180618_1542'),
]
operations = [
migrations.CreateModel(
name='CustomOrder',
fields=[
... | [
"jeremy4555@yahoo.com.tw"
] | jeremy4555@yahoo.com.tw |
b9d7fb0ac04bd41b6ce4b7b43bb5cfbf4e19bfac | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /qats/scripts/classifiers/nn/Run_All_NN_ADADELTA.py | eed2f16e6953d467e9af82b3be10ca28b02197ee | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import os
#Parameters:
hiddens = ['100', '200']
layers = ['2', '3']
types = ['G', 'S', 'M', 'O']
embedsizes = ['100']
ngramsizes = ['2', '3']
for type in types:
trainset = '../../../corpora/'+type+'_train.txt'
testset = '../../../corpora/'+type+'_test.txt'
os.system('mkdir ../../../labels/'+type+'/nn_adadelta')
f... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
5540dce3e89ac10c5b8da00d00c457cea4dd96e3 | c51b70a06a7bef9bd96f06bd91a0ec289b68c7c4 | /src/Snakemake/rules/DNA_coverage/check_coverage.smk | 2b617fe6efda656797f741370fcb47189173db4e | [] | no_license | clinical-genomics-uppsala/TSO500 | 3227a65931c17dd2799dbce93fe8a47f56a8c337 | b0de1d2496b6c650434116494cef721bdc295528 | refs/heads/master | 2023-01-10T01:41:51.764849 | 2020-11-05T14:11:25 | 2020-11-05T14:11:25 | 218,708,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 476 | smk |
rule check_DNA_coverage:
input:
bam = "DNA_BcBio/bam_files/{sample}-ready.bam",
bai = "DNA_BcBio/bam_files/{sample}-ready.bam.bai"
output:
coverage = "Results/DNA/{sample}/QC/Low_coverage_positions.txt",
coverage2 = "Results/DNA/{sample}/QC/All_coverage_positions.txt"
run:
... | [
"jonas.almlof@igp.uu.se"
] | jonas.almlof@igp.uu.se |
5ad4a0919c0914367cb654d32f16716505abdb96 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/mlm/LAVIS/lavis/datasets/builders/dialogue_builder.py | 08a54f2aa4da710af98dc36aac36e2eec5d3dad4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 705 | py | """
Copyright (c) 2022, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
"""
from lavis.common.registry import registry
from lavis.datasets.builders.base_dataset_builder impor... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d4eeefca952e98ad2ef585e83874313bd0e3808c | 106ddccf8f19ca2dcdde9bc455a230f144222493 | /movie/urls.py | 7805921f325cd9dde26bf7c07b02dab2386ff64b | [] | no_license | Simeon2001/dsc-backend-project | b7cea249bf0855af53fd1e189371474bfeeec590 | 96069df96c22973ce00ace9d043475ff326086ab | refs/heads/main | 2023-01-09T08:57:04.846997 | 2020-11-12T16:38:16 | 2020-11-12T16:38:16 | 312,234,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
path('post', views.home, name='h'),
]
| [
"jesusanyasimeon@gmail.com"
] | jesusanyasimeon@gmail.com |
f5f9aa6ff1f90fe04ab902922a49a0ddecf9daec | 922e923bdab099efa7161f5806ed262ba5cc84c4 | /apps/events/migrations/0007_eventurlcleanup.py | d92ad53844ae0d545800d769138132492887dc1f | [
"MIT"
] | permissive | iamjdcollins/districtwebsite | eadd45a7bf49a43e6497f68a361329f93c41f117 | 89e2aea47ca3d221665bc23586a4374421be5800 | refs/heads/master | 2021-07-05T19:06:12.458608 | 2019-02-20T17:10:10 | 2019-02-20T17:10:10 | 109,855,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-22 17:49
from __future__ import unicode_literals
from django.db import migrations
def cleanup_urls(apps, schema_editor):
DistrictCalendarEvent = apps.get_model('events','DistrictCalendarEvent')
BoardMeeting = apps.get_model('events','BoardMeetin... | [
"jd@iamjdcollins.com"
] | jd@iamjdcollins.com |
5fd95a52582a408c7ba9c8999500c6c44d754494 | 79256d5b66296606a9f63a0bf0d93f68e4effe5b | /udiskie/appindicator.py | 1000b7a66460c76ff9b72d0acee53bc2e756d280 | [
"MIT"
] | permissive | wzugang/udiskie | 8ad0a20630c434dc62dfc2f8e5bb00fb4a6fa4c6 | 617638a4ce2199a69ff2e93c9df6ea300a89b5cc | refs/heads/master | 2021-07-19T03:19:02.962306 | 2017-10-23T20:28:44 | 2017-10-23T20:50:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | """
Status icon using AppIndicator3.
"""
from gi.repository import Gtk
from gi.repository import AppIndicator3
import asyncio
class AppIndicatorIcon(object):
"""
Show status icon using AppIndicator as backend. Replaces
`udiskie.tray.StatusIcon` on ubuntu/unity.
"""
def __init__(self, menumaker... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
ee31b734e3e6930a80c62a6fa172ce88b2b9f852 | d13557d6afbe66ac5e67b5547d19de015d3bd9ea | /week_1/01_01_find_max_num.py | 6cdb4ceeb4bdab476065e00bed3bda619a8a78d6 | [] | no_license | rheehot/Sparta-Algorithm | d5ebcf1d42000d3d4cbb96635565cb88d5b07adc | 7c2696866ae8d552323e86fa8f8bede780b9ae4b | refs/heads/main | 2023-06-20T01:06:43.647663 | 2021-07-19T05:49:28 | 2021-07-19T05:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #내 풀이
def find_max_num(array):
# 이 부분을 채워보세요!
max=0
for arr in array:
if (max<arr):
max=arr
return max
print("정답 = 6 / 현재 풀이 값 = ", find_max_num([3, 5, 6, 1, 2, 4]))
print("정답 = 6 / 현재 풀이 값 = ", find_max_num([6, 6, 6]))
print("정답 = 1888 / 현재 풀이 값 = ", find_max_num([6, 9, 2,... | [
"noreply@github.com"
] | rheehot.noreply@github.com |
1df0cc1ff17f53da0665f174c553abe8f2cfa422 | 597d8b96c8796385b365f79d7a134f828e414d46 | /pythonTest/cn/sodbvi/exercise/example002.py | 206119541f885eefc17f9abe640b122cef09085f | [] | no_license | glorysongglory/pythonTest | a938c0184c8a492edeba9237bab1c00d69b0e5af | ed571d4c240fccfb4396e2890ad922726daa10a0 | refs/heads/master | 2021-01-21T11:39:35.657552 | 2019-08-14T02:49:26 | 2019-08-14T02:49:26 | 52,493,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
Created on 2016年1月12日
@author: sodbvi
'''
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if( i != k ) and (i != j) and (j != k):
print i,j,k | [
"317878410@qq.com"
] | 317878410@qq.com |
e00c528a6d63cbf99f15c47a56a3a5effe50fb88 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /contests/abc121/d.py | 4a0d1d407182a37579d7db7feb80a9e7c5460894 | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
def f(a,b):
res = 0
for i in range(50):
sa = (1<<i) * (a//(2*(1<<i)))
t = (a)%(2*(1<<i))
if t>0:
if t > (1<<i):
sa += t - (1<<i)
sb = (1<<i) * (b//(2*(1<<i)))
t = (b+1)%(2*(1<<i))
if t>0:
if t > (1<... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
6d6cb79595748b530815783a328d43f238241c00 | 2a959243c47542ebef0f85dda0deb30255f0c9c8 | /tests/test_score.py | baa9e920973a57ca6083462084c872e9605f7312 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | carlschroedl/votelib | 66b0bdb283e9493ffaa29a314212c3f50c99c735 | 7ba79c47f8c6934f2b3c7424b272c1c7e5835c9f | refs/heads/master | 2022-10-06T15:13:40.807600 | 2020-06-12T13:05:46 | 2020-06-12T13:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,468 | py |
import sys
import os
import itertools
from fractions import Fraction
import pytest
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import votelib.evaluate.cardinal
VOTES = dict(
tennessee = {
frozenset([('M', 10), ('N', 4), ('C', 2), ('K', 0)]): 42,
frozenset([('M', 0), ('N', 10),... | [
"simbera.jan@gmail.com"
] | simbera.jan@gmail.com |
6e0fffeeac361f283b785f9d1cf76ba1828d3e6b | 3385776d9ca6cfad76295fe1c1caa4ad7117e4cf | /leetcode/328.odd-even-linked-list.py | f9be4f8bf0763c2b10401a5a390f34bf2e85fb8c | [] | no_license | Shawntl/Data-Structure-and-Algorithms | fd7678c47b1279bb91c4d663140751bbe3d43461 | 2c2114aeb40bd97afd713c39fad8c7c7a8f1a6dd | refs/heads/main | 2023-06-10T09:15:38.460146 | 2021-07-02T05:35:46 | 2021-07-02T05:35:46 | 312,209,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #
# @lc app=leetcode id=328 lang=python3
#
# [328] Odd Even Linked List
#
# @lc code=start
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
... | [
"zheweisong@gmail.com"
] | zheweisong@gmail.com |
354a0e8777f2f36647a6bd3f0c332ec74be89261 | 6b5d90731f357a8c3319054c120569b86d1492ff | /.history/hhx_main_20200211165718.py | c1a0e9f375e665790a6345aa29c1101cfbe0890c | [] | no_license | ok5168/baomijiancha | 8a2e7eedf581122ad266b0e21fcd8452ee523364 | 43f2f6f0a9809b09c8b0006d27a328fab4fb54b7 | refs/heads/master | 2021-01-05T11:13:33.089885 | 2020-02-17T03:05:25 | 2020-02-17T03:05:25 | 241,004,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from Ui_hhx1 import *
from bmjc14 import * #导入具体处理过程
class MyWindow(QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MyWindow, self).__init__(parent)
self.setupUi(self)
def clear(self):
self.lineEdit_ou... | [
"9705341@qq.com"
] | 9705341@qq.com |
b6406b45083e1dca7bab452640812bb2d8c21498 | 8b3bc4efea5663b356acbabec231d1d647891805 | /1478/Solution.py | 59040ac9f9c5f64600d6a3ee276bd4393efcfcc3 | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | class Solution:
def minDistance(self, houses: List[int], k: int) -> int:
def cal_dis(left,right):
total_dis = 0
while left<right:
total_dis += houses[right] - houses[left]
left += 1
right -= 1
return total_dis
... | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.