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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b09cc57289aebfadf3badeff4f9bef7c017e0dc | 04cd6250630b3aad49219acbae0b7682f4263afb | /sbaas/analysis/analysis_stage02_isotopomer/stage02_isotopomer_dependencies.py | 7813c8ad014ac51fbf424a16b962f14cfd089746 | [
"Apache-2.0"
] | permissive | SBRG/sbaas | ec04bd3a82248600328c053bc798d7d302fbaf9d | 9df76bbffdd620cf8566744a2b0503935998fbe0 | refs/heads/master | 2021-01-21T23:29:26.713889 | 2015-06-24T17:16:59 | 2015-06-24T17:16:59 | 28,518,590 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 297,680 | py | '''isotopomer metabolomics analysis class'''
from sbaas.analysis.analysis_base import *
from .stage02_isotopomer_query import *
from .stage02_isotopomer_io import *
# Dependencies
import operator, json, csv
from copy import copy
# Dependencies from 3rd party
import scipy.io
from numpy import histogram, mean, std, load... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
b14adaf5a89b66b23c4ea53b5a93cd242caca777 | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /test_utilities/src/d1_test/mock_api/tests/test_get.py | d1eaef95d18355fd89576cc41c693343b6516ba0 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 2,721 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
3e43c121fa98f0c8fd7478f5ac8cd4cfe08fcd43 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/sql/azure-mgmt-sql/generated_samples/transparent_data_encryption_list.py | 3e2275f884eabc284c7627538174b4de0a236e32 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,661 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fe69d824ce277807f6d3e0d5eaaff8a66490ae4b | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /otp/src/level/ModelEntity.py | 5850215d12244dd9e104ca4eebaf6cf5fd012828 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | from toontown.toonbase.ToontownGlobals import *
from direct.directnotify import DirectNotifyGlobal
import BasicEntities
class ModelEntity(BasicEntities.NodePathEntity):
LoadFuncs = {
'loadModelCopy': loader.loadModelCopy,
'loadModel': loader.loadModel,
'loadModelOnce': loader.loadModelOnce,... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
22e5a66e84c47b3691015f299972b4f9e43427f4 | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/firestore/v1/firestore_v1_client.py | ac370070865d488484aa602c2024b65bf41079fa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,606 | py | """Generated client library for firestore version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.firestore.v1 import firestore_v1_messages as messages
class FirestoreV1(base_api.BaseApiClient):
"""Generated clien... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
bb35ccd3ccfc92a049807e3711182d740eb677b8 | eab2dc435028b2548554d97b24eb7b7e3576b953 | /iblrig/check_sync_pulses.py | b53097729443914a5879f7b454f1900b4316e049 | [
"MIT"
] | permissive | k1o0/iblrig | 35edd8570215ca591b1f1e26e47439e633aa587a | 9177b852b344a9bbc26e4a4aeb5f0182bd8a9b25 | refs/heads/master | 2021-05-24T12:58:47.552912 | 2020-02-25T20:19:59 | 2020-02-25T20:19:59 | 253,573,669 | 0 | 0 | MIT | 2020-04-06T17:48:28 | 2020-04-06T17:48:28 | null | UTF-8 | Python | false | false | 2,875 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Niccolò Bonacchi
# @Date: Monday, February 25th 2019, 2:10:38 pm
import logging
import sys
from pathlib import Path
import ibllib.io.raw_data_loaders as raw
import matplotlib.pyplot as plt
import numpy as np
from iblrig.misc import get_port_events
log = logging... | [
"nbonacchi@gmail.com"
] | nbonacchi@gmail.com |
c43dee062a7499d04b64507171d861b11b09912e | df3c8c521a51f2b412118bd9d0e477da06a3b7cc | /build/view_environments/post_create_/create_post/create_post.py | 2a6a13f8a1551a30e01dd4e643e8f14b345f9bfd | [] | no_license | bharatmudragada/fb_post | c30b900731db5844df6b438e5d38a0dfb607412a | c5e7bb185a561bdcfcd7b2e30264554b07106044 | refs/heads/master | 2020-06-21T04:05:22.296755 | 2019-07-17T07:48:22 | 2019-07-17T07:48:22 | 197,339,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | from django_swagger_utils.drf_server.decorators.request_response import request_response
from django_swagger_utils.drf_server.default.parser_mapping import PARSER_MAPPING
from django_swagger_utils.drf_server.default.renderer_mapping import RENDERER_MAPPING
from fb_post.build.serializers.definitions.PostContent.PostCont... | [
"bharathmudragada123@gmail.com"
] | bharathmudragada123@gmail.com |
8608678850cf6031586f8b1bce7e8531244232c5 | 7869035b72807394154285d307e0597ee16f11d8 | /src/data_loader.py | 2a23407ac8c03daa931088d7b07b81b5ff04a48b | [] | no_license | tiffany70072/TokenPositioning | cb74edae92e19c16f8ca763935e56b0f2e698b85 | a2ab63640a2aff1abfccaa1c1486d8a97026ef0b | refs/heads/master | 2022-07-19T11:21:04.716882 | 2020-04-17T06:02:18 | 2020-04-17T06:02:18 | 254,995,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | import numpy as np
import os
from sklearn.model_selection import train_test_split
def load_data(task, data_name, data_type):
if task == "autoenc-last" or task == 'token-posi':
assert data_type == "train" or data_type == "valid", "no this data type."
data_path = os.path.join("../data", data_name)
... | [
"tiffany70072@gmail.com"
] | tiffany70072@gmail.com |
84fdc9040b3bcc55c94270233da3cce4c9b669d5 | babc56e88a3b5f5038be70ad676d5bd8f1bbf0d2 | /wind_direction_byo.py | 94bc6600dd5986d16cb2cf6d96ba20ac2a7f7738 | [] | no_license | VicenteYago/CustomWeatherStation | 873405ca16aa0b6f4f291cbc0068a6ea10aef745 | c655f947cca2cd0f8827c18f6f7a7c4c11ef4d43 | refs/heads/master | 2022-11-13T06:48:05.736830 | 2020-06-30T00:43:07 | 2020-06-30T00:43:07 | 269,812,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | from gpiozero import MCP3008
import time
import math
adc = MCP3008(channel=0)
count = 0
values = []
volts = [0.4, 1.4, 1.2, 2.8,
2.9, 2.2, 2.5, 1.8,
2.0, 0.7, 0.8, 0.1,
0.3, 0.2, 0.6, 2.7]
volts_dic = {
0.4: 0.0,
1.4: 22.5,
1.2: 45.0,
2.8: 67.5,
2.7: 90.5,
2.9:... | [
"="
] | = |
b676c5cba48c2e1efd64286543f5f6aadfef51fd | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/wotdecorators.py | 1554469a75cbd2eab8d57565f8457da484b5051a | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,832 | py | # 2017.08.29 21:52:48 Střední Evropa (letní čas)
# Embedded file name: scripts/common/wotdecorators.py
import inspect
from functools import update_wrapper
from debug_utils import LOG_WRAPPED_CURRENT_EXCEPTION, CRITICAL_ERROR
from time_tracking import LOG_TIME_WARNING
import time
import time_tracking
def noexcept(func)... | [
"info@webium.sk"
] | info@webium.sk |
c177f0da14bb7731c15a9e25ad35b2bb78f5ca63 | 3d2192385e65889d20b74742755f5369d0d09161 | /stock_colis/models/__init__.py | da8dece232489928427446f10dfd1d1af8ea259d | [] | no_license | FIDINGSARL/audoune | 9ba746a9d7424a41f8775a6e30f42f2a97224edf | 39cecd44497d5fa227cc594a6bf5807eb14976d3 | refs/heads/main | 2023-06-18T09:49:13.778878 | 2021-06-30T15:06:51 | 2021-06-30T15:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | # -*- coding: utf-8 -*-
from . import stock_colis, stock_colis_request
| [
"macbook@MacBook-Pro-de-MacBook.local"
] | macbook@MacBook-Pro-de-MacBook.local |
218046a18f59c8cc6a566f6a16807e74d5250298 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /packages/pyre/platforms/PackageManager.py | 0877270914d7a2f1326787f57abfbb1ac0125b31 | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
# the framework
import pyre
# declaration
class PackageManager(pyre.protocol, family='pyre.platforms.packagers'):
"""
Encapsulation of host specific information
"""
# requirements
@pyre.provides... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
68caed12611a8b789a1964a22fb49575eca70c7f | 76d388b5d2e74ff0eda748c7868fadf0704cf700 | /tensorpack/utils/develop.py | 496de1dd245db766c3e4ba256ddb638d5e621b48 | [
"Apache-2.0"
] | permissive | jooyounghun/tensorpack | eebf0867e5a82ffd52660dccfbd34879b8d0f5af | 90cdae380c40a1e91f627520c4a739bd6ee3f18b | refs/heads/master | 2020-03-23T23:24:41.651089 | 2018-07-27T02:57:19 | 2018-07-27T02:57:19 | 142,232,523 | 1 | 0 | Apache-2.0 | 2018-07-25T01:45:06 | 2018-07-25T01:45:05 | null | UTF-8 | Python | false | false | 4,773 | py | # -*- coding: utf-8 -*-
# File: develop.py
# Author: tensorpack contributors
""" Utilities for developers only.
These are not visible to users (not automatically imported). And should not
appeared in docs."""
import os
import functools
from datetime import datetime
import importlib
import types
import six
from . imp... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
820708161506216faa57b389f2f0890d60afef5d | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible/modules/cron.py | 2424f5c065543ddd96be359b69a92e58495389fd | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 26,537 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2012, Dane Summers <dsummers@pinedesk.biz>
# Copyright: (c) 2013, Mike Grozak <mike.grozak@gmail.com>
# Copyright: (c) 2013, Patrick Callahan <pmc@patrickcallahan.com>
# Copyright: (c) 2015, Evan Kaufman <evan@digitalflophouse.com>
# Copyright: (c) 2015, Luca... | [
"sifang@cisco.com"
] | sifang@cisco.com |
bcded7ca3347b631cb06ccb49aa49c5ef2291909 | 6cb18c62758bfbf783d3fabe851d1c4d9f323483 | /setup.py | 9319f44e05f51de89cc40224949e07be98a9e018 | [
"MIT"
] | permissive | bruinxiong/performer-pytorch | 68e505ff5e59d35e339b23661feef377795fd2df | c368b5e4efd46f72e2abaa655dc813021f911014 | refs/heads/main | 2023-01-04T02:25:42.898296 | 2020-10-26T22:41:09 | 2020-10-26T22:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from setuptools import setup, find_packages
setup(
name = 'performer-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.1.4',
license='MIT',
description = 'Performer - Pytorch',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.com/lucidrains/perform... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
a4c71809c35378bb39dbbce97d55d2a122ab4dcd | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/05_tictactoe/02grid_plot.py | b2fb6cbc7f65ddac4fc048c6664f6bdd82dfb227 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | #!/usr/bin/env python
import numpy as np
import itertools
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
class gameboard(object):
def __init__(self):
#player 1 puts a "X", player 2 puts a "O"
self.g = [[1,0,1],[0,0,2],[0,2,0]]
self.grid = np.arr... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
1697ff12097d074fe9a08b7e8cfbf1ecd1348016 | cca89a7bbe2da907a38eb00e9a083f57597273f0 | /162. 寻找峰值/pythonCode.py | ecfc5d414241c3d0b4d2b4aac3531e9ced628696 | [] | no_license | xerprobe/LeetCodeAnswer | cc87941ef2a25c6aa1366e7a64480dbd72750670 | ea1822870f15bdb1a828a63569368b7cd10c6ab8 | refs/heads/master | 2022-09-23T09:15:42.628793 | 2020-06-06T16:29:59 | 2020-06-06T16:29:59 | 270,215,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from typing import List
class Solution:
def findPeakElement(self, nums: List[int]) -> int:
def binarySearch(l:int,r:int) -> int:
if(l == r): return l
mid = (l + r) // 2
if(nums[mid] > nums[mid + 1]):
return binarySearch(l,mid)
else:
... | [
"changwenhao1@qq.com"
] | changwenhao1@qq.com |
96eb58da2807780f7f78eb49453cd03e2e4a57bb | 33f30925224a7db3e3bf6948c6c569ad850e9c76 | /Server/bin/rst2xml.py | 6a7fab179644d60c2959331900cdea30a7350337 | [] | no_license | duelle/CTT | 2bc64fffaf4b2eb3976fedd7aea231a51da8fbe9 | e2da2ab9c599833cc8409728b456a9e37825986b | refs/heads/master | 2022-04-06T15:25:06.747919 | 2020-02-19T14:04:37 | 2020-02-19T14:04:37 | 237,939,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/home/duelle/Repositories/git/RadonCTT/Server/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import l... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
55c5e4126f52501d3ab1f9cd4f9c49c47dc30d18 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ZXR10-MACPING-MIB.py | 805cbd59b0fb3a90dcafa3b37ef03e6abdf405d0 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,798 | py | #
# PySNMP MIB module ZXR10-MACPING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MACPING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:42:08 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
eba5e24cb7ae539f05831d88b27d99b2346a8f0a | ec9129d3eb1880df9f0b54c76510352a7e004b0c | /tools/make_vps_tarball.py | b03537feaa59ec1a6a93c522cfd621963bf12eba | [] | no_license | eugen-don/vps | 4057e6ddb1db274dbd8d78fa926376cfc3a40aa7 | 6a16569868241b35d8137b7f2b2f8db0cf67ff55 | refs/heads/master | 2021-01-11T16:29:53.109075 | 2014-05-14T09:20:33 | 2014-05-14T09:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/env python
import sys
import os
import _env
import ops.os_init as os_init
import conf
assert conf.OS_IMAGE_DIR and os.path.isdir(conf.OS_IMAGE_DIR)
def usage():
print """usage: \n%s [image_path/partion_path] [tarball_dir]
""" % (sys.argv[0])
def main():
if len(sys.argv) < 3:
usage()
... | [
"frostyplanet@gmail.com"
] | frostyplanet@gmail.com |
f716de44a80a10f01bfaa8b3a8d58b4ec092c945 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.71/bluedon/monitor/sbin/checkproc.py | cd3521785adb14ce48baf65ec961b05655ab0e50 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import os, re, sys
rexplogstart = re.compile(r'grep logstart.pl')
rexpwebvisit = re.compile(r'grep webvisit.pl')
def checklogstart():
if not os.path.exists("/usr/local/bdwaf/logs_bridge/data"):
os.popen("mkdir -p /usr/local/bdwaf/logs_bridge/data")
if not os.path.exists("/usr/local/bdwaf/logs_proxy/da... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
dc95cfc1d53773ef74245ed5c8a5b6bbbf3ce933 | 65e076e4fcc00a67faa0932b3f3a3d3a3a11e2aa | /sdk/python/pulumi_google_native/datastore/v1/_enums.py | 15df09472641b2ebbeb23bd87aeab08fb357fbf9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | TheJaySmith-Google/pulumi-google-native | 816babe5c7316724e02d5b8b9d789df00262bb8e | 566c295a39fe8c3dd16e4a7894ff6de72423e5da | refs/heads/master | 2023-06-05T06:45:19.979837 | 2021-06-23T11:42:27 | 2021-06-23T11:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'GoogleDatastoreAdminV1IndexedPropertyDirection',
'IndexAncestor',
]
class GoogleDatastoreAdminV1IndexedPr... | [
"noreply@github.com"
] | TheJaySmith-Google.noreply@github.com |
cef9a68afdddd61d9d2c7d5510d7a38174bc8f1c | 4b68243d9db908945ee500174a8a12be27d150f9 | /pogoprotos/networking/requests/messages/update_fitness_metrics_message_pb2.py | 522382d168f4fe3adab53afbb40fe730c7070bd9 | [] | no_license | ykram/pogoprotos-py | 7285c86498f57dcbbec8e6c947597e82b2518d80 | a045b0140740625d9a19ded53ece385a16c4ad4a | refs/heads/master | 2020-04-20T10:19:51.628964 | 2019-02-02T02:58:03 | 2019-02-02T02:58:03 | 168,787,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,937 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/networking/requests/messages/update_fitness_metrics_message.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import messa... | [
"mark@noffle.net"
] | mark@noffle.net |
22ffc7c4ae1f6b16b2ece3c70722f0a2d0ec48c5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2480/59018/262642.py | 80da0919c460c290863470859367203af1d15933 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | def even_odd(N,a):
b=[]
for j in a:
if j%2==0:
b.append(j)
a.pop(j)
c=b+a
return c
T=int(input())
for i in range(T):
N=int(input())
info=input().split(' ')
a=[int(y) for y in info]
print(even_odd(N,a))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
66e5e2cd1dd250b00922b3b3211b1c0c1c510d35 | 53565e19de1d345552f5f469f4e4ea311a421bb8 | /app/artist/models/artist.py | de30a6078bcfde1cf589a711184a2c568c8bfd52 | [] | no_license | standbyme227/fc-melon | 18e17aa8b85906a62e1631e54a70ff85d72ea435 | 8f0f4d40021f75a025e91fa6aebea143bccb6ce3 | refs/heads/master | 2021-05-03T18:59:13.495171 | 2018-03-20T02:32:02 | 2018-03-20T02:32:02 | 120,418,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | from django.conf import settings
from django.db import models
from django.forms import model_to_dict
from django.http import JsonResponse, HttpResponse
from .artist_youtube import ArtistYouTube
from .managers import ArtistManager
__all__ = (
'Artist',
)
class Artist(models.Model):
BLOOD_TYPE_A = 'a'
BLO... | [
"standbyme227@gmail.com"
] | standbyme227@gmail.com |
ac071ec7c195c0c7838f31cdd9f41fe37a46ad9c | a44a9279258ace54be0ea6d410e6ddb5a2d72bcb | /project-addons/custom_reports/models/product.py | 719faf154fd24aa8c981b08a03877ad3b5b456aa | [] | no_license | athlontado/PXGO_00064_2014_PHA | 346f33185a07c2e1766a7cc79cd300252d9b2480 | 3086baba490e47a5dcc7942c7c5fee9fc047ddcd | refs/heads/master | 2020-04-06T03:56:15.828784 | 2016-04-18T12:24:53 | 2016-04-18T12:24:53 | 59,216,028 | 0 | 0 | null | 2016-05-19T14:50:54 | 2016-05-19T14:50:54 | null | UTF-8 | Python | false | false | 1,240 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2016 Pharmadus. All Rights Reserved
# $Óscar Salvador <oscar.salvador@pharmadus.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | [
"oscar.salvador@pharmadus.com"
] | oscar.salvador@pharmadus.com |
0e029895d75465efd99006fba963cce56d4204ed | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pandas-dev_pandas/pandas-master/pandas/tests/test_nanops.py | 937c20d009b6bfb2143c62b9aa96a110e0d6c71f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 43,023 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from functools import partial
import warnings
import numpy as np
from pandas import Series, isnull
from pandas.types.common import is_integer_dtype
import pandas.core.nanops as nanops
import pandas.util.testing as tm
use_bn = nanops._USE_BOTTLEN... | [
"659338505@qq.com"
] | 659338505@qq.com |
2b2a54641d5f56d801a5a0f1798713935087ef28 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/simtbx/run_tests.py | 5c3244e65192c78f2e1b57410133b5e40024a0a5 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 468 | py | from __future__ import absolute_import, division, print_function
from libtbx import test_utils
import libtbx.load_env
tst_list = (
"$D/nanoBragg/tst_nanoBragg_minimal.py",
"$D/nanoBragg/tst_nanoBragg_mosaic.py",
"$D/nanoBragg/tst_gaussian_mosaicity.py",
)
def run():
build_dir = libtbx.env.under_buil... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
80d457fe0e0df539d494873fa3d8e41ce774ae0b | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/palemale/a.py | f78d73ef5adea50522114802f390513ce3e2cfff | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 810 | py | import os, sys
with open(sys.argv[1], 'r') as infile:
N = int(infile.readline().strip())
for x in xrange(1, N+1):
T = infile.readline().strip()
cases = set(list(T))
intT = int(T)
current = intT
count = 2
stablecount = 0
while len(cases) < 10:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
0bf9f14a7d8f3b313cb14ebe38a4ae36709d9164 | 92237641f61e9b35ff6af6294153a75074757bec | /Algorithm/programmers/lv2/lv2_짝지어 제거하기.py | dc49c17ce25e718214f85eb4831fb672b343a239 | [] | no_license | taepd/study | 8ded115765c4f804813e255d9272b727bf41ec80 | 846d3f2a5a4100225b750f00f992a640e9287d9c | refs/heads/master | 2023-03-08T13:56:57.366577 | 2022-05-08T15:24:35 | 2022-05-08T15:24:35 | 245,838,600 | 0 | 1 | null | 2023-03-05T23:54:41 | 2020-03-08T15:25:15 | JavaScript | UTF-8 | Python | false | false | 278 | py | def solution(s):
stack = []
for e in s:
if not stack:
stack.append(e)
else:
if stack[-1] == e:
stack.pop()
else:
stack.append(e)
if stack:
return 0
else:
return 1 | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
69b384952afa18b41fb769869d637c21f4a61bbb | 2075052d028ed31a30bdb9acb0a2022c2634f52b | /chat/consumers.py | 761dd8369a35c0e33e7d8ef65e1ce163904ade18 | [] | no_license | igoo-Y/live_chat_app | b67704caa2e5944b131a4299716e501b555985b5 | d65c87a35d3f3a120da35290addb798e412dad72 | refs/heads/main | 2023-06-30T13:21:49.860265 | 2021-08-03T09:11:29 | 2021-08-03T09:11:29 | 392,256,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | 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 ... | [
"79055280+igoo-Y@users.noreply.github.com"
] | 79055280+igoo-Y@users.noreply.github.com |
aa41fbd83ac1923d6fda08de4cc8f3ebd55904e0 | 90390ddcc21d2f2c0dd5ee3c0e7a3d8d61be9638 | /wsgi/app/forms.py | 4141cbb7183fc430344eb1bf806ca44a244d8598 | [
"MIT"
] | permissive | pjamesjoyce/lcoptview_legacy | b27926e31c16f1fca07c6294e66d706fcb600682 | e0ebeb155d6f62d8619d33cf48db98bab8b7a4cd | refs/heads/master | 2021-07-16T11:38:58.451239 | 2017-09-26T10:43:50 | 2017-09-26T10:43:50 | 107,691,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
login_data = TextField('username or email', validators=[DataRequired()])
password = PasswordField('password', validators=[DataRequired()])
class RegistrationFo... | [
"pjamesjoyce@gmail.com"
] | pjamesjoyce@gmail.com |
3823340ea644b2feec0858721dad3a7c2d67d330 | 1b597dd7630f9a3023faf557e383b0fae703e72b | /test_autogalaxy/unit/aggregator/test_aggregator.py | 40b7acd97191da8084e06012b80ef34395849c57 | [
"MIT"
] | permissive | knut0815/PyAutoGalaxy | 96e9dfc558182169c41e19d3297cdf46b42d5f77 | cc2bc0db5080a278ba7519f94d2a8b2468141e2d | refs/heads/master | 2023-03-05T00:59:51.594715 | 2021-02-09T18:21:30 | 2021-02-09T18:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py | from os import path
import pytest
import autofit as af
import autogalaxy as ag
from autogalaxy.mock import mock
directory = path.dirname(path.realpath(__file__))
@pytest.fixture(name="path")
def make_path():
return path.join("{}".format(path.dirname(path.realpath(__file__))), "files")
@pytest... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
b708ef0ba29cc97092ba45507823ff4dd82a5350 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /desktop/core/ext-py/Django-1.6.10/tests/decorators/tests.py | 05016be231c1703dbabc6a7a8f688f91e33ceaf2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 8,243 | py | from functools import wraps
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required, permission_required, user_passes_test
from django.http import HttpResponse, HttpRequest, HttpResponseNotAllowed
from django.middleware.clickjacking import XFram... | [
"540227148@qq.com"
] | 540227148@qq.com |
12148e25092c6f6329984c046651dba85edfb209 | 3c2e75d3563053dd186dcff324fd84eba561f2a7 | /python/onos/rsm/__init__.py | b94966701cbd5b870c5f829c3de02c8bd040a16c | [
"Apache-2.0"
] | permissive | stjordanis/onos-api | 00c2434090b9f51d7eacf00f082abd7f2146c1fc | 13fca9dc160a23bc9d89e4ef33ee2da9b2a8ee48 | refs/heads/master | 2023-09-02T11:07:58.824154 | 2021-11-01T17:40:27 | 2021-11-01T17:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,002 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: onos/rsm/rsm.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import Dict, List, Optional
import betterproto
from betterproto.grpc.grpclib_server import ServiceBase
import grpclib
class SliceType(betterproto.Enum):
... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
a11962ae95b28d1923e23d0a5c514d53c454524e | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.7.1/_downloads/a54f19823bde998a456571636498aa98/auto_subplots_adjust.py | bd6326b8291f4b1a16db182e1f642d2279a8f0b0 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 3,366 | py | """
===============================================
Programmatically controlling subplot adjustment
===============================================
.. note::
This example is primarily intended to show some advanced concepts in
Matplotlib.
If you are only looking for having enough space for your labels, i... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
b28bbc203b60e128307f6f9d8d309793f3dc1e1a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /yXZhG7zq6dWhWhirt_24.py | 1b4a59876a63f5dfdb4b9e7de1d41c308c735314 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
def is_prime(n):
if (n==1):
return False
for i in range(2,round(n**(0.5))+1):
if i!=n and (n%i)==0:
return False
return True
def filter_primes(num):
return [n for n in num if is_prime(n)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bbda84923f2c455dc60051aa1e126bf4dd187233 | 4a88ec266b64521fcaef88d92cb2b57776d3192b | /powerUsageNotification/powerUsageNotification.py | 132c11551e75d59adb52856ce265d156f20d6af7 | [
"MIT"
] | permissive | johntdyer/appdaemon-scripts | 4e5ea345d27d54d8133be212e5f7af57b8dfd57f | ce7e32a919be5a835d0bdf95e6650ff34b699220 | refs/heads/master | 2020-03-31T18:01:49.517418 | 2018-10-07T14:06:38 | 2018-10-07T14:06:38 | 152,443,705 | 1 | 0 | null | 2018-10-10T15:10:00 | 2018-10-10T15:09:59 | null | UTF-8 | Python | false | false | 4,100 | py | import appdaemon.plugins.hass.hassapi as hass
import globals
#
# App which notifies you when a power usage sensor indicated a device is on/off
#
#
# Args:
#
# app_switch: on/off switch for this app. example: input_boolean.turn_fan_on_when_hot
# sensor: power sensor. example: sensor.dishwasher_power_usage
# notify_name:... | [
"k.eifinger@googlemail.com"
] | k.eifinger@googlemail.com |
c4281a41c161ba65c8915083ae81b981745630ca | 9775ab319e5c1f2270a132b0244f0847db42589b | /nilai/migrations/0008_auto_20210117_1010.py | d2abe2075f8f24b61525b7b5c136dcc1bf54b97d | [] | no_license | nabaman/SPK-SAW | 9aa8dfaf1bf5162bae1dc5c97e2b3e033a08294b | 5c0b8d491f23939615aa968cd52f081072fe2230 | refs/heads/master | 2023-02-18T17:38:21.028901 | 2021-01-22T15:37:06 | 2021-01-22T15:37:06 | 331,987,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # Generated by Django 3.1.5 on 2021-01-17 10:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nilai', '0007_auto_20210117_1004'),
]
operations = [
migrations.RemoveField(
model_name='data_krips',
name='kriteria... | [
"naba.alvian@gmail.com"
] | naba.alvian@gmail.com |
5db6fa1f99c5b7ac65079c7fd585ce8c7915f235 | 817085c4009e48db05e4a30815fdd92ee27513f9 | /venv/Scripts/pip-script.py | 87639661c7805bc7bbf60fa04e4b53e33d5922f8 | [] | no_license | bluesnie/novel | 7e3a2f403def8fe3e1d9c8c1ba4e2a80344c39e0 | c11076ca61c619a2b7c1423d742d3f4c63dc1fed | refs/heads/master | 2020-04-24T02:07:07.516575 | 2019-02-20T07:44:19 | 2019-02-20T07:44:19 | 171,486,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!C:\Users\lenovo\PycharmProjects\novel\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"l"
] | l |
a643d38e90646191463eca1bc229387c66c1a11f | 65e0c11d690b32c832b943fb43a4206739ddf733 | /bsdradius/trunk/bsdradius/configDefaults.py | 244f2e4ef1d3488677ee5ad1c6d9c71ef18e43ac | [
"BSD-3-Clause"
] | permissive | Cloudxtreme/bsdradius | b5100062ed75c3201d179e190fd89770d8934aee | 69dba67e27215dce49875e94a7eedbbdf77bc784 | refs/heads/master | 2021-05-28T16:50:14.711056 | 2015-04-30T11:54:17 | 2015-04-30T11:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,442 | py | ## BSDRadius is released under BSD license.
## Copyright (c) 2006, DATA TECH LABS
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
## * Redistributions of source code must retain the above c... | [
"valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef"
] | valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef |
02247885ad972b4756997bffe5c07f2ebd394d4a | 908b6ee862375003eac9af6c8ea5b32533be4709 | /collective/phantasy/atphantasy/content/phantasyschema.py | 1842cf48d3c9871472abac28e8375078dccb4886 | [] | no_license | collective/collective.phantasy | c7199995d98be183eb163f5b73c3e89147f2e8a6 | 86cb66b0905f6bb284cfc03201dd5bbfa8f9010e | refs/heads/master | 2023-08-19T13:18:13.507960 | 2015-01-19T15:32:07 | 2015-01-19T15:32:07 | 29,517,296 | 0 | 0 | null | 2015-01-20T07:24:00 | 2015-01-20T07:24:00 | null | UTF-8 | Python | false | false | 37,998 | py | from Products.Archetypes.public import *
from collective.phantasy.config import I18N_DOMAIN
from Products.SmartColorWidget.Widget import SmartColorWidget
from Products.ATContentTypes.configuration import zconf
from Products.Archetypes.atapi import AnnotationStorage
from Products.validation.config import validation
fro... | [
"thomas.desvenain@gmail.com"
] | thomas.desvenain@gmail.com |
a842ae5ed2fa9404270a2b872f3c9f04a42ac434 | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/TestScript/UI/suite_UI_51/tst_UI_51_Pref_BufferAutoView/test.py | e1a9d9fe2212331ae4697f3a3269cdded8842a9c | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from API.Utility.Util import Util
from API.Utility import UtilConst
from API.MenuBar.Options.Options import Options
from API.MenuBar.Options.OptionsConst import OptionsConst
from API.MenuBar.Options.Preferences.Miscellaneous.MiscellaneousConst import MiscellaneousConst
from API.SimulationPanel.EventList.EventListConst ... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
509c23e3bf72658ffd093ae405cf9de4958fb78f | 102d09ef1d6effe166ad703ba4472c45dfb03263 | /py/Maximum_Depth_of_Binary_Tree.py | 199982277744c0985b39cfc2326fc115a739fec4 | [] | no_license | bitcsdby/Codes-for-leetcode | 5693100d4b66de65d7f135bbdd81b32650aed7d0 | 9e24e621cfb9e7fd46f9f02dfc40a18a702d4990 | refs/heads/master | 2016-09-05T08:43:31.656437 | 2014-08-02T15:14:53 | 2014-08-02T15:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param root, a tree node
# @return an integer
def maxDepth(self, root):
if root == None:
return 0;
... | [
"bitcsdby@gmail.com"
] | bitcsdby@gmail.com |
d0089bd15b2c1ffac1e167de02e3ee215da07c7b | 74698be74d244ebbabcb0b3cf17ebed26adfa37c | /orbit/utils/epoch_helper.py | 6eb110768887e95055c34f7fc3857f08a6b9c276 | [
"Apache-2.0"
] | permissive | lfads/models | aa75616fee2476641aa98ca1cbdce7e5d27a9aff | fd700f0cb2e104544c445d9fbf3991d8388ff18a | refs/heads/master | 2021-01-25T13:50:55.423010 | 2021-01-05T18:27:01 | 2021-01-05T18:27:01 | 123,619,512 | 16 | 9 | Apache-2.0 | 2021-01-05T18:27:02 | 2018-03-02T19:07:50 | Python | UTF-8 | Python | false | false | 2,136 | py | # Copyright 2020 The Orbit 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 applicable l... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
7df058d88c766a9b978227fca727c0f1587d9861 | 2e1322f72f730fdb019c25eb533424bfb411c7dc | /backend/garpix_page/contexts/default.py | 635931bdc671efeb46a46e470ae8ab5dc4d06058 | [
"MIT"
] | permissive | tempuku/garpix_page | 750d3ef78e1698d93564ae510a9514dfb815853f | d24fa3d8c7b0b4134e66795965596f3cdb61c8db | refs/heads/master | 2023-03-17T03:33:07.528207 | 2021-03-11T15:15:13 | 2021-03-11T15:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | def context(request, *args, **kwargs):
return {}
| [
"crusat@yandex.ru"
] | crusat@yandex.ru |
ad9a3b50ae05c454484d9697933ee5e00f730b4a | 5dd7c4ec44b76180040badc67849ad44f81690f9 | /unittests/test_stockitem.py | 751eb41a7c209613f1a6e803ac526f15a85a3c77 | [] | no_license | myluco/Phoenix | 68f9abe15a673fe56da6ef4375849ba6a642622d | 2de746beda35b8b5db547658cae1c65cfe164039 | refs/heads/master | 2021-01-18T15:59:05.001240 | 2016-12-04T00:08:36 | 2016-12-04T00:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import unittest
from unittests import wtc
import wx
#---------------------------------------------------------------------------
class stockitem_Tests(wtc.WidgetTestCase):
# TODO: Remove this test and add real ones.
def test_stockitem1(self):
self.fail("Unit tests for stockitem not implemented yet.")... | [
"robin@alldunn.com"
] | robin@alldunn.com |
6c10278bce7d441831f59503418233abcba5dee8 | 17c14b758959cdceec0dce8f783346fdeee8e111 | /chap05_nlp/automl/train.py | bca8b1fd41ce03b243523430bdc8d09621f7daa4 | [] | no_license | yurimkoo/tensormsa_jupyter | b0a340119339936d347d12fbd88fb017599a0029 | 0e75784114ec6dc8ee7eff8094aef9cf37131a5c | refs/heads/master | 2021-07-18T12:22:31.396433 | 2017-10-25T01:42:24 | 2017-10-25T01:42:24 | 109,469,220 | 1 | 0 | null | 2017-11-04T05:20:15 | 2017-11-04T05:20:15 | null | UTF-8 | Python | false | false | 3,650 | py | """
Utility used by the Network class to actually train.
Based on:
https://github.com/fchollet/keras/blob/master/examples/mnist_mlp.py
"""
from keras.datasets import mnist, cifar10
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.utils.np_utils import to_categorical
from keras.... | [
"tmddno1@naver.com"
] | tmddno1@naver.com |
95e2a602cdea202da5cba6e81d040adac387cb68 | ea3048858939a8162f82a1d0b0ec43171530ea8d | /apps/search/models.py | 62ec89db3a73a35a853d885c234a3453ffbb6a68 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kknet/NewsBlur | d229b12c39f7ca3eab1e28922171f87ea37b8df1 | fa78b434f980d2814dd05fedb70d9e87259ee998 | refs/heads/master | 2021-01-17T22:36:29.651729 | 2016-09-20T20:05:25 | 2016-09-20T20:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,270 | py | import re
import time
import datetime
import pymongo
import pyes
import redis
import celery
import mongoengine as mongo
from django.conf import settings
from django.contrib.auth.models import User
from apps.search.tasks import IndexSubscriptionsForSearch
from apps.search.tasks import IndexSubscriptionsChunkForSearch
fr... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
00c9949db590246f66d2bb3310ffbfe39a1fee79 | 9b24eb3a15e9acd4aaf7af00d88488f5a056438f | /backend/home/api/v1/viewsets.py | c7c28c17f806e899fca335a7c524c6cb75b776a2 | [] | no_license | crowdbotics-apps/dashboard-app-18025 | b8fb28008d42371c7d74102b78ae380725b3221a | 202f33b00e14f65adfc9dbf84f748ad5cc051652 | refs/heads/master | 2022-11-15T12:16:12.733390 | 2020-06-15T17:24:52 | 2020-06-15T17:24:52 | 271,619,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from rest_framework import viewsets
from rest_framework import authentication
from .serializers import (
AddressSerializer,
CustomTextSerializer,
HomePageSerializer,
XYSerializer,
)
from rest_framework.authentication import SessionAuthentication, TokenAuthentication
from rest_framework.authtoken.seriali... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
005b11fedd1241560633f3f19ce4ab82b6cf9068 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /resize.py | 306400848b45f96d2ec9be96bbc1dbae1a9871f7 | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import cv2
import argparse
import numpy as np
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="Path of image")
ap.add_argument("-w", "--width", default=100, help="Width of resized img")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
width = int(args["width"])
ratio... | [
"geegatomar@gmail.com"
] | geegatomar@gmail.com |
2534efd7cf1a472d4c24db7e37fb628ef53a3a0f | 9adda6cef38c05c0d6bc4f5d0be25e75500f3406 | /ques 2 sol.py | 00f2329450eb86ff204e44c7f8653fbee1abdcff | [] | no_license | GLAU-TND/python-programming-assignment4-upadhyay8844 | 09255dd1ef340f7af3ee57e4eee3c671c010d5c4 | bc5c31d40f03cceebb2c842bdd933e0e73a998a1 | refs/heads/master | 2021-05-19T05:26:14.857261 | 2020-04-01T11:43:27 | 2020-04-01T11:43:27 | 251,547,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | def is_dict(var):
return str(type(var)) == "<class 'dict'>"
def flatten_helper(d, flat_d, path):
if not is_dict(d):
flat_d[path] = d
return
for key in d:
new_keypath = "{}.{}".format(path, key) if path else key
flatten_helper(d[key], flat_d, new_keypath)
de... | [
"noreply@github.com"
] | GLAU-TND.noreply@github.com |
4c61a7aae73fa64897e0df01720f5f1eed93b6dd | 16de2efcba33961633c1e63e493986bad54c99bd | /test.py | 73b7e8d90f6b8b0378a1486d70f70ac2af704483 | [] | no_license | thakur-nishant/Algorithms | a0cc45de5393d4cbb428cccdbf81b6937cdf97d7 | 1a0306ca9a9fc68f59e28ea26c24822c15350294 | refs/heads/master | 2022-01-07T22:22:09.764193 | 2019-05-17T20:10:24 | 2019-05-17T20:10:24 | 109,093,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from math import log
from random import random
import matplotlib.pyplot as plt
import numpy as np
l = 2
T = 24
curr = -1/l * log(random())
arrival = [curr]
while curr < T:
curr = curr -1/l * log(random())
arrival.append(curr)
arrival = arrival[1:]
t = np.arange(0.0, T, 0.01)
N = len(t)
X = np.zeros(N)
fo... | [
"nt.nishantt@gmail.com"
] | nt.nishantt@gmail.com |
a3dc231f3dbd0e2e1ef4dbdd546e09d37e950ff2 | f224fad50dbc182cda86291c83954607bbb60901 | /inference.py | ce98cbf4d15f6bc1e05363be1db9afeb1e519de5 | [] | no_license | Hongpeng1992/pytorch-commands | 7fd26202b7cf7d46a0ac8e1241336e8ca5dad30e | 5853625d9852e948c1ac337547f8078d048699a0 | refs/heads/master | 2020-05-04T15:38:26.704013 | 2019-02-07T07:04:01 | 2019-02-07T07:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import argparse
import io
import os
import csv
import time
import numpy as np
import pandas as pd
from collections import OrderedDict
from datetime import datetime
from dataset import CommandsDataset, get_labels
from models import model_factory
from utils import AverageMeter, get_outdir
import torch
import torch.auto... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
14117448fe850d69ae5fcf1bd41049c19247b557 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /appmesh_write_2/virtual-router_delete.py | db6df7702ffc69ca7d3bbf5c3eda2b1680913ce2 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/delete-virtual-router.html
if __name__ =... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
53fa6c563e9983afb729af1af3be08c9c03dd4a1 | 8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7 | /51player.py | 470f81860462904d56f98294142a2c26cd476828 | [] | no_license | aarthisandhiya/aarthisandhiya1 | c19c1951c9ba01cd97eeddd44614953088718357 | e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b | refs/heads/master | 2020-04-15T17:17:07.151242 | 2019-05-20T05:24:19 | 2019-05-20T05:24:19 | 164,868,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | a=int(input())
s=[int(a) for a in input().split()]
s=list(s)
z=[]
for i in range(0,len(s)):
val=s[i]
i=i-1
while i>=0:
if val<s[i]:
s[i+1]=s[i]
s[i]=val
i=i-1
else:
break
print(s[1])
| [
"noreply@github.com"
] | aarthisandhiya.noreply@github.com |
98244b23e0ce113db9acb33b85781abda3504fab | 82115f52db1783a2ce963e2621bf185c61ceb419 | /Teoría/03 Widgets para formularios/3-1 Etiquetas/programa.py | f824e536fbaa1c1de04e3356c2ce610ec1b992ff | [] | no_license | lesclaz/curso-qt-pyside-udemy | ce227df451a7cff40d90543ee6c892ea1a6b131c | 8b9bbf5d45e916f1d7db9411728b2759b30d2fd9 | refs/heads/master | 2023-07-01T18:11:47.959668 | 2021-08-03T09:38:12 | 2021-08-03T09:38:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from PySide6.QtWidgets import QApplication, QMainWindow, QLabel
from PySide6.QtCore import QSize, Qt
from PySide6.QtGui import QFont, QPixmap
from pathlib import Path
import sys
def absPath(file):
# Devuelve la ruta absoluta a un fichero desde el propio script
return str(Path(__file__).parent.absolute() / fil... | [
"hcostaguzman@gmail.com"
] | hcostaguzman@gmail.com |
6576a596822baf4eb435a1fe47e11d479398497b | fd878bcdaa9489883894c942aae5e316a15c2085 | /tests/dataset_readers/sst_test.py | 477e1a51ec7a5efbd55ddd0006bc58ee474d6ddc | [] | no_license | Shuailong/SPM | a12d18baa39a72a9243ad9cd4238168ab42b96d1 | 0105dae90a4acdebfc875001efab7439b3eb8259 | refs/heads/master | 2020-04-26T04:51:14.279859 | 2019-06-24T03:55:11 | 2019-06-24T03:55:11 | 173,315,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | # pylint: disable=no-self-use,invalid-name
import pytest
import pathlib
import random
import os
from allennlp.common import Params
from allennlp.common.util import ensure_list
from allennlp.common.testing import ModelTestCase
from allennlp.data.dataset import Batch
from allennlp.data.fields import TextField
from allen... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
25eaf0a29411821417765885863acfd5166a02e3 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog99/catalog-configs/Vocab/ihm_residues_not_modeled_reason.py | 9a62ee7fbe832a6a342ee44c46b17d4607a9f500 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 5,585 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {
'pdb-reader': 'https://auth.globus.org/8875a... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
26604b1e653b586dcc138356474bf5459ea54e2e | 604fdb2c4fa24237d206e7c8835bb2c21b0a2fb7 | /ari/v1/client.py | 0f438dfd979c9fed793cc6fef8f04f0b37e2bc6d | [
"Apache-2.0"
] | permissive | SibghatullahSheikh/python-ari | d8d87d213c1a52b0ed46a8ea50362b93c772325b | f4a6f870513bc74bf96606168e0d2173ed2f2ebb | refs/heads/master | 2021-01-22T00:13:37.707863 | 2014-01-29T21:06:52 | 2014-01-29T21:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # -*- coding: utf-8 -*-
# Copyright 2012 OpenStack LLC.
# Copyright (c) 2013 PolyBeacon, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | [
"paul.belanger@polybeacon.com"
] | paul.belanger@polybeacon.com |
a74af5013611c1d1945d2e4250a4c532a725e0bd | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/kawasaki/solve.py | 13028d9808e7f822dbd94054186f11d1384f2212 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | T = int(raw_input())
for test_index in xrange(T):
N = int(raw_input())
m = map(int, raw_input().split())
y = 0
for i in xrange(N - 1):
y += max(m[i] - m[i + 1], 0)
d = max(max(m[i] - m[i + 1], 0) for i in xrange(N - 1))
z = 0
for i in xrange(N - 1):
z += min(d, m[i])
pr... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5d64b3ec43f8f8706fbb5bc2f4c1dea3573739ee | d6d87140d929262b5228659f89a69571c8669ec1 | /airbyte-connector-builder-server/connector_builder/generated/models/stream_slicer.py | 56c37db2c82d4d65076de8f3b5e19e85d772378d | [
"MIT",
"Elastic-2.0"
] | permissive | gasparakos/airbyte | b2bb2246ec6a10e1f86293da9d86c61fc4a4ac65 | 17c77fc819ef3732fb1b20fa4c1932be258f0ee9 | refs/heads/master | 2023-02-22T20:42:45.400851 | 2023-02-09T07:43:24 | 2023-02-09T07:43:24 | 303,604,219 | 0 | 0 | MIT | 2020-10-13T06:18:04 | 2020-10-13T06:06:17 | null | UTF-8 | Python | false | false | 527 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, Field, validator # noqa: F401
class StreamSlicer(BaseModel):
"""NOTE: This c... | [
"noreply@github.com"
] | gasparakos.noreply@github.com |
e5d021f764bf2a500658c2a962784f56ffc0f864 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pod100_sa/pareto_arch2/pareto_ff/pareto8.py | c934f4633c223ab3a0093473ad66da38262a6453 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch2_decomposition_new import Arch2_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
94f78ff7515cedf224519e07f552630acac3127a | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/estate/DistributedFireworksCannon.py | d5691917f5a2a6d4d53e4cdd97782a58257a8ec5 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 4,308 | py | from toontown.toonbase.ToontownGlobals import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from HouseGlobals import *
from toontown.effects import DistributedFireworkShow
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
from panda3d.co... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
6b97a43edfe028b659923528eaadd406c208290f | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/lldb/test/API/functionalities/completion/TestCompletion.py | 11f0e387245e0fc659032f8b1323c5e4f7f230db | [
"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 | 33,655 | py | """
Test the lldb command line completion mechanism.
"""
import os
from multiprocessing import Process
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbplatform
from lldbsuite.test import lldbutil
class CommandLineCompletionTestCase(TestBase):... | [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
d6d0d58f05ad22c9474ef9804ec088549a68f841 | 5b6b2018ab45cc4710cc5146040bb917fbce985f | /200_longest-palindromic-substring/longest-palindromic-substring.py | 60710ba54ef2ad0d3d20d4f30fd1db4aec65a148 | [] | no_license | ultimate010/codes_and_notes | 6d7c7d42dcfd84354e6fcb5a2c65c6029353a328 | 30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c | refs/heads/master | 2021-01-11T06:56:11.401869 | 2016-10-30T13:46:39 | 2016-10-30T13:46:39 | 72,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # coding:utf-8
'''
@Copyright:LintCode
@Author: ultimate010
@Problem: http://www.lintcode.com/problem/longest-palindromic-substring
@Language: Python
@Datetime: 16-06-28 14:08
'''
class Solution:
# @param {string} s input string
# @return {string} the longest palindromic substring
def longestPalindro... | [
"ultimate010@gmail.com"
] | ultimate010@gmail.com |
3fa5ddad1d1612a8b0d4168c59f4f0549f95f6ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02937/s033330652.py | 6b68eb0299616b86752097386250b1b8f9320039 | [] | 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 | 473 | py | import bisect
s = input()
t = input()
n = len(s)
m = len(t)
indices = [[] for _ in range(26)]
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i)
for i in range(n):
indices[ord(s[i]) - ord('a')].append(i + n)
ans = 0
p = 0
for i in range(m):
c = ord(t[i]) - ord('a')
if len(indices[c]) == 0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
171918eacf53dc68cdf837f4e9b33d81ba426350 | a533010ba7e74422c5c7c0193ea2d880e427cb9d | /Python_auto_operation/bin/mlogvis | 69b36f81947475e66d1dde10eb0cb5c3e1d112c6 | [] | no_license | gateray/learning_python | 727b3effe4875f27c86c3e5e66655905f3d5d681 | bc08a58f3a5c1f1db884398efa9d27834514199f | refs/heads/master | 2021-01-19T06:31:01.616421 | 2016-06-30T07:39:23 | 2016-06-30T07:39:23 | 62,290,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | #!/home/gateray/PycharmProjects/Python_auto_operation/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'mtools==1.1.9','console_scripts','mlogvis'
__requires__ = 'mtools==1.1.9'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('mtools==1.1.9', 'console_scri... | [
"gateray.example.com"
] | gateray.example.com | |
32f6b9fff9acce58bdc331e9f0ec63770932d681 | 0a639bda0058ac76cca97d6123f6c39229f202f1 | /companies/models.py | 9092279495371d6cf60c4e5d5b187922621a9bb7 | [] | no_license | sanchitbareja/occuhunt-web | bb86e630c2caff5815b164435464424b5cf83375 | fab152e2ebae3f4dd5c8357696893065bdd30504 | refs/heads/master | 2020-05-21T01:15:48.973953 | 2015-01-13T04:03:18 | 2015-01-13T04:03:18 | 12,552,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | from django.db import models
import datetime
# Create your models here.
class CompanyType(models.Model):
type = models.CharField(max_length = 256)
def __unicode__(self):
return self.type
ORGANIZATION_TYPES_LIST = (
('Accounting Services', 'Accounting Services'),
('Aerospace/Defense', 'Aerospace/Defense'),
('... | [
"sanchitbareja@gmail.com"
] | sanchitbareja@gmail.com |
1c165f1ccad36c215f56ef5613cea7ee2101c812 | 1facfd9d94b0f08ddde2834c717bda55359c2e35 | /Python programming for the absolute beginner - Michael Dawson/Chapter 8 - OOP beginning/8.3.py | 58bad4a7400168c26ceaa2894583a1b3bd76ba4e | [] | no_license | echpochmak/ppftab | 9160383c1d34a559b039af5cd1451a18f2584549 | f5747d87051d837eca431f782491ec9ba3b44626 | refs/heads/master | 2021-09-15T07:23:06.581750 | 2018-05-28T14:33:13 | 2018-05-28T14:33:13 | 261,880,781 | 1 | 0 | null | 2020-05-06T21:18:13 | 2020-05-06T21:18:13 | null | UTF-8 | Python | false | false | 3,000 | py | # The material form the book in polish
# Opiekun zwierzaka
# Wirtualny pupil, którym należy się opiekować
class Critter(object):
"""Wirtualny pupil"""
def __init__(self, name, hunger = 0, boredom = 0):
self.name = name
self.hunger = hunger
self.boredom = boredom
def __str__(self):... | [
"mateuszszpakowski@wp.pl"
] | mateuszszpakowski@wp.pl |
26aa690ec62cb1867208234cd0c19ab8f7a9663a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/S/stefanw/kommunalverwaltung_nrw.py | aef5bdefc3a1b54035f7bc556bd8da592cd801c6 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,508 | py | import scraperwiki
import lxml.html as lh
from lxml import etree
LIST_URL = 'http://www3.chamaeleon.de/komnav/kundensuchergebnis.php?Ort=&PLZ=%s&OBGM=&Bundesland=Nordrhein-Westfalen&anfrage=imnrw'
DETAIL_URL = 'http://www3.chamaeleon.de/komnav/kundensuchedetail.php?schluessel=%s&anfrage=imnrw&PLZ=%s&Ort=&Bundesland=N... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
323a4c7eddab68f041ff6fe4f9828b26f769b0ca | 525c6a69bcf924f0309b69f1d3aff341b06feb8e | /sunyata/backend/chainer/core/map/power.py | f883795e8d4b0bb7d086f28a97f498406b350ed9 | [] | no_license | knighton/sunyata_2017 | ba3af4f17184d92f6277d428a81802ac12ef50a4 | 4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8 | refs/heads/master | 2021-09-06T13:19:06.341771 | 2018-02-07T00:28:07 | 2018-02-07T00:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from chainer import functions as F
from ....base.core.map.power import BasePowerAPI
class ChainerPowerAPI(BasePowerAPI):
def __init__(self):
BasePowerAPI.__init__(self)
def pow(self, x, a):
return F.math.basic_math.pow(x, a)
def rsqrt(self, x):
return F.rsqrt(x)
def sqrt(se... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
d9bec0f6c57a3c8732298f0a3c6a95177cd043cd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6378.py | 52a0e4f72cbae1d4e1737577e4ff7f5cd9ab764f | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,288 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
5f578f05e9eeca2e7a85d76fb6cb42a0d606f54b | 8ec910de801b424540abb4e6e955838a287663b6 | /Bucles/ManoMoneda.py | 7ea1f29e4f99d1de6ef426446f1d5ad4a59e551a | [] | 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 | 1,520 | py | # El programa simulará el juego de adivinar en qué mano está la moneda.
# Le preguntará a la persona el nombre y cuantas partidas quiere jugar,
# luego calculará el ganador.
import random
def introducirNumero():
while True:
try:
numeroVecesPartida = int(input("Por favor ingrese un... | [
"noreply@github.com"
] | hector81.noreply@github.com |
6b57aa51eb80cb2ba879e3fe19dc47e190d2b60e | 65cefe621c2444d9b793d7969d2e2c3ff54373d1 | /analyze/api.py | c831cbc8c9d0c07781dd86cede87b9b4f346509d | [
"Apache-2.0"
] | permissive | leekangsan/HanziSRS | 01585e694fbf81428085b8a162acf101f7f5bec1 | 50f84a9171b61df3305e8922b645b553e895a509 | refs/heads/master | 2020-03-29T05:19:19.583429 | 2018-04-28T04:37:35 | 2018-04-28T04:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import requests
from bs4 import BeautifulSoup
def jukuu(word):
params = {
'q': word
}
res = requests.get('http://www.jukuu.com/search.php', params=params)
soup = BeautifulSoup(res.text, 'html.parser')
for c, e in zip(soup.find_all('tr', {'class':'c'}), soup.find_all('tr', {'class':'e'})):... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
296283618e61a02a6f6c8c8516a5ae54f984803f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02766/s873846892.py | 1b5165713fefb3469a152f09d2a75411c31b81ee | [] | 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 | 241 | py |
def main():
N, K = map(int, input().split())
ans = base10to(N, K)
print(len(ans))
def base10to(n, b):
if (int(n/b)):
return base10to(int(n/b), b) + str(n%b)
return str(n%b)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
068d8dce5daa9ac6705c8b77bd447240a513c227 | a38bf459ae380f67e0de22f7106a8df4385a7076 | /tests/integration/goldens/logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_sync.py | b273c465d3ec976b018c54a7b83e2a4218b81327 | [
"Apache-2.0"
] | permissive | googleapis/gapic-generator-python | 73ce9d52f6f5bb2652d49b237b24263d6637b1da | 4eee26181e8db9fb5144eef5a76f178c1594e48a | refs/heads/main | 2023-09-04T11:12:14.728757 | 2023-09-02T10:34:44 | 2023-09-02T10:34:44 | 129,809,857 | 116 | 65 | Apache-2.0 | 2023-09-12T18:57:01 | 2018-04-16T21:47:04 | Python | UTF-8 | Python | false | false | 1,852 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
73f8dacb0a6fd98a99721e8a113c12641950a990 | 175522feb262e7311fde714de45006609f7e5a07 | /code/nprd/visualize_PTB.py | aab1cc504cd8b84b3cb1e24016f16bf6ca0b9dde | [] | no_license | m-hahn/predictive-rate-distortion | a048927dbc692000211df09da09ad1ed702525df | 1ff573500a2313e0a79d68399cbd83970bf05e4d | refs/heads/master | 2020-04-17T13:49:36.961798 | 2019-06-20T12:37:28 | 2019-06-20T12:37:28 | 166,631,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | # Was called runMemoryManyConfigs_NeuralFlow_Words_English.py
from matplotlib.ticker import MaxNLocator
import math
import subprocess
import random
import os
from paths import LOG_PATH_WORDS
import numpy as np
ids = [x.split("_")[-1][:-4] for x in os.listdir("/home/user/CS_SCR/CODEBOOKS/") if "nprd" in x]
print(ids)... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
8043bf4f0fcdecc59ee5421189b23a4884fc8599 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=30/params.py | d0a52d0abffd2812cb65883935448f5d49c0ec13 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.528333',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 30,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
7e3a97d42210041be00fe78eac7fdc797d8027a2 | e74e89592d8a3b1a0b465a7b1595708b224362d2 | /pset_pandas1_wine_reviews/data_cleaning/solutions/p8.py | 3d5b21f733b7e5400eea8fc4cc02f3214b41120a | [
"MIT"
] | permissive | mottaquikarim/pydev-psets | 016f60f1e9d9a534bd9a66ecde8eb412beee37d1 | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | refs/heads/master | 2023-01-10T11:15:57.041287 | 2021-06-07T23:38:34 | 2021-06-07T23:38:34 | 178,547,933 | 5 | 2 | MIT | 2023-01-03T22:28:27 | 2019-03-30T11:09:08 | Jupyter Notebook | UTF-8 | Python | false | false | 564 | py | """
Cleaning Data VIII - Find Null Values
"""
import numpy as np
import pandas as pd
wine_reviews = pd.read_csv('../../winemag-data-130k.csv')
wine_reviews.rename(columns={'points': 'rating'}, inplace=True)
# Use the below df for these problems:
wine_ratings = wine_reviews[['title', 'country', 'rating', 'price']]
... | [
"jgarreffa112@gmail.com"
] | jgarreffa112@gmail.com |
5b421ca138ad52f140295d34f8ee1fdfc8559474 | bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4 | /sage/src/sage/modular/cusps_nf.py | ea7befba4c0d9a2601835cf1167a18323322bd32 | [] | no_license | bopopescu/geosci | 28792bda1ec1f06e23ba8dcb313769b98f793dad | 0d9eacbf74e2acffefde93e39f8bcbec745cdaba | refs/heads/master | 2021-09-22T17:47:20.194233 | 2018-09-12T22:19:36 | 2018-09-12T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,980 | py | r"""
The set `\mathbb{P}^1(K)` of cusps of a number field K
AUTHORS:
- Maite Aranes (2009): Initial version
EXAMPLES:
The space of cusps over a number field k:
::
sage: k.<a> = NumberField(x^2 + 5)
sage: kCusps = NFCusps(k); kCusps
Set of all cusps of Number Field in a with defining polynomial x^2 + 5... | [
"valber@HPC"
] | valber@HPC |
d27a3896f5fa3feb5f17cd7861eb6378cabfc5d6 | 867846ed1df7f560ccc473413a70020155f66ad4 | /writeImageToBinary.py | 8ebf38106007bbfc86bd7004a67293c4219d32a9 | [] | no_license | abhineet123/PTF | 84297bf5aa95320dbc2d34f422f2dd563ff65a58 | 0c63f7f8251af0d70c329b2cef53694db76c1656 | refs/heads/master | 2023-08-18T18:34:40.513936 | 2023-08-09T17:28:51 | 2023-08-09T17:28:51 | 157,794,848 | 5 | 1 | null | 2021-05-16T18:48:32 | 2018-11-16T01:24:05 | MATLAB | UTF-8 | Python | false | false | 4,088 | py | # from DecompUtils import *
# from distanceGrid import applyFilter
# import time
import os
import cv2
import numpy as np
# from Misc import getParamDict
if __name__ == '__main__':
db_root_dir = 'C:/Datasets'
track_root_dir = '../Tracking Data'
img_root_dir = '../Image Data'
dist_root_dir = '../Distance... | [
"asingh1@ualberta.ca"
] | asingh1@ualberta.ca |
336b66817aeb69caf5a08e2b80c1beac92d48c6d | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Easy/1275.find-winner-on-a-tic-tac-toe-game.py | b051c0e2d84dffb8192059fd3585ceb77ed909e8 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | #
# @lc app=leetcode id=1275 lang=python3
#
# [1275] Find Winner on a Tic Tac Toe Game
#
# https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/description/
#
# algorithms
# Easy (52.88%)
# Total Accepted: 17K
# Total Submissions: 32.2K
# Testcase Example: '[[0,0],[2,0],[1,1],[2,1],[2,2]]'
#
# Tic-tac-to... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
e9f6eacfaf01a7fff4da4c15768700dfd006c709 | 423cc7775d1ab9874729ba304d7682a12b4a4d43 | /plugins/analyzer/previewcomparer.py | 6cc2539edc04ea1fb6f7350dfbf6e684d05043bc | [] | no_license | eyeyunianto/ghiro | 7ec2dc5ae2b766883da6f26975fd41829336e8f8 | 24ce80244893fc94300e1c4f5e3305bd182d65a6 | refs/heads/master | 2020-04-06T04:33:07.155509 | 2015-06-21T21:30:27 | 2015-06-21T21:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | # Ghiro - Copyright (C) 2013-2015 Ghiro Developers.
# This file is part of Ghiro.
# See the file 'docs/LICENSE.txt' for license terms.
import logging
from itertools import izip
from lib.analyzer.base import BaseAnalyzerModule
from lib.utils import str2image
from lib.db import get_file
try:
from PIL import Image
... | [
"alessandro@tanasi.it"
] | alessandro@tanasi.it |
a9f0ba50e1273c6a25a49d2e0bba74d1942c67b8 | b1c7a768f38e2e987a112da6170f49503b9db05f | /stockkeeping/migrations/0021_remove_purchase_stockitem.py | 56aa900ba0363ea26816b298cca975bca2319252 | [] | no_license | Niladrykar/bracketerp | 8b7491aa319f60ec3dcb5077258d75b0394db374 | ca4ee60c2254c6c132a38ce52410059cc6b19cae | refs/heads/master | 2022-12-11T04:23:07.504966 | 2019-03-18T06:58:13 | 2019-03-18T06:58:13 | 176,218,029 | 1 | 0 | null | 2022-12-08T03:01:46 | 2019-03-18T06:27:37 | JavaScript | UTF-8 | Python | false | false | 338 | py | # Generated by Django 2.0.6 on 2018-11-02 11:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stockkeeping', '0020_auto_20181102_1628'),
]
operations = [
migrations.RemoveField(
model_name='purchase',
name='stockitem',... | [
"niladry.kar85@gmail.com"
] | niladry.kar85@gmail.com |
9611ea5034446ad9760170ff5cf6b279139456de | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/pydev/pydev_pysrc.py | b9ed49e8005e3b547bd967bac75b0d83e7dd1861 | [
"Apache-2.0",
"EPL-1.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 100 | py | '''An empty file in pysrc that can be imported (from sitecustomize) to find the location of pysrc''' | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
770326a7c554452415a3a4823c7975bc958ac5bb | 45a2fef5a35090e2c3794824735dc137553c3d3b | /backup/fcards/utils.py | a968797ac2ea04b200ab1d427b0368cd1c17ba3c | [] | no_license | kris-brown/personal_website | 9248ec23e2ebab8d820a0c6be70f6fb06a80144f | 4dadfeba80eaf3f25f87b6f7bed48aa9db6ec8fc | refs/heads/master | 2021-08-28T00:03:07.483092 | 2021-08-09T06:19:56 | 2021-08-09T06:19:56 | 190,462,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | from typing import List as L, Tuple as T
'''Misc helpful things'''
def flatten(lol:L[list])->list:
return [item for sublist in lol for item in sublist]
################################################################################
class Tree(object):
'''
Parse a nested bullet structure where nesting i... | [
"ksb@stanford.edu"
] | ksb@stanford.edu |
0fa8fa2d1973353700ed4feebe10f79b52b7481f | 27ed6d2db4f38cd351b642042341771d93aee121 | /python/medicUI/widgets.py | 89f63dc250a9fceacb72d24418ce995ab37e74c9 | [
"MIT"
] | permissive | wmoten/medic | eab20630e6666372e50d12fa0998ceefc9411e68 | bc2e9ec09e33ce2d0cedd8dc0c17f567208503ed | refs/heads/master | 2020-04-07T09:58:58.947534 | 2018-03-08T05:51:35 | 2018-03-08T05:51:35 | 124,202,109 | 0 | 0 | MIT | 2018-03-07T08:13:48 | 2018-03-07T08:13:48 | null | UTF-8 | Python | false | false | 23,842 | py | from Qt import QtWidgets, QtCore, QtGui
from . import model
from . import delegate
from . import functions
import medic
import os
import re
IconDir = os.path.abspath(os.path.join(__file__, "../icons"))
class ParameterFunctions():
@staticmethod
def SetParmeterValue(param_container, pram_dict):
for pr... | [
"defreturnnone@gmail.com"
] | defreturnnone@gmail.com |
bd298e7985f0b09e4222e354e3f0afc394e96595 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/heat-3d/tmp_files/1539.py | 27d7e85b4987f69ec0aa2f1e52f9247dec53052f | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/1539.c')
procedure('kernel_heat_3d')
loop(0)
tile(0,2,8,2)
tile(0,4,8,4)
tile(0,6,... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
f2a797d1c550dbc9843f6fe14e7ad572536407a7 | a24b8446639f2157e2ecbdb7c11eda8e4e4344cc | /Configurations/UserConfigs/2018_AntiIso/ST_t_topConfig.py | 82fbbb685a0a6b4499f198945b017c0e1a347268 | [] | no_license | aloeliger/ReweightScheme | dcebc5651094d8d3da65885c59dae4070983624a | 05c9783fcf8e024fd26a6dbb9b1fbab4aee3c7f4 | refs/heads/master | 2021-12-11T16:10:12.881863 | 2021-08-27T21:02:21 | 2021-08-27T21:02:21 | 215,565,834 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import ROOT
from Configurations.Weights.CrossSectionWeightingModule.CrossSectionWeight import crossSectionWeight
from Configurations.Weights.MuIDIsoReweightingModule.MuIDIsoWeight import muIDIsoWeight_2018 as muIDIsoWeight
from Configurations.Weights.MuTrackingWeightModule.MuTrackingWeight import muTrackingWeight_201... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
0c75fb6bf1bbf0e8a76928ce29bf5b4f0a014996 | 6a4ebebbe0d7f81efc4f1749054a2ed7242c0e58 | /setup.py | 345a9c9073ffb87c82e6fbcc413a8d8703519644 | [
"LicenseRef-scancode-public-domain"
] | permissive | skylarker/granary | 6e192ecd2475febb3585728d5ba7afe34742107d | 2fd8ef017588b955e78606242ce582849cfd57ac | refs/heads/master | 2020-12-26T21:35:04.155528 | 2016-04-18T18:15:30 | 2016-04-18T18:15:30 | 56,891,160 | 1 | 0 | null | 2016-04-22T23:43:09 | 2016-04-22T23:43:09 | null | UTF-8 | Python | false | false | 1,868 | py | """setuptools setup module for granary.
Docs:
https://packaging.python.org/en/latest/distributing.html
http://pythonhosted.org/setuptools/setuptools.html
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
"""
import unittest
from setuptools import setup, find_packages
from setuptools.command.test im... | [
"git@ryanb.org"
] | git@ryanb.org |
918f237882bc12ca5169f08d0b2a86dd2b388b12 | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /Python/__function/functions1/functions1/23 keyword non-keyword argument.py | 9adc44c2843f16255ab0ee092696537a2eac3237 | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 553 | py | #3.keyword arguments: During fn call,using parameter name,passing value
#4.non-keyword arguments:During fn call,without parameter name,passing value
def display(branch,code):
print(branch,code)
display("CSE","05") #non-keyword argument
display(branch="ECE",code="04") #keyword argument (using parameter name)
displ... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
d1cc019f002492e4ca2f30241964186934bb36af | 930309163b930559929323647b8d82238724f392 | /abc108_b.py | c72c059e12f6e5358657caa002cf6e7a6a309c3c | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 162 | py |
x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1
x3 = x2 - dy
y3 = y2 + dx
x4 = x3 - dx
y4 = y3 - dy
print("%d %d %d %d" % (x3, y3, x4, y4))
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
c7c1943a417de7573e5aebf77ae57a09db5008a5 | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/LeetCode1.py | 86ca7efb65730bbd49152c8028c24b15a168c256 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | '''
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = ... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
0c7109401894b8ab6fa958daf9320f6f6999c573 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03231/s342511104.py | c53bcfef1be5b00fe39ad9752b5ac05a7a1bf748 | [] | 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 | 239 | py | from math import gcd
N, M = map(int, input().split())
S = input()
T = input()
L = N*M // gcd(N, M)
for i in range(N):
if M*i % N == 0:
j = M*i // N
if S[i] != T[j]:
print(-1)
exit()
print(L)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3acd2877be2d35889598ed2111ffaffb3f802be0 | 4b434c6af1d205e33941289211159dfde865e38e | /con.Bmaml.eq/train.py | fdc88d237727a3c3e47393deafa25044993743e3 | [] | no_license | a1600012888/BMAML | 3b2a7f264ed13ef598cc3677d18714c4f8354176 | 4802a917d8061011be9a2b09174598216812cc58 | refs/heads/master | 2020-04-14T19:10:40.363219 | 2019-01-16T17:03:18 | 2019-01-16T17:03:18 | 164,047,888 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,915 | py | import torch
from collections import OrderedDict
from tqdm import tqdm
from utils import AvgMeter
from torch.nn.utils import vector_to_parameters, parameters_to_vector
def TrainOneTask(Task, M, SVGD, optimizer, DEVICE, num_of_step = 3, step_size = 1e-3):
X, Y, Xtest, Ytest, std = Task
X = X.to(DEVICE)
Y = ... | [
"1600012888@pku.edu.cn"
] | 1600012888@pku.edu.cn |
67b0a46a7d02e459b2ca4a9e9d9c5635591b21bf | b659e99f89cf17ae886857383cb5b708847fe3f1 | /gettingStarted/problem7.py | 8402c5ac64f20f3cd28685736d51b82d10eddaae | [] | no_license | nitheeshmavila/practice-python | bea06cc4b2b9247b926e07fd5a3987552e531242 | f54bf8934a4cf160cdfc9dc43176f1eea3bc7a41 | refs/heads/master | 2021-07-03T17:24:29.450939 | 2021-06-16T08:40:48 | 2021-06-16T08:40:48 | 100,113,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | '''
Problem 7: How many multiplications are performed when each of the following lines(line 1 and line 2) of code is executed?
'''
noofCalls = 0
def square(n):
print(n)
global noofCalls
noofCalls += 1
return n*n
def printCalls():
print('no of multiplications performed:',noofCalls)
print(square(5)... | [
"mail2nitheeshmavila@gmail.com"
] | mail2nitheeshmavila@gmail.com |
dd70383bd799a8f104e751a763ba69d1a5ff85be | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03330/s307392217.py | de40af9fdc43a32599ce03bad31896ab49cb00ac | [] | 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 | 787 | py | def main():
from itertools import permutations
N, C = map(int, input().split())
change_cost = [[int(x) for x in input().split()] for _ in range(C)]
init_color = [[int(x) - 1 for x in input().split()] for _ in range(N)]
ctr = [[0] * C for _ in range(3)]
for r in range(N):
for c in range... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
390906999c1c0e7466b96f59d5a0c7e6cc9ab7d4 | 986d78fdcb40f4ee7db15bafc77070c087d16b63 | /studies/MultiBoomSparMass_v2/point_design.py | f0268c72689269395046cb2711265a992c71d693 | [
"MIT"
] | permissive | hdolfen/AeroSandbox | 8578b5e36b9a4be69801c1c9ad8819965f236edb | 4c48690e31f5f2006937352a63d653fe268c42c3 | refs/heads/master | 2023-01-20T15:36:58.111907 | 2020-11-24T13:11:44 | 2020-11-24T13:11:44 | 313,655,155 | 0 | 0 | MIT | 2020-11-24T13:11:46 | 2020-11-17T15:05:02 | null | UTF-8 | Python | false | false | 1,885 | py | ### Imports
from aerosandbox.structures.beams import *
import copy
n_booms = 1
# n_booms = 2
# load_location_fraction = 0.50
# n_booms = 3
# load_location_fraction = 0.60
mass = 80 * 6
span = 7.3
### Set up problem
opti = cas.Opti()
beam = TubeBeam1(
opti=opti,
length=span / 2,
points_per_point_load=10... | [
"peterdsharpe@gmail.com"
] | peterdsharpe@gmail.com |
f53ed7447917dec09d5d66ad99297a866cab65af | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2018/11/graphics/elex18-all-suburb-map-20181119/graphic_config.py | 006fc1be9c13a6867f9c6636d339a291b2f137a6 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '105w9FOQjFxe2xS_gA8rB6fXNWs-Tlyr4Jgu3icfRJgI'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.