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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
445a0485ed0661d1bcc771ce4a5393dd09284f34 | ef1f62cf4e53f856bf763ac0dee73f054518530d | /Week_08/231.Power_of_Two.py | 3f3ec4663f705a473f8c713c5b03eefb4fc9e285 | [] | no_license | ZHHJemotion/algorithm008-class01 | 3338af3619d8e1754a62af6a852f517b47298d95 | 5bb7d2b74110df0b5788b94c69582552d711563a | refs/heads/master | 2022-11-12T09:26:24.941738 | 2020-06-30T15:29:20 | 2020-06-30T15:29:20 | 255,102,230 | 0 | 0 | null | 2020-04-12T14:39:17 | 2020-04-12T14:39:17 | null | UTF-8 | Python | false | false | 564 | py | # Given an integer, write a function to determine if it is a power of two.
#
# Example 1:
#
#
# Input: 1
# Output: true
# Explanation: 20 = 1
#
#
# Example 2:
#
#
# Input: 16
# Output: true
# Explanation: 24 = 16
#
# Example 3:
#
#
# Input: 218
# Output: false
# Related Topics Math Bit Manipulation
# leetcode sub... | [
"zhhjemotion@hotmail.com"
] | zhhjemotion@hotmail.com |
f9d5fd9ac3b57c62d986603e4fc8602020d3b07a | 77f07d6f08a3c401f528a4aa1fa8308e12598f44 | /urls.py | 18ac98ada7b430af52f4637aac387395a81b56aa | [] | no_license | sgammon/AppEngine-Toolkit-Skeleton | 7de4b9184d501865e1aae35a7c8f7b2a398b859a | df7a97333fcea8915c038de67c6836e7756a3961 | refs/heads/master | 2016-09-11T06:59:11.412514 | 2012-01-03T06:01:05 | 2012-01-03T06:01:05 | 2,559,656 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # -*- coding: utf-8 -*-
"""
urls
~~~~
URL definitions.
:copyright: 2009 by tipfy.org.
:license: BSD, see LICENSE.txt for more details.
"""
from config import config
from webapp2 import import_string
def get_rules():
"""Returns a list of URL rules for the application. The list can be
defi... | [
"sgammon@bluestatedigital.com"
] | sgammon@bluestatedigital.com |
d5588920e633f2f3b60e6e906e76fbd21802c787 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /dashboard/modules/dashboard_sdk.py | 900ddc042fa5543ae5a46dc8aa8ca557608e35f6 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 11,982 | py | import dataclasses
import importlib
import logging
import json
import yaml
from pathlib import Path
import tempfile
from typing import Any, Dict, List, Optional
from pkg_resources import packaging
try:
import aiohttp
import requests
except ImportError:
aiohttp = None
requests = None
from ray._private.... | [
"noreply@github.com"
] | pdames.noreply@github.com |
20eb4f23b767b4473d56ae05a400d01d40f44b95 | 8e352bddc79e22604cdc23bf2e33d3d36dd30502 | /linux_rest_api/filesystem/modes.py | ce03c36aced81c91a7b74f35753ef53c03f2fb36 | [] | no_license | kissgyorgy/linux-rest-api | 330950ba7e23932dd2cf3a1b026f83f587773110 | 3f46031f88e75c0a317f96cdb123fe5980877bcb | refs/heads/master | 2023-02-16T12:47:54.960902 | 2018-09-20T05:05:14 | 2020-09-23T11:56:33 | 143,931,513 | 7 | 2 | null | 2023-02-02T11:47:12 | 2018-08-07T22:06:32 | Python | UTF-8 | Python | false | false | 391 | py | import stat
def octal_mode(st_mode: int) -> str:
return oct(stat.S_IMODE(st_mode))[2:]
def symbolic_mode(st_mode: int) -> str:
lm = long_mode(st_mode)
user = lm[0:3].replace("-", "")
group = lm[3:6].replace("-", "")
other = lm[6:].replace("-", "")
return f"u={user},g={group},o={other}"
def... | [
"kissgyorgy@me.com"
] | kissgyorgy@me.com |
5753358a6c496e08c5026fc69e200f9fea67ff63 | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/git/v4_1/models/git_commit_changes.py | 9d82a62347a190cdf6e2bb739ac857cde0364cd7 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 1,142 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
acb8c308b81cccc7646965c8b7c9207a7d2d4b91 | 7a7a094f77a178aba06fae2176919f926119c356 | /data_structures_and_algorithms/adjacency_matrix.py | 651829845865a5c336bc7f66a83ea2dd84abd223 | [] | no_license | vlad-bezden/data_structures_and_algorithms | 9fd0c67a16ff1893d830ae68f43cabb75f5d6a99 | 3ba9b904ed5955de24053cb5941a7c5a71600106 | refs/heads/master | 2021-07-03T02:12:37.207767 | 2020-09-12T12:58:13 | 2020-09-12T12:58:13 | 165,452,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """
Converts graph presented as dict to matrix
{'A': ['B', 'C'],
'B': ['A', 'C', 'E'],
'C': ['A', 'B', 'E', 'F'],
'E': ['B', 'C'],
'F': ['C']}
[[0, 1, 1, 0, 0],
[1, 0, 1, 1, 0],
[1, 1, 0, 1, 1],
[0, 1, 1, 0, 0],
[0, 0, 1, 0, 0]]
"""
from pprint import pprint
from typing import Dict, List
Row = List[int]
Mat... | [
"vlad.bezden@gmail.com"
] | vlad.bezden@gmail.com |
a32848f32d5ce3a38b936d720983ea66cef5905c | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_Mchi-20_Mphi-100_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_240000_3_cff.py | 44dfb28c4e034a9ba5da9f22db66bb4acc808144 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:13096', '1:11582', '1:17956', '1:17355', '1:17456', '1:17827',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
19bab16feffcbe12224818535825db475ac0c04c | 12a8cc08189cbaf84f4a3fd3a54595097a03ef3c | /app/main/forms.py | 3a10472078aa8b8e9aab50947a6c0a1c07018340 | [] | no_license | kepha-okari/watchlist-2 | 723acc9a616f10b1caab4c245763856b5c055c54 | 0cadf9f905d8788dc0999d4addd506d03949d33c | refs/heads/master | 2022-03-27T21:34:43.102901 | 2017-12-16T08:58:45 | 2017-12-16T08:58:45 | 114,447,275 | 0 | 1 | null | 2020-01-28T18:48:26 | 2017-12-16T08:57:20 | Python | UTF-8 | Python | false | false | 387 | py | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField
from wtforms.validators import Required
class ReviewForm(FlaskForm):
"""Class to contain forms instances and methods"""
title = StringField('Review title', validators=[Required()])
review = TextAreaField('Movie rev... | [
"kephaokari@gmail.com"
] | kephaokari@gmail.com |
b94406750358432b3d6cb7ea425f4f5ff477df4d | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/quiz/admin_20210424134332.py | ed0af28881c12976366a229f411022f9ab0e15c5 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from django.contrib import admin
from quiz.models import Quiz
from quiz.models import ICT
from quiz.models import Ban
from quiz.models import Math
from quiz.models import Science
from quiz.models import GK
class QuizAdmin(admin.ModelAdmin):
list_display = ('question',)
class ICTAdmin(admin.ModelAdmin):
list_disp... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
0ef419920e487fcf0cd41aee9cd790d9ebac5369 | 9073e836f6f66110af04110b0d0117ab224fede4 | /eg_26.py | ef0f7c0bf58fe077236400e5018daf4a69b8d24b | [] | no_license | striveman1379/python100_examples | ec860d65aeff62b7e31b30798e7ca38db1297eec | c701b4444469a03efac3436f2a65199615f9e3cb | refs/heads/master | 2020-04-18T00:57:15.114970 | 2018-11-06T09:39:01 | 2018-11-06T09:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # -*- coding:utf-8 -*-
# 利用递归方法求5!
def num(n):
result = 0
if n == 0:
result = 1
else:
result = n * num(n-1)
return result
print('5!= %d' % num(5)) | [
"you@example.com"
] | you@example.com |
61aca2f7a8eb22d3acbc9d35bbd3bcf742e3de7f | 1b60c5833acfb2669b1b51dc2a3616b6017986b6 | /question_answering/utils/utils.py | 48dbbe97f9cd7fb282bcfbc7fdfbe2e354cea37a | [] | no_license | akoshel/QuestionAnswering | 1a61a53c1b3fadde6ae6361a5d628b57625da39b | c33ac39945947df880f0d390fddfd0e0daf9dda8 | refs/heads/main | 2023-07-27T19:12:29.988477 | 2021-09-14T10:28:54 | 2021-09-14T10:28:54 | 385,997,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | from loguru import logger
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
def train_epoch(model: nn.Module, iterator: DataLoader, criterion, optimizer, device, writer):
model.train()
epoch_loss = 0
logger.info("train epoch started")
for i, batch in enumerate(iterator):
... | [
"johndoe@example.com"
] | johndoe@example.com |
a57086090d53b07ccbeee482c97989fabc0d8994 | 3523676133fe91bd69d87b60757af041cc8b603b | /offset/time.py | 3705ffc2cf60ca09f6874880f35622a4fa76db9a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | cautonwong/offset | 247377c0756970b7f6fef37fc4d37c192510abc7 | b8561635a4cb44a9f47d086163f4d0b58bb8fd74 | refs/heads/master | 2021-01-15T22:25:07.504578 | 2014-08-10T18:59:58 | 2014-08-10T18:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | # -*- coding: utf-8 -
#
# This file is part of offset. See the NOTICE for more information.
from .core.util import nanotime, from_nanotime
from .core import timer
from .core.chan import makechan, select
NANOSECOND = 1
MICROSECOND = 1000 * NANOSECOND
MILLISECOND = 1000 * MICROSECOND
SECOND = 1000 * MILLISECOND
MINUTE... | [
"bchesneau@gmail.com"
] | bchesneau@gmail.com |
f82d6a6bf94f54d656ce7cc54a735785cc4eb61f | 305b5459c319688a7a7184c959fc335d464a0e0c | /test_project/test_app/tests/crawler_tests.py | 1f9c29c6a6217e4e666c3c85ba5567b605e0efa2 | [] | no_license | ericholscher/django-crawler | 7595052a3a374c62c3fa6063e091aba4ab5ddb11 | 716f75a5a23b1befa28bbf2da41df4335eb0bf5c | refs/heads/master | 2021-01-01T16:13:29.020267 | 2015-06-29T17:53:42 | 2015-06-29T17:53:42 | 902,366 | 18 | 11 | null | 2015-06-29T17:54:12 | 2010-09-10T21:27:11 | Python | UTF-8 | Python | false | false | 2,643 | py | """
This file is to test testmaker. It will run over the polls app and with the crawler and with test maker outputting things. Hopefully this will provide a sane way to test testmaker.
"""
from django.test.testcases import TestCase
from crawler.base import Crawler
import logging
import os
class CrawlerTests(TestCase):... | [
"eric@ericholscher.com"
] | eric@ericholscher.com |
83557ba6614ffd8a233757c86d0f87a2b54d2e95 | 4eddf6a34715752dc652571b1ab274f51ceb5da0 | /Bayes Classification/.history/Bayes_main_20210428125730.py | e07e1b20e37d7581a86711c9e9dc3c7244e9fcf3 | [] | no_license | Suelt/Hust-SE-introduction-to-ML | 649aba0e5b41363ceac03330ef02982982a0615d | a66785c3085da573f5748d13608eabf02e616321 | refs/heads/master | 2023-05-27T13:13:41.058545 | 2021-06-10T05:44:02 | 2021-06-10T05:44:02 | 375,582,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import model_selection
credit = pd.read_csv("C:\\pyproject\\Bayes Classification\\transformed.csv")
y = credit['credit_risk']
X = credit.loc[:,'status':'foreign_worker']
X_train, X_test, y_train, y_test = model_selection.train_test_sp... | [
"2552925383@qq.com"
] | 2552925383@qq.com |
5e5a528d5d631b39d41e9f5499a4225b499ab82a | f8e9a88eba9e9d83166c64722fc94c5636ebfc1d | /torch/backends/_nnapi/serializer.py | a0d3f8030e36d27a5e2b5245e00c99fa0734eeff | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Cat11438/pytorch | 1c2f9d9f5dda62a2594db24fa2306fd6ddf1ae16 | 9b908ab0d0a947d89ac3137f8c4a05a87c35f568 | refs/heads/master | 2023-06-19T22:35:33.400237 | 2021-07-09T11:33:13 | 2021-07-09T12:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,754 | py | import sys
import enum
import struct
import array
import logging
import functools
from typing import (
Tuple,
NamedTuple,
List,
Optional,
)
import torch
# TODO: Add type annotations
# TODO: Check tensor types for ops
LOG = logging.getLogger("nnapi_serialize")
class NNAPI_OperandCode(object):
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
93b28ca4463dc909e11f966c914b21a0d0b546f4 | 9a63e1b1f026dcde05d7ee1a00b836a6c34e5d43 | /tests/appointment/test_metrics.py | 08b1eda65fe4eb9f43f5f6c33de4203767d1c277 | [
"BSD-3-Clause"
] | permissive | databill86/poli-sci-kit | 201770634c05463fe4ef00b20a47de95d276b6cd | a3f308ccd914cf18105de89218e23fe95a0b1de7 | refs/heads/main | 2023-06-26T17:12:51.939600 | 2021-07-29T15:03:05 | 2021-07-29T15:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | """Appointment metric tests"""
from poli_sci_kit.appointment import metrics
def test_ideal_share(share, total_shares, seats):
assert (
round(
metrics.ideal_share(
share=share, total_shares=total_shares, total_alloc=seats
),
4,
)
== 6.922... | [
"andrew.t.mcallister@gmail.com"
] | andrew.t.mcallister@gmail.com |
ebf1aff1bbdf5a219a46dbeed92232bba9a0fad0 | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /azure_iot_edge/tests/test_check.py | 2b89dda24289d6d675f0c94de7469395f4b1e350 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 3,884 | py | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import copy
import pytest
import requests
from datadog_checks.azure_iot_edge import AzureIoTEdgeCheck
from datadog_checks.base.stubs.aggregator import AggregatorStub
from datadog_checks.base.stubs.datado... | [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
08eed4de6183e86e72ce27b336edb9ca690983f7 | 13f6c4aac5af08e4e568d7069b579846c711d2f5 | /pw_console/py/pw_console/search_toolbar.py | 84691d998455a63028fe000ee1baf95c2ef1d6eb | [
"Apache-2.0"
] | permissive | Ray-Go/pigweed | 103fa8a61ffef7c7cb6dfe62351fc6a2980b00f3 | 4dda54715b8e01540c0fec758b77acc16ed17061 | refs/heads/main | 2023-07-20T13:24:27.315335 | 2021-08-17T21:06:23 | 2021-08-17T23:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,178 | py | # Copyright 2021 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com |
64c9f98a0759a0df0b44851c167e3a1d53498e0c | 885a722e3e5814ae4942ac5e8cf8d0091e734b4c | /BAEKJOON/11000~/11655_ROT13_python/CodingTest.py | ba92d5f2015a4ebedf5f1c18c4985c26f96f09ed | [] | no_license | ledpear/algorithm | 52f3ea25842eee20b3bbd48e51825b9df4942e03 | 4922c6fe5ca0b98a90dee218b756006e7ba05d82 | refs/heads/master | 2023-06-09T17:47:45.674244 | 2023-06-03T13:47:11 | 2023-06-03T13:47:11 | 133,370,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from string import ascii_uppercase
from string import ascii_lowercase
def ROT13(c):
list_upper = list(ascii_uppercase)
list_lower = list(ascii_lowercase)
if c in list_upper :
i = list_upper.index(c) + 13
if i >= 26:
i -= 26
return list_upper[i]
if c in list_lower :... | [
"tjsrb75@gmail.com"
] | tjsrb75@gmail.com |
1f713eff37f69e1eb1b584fea35ebe8ac07f8c25 | 184ba93339a2af7d375bf0e4c9b787ec2a0c3c34 | /hack/picoctf.org/General Skills/PW Crack 4/level4.py | 526e2d62ae8d52e77fa7241cf5d4e59494727f96 | [] | no_license | pchaos/others | 4436dc3ab134d5ed7868df22d4098c93078aae1f | ff1d7229b075a1bb10dbbae8fc5b2bfe8ea43987 | refs/heads/master | 2023-07-14T19:33:36.238932 | 2023-06-21T09:09:04 | 2023-06-21T09:09:04 | 107,945,559 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | import hashlib
### THIS FUNCTION WILL NOT HELP YOU FIND THE FLAG --LT ########################
def str_xor(secret, key):
# extend key to secret length
new_key = key
i = 0
while len(new_key) < len(secret):
new_key = new_key + key[i]
i = (i + 1) % len(key)
return "".join(
[
... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
0b7cd367e8fb6f11318b27a150bd97bc031d5441 | 2b15168bc67ee935446f51c46045f73346369c5a | /model/resnet50.py | 1a54e0fc47e9fea59fb465a498f7c2c608b9c85f | [] | no_license | jason9075/tf2_arcface | 6c37500c9c14170ea6731f6a0d79a19f088c32d3 | 6fabcdf9c3c9a12603456476fc8052de2830684d | refs/heads/master | 2023-04-30T11:42:52.845549 | 2021-04-01T06:59:39 | 2021-04-01T06:59:39 | 311,858,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | import tensorflow as tf
def create_resnet50(input_node, embedding_size, layers=None, is_train=False):
expansion = 1
net = tf.keras.layers.ZeroPadding2D(padding=1, name='first_padding')(input_node)
net = tf.keras.layers.Conv2D(64,
3,
stride... | [
"jason9075@gmail.com"
] | jason9075@gmail.com |
9c86f4be2dd731af2ce6d5d7908eeaa50af4d197 | ef1bf421aca35681574c03014e0c2b92da1e7dca | /test/test_modes/test_filewatcher.py | c9bb04ff63acd71e5503e30f6f2dda651615edff | [
"MIT"
] | permissive | pyQode/pyqode.core | 74e67f038455ea8cde2bbc5bd628652c35aff6eb | 0ffabebe4f0397d53429024f6f44db3fe97b0828 | refs/heads/master | 2020-04-12T06:36:33.483459 | 2020-01-18T14:16:08 | 2020-01-18T14:16:08 | 7,739,074 | 24 | 25 | MIT | 2020-01-18T14:16:10 | 2013-01-21T19:46:41 | Python | UTF-8 | Python | false | false | 2,194 | py | import os
import pytest
from pyqode.qt import QtCore
from pyqode.qt import QtWidgets
from pyqode.qt.QtTest import QTest
import datetime
from pyqode.core import modes
from test.helpers import editor_open, preserve_settings
file_path = os.path.join(
os.getcwd(), 'test', 'test_modes', 'file_to_watch.txt')
def setu... | [
"colin.duquesnoy@gmail.com"
] | colin.duquesnoy@gmail.com |
a433723d25e214eee3dab87dbdbb2c3b88ba3cb4 | 79799898b833178f0af59d00e6b8d96d44d129d4 | /backend/crm/apps/finances/models/transaction.py | 0a9f9f458bdbdff8b559a40703e33f4c404c808f | [] | no_license | edzen12/min_crm | 924edeede9250bc3fabfb45a3f0e01a3768f11b3 | 4b979b347b67a2507d3c26c91852b300cdd20975 | refs/heads/master | 2023-08-20T13:25:39.914325 | 2021-10-12T08:38:28 | 2021-10-12T08:38:28 | 416,251,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | import datetime
from django.contrib.auth import get_user_model
from django.db import models
from django.db.models import Q
from django.utils import timezone
from apps.branches.models import Branch
from apps.courses.models import Course
from apps.finances import choices
from apps.finances.models.expense_tags import Ex... | [
"oichiev.edzen@gmail.com"
] | oichiev.edzen@gmail.com |
b74670afae7e3e55ac606a2102310e4ab4eb2d37 | 37b3b5d71b121a667522604483254c237cb08d99 | /Read-Search-Ask/Python/数据结构与算法/1-概念/3-列表和字典.py | 59ff7056262039628143422e62b16ae1a670b2e6 | [] | no_license | chanwanxiang/isMe | 949a4b2c10f6c908e7fa529918445e9449aba259 | 9586c7a4d5045bd371bbe15991f42e7be68697c3 | refs/heads/master | 2023-07-28T16:34:12.035814 | 2021-09-10T04:00:10 | 2021-09-10T04:00:10 | 118,423,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | # python内置类型性能分析
# timeit模块
# 可以用来测试一小段Python代码执行速度
# class timeit.Timer(stmt='pass',setup='pass',timer=<timer function>)
# Timer是测试小段代码执行速度的类
# stmt参数是要测试的代码语句(statment)
# setup参数是运行代码是需要的设置
# timer参数是一个定时器函数,和平台有关
# timeit.Timer.timeit(number=1000)
# Timer类中测试语句执行速度的对象方法,number参数是测试代码时的测试次数... | [
"595366700@qq.com"
] | 595366700@qq.com |
ed9898838e80bb23adee24591f6c77d0e80e4c01 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lpt.py | f87af3be5c939cd3b171e63f31a6878d93ada80d | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
eba84832f15bc60938f5bfa87daa1b50577b5e75 | 0e083f405af00029c9ec31849f0f7f81c56844b5 | /configs/mmagic/super-resolution/super-resolution_snpe_static-256x256.py | 2d1291646f4d3bf2c2ee81bb233a40b458259426 | [
"Apache-2.0"
] | permissive | open-mmlab/mmdeploy | 39b9e7b611caab2c76a6142fcb99f0bf1d92ad24 | 5479c8774f5b88d7ed9d399d4e305cb42cc2e73a | refs/heads/main | 2023-09-01T21:29:25.315371 | 2023-08-31T09:59:29 | 2023-08-31T09:59:29 | 441,467,833 | 2,164 | 605 | Apache-2.0 | 2023-09-14T10:39:04 | 2021-12-24T13:04:44 | Python | UTF-8 | Python | false | false | 118 | py | _base_ = ['./super-resolution_static.py', '../../_base_/backends/snpe.py']
onnx_config = dict(input_shape=[256, 256])
| [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
417a0dfe50596e35b866a46bcc90a21946287f62 | e887ee52dae696ae067020e60df8f4733a0c0e96 | /ceasiompy/__version__.py | 52e3d7b5f60b0ba4877f70a932c6634ca2b8a748 | [
"Apache-2.0"
] | permissive | VivTrif/CEASIOMpy | 2e05970deab7d036701968d3ba326ebf4dae7ad4 | dc324a7c6bf93a9e3a383d70935c8a2983f25024 | refs/heads/master | 2021-01-08T16:09:59.945961 | 2020-09-15T11:38:22 | 2020-09-15T11:38:22 | 242,075,602 | 0 | 0 | Apache-2.0 | 2020-09-15T11:38:24 | 2020-02-21T07:03:17 | Python | UTF-8 | Python | false | false | 89 | py | """
CEASIONpy version
"""
VERSION = (0, 0, 1)
__version__ = '.'.join(map(str, VERSION))
| [
"dettmann@kth.se"
] | dettmann@kth.se |
2eeaf4e5a95badaf713fea9e6985db5ab31f02aa | 0c1ec32d0f08872ef3ca54830e33a2fdbe585f78 | /DeepForest/h5_generator.py | f78c6a5f120f7f8d40208fbc1c43f1c08a05bf0c | [] | no_license | jtpils/DeepForest | fa35bfab1e6bec13d843841aabd84f8fbc1af8bf | 932a84d604c941a084efdc0f729ae7868baf0309 | refs/heads/master | 2020-05-31T21:28:14.461505 | 2019-05-20T17:03:17 | 2019-05-20T17:03:17 | 190,498,747 | 1 | 0 | null | 2019-06-06T02:14:42 | 2019-06-06T02:14:41 | null | UTF-8 | Python | false | false | 7,350 | py | """
On the fly generator. Crop out portions of a large image, and pass boxes and annotations. This follows the csv_generator template. Satifies the format in generator.py
"""
import pandas as pd
import h5py
from keras_retinanet.preprocessing.generator import Generator
from keras_retinanet.utils.image import read_image... | [
"benweinstein2010@gmail.com"
] | benweinstein2010@gmail.com |
27e534559619c7b1c3f7751def4cd7a078bbfea9 | 8567438779e6af0754620a25d379c348e4cd5a5d | /chrome/android/java/DEPS | 8c434f90f8f274fea473dac3ed786c8c960e3387 | [
"BSD-3-Clause"
] | permissive | thngkaiyuan/chromium | c389ac4b50ccba28ee077cbf6115c41b547955ae | dab56a4a71f87f64ecc0044e97b4a8f247787a68 | refs/heads/master | 2022-11-10T02:50:29.326119 | 2017-04-08T12:28:57 | 2017-04-08T12:28:57 | 84,073,924 | 0 | 1 | BSD-3-Clause | 2022-10-25T19:47:15 | 2017-03-06T13:04:15 | null | UTF-8 | Python | false | false | 997 | include_rules = [
"+components/autofill/android/java/src/org/chromium/components/autofill",
"+components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler",
"+components/bookmarks/common/android/java/src/org/chromium/components/bookmarks",
"+components/dom_distiller/co... | [
"hedonist.ky@gmail.com"
] | hedonist.ky@gmail.com | |
75d852a9b0694fc982f022a5ed972bc5949ed8eb | 3a29caaf19333f0623a8a6a26fbcf8ea14b9212f | /powerapp/core/apps.py | 1500ed69d40b50a8603db7edb3e197d6c905651c | [] | no_license | WisdomWolf/powerapp | 1f695e315fde0937ded0bd4194755bbc6ad6e1a1 | b287e5b3c51f649580ae81a21aa68c350049b73b | refs/heads/master | 2021-01-21T06:18:48.504225 | 2015-06-08T18:18:44 | 2015-06-08T18:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,564 | py | # -*- coding: utf-8 -*-
import re
import datetime
from collections import namedtuple
from importlib import import_module
from logging import getLogger
from django import apps
from django.conf import settings
from django.conf.urls import url, include
from django.utils.six import with_metaclass
from powerapp.core.app_s... | [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
30447e0dd7ecb10608749d5b46d4e1e7bd9019cc | f4335b5f682041a10f507401912a106fea7ad435 | /scripts/retriever/build_db.py | 1804c2b64fb8b07f4c1123b004f2ac55feed659a | [
"MIT"
] | permissive | Shuailong/RLQA | 27c4779518233f96b77a7d5af999c2f1e085a0b0 | 014c340aea9d27494e65e8329da61ebccd65db61 | refs/heads/master | 2021-04-12T09:57:41.235391 | 2018-11-17T13:14:56 | 2018-11-17T13:14:56 | 126,332,609 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,604 | py | #!/usr/bin/env python
# encoding: utf-8
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# Adapt from facebookresearch/DrQA by Shuailong on Mar 22 2018.
"""A script to read in and store documents in a sqlite database."""
import argparse
import sqlite3
import json
import os
import logging
import impor... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
8af6f695bb0775773af909b521f2f19323fcd8da | f847abc060c56cbb14be69fbf1ed671caeda23e8 | /1-daemon.py | 90bfc2b6a242c008ba14fbd83dd48a7a86f0213a | [
"MIT"
] | permissive | ko9ma7/smartstore-automate | b4ade5b6c3ce2ea3f0345287a82ccbb006b25d82 | 3a222a4e81c08658e1c9be156d2814a1df0c71d7 | refs/heads/master | 2021-04-15T02:09:59.390417 | 2019-11-19T09:01:40 | 2019-11-19T09:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | import argparse
import logging
import os
import signal
import sys
import time
class SmartStore:
def __init__(self, log_file=None):
logging.basicConfig(level=logging.INFO, format='%(message)s')
self.logger = logging.getLogger('SmartStore')
self.log_file = log_file
if log_file:
... | [
"pincoins@gmail.com"
] | pincoins@gmail.com |
7551c8ef2c19ceebb70042c614d045fa4fee0b7b | c91c5e6e33303bc57edceb955f184a5a43e3c030 | /policy_repository/policy_repository/settings.py | 3cb225113af4538daabbf5165385c3faed2a2095 | [] | no_license | rahuezo/policy_repository | dd429bc8b2c6641d9812e5c5e87f913380c1d7e9 | 6fdcdee2992e9980c1c023b59cec8f2ab6f9adc9 | refs/heads/master | 2020-03-29T02:14:12.244711 | 2017-08-08T23:52:14 | 2017-08-08T23:52:14 | 94,568,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | """
Django settings for policy_repository project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"rahuezo@ucdavis.edu"
] | rahuezo@ucdavis.edu |
78937c75818ffbb9a0e5c7b4d5689c7b0401e83c | 4af454bced0f99e4ed8269d71e97284f0ef13afb | /gameserver/packets/from_server/base.py | 0c23afaf92d63ce56115425cb793fea9553609e4 | [] | no_license | L2jBrasil/L2py | c46db78238b4caf272a2399f4e4910fc256b3cca | d1c2e7bddb54d222f9a3d04262c09ad70329a226 | refs/heads/master | 2022-11-19T01:39:02.019777 | 2020-07-24T20:07:15 | 2020-07-24T20:07:15 | 292,115,581 | 1 | 1 | null | 2020-09-01T21:53:54 | 2020-09-01T21:53:54 | null | UTF-8 | Python | false | false | 385 | py | from common.packet import add_length, Packet
from gameserver.crypt.xor import xor_encrypt_game
class GameServerPacket(Packet):
@add_length
@xor_encrypt_game
# @add_padding()
def encode(self, client):
return self.body
@classmethod
def parse(cls, data, client):
pass
@class... | [
"yurzs@icloud.com"
] | yurzs@icloud.com |
33acf2dbdce1cad3789c71937820056da49397a9 | 2279440aae28b1934c78797421948d1ee2a50422 | /scraping/labs/lab8/tripadvisor/tripadvisor/spiders/comments.py | 3eb7ddb0eb422ff455a1dbe08a730d189de5c91c | [] | no_license | yeladlouni/m2i | a024e3f740977ae27675d11d4d4d5dacecf59705 | d245ffd76f5b4f2a7f8d37821b89dedbfcd81b69 | refs/heads/master | 2023-02-12T07:00:12.712614 | 2021-01-07T13:52:08 | 2021-01-07T13:52:08 | 308,609,873 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import scrapy
class CommentsSpider(scrapy.Spider):
name = 'comments'
allowed_domains = ['tripadvisor.fr']
start_urls = ['http://tripadvisor.fr/']
def parse(self, response):
pass
| [
"="
] | = |
06f7e5d64f3533d8064d85f7ddc3083d4ba331a8 | d37145afb8e788f00c52e33aa708df4685fd1822 | /jupyterlab/_version.py | 5827f0be5cc01bf3ecd2212a1755ad607fd96c5b | [
"MIT",
"BSD-3-Clause"
] | permissive | piqueen314/jupyterlab | d18909869a58a196b1616e88b959b65d98113f26 | f7a13f6a05aafca1ecaa4e41babc57b6ec385a52 | refs/heads/master | 2021-08-06T17:46:37.081852 | 2017-11-06T13:17:47 | 2017-11-06T13:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | version_info = (0, 29, 0, 'dev0')
__version__ = ".".join(map(str, version_info))
| [
"steven.silvester@ieee.org"
] | steven.silvester@ieee.org |
d2a906e840c696628c03915e80ab6534e291d253 | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /instagram_api/response/model/comment_translations.py | bbf2090de07a7f8e908de3c4cdb81372d7bf77c0 | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
__all__ = ['CommentTranslations', 'CommentTranslationsInterface']
class CommentTranslationsInterface(ApiInterfaceBase):
id: int
translation: AnyType
class CommentTranslations(PropertyMapper, CommentTranslati... | [
"root@proscript.ru"
] | root@proscript.ru |
6fb35da6b38e5e8a685ad2692319d35dd249394e | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/NCName/Schema+Instance/NISTXML-SV-IV-atomic-NCName-enumeration-5-4.py | 9e5ef92703e0c0d18b9c5344a4ce6a336bbc0dbb | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 568 | py | from output.models.nist_data.atomic.ncname.schema_instance.nistschema_sv_iv_atomic_ncname_enumeration_5_xsd.nistschema_sv_iv_atomic_ncname_enumeration_5 import NistschemaSvIvAtomicNcnameEnumeration5
from output.models.nist_data.atomic.ncname.schema_instance.nistschema_sv_iv_atomic_ncname_enumeration_5_xsd.nistschema_sv... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
a7f074b9ed6884b55e0d38eb262a82430585a1cd | 9ba68903665929f72d78409bdf9b8ff3733a6746 | /scientific_expedition/task19_yaml_simple_dict_v2.py | 4ef84703380890bb71ec4dcb6fdd4993de042f6a | [] | no_license | DorogAD/checkio | eed8ae9865dda45d2cb0a4201d51fb45e91aec8a | 5a151f861746dbd2e838dea40a30c20dbdeaa399 | refs/heads/main | 2023-02-27T21:11:50.638125 | 2021-02-07T11:04:04 | 2021-02-07T11:04:04 | 315,864,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | """
Have you ever heard of such markup language as YAML? It’s a friendly data serialization format. In fact it’s so friendly
that both people and programs can read it quite well. You can play around with the standard by following this link.
YAML is a text, and you need to convert it into an object. But I’m not asking ... | [
"sa_do@tut.by"
] | sa_do@tut.by |
9ff9b342d2e32f0f5814c37a460c480096cf8637 | 2a54a1d9996778362421299a936bb0dadaace958 | /units/adms/mysite/video/models/__init__.py | ef77e1a3c15686119e05351b1c721d4a259ea750 | [] | no_license | icprog/zktime_wlm | 6d0719b5210c4d3196b5958bccbb7e606785ece3 | 449c487ce4664dde734f8007a974ed883801d106 | refs/heads/master | 2021-03-21T10:20:54.157131 | 2018-11-24T04:10:42 | 2018-11-24T04:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from models import VideoPreviewPage, VideoLinkagePage
verbose_name = _(u"视频")
_menu_index = 5
def app_options():
from base.options import SYSPARAM, PERSONAL
return (
#参数名称, 参数默认值,参数显示名称,解释
('video_default_page', 'vide... | [
"657984027@qq.com"
] | 657984027@qq.com |
554afa3e7378aff2d8ee25f90fd12005cd72f244 | 2e69d2f140bb653938dc1b7238b85a4af4754123 | /metanic/__main__.py | 414e4d5a49e7fde55e4421a1917758ccb70b4e8e | [
"BSD-3-Clause"
] | permissive | metanic/services | f866d78e7207624cf4b420929d987b6005394d1d | a00b99f9b697864a078e2cb886be4d75c10458a9 | refs/heads/master | 2021-06-06T22:33:56.823827 | 2018-08-14T08:05:00 | 2018-08-14T08:05:00 | 115,375,318 | 0 | 0 | NOASSERTION | 2020-02-11T21:34:25 | 2017-12-26T01:57:09 | Python | UTF-8 | Python | false | false | 80 | py | #!/usr/bin/env python
from metanic import command_line
command_line.execute()
| [
"monokrome@monokro.me"
] | monokrome@monokro.me |
b0b371a2160af839a1375cb22c786957b9801837 | 6ab217b675b0d33dec9d8985efc2de314e3a7a28 | /menus/models/menu/models.py | a34c7d7e3baa63430deb2a70792201dff695a8c7 | [] | no_license | nujkram/dream_cream_pastries | 3547928af859ebbb93f8d6ff64d02796d8c61a0c | c6a764f4f2c16191661ee6747dc0daa896eae5ec | refs/heads/master | 2023-06-20T20:20:21.001373 | 2021-07-29T00:55:49 | 2021-07-29T00:55:49 | 375,721,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,630 | py | """
Dream Cream Pastries Project
Menu 0.0.1
Menu models
Menu
Author: Mark
"""
import uuid as uuid
from django.urls import reverse
from django_extensions.db.fields import AutoSlugField
from django.db.models import CharField
from django.db.models import DateTimeField
from django_extensions.db.fields import AutoSlugFiel... | [
"markjungersaniva@gmail.com"
] | markjungersaniva@gmail.com |
4acd8ea6336e7bf02139a24dd366e5ebe87c3059 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03126/s809270834.py | 61cb5d08d9d531977246b15447ef2eccf036d8fd | [] | 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 | 211 | py | N, M = map(int, input().split())
L = []
for i in range(N):
L.append(list(map(int, input().split())))
S = [0]*M
for j in range (N):
for k in range(1, L[j][0]+1):
S[L[j][k]-1] += 1
print(S.count(N)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c3c871f5185f3314548f9bbb499779353b18d90e | 90cea58e80309d2dff88f73f3a43ed5f943ff97d | /PalindromeMinInsertions_v1.py | 004cc7d2f2f6edadef6d3f7965a8554044d71501 | [] | no_license | SaiSujithReddy/CodePython | 0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341 | 4c05b7909092009afffa4536fd284060d20e462d | refs/heads/master | 2022-02-24T09:21:15.284745 | 2019-10-07T23:36:17 | 2019-10-07T23:36:17 | 106,611,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | #http://isharemylearning.blogspot.com/2012/08/minimum-number-of-insertions-in-string.html
'''
This problem can be two steps
step 1:- find longest common subsequence
step 2:- total string - common sub sequence = no of insertions
'''
#Things learnt
# creating a matrix and initializing with zeores
import math
def find_... | [
"sai.marapareddy@gmail.com"
] | sai.marapareddy@gmail.com |
41f535ff6ce551b3a9e0a46df9f6165c674a3c77 | 28e62867cd8d067f86e1aced1f0bf877abf33e68 | /naive_bayes/sohu_news_topic_classification_using_naive_bayes.py | dca4bf7f516a62c0a9224af2a2a8cf14f85d668a | [] | no_license | xiongfeihtp/scikit_learn | ffd462913deb8abc958311dbd0c13fe755468e51 | e97bbbd26ff47325cc0791ce241e9f1844feba9e | refs/heads/master | 2021-05-15T03:52:54.175922 | 2018-02-02T14:11:06 | 2018-02-02T14:11:06 | 119,989,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,560 | py | #! /usr/bin/env python
#coding=utf-8
# Authors: Hanxiaoyang <hanxiaoyang.ml@gmail.com>
# simple naive bayes classifier to classify sohu news topic
# data can be downloaded in http://www.sogou.com/labs/dl/cs.html
# 代码功能:简易朴素贝叶斯分类器,用于对搜狐新闻主题分类,数据可在http://www.sogou.com/labs/dl/cs.html下载(精简版)
# 详细说明参见博客http://blog.csdn.n... | [
"386344277@qq.com"
] | 386344277@qq.com |
11b0b57780fc2bb8391dfd861237d5444e9240ea | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/comparison/test_chart_display_units04.py | fc0490c067530d89aca6ff3e32dc9bee73d48d33 | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,160 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
2987363abf0a175a6d50f3ddbd9757b36709b381 | bec8f235b1392542560166dd02c2f0d88c949a24 | /autobahn/autobahn/wamp/uri.py | dacbea3980fd0a55929f7c1838274d21ccae7b8a | [
"Apache-2.0"
] | permissive | gourneau/AutobahnPython | f740f69b9ecbc305a97a5412ba3bb136a4bdec69 | 5193e799179c2bfc3b3f8dda86ccba69646c7ee3 | refs/heads/master | 2021-01-15T22:02:32.459491 | 2014-07-02T13:34:57 | 2014-07-02T13:34:57 | 21,437,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,339 | py | ###############################################################################
##
## Copyright (C) 2013-2014 Tavendo GmbH
##
## 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
##
## h... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
ba00017e1750e5d0c550591117dc58935839be12 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /buildtools/third_party/libc++/trunk/test/libcxx/test/format.py | 19c9fc742a497f950919188035ea06e067ed5417 | [
"BSD-3-Clause",
"MIT",
"NCSA"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 7,344 | py | import errno
import os
import time
import lit.Test # pylint: disable=import-error
import lit.TestRunner # pylint: disable=import-error
import lit.util # pylint: disable=import-error
from libcxx.test.executor import LocalExecutor as LocalExecutor
import libcxx.util
class LibcxxTestFormat(object):
... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
c320a6011e9be62d78fc5e08b3e9fbb8943f2cab | b1efb356e55df6a5f1243d803d51b8e9bb6e6938 | /nextgisweb/resmeta/__init__.py | e121253161e1db9ff2d05f3c3b4cccaaf10b7ef7 | [] | no_license | neroks/nextgisweb | 6fa6621824db05e51316bf993125f79773c97932 | 59ed0e9637a3df0e2388160d9871b435beeaa466 | refs/heads/2 | 2021-01-15T15:05:02.615869 | 2015-10-05T10:39:34 | 2015-10-05T10:39:34 | 43,687,459 | 0 | 0 | null | 2015-10-05T13:58:10 | 2015-10-05T13:58:10 | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ..component import Component, require
from .util import COMP_ID
from .model import Base
@Component.registry.register
class ResourceMetadataComponent(Component):
identity = COMP_ID
metadata = Base.metadata
@require('resource')
def ... | [
"me@dezhin.net"
] | me@dezhin.net |
44edd73cb45272446b82301c8236ea055efbeea5 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/ghostnet_quant/src/config.py | c5428ae53bc66a09547fb9cba9eba55da4895044 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,599 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
c3db3977e70bcce001aa8e9e81b214149ce62687 | f8104b29a8d0dbeb407060e494a206ca69335aeb | /tools/datasets/voc/voc_statistic.py | d3c9079646b9535e532a50f45ced63ee3ca400ec | [] | no_license | Sebastixian/wwtool | c19f665f96e8b942e94af47db590f5bb28072f06 | 2f462a3d028b766234d62a3ef706a0f08f10680a | refs/heads/master | 2023-06-01T04:21:22.066639 | 2021-06-25T07:40:13 | 2021-06-25T07:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import wwtool
coco_small_class = { 1: 'airplane',
2: 'bridge',
3: 'storage-tank',
4: 'ship',
5: 'swimming-pool',
6: 'vehicle',
7: 'person',
8: 'wind-... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
aaf2b699724a92ae1623e014c4f605c3897e122f | 5afb3dff6e99d9bf18208c83afb7a7d65f26bbd7 | /licode/st214.py | ccc8e64a5658d6d4189c7d1262b890e6fefb9db5 | [] | no_license | yanfriend/python-practice | 4b565e58db9cdc7596f9135a8f7b9bae4be18de3 | 236a74c0d1d84f730fa5d10146cc201a4c49567d | refs/heads/master | 2018-12-09T00:34:13.747045 | 2018-12-03T04:53:17 | 2018-12-03T04:53:17 | 62,094,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """
Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it.
Find and return the shortest palindrome you can find by performing this transformation.
For example:
Given "aacecaaa", return "a aacecaaa".
Given "abcd", return "dcb abcd".
"""
class Solution(object):
def sh... | [
"ybai@pinterest.com"
] | ybai@pinterest.com |
165978e3b27287415483b3ffd702ec1802c32d0c | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/mesh/add_mesh.py | a3505018edc9af7061b1bf528d128f8c7977162c | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | add_mesh = {
"input_folder_name": "Mesh_Methods",
"input_file_name": "AddMesh",
"output_package_name": "mesh",
"output_module_name": "add_mesh",
"doc_html": """
Adds a mesh object to the document.
""",
"syntax_html": {
0: ("arrVertices", "arrFaceVertices", "arrVe... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
18b97799ee7cf38b86f53f0b5afee75638cfc52f | ac2142d192bde034ae3c6d7e07045c39d9a34aa3 | /面试题/字典按value排序.py | b3ea5016619987b3864c95af55647a3b65e58e5e | [] | no_license | budaLi/-500- | ee33a93a6c7f7d36e30a29dd1e12634034712d12 | 69c42389717f003198f652035bfc922eac8a6fef | refs/heads/master | 2022-11-20T08:42:24.255264 | 2020-07-22T07:41:52 | 2020-07-22T07:41:52 | 281,352,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # @Time : 2020/7/22 15:14
# @Author : Libuda
# @FileName: 字典按value排序.py
# @Software: PyCharm
d = {'a': 24, 'g': 52, 'i': 12, 'k': 33}
def sort(dict):
# 会将字典变为元祖的形式
print(dict.items())
# revers代表是否逆序
dict = sorted(dict.items(),key=lambda x:x[1],reverse=True)
return dict
if __name__ == '__main... | [
"1364826576@qq.com"
] | 1364826576@qq.com |
ee03770234e0e1877af6b6d638fd9b1c0e787c32 | e3a7622a4d2e16b1683c183568341b39c0de88b4 | /PycharmProjects/PythonCodes/07-爬虫/01-urllib库基础用法/10-贴吧.py | 360f5374537cd289b22d10d8cba9973508583f52 | [] | no_license | TriggerDark/StudyCodes | 937a8f6988cb475d275ff429cd32df823e457296 | 6f2f339d47dbae10d55d6b6da1d7e107f7dec85f | refs/heads/master | 2022-02-09T13:52:10.895963 | 2019-03-30T13:38:55 | 2019-03-30T13:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | from urllib import parse
from urllib.request import Request, urlopen
def loadPage(url, filename):
"""
作用:根据url发送请求,获取服务器响应文件
url: 需要爬取的url地址
filename: 处理的文件名
"""
ua_headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3... | [
"2413044193@qq.com"
] | 2413044193@qq.com |
f48ad02a1442e3d0a72b9c11b4d7ebeb7243510d | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/examples/research_projects/information-gain-filtration/igf/igf.py | 99bd8c2d06d71ca1f60354c762eb8933eccdea89 | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 14,502 | py | # Copyright 2022 - Intel Corp. All rights reserved.
# Authors: Mayank Kumar Raunak, Javier Turek, Nicole Backage
import copy
import logging
import random
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from tqdm import tqdm
import joblib
from transformers import AdamW, G... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
5b65f2b9d93b31d704c150d79dd67ce87b6c23f7 | 47366be5cbee9d7e086291c20f97f10ab2bf74fe | /code/journal_gemello_all_homes_leave_one_out_cluster.py | ebdf022a4357b68316c0ca6f4ab5b8ca31c44d8f | [] | no_license | nipunbatra/journal | 3d44eed05c95970606649d17402da54fc0a415ff | 94a8b88589e8f60e6f0314f8c5a374f22336b3e9 | refs/heads/master | 2021-01-09T20:40:45.844121 | 2016-07-27T15:16:29 | 2016-07-27T15:16:29 | 62,874,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,837 | py | """
This code generates the prediction for a region when we use homes containing all data
"""
# NEED TO RUN ON CLUSTER
import sys
CLUSTER = True
if CLUSTER:
sys.path.insert(0, '/if6/nb2cz/anaconda/lib/python2.7/site-packages')
import numpy as np
import pandas as pd
import pickle
from collections import Ordered... | [
"nipunb@iiitd.ac.in"
] | nipunb@iiitd.ac.in |
2c70798e16ac553da37c52d63676ab39931ffc65 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/prometheus/python/pulumi_pulumi_kubernetes_crds_operators_prometheus/monitoring/v1/__init__.py | c08014ce868b9d012e89a5e5a10d7f8c359ea029 | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .Alertmanager import *
from .PodMonitor import *
from .Prometheus import *
from .PrometheusRule import *
from .Servi... | [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
520ff5a148a237cbc9d139f883a89e8e8f2cc1e3 | d53d639db5a7a71a904d811dc271e19f294baa9d | /Travel/travelsapp/migrations/0023_auto_20200621_1809.py | aa56e73621cff30fb92bfc4e61f6ae612c8b6535 | [] | no_license | sdrsnadkry/django | e8a0f6d91094ae27ef3d5aef0c0f667b0b917ce7 | 83126dec62da6a715fab8654852f46fdeedc30f2 | refs/heads/master | 2022-11-27T04:38:25.891650 | 2020-08-07T07:46:42 | 2020-08-07T07:46:42 | 285,762,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.0.7 on 2020-06-21 12:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travelsapp', '0022_bookings'),
]
operations = [
migrations.AlterField(
model_name='bookings',
name='date',
... | [
"sdadkry95@gmail.com"
] | sdadkry95@gmail.com |
5977f8f99167e8f39b9114736637b2fe01fddf7f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_bailed.py | 781bd6fa9e0ab38271aa62f4d74a985f9d2158ed | [
"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 | 216 | py |
#calss header
class _BAILED():
def __init__(self,):
self.name = "BAILED"
self.definitions = bail
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['bail']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
00865f4edca156b1bb9f7af208f6e517657f0266 | b2fb13181e5fe114c5b128f30b3946024347321d | /Day12/Day12.py | 7198292796be9bd1b8f45bd64509cd79c1d6188d | [] | no_license | darsovit/AdventOfCode2017 | 43aefaefcad866fde38ad960106d20ab1d8d28bf | 8db815ea2ea618e25dd5946988d88c34563f0ace | refs/heads/master | 2021-09-01T08:21:41.369752 | 2017-12-26T01:12:46 | 2017-12-26T01:17:42 | 113,674,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | #!python
def parse_line( line, state ):
first=line.split(' <-> ')
state['connections'][int(first[0])]=list(map(lambda x: int(x), first[1].split(', ')))
print(state['connections'][int(first[0])])
def build_group( state, base ):
state['indirect'][base]=set( [ base ] )
startlen=0
endlen=1
new_ent... | [
"darsovit@gmail.com"
] | darsovit@gmail.com |
fb0c35c791681a9e193d1bfbbc7378ee78426409 | 182c651a9b00b9b4d80e6d51ae574cb793958cd6 | /quick/tutorials/extending/chapter3-bindings/chapter3-bindings.py | aa415cc1f6041c84a4719a593559bf809dbe9dc5 | [] | no_license | eudu/pyqt-examples | c61a7108e1fbfcf2cd918a0f99e9a5a90a3f305c | 8e533b7b3c5e9bbe0617ef1ecb9b169dd216c181 | refs/heads/master | 2020-03-16T01:23:19.573347 | 2018-05-06T20:20:57 | 2018-05-06T20:20:57 | 132,438,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | #!/usr/bin/python3
#############################################################################
##
## Copyright (C) 2018 Riverbank Computing Limited.
## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENSE:BSD$
## You may use this file und... | [
"dukalow@gmail.com"
] | dukalow@gmail.com |
d16aa6923b579e95b3a303185a0f8ef9a768ae8a | 261eba086816dbb3db4836c9b1e5869ccf0f8bae | /牛顿迭代法求解非线性方程/main.py | aa97a1a66a5a9ba51a601b6eb2e5e2b6e71c7523 | [] | no_license | budaLi/jianzi | e316bdfb25587d14d38f1bea98772bce5ac69198 | bca098de0f06ae1c78afc3203dfb0eea6a412dee | refs/heads/master | 2023-05-02T19:33:25.752799 | 2021-05-25T08:03:24 | 2021-05-25T08:03:24 | 271,513,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | # coding=utf-8
# Copyright (c) 2020 ichinae.com, Inc. All Rights Reserved
"""
Module Summary Here.
Authors: lijinjun1351@ichinae.com
"""
from numpy import *
import numpy as np
def Fun(x,num): #方程组在这里,两个变量分别是x的两个分量,num是未知数个数,这里是2,f是2个方程组
i = num
f = np.zeros((i),dtype=float)
f[0] = x... | [
"1364826576@qq.com"
] | 1364826576@qq.com |
2fdbf5995d22d446b67b4557c6fa3d84c77f7861 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-AVFoundation/PyObjCTest/test_avmusicevents.py | c80ab744d2f180dcafae94f772ee789b8b375805 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 4,577 | py | import AVFoundation
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestAVMusicEvents(TestCase):
def test_constants(self):
self.assertIsEnumType(AVFoundation.AVMIDIControlChangeMessageType)
self.assertEqual(AVFoundation.AVMIDIControlChangeMessageTypeBankSelect, 0)
self.as... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
b5ed87c30787e2e63e8deee43faf70ddc16b3e07 | 944401a6292baa2d23b9738898e0b0cb199d0795 | /color_quantization/median-cut/img_quality_assessment(IQA)/ssim/lab_cs/lab_ssim.py | 7d495b83f9e669fec5604bdd7a7b921d4422055b | [] | no_license | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 1,355 | py | """
image quality assessment (IQA) of the quantized images and the original image in L*a*b* color space
----- method: SSIM
----- version 1.0 (skimage library)
----- http://scikit-image.org/docs/dev/auto_examples/transform/plot_ssim.html
"""
import numpy as np
import csv
from PIL import Image
import skimage
from skim... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
a285c1fb0cced66886bb31bfdeadbcf093397cb3 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_ble_adafruit/tone_service.py | 9b2c3972b4b73af73af5cfe20532239dce11384f | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | # The MIT License (MIT)
#
# Copyright (c) 2020 Dan Halbert for Adafruit Industries LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
0cbb3fd6548df0a2c7dbfccdbd9d8f5aa52fcbf4 | 74eee5bdaae10b2cfbd936e3c10cc9c91b9220e0 | /Chapter 10 - Binary Trees/10.5_sum_of_binary_paths.py | b2597339593a8a6654df8b23d61e02bd1bb35045 | [] | no_license | kishan/Elements-of-Porgramming-Interviews-Python-Solutions | abc02af36102e059f7213610ce948a000879e9ec | 32fe89b4927da8e026ff27a6b9894f639a8a2de9 | refs/heads/master | 2020-12-25T06:52:42.729405 | 2016-08-26T16:08:40 | 2016-08-26T16:08:40 | 62,021,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | """
Consider a binary tree in which each node contains a binary digit
Design an alogirthm to compute the sum of the binary numbers represented by the root-to-leaf paths
"""
def sum_to_root(node, partial_sum=0):
if node is None:
return 0
partial_sum = partial_sum*2 + node.data
if (node.left is None) and (node.r... | [
"kspatel2018@gmail.com"
] | kspatel2018@gmail.com |
af588fafe20c072ff22dc603dd5b083235819834 | 9f835d53232e954805b7ed1d93889e409209b36b | /2920.py | 3fe5d6d26574cdf3a6e64e3a56708f6a5b2b8766 | [] | no_license | dmswl0311/Baekjoon | 7c8a862fceff086b3d7740eef23b80164e1d5aeb | 22040aff6b64d5081e86d91b0d118d1a718a4316 | refs/heads/master | 2023-04-29T13:48:51.448245 | 2021-05-26T14:35:32 | 2021-05-26T14:35:32 | 323,482,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | num_list = list(map(int, input().split()))
ori_list = [1, 2, 3, 4, 5, 6, 7, 8]
if num_list == ori_list:
print("ascending")
elif num_list == sorted(ori_list, reverse=True):
print("descending")
else:
print("mixed")
| [
"dmswl_0311@naver.com"
] | dmswl_0311@naver.com |
a1a3d80bb3ff411b6a757c8662ed29b06d159dea | 4236d1c3b153847f888402af5dd218fe4004fddc | /events/models.py | 1fc1f12110011a0687ae2dbd3c8b8e0663e5ceef | [] | no_license | zurcx/zurczevents | 6feaae655dcc7bac08a9366e72e65da0ecace69d | 5134841e0afca3bc1f88e1d27980a58f91f5d984 | refs/heads/master | 2020-05-31T04:40:55.735346 | 2013-08-02T18:07:22 | 2013-08-02T18:07:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | #encoding: utf-8
from django.contrib.auth.models import User
from django.db import models
from django.core.urlresolvers import reverse
class Event(models.Model):
TYPE_CHOICES = (
(1, u'Workshop'),
(2, u'Dojo'),
(3, u'Palestra'),
)
name = models.CharField(verbose_nam... | [
"luizfabiodacruz@gmail.com"
] | luizfabiodacruz@gmail.com |
7e326d364c90b3db321f8fa3fbc2d170629e46e8 | c779cb47c0f0966b958fe06b15a312fba4219392 | /blender_3dmigoto.py | 0df150053d0556bb21887cef4b91000f254844da | [] | no_license | funeko/3d-fixes | 75896497366d4bc63aa710a9ccd04eb191cb9695 | ee85033ecee8c156b7fe12d2eef7edc98f967210 | refs/heads/master | 2020-05-09T18:17:14.158749 | 2019-04-14T14:49:57 | 2019-04-14T14:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,966 | py | #!/usr/bin/env python3
bl_info = {
"name": "3DMigoto",
"author": "Ian Munsie (darkstarsword@gmail.com)",
"location": "File > Import-Export",
"description": "Imports meshes dumped with 3DMigoto's frame analysis and exports meshes suitable for re-injection",
"category": "Import-Export",
"tracker_... | [
"darkstarsword@gmail.com"
] | darkstarsword@gmail.com |
935f188168e56f7d9e289270aa76cbc5f4770897 | 08db28fa3836c36433aa105883a762396d4883c6 | /combine/opencv.py | eb63b33de40c9e1e7a9507722be5ef552d7aa6ad | [] | no_license | xieyipeng/FaceRecognition | 1127aaff0dd121319a8652abcfe8a59a7beaaf43 | dede5b181d6b70b87ccf00052df8056a912eff0f | refs/heads/master | 2022-09-19T07:02:33.624410 | 2020-06-02T03:03:58 | 2020-06-02T03:03:58 | 246,464,586 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | # -*- coding: utf-8 -*-
import sys
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from test_mtcnn_wider import face_detect
import cv2
import numpy as np
from test_vgg_ck import emotion
class picture(QWidget):
def __init__(self):
super(picture, self).__in... | [
"3239202719@qq.com"
] | 3239202719@qq.com |
a76b9eac5f02dc7d1cba5dc8630389d9c75deb48 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/g5m.py | 910c92044b50634fcd09dc453862a7359afa1fb9 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
56b182e8d53ba51c9edcdf868deccdbc7b7f37a1 | eb9ed8351d2e0bb4655c5970e91280767703f1a9 | /user_app/admin.py | 8556d66f35b7faaaf72c4fe7c99710b43de13661 | [
"Apache-2.0"
] | permissive | lmyfzx/Django-Mall | b8c03a7d2ddd56cde7f44b2f9bc8c08a486febab | 13cb59130d15e782f78bc5148409bef0f1c516e0 | refs/heads/master | 2023-01-23T10:17:46.477968 | 2020-11-21T12:44:02 | 2020-11-21T12:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | #
# from django.contrib import admin
# from user_app.model.seller_models import Shoppers, Store
#
#
#
# # Register your models here.
#
#
# @admin.register(Store)
# class StoreAdmin(admin.ModelAdmin):
# list_display = ('store_name', 'shopper_name', 'shop_grade', 'start_time', 'province', 'attention')
# # readonl... | [
"syz247179876@126.com"
] | syz247179876@126.com |
60712320e294e2dfe3916fa779900d93f683284e | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/zhzd_add_20190618133428.py | 2ed7c6ff4cf5a493ab9a2255b061e4b7b4995775 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
import pandas as pd
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd5')#txt目录提取
emrtxt2s = EMRdef.txttq(u'D:\DeepLearning ER\EHRsex')
ryzd = []
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
de3c80a29cae8376ab53c57e9b03610ba50b9701 | fdafd2ef8a26a3e9ee6a4016ec6272516d64168f | /zeta_python/completed/2161.py | 15de788098d2c3241e90ba87cd8ff4e261a537c9 | [] | no_license | yenru0/CodeObjecct | 322d669d9e70b7202e5e527cda27da0b1e8f273d | b9d5260b973d7435c089c49bc8867be5d2be4d85 | refs/heads/master | 2021-06-28T06:13:57.978205 | 2021-03-13T00:47:53 | 2021-03-13T00:47:53 | 221,762,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from collections import deque
def solve(N):
queue = deque(range(1, N + 1))
cnt = 1
ret = []
while len(queue) != 1:
if cnt % 2 == 0:
queue.append(queue.popleft())
else:
ret.append(queue.popleft())
cnt += 1
cnt %= 2
ret.append(queue[0])
re... | [
"yenru0604@gmail.com"
] | yenru0604@gmail.com |
797e0c3022cbfa099c71ee491210295c6c2e5f00 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YnsBcniRG9k77SSvA_10.py | 16e0a01c189baa0333bd56f0825414d0eee0fe66 | [] | 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 | 944 | py | """
Imagine a school that kids attend for 6 years. In each year, there are five
groups started, marked with the letters _a, b, c, d, e_. For the first year,
the groups are _1a, 1b, 1c, 1d, 1e_ and for the last year, the groups are _6a,
6b, 6c, 6d, 6e_.
Write a function that returns the groups in the school by year ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bfc4c70e5c4e5c20ff937ed96aa580ee5ad5d6f9 | 1c3ce4f21ce62ecfe5f0cfe1281ad912645b39bf | /genename2lrgref.py | 89174d67bb82b9aff523d8371876e93dfe7727e1 | [] | no_license | tz2614/softwarecarpentryworkshop | 6694d8d02ebbc71c74786e6ab477bdac716cdccf | c54301c7cc4ea890275f2a159322a4e5f0e39560 | refs/heads/master | 2021-08-08T03:19:18.534877 | 2017-11-09T12:44:08 | 2017-11-09T12:44:08 | 109,675,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | def genename2LRGref(gene):
#open and read LRGref list text file
f = open(lrgtext, "r")
#create a list of genenames, and a list of LRGrefs
genenames = []
LRGref_list = []
# iterate over the lines in the file
for line in f:
# split the line into a list of column values
if line s... | [
"tony_zheng35@hotmail.com"
] | tony_zheng35@hotmail.com |
ea4d3dd5fac2f2a29c107888f8bd6ad956851aad | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/services/types/campaign_audience_view_service.py | d277ef408ed541f9f6207c7ac87117215b11457c | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c1b06abef4ce43d403bca1d6da1c63f136747d47 | 2b6715706ca85570e23188d7ffcb716e8e204f1b | /00Python代码/03Pentest_通过搜索引擎搜索关键字/enginesearchV2.0.py | af27d72c3cea7ef56fee73b6fcba746af7592aaf | [] | no_license | thinks520/CodeRecord | 3c2e9e11082ec305dc3352a2b4a034795f2b2182 | a9d32b9761de7a21030765a9f4ad41df94b88c63 | refs/heads/master | 2020-03-23T14:27:39.166999 | 2018-07-19T14:12:25 | 2018-07-19T14:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #!/usr/bin/python
#coding:utf-8
import requests
from lxml import etree
input=open('fangong.txt','r')
output1=open('result-10086.txt','w+')
for param in input:
baseurl='http://www.baidu.com/s?wd=inurl:10086.cn intext:"'+param+'"&rsv_spt=1&rsv_iqid=0xfbe8f0570001a8a4&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=baiduho... | [
"ljressrg@gmail.com"
] | ljressrg@gmail.com |
87e16b4002f252ff4e14773750a8d2a08e3f95b5 | 17ca5bae91148b5e155e18e6d758f77ab402046d | /M_BH_relation/read_MBH_form.py | 569af31bc6704cb0978eb63f565b592b46f0f811 | [] | no_license | dartoon/QSO_decomposition | 5b645c298825091c072778addfaab5d3fb0b5916 | a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15 | refs/heads/master | 2021-12-22T19:15:53.937019 | 2021-12-16T02:07:18 | 2021-12-16T02:07:18 | 123,425,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 09:34:27 2018
@author: Dartoon
"""
import numpy as np
import astropy.io.fits as pyfits
import matplotlib.pyplot as plt
f = open("fmos_MBH_table","r")
with f as g:
lines = g.readlines()
porp_list = lines[0].replace('#','').split(' ')
samples... | [
"dingxuheng@mail.bnu.edu.cn"
] | dingxuheng@mail.bnu.edu.cn |
187862d60f6dd31623819405c6071193862cdcef | 08ab565444e52429c3ece47ee0bc014b0a04e08a | /backend/feedback/api/serializers.py | bdf744970ff552452828d7676fd6eabfa1b62c91 | [] | no_license | ScrollPage/Hackatom | 70bb2246df3c0cd7da51dbab941d3303a831f887 | 5bbeb5bf4936502f5d6d8e8b400f912583ab9d4e | refs/heads/main | 2023-03-20T05:06:07.505978 | 2021-03-15T16:58:42 | 2021-03-15T16:58:42 | 336,541,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from rest_framework import serializers
from feedback.models import Rating
class RatingSerializer(serializers.ModelSerializer):
'''Сериализация лайка'''
class Meta:
model = Rating
fields = ['star', 'initiative']
def create(self, validated_data):
rating, _ = Rating.objects.update_o... | [
"54814200+reqww@users.noreply.github.com"
] | 54814200+reqww@users.noreply.github.com |
1644959f163792831f61fb27b876ea4ff1202e1b | 685f0f77fe85a15eb3835ff8cf457f5247e63205 | /backend/pickme_28419/wsgi.py | d6ee64c18c150f961af89cc9437ec158a87aba81 | [] | no_license | crowdbotics-apps/pickme-28419 | 7cdb7d226ea250fddbd93d0499e454ab6e889eab | 150334826c29a3ce8e05ef80442d8870303f22f2 | refs/heads/master | 2023-06-07T02:20:26.895149 | 2021-07-04T01:17:02 | 2021-07-04T01:17:02 | 382,738,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for pickme_28419 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7500c1826864a576d104db5f293a7f1ef125c122 | 31e90bec77ca264efd0867df1a8fceaa68e2749e | /chat/consumers.py | f141219d1ca17b646cdb312a39ab2b88e33646d5 | [] | no_license | safwanvk/ZabChat | c4621d45132b195bcd625647e04757e874730c98 | fb542062a1bd32e66d026e5cd0924ba166a50aec | refs/heads/master | 2022-11-19T20:32:23.201765 | 2020-07-17T15:22:01 | 2020-07-17T15:22:01 | 280,459,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
# Join room group
await... | [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
882c42cdf5dd921eca2da25a39ae8e01e16541c7 | 7df0845fdfb8597e2ed45b87a28fa61be9b63db7 | /0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py | b1f69f3fe68067a294fac544fef07864c61df95c | [] | no_license | yawzyag/holbertonschool-higher_level_programming | 0663903ea947b26e42b70892cd8ba8b1d6ef4af6 | 81036be0d13f22175f103f81fcddbf88308413c2 | refs/heads/master | 2020-05-18T02:06:39.595953 | 2019-09-26T21:59:14 | 2019-09-26T21:59:14 | 184,106,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/python3
"""Start link class to table in database
"""
import sys
from model_state import Base, State
from model_city import City
from sqlalchemy import desc, asc
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
engine = create_engine(
'mysq... | [
"yesid.yag@gmail.com"
] | yesid.yag@gmail.com |
6f55109e0fb795a6e582f8b960aa89fa57ad4294 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioCharacterEmotionExcelTable.py | 2d37dc38d982bf713f5b0563564912d8e67edd9b | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ScenarioCharacterEmotionExcelTable(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n =... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
9b7254d8e461320bcfbb1dcb7d9fe00fccd73a73 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/54/usersdata/75/24223/submittedfiles/av1_p2_civil.py | 24b2b449ae48b2fda2bd494854cfe8e0fa7b3cee | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # -*- coding: utf-8 -*-
from __future__ import division
def abs(x):
if x<0:
x=x*(-1)
return x
else:
return x
def maior(lista):
maior=lista[0]
for i in range (0,len(lista),1):
if lista[i]>maior:
maior=lista[i]
return maior
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d484f72f6efc4eb7626c7aacb752aea1c75a0017 | 76e931912629c37beedf7c9b112b53e7de5babd7 | /3-mouth04/总/project/day06/ddblog/topic/models.py | 167616ddd78fc3b638a7041c6b35f892c7c7bbd1 | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django.db import models
# Create your models here.
from user.models import UserProfile
class Topic(models.Model):
title = models.CharField('文章标题', max_length=50)
category = models.CharField('文章分类', max_length=20)
# public private
limit = models.CharField('文章权限', max_length=20)
introduce = mo... | [
"673248932@qq.com"
] | 673248932@qq.com |
191612a710061c4420bd155af34bf77bd96caf71 | 43aece1d354d6cfbacb22f30eae1d7ff1de83b09 | /moka/tests.py | 149ecb173d749b1edea6f1a87601cadd5598576a | [
"MIT"
] | permissive | harpiya/moka | 230342914b897fd373890e90497ca52acc8f7a96 | 220c4501dc37cc8db8213f2275a071d7b5bc3f69 | refs/heads/master | 2020-04-17T09:43:00.771430 | 2019-01-20T18:52:51 | 2019-01-20T18:52:51 | 166,470,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # @Author: Saadettin Yasir AKEL <developer>
# @Date: 2019-01-20T17:55:20+03:00
# @Email: yasir@harpiya.com
# @Project: Harpiya Kurumsal Yönetim Sistemi
# @Filename: tests.py
# @Last modified by: developer
# @Last modified time: 2019-01-20T18:33:16+03:00
# @License: MIT License. See license.txt
# @Copyright: Harpiy... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
4b9bd5ab17684670b1321f414c01d15bf2d024c0 | 95363198c3af43c3cc74ef8131d556e566c75f7a | /diffusion_utils/utils/paths.py | acdad56e8e51202469e6d1b71805a9cb81a86b6c | [] | no_license | shinypond/multinomial_diffusion | 59fde847fd0afea3c4668d9481ea9e4e646be787 | 66f17340e4cd200059bff228cf98a597bf084c26 | refs/heads/main | 2023-08-03T15:23:47.578895 | 2021-09-11T12:10:15 | 2021-09-11T12:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import os
import sys
def add_parent_path(level=1):
script_path = os.path.realpath(sys.argv[0])
parent_dir = os.path.dirname(script_path)
for _ in range(level):
parent_dir = os.path.dirname(parent_dir)
sys.path.insert(0, parent_dir)
def add_parent_paths(levels=[1,2]):
for level in leve... | [
"e.hoogeboom@gmail.com"
] | e.hoogeboom@gmail.com |
ba423c85f30eb13f5611de3d74f83b05a0a19409 | 7ef5bb39938e669b5571a097f01d96ee53458ad6 | /clone_graph/solution2.py | ef2aa47e3dce48a03fd9dbd320701e39f4c2005d | [
"BSD-2-Clause"
] | permissive | mahimadubey/leetcode-python | 61cd135515b26644197b4736a92a53bb1a5870a6 | 38acc65fa4315f86acb62874ca488620c5d77e17 | refs/heads/master | 2020-08-29T09:27:45.232412 | 2019-10-28T08:06:52 | 2019-10-28T08:06:52 | 217,993,547 | 0 | 0 | BSD-2-Clause | 2019-10-28T07:55:38 | 2019-10-28T07:55:38 | null | UTF-8 | Python | false | false | 1,272 | py | """
Clone an undirected graph. Each node in the graph contains a label and a list
of its neighbors.
"""
# Definition for a undirected graph node
# class UndirectedGraphNode(object):
# def __init__(self, x):
# self.label = x
# self.neighbors = []
class Solution(object):
def cloneGraph(self, nod... | [
"shichao.an@nyu.edu"
] | shichao.an@nyu.edu |
d022f4d82a5a6e613b95c709b5771d693fb92b4c | 9b02c05a71be741d8c33b59890a1fc9af51b3ba8 | /items_Log_to_Board.py | bb1b6b0ffa75920cf510403be43682fd93da452e | [] | no_license | craymaru/ultima-online-razor-enhanced-scripts | a524cfcfcf5ae0c780528a4cc95005a4817655f5 | 2190b6424480d035c1ea8adda97a956f66e1609d | refs/heads/master | 2022-12-10T09:21:43.664742 | 2022-11-27T15:17:11 | 2022-11-27T15:17:11 | 240,029,926 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | Misc.SendMessage("AXE?", 53)
axe_serial = Target.PromptTarget()
log_id = 0x1BDD
board_id = 0x1BD7
log_colors = {
0x0000: "Log",
0x07da: "Ork",
0x04a7: "Ash",
0x04a8: "Yew",
0x04a9: "Heartwood",
0x04aa: "Bloodwood",
0x047f: "Frostwood"
}
# DEFINES
def PutItemToBank(item_id, amount):
ite... | [
"craymaru@gmail.com"
] | craymaru@gmail.com |
6f8e46a58facc95761a795ca1509a66b63b362aa | 7d43ba52d958537905cfdde46cc194a97c45dc56 | /PL/Python/library/operating_system/standart_library/os.py | 41f4e75f18ffc7a0d2aa74c2dc8d78be54553b8e | [] | no_license | Koshmatova/workbook | 3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd | 902695e8e660689a1730c23790dbdc51737085c9 | refs/heads/master | 2023-05-01T02:30:46.868027 | 2021-05-10T03:49:08 | 2021-05-10T03:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,187 | py | os
#по сути запускает nt на win и posix На других ос
#СОДЕРЖИТ дескрипторные файлы
.name:'posix'|'nt'|'mac'|'os2'|'ce'|'java'
#имя ос
.environ:dict
#mutable словарь v окружения
#obj сопоставления(proxy?) с dict v пользовательской среды
#позволяет добавлять/удалять v окружения
... | [
"mkone112@gmail.com"
] | mkone112@gmail.com |
44bc5eb8810a57ea9c8b0764fe032720ae388e02 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/devel/lib/python3/dist-packages/tf2_msgs/msg/_LookupTransformActionGoal.py | 6b1aed424005e57d0c94295a80e81141492594c7 | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | /local-scratch/xlv/catkin_ws/devel/.private/tf2_msgs/lib/python3/dist-packages/tf2_msgs/msg/_LookupTransformActionGoal.py | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
216375b04dadfc2f8857cb1a6300c1c69a16f350 | c61a28aba19f7cdf9a5127e8a782bf115c265e70 | /env/bin/csscapture | 84fbd44daf929a1a716e351d19990cf1389614cf | [] | no_license | sharmilaviji/RecruitPRO-NEW | fa72c8fc00f469a41798b1047c11dcc470fbc495 | dcfaedebe56b45acd6ddcab7e24c939b853a2c8c | refs/heads/master | 2021-05-26T12:14:12.611154 | 2020-04-27T04:40:50 | 2020-04-27T04:40:50 | 254,125,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/sharmila/frappe-bench/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from cssutils.scripts.csscapture import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sharmiviji1997@gmail.com"
] | sharmiviji1997@gmail.com | |
09e0e639e78b5d589ce1b29c07d10a0f7a616734 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/index/views_20210226000505.py | c8c780a29137164e7ee593f6beb0b9fcf9216d35 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.shortcuts import render
from .model import AboutSite
def home(request):
aboutdata=AboutSite.objects.all()
context=[
'about'=
]
return render(request,"index.html")
def blog(request):
return render(request,"blog.html")
| [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
11b059a875363c44c367c680d055a178be4e0f45 | 448d028fb4b4703f0be32e0e6780a389c13b3914 | /semaphore_example.py | a95d141ccab4b526b728c7a8687c06b03c191811 | [] | no_license | katryo/python-threading | 9453dd377d7ab4aebbdb3bc9c222b4fe4d3cf156 | f65ebe725f86463f2e97d9426d233257c91518cd | refs/heads/master | 2020-04-21T22:48:41.737864 | 2019-02-09T23:33:53 | 2019-02-09T23:33:53 | 169,925,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from threading import Semaphore, Thread
from datetime import datetime
from time import sleep
class Runner:
def run(self, sem):
for _ in range(3):
with sem:
print(datetime.now())
sleep(1)
if __name__ == '__main__':
sem = Semaphore(2)
runner = Runner()
... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
b0766213ff36f4e3e57f2f14e1eac7fa6f65c9c3 | 13c14be20f16ffc14b7cde71ed8c4179e2410a0b | /algorithms/lisa-workbook.py | ac24edf42812ac4ec504b5bb62318e9c230d6018 | [] | no_license | gautamits/hackerrank | 79688e5735a27eed032ce0c34f4fe253cfb6b572 | aee6b00f4cd39c18e9107e933cceb55b9677c3c7 | refs/heads/master | 2020-05-21T22:55:50.977437 | 2018-12-11T05:09:36 | 2018-12-11T05:09:36 | 61,579,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/bin/python3
import math
import os
import random
import re
import sys
from itertools import count, zip_longest
# Complete the workbook function below.
def workbook(n, k, arr):
page=count(1)
return sum([len([1 for probs in zip_longest(*[iter(range(1, num_chpt_probs+1))]*k) if next(page) in probs]) for num_chp... | [
"gautamamits95@gmail.com"
] | gautamamits95@gmail.com |
b89e6a9365194978cfa8663dd987ce19fe88410a | 72012dc3877b16b25f43cd62df1fc081c8f9299d | /my_site/views.py | 891f45eebcd96f9059c7081e4bfc31f47c753146 | [] | no_license | volitilov/wf_v2 | e12962bf1fbf3b6e73bd67bcccffc4e218575e5b | 1c2f585926f8258b208ad52f7ffa40576b4b37e2 | refs/heads/master | 2021-01-21T17:37:35.465356 | 2017-05-28T17:53:38 | 2017-05-28T17:53:38 | 91,968,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.template.context_processors import csrf
from django.shortcuts import redirect, render, get_object_or_404
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponse, HttpResponseRedirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models imp... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
381fbd0dd22da0e55005395e2daaaf7acec16583 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/bases/connector-acceptance-test/connector_acceptance_test/utils/compare.py | e71b1bafdc55d4db015a2835ce578c908a0db98f | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 3,254 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import functools
from typing import List, Mapping, Optional
import dpath.exceptions
import dpath.util
import icdiff
import py
from pprintpp import pformat
MAX_COLS = py.io.TerminalWriter().fullwidth
MARGIN_LEFT = 20
GUTTER = 3
MARGINS = MARGIN_LEFT + GUTTE... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
6b910e42492be063380898c263fff9db242597d7 | bf2aa4eab14a6a5347fe4af65cc4a37f512a465d | /people/migrations/0185_auto_20211228_1012.py | f7d8a97b37ffb72adfa1415ed169341a3c45484d | [] | no_license | drdavidknott/betterstart | 0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c | 59e2f8282b34b7c75e1e19e1cfa276b787118adf | refs/heads/master | 2023-05-04T07:32:24.796488 | 2023-04-16T15:26:30 | 2023-04-16T15:26:30 | 173,626,906 | 0 | 0 | null | 2023-02-18T07:27:55 | 2019-03-03T20:37:01 | Python | UTF-8 | Python | false | false | 2,187 | py | # Generated by Django 3.1.13 on 2021-12-28 10:12
from django.db import migrations, models
import django.db.models.deletion
import people.django_extensions
class Migration(migrations.Migration):
dependencies = [
('people', '0184_survey_question_survey_question_type'),
]
operations = [
mi... | [
"dkoysta@gmail.com"
] | dkoysta@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.