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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6012e1f1866de8de31f4b974be0306f5056a8448 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/Classification/ConvNets/triton/model.py | ca68fced5f0fe40bbe9d8415c35ddae661463d78 | [
"BSD-3-Clause"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,282 | py | # Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
9baffbf6400b75ff897d651e29a37482f361074a | 780b01976dad99c7c2ed948b8473aa4e2d0404ba | /scripts/alphas_archive/zs_callspread/alpha_ichimokucloud_short_bearish_dec13.py | 0524cd48e92e52d51a903a2473ec20f0e8cb794c | [] | no_license | trendmanagement/tmqrexo_alexveden | a8ad699c2c3df4ce283346d287aff4364059a351 | 4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4 | refs/heads/master | 2021-03-16T08:38:00.518593 | 2019-01-23T08:30:18 | 2019-01-23T08:30:18 | 56,336,692 | 1 | 1 | null | 2019-01-22T14:21:03 | 2016-04-15T17:05:53 | Python | UTF-8 | Python | false | false | 1,433 | py | #
#
# Automatically generated file
# Created at: 2016-12-16 11:17:40.443940
#
from backtester.swarms.rebalancing import SwarmRebalance
from backtester.swarms.rankingclasses import RankerBestWithCorrel
from backtester.strategy import OptParam
from backtester.strategy import OptParamArray
from strategies.strateg... | [
"i@alexveden.com"
] | i@alexveden.com |
f3d969aac241516fb33fc71462b9f4fba660ef17 | 8d753bb8f19b5b1f526b0688d3cb199b396ed843 | /osp_sai_2.1.8/system/apps/web/api/ipv4_static.py | fd41097596b6d6dd5580c8298e51ee5f2d4cd478 | [] | no_license | bonald/vim_cfg | f166e5ff650db9fa40b564d05dc5103552184db8 | 2fee6115caec25fd040188dda0cb922bfca1a55f | refs/heads/master | 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
'''
Created on May 9, 2016
@author: wangqj
'''
import base
import types
from vcl import vcmd
from base import log
def ipv4_static_route_set(req_data):
"""
API:
PUT: {/*static_route_cfg*/
dest : dest,
mast : mast,
next... | [
"zhwwan@gmail.com"
] | zhwwan@gmail.com |
69fad425fc59aa934a15d641b6b8e1dc4c31d91f | 81dcd706b4d879fa4348630c24c86b88b6c570e2 | /rx/linq/observable_multiple.py | e1bd0862f693ee5d4906923fe8aebf8564cc077b | [
"Apache-2.0"
] | permissive | Reactive-Extensions/RxPy | 763996efc5eeecb8af308d70bf2f1e64601cff79 | 9f9b1de0ab833e53b0d1626a3b43a6c9424f01ec | refs/heads/master | 2023-06-12T16:58:04.960259 | 2013-09-26T16:20:15 | 2013-09-26T16:20:15 | 13,126,788 | 81 | 12 | null | 2015-06-16T08:16:50 | 2013-09-26T15:44:19 | Python | UTF-8 | Python | false | false | 26,518 | py |
from rx.internal import Enumerable, noop
from rx.observable import Observable, ObservableMeta
from rx.anonymousobservable import AnonymousObservable
from rx.disposables import Disposable, CompositeDisposable, SingleAssignmentDisposable, SerialDisposable
from rx.concurrency import immediate_scheduler
from .observable_... | [
"dag@brattli.net"
] | dag@brattli.net |
dcd6b11f7192a11c3ecf75f1547fc353429eb35e | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/dask/array/backends.py | d2d0e5686294a5479f0a0b567bd3fec037142075 | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 2,867 | py | from .core import tensordot_lookup, concatenate_lookup, einsum_lookup
@tensordot_lookup.register_lazy("cupy")
@concatenate_lookup.register_lazy("cupy")
def register_cupy():
import cupy
concatenate_lookup.register(cupy.ndarray, cupy.concatenate)
tensordot_lookup.register(cupy.ndarray, cupy.tensordot)
... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
2c0ebdc25fc3ee44aa04886294b16f91b75e5ba2 | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /이것이 코딩테스트다/ch06_정렬/위에서 아래로.py | 12ceb5164b219ed0e04df7f640d10bafc338b946 | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # 내가 푼 풀이
n = int(input())
num = []
for _ in range(n):
num.append(int(input()))
num.sort(reverse=True)
print(*num)
# 책 풀이
n = int(input())
array = []
for i in range(n):
array.append(int(input()))
array = sorted(array, reverse=True)
for i in array:
print(i, end=' ')
| [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
95cac80c28398f566f4a40a5bb805077c288f84a | caf8cbcafd448a301997770165b323438d119f5e | /.history/spider/car_spider_20201124005429.py | 4d3d4c95ab810d3b816c7d5c39292bf92e1a4647 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from selenium import webdriver
import pandas as pd
import time
"""[Initial Setting]
初期設定
"""
options = webdriver.ChromeOptions()
options.add_argument('--headeless')
options.add_argument('--disable-gpu')
options.add_argument('--lang-ja')
browser = webdriver.Chrome(chrome_options=options, executable_path='./chromedriver... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
7685d871518b4aa0fe284f6b8446564667cbe986 | 389b4143ac469e4fca75581ed1a25a240d1fbf60 | /src/helpers.py | 487b5ba691570c8e9109bbb26b55f12d1fb8bdba | [] | no_license | PonteIneptique/Siena-2015 | 6d847a723b4c0daab2ed1ec29cd73548e16c19aa | 898c1ceb4e89a4c50e1ef6a86762b45c2ea417b9 | refs/heads/master | 2021-01-10T16:05:41.259187 | 2015-06-10T09:13:00 | 2015-06-10T09:13:00 | 36,489,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py |
def flatten(l):
return [x for y in l for x in y] | [
"leponteineptique@gmail.com"
] | leponteineptique@gmail.com |
ea1f514b221e3da47bcd6f653c87d5463cbe7364 | bec7e9f655df1758ad39cc1274defbb1cbd6d69b | /aux2mongodb/cron.py | 8015655288bd70751007dd9ee72c3ed05caeff97 | [
"MIT"
] | permissive | fact-project/aux2mongodb | 5558ca79098adf5f3216b90e34be9afa6c427f08 | fb24f427a1773181bb3818df9d168c191b2042e5 | refs/heads/master | 2021-01-09T20:33:14.103536 | 2016-10-28T17:44:38 | 2016-10-28T17:44:38 | 61,431,857 | 1 | 0 | null | 2016-11-11T14:39:21 | 2016-06-18T12:10:25 | Python | UTF-8 | Python | false | false | 2,150 | py | import schedule
from time import sleep
from datetime import datetime, timedelta
from argparse import ArgumentParser
import yaml
import logging
import os
from . import supported_services, connect_to_database, fill_service
dotdir = os.path.join(os.environ['HOME'], '.aux2mongo')
os.makedirs(dotdir, exist_ok=True)
parse... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
f52c1aa50d2b07a45e94a21ac4899852e5d60ff3 | 68a80b5d7f6bc7d7b531b36dc3e99b344fe20161 | /wort/blueprints/api/auth.py | 1eca16d7af4866a2893dfc39ff9aba6c7626ecb6 | [
"BSD-3-Clause"
] | permissive | mschatz/wort | cbc26451b2ff258137d8121413f1253600130be9 | 719354df806f82478afd23f647d4c5a1eaa47496 | refs/heads/master | 2021-04-27T12:09:27.711150 | 2018-02-21T19:52:44 | 2018-02-21T19:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from flask import g
from flask_httpauth import HTTPBasicAuth
from wort.models import User
from wort.ext import basic_auth, token_auth
from .errors import error_response
@basic_auth.verify_password
def verify_password(username, password):
user = User.query.filter_by(username=username).first()
if user is None... | [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
c357993bff40941ced5e3f0b3ff399e5c91d9e5e | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/time.py | 056533dd640549e8faec42b4ab370fa5213ed7ab | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"sushmakusumareddy@gmail.com"
] | sushmakusumareddy@gmail.com |
bd4f5d3eb99190a0c5238a45e1384b11dd9d641d | f8e010bd080d66f5a2d40c8a525eaf9802116833 | /scripts/calcfpp | 95c7bfbe019cf4a564176912ca1c8d2b2c98e690 | [
"MIT"
] | permissive | MNGuenther/VESPA | 6d45523e210b7dfc7e31e0fa0d09aa8b8b467a55 | 85c30d6351ee881fb1448690ca66acf94fb51d4a | refs/heads/master | 2021-06-29T04:05:25.811311 | 2017-07-06T17:53:10 | 2017-07-06T17:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | #!/usr/bin/env python
"""
This script runs an FPP calculation for a provided
transit signal.
All parameters are defined in the ``.ini`` files,
which are by default assumed to be
in the current path (or in the folder defined as the
argument to this script).
The ``fpp.ini`` file should be of the following form::
... | [
"tim.morton@gmail.com"
] | tim.morton@gmail.com | |
952de4b05d81828c3b96db02c5261f60e2ec107f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/473/usersdata/348/110167/submittedfiles/Av2_Parte3.py | 7ed6fcb224edb9ff0daa8747afda072ae1822b00 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # -*- coding: utf-8 -*-
n = int(input('informe a quantidade de elementos: '))
#lista 1
a =[]
for i in range (0,n,1):
a.append(int(input('informe o %.d° elemento da lista1: ' %(i + 1))))
print(a)
#lista 2
'''
b = []
for i in range (0,n,1):
b.append(int(input('informe o %.d° elemento da lista2: ' %(i + 1))))... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
27d27e55fe0a2ba0bd825529af30cb875cee6f39 | 18e35b5a45063dadd0a9b541198572907cfe8908 | /ejercicios_guia2/15.py | c2e4c7415eb68f08424ffa9e4ce27c919582fb3f | [] | no_license | syn7hgg/ejercicios-python | b516d04ee7b705e477b30e3fe09108d592ff45a2 | ace895650219898cf9aac40dae523e18f63c2b13 | refs/heads/main | 2023-06-12T03:32:06.332235 | 2021-06-29T18:37:53 | 2021-06-29T18:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | i = int(input())
iStr = str(i)
if iStr == iStr[::-1]:
print("Sí")
else:
print("No") | [
"funandreth97@gmail.com"
] | funandreth97@gmail.com |
d406fe94666d30edfe02e5bba5829ed4487971d9 | d3ea4859c7bd9ff360188ec854e2563f5ecda588 | /rastervision/protos/command_pb2.py | 7889fd113a4186aafa380ec4c404cc323a48e52a | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | xiaospica/raster-vision | 9d7db3b505c38fc9edf16ff6195a72985d524790 | aa98412245fb768762ad2920da0241b56c5ece3d | refs/heads/master | 2020-06-18T12:39:19.574379 | 2019-06-19T15:56:28 | 2019-06-19T15:56:28 | 196,306,171 | 1 | 0 | NOASSERTION | 2019-07-11T02:32:26 | 2019-07-11T02:32:26 | null | UTF-8 | Python | false | true | 25,828 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: rastervision/protos/command.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 message as _message
from google.protobuf import ... | [
"rdemanuele@gmail.com"
] | rdemanuele@gmail.com |
53d61d01d7378d11389cf9c383f9b67f7b41e91b | 66669cfa3a982b75d5eb4c566b41c4847bb9c8d3 | /src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py | c139208cfeb4d856d951a47f1896fbc127b6e052 | [
"MIT"
] | permissive | isabella232/autorest.az | 6bf92578cb3adb7d828bc7156c20fd6508d2bdd4 | a237977061608b9cdd8b66cbc27dd3db8891a669 | refs/heads/master | 2023-03-08T00:00:22.852751 | 2020-12-04T09:25:51 | 2020-12-04T09:25:51 | 318,479,773 | 0 | 0 | MIT | 2021-02-24T09:10:08 | 2020-12-04T10:21:34 | null | UTF-8 | Python | false | false | 918 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
5e9256ee802f800c98f9e81e088ddb4e675cd296 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03135/s923306258.py | 2789ed002797d4ba0bdc09f9cda70293103c6213 | [] | 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 | 88 | py | hours, multi_time = map(int, input().split())
result = hours / multi_time
print(result) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
19b2b985ec945aaf2d0161faec0fd74e71596cec | 06984002a22f41b6eb63f9bdf3eb3529792d766f | /trunk/.svn/pristine/19/19b2b985ec945aaf2d0161faec0fd74e71596cec.svn-base | ef71c760bf9c9a73af9b25ee3612e05958e77fa7 | [] | no_license | lixmgl/Intern_OpenStack_Swift | d6195c25cd59dfe603203f727ed409a61891a3bf | 40c241319c6b9a7aabacc9d927486864d13b8055 | refs/heads/master | 2020-04-14T20:40:15.496239 | 2015-08-06T22:24:38 | 2015-08-06T22:24:38 | 40,329,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,624 | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack LLC.
# 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/L... | [
"lixmgl@gmail.com"
] | lixmgl@gmail.com | |
a43ac8351a9de89329e16b17eaed98ed93eb4e23 | 33a50bb13812090a36257078522b798762978c66 | /aliyun/api/rest/Ecs20130110AuthorizeSecurityGroupRequest.py | 6da48d3f81fa4463de0be74e455d85a67e4e6490 | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from aliyun.api.base import RestApi
class Ecs20130110AuthorizeSecurityGroupRequest(RestApi):
def __init__(self,domain='ecs.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.IpProtocol = None
self.NicType = None
self.Policy = None
self.PortRang... | [
"262708239@qq.com"
] | 262708239@qq.com |
c441f7ee4e5ca9bed6fffdf9b64c096fe92868a7 | 1a4a938f7936dd7ec44adf51fc0834a5b587e919 | /polygon/product/tests/test_product_tags.py | 51c45ad80fa0d2ad819acb9e2e73ce86ce61c5da | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | nanotob/Polygon | 6930148bd99d72fc5a659f71ef9259f12b941c04 | 55b7f10c5400be91144aab576f5b002a5eeb51aa | refs/heads/master | 2023-01-24T02:54:44.706552 | 2020-11-22T15:00:27 | 2020-11-22T15:00:27 | 314,883,716 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | from unittest.mock import Mock, patch
import pytest
from django.templatetags.static import static
from django.test import override_settings
from ..templatetags.product_images import (
choose_placeholder,
get_product_image_thumbnail,
get_thumbnail,
)
@override_settings(VERSATILEIMAGEFIELD_SETTINGS={"crea... | [
"sendmesymbols@gmail.com"
] | sendmesymbols@gmail.com |
b29387b4466434f2769376d92fb2c0b072d97065 | cd65c043061b6534b8d9c822dd3e6fdd8b2c01b9 | /test.py | 42c1ba63fe737869a911a04248d143a9758c67fe | [
"MIT"
] | permissive | GabrielAmare/tklib37 | 7cabf41520a4efe433a428f84417734606b6c251 | 5da3353045b0f75ccfcec48b33ea2ba70f4854a0 | refs/heads/main | 2023-03-31T09:27:44.780505 | 2021-04-09T02:10:29 | 2021-04-09T02:10:29 | 342,272,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import unittest
from tklib37 import *
from datetime import datetime, date
class TestTypedEntry(unittest.TestCase):
def test_001(self):
tk = Tk()
for value in [1, False, "x", 1.5, date.today(), datetime.now()]:
type_ = type(value)
entry = TypedEntry(tk, type_=type_, value=... | [
"67603418+GabrielAmare@users.noreply.github.com"
] | 67603418+GabrielAmare@users.noreply.github.com |
5d6d64f52a5b416675022163ce2952f0b0058ead | 9ee8de4544d9de8b9690bf425245103d0b77fc5b | /examples/convexify.py | 8fca5b6a62e39982c4bb09928922cbd6c7e17fbb | [
"MIT"
] | permissive | Artur-Sampaio/trimesh | 80a926495b1f71eedc99fb82130575841c4c9ae7 | 3743ae2d932d9f7eab9ad69e2626e1646589bb2c | refs/heads/master | 2020-03-23T13:17:14.545609 | 2018-07-20T16:15:54 | 2018-07-20T16:15:54 | 141,610,010 | 0 | 0 | MIT | 2018-07-19T17:16:51 | 2018-07-19T17:16:51 | null | UTF-8 | Python | false | false | 1,398 | py | '''
examples/convexify.py
Take a mesh with multiple bodies, take the convex hull
of each body, then combine them back into one mesh.
Useful for generating collision models of an object.
'''
import sys
import trimesh
import numpy as np
if __name__ == '__main__':
# attach to trimesh logs
trimesh.util.att... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
e937d5800c31822ac3fdba8d7e163fbd95657827 | 077b90ebec87afc6595f5fa91aef8b096d6efe68 | /bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_stair.py | c7e7f02c14d8a9156a1fb77fd85b760acb222650 | [
"MIT"
] | permissive | dix-icomys/bpy_lambda | cd49275c1b09a82e5d34f3476eafcc568652418e | 805fc1ca3bf8e4612d90d2ab911549a2eb0fdd97 | refs/heads/master | 2021-05-11T07:54:47.344174 | 2018-01-24T14:36:16 | 2018-01-24T14:36:16 | 118,034,916 | 1 | 0 | null | 2018-01-24T14:36:17 | 2018-01-18T20:33:28 | Python | UTF-8 | Python | false | false | 105,768 | py | # -*- coding:utf-8 -*-
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# ... | [
"bencongdon96@gmail.com"
] | bencongdon96@gmail.com |
831fbb166fa6a0b89f545ea87d52b04dea9dfa7d | c489dd902955d805b6753f847c4fee38281c4c2f | /VB_Classes/Harris_Corners.py | c2378cf29666a539e0a473b2f2b83edeb258b455 | [
"MIT"
] | permissive | germal/OpenCVB | f4f866abdc1910ccac5804ff8581702f38d2e93b | 312c452f3e981aa8238aa5f2d3d9928100bbeab6 | refs/heads/master | 2023-03-06T06:09:15.749020 | 2021-02-19T00:11:52 | 2021-02-19T00:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | import cv2 as cv
import numpy as np
import argparse
title_window = 'Harris_Corners.py'
source_window = 'Source image'
corners_window = 'Corners detected'
max_thresh = 255
def cornerHarris_demo(val):
thresh = val
# Detector parameters
blockSize = 2
apertureSize = 3
k = 0.04
# Detecting corner... | [
"bobdavies2000@gmail.com"
] | bobdavies2000@gmail.com |
3f445ff1e79eb7556f04506b24ef4593e915948f | 6b148a053f5406e7daf2082fa1581d328972cca2 | /Predictor/Tools/DataTools/__init__.py | 3372e8a5da7d004a18746a28954fd9d5762111f8 | [] | no_license | CNDPlab/MSMARCO_Reshaped | cbfa8646b83eb1b4b2f142251f32518756b67a81 | 31c55ce4d2188f97978574f1793659824b737f1b | refs/heads/master | 2020-04-04T22:04:05.585829 | 2018-11-21T01:40:36 | 2018-11-21T01:40:36 | 156,309,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from .build_data_structure import *
from .extract_feature import *
from .extract_golden_span import *
from .tokenize import *
from .main import process_instance
from .pad import pad | [
"lancertong@live.com"
] | lancertong@live.com |
b3092ce323a8b7c080218c8098f41aa788e9e1ac | 5b2cf11d940201b91b68a74d2fd821ab7f6d5f6e | /掘金多因子开发测试/大师选股策略/master_strategy_backtest_industry_SW1.py | 21669e7c58e143faed3ae0d6c47cec07b835c630 | [] | no_license | huning2009/multi-factor-gm-wind-joinquant | 03bd9b7241daa0be268b6120c172ed4a9ddb0c28 | 43a2be75766a1e2cdfd94d46375e4a5491ce5c81 | refs/heads/master | 2020-06-24T13:44:54.068290 | 2019-07-24T02:34:54 | 2019-07-24T02:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | from gm.api import *
import QuantLib as ql
from WindPy import w
import json
import sys
sys.path.append('D:\\programs\\多因子策略开发\\掘金多因子开发测试\\工具')
# 引入工具函数和学习器
from utils import get_trading_date_from_now, list_wind2jq, list_gm2wind, get_SW1_industry, SW1_INDEX
from 行业轮动SW1 import RSRS_standardization
from master_strategy i... | [
"395871987@qq.com"
] | 395871987@qq.com |
8e685fee376e9ec0e732e1b32657374b8312c5cc | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW3/hw3_469.py | 90e5df8ffcf7b807b5587ba24e354a32b8ea4895 | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def main():
temp = float(input("Please enter the temperature:"))
CorK = input("please enter 'C' for celcius, or 'K' for Kelvin:")
if(CorK == "K"):
if(temp<=273.15):
print("At this temperature, water is a (frozen) solid.")
elif(temp>=373.15):
print("At this temperature... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
b8163bb76b64c4e499e68a26242ef77d3de458f2 | c60dacc471ce6e3e6d3682f5503b67802a62a13a | /Courses/models.py | 40ce4f23534185f9bd284136b68221d0df410e1b | [] | no_license | Pagante/CourseProject | 287c589049f88a6595dac09a5b81a3b5d2ba01ae | b3d3c35fe421af85847b9dc3196bdcea7a7bfed4 | refs/heads/main | 2023-04-21T22:24:18.394138 | 2021-04-19T00:00:54 | 2021-04-19T00:00:54 | 359,221,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.db import models
# Create your models here.
class PortFolio(models.Model):
category = models.CharField(max_length=100)
project_name = models.CharField(max_length=200)
image = models.ImageField(upload_to='Photos/')
def __str__(self):
return self.category
| [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
8019d07fd18a383ea4b2b4aee568d4e053c77c39 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/thirtyPercent/rank_4gn3_T.py | ba2aeacb0a175cda93e36cef65c8efd46aaa8373 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
b1ee2ad031044be546f966297a588b38b7d65d0e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/azurestackhci/__init__.py | 51babcc378bc50dba4523ec83a271f86ffb3b083 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 1,040 | 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 .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .arc_setting import *
from .cluster impo... | [
"noreply@github.com"
] | morrell.noreply@github.com |
51e67513a8db8da1373e13374df30fe87cbda1a6 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191204/example_metashape/03nested-dataclass/main.py | 2cd4947eaa4d470159158c3aaf7439f220c29395 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 273 | py | import dataclasses
import logging
from dictknife import loading
from magicalimport import import_symbol
logging.basicConfig(level=logging.DEBUG)
target = import_symbol("./conf.py:toplevel", here=__file__)
d = dataclasses.asdict(target)
loading.dumpfile(d, format="yaml")
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
4e05fef07658015bbceccd3be285a828a740b55f | 4a6efe453502e362dba0078d8c9eeb8e268d4e81 | /factors.py | fe804f5d58cc205ce82282a7946094ccfa381494 | [] | no_license | GauthamAjayKannan/guvi | 11246dcfd4ff8719140b7d1a6e3ca35af512dd07 | d57ffcee04804ff93dd20bd52b64ac93e4a42d6c | refs/heads/master | 2022-02-21T19:48:00.793331 | 2022-02-10T03:24:07 | 2022-02-10T03:24:07 | 164,416,110 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | #factors
n=int(input())
l=[i for i in range(1,n+1) if n%i==0]
print(*l)
| [
"noreply@github.com"
] | GauthamAjayKannan.noreply@github.com |
88edd0413fae31eecc0155289e80d83445e7bc23 | 255010795e7f989f7cf7eadbf98e7e18cae1471c | /FastBridgeApp/routers/export.py | 8f837715807e69b404c6d3fd2daa5bd97b129e42 | [] | no_license | bmulligan3/FastBridge | 1488c62bcb0d893afa26870e88e85ff4b8dc6e85 | b2f2473af9ea2312d4c549982add73f99d2015c1 | refs/heads/master | 2023-02-20T11:33:10.466448 | 2020-11-04T18:08:56 | 2020-11-04T18:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,689 | py | from fastapi import APIRouter, WebSocket, Request, File, Form, UploadFile, Depends, HTTPException, status, Response
from fastapi.templating import Jinja2Templates
from fastapi.responses import HTMLResponse,FileResponse
import importlib
from pathlib import Path
import DefinitionTools
from collections import namedtuple
i... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
ff9a988af60480f44f3fc709648dbc55292cda18 | c15899ee195d5e4ee978f271767b899bcfe6ea60 | /ports/www/pyload/files/patch-module-utils.py | 479ba5dbea1d856fbbe794caf406e2ab22fcb879 | [] | no_license | josh4trunks/freenas-plugins | d39159aa8454ea6be02923cf276348124c84033c | ff7a4276fe4d6584700d271b10d350b23f3c03c5 | refs/heads/master | 2020-12-01T13:04:10.856791 | 2018-10-16T13:50:30 | 2018-10-16T13:50:30 | 26,624,312 | 34 | 13 | null | 2017-08-02T10:38:23 | 2014-11-14T05:46:58 | Python | UTF-8 | Python | false | false | 315 | py | --- module/utils.py.orig 2014-01-18 15:28:37.000000000 +0100
+++ module/utils.py 2014-02-07 15:27:44.256166988 +0100
@@ -110,7 +110,7 @@
from os import statvfs
s = statvfs(folder)
- return s.f_bsize * s.f_bavail
+ return s.f_frsize * s.f_bavail
def uniqify(seq, idfun=None):
| [
"joshruehlig@gmail.com"
] | joshruehlig@gmail.com |
20adc66f40026756430e7551bbcbb5ab6f227987 | 34a1e1a3c75a74c11e37153b69fd889ef9fb7e44 | /monitorrent/tests/plugins/clients/test_downloader.py | 39376bbc5f4b14126005fa2b38dc7dc9fa348539 | [
"WTFPL"
] | permissive | antirek/monitorrent | fbf1a720d0b64d8b534f9abd21e8b2ecb1ef8232 | 8b2caa6ad1188ae52f4a2b2e48a11bfe73904ebe | refs/heads/master | 2021-01-21T04:04:47.636724 | 2016-07-18T22:27:50 | 2016-07-18T22:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,137 | py | import os
import sys
import shutil
from datetime import datetime
from mock import patch, mock_open, MagicMock, Mock
from monitorrent.tests import DbTestCase, ReadContentMixin, tests_dir
from monitorrent.plugins.clients.downloader import DownloaderPlugin
from monitorrent.utils.bittorrent import Torrent
from pytz import ... | [
"werwolf.by@gmail.com"
] | werwolf.by@gmail.com |
1f42cd09300d116fe9d212dc2c6498775a21ef21 | 571ebcf06cc01309231a97a963f531f8dd90963d | /Hacking Scripts/network_programs/http_sniffer.py | 71e372fd65b81d2b4c3a9affb1325da4a1d2b716 | [] | no_license | SV-ZeroOne/Python-Projects | 3da0ec813e2764d5a3cd8f1d9825e698e368a84e | 8820c346e0dde3b4023ce400cb722d08c1b4c52e | refs/heads/master | 2023-08-19T20:43:07.294205 | 2021-10-16T11:57:33 | 2021-10-16T11:57:33 | 95,302,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/python
# needed to pip install scapy_http
# sniffs HTTP traffic data for any of the words in the words list
import scapy.all as scapy
from scapy_http import scapy_http
def sniff(interface):
scapy.sniff(iface=interface, store=False, prn=process_packets)
def process_packets(packet):
if packet.has... | [
"steve@elitehost.co.za"
] | steve@elitehost.co.za |
c030c7de67b5b84b8b35a9e50e37022200e6c8d2 | 83e2fe88d4537403ee710b631d7d3e8c65415092 | /services/web__bnr_nl.py | 29944a8617ef4981f38a098335ec406e3b86d39e | [] | no_license | ArchiveTeam/NewsGrabber-Services | b01f560b18bd5395673132321c16bcf7602608f1 | 2d52eb06a6ca767f4b1d1e623505fa427b6af459 | refs/heads/master | 2020-01-23T21:40:57.220775 | 2019-07-01T09:56:38 | 2019-07-01T09:56:38 | 74,690,301 | 3 | 8 | null | 2019-06-03T19:49:47 | 2016-11-24T16:41:59 | Python | UTF-8 | Python | false | false | 215 | py | refresh = 1800
version = 20161106.01
urls = ['http://www.bnr.nl',
'http://www.bnr.nl/?widget=rssfeed&view=feed']
regex = [r'^https?:\/\/[^\/]*bnr\.nl']
videoregex = [r'^https?:\/\/[^\/]*bnr\.nl']
liveregex = []
| [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
83f2d57349025158a0fb58852233b90fb4d51d62 | bb48cce2a34bdb08d38c3edda68b67266675cb4b | /preprocessing/payments/make_test_set.py | 02de07ac7d41e24d05461d4fe855e51cfefc1315 | [
"Apache-2.0"
] | permissive | zengzhen/srvp | c4fc98d386a24451c0480d2784714877ae6feb7b | ea2de1deb7cc5eb7ea739bd239d7e4bf210c0e87 | refs/heads/master | 2022-11-26T23:50:09.328677 | 2020-07-29T20:22:30 | 2020-07-29T20:22:30 | 277,928,967 | 0 | 0 | null | 2020-07-07T21:47:21 | 2020-07-07T21:47:20 | null | UTF-8 | Python | false | false | 10,701 | py | import argparse
import numpy as np
import cv2
from enum import Enum
import math
import os
from os.path import join
account_id = {}
fpd = 16.0 # frames per day
fpt = 7.0 # frames per transaction
class AccountType(Enum):
STUDENT = 1
EMPLOYEE = 2
RESTAURANT = 3
GROCERY_STORE = 4
APARTMENT = 5
UNI... | [
"you@example.com"
] | you@example.com |
991b3c01aeb27360b8bb37118ac298efac9cf0da | 760fac9d811c0ac6de8f96f2e799118cccf9e06a | /test/test_scrapbook_book.py | 4b08ff9217558e39039424068cd9c30b7e4c65f2 | [
"MIT"
] | permissive | pythonthings/PyWebScrapBook | cd2262e6bc8dda550d41ad575d69a5d1a428db0d | 2768f9da9bdc999e8255299031122cb0ade539e4 | refs/heads/master | 2023-01-16T08:05:34.210172 | 2020-11-22T16:13:59 | 2020-11-22T16:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,995 | py | from unittest import mock
import unittest
import os
import shutil
import io
import re
import zipfile
import time
import functools
from webscrapbook import WSB_DIR, Config
from webscrapbook import util
from webscrapbook.scrapbook.host import Host
from webscrapbook.scrapbook import book as wsb_book
from webscrapbook.scra... | [
"danny0838@gmail.com"
] | danny0838@gmail.com |
2a7845b68e1169340513a8a52f76f571a9dcb3b8 | c71ff6fb15cbf98453fb3e2055594c085009d76e | /.old/0.3/manage.py | 4e7546713784723a069fd9548c4afedadd96e08c | [] | no_license | slagovskiy/lagovskiy.com | c37fa7f92555feccdcd94458a43490b9e5ced2d3 | e2785dfd07643aad8e16e9208cde3294ad543b0e | refs/heads/master | 2023-01-13T03:20:48.601919 | 2021-02-03T10:20:47 | 2021-02-03T10:20:47 | 6,757,957 | 3 | 0 | null | 2022-12-11T11:40:52 | 2012-11-19T09:42:24 | JavaScript | UTF-8 | Python | false | false | 358 | py | from project import app, db
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from config import SQLALCHEMY_MIGRATE_REPO
migrate = Migrate(
app=app,
db=db,
directory=SQLALCHEMY_MIGRATE_REPO
)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __na... | [
"slagovskiy@gmail.com"
] | slagovskiy@gmail.com |
c7538f2425cd0aa0b7724ec1f0bc95f2c81e7c11 | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/src/m/classes/matice.py | 13d80d7e6315f682fcd9967d9440d6d5d56730c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,255 | py | from fielddisplay import fielddisplay
from project3d import project3d
from checkfield import checkfield
from WriteData import WriteData
class matice(object):
"""
MATICE class definition
Usage:
matice=matice();
"""
def __init__(self): # {{{
self.rho_ice = 0.
self.rho_water ... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
594dd97869b7bf70da7f7fb32bf027e1c5f2b249 | 7d527c7b4dc893df46f81d9312fa9842432fe582 | /BS4ReSeaborn.py | c368165969d2583ddb584fc4a0ce30189d22854c | [] | no_license | ezekieltech/Python-Skills | 88eaceae4e0dce5a0c121fddf79b1fb7167bdf5e | 0bd04cfb901ef1e0ebe70697337eb603fdda9784 | refs/heads/master | 2020-03-17T08:12:57.689611 | 2018-05-14T23:29:30 | 2018-05-14T23:29:30 | 133,429,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | # requests for fetching html of website
from bs4 import BeautifulSoup
import requests
import re
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# Make the GET request to a url
url = "http://www.cleveland.com/metro/index.ssf/2017/12/case_western_reserve_university_president... | [
"ezekielobhafuoso@gmail.com"
] | ezekielobhafuoso@gmail.com |
922daea5c0e4c3046bd3740f37b835547f40cc63 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/compute/instances/add_metadata.py | ca2f229cd698448f0258f6964bf550128dc0d436 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 5,472 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. 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 requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
cf1fcbf2e9096a8cf44a2436f62c91e187a6753c | 18508cea9458b2879017b44e6f18520cd8cf4f6c | /UCMDBPython/src/CheckNonNativeAgentInstalled.py | 62f309091dc2fafd53d934878365060aad106350 | [] | no_license | kvt11/dd-git | 7d4935962e06d835ad0023c4abb185876a5a9e77 | 49aafa7081b861c5f6d0e1753b425e78948116d0 | refs/heads/master | 2022-11-23T19:03:19.763423 | 2016-04-04T14:54:18 | 2016-04-04T14:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | # coding=utf-8
import logger
import modeling
import time
import inventoryerrorcodes
import InventoryUtils
import AgentUtils
from com.hp.ucmdb.discovery.common import CollectorsConstants
from com.hp.ucmdb.discovery.probe.agents.probemgr.workflow.state import WorkflowStepStatus
def StepMain(Framework):
InventoryUt... | [
"bluesteelkc@gmail.com"
] | bluesteelkc@gmail.com |
d870d6b9b7024875c533a226919d59fa4d0e9e1c | 07570ec33eb49effd9ed6af73214bac1b607038f | /server/swagger_server/models/notification_update.py | 7b64d468df541d74c56e6ac36139025a37ca4609 | [
"MIT"
] | permissive | kakwa/certascale | d9998a66ba6a239ba5b5e537f12dabdd5876996c | 0df8da0f518506500117152fd0e28ee3286949af | refs/heads/master | 2020-03-29T09:24:32.794060 | 2019-01-30T14:06:10 | 2019-01-30T14:06:10 | 149,756,729 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class NotificationUpdate(Model):
"""NOTE: This class is auto generated by the ... | [
"carpentier.pf@gmail.com"
] | carpentier.pf@gmail.com |
4bd36cec370f8072a932548bd12a7c948265d744 | e7e535c09dd35c5a09897cbb63a55ac65a68ea03 | /tests/covmodzip1.py | cab642814363f7090410e36ad9eb2358be2a6b7c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thijstriemstra/coveragepy | 036700d7e897d46f9ab67f51d7ca0778e5d99ac6 | 695e8cb5e09582b0cb18902e2b7d6a1f5b22f140 | refs/heads/master | 2021-04-28T03:53:11.468929 | 2018-02-10T20:44:01 | 2018-02-10T20:44:01 | 122,148,642 | 0 | 0 | Apache-2.0 | 2018-02-20T02:55:27 | 2018-02-20T02:55:27 | null | UTF-8 | Python | false | false | 359 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
# Module-level docstrings are counted differently in different versions of Python,
# so don't add one here.
# pylint: disable=missing-docstring
# covmodzip.py: for... | [
"ned@nedbatchelder.com"
] | ned@nedbatchelder.com |
89da7e457b76146906acac8a715e14a654f8c02e | 78a15793be1ba71ea7eecee33abef4ecbe11d8f2 | /apps/stats/models/__init__.py | 43d20a2ff711510bc68f9708e5417720ef59458c | [] | no_license | teresaylin/my2009 | f5df9c62492d4c88931f6aa45af31ee88dbe3a1a | 2486750ad73df313d596497b0eb7f4c47518e6a6 | refs/heads/master | 2021-03-21T23:53:55.581074 | 2016-06-01T18:13:44 | 2016-06-01T18:13:44 | 23,392,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from .DailyGlobalStats import DailyGlobalStats
from .DailyTaskForceStats import DailyTaskForceStats
from .DailyTeamStats import DailyTeamStats
from .DailyUserStats import DailyUserStats
| [
"jam.hann@gmail.com"
] | jam.hann@gmail.com |
5ff7d1c18a32a7c7d27154c8bac69541828e7204 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver_unittest.py | f0266b8d7d3395592ee54e5295bbcae01734f0c7 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 2,481 | py | # Copyright (C) 2014 Google Inc. 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 copyright
# notice, this list of conditions and the f... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
91c5c80a9a221fec3d1c9239ce3083f835fa8a24 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/extnw/rsout.py | f8c4e65266ba6d552211be27245ad78546208e91 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 7,211 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
d2b5bdd2d3c557143e2dba828b3051132e51d1a3 | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /LeetCode/mock_interview/apple_phone_1/b.py | bb5c2af8798cacd70c4abce7d06001a5d6e855f1 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 853 | py | import random
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def __init__(self, head: ListNode):
"""
@param head The linked list's head.
Note that the head is guaranteed to be not null,... | [
"takecian@gmail.com"
] | takecian@gmail.com |
1f2e7807d355bef5f4e25754d9ba2bb1c05ace8c | 583b2b81e0e7ac3c910bc00204f877aa9c48bdae | /Analysis/HiggsTauTau/scripts/electronTagAndProbe.py | 628842e9be6827a8171c8ccbfcf11a16fffd87f9 | [] | no_license | danielwinterbottom/ICHiggsTauTau | 8c88a3322c8e362114a53c559634a7ecceb266d2 | 69f6b580ec1faa4e5b6ef931be880f939f409979 | refs/heads/master | 2023-09-01T17:49:18.865198 | 2023-02-07T13:14:15 | 2023-02-07T13:14:15 | 10,723,688 | 4 | 12 | null | 2023-09-07T08:41:44 | 2013-06-16T18:08:22 | Python | UTF-8 | Python | false | false | 8,120 | py | import ROOT
import glob
import sys
# import json
from array import array
import UserCode.ICHiggsTauTau.analysis as analysis
ROOT.RooWorkspace.imp = getattr(ROOT.RooWorkspace, 'import')
ROOT.TH1.AddDirectory(0)
bin_cfgs = [
{
'name': 'ID_pt_bins_inc_eta',
'var': 'm_ll(50,75,125)',
'tag': '... | [
"andrew.gilbert@cern.ch"
] | andrew.gilbert@cern.ch |
1a4ca3a060d7c9f7872c13ddda1efd774bf3793b | 295efbd5b466d246ff51c3849cea5ff637df6211 | /func60716.py | 79805c9848a23f35de7d4d49e86d6a92a5dfa205 | [] | no_license | allenjianzhe/mip_heuristic | 75b15ce9d9735fdc0f5381bfef8cded4d5348a12 | 1365b63b2b3a3814b271e3bb95fb6671486e84fc | refs/heads/master | 2020-09-26T08:41:57.244645 | 2016-10-12T22:43:09 | 2016-10-12T22:43:09 | 66,394,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,612 | py |
#----------------------------------------------------------------------------
#name 51716.py
#----------------------------------------------------------------------------
# Multimodal transportation problem
#----------------------------------------------------------------------------
# Objective: Mini... | [
"allenjianzhe@yahoo.com"
] | allenjianzhe@yahoo.com |
5258a2aee2fabc6b0595f6f1d5d344f6a3c4ed7c | 57ddab24ba7860f8878c689f9fa22b0779d60157 | /categorias/iniciante/uri1012.py | cf839e7bcaf5658e40a3718dc4df166058bda96f | [] | no_license | matheusfelipeog/uri-judge | ba1d32e50ad7239b331ad0e1181a1bffc6e61b41 | 0232be52da78fd67261c6d6a74eff3267d423afd | refs/heads/master | 2021-07-03T02:32:13.395829 | 2021-01-29T18:32:35 | 2021-01-29T18:32:35 | 215,845,427 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # -*- coding: utf-8 -*-
a, b, c = map(float, input().split()) # map aplica a funcão float() em todos os itens da lista
area_tri_retangulo = a * c / 2
area_circulo = 3.14159 * c**2
area_trapezio = ((a + b) * c) / 2
area_quadrado = b**2
area_retangulo = a * b
print('TRIANGULO: {:.3f}'.format(area_tri_retangulo))
prin... | [
"50463866+matheusfelipeog@users.noreply.github.com"
] | 50463866+matheusfelipeog@users.noreply.github.com |
a7bc4dd6096a8bc771db2adef139c985574aa21c | 8957f0b42ba945399a2eeb71f796c11c9eb35b06 | /lib/test/test_scope.py | c1ca51fcbb8dceca98e2db96546b138cfd86b423 | [] | no_license | notro/tmp_CircuitPython_stdlib | 4de177cbb45b2209f07171c27f844c7d377dffc9 | 641727294039a9441c35ba1a1d22de403664b710 | refs/heads/master | 2020-03-27T18:26:33.544047 | 2019-02-15T20:49:34 | 2019-02-15T20:49:34 | 146,922,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,620 | py | import unittest
#import weakref
#from test.support import check_syntax_error, cpython_only, run_unittest
class ScopeTests(unittest.TestCase):
def testSimpleNesting(self):
def make_adder(x):
def adder(y):
return x + y
return adder
inc = make_adder(1)
... | [
"noralf@tronnes.org"
] | noralf@tronnes.org |
a1aec06d50d711aea709230d5e0a0f91152de872 | a9b88bc0ded09b92393e07556de6a8c71057d041 | /python/example/pd_energy_3d.py | ef5fa4caf981da1961035a118542ffe4e946020f | [
"MIT"
] | permissive | mit-gfx/diff_pd_public | 3bb1287b959a8e6ad04a81aab79c44646abed133 | 1594aa07a6983ff9a9c107e9f0d83d07fa99c8d1 | refs/heads/master | 2023-03-17T07:33:53.773564 | 2022-03-11T18:28:42 | 2022-03-11T18:28:42 | 468,809,853 | 79 | 10 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | import sys
sys.path.append('../')
from pathlib import Path
import shutil
import numpy as np
from py_diff_pd.common.common import ndarray, create_folder
from py_diff_pd.common.common import print_info, print_ok, print_error
from py_diff_pd.common.grad_check import check_gradients
from py_diff_pd.env.cantilever_env_3d ... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
762b372f2be10be34e6d83364ffb47e654d2b83a | 2d2762b79a80cb2a37e2516468d6b3e8300f55cd | /project/consulting/migrations/0003_auto_20151220_0237.py | ee1f2e9d29c2d87f4db7b78ecbca4a16ec92509d | [] | no_license | joelburton/otessier.com | 438e22c9c749b53869c43790dc40014365b6ab98 | b00fe90239bcaaa75d9512fe9207e4c494386bce | refs/heads/master | 2021-06-05T03:00:52.028310 | 2017-12-24T03:29:51 | 2017-12-24T03:29:51 | 28,550,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-20 02:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('consulting', '0002_db_fixes'),
]
operations = [
migrations.AlterModelOptions(
... | [
"joel@joelburton.com"
] | joel@joelburton.com |
2d186b58c3f7bd7cea27286d65bb8a0d0bab05e8 | 3e77a86429ba0f6968f709e77e204cdfe920a041 | /python/Raft_new/src/Libraries/bs_gilligan.py | 05e9c93049cc583d3452c504804c8f0daf60a4e0 | [] | no_license | ramyamango123/test | a2d9bb6cafe8d7406b76eba526ddded2acf2a3b2 | 85420c9406109a72e1b1d455ea29a5cae9def5a3 | refs/heads/master | 2020-06-07T23:34:08.344051 | 2014-03-12T05:19:05 | 2014-03-12T05:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,071 | py | libraryBuildVersion = "2013.05.13 v1.0.2"
###################################################################
import re, Foundation, bs_common
###################################################################
def checkFileSyncing(appName):
stepName = "check file syncing in "+ appName
time.sleep(1)
if target.proc... | [
"ramya@Ramyas-MacBook-Air.local"
] | ramya@Ramyas-MacBook-Air.local |
8397451fff40cfb42dfe398742fbdd3e1de83a74 | 560df0c3f859ae2d4c279f4669f9ab8758c486fb | /old/Euler085.py | 7f27fa13d52fb270b4bd006b92d7e3b726697fe4 | [] | no_license | gronkyzog/Puzzles | 0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a | cdc145857f123a98f1323c95b5744d36ce50355f | refs/heads/master | 2021-03-13T00:01:17.715403 | 2015-02-22T11:59:03 | 2015-02-22T11:59:03 | 17,100,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
def squarecount(m,n):
return (m+1)*(n+1)*m*n/4
target = 2*10**6
min_error = target
product = 0
for m in range(1,2002):
a = (m**2 + m)/4.
b = (m**2 + m)/4.
c = -target
n =int(round(-b + (b**2 - 4*a*c)**0.5)/(2*a))
sc = squarecount(m,n)
error = abs(target-sc)
if error < min_error:
product = m*n
print produc... | [
"smcnicol@gmail.com"
] | smcnicol@gmail.com |
0655c1582566f637494b034e35fb805577678e1f | 2a2fddb49f815e207fe72c5be63cf38311373312 | /Linear Regression/linear_regression.py | 86fcefa8d180b036dd0b229db73dcd0e469fa8d1 | [] | no_license | yyassif/ML | 0a846eb040b178ff7f2abb1a7983e945b09ca875 | c8c9f300fee2631ed668ba9aeb89e6b61e5bce4b | refs/heads/master | 2022-10-25T09:41:51.289427 | 2020-06-17T22:23:05 | 2020-06-17T22:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import pandas as pd
import numpy as np
import sklearn
from sklearn import linear_model
from sklearn.utils import shuffle
data = pd.read_csv('student-mat.csv', sep=';')
data = data[['G1', 'G2', 'G3', 'studytime', 'failures', 'absences']]
print(data)
predict = 'G3'
x = np.array(data.drop([predict], 1))
... | [
"noreply@github.com"
] | yyassif.noreply@github.com |
53391cd7568e071f6a51c06907fb661a9128090a | 55a8e0bc9b5cc9681166eb492ac7f192df1227dd | /pyprover/__coconut__.py | 74a3aa843321501a1eabd50443752d891db154b1 | [
"Apache-2.0"
] | permissive | sailfish009/pyprover | b500cb962a3911f1c2649ae2e4691fdc480adb18 | 3267781e29ca99f90dc6a76dc9193a996d836b70 | refs/heads/master | 2021-01-07T08:04:27.149076 | 2020-01-07T01:38:11 | 2020-01-07T01:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,825 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# type: ignore
# Compiled with Coconut version 1.4.2-post_dev5 [Ernest Scribbler]
"""Built-in Coconut utilities."""
# Coconut Header: -------------------------------------------------------------
from __future__ import print_function, absolute_import, unicode_literals, ... | [
"evanjhub@gmail.com"
] | evanjhub@gmail.com |
f45f83060e9f1cd72969ea19e2fcbd392ee8b5df | 694c9c73e64594bf9c98c5bd356a81b2b1a5eb3e | /PowerSupplies/Errors.py | ba0a19edc6dbea7afb7e8d51e2aa0a17a9bb77bb | [] | no_license | ibeckermayer/PowerSupplyInterface | 40a60c0b9764580ea6df3a50a99ce84af646b837 | 11d89acf7f16f61ed24c242f633e2c4532496b9e | refs/heads/master | 2020-04-05T13:04:55.715746 | 2017-08-15T22:45:19 | 2017-08-15T22:45:19 | 95,057,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | class Error(Exception):
"""Base class for exceptions in this module."""
pass
class ChannelError(Error):
"""Error is raised when user gives a channel other than 1 or 2"""
def __init__(self, chan):
self.chan = chan
def __str__(self):
return "Invalid channel number " + repr(self.cha... | [
"ibeckermayer@gmail.com"
] | ibeckermayer@gmail.com |
d58c3dc8ba72594e33f817a239480abab7a4ecef | 38fb82ff9f5ecee937cb950889335402aba2c7a6 | /blog/templatetags/blog.py | ee9422f39e9c5e0f0f9586a09456e5387cb14a85 | [] | no_license | squallcs12/vivu2017 | abe9c42cfd831de3411c1b986b6d5c4c4099808a | c6a3f37ee238464c9bf9de61a1c6e9f5be21f40f | refs/heads/master | 2021-01-11T22:36:21.289404 | 2017-02-02T08:11:19 | 2017-02-02T08:11:19 | 78,998,307 | 0 | 0 | null | 2017-02-02T08:11:20 | 2017-01-15T04:55:01 | Python | UTF-8 | Python | false | false | 480 | py | from django import template
from blog.models import Post
register = template.Library()
@register.inclusion_tag('blog/post.html', takes_context=True)
def render_post(context, post):
if isinstance(post, str):
post = Post.objects.filter(slug=post).first()
if not post:
return
request = conte... | [
"daotranbang@gmail.com"
] | daotranbang@gmail.com |
2a6a78b66435cc702538ea0ec6b699b60737ea6b | 91715b099597a11cf02330ba870dd11fc3b24d32 | /todo_grud/cache/singletons/task_cache.py | 9e30d93830d707a53dad7219c6b53e250c7c425f | [] | no_license | samuel-cavalcanti/py_food_ufu | ae2d439e6df53020bc78ce8716496ba3fc1ba005 | a8001fe4bae931d7d2d570b9fab50f64cc594c35 | refs/heads/main | 2023-08-15T15:08:50.300567 | 2021-10-06T19:24:12 | 2021-10-06T19:24:12 | 401,846,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from .singleton_cache import SingletonCache
class SingletonTaskCache(SingletonCache):
pass
| [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
388df1947d1cfcff16a691f16cc1bcc6e239d691 | e3a8fea71f740274001ae6fd8eb7a11b8810c89b | /perfrunner/celeryremote.py | d5dbbf311da564e6d96cf3d7710023b57feaba09 | [
"Apache-2.0"
] | permissive | tonyduydao/perfrunner | efeedf5faf25c1ef105203dbee94cf315c063a41 | 5e0dab1af6083dc6408efcaa9f8d61262a43e6f2 | refs/heads/master | 2021-01-21T00:07:48.046467 | 2016-07-05T18:55:57 | 2016-07-05T21:02:14 | 62,670,707 | 1 | 0 | null | 2016-07-05T21:25:44 | 2016-07-05T21:25:44 | null | UTF-8 | Python | false | false | 178 | py | BROKER_URL = 'amqp://couchbase:couchbase@ci.sc.couchbase.com:5672/broker'
CELERY_RESULT_BACKEND = 'amqp'
CELERY_RESULT_EXCHANGE = 'perf_results'
CELERY_RESULT_PERSISTENT = False
| [
"pavel.paulau@gmail.com"
] | pavel.paulau@gmail.com |
49dfe9933e523de83175bc9c532c4fc652938202 | 32a2e4d3fba38de67062458416b468fe432e71f8 | /grandma.py | d696eefe95ea66617960e04ccac34abff17bb756 | [] | no_license | Austin-deMora/ICS3U-Unit3-07-Python-Grandma | 37a6d42fa7dbefa4f3ddb17f7406d888b263ac0c | a68007ea9aae4ede8f6eb56f5fe9bdc8e8dd458d | refs/heads/main | 2023-04-18T16:09:01.190420 | 2021-05-07T13:30:24 | 2021-05-07T13:30:24 | 365,241,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/env python3
#
# Created by: Austin de Mora
# Created on: May 2021
# This program checks if a person reaches a certain set of parameters
import math
def main():
# This function checks the persons age
# Input
participants_age = input("Enter your age: ")
print("")
# process
try:
... | [
"you@example.com"
] | you@example.com |
08934c0a829b2951fecc5608e126f376a2766ab8 | 227c102ed508ad2b1d046340dcb598a7b16e2925 | /.history/Forritun/Verkefni með einkunn/Lokaverkefni/lokaverkefni_20201209193141.py | 501cdcc42399ee86621376492d707e0ca49f6c9e | [] | no_license | larusarmann/Skoli-haust-2020 | 298e48f1c20d7ec0c92124018650253f13bcbb2f | 3061a0238b74919daccaa74117bc1c32b3436619 | refs/heads/master | 2023-02-07T09:15:45.493928 | 2020-12-09T19:46:53 | 2020-12-09T19:46:53 | 292,543,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,410 | py | import random #Importar
import arcade #Importar
import os #Importar
SPRITE_SCALING = 0.5 # setur stærðina
SPRITE_NATIVE_SIZE = 128
SPRITE_SIZE = int(SPRITE_NATIVE_SIZE * SPRITE_SCALING) # margfaldar stærð með skalanum
SCREEN_WIDTH = 800 #lengd skjáar
SCREEN_HEIGHT = 600 #hæð skjáar
SCREEN_TITLE = "Lárus" #Titill á sk... | [
"larus.armann@gmail.com"
] | larus.armann@gmail.com |
d7bc43d16f75e79cd95f4c87087e3d80b79b0476 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnhypothesi.py | d82b0366311333cb42c318c23f346aa07ab8594a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,059 | py | ii = [('EmerRN.py', 3), ('CookGHP3.py', 8), ('LyelCPG2.py', 18), ('RogePAV2.py', 16), ('CoolWHM2.py', 2), ('RogePAV.py', 7), ('SadlMLP.py', 13), ('RennJIT.py', 2), ('ProuWCM.py', 17), ('LeakWTI3.py', 1), ('PeckJNG.py', 1), ('ChalTPW2.py', 2), ('GellWPT.py', 1), ('ClarGE2.py', 4), ('CarlTFR.py', 5), ('AinsWRR3.py', 1), ... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
65c7b67e99e10ccdc4900a863ba8f02b6540d825 | ede57252e7a7799c5dca5dce653d05b338b4e13d | /oxlos/newsletter/management/commands/test_newsletter.py | 026acd7b07672b68b136517fe8311a6df7fbd8a7 | [
"MIT"
] | permissive | jtauber/oxlos2 | df4e8ec556da47238d916624d12e5659b9038175 | 5122a3d6407e233c0b4b0c001d66ef7c1fefd0d2 | refs/heads/master | 2021-03-22T04:34:45.649105 | 2019-02-17T21:53:13 | 2019-02-17T21:53:13 | 88,310,977 | 1 | 0 | MIT | 2019-02-17T21:53:14 | 2017-04-14T23:40:56 | Python | UTF-8 | Python | false | false | 821 | py | import sys
from django.core.management.base import BaseCommand
from oxlos.newsletter.mail import test_newsletter
from oxlos.newsletter.models import NewsletterSetting
class Command(BaseCommand):
help = "Send test newsletter."
def add_arguments(self, parser):
parser.add_argument("username")
... | [
"jtauber@jtauber.com"
] | jtauber@jtauber.com |
de8606679088229765d67b4cf33392f27f67300b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-9505.py | 37664995aaf5bc364baa892862a03005fd06e530 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2d579ac8d899236b2bb02b9f15b59b1a6e67dfa5 | 02388da5b095b4a71f3f49f3f701566f840b1616 | /app/data_processing/file_parsers/csv_file_parser.py | ffec1b75d2373a8fe7f8e23a13c5d7e54ad57aee | [] | no_license | gavinz0228/flaskappdemo | 42269351c96468e89b0f26c46c3215abf7c3d962 | f53b6419b38c7a49566e3316b49c27a64e634940 | refs/heads/master | 2023-01-14T13:27:57.666128 | 2019-09-10T03:24:02 | 2019-09-10T03:24:02 | 206,702,560 | 0 | 0 | null | 2023-01-04T09:17:03 | 2019-09-06T03:09:31 | JavaScript | UTF-8 | Python | false | false | 70 | py | class CsvFileParser:
def parse_file(self, file_path):
pass | [
"gavinz0228@gmail.com"
] | gavinz0228@gmail.com |
4315914a2be63be9c92bb1b8b1c5ff853ef91fbb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03970/s865775484.py | 4740c456dab730e65afa8d2b3f404d6b66ca0359 | [] | 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 | 272 | py | # -*- coding: utf-8 -*-
# CODE FESTIVAL 2016 qual A
# Problem A
if __name__ == '__main__':
original = 'CODEFESTIVAL2016'
s = input()
count = 0
for si, original_s in zip(s, original):
if si != original_s:
count += 1
print(count)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a81e49022751ef3a33011751b0f5905ea1266c41 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/lib/email/base64mime.py | 07e65e264ca2144b54814b6434aa209e6ef7073e | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # Copyright (C) 2002-2006 Python Software Foundation
# Author: Ben Gertzfield
# Contact: email-sig@python.org
"""Base64 content transfer encoding per RFCs 2045-2047.
This module handles the content transfer encoding method defined in RFC 2045
to encode arbitrary 8-bit data using the three 8-bit bytes in four 7-bit
ch... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
9c1b719f9e5232459f57fea69dc20b43748010d6 | 0064d4b6f3908b2989a7965e49afa3f4bf65d095 | /leetcode+牛客/isLongPressedName.py | d007972b67bb64b7a0753293c457e4b3b5a2f034 | [] | no_license | MyHiHi/myLeetcode | d7a5c1c3a3a30ba517183f97369ed6c95e90cae3 | ca36041af7f73d91c95cdbe9599ac5ec15a1243c | refs/heads/master | 2021-05-20T08:29:37.017725 | 2020-05-03T05:17:05 | 2020-05-03T05:17:05 | 252,196,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | # -*- encoding: utf-8 -*-
'''
@File : isLongPressedName.py
@Time : 2020/02/05 11:18:22
@Author : Zhang tao
@Version : 1.0
@Desc : None
'''
'''
你的朋友正在使用键盘输入他的名字 name。偶尔,在键入字符 c 时
,按键可能会被长按,而字符可能被输入 1 次或多次。
你将会检查键盘输入的字符 typed。如果它对应的可能是你的朋友的名字(其中一些字符可能被长按),
那么就返回 True。
示例 1:
... | [
"909535692@qq.com"
] | 909535692@qq.com |
e28604b30abe09eca2036d8b05c977a479f65a1c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/295/113311/submittedfiles/testes.py | 2a5df8eeba8b1354eca085d1b123f12086cdd0e6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py |
'''s = str(input('Informe seu sexo :')).strip().upper()[0]
while s not in 'MmFf':
s = str(input("Dados invalido. Digite novamente ")).strip().upper()[0]
print(s)'''
from random import randint
computador = randint(0,10)
print('Acabei de jogar um numero entre 0 e 10.')
print('Sera que voce adivinha ?')
a... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4e530f72a5f7fd398eef0fa6ff9bbfae901ff9b2 | 5abbbb34fa0e7d0b5345ecc7238fc7fed0de590f | /learn_cerberus/p1_define_a_schema.py | 8d16b5cf1287e3ee1497a7cc624d53ecb403f532 | [] | no_license | MacHu-GWU/learn_cerberus-project | 2446daffc1fd4affa6e125f36e1ff1313e9fce29 | 3b3195cac4c7664f78d539b9a9a4c598896ad186 | refs/heads/master | 2021-06-20T23:46:22.027041 | 2017-08-07T21:18:00 | 2017-08-07T21:18:00 | 39,047,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cerberus
def define_and_validate():
# define a schema
schema = {"name": {"type": "string"}}
# create a validator instance
v = cerberus.Validator(schema)
# validate
document = {"name": "John"}
result = v.validate(document)
a... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
cc1a90b551124ebb26b17a812a64213a3e5be668 | 56df6683865fd9319b389afd6dd4a922299da593 | /source/scripts/python/web/depends/__init__.py | c3a938dd40245e6a5df4578436b52236d5fd7ebd | [
"Python-2.0",
"GPL-2.0-or-later",
"MPL-1.1",
"NCSA",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MPL-2.0",
"Ruby",
"BSD-2-Clause",
"MIT",
"Apache-2.0"
] | permissive | metacall/core | 4f36fe0b13924853aab6d0f053285b649398cc1d | 419ffb573b17501c91662f0f161032bb19ea1ab3 | refs/heads/develop | 2023-08-23T10:19:30.898387 | 2023-08-10T18:39:08 | 2023-08-10T18:39:08 | 163,221,062 | 1,391 | 167 | Apache-2.0 | 2023-09-13T23:49:43 | 2018-12-26T22:02:57 | C | UTF-8 | Python | false | false | 35 | py | #!/usr/bin/env python3
import web
| [
"vic798@gmail.com"
] | vic798@gmail.com |
e182fd8d6628885f39179015ffce1bd87c924cc1 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_condition.py | 8d07b91f3952585293e05f7af1b9ee78e60aecfc | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | guctum/aws-kube-codesuite | 9ce2cc02fe5fa15c2e175fb697138014fb162f1e | 5d62beaadc13bec745ac7d2fc18f07805e91cef3 | refs/heads/master | 2021-05-24T10:08:00.651840 | 2020-04-23T20:21:46 | 2020-04-23T20:21:46 | 253,511,083 | 0 | 0 | Apache-2.0 | 2020-04-06T13:48:14 | 2020-04-06T13:48:13 | null | UTF-8 | Python | false | false | 6,891 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
60c6b31233f228b1b69128ce9a68fd1a8d7ecdf3 | a1dce04838e2a4aa85e8a98459ae384aa00911bc | /src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinn_front_end_common/abstract_models/abstract_has_first_machine_time_step.py | 64cc9b5dc61b09ac053815b5689388b0d246b020 | [
"BSD-3-Clause"
] | permissive | Roboy/LSM_SpiNNaker_MyoArm | 8cb5b44c772bd9843989c64265dfcabd08905b4c | 04fa1eaf78778edea3ba3afa4c527d20c491718e | refs/heads/master | 2021-01-23T17:42:33.122281 | 2017-10-30T11:34:22 | 2017-10-30T11:34:22 | 102,772,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from six import add_metaclass
from abc import ABCMeta
from abc import abstractmethod
@add_metaclass(ABCMeta)
class AbstractHasFirstMachineTimeStep(object):
""" Indicates an object for which the first machine timestep can be set
"""
@abstractmethod
def set_first_machine_time_step(self, first_machine_t... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
9fb20e63ac2fb0d0fb218b54a2b6630ef9591eab | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/yahtzee/167.py | b5b33cbbeeba50815cdfaa361d0a37ac0dcca025 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | def som(stenen):
som = sum(stenen)
return som
def is_Yathzee(stenen):
lengte = len(stenen)
controle = stenen[0]
antwoord = True
for i in range(lengte):
if stenen[i] != controle:
return False
return antwoord
def is_grote_straat(stenen):
lengte = len(stenen)
stene... | [
"bertverstraete22@gmail.com"
] | bertverstraete22@gmail.com |
df1f9ee229abe03a7c3e27670b84c596a7042f3b | 1ba2b4a507783eb2051887b9ecbed85d87e4c16b | /qiskit/algorithms/minimum_eigensolvers/sampling_vqe.py | 684252f54e4f66a0b4b01b64b9a361a8a8ffdd1e | [
"Apache-2.0"
] | permissive | manoelmarques/qiskit-terra | 34a948605d98168b1344cee1fd6adc117a137f25 | 71dd7f7b9603e1991f9d97fef66bb9b63d552c91 | refs/heads/main | 2023-04-30T08:42:15.886082 | 2023-02-15T21:58:01 | 2023-02-15T21:58:01 | 228,042,086 | 0 | 0 | Apache-2.0 | 2019-12-14T15:07:03 | 2019-12-14T15:07:02 | null | UTF-8 | Python | false | false | 15,848 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | manoelmarques.noreply@github.com |
ee2426571988f268344a354a1922f9658dd386bc | 740386f0ef458a99325a95283fb391bb26ddd7b3 | /rnaseqlib/utils.py | 2d4223e349fd9bcafe52d4775e79813d4733d5db | [] | no_license | hjanime/rnaseqlib | 1467bac3151f67913cc6ea793b50ab627f26f940 | d13073c58c9239f90e04e1fe854ed849a2aa99d4 | refs/heads/master | 2021-01-24T05:15:29.036548 | 2012-12-30T06:01:14 | 2012-12-30T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | ##
## Utilities
##
import os
import sys
import time
from os.path import basename
from urlparse import urlsplit
import itertools
import logging
def get_logger(logger_name, log_outdir,
level=logging.INFO,
include_stdout=True):
"""
Return a logging object.
"""
logger = logg... | [
"yarden.katz@gmail.com"
] | yarden.katz@gmail.com |
f026b3a4f49620dec084952616c0a40be4fd232e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/TIARA-DOS-MIB.py | efd544a93cfbcff0db9f925605c49f1aa0a3bd50 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 6,956 | py | #
# PySNMP MIB module TIARA-DOS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-DOS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:16:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
9de5efc98be0a86acb09992b538e988e52aed5a4 | 1713334f9b68255f9adab70175c21f399d0460f3 | /python/384_Shuffle_an_Array.py | 13bea87b865e2973023d24138f9aa9ca9eefe0e3 | [
"MIT"
] | permissive | coy0725/leetcode | 0a798b7adafe80f726e51c06c34835c4aa51b563 | 743a0bfa22402ec39858dc9c4c7dc531f825b953 | refs/heads/master | 2020-05-21T18:25:09.683714 | 2019-05-11T13:00:40 | 2019-05-11T13:00:40 | 186,132,894 | 2 | 0 | MIT | 2019-05-11T12:55:22 | 2019-05-11T12:55:21 | null | UTF-8 | Python | false | false | 938 | py | import random
class Solution(object):
def __init__(self, nums):
"""
:type nums: List[int]
:type size: int
"""
self.origin = list(nums)
self.curr = list(nums)
self.size = len(nums)
def reset(self):
"""
Resets the array to its original confi... | [
"qiyuangong@gmail.com"
] | qiyuangong@gmail.com |
768487df6f0f5b0415d7f41ef994c61ef2c355d3 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.9.53/7/1569574205.py | 5f57efbea38a9c036cbce2af14249075f27e33ac | [] | 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,132 | 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 |
62feb631d3bfe3d5af72f73aa92ce0d6a4005600 | 8a78fa28230e925986fb2599bf18d21fb02133af | /Week 4/koch_square.py | 44fe777a0c11479fa384a30493a3f4a3e7c31f58 | [] | no_license | wma8/PythonClass | b84389df69df9a59e49f9f87f0a672623266db86 | 378424557e7df7e5b0cba7a6cef26eda4108e47e | refs/heads/master | 2020-07-03T00:12:36.437637 | 2019-08-19T10:31:37 | 2019-08-19T10:31:37 | 201,719,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Koch Square using Turtle module
"""
import turtle as t
def koch_square(n,L):
if n==0:
t.fd(20)
else:
koch_square(n-1,L/3)
t.left(90)
koch_square(n-1,L/3)
t.right(90)
koch_square(n-1,L/3)
t.right(90)
... | [
"wma8@ncsu.edu"
] | wma8@ncsu.edu |
b68898a7e0142411f92f474dd19d004f200608c7 | 45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0 | /znake/znake/docker.py | 646d15000c034d62702793f67dccafe2e1a7eb35 | [
"Apache-2.0"
] | permissive | per-bohlin/opensourcelib | 3923165982ae1b2c78602a3485684ded75c28c36 | e48427fd0b5d87ea21484e85d2575c8b8879b9a3 | refs/heads/master | 2020-05-21T21:34:15.112527 | 2019-05-11T16:57:58 | 2019-05-11T16:57:58 | 186,156,987 | 0 | 0 | NOASSERTION | 2019-05-11T16:34:39 | 2019-05-11T16:34:39 | null | UTF-8 | Python | false | false | 4,944 | py | """
Docker is used to allow testing and packaging Python projects in multiple environments.
Docker images are pulled from the Zenterio Docker registry (docker.zenterio.lan) and Znake
provides facilities for running tasks inside these containers.
.. autofunction:: docker_run
When running inside a Docker container, it... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
1d13f4e481abb0b2063b252899113aadee892032 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/cronet/tools/link_dependencies.py | 94e612e9575421256a47b5a5f2498d02e5b97246 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 5,132 | py | #!/usr/bin/env python
#
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Links the deps of a binary into a static library.
Run with a working directory, the name of a binary target, and the name of the
... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
19284ba9e6f1e83eee80c2120623737c0f8b1dd4 | a51230b2363e267ebcdf6c1fc1eb3123e3b65031 | /examples/circuitplayground_slide_switch_red_led_short.py | 9c06cbce3aa9b730dc272b3ca82898d8b285417f | [
"MIT"
] | permissive | sommersoft/Adafruit_CircuitPython_CircuitPlayground | 2b4f95c2c7a68eec717e4ed28baabd2ebd1d70aa | 418ca982b34759b2804c2e816cdb505b2b818135 | refs/heads/master | 2021-04-27T02:28:45.319526 | 2020-03-20T18:42:46 | 2020-03-20T18:42:46 | 122,697,026 | 0 | 0 | MIT | 2018-02-24T02:56:34 | 2018-02-24T02:56:34 | null | UTF-8 | Python | false | false | 248 | py | """This example uses the slide switch to control the little red LED. When the switch is to the
right it returns False, and when it's to the left, it returns True."""
from adafruit_circuitplayground import cp
while True:
cp.red_led = cp.switch
| [
"kattni@adafruit.com"
] | kattni@adafruit.com |
8cb4fbcc78ae1ca69c890f36c84aeed1e4a620de | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fish1_20200805124830.py | 1c83130935b6cf842f3fe7291f0d16fe18671fe1 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | def fish(A,B):
# we place fish moving downwards to a downstream stack
# then when its not empty we'll check with the empty at A[i]
# if it eats that fish we deduct it from the alive fish and del from A
# otherwise we shall pop from the down stream stack
downStream = []
j = 0
aliveFish = ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0a9f573347d359d6228d4a960069180f0f850117 | 26a1a014e3a6d79bba1e4790afd58d15f3a9216f | /appdaemon/settings/apps/security.py | 9e3dd40f7349889ab360e8413ee4d1f13df7808f | [] | no_license | phonix2012/smart-home | 7bb164d0c35ea5ae76bfda66bd3ee33d3259c687 | a2d6046538afe950106620cec81100d4d3ae99e8 | refs/heads/master | 2020-03-27T12:18:47.251279 | 2018-08-27T03:00:33 | 2018-08-27T03:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,169 | py | """Define automations for security."""
# pylint: disable=unused-argument
from datetime import time
from enum import Enum
from typing import Union
from app import App # type: ignore
from automation import Automation, Feature # type: ignore
HANDLE_GARAGE_OPEN = 'garage_open'
class SecuritySystem(App):
"""Defi... | [
"bachya1208@gmail.com"
] | bachya1208@gmail.com |
4691c05d68705e6327046decedda0601e3cb15a9 | 5acc6332dc32c1b0ce5a570b94e018e0b4bcae38 | /ABC109/a.py | 2ace5b3bfd44af8d32fe7a1f7e792a1d9f2caa3e | [] | no_license | mongopa/competition | 112ab25468a0210dcb71ef15fac46a4ada15c658 | e4a272c4d27df9dc0a641da5da232aa7c3107079 | refs/heads/master | 2020-04-28T11:08:22.319248 | 2019-11-18T14:53:45 | 2019-11-18T14:53:45 | 175,225,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | a,b= map(int,input().split())
print('No' if a*b%2==0 else 'Yes') | [
"mongopa88@gmail.com"
] | mongopa88@gmail.com |
059c384da211169eaa6b0ae8d1c3c73d6d2a23ba | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /examples/docs_snippets/docs_snippets/integrations/bigquery/reference/pyspark_with_spark_resource.py | babcc20f431d53b65e872b5e3843aa3c3aa265f5 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 1,384 | py | from dagster_gcp_pyspark import BigQueryPySparkIOManager
from dagster_pyspark import pyspark_resource
from pyspark import SparkFiles
from pyspark.sql import (
DataFrame,
SparkSession,
)
from pyspark.sql.types import (
DoubleType,
StringType,
StructField,
StructType,
)
from dagster import Defini... | [
"noreply@github.com"
] | dagster-io.noreply@github.com |
c5191620ad01f23ca577da632f02971a4198012b | 127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06 | /2021_하반기 코테연습/boj9095.py | 91fc3f4bb7aeebf393ffe315deefa1653bdfc6f2 | [] | no_license | holim0/Algo_Study | 54a6f10239368c6cf230b9f1273fe42caa97401c | ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c | refs/heads/master | 2023-08-25T14:07:56.420288 | 2021-10-25T12:28:23 | 2021-10-25T12:28:23 | 276,076,057 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | t = int(input())
while t:
n = int(input())
dp = [0 for _ in range(n+1)]
dp[0]=1
dp[1]=1
for i in range(2, n+1):
for j in range(1, 4):
if i-j>=0:
dp[i]+=dp[i-j]
print(dp[n])
t-=1 | [
"holim1226@gmail.com"
] | holim1226@gmail.com |
a23f3ec3fbbc6f4861e912cac88d749b0c8f75ef | d748710c6c5fa0f61b5bd6c2ec849d9250428811 | /demo1/client_python/test/test_body15.py | 9013b74dc73e5f095b8430425a23108a1d1984f8 | [] | no_license | stefan2904/aries-experiments | 9f4dab2d0711b76557e3d6ae8e5a27e532102685 | 46f31ee62cf951da2696e5ca4e6dc1d3d753743d | refs/heads/main | 2023-03-23T00:06:06.362992 | 2021-03-18T12:56:58 | 2021-03-18T12:56:58 | 329,986,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # coding: utf-8
"""
(Aries Agent REST Server) of VC4SM University.
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future_... | [
"dev@2904.cc"
] | dev@2904.cc |
36c6cb8752330c5761133f7d42e9c04aa40bb8fe | 387cf5f72ed6679a4d9e04bddd16998a190c4caf | /problems/programmers/lv1/pgs-12901-strptime.py | 229f0e60304a18adfaac5c08c3a5a5c8d6b950d7 | [] | no_license | CodyBuilder-dev/Algorithm-Coding-Test | db4ee1e7565fbcef3140192225167eff42ad5c02 | cca5c4ba8bc31679ab00aceccfd8d9d39c232f72 | refs/heads/master | 2021-07-24T00:34:41.888289 | 2021-07-21T14:29:00 | 2021-07-21T14:29:00 | 219,123,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | """
카테고리 : 날짜 처리
아이디어 : 날짜 문자열을 만든 후, 이를 datetime Obj로 만들어 처리한다
문제점 : strptime(문자열,format)으로 문자열을 파싱하는 속도는
datetime(year,month,date)로 직접 생성하는것보다 훨씬 느리다(100배 이상)
"""
import datetime
def solution(a,b) :
dayOfDate = ["MON","TUE", "WED", "THU", "FRI", "SAT", "SUN"]
dateStr = f"2016/{a}/{b}"
dateObj = datet... | [
"imspecial1@u.sogang.ac.kr"
] | imspecial1@u.sogang.ac.kr |
99c949ac67fa8bdc3db795fbb4752f9a210261a5 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/common/script/cef/componentViews/proximityOpenTutorialView.py | ccf770143cceae3e7fa40d201bb2660d5fade755 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | #Embedded file name: eve/common/script/cef/componentViews\proximityOpenTutorialView.py
from carbon.common.script.cef.baseComponentView import BaseComponentView
class ProximityOpenTutorialView(BaseComponentView):
__guid__ = 'cef.ProximityOpenTutorialView'
__COMPONENT_ID__ = const.cef.PROXIMITY_OPEN_TUTORIAL_COM... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
0b0aa7af98509a67cf6f050a61d1579591322937 | 7f9dfa2cccf77764940ffcbbf92939e37c138c43 | /LoginSpider/LoginSpider/items.py | 2438a925d73ece5c2cd01cc3bef0bcd04f3a75ec | [] | no_license | zhangmman/scrapy_spider | f80bd8d213edde0dea083babe610ca7b1bc449a3 | 2bda4aa29f2550c649c939045ce4fcdea2736187 | refs/heads/master | 2020-09-11T13:58:49.930929 | 2019-12-21T08:40:56 | 2019-12-21T08:43:43 | 222,080,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class LoginspiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
key = scrapy.Field()
value = ... | [
"zhangman@ncepu.cn"
] | zhangman@ncepu.cn |
d34c0a8bc8ae3661daefa7939140c63f07fd18f7 | e9e433c57a7d73d848fbade5e354a8c31ff0ea87 | /codeprep/parse/matchers.py | 5bc50625f534c9c0b0c9cd53bf32f69f14aad0a8 | [
"Apache-2.0"
] | permissive | Joshua0128/codeprep | a7f99533e7b74e089fb66a3f10f6be59d4ca4b71 | 0f41307f7a9ad545e5ec0cc9552a0144328f2422 | refs/heads/master | 2023-07-09T13:07:33.094940 | 2021-04-21T18:08:30 | 2021-04-21T18:08:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | # SPDX-FileCopyrightText: 2020 Hlib Babii <hlibbabii@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
from typing import List
from pygments.token import Token
from codeprep.parse.subtokens import split_into_words, split_string
from codeprep.tokens.containers import StringLiteral, OneLineComment, MultilineComment
f... | [
"hlibbabii@gmail.com"
] | hlibbabii@gmail.com |
a543616e125279b2ac3c41b1a77872e36b0c8a88 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/ecdcb6a09f05795d16720ca45adc0c3f168fa0c3-<main>-bug.py | 287fa419b15f4182db289c7a86dff7ae530fc689 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py |
def main():
command_allowed_param_map = dict(cleanup=(), createcachetable=('cache_table', 'database'), flush=('database',), loaddata=('database', 'fixtures'), syncdb=('database',), test=('failfast', 'testrunner', 'liveserver', 'apps'), validate=(), migrate=('apps', 'skip', 'merge', 'database'), collectstatic=('cl... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fa0dfc9473bda7d977af40d8fe7934a3a0b5ffdb | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Python/Core/Lib/idlelib/CodeContext.py | 8d9ef5662ab63575f56d9f3e9f22fa9b6725f471 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 6,367 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: CodeContext.py
"""CodeContext - Extension to display the block context above the edit window
Once code has scroll... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.