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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b2c3503eb04efacd2e7919ac35ddba5250f7509 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_necklace.py | 1fac6e98b5fa8751e7cb2dad5ed8902cbbc4a46f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py |
#calss header
class _NECKLACE():
def __init__(self,):
self.name = "NECKLACE"
self.definitions = [u'a piece of jewellery worn around the neck, such as a chain or a string of decorative stones, beads, etc.: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8f4f19a5ccafc9679fc5e0d74c6526c7dbc95e29 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/sims/university/university_constraint_helper.py | 909716771efb3ac9f35d60d052f093a8011886dc | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\sims\university\university_constraint_helper.py
# Compiled at: 2020-04-10 00:58:10
# Size of source ... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
c747fc3ca11e638cc89b1543712cdff9c07f6b21 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/spending_limit_type.py | 8966869ba97c885d8bc4cfee59347982afb0ed3a | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
a37f3f31d2132f4be09fa414f44faa579301711c | cbf70750d6c265e4043fd9d1d3bd835662cd680f | /customer/migrations/0010_auto_20200924_1350.py | bb3021dc69a3b0803147861040ddda0bae105fac | [
"Apache-2.0"
] | permissive | xxcfun/DJANGO_CRM | c54e249a9a3da9edaeb5d9b49e852d351c7e359a | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | refs/heads/master | 2023-01-14T05:21:54.995601 | 2020-11-27T03:23:40 | 2020-11-27T03:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-09-24 05:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0009_auto_20200922_1015'),
]
operations = [
migr... | [
"55070348+hhdMrLion@users.noreply.github.com"
] | 55070348+hhdMrLion@users.noreply.github.com |
cb51fe3e4eb76ad651e9fa12d44760ebbee4a239 | 9a9e0398f26cee9864d48c4618c0a482e5475e83 | /Python/code/insert_into_a_binary_search_tree.py | 13866ad295bc26375cc3cc15a81946b087db49f6 | [] | no_license | CNife/leetcode | 92693c653bb41780ee431293286c3e909009e9b0 | 7cdd61692ecb52dd1613169e80b924dd39d35996 | refs/heads/main | 2021-06-22T21:22:12.997253 | 2021-03-18T07:07:15 | 2021-03-18T07:07:15 | 206,955,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from leetcode import TreeNode, test, new_tree, inorder_traverse
def insert_into_bst(root: TreeNode, val: int) -> TreeNode:
node, prev, is_left = root, None, False
while node:
prev = node
if val < node.val:
node, is_left = node.left, True
else:
node, is_left = no... | [
"CNife@vip.qq.com"
] | CNife@vip.qq.com |
ffc282cd0dd6bde3ffe884d9dae29cfcd248d22c | cf99f0dfd2ae3a50ac4dfe95dddd74d2308e7fd4 | /src/scalbo/scalbo/benchmark/dhb_navalpropulsion.py | 63e0681177c8fb2d58959ea10846ea3e91845071 | [
"BSD-2-Clause"
] | permissive | deephyper/scalable-bo | 33923598181799410b790addcaf4ea799b276444 | 44f0afc28a19213252b59868f76a8f6918f8aabc | refs/heads/main | 2023-07-28T10:33:52.291460 | 2023-07-20T09:44:50 | 2023-07-20T09:44:50 | 464,852,027 | 2 | 2 | BSD-2-Clause | 2022-10-18T12:15:19 | 2022-03-01T10:43:47 | Jupyter Notebook | UTF-8 | Python | false | false | 233 | py | import os
os.environ["DEEPHYPER_BENCHMARK_TASK"] = "navalpropulsion"
import deephyper_benchmark as dhb
dhb.load("HPOBench/tabular")
from deephyper_benchmark.lib.hpobench.tabular import hpo
hp_problem = hpo.problem
run = hpo.run
| [
"romainegele@gmail.com"
] | romainegele@gmail.com |
b7e437e89e358ec335a6332b2e9fd513a60a9b1f | 59fb17c240b261040026d713a6ac9c97d6a9f265 | /gym/gym/envs/robotics/hand_env.py | 2e9d2cf735797ab4dc19d54edb06d0a5c2b45936 | [
"MIT"
] | permissive | dmeger/TeachingImitation | 3fb97499e76929959913266f127154f6ae5a8e99 | 5f4dba7e49987924c3d55cd27579cad4c71ef7a4 | refs/heads/master | 2023-03-28T13:25:01.307382 | 2021-04-06T15:07:08 | 2021-04-06T15:07:08 | 355,223,500 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import os
import copy
import numpy as np
import gym
from gym import error, spaces
from gym.utils import seeding
from gym.envs.robotics import robot_env
class HandEnv(robot_env.RobotEnv):
def __init__(self, model_path, n_substeps, initial_qpos, relative_control):
self.relative_control = relati... | [
"david.meger@gmail.com"
] | david.meger@gmail.com |
64d756f30ed1ff762c711dbcf176d49456583621 | f7ec77ac1ba0a425e015c44a87f5f3b7cff96fdd | /custom_components/wyzeapi/climate.py | e9ab890003e453f7143b17da91cce4e85291b90b | [] | no_license | arsaboo/homeassistant-config | 099f47e14bac02c135d1c050c64c889e5c767ebe | 949a0ef28911f0bd3832e61365e5b58731915b4b | refs/heads/master | 2023-01-25T01:49:04.812101 | 2022-12-14T23:54:51 | 2022-12-14T23:54:51 | 70,074,515 | 1,831 | 562 | null | 2020-04-23T05:34:04 | 2016-10-05T15:40:46 | Python | UTF-8 | Python | false | false | 10,954 | py | """Platform for light integration."""
import logging
# Import the device class from the component that you want to support
from datetime import timedelta
from typing import List, Optional, Callable, Any
from homeassistant.components.climate import (
ClimateEntity,
SUPPORT_TARGET_TEMPERATURE_RANGE,
SUPPORT_... | [
"arsaboo@gmx.com"
] | arsaboo@gmx.com |
21829bcc8abaacf0d9312bc98db461f1459f05bf | 64ec8731553aa08c33373b212bbe431b1a23b97c | /docs/source/examples/geochem/lambdas.py | 9633ff7db7d91920bbbc02759569103e076723dd | [
"BSD-3-Clause",
"MIT"
] | permissive | ChetanNathwani/pyrolite | 98947fde265b25beea839f24495d68bbdb726eed | 8de9c67855305115517418e127bf26de84ff062d | refs/heads/master | 2023-07-26T18:57:28.024540 | 2021-07-08T09:19:02 | 2021-07-08T09:19:02 | 367,300,779 | 0 | 0 | NOASSERTION | 2021-05-14T09:23:47 | 2021-05-14T08:35:50 | null | UTF-8 | Python | false | false | 6,232 | py | """
lambdas: Parameterising REE Profiles
=====================================
Orthogonal polynomial decomposition can be used for dimensional reduction of smooth
function over an independent variable, producing an array of independent values
representing the relative weights for each order of component polynomi... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
597dfba8a0d880a25771aa66784fcd726a4e6cde | 952ef35ba682695a91c21f6dff8b2f0589e1fbb5 | /bemoss_lib/platform/commandProcessor.py | f511e3758dcff529b0f0d0902ecfca09d56b872b | [
"BSD-2-Clause-Views"
] | permissive | ajfar-bem/wisebldg | 8d4025dfea38829ea008e0dacb8a37362ff7098a | 0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05 | refs/heads/master | 2023-04-11T02:59:23.227173 | 2020-10-19T16:18:35 | 2020-10-19T16:18:35 | 359,859,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,694 | py | import datetime
from threading import Thread, current_thread
from multiprocessing import Process, Queue, Value
from platformData import *
import importlib
global processes_dict, archived_process_list
import threading
from BEMOSSThread import BThread, BProcess
from multiprocessing.reduction import reduce_connection
impo... | [
"info@bemcontorls.com"
] | info@bemcontorls.com |
8fb745233b67a3ca9ae885b064cd5d202c60325f | 1108586cf9e962a5be71536fc58a3837196c31e1 | /core/urls.py | b354185636a66849ba918552b8cd4c20b4f206de | [] | no_license | DeepakDarkiee/drf_search_viewset | 4abad47aad7c26bb729081e23b930b33483f24cf | ca014fe39a148e2e7f68cbb9b94cf71e93f971f7 | refs/heads/master | 2023-05-05T02:30:41.203749 | 2021-05-21T11:08:03 | 2021-05-21T11:08:03 | 369,508,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django.conf.urls import url
from rest_framework import routers
from core.views import StudentViewSet, UniversityViewSet
router = routers.DefaultRouter()
router.register('students', StudentViewSet)
router.register('universities', UniversityViewSet)
urlpatterns = router.urls | [
"mdipakpatidar@gmail.com"
] | mdipakpatidar@gmail.com |
0ea9cf7e3399ef2186f2a21d7e5bbad6f4a1d92c | f797c5fc3243944855ff9304a678f9d89ff85f93 | /src/state/ui/ui.py | 4c7a98ae01d648f5511fbd433450f312f67f8f1d | [] | no_license | thydungeonsean/Rainbowmancer | 551e857a85b76489b1cee3feb0e40f7832919712 | b8395fd2c25b83c84239a1aa198a0d134d7c60be | refs/heads/master | 2021-01-25T06:57:05.968319 | 2017-07-17T12:00:07 | 2017-07-17T12:00:07 | 93,628,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from crystal_panel import CrystalPanel
from character_panel import CharacterPanel
from ability_panel import AbilityPanel
class UI(object):
def __init__(self, game):
self.game = game
self.ui_objects = []
self.panels = {}
self.initialize()
def initialize(self):
crys... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
14051aef8bd1c1cf2f5c709908ed00a5830eb788 | 153c7c69c0e249dfd7b8bc9cfe18724b9b45ebf2 | /PyOptim/core/datainterface.py | cda80072be9ed1b91aca352de023e7ff2650c594 | [
"BSD-3-Clause"
] | permissive | bitfort/py-optim | e729ad8c80bffb3a843ccdded4a5051c516dd9f5 | 22e774008cd3c83c9e69de546b8733bd21729554 | refs/heads/master | 2021-01-18T10:11:23.853286 | 2013-04-13T01:33:50 | 2013-04-13T01:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,612 | py | from random import shuffle
from scipy import reshape, array
from numpy.matlib import repmat
from pybrain.utilities import setAllArgs
class SampleProvider(object):
""" Unified interface for interacting with a model:
given a data sample and a parameter vector, it produces
gradients, loss values, a... | [
"schaul@gmail.com"
] | schaul@gmail.com |
41d548ecd1ca4ca0d1bdabc65eab2e8717e5a4b8 | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /test/onnx/test_utility_funs.py | 71f52b306b8c4699ed7fa5d53e208defcb16a0d4 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | Python | false | false | 39,565 | py | from test_pytorch_common import TestCase, run_tests
import torch
import torch.onnx
from torch.onnx import utils, OperatorExportTypes, TrainingMode
from torch.onnx.symbolic_helper import _set_opset_version, _set_operator_export_type, _set_onnx_shape_inference
import torch.utils.cpp_extension
from test_pytorch_common im... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2bc24f18339ff57dfd8fe78df5b0674bbcea8621 | 1f82b95d45c6eed81a4361c7ed4cdc04789249d3 | /studentassign/domain/Student.py | 07daad24126be7343c576199e8360f26e7d127fd | [] | no_license | andidh/Python | dc06728ba4b9e54a6e9ff52afbbe75d43b855b36 | 8b629d160be541a6955d3799ac91358cecf5986a | refs/heads/master | 2020-12-24T20:10:49.132192 | 2016-04-13T15:34:36 | 2016-04-13T15:34:36 | 56,164,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | '''
Created on Nov 16, 2015
@author: AndiD
'''
class Student:
def __init__(self, student_id, name, group):
"""
:param student_id:
:param name:
:param group:
:return:
"""
self._student_id = student_id
self._name = name
self._group = group
... | [
"andi.deh30@icloud.com"
] | andi.deh30@icloud.com |
b8101f1890fe1cde1b9d02a092f473d3bce4a8ba | 93f0d70bea431064897698bef580e07159a2a4a5 | /backend/src/settings.py | 41035d5d9525c4ad66f364e6adc28df508adda00 | [] | no_license | azizcruz/react_rdf_app | 5ba9ffdb18c7d11187d58255ac84d5c37620823e | 11dc836798ba4becdafdd0f04e7ea0164116fc4c | refs/heads/master | 2020-05-04T18:43:26.853445 | 2019-04-07T11:52:41 | 2019-04-07T11:52:41 | 179,364,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bui... | [
"edu@localhost.localdomain"
] | edu@localhost.localdomain |
11e0ab6427e70a176bc90a0504c0b2891bee1de9 | 1244d693ae8d7d68721f972de82970c321b2f06f | /examples/network/create.py | e948ccc8a51f10108ac3879164c846742f42f31e | [
"Apache-2.0"
] | permissive | jasonzhuyx/python-openstacksdk | ae3b07b0729a55a2ab2faceee23ee6a8eb20b43a | 087140278d8c2e3f457093375bc480bd0045f86f | refs/heads/master | 2020-04-08T19:39:13.634700 | 2015-09-03T19:20:07 | 2015-09-03T19:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
4722d5e476f88f65763e3bd8d8ad036dc9ae67e2 | 87ad372898e793faf1ad89f4bb3b6e84a8002131 | /tests/unit/Strategy/test_set_next_time_lock.py | 5db244ebd53e53b7059dbf9c6899718d72115239 | [] | no_license | atsignhandle/unagii-vault-v2 | 6a9a96c11d34257bc3fdae57455ec3b2f9c0029a | 548f715f34329eb5abebffe40acbeb56a31cb6f3 | refs/heads/main | 2023-08-27T00:59:48.080152 | 2021-09-28T02:47:36 | 2021-09-28T02:47:36 | 413,448,825 | 0 | 0 | null | 2021-10-04T14:07:37 | 2021-10-04T14:07:36 | null | UTF-8 | Python | false | false | 410 | py | import brownie
import pytest
def test_set_next_time_lock(strategyTest, user):
timeLock = strategyTest.timeLock()
# not time lock
with brownie.reverts("!time lock"):
strategyTest.setNextTimeLock(user, {"from": user})
tx = strategyTest.setNextTimeLock(user, {"from": timeLock})
assert strat... | [
"tsk.nakamura@gmail.com"
] | tsk.nakamura@gmail.com |
578b5939179d1b07ba88a691c7e64e34ab5f3c0c | 61fb12fd550291bd59c15b244a99fd9394cbcbc2 | /wajju.py | a86073946bb0a59e7493e9d803fbd0c3d2364154 | [] | no_license | Mujju-palaan/Python | 9ab304a826964ef8d6643e326293e85631f03880 | a5b14736954e87596974690e9706bcb227b38b82 | refs/heads/master | 2020-06-12T19:55:45.327317 | 2019-08-08T05:23:11 | 2019-08-08T05:23:11 | 194,407,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import math
def sum(numbers):
return number1 + number2
print("Enter a number :")
number1 = int(raw_input())
print("Enter another number")
number2 = int(raw_input())
print("The sum is :" + str(number1) + str(number2))
| [
"mdmujahid97@gmail.com"
] | mdmujahid97@gmail.com |
c0f831999f30b8f74fdaa9e12c85f7536f8dcb6f | 5168da0fb501135a3c86e4e95679f54a825d69d0 | /openquake/hazardlib/calc/disagg.py | 99d1c16a083181d80620dce869ef0b10282f0ec3 | [
"AGPL-3.0-only",
"BSD-3-Clause"
] | permissive | GFZ-Centre-for-Early-Warning/shakyground | 266b29c05ea2cfff6d9d61f21b5114282c6fa117 | 0da9ba5a575360081715e8b90c71d4b16c6687c8 | refs/heads/master | 2023-06-01T21:41:11.127323 | 2018-10-09T10:31:48 | 2018-10-09T10:31:48 | 144,732,068 | 1 | 3 | BSD-3-Clause | 2019-11-18T07:58:49 | 2018-08-14T14:32:50 | Python | UTF-8 | Python | false | false | 19,356 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"mhaas@gfz-potsdam.de"
] | mhaas@gfz-potsdam.de |
dbf428402a937cb09a98af44a2e148b105a3368f | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_out/math/Moving/_Min.py | 7cde0c4e008cb74439117ad736967208c24d45c3 | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | from marketsim import registry
from marketsim.gen._out._observable import Observablefloat
from marketsim.gen._intrinsic.observable.minmax import Min_Impl
from marketsim.gen._out._iobservable import IObservablefloat
@registry.expose(["Statistics", "Min"])
class Min_IObservableFloatFloat(Observablefloat,Min_Impl):
""... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
6e06a75c02bd30795563b83eb66fd76197ba0f57 | ac5cba0f382ff833e215b3aec164cd70ce86572a | /tests/controllers/test_validation.py | f8c5d107be8ceca233d8c863cbf0a8a6a75545a4 | [] | no_license | numberoverzero/moldyboot | c724141d4db6ec1dc7be550cfb95de135ea19ac0 | 10bec1e76ddb6c9f8d826936056eb7730b64bdd7 | refs/heads/master | 2021-09-10T15:58:26.137509 | 2017-11-27T08:58:19 | 2017-11-27T08:58:19 | 60,145,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,063 | py | import base64
import uuid
import bcrypt
import pytest
from cryptography.hazmat.primitives import serialization
from tests.helpers import as_der
from moldyboot.controllers import InvalidParameter, validate
from moldyboot.security.jwk import i2b64
valid_uuids = [
uuid.uuid1(),
uuid.uuid4()
]
invalid_uuids = ... | [
"joe.mcross@gmail.com"
] | joe.mcross@gmail.com |
7dd73e917d89ec04f027cae79d65301d6b7c2939 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2390/60737/268647.py | 2acafd5ca353caea1d158f69e30a7ae788966398 | [] | 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 | 1,349 | py | n=int(input())
src=[int(x) for x in input().split()]
ans = 0
def swap_in_array(x,y,k):
for i in range(2**k):
src[x+i],src[y+i]=src[y+i],src[x+i]
def fac(x):
if x<=1:
return 1
return x*fac(x-1)
def judge(start,kind):
for i in range(1,2**kind):
if src[start+i]!=src[start+i-1]+1:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a9bbe242539826333f6424970c7f1b684aafed56 | 1974b3e9c5f2f677833e1608a41281f377fd331c | /dltesthttp_xuyalin2/www/testcase/webservice/ts_ws_approval/getApprovalList.py | 204c3767506929d7fc4d05dceab08d9873afb545 | [] | no_license | xyl00755/pythonLearning | ed0f540b61247c3560f347853da5886b2e2ba25d | c6aecff86ff34dcd7358d98201627ff84e9bf2cf | refs/heads/master | 2021-01-13T08:19:25.171016 | 2016-12-16T05:43:10 | 2016-12-16T05:43:10 | 71,764,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,436 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from www.api.webservice import *
from www.common.database import *
from www.common.excel import *
"""
0033.经销商管理员获取我的丹露终端店审批列表
http://127.0.0.1:8280/mallws/mydl/approval/getApprovalList.json
{
"token":"123", // 必须
"approvalStatus":"0"... | [
"xuyalin@danlu.com"
] | xuyalin@danlu.com |
b98315d1a5ab6145cfe5f1ac344a84defb8be0b5 | 8f1c3c76bf8514818b733ba29fe575d8a5243add | /eduerp_facility/models/facility_line.py | 88d78e63223b5ccf9c0bb05ec4633ea3fbb65e53 | [
"Apache-2.0"
] | permissive | westlyou/eduerp | 27f1c7dcd0d2badf50cb6c69f5e761d7f0c6a898 | 968d79b5adc729bc81192604f1fc223517d38ccf | refs/heads/master | 2021-06-04T05:11:13.858246 | 2016-09-12T07:21:17 | 2016-09-12T07:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # -*- coding: utf-8 -*-
###############################################################################
#
###############################################################################
from openerp import models, fields, api
from openerp.exceptions import ValidationError
class OpFacilityLine(models.Model):
_nam... | [
"huysamdua@yahoo.com"
] | huysamdua@yahoo.com |
9943e93a01401ca1cc7c610830d49e72c444c77f | 59880d47a533cf1f45f927adafff22d5ffb4796a | /Python/python_fundamentals/make_read_dictionary.py | 725d1d1fa73aa6b64157ebfd126bea054281fcdc | [] | no_license | mightymcalpine/DojoAssignments | 2bc7bb791630040dbb62da917a26b74bbdd574e4 | 9c0d80953f6ddbe840314f3d333b5f4590e0c9f4 | refs/heads/master | 2021-01-18T00:07:07.128554 | 2017-06-05T16:38:35 | 2017-06-05T16:38:35 | 84,257,743 | 0 | 0 | null | 2017-06-02T05:34:36 | 2017-03-07T23:47:27 | Python | UTF-8 | Python | false | false | 268 | py | mclp = {
'name': 'Lars',
'age': 35,
'origin': 'USA',
'lang': 'Python'
}
def aboutMe(obj):
print 'My name is', obj['name']
print 'My age is', obj['age']
print 'My country of origin is', obj['origin']
print 'My favorite language is', obj['lang']
aboutMe(mclp)
| [
"larscodus@gmail.com"
] | larscodus@gmail.com |
2d067b2ac1695d0e8ac6f1a1a6161669c6fdea99 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CsvdwQvNe8hYomcwB_11.py | 6927a3aaa072012090d89ad2c5a0818099ffc0f4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | """
Create a function similar to Processings "map" function (check the
**Resources** tab), in which a value and its range is taken and remapped to a
new range.
The function takes 5 numbers:
* Value: `value`
* Range: `low1` and `high1`
* Range: `low2` and `high2`
### Examples
remap(7, 2, 12, 0, 100) ➞ 5... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
20a7a8a8bd2ed8e48b7e48d46e2173c988a07490 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/slicer/legacy/tests/test_auto_ExpertAutomatedRegistration.py | 7fa8b77d63648c814d1199051fd25f8268c9e5b3 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,860 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..registration import ExpertAutomatedRegistration
def test_ExpertAutomatedRegistration_inputs():
input_map = dict(
affineMaxIterations=dict(argstr='--affineMaxIterations %d', ),
affineSamplingRatio=d... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
01df3b50b123410aa99419c69bd77ff08103c28a | 12f664c45e338772832ce8a65213f12ee59451f6 | /devel/lib/python2.7/dist-packages/naoqi_bridge_msgs/msg/_BodyPoseResult.py | 271624dd3466f8c4165c0338570dafd695957b1d | [] | no_license | Jose-Pedro/NAO-KINECT-ROS | 89eefd3956a2d739496fb4e7199b7e523f47a2ec | efb01e20983788e62baac26d2aab7949729609b6 | refs/heads/master | 2021-01-19T04:13:42.647533 | 2016-06-22T19:46:45 | 2016-06-22T19:46:45 | 61,549,669 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from naoqi_bridge_msgs/BodyPoseResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class BodyPoseResult(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
... | [
"zepedro.medeiros@gmail.com"
] | zepedro.medeiros@gmail.com |
b3ad5ad1dfa77ccb6ae932da72d515588bbbcc8e | 4366912f5607c6c7c813028581b0a56b7f308cd0 | /models/gpt2.py | eace7928a0b813e65797b17d47994764f4999503 | [
"MIT"
] | permissive | gdh756462786/OpenDialog | 269ea74ac2bdef6ba56a199d84920d34dad673d0 | 94445b47c2442b7fa6fee6f666cfea1940196dd3 | refs/heads/master | 2022-12-07T09:43:27.613561 | 2020-08-16T07:05:00 | 2020-08-16T07:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,438 | py | from .header import *
from .test import TestAgent
class GPT2(nn.Module):
def __init__(self, vocab_size, unk_id, sep_id, topk, topp,
repetition_penalty,
config_path='data/config/model_config_dialogue_small.json'):
super(GPT2, self).__init__()
self.model_config = G... | [
"18811371908@163.com"
] | 18811371908@163.com |
5a75ef259978e19f80ba67378efd742ffb0fb786 | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421222926.py | 6db3be37efaa0702e3225fa476c85d0605f4a0f5 | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,093 | py | # Jiaxi Zhang
# George McAlear
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv
import threading
import time
import sys
import asyncio
from PIL import Image
from markers import detect, annotator
from grid i... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
a71ff1203b05d22a7207347c13840907b50568bb | 9a4de72aab094c87cfee62380e7f2613545eecfb | /accident/models.py | 83110248a89e95df1135aa7b443aa06f856621b5 | [] | no_license | jamesduan/asset | ed75765c30a5288aaf4f6c56bbf2c9a059105f29 | f71cb623b5ba376309cb728ad5c291ced2ee8bfc | refs/heads/master | 2021-01-10T00:06:41.120678 | 2017-05-27T11:40:48 | 2017-05-27T11:40:48 | 92,730,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,401 | py | # -*- coding: utf-8 -*-
from django.db import models
from cmdb.models import DdDomainV2, DdUsers, DdDepartmentNew
from util.timelib import timelength_format, stamp2str
from monitor.models import EventLevelMap
from cmdb.models import AppWeb
from change.models import Action
class AccidentParentType(models.Model):
... | [
"duanlingxiao@yhd.com"
] | duanlingxiao@yhd.com |
e2ea868419ba343d752775edae4710654301638e | cbd6d41e836348e4aabd122e5677e47e270fd417 | /logwatch.py | d76ed7718777cef3481c7e576afa9e6ae190dd2d | [] | no_license | gkasieczka/cms-bot | 750879de82a5f51f781e3d3dacc7e59dd582c681 | 06a07a9c389a13a9694578883a171f597af60998 | refs/heads/master | 2021-01-23T01:46:25.212167 | 2016-08-29T09:47:54 | 2016-08-29T09:47:54 | 66,856,373 | 0 | 0 | null | 2016-08-29T15:34:44 | 2016-08-29T15:34:43 | null | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/env python
from os.path import exists, join, basename
from sys import exit
from commands import getstatusoutput
from hashlib import sha256
def run_cmd (cmd, exit_on_error=True):
err, out = getstatusoutput (cmd)
if err and exit_on_error:
print out
exit (1)
return out
class logwatch (object):
... | [
"Shahzad.Malik.Muzaffar@cern.ch"
] | Shahzad.Malik.Muzaffar@cern.ch |
aa03e5c285a6c880213dfae57d40bc28041b2a2c | b0d2033578705c14d9a65a604519be06450d85ae | /Leetcode/Two_Sum.py | 90888ad7e70dfd52198219b8ae1a5603b3ee4cf0 | [] | no_license | Pavithra-Rajan/DSA-Practice | cc515c4dd4f5a37b026640b9a5edfdabf8f9be9d | 5fee51ee91c2125c084b768a5d5b35a48031506c | refs/heads/main | 2023-09-03T11:47:25.791511 | 2021-11-16T19:39:00 | 2021-11-16T19:39:00 | 374,404,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
dic={} # potential value dictionary
for i in range(len(nums)):
if nums[i] in dic:
return [dic[nums[i]],i]
else:
dic[target-nums[i]]=i
""... | [
"pavithra.rajan01@gmail.com"
] | pavithra.rajan01@gmail.com |
0ac75cb30e5edbac6f78fe149404bea2aa7cbaf4 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_each197.py | 4136b1ca69a3780d7e42a9415431bdb3b05ed28e | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from xcp2k.inputsection import InputSection
class _each197(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metad... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
36c5c8842a88345e586c78a92b069ef8e139664d | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/extension_management/v4_0/models/extension_state.py | 9118bdb8dc6b0f345d585860138c0bce5bf482df | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 2,344 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
7435d09d750a32d9ad61e573a52cf8f14a6cd851 | 88e200b437f6867b525b680615982b86a1950052 | /pyramid_pony/route_factory.py | 21cfb9a4757fe43bc78aaed0c133e0ddb9fa47c3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | knzm/pyramid_pony | 3abe089ecbc12824a2b4e06e6c2799c8c04de7ed | 1c9d5503c6e3ce73c7416e215621c481f817be1b | refs/heads/master | 2021-01-20T21:59:24.236296 | 2012-12-21T13:14:51 | 2012-12-21T13:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import base64
import zlib
from pyramid.response import Response
from pyramid.decorator import reify
from .pony import PONY, UNICORN, TEMPLATE
class PonyContext(object):
def __init__(self, request):
self.request = request
if request.params.get("horn"):
self.data = UNICORN
... | [
"nozom.kaneko@gmail.com"
] | nozom.kaneko@gmail.com |
cc1b44e28dc088fc406e02d8e4a51fc84ad24327 | 033d29637f5839a5b18c0a93296efabaf1f532ce | /misc/largest_k_-k.py | abc2ea7d70c38b1a3537c58b2333b837ee81d87d | [] | no_license | dhumindesai/Problem-Solving | 80ea996010b7d802b6479d91117e981e88139d17 | 97dab280378bf8d950b75caec9f7f62c71db812c | refs/heads/master | 2021-12-04T07:29:40.851218 | 2021-11-27T17:33:18 | 2021-11-27T17:33:18 | 240,163,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | '''
nlogn
1
'''
def solution(nums):
if len(nums) < 2:
return 0
nums.sort()
first = 0
last = len(nums) - 1
while first < last and nums[first] < 0 and nums[last] > 0:
if abs(nums[first]) == nums[last]:
return nums[last]
if abs(nums[first]) > nums[last]:
... | [
"dhrumin.desai28@gmail.com"
] | dhrumin.desai28@gmail.com |
684a26868d7e9316c6deca064b99cda32aa445cb | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/shared/plane_equations.py | 58114f9c1a76e22a35f4bcdb77c1e1cfd158056a | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,268 | py |
import itertools as it
import math
import numpy as np
from . import simple_vector_maths as vectHelp
class ThreeDimPlaneEquation():
""" Class representing a 3-dimension plane equation ax + by +cz = d
"""
def __init__(self, a, b, c, d):
""" Initializer
Args:
a,b,c,d (floats): Parameters for the plane eq... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
840a73d19aa4538be797d0689823d100f210cb1c | e35c72a64a0c279bfb223fef74cc4274626b75f8 | /MovieProject/MovieProject/wsgi.py | effee42efb370320fc56988c74390c6e42855f6b | [
"MIT"
] | permissive | zhumakova/MovieProject | 0b28a8c02c22e4888796567d922d0620ded2e65e | 751326367ddf25a8762617c2cc6bdcb8e0f38eff | refs/heads/main | 2023-06-03T23:51:00.952682 | 2021-06-29T09:39:03 | 2021-06-29T09:39:03 | 376,356,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for MovieProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"bzhumakova@gmail.com"
] | bzhumakova@gmail.com |
455f694797086a12a6d3cf38d631a3b1619ce791 | 071416b05026dfc5e21e32c7f1846ab8475acf97 | /regularexpresion/vhcle.py | 002ceb0f770b467d834b8e03d0e3f5a4a92594b1 | [] | no_license | Sreerag07/bankproject | a7acf65b45c9e5c3ccace7ff3d755c33cf8a4fb0 | bb28e7c92cbfa1c1810d20eb4767a479eee5f015 | refs/heads/master | 2023-04-20T01:15:47.496059 | 2021-05-19T08:03:54 | 2021-05-19T08:03:54 | 368,788,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # import re
#
# n=input("Enter the number")
# x='[A-Z]{2}[\d]{2}[A-Z]{1}[\d]{4}$'
# match=re.fullmatch(x,n)
# if match is not None:
# print("valid")
# else:
# print("invalid")
import re
n=input("Enter the number")
x='[A-Za-z0-9][@][g][m][a][i][l][.][c][o][m]$'
match=re.fullmatch(x,n)
if match is not None:
... | [
"sgpakkam@gmail.com"
] | sgpakkam@gmail.com |
a22ad370ef14f3c0d4a62dbae1dc601050b1b1b5 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v3/proto/errors/media_file_error_pb2.py | d318188d9d1d4fff66dcb9a080883c65c4cf1daa | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 8,029 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/errors/media_file_error.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 impor... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
6297a0b3ab64c412a408bdaf19c685189ffbb67f | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/battle/SkillInfo.py | f3c0400bf8136861c1c9483f67974ca73307ee82 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76,761 | py | skillInfo = {2060: [13713, 1, None, None, 1, 0, 0, 0, 0, 0, 0, 0, 80, 0.25, 2, 15, 0, 0, 0, 0, 1, 0, 3, 0, 0, 26, 0, 0, 1, 0, 0, 1, 3, 0, -1, 0, 0.1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, u'cutlass_stab', 0, 1, 1, 0, 0], 2061: [13713, 1, None, None, 1, 0, 0, 0, 0, 0, 0, 0, 80, 0.25, 2, 15, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
447deb31d2d1a1b72324352aea01dbd53f57f36d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03264/s772913299.py | cde5df2d33feac6966bd5aed1a9f6818692d8236 | [] | 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 | 59 | py | def ip():return int(input())
k=ip()
print((k+1)//2*(k//2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
93562f7a23b36ff28a4168abcecb72557e221173 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/ankiandroid/testcase/interestcases/testcase0_33_2_013.py | 6e49203500865fc74ce0dd3171d513841a9833e8 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,166 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
819a111ff1a283057ad75626c94f9d4dab59a465 | 462e52636f351a30da5bf2159bc9b30719bbe79b | /stuff/finished libraries/matplotlib/test_path.py | 3ff83da499ffd77fa18e04d78321562253ed98b4 | [] | no_license | SoutiRini/Top-20-Python-Libraries | c27b1ae77e11209bfe97405f8e324c54d4d49db4 | 1adcc6255dc59b25a831df2d23fa759e1e7c3264 | refs/heads/master | 2022-12-08T11:09:19.587218 | 2020-08-28T22:16:41 | 2020-08-28T22:16:41 | 291,153,411 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,139 | py | import copy
import re
import numpy as np
from numpy.testing import assert_array_equal
import pytest
from matplotlib import patches
from matplotlib.path import Path
from matplotlib.patches import Polygon
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt
from matplotlib import ... | [
"auau@oregonstate.edu"
] | auau@oregonstate.edu |
8dba6fce8a430d0d0d0d1774d6d1c3870202a011 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPDP1P2_20210712121606.py | 8efc27b4e0769bda9c34099e4e37ee69fe7cbe2b | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,675 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
4c56aadf4698771dcbc22a690ca36a0bc8fb8628 | 6ac0aeea8229c4e2c7a041e85c3afeeb106c6b01 | /use_kapl_util.py | 38117a5ea53acf4d7f2d27eef75d14b2812f312f | [] | no_license | waiteb15/py3intro | 325dafaaa642052280d6c050eacf8b406b40e01d | 68b30f147e7408220490a46d3e595acd60513e9e | refs/heads/master | 2020-03-27T10:50:25.928836 | 2019-02-28T21:47:11 | 2019-02-28T21:47:11 | 146,448,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/env python
import KAPL_UTIL
KAPL_UTIL.spam()
KAPL_UTIL.ham()
# DON't do this, its supposed to be private...ssshhhh!
#KAPL_UTIL._eggs()
| [
"waiteb15@gmail.com"
] | waiteb15@gmail.com |
3ba9c9bca8655ce76da6ea3578d0b108e258fc72 | 733e6b62740c35968a0c554e64642f9ebad53bc4 | /data/Scripts/Tts.py | df7fbacaf12f30dec1ad33a28c9c58b1425a7bc9 | [] | no_license | ten0s/autokey | 5d492013aed1ad9812fe58e179b2793b5b5865fe | 875e69c115e7cb4dc276e2acd2601fd96b669d7c | refs/heads/master | 2023-02-10T09:51:20.880320 | 2023-02-01T09:31:35 | 2023-02-01T09:31:35 | 3,323,213 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | system.exec_command("tts.sh", False) | [
"="
] | = |
125feb3e297701f0b402bc58baa66f53b7b43a05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03427/s426447268.py | 447a51a40727345bcb9f33c63d6d42f8cb865b83 | [] | 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 | 275 | py | N = list(input())
num = len(N)
if N.count('9') == num:
print(9*num)
elif N.count('9') == num-1 and N[0] != '9':
print(int(N[0])+9*(num-1))
else:
if num <= 1:
print(''.join(N))
else:
ans = int(N[0])-1
ans += 9*(num-1)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e7d145c6fcadca01a666a56be951e42f0637c3d7 | aea7b59d10a72ccac35a06e6d31a508771efc5a0 | /Day 26/AppendAndDelete.py | e2135a134841178d356dbe8bc4a59ede08a84ed8 | [] | no_license | divyatejakotteti/100DaysOfCode | d52871b27146cd1b1ef2b997e93b9a96ca8ac5a9 | 3c8555b021482565f56d7fb86fa5dacb304dfd3c | refs/heads/master | 2023-02-01T10:48:19.082268 | 2020-12-21T06:34:02 | 2020-12-21T06:34:02 | 294,888,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | '''
You have a string of lowercase English alphabetic letters. You can perform two types of operations on the string:
Append a lowercase English alphabetic letter to the end of the string.
Delete the last character in the string. Performing this operation on an empty string results in an empty string.
G... | [
"noreply@github.com"
] | divyatejakotteti.noreply@github.com |
5a0ae2d19148d1aad148a2440476b4e73528714c | 1df8feb285b8b5bce52ae545005d6b753ddebc1c | /trix/trix_core/fabfile.py | 547d59ba67134a0b6f5ac3d88cf172a2b6498724 | [
"BSD-3-Clause"
] | permissive | msabramo/trix2 | de5080b0752b98ea3d147d779a052a32041bd8b8 | bb41e676be8b3a4ae20948db70f4c4c5ab0283a0 | refs/heads/master | 2023-07-06T16:42:12.304879 | 2015-01-08T11:44:11 | 2015-01-08T11:44:11 | 28,970,420 | 0 | 0 | null | 2015-01-08T14:49:44 | 2015-01-08T14:49:43 | CSS | UTF-8 | Python | true | false | 52 | py | from trix.project.develop.fabrictasks.i18n import *
| [
"post@espenak.net"
] | post@espenak.net |
de0396149e70d39521730b0fbb62dbbccd8ee1ee | 0193e4024c8236db023558d70233f988e55b5a21 | /sdk/python/tekton_pipeline/models/v1beta1_pipeline.py | 353baffa0a352f493e12c828334ae2d4be61bd28 | [
"Apache-2.0"
] | permissive | tektoncd/experimental | 3ae1202cab489b3ba631dfc15223b13ac9215ed1 | ee13de632e126a5595944d6303bae36cad4555b7 | refs/heads/main | 2023-08-31T16:57:09.444985 | 2023-06-22T15:59:01 | 2023-07-03T11:22:17 | 180,445,039 | 101 | 138 | Apache-2.0 | 2023-09-14T11:41:30 | 2019-04-09T20:32:54 | Python | UTF-8 | Python | false | false | 7,084 | py | # Copyright 2021 The Tekton Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"48335577+tekton-robot@users.noreply.github.com"
] | 48335577+tekton-robot@users.noreply.github.com |
f28c701167115edacd2d05a27a9cbfd877a7ad29 | c41d5fae2358d68c6e25724e78aed37e5c5bc9ef | /eemeter/modeling/split.py | 5b98a7424826ed14cf05027198374b1d64659f9c | [
"MIT"
] | permissive | hj91/eemeter | 8087bbf9ceac1e93952914e4afc01c658a355893 | 9d2163a3911f5655b155caffb8b6c7e8653483c3 | refs/heads/master | 2021-07-10T08:23:40.137087 | 2017-10-09T18:57:57 | 2017-10-09T18:57:57 | 106,719,500 | 1 | 0 | null | 2017-10-12T16:42:22 | 2017-10-12T16:42:22 | null | UTF-8 | Python | false | false | 8,538 | py | import logging
import traceback
import numpy as np
import eemeter.modeling.exceptions as model_exceptions
from eemeter.structures import EnergyTrace
logger = logging.getLogger(__name__)
class SplitModeledEnergyTrace(object):
''' Light wrapper around models applicable to a single trace which
fits and predic... | [
"ngo.phil@gmail.com"
] | ngo.phil@gmail.com |
bd1454cf6557e9e036d562f13f13398a70985319 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/pppservercapacity_979eb526d86ff91bb93b7632215d608e.py | ec4697519c54b2c4c12c1b34054c32ffd3a7d9c2 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,068 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
673c796757af9133dba1e31c837b91a67964f6db | 60e34c75afec810f4b1c2c82495d8d3017f32d33 | /02栈和队列/01Stack_list.py | 0150ee592e0a398ad418dd1bc8eed5a13afc24a8 | [] | no_license | ares5221/Data-Structures-and-Algorithms | af97c6b34b810c37f152af595846870a7b9b304b | 7c51eee0c375136f995cc063ffc60d33a520d748 | refs/heads/master | 2021-07-17T21:18:46.556958 | 2018-12-03T07:30:13 | 2018-12-03T07:30:13 | 144,227,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # coding = utf-8
class Stack(object):
'''用顺序表实现栈'''
def __init__(self):
'''初始化栈为空列表'''
self.items = []
def isEmpty(self):
'''判断栈是否为空'''
return self.items == []
def size(self):
'''返回栈的大小'''
return len(self.items)
def pop(self):
'''出栈'''
... | [
"674361437@qq.com"
] | 674361437@qq.com |
79247f284ea58a8aab0d7a2f936b3d0b229c43a0 | 141c5ef07df60b1c9f726e4605b78a2a7c1243e9 | /meross_iot/model/plugin/power.py | d9e4a85dc275ae2f69b7c4409a9f4aac0062d785 | [
"MIT"
] | permissive | albertogeniola/MerossIot | cd8abaac236a7fb442bdf9613c7e6760123c8bd3 | de1c22696511eee106961da3f22d3030ed9c254c | refs/heads/0.4.X.X | 2023-09-01T11:11:09.793153 | 2023-04-01T15:15:50 | 2023-04-01T15:15:50 | 146,365,723 | 467 | 102 | MIT | 2023-09-11T06:42:13 | 2018-08-27T23:30:56 | Python | UTF-8 | Python | false | false | 780 | py | from datetime import datetime
class PowerInfo(object):
def __init__(self, current_ampere: float, voltage_volts: float, power_watts: float, sample_timestamp: datetime):
self._current = current_ampere
self._voltage = voltage_volts
self._power = power_watts
self._sample_timestamp = sa... | [
"albertogeniola@gmail.com"
] | albertogeniola@gmail.com |
9d40a317734b30fd9371baa7c53d54f329c4474e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree_20200623143621.py | f8964b2ad95245e959bc54fa0f8e60157601b933 | [] | 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 | 2,215 | py | # define node class
class Node(object):
# constructor
def __init__(self,value):
self.value = value
self.left = None
self.right = None
# define binary tree class
class BinaryTree(object):
def __init__(self,root):
# converting data
self.root = Node(root)
def pr... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
e30693a3a31fad2a6436482b4dcaae11d3c8a9ef | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/295/92773/submittedfiles/testes.py | edca1d262cf945e495df921179da0f07739e2f99 | [] | 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 | 4,041 | py | a = []
n = 4
for i in range(0,n,1):
a.append(input("Digite umvalor:"))
for i in range(0,n,1):
if a[n] %2 ==0:
print(a[n])
a = [2,4,6,8,10]
n = 2
for i in range (0,len(a),1):
print (a[i]//2)
print("----------------------------------------------------")
for i in range(1,11,1):
a.a... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b2e92562247cf0977bc31277c4a90d20cf359b35 | cf39421d0948655f587445a484bf04fd1986a06f | /microsvc/subgraph.py | 11607d214b7cebee5e957d00f18d476d4148f5c3 | [
"CC0-1.0"
] | permissive | aidaakuyeva/RichContextMetadata | 1b475a94bd3d7ad0118bc5faeb585cd9e7209f59 | 2b038e69a6cc234dd5354e6e056b5b46fec2f3ba | refs/heads/master | 2023-01-11T04:04:15.630422 | 2020-11-16T16:12:29 | 2020-11-16T16:12:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | #!/usr/bin/env python
# encoding: utf-8
import json
import networkx as nx
import os
import rdflib
import sys
import tempfile
TTL_PREAMBLE = """
@prefix cito: <http://purl.org/spar/cito/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/... | [
"ceteri@gmail.com"
] | ceteri@gmail.com |
39f792696bd72e0fde485771c5c094cc4889aeca | 5095047656d0c2e64f65d1236dbdd3e30ee091eb | /lintcode/easy/39_recover_rotated_sorted_array.py | 5edeabdc9b69503f8830e8a7a40bbc2c86ed449d | [] | no_license | simonfqy/SimonfqyGitHub | 3799fa9e868010864973700fdb8be5d37f6c2560 | fa3704af37d9e04ab6fd13b7b17cc83c239946f7 | refs/heads/master | 2023-04-05T00:33:00.989677 | 2023-03-29T06:58:21 | 2023-03-29T06:58:21 | 33,021,240 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | '''
Link: https://www.lintcode.com/problem/recover-rotated-sorted-array/description
'''
# This is my own solution based on the teachings in Jiuzhang.com. It is sorting in-place.
class Solution:
"""
@param nums: An integer array
@return: nothing
"""
def recoverRotatedSortedArray(self, nums):
... | [
"noreply@github.com"
] | simonfqy.noreply@github.com |
fb896906a0344813eb3d06af968407a0bb598b45 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/test_traced_layer_err_msg.py | 5703ce131317699ab595efc086049d4ed549d7e4 | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 9,716 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
721df6fff854cdc440ec2a31030ed78152f343bc | 352454c055f91b6997e742bbda3e3a17580a499f | /src/scrub/__init__.py | 9ce55cb33f5646907c4bd090bfd3dea99fd1792c | [] | no_license | dushyantkhosla/ds-docker-walkthru-titanic | 533fcca39e54de7e904b41978437788c9206490e | 7534b29776f829633e4efcb999b37694ad9e27b3 | refs/heads/master | 2021-09-12T09:31:59.098462 | 2018-04-05T13:55:00 | 2018-04-05T13:55:00 | 117,235,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from .scrub import get_clean_data, scrub_raw_data
from .compress import compress_numeric, compress_categorical
from .clip import clip_categorical
| [
"dushyant.khosla@pmi.com"
] | dushyant.khosla@pmi.com |
1a33515f51413fc03f8802cb84b6db01c0016b74 | 2b3ea7bb0df4be7f55d2ac188e23d801e497df8d | /fcsm_eos_api_client/models/aws_encrypted_password.py | 49a5f202a24b352dabcd4e1f2f72fa8919fc1b65 | [] | no_license | mikespub/fcsm-eos-api-client | 12b663b4e79ac5d86c2162dec168bfa240a85f0c | 107a3a7733c55ae6a750e32497268300c6be590e | refs/heads/master | 2020-08-01T18:13:17.229375 | 2019-10-29T14:30:56 | 2019-10-29T14:30:56 | 211,071,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | # coding: utf-8
"""
Combined FCSM EOS API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
impor... | [
"github@mikespub.net"
] | github@mikespub.net |
88f358459d0853b847609698ac42ef8312da6936 | 4ec6ed4ebcb9346042669e6aa03be0e502ed48b3 | /leetcode/minimum-path-sum.py | 55df64015414dc0f842c2c148e4cf087b7cef48e | [] | no_license | shonihei/road-to-mastery | 79ed41cb1ad0dc2d0b454db2ccc7dd9567b03801 | 312bdf5101c3c1fc9a4d0b6762b5749ca57efe08 | refs/heads/master | 2021-01-22T19:59:17.038641 | 2017-11-16T15:21:55 | 2017-11-16T15:21:55 | 85,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | """
Given a m x n grid filled with non-negative numbers, find a path from top
left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at any point in time.
"""
def minPathSum(grid):
for i in range(1, len(grid[0])):
grid[0][i] = grid[0][i] + ... | [
"shonihei@gmail.com"
] | shonihei@gmail.com |
f497c7f24447f373e69f0647e9382b1f70699ff9 | ead94ae26fa54b0a81ca7bf6bc9a32e2d6ec946c | /0x0C-python-almost_a_circle/models/base.py | 8bd97ec17fe9ebf1e2e3450eb7b49a39da972364 | [] | no_license | Ritapeace/holbertonschool-higher_level_programming | 4d02049843869695b67a148c0b58ec0063ab0bfc | c95a215dbaa07bc73b1e7c3e5a051a4a0afed1c8 | refs/heads/master | 2023-03-16T20:58:08.538187 | 2020-04-16T18:28:24 | 2020-04-16T18:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,561 | py | #!/usr/bin/python3
"""
main class of all the proyect
"""
# import turtle
import csv
import os
import json
class Base:
""" class base """
__nb_objects = 0
def __init__(self, id=None):
"""
class constructor
if id is None increment the private class attribute __nb_objects
... | [
"947@holbertonschool.com"
] | 947@holbertonschool.com |
8e6d03f8372c860983813081ad8a53ea5ba0f293 | 4529dd6b9c257f00bf08301ea744be6f1b4c70ce | /blog/migrations/0001_initial.py | c8c588e7f5622ea448b2dab6521bb82bfde9590e | [] | no_license | ljingen/studycode | bb3bc8b031a8ab5d9a86dbeca7ad8a8c9a6a0bfa | c4a925cc3f60f2729eb5ee415ed513dd41569d88 | refs/heads/master | 2021-06-23T13:51:03.756646 | 2017-07-30T04:57:08 | 2017-07-30T04:57:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-26 10:05
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"luojingen@aliyun.com"
] | luojingen@aliyun.com |
9526a8ec66dccafb2ee7d3b42af3c02cf18f4915 | 28a124b6a2f22a53af3b6bb754e77af88b4138e1 | /DJANGO/companytodo/reports/migrations/0002_auto_20191202_2322.py | 4d1cefcb2466476c55f4a795a2a681a753fc7215 | [] | no_license | mebaysan/LearningKitforBeginners-Python | f7c6668a9978b52cad6cc2b969990d7bbfedc376 | 9e1a47fb14b3d81c5b009b74432902090e213085 | refs/heads/master | 2022-12-21T03:12:19.892857 | 2021-06-22T11:58:27 | 2021-06-22T11:58:27 | 173,840,726 | 18 | 4 | null | 2022-12-10T03:00:22 | 2019-03-04T23:56:27 | Python | UTF-8 | Python | false | false | 862 | py | # Generated by Django 2.2.7 on 2019-12-02 20:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0002_product_description'),
('areas', '0001_initial'),
('reports', '0001_initial'),
]
o... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
05577e96d6f81cfec509a48ce0200d500b62f248 | 99e44f844d78de330391f2b17bbf2e293bf24b1b | /pytorch/torch/nn/modules/rnn.py | f2c6f70c2419988d4edac0dccb4340489f864405 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | raghavnauhria/whatmt | be10d57bcd6134dd5714d0c4058abd56a1b35a13 | c20483a437c82936cb0fb8080925e37b9c4bba87 | refs/heads/master | 2022-12-04T05:39:24.601698 | 2019-07-22T09:43:30 | 2019-07-22T09:43:30 | 193,026,689 | 0 | 1 | MIT | 2022-11-28T17:50:19 | 2019-06-21T03:48:20 | C++ | UTF-8 | Python | false | false | 43,418 | py | import math
import torch
import warnings
import numbers
from .module import Module
from ..parameter import Parameter
from ..utils.rnn import PackedSequence, get_packed_sequence
from .. import init
from .. import _VF
from ..._jit_internal import weak_module, weak_script_method, weak_script, \
_parameter_list
_rnn_... | [
"rnauhria@gmail.com"
] | rnauhria@gmail.com |
4b89b693039712326e41f12efd84ada959490eb8 | c8335705ff06641622668c9b0a3020df9213bc77 | /core/migrations/0005_homepage_hero_image.py | b81f7fd0a13311af70fe4bc543ec37280b9382e4 | [] | no_license | Richardh36/ANS | 0adedcc760a6acbf539c8cbedde8edc28186218a | 2c46d36cf349f3ab8556bf713d2a0125c415029a | refs/heads/master | 2016-09-11T02:42:21.952145 | 2015-05-03T14:03:10 | 2015-05-03T14:03:10 | 34,852,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0005_make_filter_spec_unique'),
('core', '0004_auto_20150501_1528'),
]
ope... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
23e548b8f334899f6c7d8858f53e3ce226a009be | 2846534de9c66457b5f33ad2898a90688a621088 | /numba/minivect/miniast.py | 0fc3b0125b6d3f10572a3679b54b6287b4bda9cf | [
"BSD-2-Clause"
] | permissive | yarikoptic/numba | c6f190aba55647beca4be527e95020918d24063d | 46885bfb326640581afa11abd4bd5f73d6083468 | refs/heads/master | 2021-01-17T06:59:27.793042 | 2012-10-24T01:27:50 | 2012-10-24T01:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,687 | py | """
This module provides the AST. Subclass :py:class:`Context` and override the
various methods to allow minivect visitors over the AST, to promote and map types,
etc. Subclass and override :py:class:`ASTBuilder`'s methods to provide alternative
AST nodes or different implementations.
"""
import copy
import string
imp... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
4354b781f08321717f27ae24f9ca7b2823049b1e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/117/usersdata/163/26262/submittedfiles/al2.py | 755eb8db7363ddb972d635033445678a25e04869 | [] | 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 | 153 | py | from __future__ import division
#INICIE SEU CODIGO AQUI
n= float('(input('Digite um numero real:'))
Real= n-inteiro
print('(inteiro)
print('%.2f' %real) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a1eee10ae915ce507e8ee0992bc14ba1d655000a | 58a47ad4c25023c868658a7c55a303b3130f3b16 | /backend/models/__init__.py | e6f581ed206f58bd9affb4ed05d45e4d57489acd | [] | no_license | jmnelmar/reminder120 | 79ecc9c956b19e967779bba4e4e7d40bdb5f094e | a18e99ff2c51193dff436530190dd1d1e61666a3 | refs/heads/master | 2021-03-06T05:58:48.435269 | 2020-03-10T02:02:26 | 2020-03-10T02:02:26 | 246,184,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from backend.models.patient import Patient | [
"jmnel_mar@hotmail.com"
] | jmnel_mar@hotmail.com |
d53fba9d4a171874a43be778f4b75c108a7f4482 | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotationPopup.py | d3f43c1657a8c051103ca7d463852aef2104814e | [
"MIT"
] | permissive | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 305 | py |
from PyObjCTools.TestSupport import *
from Quartz.PDFKit import *
class TestPDFAnnotationPopup (TestCase):
def testMethods(self):
self.failUnlessResultIsBOOL(PDFAnnotationPopup.isOpen)
self.failUnlessArgIsBOOL(PDFAnnotationPopup.setIsOpen_, 0)
if __name__ == "__main__":
main()
| [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
12b143198ee564e1b2311b19892e0b052b92a34b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s129355694.py | 8a3a6c982603a763e0eda9f0b0cd3a4f65454318 | [] | 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 | 183 | py | import math
a, b, h, m = map(int , input().split())
theta = abs( (h/12) + (m/60) * (1/12) - m/60)*2*math.pi
print(math.sqrt(b**2 * math.sin(theta)**2 + (b*math.cos(theta) -a) **2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
63d117d1b2d5478d51e1f8fc837b4aeb7c54cc24 | cc619d6e81c39fe54d4875e3c6936e25bb8a7ebd | /demos/multiple_problems.py | 195c16a0fc049f57e60b621cecf8204fe7713ed0 | [] | no_license | joshua4289/python3-examples | cb01060f649c7dc97185566b00fa0d59a1ffdca3 | 70c1fd0b1e5bf25e82697257fb9f92cd06e922b7 | refs/heads/master | 2020-12-19T08:19:13.310071 | 2017-04-28T13:48:01 | 2017-04-28T13:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class UnrecoverableError(Exception): pass
class MyException(Exception): pass
def main():
try:
part1()
part2()
part3()
part4()
except UnrecoverableError as e:
print("UnrecoverableError")
except MyException as e:
print("that's all folks")
def part1():
... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
404ecb75c55291f907d7c3903ecc926fadd45862 | 343eb5d9ea4bfb29191c8f967585278dc2892b3f | /RedBimEngine/constants.py | c434f8a5f202af2622c1eb7bd0cd389c9bb85b18 | [] | no_license | NauGaika/PikBim | 11bd1929f7ca63d740692c9a7bcc31715f11b38b | 28f3ce2d8d27eb062ee5173fb4e21c262c30ba4b | refs/heads/master | 2020-07-28T20:43:11.928011 | 2019-09-19T11:10:37 | 2019-09-19T11:10:37 | 209,531,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | # -*- coding: utf-8 -*-
"""Хранятся константы.
USERNAME
HOME_DIR
DIR_SCRIPTS
STATIC_IMAGE
USER_SCRIPTS
LOGO
"""
import os
def get_username():
"""Получить текущее имя пользователя."""
uname = __revit__.Application.Username
uname = uname.split('@')[0]
uname = uname.replace('.', '')
return uname
d... | [
"skliarenkovm@pik.ru"
] | skliarenkovm@pik.ru |
6c47db3bb3320ccd1a523f04599fd9af3d2faa4d | b46dd521ffab869a32bf4580d2cbf35c94e550c6 | /domain/BallotDomain.py | 5aded2408c3e155ea708285a9fa57c2199518353 | [] | no_license | pawan-manishka/results-tabulation-tallysheets | b698b080c6393cf728ae3f79891e20dd2d309add | 7d2f065dfd03304e3aa8f079145bbc96d03c481c | refs/heads/master | 2020-06-14T19:02:21.523754 | 2019-07-03T08:34:05 | 2019-07-03T08:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from config import db
from models import BallotModel as Model
from domain import InvoiceItemDomain
def get_all():
result = Model.query.all()
return result
def create(body):
invoice_item = InvoiceItemDomain.create()
result = Model(
ballotId=body["ballotId"],
invoiceItemId=invoice_ite... | [
"l.dinukadesilva@gmail.com"
] | l.dinukadesilva@gmail.com |
d21d32ebb9613caff29cdf4a1c7c456ce7f5f81c | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1850396913/_imp.py | 0b80f25b1fa57f9f166bff38ae22e695685dc730 | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 5,612 | py | # encoding: utf-8
# module _imp
# from (built-in)
# by generator 1.147
""" (Extremely) low-level import machinery bits as used by importlib and imp. """
# no imports
# functions
def acquire_lock(*args, **kwargs): # real signature unknown
"""
Acquires the interpreter's import lock for the current thread.
... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
0b7f0957af77abd693ef66d5807db552ae045132 | 6571b77f6e6f37d6df91a9cf0c34297a2bee1eb9 | /site-packages/ansible/modules/extras/packaging/os/homebrew_cask.py | b480be90eb5fc36e8be1a87d11e8d55d9cabd523 | [
"Apache-2.0"
] | permissive | suntao789/Aclsm | ec02a04bb3ba14a1ea6a6c82a325da59d192d0f7 | 2202201c8279391386a4569e69f93d90eca5b96a | refs/heads/master | 2020-04-01T22:39:02.140836 | 2018-10-19T03:49:14 | 2018-10-19T03:49:14 | 153,719,890 | 0 | 0 | Apache-2.0 | 2018-10-19T03:11:46 | 2018-10-19T03:11:46 | null | UTF-8 | Python | false | false | 16,000 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Daniel Jaouen <dcj24@cornell.edu>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) a... | [
"suntao789@huawei.com"
] | suntao789@huawei.com |
c87a9b71d55168e5522480af101d1447f3f937bb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_146/ch39_2020_04_13_14_51_58_180379.py | 17ddbc5af6d01d87824c7162766fd8f3643c4f1e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | def collatz(numero):
print(numero)
if numero == 1:
return
if numero % 2 == 0:
collatz(numero / 2)
else:
collatz(3 * numero + 1)
collatz(50) | [
"you@example.com"
] | you@example.com |
0206e2fff226b78430fe479874f702f9fed0549a | 8b36013b62e5c39772c7d84444916fa0daec2783 | /flypy/typing.py | 953170734956b9e840e74adc4db3517a18ce9ea7 | [
"BSD-2-Clause"
] | permissive | filmackay/flypy | cc7cfad447905ecd2211ab462ccc9ca6e0b469a5 | 1fd06e2d4189d3355fa0e8c1a66657c5423591b4 | refs/heads/master | 2021-01-17T17:10:44.892002 | 2014-03-18T15:44:39 | 2014-03-18T15:44:39 | 17,741,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,025 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import re
import sys
from pykit.utils import hashable
import datashape as ds
from datashape import (TypeVar, TypeConstructor, dshape,
coercion_cost as coerce, unify as blaze_unify,
fr... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
3ac41dad4d1438d2d9107b3e37b52d502857cc07 | 116acf603f5db8d626247355bf786c339ba95ea9 | /sendmsg/aliyun/aliyunsdkcore/auth/rpc_signature_composer.py | d5491de52ef7e3c4dd6ffb21d77def0155c0c21c | [] | no_license | dahunuaa/ZhihuiSMB_python3 | 0857afeec2337b44571986a9c70c26e716142ccb | 8db2708efccd5eefa393738500e326bd7fb65c21 | refs/heads/master | 2021-01-25T14:32:32.201879 | 2018-03-11T05:59:10 | 2018-03-11T05:59:10 | 123,703,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"dahu yao"
] | dahu yao |
83fab9a5b14ab84b25fc69ef404b2b327393cf8e | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/wroscoe_donkey/donkey-master/scripts/upload.py | de1854714fd61e71babfcf07623b5a3b0f002c07 | [] | 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 | 221 | py | import donkey as dk
sess
dk.sessions.pickle_sessions(sessions_folder='/home/wroscoe/donkey_data/sessions/',
session_names=['f8'],
file_path='/home/wroscoe/f8.pkl') | [
"659338505@qq.com"
] | 659338505@qq.com |
f6dd5238086e238bdf7f038a4485afc984f0e1c1 | ee8fc61e653410c377dcc8e2e2652f82ab03fd0a | /scripts/mode_background.py | 2c05b7997c193b8b78548761a28f7fc111f3cbeb | [
"Apache-2.0"
] | permissive | alcinos/dps | f8b2360b55676db95aa6f717eca935a77e46eb3e | 5467db1216e9f9089376d2c71f524ced2382e4f6 | refs/heads/master | 2020-05-18T19:07:37.809901 | 2019-04-30T13:43:17 | 2019-04-30T13:43:17 | 184,602,771 | 0 | 0 | Apache-2.0 | 2019-05-02T15:09:36 | 2019-05-02T15:09:35 | null | UTF-8 | Python | false | false | 1,553 | py | import matplotlib.pyplot as plt
import numpy as np
import collections
from dps.utils import sha_cache, NumpySeed
from dps.datasets.atari import StaticAtariDataset
def compute_background(data, mode_threshold):
assert data.dtype == np.uint8
mask = np.zeros(data.shape[1:3])
background = np.zeros(data.shape[... | [
"eric.crawford@mail.mcgill.ca"
] | eric.crawford@mail.mcgill.ca |
fc8c5da0960349390d61a0cf7d7984c855348067 | 31148947a504352ea624d74cf6afa6bd0058bd5d | /lando/k8s/tests/test_cluster.py | f1b30bf70ecc21ea8017de91d4028d422f65c943 | [
"MIT"
] | permissive | Duke-GCB/lando | bcdeb20b7fcd694ae1f2baf016859baaa443abdb | 2ee80c4e9a2bfeac28d876eff92ba2c23960405a | refs/heads/master | 2021-06-20T06:25:12.064415 | 2019-08-27T14:53:53 | 2019-08-27T14:53:53 | 74,495,649 | 1 | 1 | MIT | 2021-03-25T21:27:55 | 2016-11-22T17:11:22 | Python | UTF-8 | Python | false | false | 19,270 | py | from unittest import TestCase
from unittest.mock import patch, Mock, call
from lando.k8s.cluster import ClusterApi, AccessModes, Container, SecretVolume, SecretEnvVar, EnvVarSource, \
FieldRefEnvVar, VolumeBase, SecretVolume, PersistentClaimVolume, ConfigMapVolume, BatchJobSpec, \
ItemNotFoundException
from kub... | [
"johnbradley2008@gmail.com"
] | johnbradley2008@gmail.com |
6cfac94954dfc1ed9b3f323587ba8366b3f4bc6c | 186158704058dcbeef84caf6d0fa220d127719dc | /bin/unzip-bpo.py | ff2a23ced8fa03791d5bbc10a1bf624b58af33ed | [] | no_license | davidmcclure/quotes | a18afc88315b3157ddb69f14ca0e8e69bdd6ff68 | 1460a732091afb5f39d484a4644e8c05dd1af201 | refs/heads/master | 2021-01-11T07:59:35.648905 | 2017-02-18T04:04:56 | 2017-02-18T04:04:56 | 72,132,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
from quotes.services import config
from quotes.jobs.unzip_bpo import UnzipBPO
if __name__ == '__main__':
job = UnzipBPO(corpus_dir=config['bpo_corpus_dir'])
job()
| [
"davidwilliammcclure@gmail.com"
] | davidwilliammcclure@gmail.com |
b8ae8d56a11e5258bfb2c93b76c59497a3c5e236 | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/p1_monitor/sensor.py | edc076382ec4043e5ea649afba8f4279c885c95d | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 10,435 | py | """Support for P1 Monitor sensors."""
from __future__ import annotations
from typing import Literal
from homeassistant.components.sensor import (
DOMAIN as SENSOR_DOMAIN,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
SensorStateClass,
)
from homeassistant.config_entries import ConfigEn... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
a0939899f8fceb40a4dd8a2deed214d8879e78cc | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/wasp1/AllAnswerSets/aggregates_count_propagation_3.test.py | 27e773802ad09d5c6d3abad9eda4941834b6af27 | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 183 | py | input = """
a(1) v a(2).
a(3) v a(4).
ok :- not #count{T: a(T)} > 2, #count{V : a(V)} > 1.
"""
output = """
{a(1), a(3), ok}
{a(1), a(4), ok}
{a(2), a(3), ok}
{a(2), a(4), ok}
"""
| [
"mario@alviano.net"
] | mario@alviano.net |
cc445242ba9b1c7f923e254cdb7bd7111f34354d | 5aec124d5c006fab649d562603e00cff5fc8eafb | /HCU-311-V1.0.1/sailing_robot_control/build/ball_detected/catkin_generated/pkg.develspace.context.pc.py | 64c847321c4ed3ddf0ed6b3f1d89f11041bd7378 | [] | no_license | supcon-nzic/HCU311_Sailing_Robot | d935e0e2383b0f17eeeec42a94adc027ba22a9f1 | e42d8c10455e6bf88c7a9e9a3be65b7afd12466e | refs/heads/master | 2021-05-21T08:36:59.693130 | 2020-05-27T02:29:56 | 2020-05-27T02:29:56 | 252,621,616 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/root/HCU-311/sailing_robot_control/devel/include".split(';') if "/root/HCU-311/sailing_robot_control/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WIT... | [
"qiuyunpeng@nz-ic.com"
] | qiuyunpeng@nz-ic.com |
8688ca373fba0c6353719eb5259f982eb9d99d70 | 00cd46c5722fbb4623d8cefc33bbce6e4c6bf970 | /BFS/120.Word Ladder/Solution_BFS.py | 5e0d498187e3ce628b96de5545b6fd6f4933da91 | [
"MIT"
] | permissive | jxhangithub/lintcode | 9126d0d951cdc69cd5f061799313f1a96ffe5ab8 | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | refs/heads/master | 2022-04-02T22:02:57.515169 | 2020-02-26T21:32:02 | 2020-02-26T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | from collections import deque
class Solution:
"""
@param: start: a string
@param: end: a string
@param: dict: a set of string
@return: An integer
"""
def ladderLength(self, start, end, dictionary):
# write your code here
if start == end:
return 1
diction... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
98e0cfbb25ce168aee899791913abb63cb37db2f | 94e9bdf9a79b63d29f6d4cd0d299feaaaf2f346f | /tp/gremlin.py | c62a5cb9bba5e6e63ebcb0f3eff7f4f2f1872638 | [
"Apache-2.0"
] | permissive | BITPlan/pyjanusgraph | 797fe7940672bef939b6119727811fd99b6271ca | b7166250a96c5d1cc919a821269ca6740e50c510 | refs/heads/master | 2022-04-14T19:34:26.342483 | 2020-04-13T09:41:47 | 2020-04-13T09:41:47 | 255,103,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,841 | py | '''
Created on 2020-03-30
@author: wf
'''
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
from gremlin_python.structure.graph import Graph
from shutil import copyfile
import os
import csv
class RemoteGremlin(object):
'''
helper for remote gremlin connections
:ivar se... | [
"wf@bitplan.com"
] | wf@bitplan.com |
b75a0c4586b96daeffc4f355e5573a95cc34c38e | 755384a965d9a8b781f1ad4f9f9656395ca9ac26 | /neurora/isc_cal.py | 4b3ea27865519084c9b74c94f0f3358ef6a92fe5 | [
"MIT"
] | permissive | guishuyunye-lyw/NeuroRA | 69134dd85d98328b250ef070f781ab8147763599 | 16bccb80d0b537c4a7c3574c296331a6a855feca | refs/heads/master | 2021-03-06T06:38:48.302269 | 2020-05-19T05:05:17 | 2020-05-19T05:05:17 | 246,186,748 | 3 | 0 | MIT | 2020-03-10T02:11:12 | 2020-03-10T02:11:11 | null | UTF-8 | Python | false | false | 8,480 | py | # -*- coding: utf-8 -*-
' a module for calculating the Inter Subject Correlation based on neural data '
__author__ = 'Zitong Lu'
import numpy as np
import math
from scipy.stats import pearsonr
np.seterr(divide='ignore', invalid='ignore')
' a function for calculating the inter subject correlation (ISC) '
def isc(... | [
"zitonglu1996@gmail.com"
] | zitonglu1996@gmail.com |
153d9680ab2bacbc55cde69f5591ff4263870773 | 8ac5fa643e54f6aac8af600eddbeb4c074095b2b | /tspdb/tests/testScriptMultiSynthControlSVD.py | ee629ebfbb382b0d0cbde15d0eeeb5174b607eb1 | [
"Apache-2.0"
] | permissive | AbdullahO/tspdb | 00acca3b29a054f02ac07a0243c04ba575af0a19 | 6ba75833a128d4036caad488d144fb6b0ba682e6 | refs/heads/master | 2023-05-25T09:44:19.856796 | 2023-05-18T17:25:48 | 2023-05-18T17:25:48 | 210,507,080 | 179 | 60 | Apache-2.0 | 2023-02-10T23:10:00 | 2019-09-24T03:51:25 | Jupyter Notebook | UTF-8 | Python | false | false | 12,144 | py | #############################################################
#
# Multi-Dimensional Robust Synthetic Control Tests
# (based on SVD)
#
# Generates two metrics and compared the RMSE for forecasts
# for each metric using RSC against mRSC.
#
# Test are based on random data so it is advised to run
# several times.... | [
"aalomar@mit.edu"
] | aalomar@mit.edu |
5fd64adbe388809df800e8d25b4768762ae01b4f | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC200~ABC299/ABC258/b.py | 9df401169330584353a01a0d5b334e77713e1f27 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | n = int(input())
a = []
for _ in range(n):
a.append(list(input()))
ans = 0
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
for i in range(n):
for j in range(n):
for k in range(8):
tmp = ''
nx = dx[k]
ny = dy[k]
for m in range(n):
... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
599690c2819ae71b7e0abf4ea5cc3e5adad51af0 | c9c2643d5a548174c5a943765b1400b09e6850c6 | /dandi/tests/test_move.py | 70ead9312b61e6849c4439f10ad84d7a113a1561 | [
"Apache-2.0"
] | permissive | dandi/dandi-cli | c376b5b111fdeddbd0121c946babd6b18fed8550 | 1380865c8ef72b9f4fbc4b9b337267362bb1dbde | refs/heads/master | 2023-08-28T19:35:49.179955 | 2023-08-11T18:05:23 | 2023-08-11T18:05:23 | 202,796,357 | 16 | 17 | Apache-2.0 | 2023-09-12T00:00:47 | 2019-08-16T20:38:46 | Python | UTF-8 | Python | false | false | 32,817 | py | import logging
from pathlib import Path
from typing import Dict, List, Optional, cast
import pytest
from .fixtures import SampleDandiset
from ..dandiapi import RemoteAsset
from ..exceptions import NotFoundError
from ..move import AssetMismatchError, move
@pytest.fixture()
def moving_dandiset(new_dandiset: SampleDan... | [
"git@varonathe.org"
] | git@varonathe.org |
5d0e57eddce91b4d61e123d45d851339227494c9 | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/arc095/d.py | c2157f467e42ce2ef4a64ede2861cce4c65cbefc | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 291 | py | #!/usr/bin/env python3
# https://arc095.contest.atcoder.jp/tasks/arc095_b
n = int(input())
a = [int(x) for x in input().split()]
a.sort()
y = a[-1]
m = None
x = None
for i in range(n - 1):
k = a[i]
l = max(k, y - k)
if m is None or m > l:
m = l
x = k
print(y, x)
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
10f9b023d025a4040f73e9e8d651b69aa9b0dd26 | f5c9e20987413a46c7f2e856404813d27cde26e7 | /mysite/pages/views.py | 69e176db25833b22ebab966802d685dbeca9178a | [] | no_license | PriyankaBuchkul/practice | dc1573209edf7cc5d8abecfce485d15de7f029fd | 16d864b1a6082814978f68ee0daf8fa404a89f2a | refs/heads/master | 2020-03-13T05:17:41.406838 | 2018-04-25T09:55:11 | 2018-04-25T09:55:11 | 130,980,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Posts
# Create your views here.
def index(request):
#return HttpResponse('Hello From Post')
posts=Posts.objects.all()[:10]
contexts = {
'title':'latest Posts',
'posts':posts
}
return render(request,'pag... | [
"priyankabuchkul@gmail.com"
] | priyankabuchkul@gmail.com |
eebe441b71964e68194495cd7d2c119654278901 | 5955ea34fd72c719f3cb78fbb3c7e802a2d9109a | /_STRUCTURES/LIST/Create/create_list_1.py | 8d96f1119bfb4c6ad8eb7b8b7f41d1c5a7fc986f | [] | no_license | AndreySperansky/TUITION | 3c90ac45f11c70dce04008adc1e9f9faad840b90 | 583d3a760d1f622689f6f4f482c905b065d6c732 | refs/heads/master | 2022-12-21T21:48:21.936988 | 2020-09-28T23:18:40 | 2020-09-28T23:18:40 | 299,452,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | A = ['red', 'green', 'blue']
print(' '.join(A))
# red green blue
c = ['alfa', 'betta', 'gamma']
print(' '.join(map(str, c)))
# alfa betta gamma
d = [1, 2, 3]
print(' '.join(map(str, d)))
# 1 2 3 | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
afde19ef47f9828ec2b07a66971ff95d77feb5d4 | 9e45801526b372ea364e1aaf8df4f8ce6be4d754 | /tnd_server/handlers/group.py | f4cf698a3a46187b8153799f34b7ccab92169693 | [] | no_license | niyoufa/ods | c09c5bd4e429cd6d4043d76ce1d89f413946a9d1 | 468ffe3fa34e17fecd0c872bdbaa9701b81b50d5 | refs/heads/master | 2021-01-19T21:23:43.812758 | 2016-07-08T09:49:04 | 2016-07-08T09:49:04 | 59,827,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | #coding=utf-8
"""
author : niyoufa
date : 2016-06-30
"""
import sys, pdb, json, datetime, pymongo, urllib
import tornado.web
import ods.tnd_server.status as status
import ods.utils as utils
import ods.tnd_server.settings as settings
import ods.tnd_server.handler as handler
import ods.clients.curl as curl
... | [
"niyoufa@tmlsystem.com"
] | niyoufa@tmlsystem.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.