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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38bce75079ce164fe87dc117949cb92e2415a757 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2019_08_01/aio/operations/_iot_security_solutions_analytics_recommendation_operations.py | 747c3f884dbdb810d61fc76eb3ca65736afd6eef | [
"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 | 10,172 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
3673d31ddf8ca1389d90922a026c2a97552f3315 | 236ded75aefcf965c582538f1b56d21b161cd3c5 | /ethpki-Random/testDir/callct019.py | 4da9f9b228ff9028f8d95b249bf707cff77f623f | [] | no_license | rogerioita/ICPChain | 7fc1c7c5df289ed31fd2ad71cee400eac3d253cb | 87f2b001f5297396be6cb3aa9dd0c42236587038 | refs/heads/master | 2023-03-10T20:57:49.479052 | 2021-02-16T16:27:23 | 2021-02-16T16:27:23 | 336,806,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #!/usr/bin/env python
import os
os.system('node ct019.js')
| [
"rogerio.santos@ga.ita.br"
] | rogerio.santos@ga.ita.br |
82c59e960c39ab218f51fa905bfc31f414b29f22 | c98a1f74ea576d670d094d5e5259bfe2e4449b88 | /PKUTreeMaker/test/CrabJobsSrc/MC/crab3_analysisWGToLNuG.py | afc4cbad75468874b348a42e7c1d3813ea0b8177 | [] | no_license | AndrewLevin/VBSWG_Ntuple | d71544d2b233eb0e88d185d947bbf32a32fbca18 | 37eac7ad4d03eb0d4a463f9f121c4e998f0c5a34 | refs/heads/main | 2023-02-21T11:42:28.642572 | 2020-12-01T15:31:37 | 2020-12-01T15:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'fullrun2_2017_version5_WGJets_v1_2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.maxMemoryMB = 3000
config.JobType.pluginName = 'Analysis'
config.JobType.i... | [
"15827238926@163.com"
] | 15827238926@163.com |
fa2eb58fd5bab605020259e31f53b962d74cc371 | adf65dbe1a15560f3b4930fa393c2327f29ab3c2 | /myapp/web/tests.py | d96c0860d6d36ca40c0104798f20c4fc07269a90 | [] | no_license | sanix-sandel/my_app | ebe59d186824f6539a2b392dd7cf992bccb221c0 | 652e83f2128039ed979cc90f9254fb54d21ebcea | refs/heads/master | 2023-03-30T09:21:46.513036 | 2021-03-26T06:06:09 | 2021-03-26T06:06:09 | 351,671,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.test import SimpleTestCase
from django.urls import reverse
class HomePageTests(SimpleTestCase):
def test_homepage_status_code(self):
response=self.client.get('/')
self.assertEqual(response.status_code, 200)
def test_homepage_url_name(self):
response=self.client.get(re... | [
"sanicksikani@gmail.com"
] | sanicksikani@gmail.com |
87bcb438a3c173c9b0e8bb2115a0d3b8841aef86 | 20d88c37924ec96d5b5d02eb13edc93c21a25b9a | /Uniq/urls.py | efbcc5ab61794b6fd3d5dd26134c158836230ffd | [] | no_license | AthifSaheer/UniqWalls-Wallpaper | d51c9e99153473427ead8a7b16631f860502a09c | c392732d239fb3174bd6e7c7c9b758cf12545f20 | refs/heads/main | 2023-06-03T22:33:02.606873 | 2021-06-05T01:28:48 | 2021-06-05T01:28:48 | 337,617,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | """Uniq URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"liteboook@gmail.com"
] | liteboook@gmail.com |
a272068aded03c076ca4db904383d5ed9b2fb3ff | 596f34bab8addf7626364a9c39da566c0de8ba2d | /applications/tensorflow/click_through_rate/dien/dien_infer.py | d6ce08a95a8823f101e2806813c85b3ff4d89b91 | [
"MIT",
"Apache-2.0"
] | permissive | WN1695173791/examples | 1661c404cc92cf4e4d138aa1b6b7f6cff3b5ecdb | ceb1a598ccc6136d6c145b9e8b7a5a3e938de7fe | refs/heads/master | 2023-04-06T17:02:48.823007 | 2021-04-15T12:55:26 | 2021-04-15T12:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,907 | py | # Copyright (c) 2020 Graphcore Ltd. 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 ... | [
"philb@graphcore.ai"
] | philb@graphcore.ai |
ae903173e3955111b0b3161395c12e408a48aa9e | 940d7b93fb27e8eead9b6e52bc5c7444666744dd | /python/src/Lib/test/test_unary.py | 9854f64d0ce1c69165d5d924590565058f570e20 | [
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"Apache-2.0"
] | permissive | pilotx45/sl4a | d446531d310cc17d93f24aab7271a0813e8f628d | 150e3e46b5103a9b9a391034ef3fbc5bd5160d0f | refs/heads/master | 2022-03-24T19:48:30.340479 | 2022-03-08T16:23:58 | 2022-03-08T16:23:58 | 277,016,574 | 1 | 0 | Apache-2.0 | 2022-03-08T16:23:59 | 2020-07-04T01:25:36 | null | UTF-8 | Python | false | false | 1,802 | py | """Test compiler changes for unary ops (+, -, ~) introduced in Python 2.2"""
import unittest
from test.test_support import run_unittest, have_unicode
class UnaryOpTestCase(unittest.TestCase):
def test_negative(self):
self.assert_(-2 == 0 - 2)
self.assert_(-0 == 0)
self.assert_(--2 == 2)
... | [
"damonkohler@gmail.com"
] | damonkohler@gmail.com |
805e86d4a9542ddd6fa295eb01cfeba9b28cf056 | 7e29e8e9979d05cd4521512a0e12ffd516b1cdd3 | /parts/migrations/0001_initial.py | e0d166212c7b992eb75d30fbb195f10e6f8cd762 | [] | no_license | ShipraShalini/UrParts | d838b9b21485c169136ca7ac6d7b892ac8245e33 | 1327681450b9a57b058f4a9a95d833c06f171095 | refs/heads/main | 2023-04-11T12:16:10.867606 | 2021-04-16T14:50:42 | 2021-04-16T14:50:42 | 358,036,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # Generated by Django 3.2 on 2021-04-15 10:26
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Part",
fields=[
(
... | [
"code.shipra@gmail.com"
] | code.shipra@gmail.com |
951dd813a10fa627d6f3fcc50d81d97bc753ee18 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/trainer_v2/per_project/transparency/splade_regression/data_loaders/pairwise_eval.py | 580e05023b05169f286b6833aa70f8dfbda1ea89 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 3,775 | py | from collections import defaultdict
import tensorflow as tf
from typing import List, Iterable, Callable, Dict, Tuple, Set
from tensorflow.python.distribute.distribute_lib import Strategy
from transformers import AutoTokenizer
from trainer_v2.chair_logging import c_log
from trainer_v2.custom_loop.train_loop_helper impo... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
0a79c1a51d52335e7b62064a7d0b834bda785a9f | d07cc99f0729658b785961a7a93b55e0ccc045d8 | /APscheduler/OtherClass.py | 600c5666d00626bf2d7a8bc3726ad143347ef753 | [] | no_license | dajun928/MyPyCharm | 8b6f3c7ea934dcdbb88e126e810467612b7505ad | 5cde8db68b0f2396cd6e114d19e35cd025d52d98 | refs/heads/master | 2020-03-27T04:48:55.985426 | 2019-03-06T13:48:54 | 2019-03-06T13:48:54 | 145,970,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | #!/usr/bin/python
#coding=utf-8
class OtherClass:
def my_job02(self):
print 'task01'
if __name__ == '__main__':
# o=OtherClass()
# o.my_job02()
pass
| [
"1663177102@qq.com"
] | 1663177102@qq.com |
5b03a8a6be6ea64cd9268addff2dd028e033cce1 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /wt5/wt5/tasks_test.py | 680d1c69a9e75204e4b9ce58eaf356a7ffd22173 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,356 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
68a88a724a54aabed0770c4f341cb635b69320b7 | aa2c3743c265c3db8a246a04f26df8428d23dd06 | /tacker/api/v1/attributes.py | 82499d658e9d3e7b27ed8ffa2722e75555921d38 | [
"Apache-2.0"
] | permissive | SripriyaSeetharam/tacker | fb43740de8e791b7bfa121dd16c295dd380f03f0 | 0c5c2eb06fb6112b03b49c05c5cbffb0ba00587f | refs/heads/master | 2021-01-22T01:55:17.327221 | 2015-07-08T21:07:02 | 2015-07-08T21:07:02 | 38,065,799 | 1 | 0 | null | 2015-06-25T18:13:25 | 2015-06-25T18:13:24 | Python | UTF-8 | Python | false | false | 20,202 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack Foundation.
# 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.... | [
"isaku.yamahata@intel.com"
] | isaku.yamahata@intel.com |
9aec651b26e2ac105c1b0d295e746bb1ed5c2c5b | 2ce27b05f45cef6ce3ae5c02b8e83e548def2fc6 | /INTERMEDIATE/Tuple/Slicing Tuple.py | 9e8bd24716bf46495184cff8f503efa307ce49d6 | [] | no_license | Ajay2521/Python | 775b7d99736e83e4d0c37302b91d1413dd2c0d3b | a426dd7717de8a5e60e584d208ae7120bb84c1b3 | refs/heads/master | 2022-12-01T17:49:12.672061 | 2020-08-15T14:55:12 | 2020-08-15T14:55:12 | 273,632,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # In this lets see more about "tuple Datatype" in Python.
# A tuple in Python is used to store the sequence of various types of data.
# The items in the tuple are separated with the comma ( , ) and enclosed with the square brackets [ ].
# Characteristics of tuple are as follow :
# 1) tuple are "Ordered".
... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
5cc2c2bc4435d633df0d71b4786e520e48900f98 | 557314cb5444754cedc04d0e4c25654537268c9b | /pytorch/rnn/dataset.py | 671b0016776803b1d505899517c1dcf1c8142d44 | [] | no_license | wj-Mcat/python-code-snippet | 9a6d1a7ad4a95a87f64051aa2ce3ef5c3910ddc4 | c5ca58a7779676e20f15a631484c4f20e5c94688 | refs/heads/master | 2022-06-28T21:42:21.942328 | 2020-05-10T13:08:50 | 2020-05-10T13:08:50 | 262,786,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from torch.utils import data
class ATIS(data.Dataset):
"""
一个非常简单的Dataset示例代码
"""
def __init__(self, X, slots, intents):
self.X = X
self.slots = slots
self.intents = intents
self.size = X.shape[0]
def __len__(self):
return self.size
def __getitem__(self... | [
"1435130236@qq.com"
] | 1435130236@qq.com |
666bf4a3c1b1ac5a795c6d9f8c4380cf23a17a5b | c6f22a6155b0627bf792a321fccba2f5d3f1bf19 | /backend/home/migrations/0004_ghfdgfdgfd.py | a5ef0e3edb0bb387850c4161813dc5aa09fc29ff | [] | no_license | crowdbotics-apps/mobile-4-dec-dev-16281 | 938d8902c0f61057a968e09cb114a7a0a72966aa | e842ed5457ab19bc66c1de400159e919b33b29ba | refs/heads/master | 2023-01-22T09:31:48.333341 | 2020-12-04T14:21:17 | 2020-12-04T14:21:17 | 318,406,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Generated by Django 2.2.17 on 2020-12-04 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0003_gghhh"),
]
operations = [
migrations.CreateModel(
name="Ghfdgfdgfd",
fields=[
(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
516f9676a2cae761aaa56ca9c7a04d95db500ed2 | 4f0385a90230c0fe808e8672bb5b8abcceb43783 | /LNH/day4-teacher/2 装饰器/4 装饰器修订.py | caadd80dff07be7347d92b71cc44056d91b65a9e | [] | no_license | lincappu/pycharmlearningproject | 4084dab7adde01db9fa82a12769a67e8b26b3382 | b501523e417b61373688ba12f11b384166baf489 | refs/heads/master | 2023-07-10T05:21:15.163393 | 2023-06-29T14:02:35 | 2023-06-29T14:02:35 | 113,925,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | # 有参装饰器的修订
# 1.参数
# 2.返回值
# 3.函数基本信息。
# import time
# from functools import wraps
#
# def timmer(func):
# @wraps(func)
# def inner(*args,**kwargs):
# start_time=time.time()
# res=func(*args,**kwargs)
# end_time=time.time()
# print('run time is :[%s]' % (end_time - start_ti... | [
"lincappu@163.com"
] | lincappu@163.com |
5a4560c909ecfcd1bb9a56752e943418a440e91d | 75a2ad10d18aea735eaf3e859eb3988d94e9c36a | /CodeUp/예제/1295_알파벳대소문자변환.py | 02812ad0fd6a295035d54f34dc0d50e34174084c | [] | no_license | sbtiffanykim/problem-solving | d2679b0405f9c2397d7af780721066bfbd812e32 | 10a6ec90d29c9126f56c9be2ee696ce30ca30bd5 | refs/heads/master | 2023-04-25T18:26:56.511663 | 2021-06-10T12:30:13 | 2021-06-10T12:30:13 | 360,552,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | """
#1295: 알파벳 대소문자 변환
"""
s = input()
for c in s:
if c >= "a" and c <= "z":
print(chr(ord(c) - ord("a") + ord("A")), end="")
elif c >= "A" and c <= "Z":
print(chr(ord(c) - ord("A") + ord("a")), end="")
else:
print(c, end="")
| [
"sbtiffanykim@gmail.com"
] | sbtiffanykim@gmail.com |
40f3ae34a777b65d2d3d26bfa8d4ea1629e3ab06 | a8b21ea5633df0f5f75b3ee906ab10ce2414f6b7 | /bandwitch/list_common_enzymes/data/__init__.py | 0fcf080bb0f594bb27fd1c47d09c1c5d87a44bac | [
"MIT"
] | permissive | Edinburgh-Genome-Foundry/BandWitch | 34229d336899325286686faf19ba97f6db6eba2a | b6597077fc8ba03e7a7ef271bbd24f81f90632f2 | refs/heads/master | 2023-07-31T22:34:18.651189 | 2022-06-14T12:32:10 | 2022-06-14T12:32:10 | 106,592,382 | 15 | 0 | MIT | 2020-09-20T18:50:07 | 2017-10-11T18:19:45 | Python | UTF-8 | Python | false | false | 608 | py | """Loads REBASE enzymes infos (mehtylation sensitivity and providers)"""
__all__ = ['enzymes_infos']
import os.path as osp
csv_path = osp.join(osp.dirname(osp.realpath(__file__)), "enzymes_infos.csv")
with open(csv_path, "r") as f:
_lines = f.read().split("\n")
_fields = _lines[0].split(";")
_replacemen... | [
"valentin.zulkower@gmail.com"
] | valentin.zulkower@gmail.com |
171264c4369b440af1782bfa01718fa47956f6f3 | 574c42033f1dc6028ae282417a8cb2485fb0cb22 | /tests/test_engine.py | 2dbe07bcf21552ddfc13b72e38a02996fd1e28ec | [
"MIT"
] | permissive | jasonlockporcelane/bloop | 7e8b49382d2542fadb6da9525c7c7de5e78bbf9e | f4dbefd3743b97d15bc46f6b90c00b261911e274 | refs/heads/master | 2021-01-16T21:15:57.663153 | 2016-06-13T06:08:52 | 2016-06-13T06:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,385 | py | import bloop
import bloop.engine
import bloop.exceptions
import bloop.tracking
import bloop.util
import pytest
import uuid
from unittest.mock import Mock
from test_models import ComplexModel, User
def test_missing_objects(engine):
"""
When objects aren't loaded, ObjectsNotFound is raised with a list of
m... | [
"joe.mcross@gmail.com"
] | joe.mcross@gmail.com |
8a74c28a08a46463894b8bae23427862d8af28e7 | 76b1e713a3057e6f08abc116814af00891dbc2ef | /store/views/orders.py | 29e2e13ea138449e13d79a05a236a2f88ac6878f | [] | no_license | Jay28497/Django-Ecommerce-Website | ed17f6536fe4be4d6db658c46999bb05ec22d3f8 | 2697d376c8ff2720720183c0e475b188ff7b0e33 | refs/heads/master | 2023-03-31T15:20:56.008251 | 2021-04-10T12:21:08 | 2021-04-10T12:21:08 | 355,427,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.shortcuts import render
from django.views import View
from store.models.orders import Order
class OrderView(View):
def get(self, request):
customer = request.session.get('customer_id')
orders = Order.get_orders_by_customer(customer)
# print(customer, orders)
return rend... | [
"jaykanjariya28@gmail.com"
] | jaykanjariya28@gmail.com |
7309d255ad74136c1423ec453f4a007ab3c5d182 | 8191c12eb7ebd4296b4e5d35e7de9b53bc767a5a | /docs/examples/configure_sm_pairing_properties.py | f0f907051e4833d81603f28245d9c3c837595939 | [
"MIT"
] | permissive | jreynders/BLESuite-1 | 758404823c71fb15ff8326a5611aed742065bda4 | 8335d47d76919b79f00cea72a1e58524f3440826 | refs/heads/master | 2023-02-20T22:21:35.891269 | 2022-11-08T22:09:06 | 2022-11-08T22:09:06 | 168,422,668 | 0 | 0 | MIT | 2023-02-08T20:01:18 | 2019-01-30T22:04:54 | Python | UTF-8 | Python | false | false | 1,763 | py | from blesuite.connection_manager import BLEConnectionManager
adapter = 0
role = 'central'
io_cap = 0x03
oob = 0x00
mitm = 0x01
bond = 0x01
lesc = 0x01
keypress = 0x00
ct2 = 0x01
rfu = 0x00
max_key_size = 16
initiator_key_distribution = 0x01
responder_key_distribution = 0x01
peer_device_address = "AA:BB:CC:DD:EE:FF"
p... | [
"taylor.trabun@nccgroup.trust"
] | taylor.trabun@nccgroup.trust |
f714ff4ca4736b9aef983bab85e1ddfc87a679aa | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_job_statistics.py | 6d40c6e536931197906776c433f0367c53ee3a96 | [
"MIT",
"Apache-2.0"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 1,239 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
771c7b41555428226550940c68115a3ee5b20af5 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/anhui/chuzhou_zhaobiao.py | 902f6f1c213fa802e3604080f3eb86588fe10015 | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Request, FormRequest
from scrapy.selector import Selector
try:
from scrapy.spiders import Spider
except:
from scrapy.spiders import BaseSpider as Spider
import datetime
from items.biding import biding_gov
from utils.toDB import *
# 安徽滁州招投标网站
# 招标信息
clas... | [
"18723163167@163.com"
] | 18723163167@163.com |
63795b0448d88a2e9a955a030ab4db263b16b065 | 94313855bf5e26721a3b40329aeb485c359ace7e | /zorg_firmata/__init__.py | 85cbfecf4081d3cfeba68fa67b111a2a5828dee1 | [] | no_license | zorg/zorg-firmata | 29616725e07a672be021a87974ac8d042edf29aa | 5c15b23421c065f35ddc4a300a453cf33fc10931 | refs/heads/master | 2021-01-17T14:22:32.041605 | 2016-10-02T17:22:14 | 2016-10-02T17:22:14 | 38,935,991 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from .adaptor import Firmata
| [
"gunthercx@gmail.com"
] | gunthercx@gmail.com |
0f68e2076139798798ae823d9174cb2c98a714ad | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/odtjoh001/question1.py | b2cbad1ff099511e3cfff70991ca97165e01ef48 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | year = eval(input("Enter a year:\n"))
if(year%4 == 0 and year % 100 !=0) or (year % 400 == 0):
print(year, "is a leap year.")
else:
print(year, "is not a leap year.")
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
6258638b9c51b8141d51fe91279f56e729151b39 | 12bedb87964f0093da27b7d6103996d19f355768 | /Exercise11.py | 805903c712058196defe72c6cb15c1df26c5c03b | [] | no_license | ErenBtrk/PythonDictionaryExercises | f77e9d09025cbff1592aa645018edcb23fbd1abe | 182146333843f582fe28006f889636f7d86c2352 | refs/heads/master | 2023-04-24T09:08:08.627173 | 2021-05-16T16:17:40 | 2021-05-16T16:17:40 | 367,856,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | '''
11. Write a Python program to multiply all the items in a dictionary
'''
my_dict = {'data1':5,'data2':-5,'data3':3}
total = 1
for key,value in my_dict.items():
total *= value
print(total) | [
"erenbtrk@hotmail.com"
] | erenbtrk@hotmail.com |
15ed13c2acac4ae704432839fec63024737531b7 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/bhrrae003/util.py | e84a57a6a42bd391b9d939d114e902f3ee049313 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | """Raeesa Behardien
BHRRAE003
Assignment 7
Question 2
02 May 2014"""
def create_grid(grid):
"""create a 4x4 grid"""
for a in range(4):
grid.append([0,0,0,0])
return grid
def print_grid (grid):
"""print out a 4x4 grid in 5-width columns within a box"""
print("+--------------------+")
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
137080e9bd8a95d640e622851e583276962da7e6 | bbe5b336150c38f480a4c3a3a15e1d65a7dfc7d1 | /app/api/business/validators/brief_specialist_validator.py | f00b5ecdf09aff1115740720b7d3146d18b186be | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | AusDTO/dto-digitalmarketplace-api | 9135785c205fe04bbb07782c561c5c5f8cf8417d | af1f0c8979406f80223ab7a68266563abd80b2f4 | refs/heads/master | 2022-07-31T04:12:36.364555 | 2022-07-07T04:31:41 | 2022-07-07T04:31:41 | 62,025,672 | 6 | 7 | MIT | 2022-05-23T23:32:37 | 2016-06-27T04:34:37 | Python | UTF-8 | Python | false | false | 15,033 | py | # -*- coding: utf-8 -*-
import pendulum
from app.api.services import domain_service, suppliers
from app.api.business.validators import brief_lockout_validator
from app.api.business.brief.brief_business import get_lockout_dates
whitelist_fields = [
{'name': 'id', 'type': int},
{'name': 'title', 'type': str},
... | [
"noreply@github.com"
] | AusDTO.noreply@github.com |
29d310e981165585e9df37a87690f77880cb6a57 | fd21d6384ba36aa83d0c9f05f889bdbf8912551a | /a10sdk/core/vrrp/vrrp_a_interface_trunk.py | 6bbfc3c25628a4e18801f09572c963b7c1a24d0d | [
"Apache-2.0"
] | permissive | 0xtobit/a10sdk-python | 32a364684d98c1d56538aaa4ccb0e3a5a87ecd00 | 1ea4886eea3a1609b2ac1f81e7326758d3124dba | refs/heads/master | 2021-01-18T03:08:58.576707 | 2014-12-10T00:31:52 | 2014-12-10T00:31:52 | 34,410,031 | 0 | 0 | null | 2015-04-22T19:05:12 | 2015-04-22T19:05:12 | null | UTF-8 | Python | false | false | 2,065 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class Trunk(A10BaseClass):
"""Class Description::
VRRP-A interface trunk.
Class trunk supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param both: {"description": "both... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
5286ddc0d57db0e1cb2d944f3d00ffae3b12fec8 | c73165911c1e9f62178376ae1e860f42bdaf74f6 | /backend/apps/plugin/serializers/base.py | c974a9ad47e7ce09d3b70d296fbc010faa35fef2 | [
"MIT"
] | permissive | codelieche/erp | aa5994b0c79e99c07aaf3ea440e4cf4389d433b7 | 96861ff63a63a93918fbd5181ffb2646446d0eec | refs/heads/main | 2022-12-22T13:30:23.398639 | 2021-10-22T16:26:28 | 2021-10-22T16:26:28 | 171,668,277 | 0 | 0 | MIT | 2022-12-10T02:32:50 | 2019-02-20T12:22:17 | Python | UTF-8 | Python | false | false | 343 | py | # -*- coding:utf-8 -*-
from rest_framework import serializers
class PluginInfoSerializer(serializers.Serializer):
"""
插件信息Serailizer
"""
code = serializers.CharField(help_text="插件Code")
name = serializers.CharField(help_text="插件名称")
description = serializers.CharField(help_text="插件描述")
| [
"codelieche@gmail.com"
] | codelieche@gmail.com |
0626e2f2f2b884a02c2f86b3e380d86b73fd69f4 | 1608a43a29821106d361ab80ce61255d4a715f3a | /src/pretix/base/migrations/0012_remove_order_tickets.py | 7486be3f8e8355f81dd467e5a8b6d22c1d9cf596 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | ilmjstrope/pretix | 873f1bb14eb1f8bf63de2d98295655ccea2c734a | 7fc56b77db16e7e0783a4ba52b8ed5ef09ce9558 | refs/heads/master | 2021-01-18T00:42:02.873888 | 2015-09-29T14:46:45 | 2015-09-29T14:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0011_auto_20150915_2020'),
]
operations = [
migrations.RemoveField(
model_name='order',
... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
447d2060908ab3a461a172209dc183a9fae81b6d | b0532e7e48729702db60918a8ea44b72319dadc7 | /roomai/kuhnpoker/KuhnPokerAction.py | b7dcdecf26880b932be755ad1a6bc439b54099d5 | [
"MIT"
] | permissive | abcdcamey/RoomAI | 7186b39d2d55dafa98cf40288b73d2977087da41 | fe884645b65bff6205d089d24c508b5a37dfdf3b | refs/heads/master | 2020-03-25T20:16:12.254187 | 2018-08-02T15:33:39 | 2018-08-02T15:33:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import roomai.common
class KuhnPokerAction(roomai.common.AbstractAction):
'''
The KuhnPoker action used by the normal players. There are only two actions: bet and check. Examples of usages: \n
>> import roomai.kuhnpoker\n
>> action = roomai.kuhnpoker.KuhnPokerAction.lookup("bet")\n
>> action.key\n
... | [
"lili1987mail@gmail.com"
] | lili1987mail@gmail.com |
44392f80ccc1f2b66ba022fbbfaedec999972af8 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /python_scripts/pimriscripts/mastersort/scripts_dir/p7580_run2L6.py | e7e36dc227bc5518683dc0475d734610c58036b9 | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7580', 'run2L6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2961/E2961_e4354087/s4409419_1904_2L6_s... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
4a2279505e0d062e31700ce37d3373c049a1adec | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_001/ch35_2019_06_06_00_27_42_702661.py | 1c0d89cb25c60940d66f046a84d71724d1ce4de7 | [] | 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 | 458 | py | deposito_inicial = float(input("Depósito inicial: "))
deposito_mensal = float(input("Depósito mensal: "))
taxa_de_juros = float(input("Taxa de juros: "))
total = deposito_inicial
juros = taxa_de_juros/100 + 1
mes = 0
while mes < 24:
total = total*juros + deposito_mensal
mes += 1
print("Saldo do mês {0} é d... | [
"you@example.com"
] | you@example.com |
136a3ffeda37fe653bc8b661374d35eefd307b4a | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm14.0.4/lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py | 67850cf57a73dd66d6f168913268a148917aec6d | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | Python | false | false | 2,858 | py | import os,struct, signal
from typing import Any, Dict
import lldb
from lldb.plugins.scripted_process import ScriptedProcess
from lldb.plugins.scripted_process import ScriptedThread
class DummyScriptedProcess(ScriptedProcess):
def __init__(self, target: lldb.SBTarget, args : lldb.SBStructuredData):
super(... | [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
b7d9ff78558e217ce2ba72d504a2fc2154ae91b1 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractNovelGilegatiCom.py | 555142d8fee58800bc37a387984e5f7fdc425216 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 519 | py | def extractNovelGilegatiCom(item):
'''
Parser for 'novel.gilegati.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('Spirit Conductor', 'Spirit Conductor', 'translat... | [
"something@fake-url.com"
] | something@fake-url.com |
25c4685c444ce65edcdfff005e0060f97157f3b3 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/isosurface/colorbar/_tickcolor.py | 8d235833cab3bc7fb1364a4236a3091d952369eb | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 427 | py | import _plotly_utils.basevalidators
class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="tickcolor", parent_name="isosurface.colorbar", **kwargs
):
super(TickcolorValidator, self).__init__(
plotly_name=plotly_name,
pare... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
4f9b132d0127390b4ded48630da6093bf8a6a6c2 | 5946112229fe1d9a04b7536f076a656438fcd05b | /dev_env/lib/python3.8/site-packages/pygments/console.py | 6c024a8d3484cecf9ff30eea0e7135c8eace379a | [] | no_license | Gear-Droid/openCV_study_project | 3b117967eb8a28bb0c90088e1556fbc1d306a98b | 28c9a494680c4a280f87dd0cc87675dfb2262176 | refs/heads/main | 2023-05-14T14:27:42.284265 | 2021-06-05T00:16:09 | 2021-06-05T00:16:09 | 307,807,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | # -*- coding: utf-8 -*-
"""
pygments.console
~~~~~~~~~~~~~~~~
Format colored console output.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
esc = "\x1b["
codes = {}
codes[""] = ""
codes["reset"] = esc + "39;49;00m"
... | [
"Vladi003@yandex.ru"
] | Vladi003@yandex.ru |
0f29d4819c4edbbd216beaccd65020d52f2aab4c | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/oinam_singh/myprogram/dfEx4.py | e6046a036d10a2b7017578704d751ac80e542276 | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import pandas as pd
data1={'A':['A0','A1','A2','A3'],
'B':['B0','B1','B2','B3'],
'C':['C0','C1','C2','C3'],
'D':['D0','D1','D2','D3']}
df1=pd.DataFrame(data1,index=[0,1,2,3])
data2={'A':['A4','A5','A6','A7'],
'B':['B4','B5','B6','B7'],
'C':['C4','C5','C6','C7'],
'D':['D4','D5','D6'... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
86c175d1f1af29f44d196cc3b3948293dcccab2a | 01dad4d1d2ffaf2fa070e99fe828d42f59a9f9d1 | /src/pycrop2ml_ui/packages/SQ_Energy_Balance/src/openalea/Netradiationequivalentevaporation.py | 9b16174bb6d9032e26b78f9a1441551e454fadc7 | [
"BSD-3-Clause",
"MIT"
] | permissive | AgriculturalModelExchangeInitiative/Pycrop2ml_ui | 5e210facf9689348bb57c16060967118b7c5f49a | 3d5d2b87a74f0be306056b71808286922fef2945 | refs/heads/master | 2023-06-24T13:52:39.933728 | 2023-06-17T00:17:26 | 2023-06-17T00:17:26 | 193,912,881 | 0 | 4 | MIT | 2023-02-25T13:26:57 | 2019-06-26T13:44:34 | Jupyter Notebook | UTF-8 | Python | false | false | 2,389 | py | # coding: utf8
import numpy
from math import *
def model_netradiationequivalentevaporation(lambdaV = 2.454,
netRadiation = 1.566):
"""
- Description:
* Title: NetRadiationEquivalentEvaporation Model
* Author: Pierre Martre
* Reference: Modelling ener... | [
"ahmedmidingoyi@yahoo.fr"
] | ahmedmidingoyi@yahoo.fr |
dc0bfd07d422bf122ac4ac42148299a225288420 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fabric/rsinterfacepolprofile.py | bae1e7ce721ce11040c8dcba34b373820c78aca0 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 9,330 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
64a511b95ea60b2cca1c7f11eb3400f1df6d6211 | 6a61667e176b06ccdef07e84d79b382b2fb491bb | /app/interviews/tests/views/interview.py | d5b9842a2c394d0c54c84f5d15b493e834871cf6 | [] | no_license | vsokoltsov/Interview360Server | 333f08f13b33ef88928b3e4b844f60e72ebec809 | 252b0ebd77eefbcc945a0efc3068cc3421f46d5f | refs/heads/master | 2022-12-11T05:38:01.310133 | 2019-03-24T17:47:09 | 2019-03-24T17:47:09 | 95,320,167 | 2 | 3 | null | 2022-12-08T04:54:08 | 2017-06-24T20:09:08 | Python | UTF-8 | Python | false | false | 3,216 | py | from . import APITestCase, datetime, Token, Company, HR, CANDIDATE
import ipdb
class InterviewViewSetTests(APITestCase):
"""Tests for InterviewViewSet class."""
fixtures = [
"skill.yaml",
"user.yaml",
"auth_token.yaml",
"company.yaml",
"vacancy.yaml",
"intervie... | [
"vforvad@gmail.com"
] | vforvad@gmail.com |
ef80458b3c26c42b8ba73347abdde6d49679144f | 7db93c328243cd2f6ffcabb66b0d148bb0e3d198 | /lintcode/07BinaryTree/155MinDepthOfBinaryTree.py | e838e2337dde723bea7750ab777d5826379f940f | [
"MIT"
] | permissive | zhaoxinlu/leetcode-algorithms | 62cc67efdc1b0e8514c83bb7643b369b4f681948 | f5e1c94c99628e7fb04ba158f686a55a8093e933 | refs/heads/master | 2021-05-11T23:47:43.385660 | 2018-04-25T08:27:57 | 2018-04-25T08:27:57 | 117,520,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-03-10
算法思想: 二叉树的最小深度
"""
"""
Definition of TreeNode:
"""
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Solution:
"""
@param root: The root of binary tree
@return: An... | [
"446571703@qq.com"
] | 446571703@qq.com |
cf70a287c7007e7788a1deba514996acca6a6361 | d326cd8d4ca98e89b32e6a6bf6ecb26310cebdc1 | /BioinformaticsStronghold/inod/inod.py | f56d33de9bff5554c7a1f662eb81fcda0118c1c3 | [] | no_license | dswisher/rosalind | d6af5195cdbe03adb5a19ed60fcbf8c05beac784 | 4519740350e47202f7a45ce70e434f7ee15c6afc | refs/heads/master | 2021-08-09T02:58:17.131164 | 2017-11-12T01:26:26 | 2017-11-12T01:26:26 | 100,122,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py |
import sys
if len(sys.argv) != 2:
print "Enter the number of leaf nodes."
sys.exit(1)
n = int(sys.argv[1])
print n - 2
| [
"big.swish@gmail.com"
] | big.swish@gmail.com |
335adfd99ad95714abcd6661f54e15f6570b44c8 | 6bb80d482bfd0cd5feb6f2d37c7235a27b3466d6 | /pretrained-model/multispeaker-separation/fastsep-4-mel.py | 1c1ff8e391e1667dc0c0bdcf0ef294f05dbbc4d2 | [
"MIT"
] | permissive | dakmatt/malaya-speech | deadb00e1aa8a03593721c26457f35158e67d96d | 957cfb1952760c30d3b4a2a2e60b7f142394cbd3 | refs/heads/master | 2023-04-03T13:56:53.675046 | 2021-04-19T03:31:40 | 2021-04-19T03:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,562 | py | import os
import warnings
os.environ['CUDA_VISIBLE_DEVICES'] = '1'
warnings.filterwarnings('ignore')
import tensorflow as tf
import malaya_speech
import numpy as np
import IPython.display as ipd
import matplotlib.pyplot as plt
import malaya_speech.augmentation.waveform as augmentation
from malaya_speech.train.model i... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
82f36f99b83a7f014359ee700cc6a8d0857c8d66 | 8ec910de801b424540abb4e6e955838a287663b6 | /CursoPython/Unidad8/Ejemplos/import_namespace.py | 732f5be705991ccca0ecc1b2ae701410af71fdbe | [] | no_license | hector81/Aprendiendo_Python | f4f211ace32d334fb6b495b1b8b449d83a7f0bf8 | 9c73f32b0c82f08e964472af1923f66c0fbb4c22 | refs/heads/master | 2022-12-28T03:41:20.378415 | 2020-09-28T09:15:03 | 2020-09-28T09:15:03 | 265,689,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # import calculadora.suma
# suma(3,5)
# el resultado de la suma es: 8 | [
"noreply@github.com"
] | hector81.noreply@github.com |
a939e1424dc025b49be00eec0aa30b151b213231 | caf644aa3e6aa7551567f806481a0465870b7ad8 | /login/migrations/0001_initial.py | c58190f1c6d91c015ccb8552792bb1b1bcd7f4ff | [] | no_license | 270466585/restudy_dj | 86b79ec5924c9c998a2f6841a64509df21ccd885 | ba7295ecfd947e475cb328334cc70d68a49c3e51 | refs/heads/master | 2020-04-18T12:11:13.041477 | 2019-01-25T10:13:34 | 2019-01-25T10:13:34 | 167,526,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.1.5 on 2019-01-25 05:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"27066585@qq.com"
] | 27066585@qq.com |
2a4db2a394411b0b979fb3fcab54c78eda1e0084 | 34d6ec6c9a459ab592f82137927107f967831400 | /week01/6-plus-one.py | 0ba349debae40b719c8d4e01eaa728d962cee038 | [
"MIT"
] | permissive | MiracleWong/algorithm-learning-camp | 228605311597dc3c29f73d4fb6b7abedc65d05a7 | aa5bee8f12dc25992aaebd46647537633bf1207f | refs/heads/master | 2023-07-15T21:34:11.229006 | 2021-09-05T09:06:16 | 2021-09-05T09:06:16 | 379,647,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
digits = [str(i) for i in digits]
num = int(''.join(digits))
num += 1
num = str(num)
res = []
for i in num:
res.append(int(i))
return res | [
"cfwr1991@126.com"
] | cfwr1991@126.com |
fdeb6676569e269227595aa1bdbadc6f6635586c | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py | 390ccd6773ba7d750cf4dfa82a4410d46de8b8af | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,333 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
d50dfca35776427690928466b7cbd9a5e88a3c3d | 1a80fa7faf79b34c6eff3fa08226964c04bba0c7 | /centipede.py | b8d68543cb206384d962841f40fd72365e48ca1e | [
"MIT"
] | permissive | brentru/CircuitPython_Centipede_Chromebook | 4d274efd375c59b7197f7b4dd35948a7e85a53ab | b4972aadbfb3890b7b9137373f5c11ae7dd8a727 | refs/heads/master | 2021-01-25T10:00:16.383835 | 2018-02-28T20:20:03 | 2018-02-28T20:20:03 | 123,333,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | """
Centipede for Chromebook for CircuitPython
Copyright (c) 2018, Brent Rubell for Adafruit Industries
Centipede_for_Chromebook_Enrollment by Amplified_Labs
Copyright (c) 2016, Amplified IT
See the full description at http://labs.amplifiedit.com/centipede
Support forums are available at https://plus.google.com/commu... | [
"robots199@me.com"
] | robots199@me.com |
2f20ea73c211654103ed77f7d94454777f5cfc0d | 37c5a0a8ee807ec7e40bd38d4ecb6d7a8d1e21cd | /src/python/serif/theory/icews_event_mention.py | 5aa8b7b09dae41264fbcd246ebabfc270080420a | [
"Apache-2.0"
] | permissive | BBN-E/text-open | 3321187f17b3fbc0317c95d32aa3a741c8e9769b | b486a66339a330e94d81850e6acb3a7e34df746e | refs/heads/main | 2023-06-10T09:45:57.952476 | 2023-05-25T18:44:11 | 2023-05-25T18:44:11 | 302,090,801 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from serif.theory.proposition import Proposition
from serif.theory.serif_theory import SerifTheory
from serif.theory.value_mention import ValueMention
from serif.xmlio import _SimpleAttribute, _ChildTheoryElementList, _ReferenceAttribute, _ReferenceListAttribute
class ICEWSEventMention(SerifTheory):
participants ... | [
"hqiu@bbn.com"
] | hqiu@bbn.com |
b0e958e2cf63938be65865ac0cfdf533a47698b0 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.12.1/7/1569572792.py | 26ebc69dac781be379b9c65043af3ac844948ef0 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 1 item
../../../../../tmp F [100%]
=================================== FAILURES ==========... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
2abe504e9ab45cb335111ffdbc077fec444f5b0c | dab7eb86a8ffe3fcf012a851b2bf243ff7e06088 | /longestpossibleappna_3898/wsgi.py | d89f34b75ea5f57ca3a45a3dcb580dbe20c3e61a | [] | no_license | crowdbotics-apps/longestpossibleappna-3898 | 54760668be0c30a41fd6235232bf7782e70958a7 | dc57d9786b53d7018cca6256c28a8202625345ce | refs/heads/master | 2023-05-26T07:21:41.191231 | 2020-04-30T14:23:13 | 2020-04-30T14:23:13 | 260,232,643 | 0 | 0 | null | 2021-06-10T17:01:00 | 2020-04-30T14:22:47 | Python | UTF-8 | Python | false | false | 427 | py | """
WSGI config for longestpossibleappna_3898 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.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
737c77a191f20cede4d4431f84652b00e894ce30 | d2970ef359537f553e86dc05015b265611bd8f4f | /Aiden/Ceaser_Cypher.py | 7c503c72fa83a9975e1d05fd1c12ae791c0e2549 | [] | no_license | idcrypt3/camp_2019_07_07 | cc68c28f9c84a0ad6ac893cb65a0a48502a09af6 | 4c748b60f1553072dbda9d4d226b39a32548521f | refs/heads/master | 2020-06-17T08:23:30.734953 | 2019-07-17T16:29:55 | 2019-07-17T16:29:55 | 195,860,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | alphabet = "abcdefghijklmnopqrstuvwxyz"
partialOne = ""
partialTwo = ""
newAlphabet = ""
newMessage = ""
message = input("Please enter a secret message: ").lower()
key = int(input("Please enter a number to shift by: "))
if key == 0:
newAlphabet = alphabet
elif key > 0:
partialOne = alphabet[:key]
partialTw... | [
"idcrypt3@gmail.com"
] | idcrypt3@gmail.com |
25a6097e0dd1368a43cac42ba3c40ecfc7ad22aa | 03e91d7a923d94a4c0cd016e3c64cdefa7d0e1c5 | /order/migrations/0006_productinordermodel_image.py | 073bb3ff6d5e5c476b1fc8d43e10aeac1f91c923 | [] | no_license | win77g/irashop | 0e6afec6fd0397ee82484f718e90502cfc627efb | 9244c59ca69e263c24c9ad92ddf355b8f9ee4efc | refs/heads/master | 2023-06-30T03:17:09.333673 | 2021-08-05T21:10:26 | 2021-08-05T21:10:26 | 261,574,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 2.2.11 on 2020-04-05 13:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0005_productinordermodel_size'),
]
operations = [
migrations.AddField(
model_name='productinordermodel',
n... | [
"win21g@mail.ru"
] | win21g@mail.ru |
41b624dfe2a84d1fa0848874a189accdc719f795 | c61bcb0732a1c92bbed4195573e68393400c9fb7 | /suorganizer/suorganizer/settings.py | 3dac5bc8cb21252fd0fb73a1d3018c49f0cd77d6 | [] | no_license | paulhendricks/django-unleashed | ba181454a644d53a555adf814769965bf7a2fded | 209bb4f42e8d6856ff760f46f4338834d96d711d | refs/heads/master | 2021-01-20T18:36:33.677366 | 2016-07-24T23:11:48 | 2016-07-24T23:11:48 | 61,044,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for suorganizer project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import o... | [
"paul.hendricks.2013@owu.edu"
] | paul.hendricks.2013@owu.edu |
cc23921f539f87f2abaf47cf8abbe9bab1429e24 | c8f10dd7dbb1a4cf2e22f5fc1cef6affa68013f9 | /myproject/crm/mixins.py | 64dd03a65e19c9dd476331f195ed2c36fd15df26 | [] | no_license | olivx/jc-challenge | 72f016d47c31fa7c7d8c57222eb60861dbc397ef | 55e8c24231605dcaec22f0d24d133e1702daa0c5 | refs/heads/master | 2021-01-12T09:19:17.059412 | 2017-02-13T03:06:24 | 2017-02-13T03:06:24 | 81,324,849 | 0 | 0 | null | 2017-02-13T03:03:19 | 2017-02-08T11:52:31 | Python | UTF-8 | Python | false | false | 244 | py | # -*- coding: utf-8 -*-
class CounterMixin(object):
def get_context_data(self, **kwargs):
context = super(CounterMixin, self).get_context_data(**kwargs)
context['count'] = self.get_queryset().count()
return context
| [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
0fa45dc47e6ff8104a20a15bfe36e559a5a7764e | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/amp/auto_cast.py | 441bc31b93684f94fd1dc36183679f493c03ada0 | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 2,562 | 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"
] | seiriosPlus.noreply@github.com |
b991c27bef8a290364d95bb429d91db56f260232 | 8dffff5ff7f2645a50fd9846198e12e4c96a91da | /32-gcf.py | 40180be85f2c2280d2e4c6ac1c55700e901f6693 | [] | no_license | akshaypawar2508/Coderbyte-pythonSol | b233c5ee0c34e0413a26b24b423dae45342b9ade | 5c7d2028fe09fd02aad7808f88abc40fdea0f81e | refs/heads/master | 2022-01-03T09:44:18.635060 | 2014-07-31T13:32:08 | 2014-07-31T13:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def Division(num1,num2):
while num2 != 0:
num1, num2 = num2, num1%num2
return num1
# keep this function call here
# to see how to enter arguments in Python scroll down
print Division(raw_input())
| [
"xzhu15@illinois.edu"
] | xzhu15@illinois.edu |
3de488bf4eb42746d03ff642d52f553da3b0a0a9 | 38828c16d3f6f466fe416067a099e139ba85a441 | /imageupload/migrations/0008_auto_20181011_1407.py | 677150fe5f7c6d89d7755a39b13514f4ee8858fc | [] | no_license | finebrush/takeatrips | 20c46329af0135f1bc3773a179520f78d042fc53 | 8641a669f3daca646e915cd82a69d5d61ee7ab3d | refs/heads/master | 2022-12-30T08:21:17.191846 | 2018-11-07T15:29:23 | 2018-11-07T15:29:23 | 155,531,775 | 0 | 0 | null | 2022-12-08T02:59:00 | 2018-10-31T09:33:15 | JavaScript | UTF-8 | Python | false | false | 973 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2018-10-11 05:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('imageupload', '0007_auto_20181011_1404'),
]
operations = [
migrations.Alter... | [
"finebrush.mlab@gmail.com"
] | finebrush.mlab@gmail.com |
a348cd18fff127c70b3192663bfbcd78170a7dcf | 22d368661afd1ba00378d9da8eacadb86e2d4f95 | /vk/types/responses/__init__.py | 965c47e5089b6c9feb0aa36b023c7ff21b364cf9 | [
"MIT"
] | permissive | yilbegan/vk.py | e5e0887fde758e12577b394cd2636c48a5dc74be | 128029969edb57806b1d3d13a0a43613bc33abd3 | refs/heads/master | 2020-07-08T08:48:13.334133 | 2019-08-21T15:50:17 | 2019-08-21T15:50:17 | 203,623,364 | 3 | 1 | MIT | 2019-08-21T16:28:03 | 2019-08-21T16:28:03 | null | UTF-8 | Python | false | false | 358 | py | from . import others
from . import account
from . import apps
from . import appwidgets
from . import auth
from . import board
from . import database
from . import docs
from . import fave
from . import friends
from . import gift
from . import groups
from . import leadforms
from . import leads
from . import likes
from .... | [
"botyavs@gmail.com"
] | botyavs@gmail.com |
ae5aea420cf4046d5d1af7d4f13928738ec44541 | fdec477002fb0c5f013faf369d2a1e782172a1d6 | /shop/mainapp/api/api_views.py | 1b4b14641b6fdb7f493b43dfb8c352a846ffacea | [] | no_license | aimiranarzhigitova/API_projects | 19fb416479e5a76dab760f38621e643e2db609cb | 8256cc1bc8dc939453c61a39215e89dbd96fecb1 | refs/heads/master | 2023-05-16T08:52:51.209458 | 2021-06-06T09:44:53 | 2021-06-06T09:44:53 | 374,322,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from collections import OrderedDict
from rest_framework import generics
from rest_framework.response import Response
from rest_framework.generics import ListAPIView, ListCreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.filters import SearchFilter
from rest_framework.pagination import PageNumberPaginati... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
a1f8521f2ec491413388a76ac4552bbd48a926e7 | 61f9553eedc2ec936ea87f06da5b986091e3b8ff | /workspace/buildout-cache/eggs/Products.PloneHotfix20130618-1.1-py2.7.egg/Products/PloneHotfix20130618/dataitems.py | 36af227651b6d4f537f0310c48bc0e2e8c1b648b | [] | no_license | gruhter/gso | 47880b055455cc99d63eec72498048c857e7831b | c0eb949f8a06aab6b97329d51a6d046e2fc0a653 | refs/heads/master | 2016-09-01T18:28:05.589620 | 2015-05-14T19:38:18 | 2015-05-14T19:38:18 | 35,579,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from OFS.CopySupport import CopyContainer
CopyContainer.cb_dataItems__roles__ = () | [
"gso@abv.bg"
] | gso@abv.bg |
efe00f1898d63c1220007f55cbf52362ae1563d3 | e43906683d87683705670655bc185d113b797f9c | /spectrumFit/apr2018dijetgamma.py | 6d4cf1cd6b365cac3b63ca8791c060ce063d51bd | [] | no_license | Yvonne-Ng/GP | 1fcba24faa868c86bee71da26386600e94d179d9 | 7dba2626fd417d3b6e432160ed49f09980b59d1e | refs/heads/master | 2020-03-11T14:22:32.271495 | 2018-09-11T13:29:03 | 2018-09-11T13:29:03 | 130,051,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | from runFunctions import spectrumGlobalFit
if __name__=="__main__":
#-----------a template config file -------#
config={#-----Title
"title": "TrijetBtagged1",
"useScaled": False,
#-----fit range
"xMinFit": 300,
"xMaxFit": 1500,
"xMinGP": 300,
... | [
"yvonne.ng@cern.ch"
] | yvonne.ng@cern.ch |
60bafb492156b02c296679d940270394ce35ffce | 683a90831bb591526c6786e5f8c4a2b34852cf99 | /HackerRank/Interview/Strings/2_AlternatingCharacters.py | a5e68da537d3ea7f3412c42110cbce7e63191e9a | [] | no_license | dbetm/cp-history | 32a3ee0b19236a759ce0a6b9ba1b72ceb56b194d | 0ceeba631525c4776c21d547e5ab101f10c4fe70 | refs/heads/main | 2023-04-29T19:36:31.180763 | 2023-04-15T18:03:19 | 2023-04-15T18:03:19 | 164,786,056 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # https://www.hackerrank.com/challenges/alternating-characters/problem
# Tag(s): Greedy, strings
def alternatingCharacters(s):
flag_1 = 'A'
flag_2 = 'B'
x = 0
y = 0
n = len(s)
for i in range(n):
if s[i] == flag_1:
flag_1 = ('B' if flag_1 == 'A' else 'A')
else:
... | [
"davbetm@gmail.com"
] | davbetm@gmail.com |
260d7c448653d6a14a06b38e37e97db6a29a0c48 | c1db9d9bca3c908d5c30f3c02e7bc7bb2dc5b892 | /task/models.py | 1c1be9e97539791fc75e151a7adcf115623b147f | [] | no_license | rashidhamid139/Practice | 00e3aa1f3caa2648d8f62b1791687dd1313608ad | dcfe96a124687ec87545e34fb7021ef2d6e13bdb | refs/heads/master | 2023-03-17T13:27:13.719717 | 2021-03-04T16:28:56 | 2021-03-04T16:28:56 | 278,792,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from django.db import models
# Create your models here.
class Task(models.Model):
title = models.CharField(max_length=255)
date = models.DateTimeField(auto_now_add=True)
completed = models.BooleanField(default=False)
class Meta:
ordering = ['completed', 'date']
def __str__(self):
... | [
"rashidhamid139@gmail.com"
] | rashidhamid139@gmail.com |
6398b36c28197d9034cac3de143b8dbaa16bb367 | d24a6e0be809ae3af8bc8daa6dacfc1789d38a84 | /other_contests/SMTB2019/A.py | aa4532f9e5732cb8c1cbfa619c0ff436ae54baa8 | [] | no_license | k-harada/AtCoder | 5d8004ce41c5fc6ad6ef90480ef847eaddeea179 | 02b0a6c92a05c6858b87cb22623ce877c1039f8f | refs/heads/master | 2023-08-21T18:55:53.644331 | 2023-08-05T14:21:25 | 2023-08-05T14:21:25 | 184,904,794 | 9 | 0 | null | 2023-05-22T16:29:18 | 2019-05-04T14:24:18 | Python | UTF-8 | Python | false | false | 367 | py | def solve(m1, d1, m2, d2):
if m1 == m2:
return 0
else:
return 1
def main():
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
res = solve(m1, d1, m2, d2)
print(res)
def test():
assert solve(11, 16, 11, 17) == 0
assert solve(11, 30, 12, 1) == 1
if... | [
"cashfeg@gmail.com"
] | cashfeg@gmail.com |
c5e22cbd61727df2534eb81db6c450a3d6f869f5 | 6564b596ec27e67ee1b48377da1e7cee59cdcfe9 | /shenfun/forms/operators.py | c53c62765757615f7146f02a7eeef8cc364b704c | [
"BSD-2-Clause"
] | permissive | GeraintPratten/shenfun | 077b13d904fd6bf6880c412f74300d78494bee11 | d92eb058c9969175da19b23926fb80148cf92ace | refs/heads/master | 2023-07-04T13:46:27.969149 | 2021-08-10T11:48:32 | 2021-08-10T11:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,644 | py | """
This module contains the implementation of operators acting on arguments.
"""
import numpy as np
import sympy as sp
import copy
from .arguments import Expr, BasisFunction, Function, Array
__all__ = ('div', 'grad', 'Dx', 'curl')
#pylint: disable=protected-access
def _expr_from_vector_components(comp, basis):
... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
364c7fbdbdd853836d7faa2d48f0d96d450b696b | eec9299fd80ed057585e84e0f0e5b4d82b1ed9a7 | /comment/migrations/0002_auto_20181126_2237.py | f43103e474077979c288a083e9963fdafb9ec8e6 | [] | no_license | aimiliya/mysite | f51967f35c0297be7051d9f485dd0e59b8bb60c2 | b8e3b639de6c89fb8e6af7ee0092ee744a75be41 | refs/heads/master | 2020-04-08T19:06:36.539404 | 2018-12-01T08:05:18 | 2018-12-01T08:05:18 | 159,640,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # Generated by Django 2.1.3 on 2018-11-26 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comment', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='coment',
options={'ordering': ['-com... | [
"951416267@qq.com"
] | 951416267@qq.com |
1b8186b33b4e154abe2da78ebfd54ce03d98b9f8 | 9433ce01c6e2906c694b6f0956a4640e1872d4d2 | /src/test/python/wdbd/test_girlant_down.py | e562510bb938cca541c18a206e5bb1b08ea78b43 | [] | no_license | shwdbd/python_codepool | fcd7950fc1339994186461ae18c34cee238938ee | 92a4fb61d060f9a545499b6b7f99a4dc211d5009 | refs/heads/master | 2023-02-20T19:49:23.677824 | 2022-06-15T08:53:51 | 2022-06-15T08:53:51 | 209,431,254 | 0 | 1 | null | 2023-02-15T21:58:53 | 2019-09-19T00:56:03 | Python | UTF-8 | Python | false | false | 2,250 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : test_girlant_down.py
@Time : 2020/02/03 19:50:02
@Author : Jeffrey Wang
@Version : 1.0
@Contact : shwangjj@163.com
@Desc : 影集下载功能单元测试
'''
import unittest
import wdbd.codepool.ant.girl_picture_ant as girl_ant
import wdbd.codepool.ant.girl_... | [
"shwangjj@163.com"
] | shwangjj@163.com |
c62a44507b5b34f7b2ce5401b569a0453dfa4af0 | b0b8d735473c79bae43d939a605bc60c07137b46 | /devices/readers.py | 5a9e606339baaa6e4646113c8ba67d05ebc78fee | [] | no_license | frnhr/plc_lines | 39e965d7481bde72c04bf2091497dfb0ec49198e | 60366cb5fd3b06d1558da921fe301fdb7a5d017e | refs/heads/master | 2022-10-05T08:27:23.669929 | 2020-05-19T13:12:31 | 2020-05-19T13:12:31 | 243,630,119 | 0 | 0 | null | 2022-09-30T01:21:53 | 2020-02-27T22:31:06 | Python | UTF-8 | Python | false | false | 1,668 | py | from __future__ import annotations
import json
from typing import Optional
from django.conf import settings
from pylogix.eip import Response, PLC
class ReaderError(RuntimeError):
"""Failed to read PLC device."""
SUCCESS_STATUSES = ("Success", "Partial transfer")
class ReaderBase:
def __init__(self, ip, ... | [
"fran.hrzenjak@gmail.com"
] | fran.hrzenjak@gmail.com |
eeb25bb99a16c36f21171b4e54186e08259a1435 | 7fdf37c8bb0fe575a28a996ccff08445777d7a59 | /image_server/wx_app/migrations/0014_img_fsize.py | d7fdb6906bba047ed956c7a82c573a9bf51fdede | [] | no_license | bushitan/image_str | 8285884b3aef06935023afa69d49bfc3baecaf2a | dca6f38cffe1f1d1c72a3a098bc4b106a4f5914d | refs/heads/master | 2020-05-21T19:19:39.403015 | 2017-07-20T08:38:31 | 2017-07-20T08:38:31 | 62,543,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wx_app', '0013_img_user_id'),
]
operations = [
migrations.AddField(
model_name='img',
name='fsize',
... | [
"373514952@qq.com"
] | 373514952@qq.com |
b6faa6b647be48cc1f8a41e6d699d2e4bcdb91c4 | 1897bb1a06572018eee4ef30b56e5e12425a4085 | /12306/1.29scrapy中的去重/project29/project29/spiders/custom.py | 8a63c14e438f4d34c404792c4fee3a83aaf2c93f | [] | no_license | xiaozhiqi2000/spider_advanced | 3f16e140b2f92206ad1ac0298ee0a94f57ad067d | 0a32fcb1fd409ae1bf686a7ed9809c2ee277dec7 | refs/heads/master | 2020-05-27T09:58:06.127519 | 2016-10-17T07:02:37 | 2016-10-17T07:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
import scrapy
import json
from scrapy.http.request import Request
class CustomSpider(scrapy.Spider):
name = 'custom'
start_urls = ['https://kyfw.12306.cn/otn/userCommon/allProvince']
custom_settings = {
'DUPEFILTER_DEBUG': True,
# 'DUPEFILTER_CLASS': "proje... | [
"xiaozhiqi2015@live.com"
] | xiaozhiqi2015@live.com |
03c6825d137329f515bb5c6d91bfd057aefa5a1d | 1e08e2c0a1cd9677b35347b9aedd579e8676ee41 | /blog/migrations/0004_blogtagindexpage.py | da35bd1521b74920e4add159baf03d570b2e6dcf | [
"MIT"
] | permissive | tbrlpld/wagtail-gatsby-blog-backend | 023eb4db9166cc860990bbf0414712932508dfa1 | f68f1d9e2577d5271960f142bf37dcbcdac6767a | refs/heads/master | 2022-11-30T11:01:48.115493 | 2020-08-18T17:40:46 | 2020-08-18T17:40:46 | 284,381,118 | 0 | 0 | MIT | 2020-08-18T17:47:24 | 2020-08-02T03:14:21 | Python | UTF-8 | Python | false | false | 752 | py | # Generated by Django 2.2.13 on 2020-06-12 01:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermission'),
('blog', '0003_auto_20200612_0111'),
]
operations... | [
"tibor@lpld.io"
] | tibor@lpld.io |
71263850c4721086a1a743b2e881050df61695dc | caf794c8f43560ef71ba189191d1d8313af3c6ba | /datamanagement/add_generic_dataset.py | 8efe998de5033214280312401e780df473631eeb | [] | no_license | sanansakura/sisyphus | 007ac7f23edb2bb84ebeb32f6af60796df134b75 | eb82e2e141e896bdc5a980c44f908e4f68f68696 | refs/heads/master | 2021-04-24T02:57:15.308297 | 2020-03-24T21:49:26 | 2020-03-24T21:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import os
import sys
import click
import json
import ast
import pandas as pd
from utils.constants import LOGGING_FORMAT
from utils.runtime_args import parse_runtime_args
fr... | [
"andrew.mcpherson@gmail.com"
] | andrew.mcpherson@gmail.com |
67b11257facdac50c09a31ffdcc0173abaefcf28 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_exhume.py | d04f4905b10af793887ef7eef394520e46e5b7d8 | [
"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 | 341 | py |
#calss header
class _EXHUME():
def __init__(self,):
self.name = "EXHUME"
self.definitions = [u'to remove a dead body from the ground after it has been buried']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1a2483954aba597c54da8e7a9cd1c48efadc0a79 | 706f239f0df4586221e6a7aac001626ab531c224 | /src/client_libraries/python/dynamics/customerinsights/api/models/measure_metadata_py3.py | 35818f8ac79c086ff065198678dc705906946fb2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Global19-atlassian-net/Dynamics365-CustomerInsights-Client-Libraries | 9681d258c649b005a2379d32b23d374695a6fca4 | 0ce81ae25e97c3b8de12b97963a8c765c0248238 | refs/heads/main | 2023-02-28T20:39:33.622885 | 2021-02-09T23:34:38 | 2021-02-09T23:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,925 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"michaelajohnston@mac.com"
] | michaelajohnston@mac.com |
a5201f74952396af8a36123428177ee24f8d8dd1 | c65d9b487df6cdbbe6c4cb773f262ac13270e095 | /engine_modules/corporation/migrations/0007_auto_20151030_1102.py | e9e515d8af2970235652b1329b532c59639fab9e | [] | no_license | Neamar/corporate | 40c254e068f84d59109b25c49a7f613b4b9c7cdc | 3029e2e46087172d7ac187309b771b275446d0ce | refs/heads/master | 2021-06-21T20:26:34.471294 | 2021-03-06T08:40:53 | 2021-03-06T08:40:53 | 15,422,111 | 5 | 0 | null | 2020-07-24T19:38:15 | 2013-12-24T16:57:52 | Python | UTF-8 | Python | false | false | 769 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('corporation', '0006_auto_20150813_1714'),
]
operations = [
migrations.AlterField(
model_name='assetdelta',
... | [
"neamar@neamar.fr"
] | neamar@neamar.fr |
dd0572748eea6b61edb50906f94377efe2355281 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_39_r_3/replay_config.py | 11cfacf3dd3ff4ad4b224792869d3fc7f377c640 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pyre... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
f52e97d68bc016b621734e17240755ff95ec2b80 | 215fe73df20c3d44214c8693434617210f0aba9e | /barViz.py | c2bc1f3a0d9ef171f11b4e9ce1fb62d58ee4ca9c | [] | no_license | Schuck9/Game_Transition | 1c5ae2e902b6f6ae6ec636143edb377d7c010546 | 44450ddd0161578231d4a340f348c2f8d9dcfb64 | refs/heads/master | 2022-07-18T21:36:00.091202 | 2020-05-19T01:36:39 | 2020-05-19T01:36:39 | 260,609,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | """
A simple implementation of Ultimatum Game visualization
@date: 2020.5.18
@author: Tingyu Mo
"""
import numpy as np
import pandas as pd
import os
import time
import fractions
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplot... | [
"noreply@github.com"
] | Schuck9.noreply@github.com |
bc1188fe3e82e135991a580d3245a4232bca1a39 | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/Analysis/LMVis/tcHist.py | 83371f074e9cd421f12f1495b9a26991ead89c65 | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 1,682 | py | #!/usr/bin/python
##################
# tcHist.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
352ccb19b87d55b6408f0744e1b2d22f5f1fa9a8 | 3cf1535ce25f3f0a71bfd5c7697b0efd1a9ce08c | /Experiments/forontiers_jupyter/pipe_utils.py | 40ad6099d3b3d895a5d271f28ead36f985a5adde | [
"MIT"
] | permissive | junhull/Resic | 11ac59a2caf4399822f6280fee41275a7a1fd5a8 | 30b96870713a3dfb356122cb71576dd00be60329 | refs/heads/main | 2023-05-31T11:30:11.469612 | 2021-06-25T17:34:29 | 2021-06-25T17:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | import os
from tkinter import filedialog
from tkinter import *
import itertools
import subprocess
from functools import partial
import Processing.genome_3nt as genome_3nt
# TODO note that orchestration is done in functions with clear explanation
def all_genome_pair_combinations():
yield from itertools.combination... | [
"you@example.com"
] | you@example.com |
64f56a690ecf18c897dc21fc3c4486792d2c8951 | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/grr/grr/client/grr_response_client/local/binary_whitelist.py | 8c4e5b27c32b76d489f50185d4ea98a673d345b2 | [
"MIT",
"Apache-2.0"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/env python
"""Deployment-specific whitelisted binaries."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
def IsExecutionWhitelisted(cmd, args):
"""Check if a binary and args is whitelisted.
Args:
cmd: Canonical path to the binary.
... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
f4a5f6ff610a2ef870fbcd75f625332f734d48f0 | 7f52618136c8d9b9ba0ce8f89f3fcc90c4e6feb7 | /csa_new/csa_new/doctype/umpire/test_umpire.py | 680f95b417bffcbca637abc61e953926fe0cf808 | [
"MIT"
] | permissive | Jishnu70055/user_management | 7ade7f196f974ea0b3ddb220e3fca49665d9de3b | 82d3d2c85a62c7f1162633c164cb7d50e229d2fd | refs/heads/main | 2023-07-06T14:03:00.213723 | 2021-08-10T12:42:10 | 2021-08-10T12:42:10 | 394,649,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | # Copyright (c) 2021, sd and Contributors
# See license.txt
# import frappe
import unittest
class TestUmpire(unittest.TestCase):
pass
| [
"jishnudq70055@gmail.com"
] | jishnudq70055@gmail.com |
93b46d4c10c77831d45ccf5c2f27fd29fb9f87e1 | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /plugins/connection/lxc.py | 8fbdc1dcea4264bafa80c39b00f14d3869110c0c | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,212 | py | # (c) 2015, Joerg Thalheim <joerg@higgsboson.tk>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
author: Joerg Thalheim <joe... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
1e1be642f06a47ab43110db05f45feb8915a301f | 81d4debdcea628793d9f4c8fe0b0a324750c3ce9 | /meteva/base/fun/diagnosing.py | 4c0b81773645b2bab2a423637acf6eba4b64da45 | [] | no_license | fu0228/meteva | 6a4df63380df6bc443e20a2115eba0ec8ecc70b1 | 0fe30af3cda811d8260372b6029abb621e68e39c | refs/heads/master | 2023-01-28T00:18:58.666406 | 2020-12-06T13:25:36 | 2020-12-06T13:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,599 | py | import math
import meteva
from meteva.base.tool.math_tools import lon_lat_to_cartesian
from scipy.spatial import cKDTree
import numpy as np
import copy
import pandas as pd
import datetime
def accumulate_time(sta_ob,step,keep_all = True):
'''
观测数据累加
:param sta_ob:
:param step:
:param keep_all:
... | [
"liucouhua@163.com"
] | liucouhua@163.com |
cfd15ad4fd1f86eb6e93d87b51cc4e985e79c39d | 3d9ec6fddb04669104091b2f3b6f8fd0617db64d | /api/cloud_provider/compute_model.py | 0665ec64b08f60672fbcf8a1d2059be952f4c802 | [
"Apache-2.0"
] | permissive | lixianseng-limeidong/KubeOperator | b4403de8b38de54b5d0f153b19da38e6870283b3 | 124d7d9320a563d7f9f82c82bb762b523f921567 | refs/heads/master | 2020-08-07T17:34:35.196221 | 2019-10-08T03:12:20 | 2019-10-08T03:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import logging
import os
import yaml
from fit2ansible.settings import CLOUDS_RESOURCE_DIR
logger = logging.getLogger(__name__)
compute_models = []
def load_compute_model():
with open((os.path.join(CLOUDS_RESOURCE_DIR, 'compute_model_meta.yml'))) as f:
logger.info('Load compute model meta')
comp... | [
"scydeai@qq.com"
] | scydeai@qq.com |
07f03ddd26a9d4f0c1263c883b35fa596a4e0cf2 | 517a7be46b56c7a9658255dc9d2abc5872ead589 | /Line_sweep/the_skyline_problem.py | 1ce50e56c6eb0758eaccfbaa556cedda5445be58 | [] | no_license | timwangmusic/Algorithm-Design | d1f1f7cdd6b769edbb0fa0d6cf5ddd641568baeb | 5aea290f55ec80d733c596fd6fa595adac776b97 | refs/heads/master | 2022-10-03T12:23:26.134172 | 2020-05-22T00:38:47 | 2020-05-22T03:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | import collections
import heapq
from typing import List
"""
Skyline problem
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed
from a distance. Now suppose you are given the locations and height of all the buildings,
output the skyline formed by these building... | [
"weihewang2012@gmail.com"
] | weihewang2012@gmail.com |
df9d3e526751041179700b307c8cfb940b7c8a4b | e2426d7c01500ca4a2df4e4555f217f957baf957 | /cows/xml/util.py | 9a9fbbd3fc3cc0537e00ab8b27933d2b0ba9c54a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | cedadev/cows | 959a5e1ad220cfe0cce48a2131d6971106c765aa | db9ed729c886b271ce85355b97e39243081e8246 | refs/heads/master | 2020-03-16T15:17:45.710584 | 2018-05-09T10:35:47 | 2018-05-09T10:36:37 | 132,736,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # BSD Licence
# Copyright (c) 2009, Science & Technology Facilities Council (STFC)
# All rights reserved.
#
# See the LICENSE file in the source distribution of this software for
# the full license text.
# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
# This software may be distributed un... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
864325413a3e37a779f35facb6b7925229555615 | fac6e2aeba6873719a349f3f088a22183f92466c | /oracle/python/protectOracle/protectOracle.py | 00a0c61070908e63a21adc4ecbae136f980d078c | [] | no_license | geoffaskam/scripts | b8cd177f19c9990f93317d245d8ea87fe4cbfff3 | 1909d2dad935f10a26992a17541407b07c6b7884 | refs/heads/master | 2023-08-20T14:26:36.900054 | 2021-09-13T10:32:11 | 2021-09-13T10:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,570 | py | #!/usr/bin/env python
"""Protect Oracle"""
# usage:
# ./protectOracle.py -v mycluster \
# -u myuser \
# -d mydomain.net \
# -p 'My Policy' \
# -j 'My New Job' \
# -z 'America/New_York' \
# -s myserver.mydo... | [
"bseltzer@cohesity.com"
] | bseltzer@cohesity.com |
439d402a75de7bc30ffde90e79926a8c711ed6fc | f88f900c0384f6da82eeb749371ad44115527700 | /course-book/09-matching/0911-sift.py | 22566d262cac06e2ecb7a1028026128497681c01 | [] | no_license | aaron-kr/learning-opencv | eff382e8f0c822400f765451d57b192a63cd1b74 | 158239f0140569aec519fc1fbf255c54ef2567d2 | refs/heads/main | 2023-08-21T11:02:49.775425 | 2021-10-27T00:04:01 | 2021-10-27T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | # 0911.py
# SIFT = Scale Invariant Feature Transform
import cv2
import numpy as np
#1
def distance(f1,f2):
x1,y1 = f1.pt
x2,y2 = f2.pt
return np.sqrt((x2-x1) ** 2 + (y2-y1) ** 2)
def filteringByDistance(kp, distE = 0.5):
size = len(kp)
mask = np.arange(1, size + 1).astype(np.bool8) # all True
... | [
"jekkilekki@gmail.com"
] | jekkilekki@gmail.com |
bf2e7bde9751dd59167e44ff617162cc3d743610 | 482ed16cd1c8d721e98a9c460555802f7cce8906 | /run-tests/t226.py | c3179519a2fe24c123647a0afa2d80f4d0ce9940 | [
"MIT"
] | permissive | forkcodeaiyc/skulpt_parser | ea2347b2a452476854cf03412474fae63bca31c0 | dd592e9b91bcbbe0c5cfdb5c2da0fb5ae604a428 | refs/heads/master | 2023-09-04T11:32:09.760317 | 2021-10-11T22:58:18 | 2021-10-11T22:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | for const in (1, 2, 3):
print(const)
def f():
for const in (1, 2, 3):
print(const)
for object in (1, 2, 3):
print(object)
instanceof = 5
void = 6
var = 7
delete = 8
switch = 9
default = 10
catch = 11
print((instanceof, void, var, delete, switch, default, cat... | [
"albert-jan.nijburg@babylonhealth.com"
] | albert-jan.nijburg@babylonhealth.com |
1f42f6a26b04a814d2e50725049e505104c4b7cb | b9286e5866373b777739f8a13ee06afa810451d5 | /antisocial/main/tests/test_models.py | 2a872f2af2ccf6ce8b1c891b839a08896ddffdcb | [
"BSD-3-Clause"
] | permissive | peicheng/antisocial | ff476d965e5f37cf038c88b13146ffe30dcd8e27 | 7ba8da6aa58ee20e5f01870b30a62d478cc707c9 | refs/heads/master | 2021-01-12T12:18:25.290271 | 2016-10-25T13:27:34 | 2016-10-25T21:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | from django.test import TestCase
from antisocial.main.models import Feed, Entry, extract_published
from datetime import datetime, timedelta
def feed_factory():
return Feed.objects.create(
url="http://example.com/",
guid="1234",
title="test feed",
last_fetched=datetime.now(),
... | [
"anders@columbia.edu"
] | anders@columbia.edu |
bae7da5bd3bf39389bc7010564d8a48d2f341187 | 0377a4135f9e8940809a62186b229295bed9e9bc | /剑指offer/素数对/solution.py | 8f7cd0843bb2c0886a8583a50ff0752e5a9d95fa | [] | no_license | neko-niko/leetcode | 80f54a8ffa799cb026a7f60296de26d59a0826b0 | 311f19641d890772cc78d5aad9d4162dedfc20a0 | refs/heads/master | 2021-07-10T10:24:57.284226 | 2020-09-13T11:28:45 | 2020-09-13T11:28:45 | 198,792,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # 给定一个正整数,编写程序计算有多少对质数的和等于输入的这个正整数,并输出结果。输入值小于1000。
# 如,输入为10, 程序应该输出结果为2。(共有两对质数的和为10,分别为(5,5),(3,7))
import math
def Solution(num):
cot = 0
for i in range(1, (num // 2)+1):
if Judge(i):
if Judge(num-i):
cot += 1
return cot
def Judge(num):
if num <= 2:
... | [
"2361253285@qq.com"
] | 2361253285@qq.com |
863df0383c9787e542ce56e905fdafa519dba0cc | adecd0537a42ae728db1dea2b754c503dc533f9f | /docs/cycles.py | b92db1c1aa11ae72731c03e42d231df14990ecaa | [
"MIT"
] | permissive | mickaellalande/proplot | 596ab4a2c9c820b64b38bf6f54ccda440e98fe4a | 31bdb57f88190dc64f70bbd4d784b1af69ec36fc | refs/heads/master | 2022-12-17T12:00:43.428061 | 2020-09-23T15:04:10 | 2020-09-23T15:04:10 | 287,268,054 | 0 | 0 | MIT | 2020-08-13T12:02:26 | 2020-08-13T12:02:26 | null | UTF-8 | Python | false | false | 7,362 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.3.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [raw] raw_mimetype="text/restructuredtext"
# .. ... | [
"lukelbd@gmail.com"
] | lukelbd@gmail.com |
0bf18a73e83e14446d208b46726489c1f8870061 | e99dfc900052272f89d55f2fd284389de2cf6a73 | /apostello/loaddotenv.py | 4a4189db4fdd1e2b38c5c29fcd1b383351778925 | [
"MIT"
] | permissive | armenzg/apostello | a3e6ca3d34917608af79fbab4134ee4de1f5e8ee | 1827547b5a8cf94bf1708bb4029c0b0e834416a9 | refs/heads/master | 2021-01-18T18:16:02.364837 | 2017-03-22T20:34:21 | 2017-03-22T20:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #!/usr/bin/env python
import os
from dotenv import load_dotenv
def loaddotenv():
"""Load env vars from .env file."""
fname = '.env'
dotenv_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', fname)
)
load_dotenv(dotenv_path)
| [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
7bf14c0c23f8195723424bf053dcaecb469ab14c | 8e90a7759ec7143427823547e0fbff58e0343aaa | /training_api/application/paths/services/path_service.py | a82588bb1dc00c46b4dd497a83fefd245a8bb3a8 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | BMW-InnovationLab/BMW-TensorFlow-Training-GUI | 646a6f86f26887e94351b4c572b7fe7f0842f75c | 06531dae14365986c86baf735fd149317f4bb67a | refs/heads/master | 2023-07-20T01:48:27.299962 | 2023-07-12T15:22:22 | 2023-07-12T15:22:22 | 227,429,492 | 1,030 | 198 | Apache-2.0 | 2023-05-22T17:40:23 | 2019-12-11T18:06:11 | Python | UTF-8 | Python | false | false | 528 | py | import json
from domain.models.paths import Paths
from domain.services.contract.abstract_path_service import AbstractPathService
class PathService(AbstractPathService):
"""
A class used to get paths from path.json and return object of type Paths
...
"""
def __init__(self):
with open("... | [
"Daniel.Jess@bmw.de"
] | Daniel.Jess@bmw.de |
ab66cbb9b29c88f353c308f5e5c9bb2d4fe923a6 | 5ca4a0d91f5bd119e80478b5bd3d43ed30133a42 | /film20/core/migrations/0003_auto__add_moderatedpersonlocalized__add_field_personlocalized_biograph.py | 0ff9cc77d7adec9c89c4e5790cc3f692bb33839a | [] | no_license | thuvh/filmmaster | 1fc81377feef5a9e13f792b329ef90f840404ec5 | dd6a2ee5a4951b2397170d5086c000169bf91350 | refs/heads/master | 2021-01-17T16:10:54.682908 | 2012-04-29T18:19:52 | 2012-04-29T18:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,680 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ModeratedPersonLocalized'
db.create_table('core_moderatedpersonlocalized', (
(... | [
"email@ibrahimcesar.com"
] | email@ibrahimcesar.com |
bec7895cdef7c093a11c9933c559bcc908c7a1b2 | 3839400cb89316ce591667f17c0f72c85b16b242 | /misc/mutalyzer-comparison/bin/hgvs-g-to-c | d346afda01cd8ec0c8a126fa0bcb3f0c43d687a3 | [
"Apache-2.0"
] | permissive | HealthVivo/hgvs-1 | 73f768345fb2144c1c737a00436e524c22a9423d | 26aba8877791b0f94f1e14a5a49c60bcdaf2e6fd | refs/heads/master | 2020-12-13T01:28:10.625165 | 2014-09-03T05:51:43 | 2014-09-03T05:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
"""compare hgvs and mutalyzer for c. and g. variants provided on the command line
The comparison has two basic cases:
1) When a c. variant is provided, it is converted to g. by both hgv... | [
"reecehart@gmail.com"
] | reecehart@gmail.com | |
74ddc9a8dc922ee096e065d875cfc1e898f7a31d | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SystemConfiguration/PyObjCTest/test_scpreferences.py | ee461b1fa5e0c25b9106f2e1df010723e61a60ec | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | from PyObjCTools.TestSupport import *
from SystemConfiguration import *
#from SecurityFoundation import SFAuthorization
class TestSCPreferences (TestCase):
def testConstants(self):
self.assertEqual(kSCPreferencesNotificationCommit, 1<<0)
self.assertEqual(kSCPreferencesNotificationApply, 1<<1)
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.