blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d201164d5d96ab0e272ba9cbbde60a03f5615a6 | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /orttraining/orttraining/python/training/ortmodule/experimental/json_config/__init__.py | d4399b1ee9c09763510caa7de207a45a11dc26ff | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | Python | false | false | 272 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# __init__.py
# JSON global constants goes here
JSON_PATH_ENVIRONMENT_KEY = "ORTMODULE_JSON_CONFIG_PATH"
from ._load_config_from_json import load_from_json # noqa: E402, F401
| [
"noreply@github.com"
] | microsoft.noreply@github.com |
5b3aa86b8d0fc8ff213bedf0c58f4d1b47b2f43f | cdd1901812799e5542ac6c2ecd5af06eb30aeacd | /Datasets/voc/find_cls_in_voc.py | 1183ca0e033352f784398f162221a1315bbea092 | [] | no_license | thinkinchaos/Tools | ff0030494996493aa75b355880961a5d6b511ba6 | f0571d101c7003ded516b036ce2d6552d38b443f | refs/heads/master | 2023-06-10T01:30:29.285972 | 2021-07-01T02:09:51 | 2021-07-01T02:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import glob
import xml.etree.ElementTree as ET
import numpy as np
ANNOTATIONS_PATH = 'E:/datasets/nuclear_obj_cold/Annotations'
# names=set()
from pathlib import Path
all=[]
train=[]
val=[]
for xml_file in Path(ANNOTATIONS_PATH).glob('*.xml'):
tree = ET.parse(str(xml_file))
xml_root = tree.getroot()
names_... | [
"1044068981@qq.com"
] | 1044068981@qq.com |
8871cdcc6760cba68626ebe15775032f93f8426c | fa6f91b50125150c8d77937e002b53788dbcb19d | /bin/pushmp | 013788499bc1a9c20a3a68eac484738d4faa3132 | [] | no_license | howiemac/mp | b5402be12cfe3b3a4be77adb673dc20371c3cf4b | 694568f45020f7fe2ed2b8914ddc875aada852d1 | refs/heads/master | 2020-05-22T09:33:53.160473 | 2018-04-07T22:09:14 | 2018-04-07T22:09:14 | 34,397,381 | 0 | 1 | null | 2017-08-17T13:04:31 | 2015-04-22T15:05:42 | Python | UTF-8 | Python | false | false | 4,840 | #! /usr/bin/python
#
# script to archive the master music system - REQUIRES mp to be running at the start
## - pulls from the archive, the slave log since the last update # CURRENTLY DISABLED
## - updates master system with the previous slave log # CURRENTLY DISABLED
# (note: up to here could alternatively be done i... | [
"howiemac@gmail.com"
] | howiemac@gmail.com | |
0dfea63cd551aaa3e88d3dd5f3e72bf1481714c3 | ca4da546f815ef7e14fd79dfbc5a0c3f9f8c72c9 | /test/test_ICUNormalizer2Filter.py | 096bc618004010da29ad3ea48348ffd0537e8eda | [
"Apache-2.0"
] | permissive | qiugen/pylucene-trunk | be955aedca2d37411f0683e244c30b102d4839b4 | 990079ff0c76b972ce5ef2bac9b85334a0a1f27a | refs/heads/master | 2021-01-18T08:46:38.817236 | 2012-07-18T16:18:45 | 2012-07-18T16:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | # -*- coding: utf-8 -*-
# ====================================================================
# 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/LIC... | [
"roman.chyla@gmail.com"
] | roman.chyla@gmail.com |
ee15b4c52486572ddb7c2958f1a220ec2a1e3528 | a19cd9aebb697fc1dd384e9ce8596d6cc728e6f2 | /fabfile.py | 88dfdbee00ddc4cb3a8ed9ede23f657a74cb2a73 | [] | no_license | aclark4life/Debian-Deploy-Plone | 315c52e5dfcf278f7e5b2f2dfc5f1045d0518d99 | 2a779c30f1f4b83f4f715ea5f5ae2a93f23afdda | refs/heads/master | 2021-06-04T03:57:38.743523 | 2016-07-27T09:44:30 | 2016-07-27T09:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 2,580 | py | # A work in progress
from fabric.api import env, local, put, run
env.user = 'root'
env.warn_only = True
FORM_VARS = ('form.submitted:boolean=True',
'extension_ids:list=plonetheme.sunburst:default',
'setup_content:boolean=true')
MODULE_CONFS = ('filter.load', 'proxy.conf', 'proxy.load',
'proxy_http.load', ... | [
"aclark@aclark.net"
] | aclark@aclark.net |
390bd290bfcf3c4bcda4e837f0b09c4b9049499e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventgrid/azure-mgmt-eventgrid/generated_samples/system_topics_get.py | 3c841e84e51e5d149b8c34c211d2202bcf26188d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,580 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ac86e7fd216d0562913ad2a8cb7dfa6b323d20d3 | 24595e74a83dcd263e92c121210c710c4438d979 | /lib/hammerlib.py | d5004d47f7133e87ce58e9a4ad8c21608fc953f8 | [] | no_license | amyth/hammer | 94dde5e6182da8368ed9859b4213226ac4543225 | 54e4fb07ee81055db47ccfd77ee6fc55bdb8fbe8 | refs/heads/master | 2021-01-17T15:30:30.717196 | 2016-05-20T07:00:43 | 2016-05-20T07:00:43 | 55,591,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | from __future__ import division
def levenshtein_distance(x1, x2):
"""
Finds a match between mis-spelt string based on the lavenhtein
distance formula
"""
if len(x1) > len(x2):
x1, x2 = x2, x1
distances = range(len(x1) + 1)
for i2, c2 in enumerate(x2):
distances_ = [i2+1]
... | [
"aroras.official@gmail.com"
] | aroras.official@gmail.com |
bc0e8083bcf514fd9f3302b7fbdfdf561af9d5ae | 30a1a391444181473b1af54c994bb81781fe830d | /Recusrion-and-Dynamic-Programming/triple-step.py | 1f3a69e6be39a7e21e42a65c37f49bc49c7ad24e | [] | no_license | sharmayuvraj/cracking-the-coding-interview | 8b2a4760041fec98252f32c030a267c9951f0a18 | b8e63d4190e82cc6d4677ba3dbe27f991c34da8a | refs/heads/master | 2023-04-16T15:27:27.072935 | 2021-04-26T12:18:08 | 2021-04-26T12:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """
A child is running up a staircase with n steps and can hop either 1 step, 2 steps or 3 steps at a time.
Implement a method to count how many possible ways the child can run up the satirs.
"""
# Recursive Method
def countWays(n):
memo = [-1]*(n+1)
return countWaysRecursive(n,memo)
def countWaysRecursiv... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
4801e1eaf02b1557859585316af8ce5e240b6fa3 | 281a10505f8044dbed73f11ed731bd0fbe23e0b5 | /expenseApp/migrations/0012_auto_20181023_1608.py | 18e381b3c7040d31723ae82e68cb0a57a0d68e76 | [
"Apache-2.0"
] | permissive | cs-fullstack-fall-2018/project3-django-jpark1914 | 7c6f57ab5f8055c11ac5b9d3c8bf0aa5057008d7 | 53bca13243d7e50263ec25b2fb8a299a8bbada1c | refs/heads/master | 2020-04-02T00:59:33.254360 | 2018-10-29T04:58:42 | 2018-10-29T04:58:42 | 153,831,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # Generated by Django 2.0.6 on 2018-10-23 16:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('expenseApp', '0011_auto_... | [
"parkerj4321@gmail.com"
] | parkerj4321@gmail.com |
942b224bad7b2c2a6138e375dec16529a6d08fac | c91e32b5e7a28fd31698764086b88203fd3c8029 | /root_numpy/info.py | c669cbd8832aebac1169448f7ae98cad8eeb4a39 | [
"MIT"
] | permissive | balarsen/root_numpy | 5b409a1d90d499f2677990a95246e19d9f596144 | 6229f4eb7ab7884b1950210c92275299d631b9da | refs/heads/master | 2021-01-15T07:54:23.935985 | 2014-02-10T23:10:35 | 2014-02-10T23:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
_
_ __ ___ ___ | |_ _ __ _ _ _ __ ___ _ __ _ _
| '__/ _ \ / _ \| __| | '_ \| | | | '_ ` _ \| '_ \| | | |
| | | (_) | (_) | |_ | | | | |_| | | | | | | |_) | |_| |
|_| \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, | {0}
|_____| |_| ... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
48b0f55c8b8802c52876e069c124eb8a0fadbd56 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_move_mm_charge2.py | 9b960a7447c8177d8674a046b34f493d633239db | [] | 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 | 985 | py | from xcp2k.inputsection import InputSection
class _move_mm_charge2(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Atom_index_1 = None
self.Atom_index_2 = None
self.Alpha = None
self.Radius = None
self.Corr_radius = None
self._name = "MOV... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fc61d8ff3efe35ece110d4fef6228e3793921dc0 | f74dd098c3e665d8f605af5ebe7e2874ac31dd2f | /aiogithubapi/models/base.py | 086dcb1b6e17eb22f4c9629e7ea27c46c0145156 | [
"MIT"
] | permissive | ludeeus/aiogithubapi | ce87382698827939aaa127b378b9a11998f13c06 | 90f3fc98e5096300269763c9a5857481b2dec4d2 | refs/heads/main | 2023-08-20T19:30:05.309844 | 2023-08-14T20:24:21 | 2023-08-14T20:24:21 | 198,505,021 | 21 | 20 | MIT | 2023-09-11T06:12:10 | 2019-07-23T20:39:53 | Python | UTF-8 | Python | false | false | 2,080 | py | """Base class for all GitHub objects."""
from __future__ import annotations
from logging import Logger
from typing import Any, Dict
from ..const import LOGGER
IGNORE_KEYS = ("node_id", "performed_via_github_app", "_links")
class GitHubBase:
"""Base class for all GitHub objects."""
logger: Logger = LOGGER
... | [
"noreply@github.com"
] | ludeeus.noreply@github.com |
9e86d85037eff55e36fd681cacb39e4363bb8e6d | 007c1bb62ee70fb387b24bac9387da90745a85db | /development/inelastic/vesuvio_calibration/VesuvioGeometryEnergyResolutionTest.py | a7ab85cc8ecbd72bb9eb655183d1bb744c990097 | [] | no_license | mantidproject/scripts | fc14040f0674fda31b28bbc668a923fecc00fe99 | f5a7b79825c7bdd8977e1409967bce979e4ca690 | refs/heads/master | 2021-01-17T11:36:00.426451 | 2017-08-25T13:01:26 | 2017-08-25T13:01:26 | 3,379,430 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | #pylint: disable=too-many-public-methods
import unittest
from mantid.api import (ITableWorkspace, WorkspaceGroup)
from mantid.simpleapi import *
class VesuvioGeometryEnergyResolutionTest(unittest.TestCase):
def tearDown(self):
mtd.clear()
def _execute_resolution_algorithm(self, **argv):
d... | [
"dan@dan-nixon.com"
] | dan@dan-nixon.com |
a237c65c46210c1e9d9669557d5d36a9d956ca26 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/dynatrace/azure-mgmt-dynatrace/generated_samples/monitors_get_sso_details_minimum_set_gen.py | 660bfb94f9b61744d91446c0a3f37affbc7c7cf0 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,631 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
5c51d540225abc65aba220b7b3bf103579c1f61a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02913/s835324386.py | 047781bcb31ffe52b746c9b0454b01728cb1b3cc | [] | 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 | 655 | py | def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b8bf3ead37ab6905d1d3250e0dcc5ad2e961386e | 48a89c1ceb3a761f796ed054c59a44106adefba5 | /src/moveit_pose.py | baf76cbf90210ec3cb175469d503eb360f02bae6 | [] | no_license | ayushgargdroid/hsr_custom_launch | ec404519cc9e8096c078468f5336fc6852204fda | f84d4e3e6dc3fcbcb00e65b05d69c9a33e43b94f | refs/heads/master | 2020-09-20T14:26:41.354211 | 2019-12-05T21:36:16 | 2019-12-05T21:36:16 | 224,510,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | #!/usr/bin/env python
import sys
import copy
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import tf
import numpy as np
from math import pi
from std_msgs.msg import String
from moveit_commander.conversions import pose_to_list
if __name__ == '__main__':
moveit_commander.roscpp... | [
"ayushgargdroid@gmail.com"
] | ayushgargdroid@gmail.com |
b8bcb78bbf8726eb8cc4098a99018c8f38990b6c | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/apndg.py | 9bbc9206e5d94cae540d5d9b7a425e781af43b51 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
602852152151ceb503e5cf7d75816f4089723ef5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ZaEFRDBZ7ZMTiSEce_17.py | b22158d637597759d56d9b831520a39cf3c26141 | [] | 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 | 908 | py | """
You're given a string of words. You need to find the word "Nemo", and return a
string like this: `"I found Nemo at [the order of the word you find nemo]!"`.
If you can't find Nemo, return `"I can't find Nemo :("`.
### Examples
find_nemo("I am finding Nemo !") ➞ "I found Nemo at 4!"
find_nemo("Nem... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7a4c1f18a33fabea011455db37153243c394e77c | 5c5b75f09be052e3b2e8f40802100bb381cc041b | /src/kbqa/scripts/simpq_candgen.py | 60c870c2e9df647020ce6db7ef6649f47d219903 | [
"MIT"
] | permissive | xuehuiping/TransDG | a6f408a03adadf7cedb40039094628213c63b4a1 | ca55744594c5c8d6fe045bed499df72110880366 | refs/heads/master | 2022-04-22T10:49:53.245542 | 2020-04-24T02:05:38 | 2020-04-24T02:05:38 | 258,379,892 | 0 | 0 | MIT | 2020-04-24T02:04:40 | 2020-04-24T02:04:39 | null | UTF-8 | Python | false | false | 7,755 | py | """
Generate candidate query graph for SimpQ
"""
import os
import json
import codecs
import shutil
import pickle
import argparse
from src.kbqa.utils.link_data import LinkData
from src.kbqa.utils.log_util import LogInfo
from src.kbqa.dataset.schema import Schema
class SimpleQCandidateGenerator:
def __init__(self,... | [
"1049136551@qq.com"
] | 1049136551@qq.com |
e84fa4cea01f255f22566d3aa239eceff4c8ea21 | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/math/perturb.py | 9dc7c4abb0a9e47c4955e89d1793b41b1c231f16 | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import torch
def perturb(tensor):
"""
Perturbs the input tensor with random noise
Parameters
----------
tensor : Tensor
the input tensor
Returns
-------
Tensor
the perturbed tensor
"""
return torch.randn_like(tensor) * tensor + torch.randn_like(tensor)
| [
"maurizio.kovacic@gmail.com"
] | maurizio.kovacic@gmail.com |
148cdb131a56fd63ff2ef0abeb3b986b26f89eea | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/docs_quickstart_20210213142716.py | 483f1642a07b3d11faa3808ec62f56fa18f7a9dd | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | from __future__ import print_function
import pickle
import os.path
import io
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaIoBaseDownload
from oauth2client.service_account import... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
4c6abdca47eed860cbbbd80db8e8195616fdc873 | 7c3a066c2f4e3be8b3f8a418f0152f9d3de69599 | /google_kickstart/15683.py | 75639c55a00f4cf507ab52e131684ae11a8d1dab | [] | no_license | wkdtjsgur100/algorithm-python | 5c0fa5ac5f5c2b8618e53ab0f1f599427345734d | 134809388baac48195630e1398b8c2af7526966c | refs/heads/master | 2020-04-02T19:58:20.480391 | 2018-12-31T08:33:44 | 2018-12-31T08:33:44 | 154,753,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | import copy, sys
cctv=[
[[0], [1], [2], [3]],
[[0, 1], [2, 3]],
[[0, 3], [0, 2], [2, 1], [1, 3]],
[[1, 2, 3], [0, 1, 2], [0, 2, 3], [0, 1, 3]],
[[0, 1, 2, 3]]
]
d = [[0, 1], [0, -1], [1, 0], [-1, 0]]
N, M = map(int, input().split())
m = [list(map(int, input().split())) for _ in range(N)]
cctv_pos... | [
"wkdtjsgur100@naver.com"
] | wkdtjsgur100@naver.com |
131d239b5a8e340e9dbe95bf2ef6172b9a91bb12 | 97ee5c0f2320aab2ca1b6ad0f18a4020dbd83d1c | /venv/Lib/site-packages/ibm_watson_machine_learning/libs/repo/swagger_client/models/error_schema_repository.py | ff5393cbefcc0d009faa312008628d9bfc6d0141 | [] | no_license | yusufcet/healty-hearts | 4d80471e82a98ea1902b00c8998faed43f99616c | a4cd429484e857b849df08d93688d35e632b3e29 | refs/heads/main | 2023-05-28T13:57:09.323953 | 2021-05-06T04:15:27 | 2021-05-06T04:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"yusufcetin9999@gmail.com"
] | yusufcetin9999@gmail.com |
1eaf0839de9bc5dadf576355771ad319fe60ef55 | 2f330fc050de11676ab46b963b7878882e9b6614 | /test/test_conversations_api.py | 57e18e0156fc8c9ab6b181d2209168880857eefa | [
"Apache-2.0"
] | permissive | zerodayz/memsource-cli-client | 609f48c18a2b6daaa639d4cb8a61da43763b5143 | c2574f1467539a49e6637c874e88d75c7ef789b3 | refs/heads/master | 2020-08-01T12:43:06.497982 | 2019-09-30T11:14:13 | 2019-09-30T11:14:13 | 210,999,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,966 | py | # coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... | [
"cerninr@gmail.com"
] | cerninr@gmail.com |
6d72846e5637395a9e8186735df19ecf8593262c | 6d24a0820a2e1227e8caff083a8fef4f6f207c6f | /django_test8remotedb/django_test8remotedb/wsgi.py | e1c3c34a28f8e9da506e1712d7ee44b07b95f92e | [] | no_license | pyh3887/Django | 45d4b3be955634edba924cc18bbc8d3454c7355b | a44e1067494391ff4a7473aeaeb63bbeba43b3d8 | refs/heads/master | 2022-11-08T08:36:04.750050 | 2020-06-28T14:00:53 | 2020-06-28T14:00:53 | 275,596,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for django_test8remotedb 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"pyh3887@naver.com"
] | pyh3887@naver.com |
c22e5285f55b9a024db9c6a181f7be86ac4aa38d | d0fcc2198f1caf5633c4fc0d004ba68714396f1b | /bc4py/__init__.py | e4f948768169653f959d63eacfa2036467347985 | [
"MIT"
] | permissive | webclinic017/bc4py | 4bfce04b666c2aaadda4b7ecc2a8270839231850 | 620b7d855ec957b3e2b4021cf8069d9dd128587a | refs/heads/master | 2022-12-09T22:23:49.842255 | 2019-06-21T14:24:17 | 2019-06-21T14:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | __version__ = '0.0.27-alpha'
__chain_version__ = 0
__block_version__ = 1
__message__ = 'This is alpha version - use at your own risk, do not use for merchant applications'
__logo__ = r"""
_____ _____ _ _
| __ \ / ____| | | | |
| |__) | _ | | ... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
4d7c7bef47a7b0a60f1eb495d804d2eb2c8ade27 | 93022749a35320a0c5d6dad4db476b1e1795e318 | /issm/bamgmesh.py | a74e7b1994e1ba700f8cf936b7d747286f4f44d7 | [
"BSD-3-Clause"
] | permissive | pf4d/issm_python | 78cd88e9ef525bc74e040c1484aaf02e46c97a5b | 6bf36016cb0c55aee9bf3f7cf59694cc5ce77091 | refs/heads/master | 2022-01-17T16:20:20.257966 | 2019-07-10T17:46:31 | 2019-07-10T17:46:31 | 105,887,661 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import numpy as np
class bamgmesh(object):
"""
BAMGMESH class definition
Usage:
bamgmesh(varargin)
"""
def __init__(self,*args): # {{{
self.Vertices=np.empty((0,3))
self.Edges=np.empty((0,3))
self.Triangles=np.empty((0,0))
self.IssmEdges=np.empty((0,0))
self.IssmSegments=np.empty((0,0))
... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
2aeb9fcb51b0105557890554d8ed3a4f83d5f27c | d489eb7998aa09e17ce8d8aef085a65f799e6a02 | /lib/modules/powershell/management/get_domain_sid.py | 61786bf029320aa283e34ee9af48782232a1b12b | [
"MIT"
] | permissive | fengjixuchui/invader | d36078bbef3d740f95930d9896b2d7dd7227474c | 68153dafbe25e7bb821c8545952d0cc15ae35a3e | refs/heads/master | 2020-07-21T19:45:10.479388 | 2019-09-26T11:32:38 | 2019-09-26T11:32:38 | 206,958,809 | 2 | 1 | MIT | 2019-09-26T11:32:39 | 2019-09-07T11:32:17 | PowerShell | UTF-8 | Python | false | false | 2,979 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Get-DomainSID',
'Author': ['@harmj0y'],
'Description': ('Returns the SID for the current of specified domain.'),
'Background' : True,
... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
d6cd273dd70bb1adf7a00656ce07e3a7d18afb1e | ebae416013607b045b505dbb0b5598c9e732dcf4 | /2b Rozmienianie monet.py | fc4f0377b9bf95a51b48d6343a5b1bcf82548afb | [] | no_license | Ernest93/Ernest93 | 08bbadc067e9ef277bad5f0922ca89a8ae298fb8 | 7570ccf18631c5e88bd38c0498d7c9348e81dd7b | refs/heads/master | 2020-04-06T15:24:56.128434 | 2018-12-10T16:21:06 | 2018-12-10T16:21:06 | 157,577,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | """
2) Program przyjmuje kwotę w parametrze i wylicza jak rozmienić to na monety: 5, 2, 1, 0.5, 0.2, 0.1 wydając ich jak najmniej.
"""
moneta5 = 5
moneta2 = 2
moneta1 = 1
moneta50 = 0.50
moneta20 = 0.20
moneta10 = 0.10
kwota = input("Podaj kwotę do wymiany na drobne: ")
if kwota | [
"you@example.com"
] | you@example.com |
3bd394ba3bd4bde21e3af8745d23d7012a1674fa | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/88/usersdata/216/59764/submittedfiles/listas.py | 59dcb46254afeaa8ea7c2cfa8c36ed1c7c2a8dfa | [] | 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 | 646 | py | # -*- coding: utf-8 -*-
def degrau(a):
for i in range(0,len(a)-1,1):
menos=0
l=[]
if a[i]<0:
a[i]=a[i]*(-1)
menos=menos+(a[i]-a[i+1])
l.append(menos)
if a[i]>=0:
menos=menos+(a[i]-a[i+1])
l.append(menos)
return(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0ea486071cf97380f79f7282e57c31033c2db52a | e573161a9d4fc74ef4debdd9cfd8956bdd1d0416 | /src/products/migrations/0001_initial.py | c5e75cc6b8ce4aa5d27f37b4086623b92994f43b | [] | no_license | tanjibpa/rx-verify | a11c471afc628524bf95103711102258e6e04c19 | 3947fd2f9a640b422014d1857b9377e42d8961a5 | refs/heads/main | 2023-02-23T08:16:43.910998 | 2021-01-23T07:07:43 | 2021-01-23T07:07:43 | 331,103,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | # Generated by Django 3.1.5 on 2021-01-21 05:22
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"ikram.tanjib@gmail.com"
] | ikram.tanjib@gmail.com |
9e1a9f7e8ff63503ca25b48244d1b4f4cc6212e7 | cc9a0d5608b2209b02591ceace0a7416823a9de5 | /hyk/users/urls.py | 752239befcc25821e106299311f9a488a257c93b | [
"MIT"
] | permissive | morwen1/hack_your_body | 240838e75dd4447c944d47d37635d2064d4210fd | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | refs/heads/master | 2020-11-24T01:55:46.323849 | 2019-12-15T18:15:51 | 2019-12-15T18:15:51 | 226,505,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #django
from django.urls import path , include
#rest_framework
from rest_framework.routers import SimpleRouter
#views
from hyk.users.views import UserViewset ,ProfileViewset
router = SimpleRouter()
router.register(r'' , UserViewset , basename='users_urls')
router.register(r'profile', ProfileViewset , basename='profile... | [
"morwen901@gmail.com"
] | morwen901@gmail.com |
25a5631cbd7c7365beaf481e7e89807d81afbfe9 | ca4fff998b3a345595adfc8a33fb273f2ac10a58 | /tensorflow/python/keras/layers/preprocessing/text_vectorization_distribution_test.py | ebf68e3bce2897f82a7bef4c73b6900c69018e69 | [
"Apache-2.0"
] | permissive | yair-ehrenwald/tensorflow | d485cef7847ab027639550fe2b19fd7521ea640e | eaceb03d7f5ec31c0d27c464f17ae003027980ca | refs/heads/master | 2023-05-04T19:43:16.142132 | 2021-03-21T06:10:13 | 2021-03-21T06:16:59 | 287,766,702 | 2 | 0 | Apache-2.0 | 2020-08-15T14:51:47 | 2020-08-15T14:51:46 | null | UTF-8 | Python | false | false | 3,914 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
895e18e52390f46b88c59c8e8bb946d861c58834 | 6237a1d1aa61be65f1a71bb645ec6d8689f24715 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/jedi/api/helpers.py | 77fc7827a66f2f8eac56ccec40c4e65833df446f | [] | no_license | Tkizzy/PythonistaAppTemplate | cf8485dc8e9e45c65af624916d71b38e2e11ce56 | f196581cfee4a1c10168892a20ddcf16270c91b0 | refs/heads/master | 2021-01-16T00:17:04.628848 | 2016-03-13T08:15:35 | 2016-03-13T08:15:35 | 52,062,119 | 1 | 0 | null | 2016-02-19T04:48:36 | 2016-02-19T04:48:35 | null | UTF-8 | Python | false | false | 2,568 | py |
"""
Helpers for the API
"""
import re
from jedi.parser import tree as pt
from jedi.evaluate import imports
def completion_parts(path_until_cursor):
"""
Returns the parts for the completion
:return: tuple - (path, dot, like)
"""
match = re.match(r'^(.*?)(\.|)(\w?[\w\d]*)$', path_until_cursor, fla... | [
"olezorn@gmx.net"
] | olezorn@gmx.net |
6176ca8999bab8c589d13d80a4c7c5c7ac8ff137 | a543a24f1b5aebf500c2200cd1d139435948500d | /satory074/_abc004/c.py | 9227c0ec27dc1aa64b43222d4668fa5c0f98ccc1 | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | n = int(input())
ordlist = ['123456']
for i in range(29):
l = list(ordlist[-1])
l[i%5], l[i%5+1] = l[i%5+1], l[i%5]
ordlist.append(''.join(l))
print(ordlist[n%30])
| [
"satory074@gmail.com"
] | satory074@gmail.com |
3af98569cf8e2029999739ed562ac539f5bce4fb | e1b94d6fc781af26c08d7d108d9f9a463b154cac | /test20.py | a544b507f3842c31604ac995a8c10d3f87e05daf | [] | no_license | 404akhan/math6450 | b27d6928bbbddd9903122099b66e8adf49b7525b | 818baf5ad9c47e7237b3d21f4a698f684649b9f4 | refs/heads/master | 2021-01-20T07:42:58.415286 | 2017-05-02T13:02:44 | 2017-05-02T13:02:44 | 90,034,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | import numpy as np
import pandas as pd
import random
import statsmodels.api as sm
from sklearn.feature_selection import RFE
from sklearn.svm import SVC
import sys
from pylab import pcolor, show, colorbar, xticks, yticks
df = pd.read_csv("./speed_code.csv", encoding="ISO-8859-1")
input_vars = np.array(['attr', 'sinc', ... | [
"404akhan@gmail.com"
] | 404akhan@gmail.com |
a6b1f0bbee7fe4666bf8d05fb29773efb460b249 | 47a08ca494ee35cf553d223ff7fd69fdf92c1aa5 | /sourcebook_app/migrations/0006_auto_20180509_1922.py | f298c34ae95a14332538631cab4e9c4526eb1522 | [] | no_license | apjanco/90s-sourcebook | 010541d2718613a08008285d00ec59d96f742bb0 | 183fb012f87285d641678fe5c9c8da8ab6998084 | refs/heads/master | 2021-07-17T01:36:40.098417 | 2019-02-09T02:15:17 | 2019-02-09T02:15:17 | 132,296,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Generated by Django 2.0.5 on 2018-05-09 19:22
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sourcebook_app', '0005_auto_20180509_1917'),
]
operations = [
migrations.CreateModel(
name='category',
... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
e2eff4ea305101f35ffcf05f15cc188ccb32ced6 | d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b | /application/dataentry/migrations/0207_auto_20211119_1807.py | a61f3dfa9a81a9f94de6886491918e4ab7c650cc | [] | no_license | Tiny-Hands/tinyhands | 337d5845ab99861ae189de2b97b8b36203c33eef | 77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584 | refs/heads/develop | 2023-09-06T04:23:06.330489 | 2023-08-31T11:31:17 | 2023-08-31T11:31:17 | 24,202,150 | 7 | 3 | null | 2023-08-31T11:31:18 | 2014-09-18T19:35:02 | PLpgSQL | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-11-19 18:07
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dataentry', '0206_personmatch_match_results'),
]
operations = [
migrations.RunSQL(... | [
"scrishel@sbcglobal.net"
] | scrishel@sbcglobal.net |
3109b75d342ecc7144506e06f756165024efbfde | 751cf52d62dba7d88387fc5734d6ee3954054fc2 | /opencv/commercial/Instructions/Examples/Backprojection/backProjection.py | 6700e987ebba4ac4cd7f725e033de35ffb5792a4 | [
"MIT"
] | permissive | nooralight/lab-computer-vision | 70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27 | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | refs/heads/master | 2023-03-17T12:45:22.700237 | 2017-07-11T22:17:09 | 2017-07-11T22:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | import numpy as np
import cv2
xi, yi, xf, yf = 0, 0, 0, 0
selecting = False
newHist = False
begin = False
def regionSelect( event, x, y, flags, param ):
global xi, yi, xf, yf, selecting, newHist, begin
if event == cv2.EVENT_LBUTTONDOWN:
selecting = True
xi, yi = x, y
elif event == cv2.EVENT... | [
"danbudanov@gmail.com"
] | danbudanov@gmail.com |
11c815726dd58daf7008db0bd038e4928eabfdf4 | 4323ef02073a8e3c9e6aceba738aef5fc72c3aa6 | /PythonExercicio/ex101.py | baf7c053bab3f6e080ca4354ddfda5d608c417b9 | [
"MIT"
] | permissive | fotavio16/PycharmProjects | e1e57816b5a0dbda7d7921ac024a71c712adac78 | f5be49db941de69159ec543e8a6dde61f9f94d86 | refs/heads/master | 2022-10-19T15:45:52.773005 | 2020-06-14T02:23:02 | 2020-06-14T02:23:02 | 258,865,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from time import gmtime
def voto(ano):
anoAtual = gmtime().tm_year
idade = anoAtual - ano
#print(f'Com {idade} anos: ', end='')
if idade < 16:
return "NEGADO", idade
elif idade < 18:
return "OPCIONAL", idade
elif idade < 70:
return "OBRIGATÓRIO", idade
else:
... | [
"fotaviofonseca@gmail.com"
] | fotaviofonseca@gmail.com |
dddfb5db6026c566353c7f826f4552c02c9021c0 | bc441bb06b8948288f110af63feda4e798f30225 | /state_workflow_sdk/model/cmdb/instance_tree_root_node_pb2.py | 6ee3af86e87fa1990cdee356016a84a48a148421 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,421 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: instance_tree_root_node.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 goo... | [
"service@easyops.cn"
] | service@easyops.cn |
b79bee798fa0c9f83afa01e877fb1c6112869372 | 51885da54b320351bfea42c7dd629f41985454cd | /abc061/b.py | 2bb0198431586f9681539f68d514ce6e49ba67fc | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | #
# abc061 b
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.r... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
13cadb461e8dcc7eb8ec1196d1b737fac51cb3b8 | 55a8940b41527a79c3c45f34f2035a53ee7f3621 | /repositorioDeReferencias/pycom-libraries/examples/lorawan-nano-gateway/config.py | 78f770651d3c373e06cd4ac367be4d4df16f8036 | [] | no_license | RegisMelgaco/LoPyLearn | ec37a58d334e2bf2dfd9aaf93b4e1bed016c957b | 3e8115545675947b24d646945a8859cae94b82b1 | refs/heads/master | 2021-09-03T10:55:49.614250 | 2018-01-08T13:45:46 | 2018-01-08T13:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | """ LoPy LoRaWAN Nano Gateway configuration options """
import machine
import ubinascii
WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper()
# Set the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address
GATEWAY_ID = WIFI_MAC[:6] + "FFFE" + WIFI_MAC[6:12]
SERVER = 'router.eu... | [
"regis.melgaco@gmail.com"
] | regis.melgaco@gmail.com |
e9b4e4732fa50f1e05c1f15dce5454ddf633aa9a | ca1f95723d29f3c72f36e98a69aa86f827f90812 | /request_helpers.py | ea665a3d2e9335db2cff53907e780f2486cb7478 | [] | no_license | zzaakiirr/parser_stackoverflow | 70b0376f487303fafe7cbb739b65da8299dea4bb | 3f39240107fcc8b1cfef95e6f63c0dc8dd3c81ad | refs/heads/master | 2020-03-08T14:44:36.083748 | 2018-04-05T21:09:41 | 2018-04-05T21:09:41 | 128,193,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import requests
def is_url(request):
try:
requests.get(request)
except requests.exceptions.MissingSchema:
return False
return True
def create_request_url(request):
key_words = request.split()
key_words_sting = ''
for key_word in key_words:
key_words_sting += '+%s' % k... | [
"zzaakiirr@gmail.com"
] | zzaakiirr@gmail.com |
18416831775dcf5a874ae485a50a8664e7427803 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sklearn/feature_selection/tests/test_mutual_info.py | 90912a4817535201553ce92bef653d054964f5a5 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:20a5dcd51f98742f23b8c7f37c2a42a52dc8089b83f2d8acc528fd88f1288e3c
size 7293
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
b65417573b6585e83dc4f560df7a9195ef2c53f2 | 83cfd4dec02d1bfe36663b1ef1c5344a9ac922ef | /orco/report.py | f1d920f1ff9343abb58ef7e82f8100ac1f58a86d | [
"MIT"
] | permissive | spirali/orco | f170a968725408caca08ec0915b835cebd19423d | 32c839b4d691a3eb83cfa379a1ec429adcf7f1b0 | refs/heads/master | 2021-07-22T11:41:19.430670 | 2020-06-10T08:56:17 | 2020-06-10T08:56:17 | 195,656,806 | 4 | 2 | MIT | 2020-07-13T08:40:46 | 2019-07-07T13:50:34 | Python | UTF-8 | Python | false | false | 1,389 | py | class Report:
"""
Report of an event in ORCO. It can be viewed via ORCO browser.
Attributes:
* report_type - "info" / "error" / "timeout"
* executor_id - Id of executor where even comes from
* message - string representation of message
* builder_name - name of builder where event occurs (or... | [
"spirali@kreatrix.org"
] | spirali@kreatrix.org |
1456ea0a97ad69d4665eccefa722464babba6e6a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2539/60617/267823.py | 0ac81f42b23d79d08df13bc7a0bd2236501f741b | [] | 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 | 339 | py | def cutinous_subArr():
arr=eval(input())
start=0
end=0
for i in range(1, len(arr)):
if start==0:
if arr[i]<arr[i-1]:
start=i-1
end=i
else:
if arr[i]<arr[i-1]:
end=i
print(end-start+1)
if __name__=='__main__':
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3ef8cce8910cc02ab0f2bd51f71613ab2e31635b | 1e6eb70f63fe91e40fab63675eee2bb05e6f1f28 | /src/orion/core/worker/strategy.py | 7a9df26908bb86f08e4632434176667a03fa6dfb | [
"BSD-3-Clause"
] | permissive | jerrychatz/orion | ed587abc81bceaef5bd8e90e432112df0aad5f43 | 0ef3eea2decafce1985dc6a1cbea80cc2a92e9e8 | refs/heads/master | 2023-08-07T01:31:19.195565 | 2021-09-14T18:52:18 | 2021-09-14T18:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,335 | py | # -*- coding: utf-8 -*-
"""
Parallel Strategies
===================
Register objectives for incomplete trials
"""
import logging
from abc import ABCMeta, abstractmethod
from orion.core.utils import Factory
from orion.core.worker.trial import Trial
log = logging.getLogger(__name__)
CORRUPTED_DB_WARNING = """\
Tria... | [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
fb54d19b3e0e115daed7e8ea028298023bd94bc5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02925/s813842519.py | fd514890376add5cc9ff63723b435deab183d427 | [] | 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 | 831 | py | n = int(input())
a = [list(map(int, input().split())) for _ in range(n)]
l = [i for i in range(n)]
pos = [0] * n
res = 0
cnt = 0
while True:
res += 1
flag = True
tmp = l.copy()
l = []
used = [False] * n
for v in tmp:
if used[v] or pos[v] == n - 1:
continue
opp = a[v... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b3c32db3186b4caf7016dabb7784a1f42ab8e00a | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/antennapod/testcase/firstcases/testcase6_004.py | 9e861b2631f1cd4c20da6b5730e18a08b29e1c30 | [] | 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 | 6,080 | 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 |
a868589ab22d6b001a1e0a8c4cd3b53b2b965c0e | 10d89b6e07a7c72c385eb1d1c60a3e0ed9f9fc3c | /boss/report/views/movie_sum.py | 5d816002dcf23fdd6d97d0c4b852eaccb658a172 | [] | no_license | cash2one/pt | 2a4998a6627cf1604fb64ea8ac62ff1c227f0296 | 8a8c12375610182747099e5e60e15f1a9bb3f953 | refs/heads/master | 2021-01-20T00:36:43.779028 | 2016-11-07T03:27:18 | 2016-11-07T03:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #coding: utf-8
"""
服务质量追踪-电影票
"""
from report_pub import *
def get_movie_sum_data(start_date, end_date, app, ver, channel):
if not start_date:
start_date = None
if not end_date:
end_date = None
if not app:
app = None
if not ver:
ver = None
if not channel:
... | [
"xl@putao.cn"
] | xl@putao.cn |
901df2bd27ecb8f459e0b79373f18de62a4fec93 | e21599d08d2df9dac2dee21643001c0f7c73b24f | /practice/concurrency/threadpool_executor.py | 5de7abb753749c293b03937824f0c77e6414843f | [] | no_license | herolibra/PyCodeComplete | c7bf2fb4ce395737f8c67749148de98a36a71035 | 4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b | refs/heads/master | 2022-07-17T05:39:03.554760 | 2020-05-03T07:00:14 | 2020-05-03T07:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python
# coding=utf-8
import time
import requests
from concurrent.futures import ProcessPoolExecutor
def visit_url(url):
response = requests.request('GET', url)
return response.content
if __name__ == '__main__':
start = time.time()
# 创建需要处理的URL序列
urls = ['http://api.bilibili.co... | [
"ijumper@163.com"
] | ijumper@163.com |
7f6f5cb399c032bf7955265b384a932ad7e4bdbd | 3fa7203b6180ab9a8955642f1373f3e436514a1e | /projects/apexlearningcenter/gdata-python-client/setup.py | a057292cc6d08e7313830bbdba294277ff4a9563 | [
"Apache-2.0"
] | permissive | Opportunitylivetv/blog | ce55db2f03dba42286b403f8df0839f6f75b7eea | 01e99810d977d8ddbb7a99b7f8f6d0c4276f3cd7 | refs/heads/master | 2021-07-25T21:40:01.599864 | 2017-11-08T22:10:51 | 2017-11-08T22:10:51 | 110,347,355 | 1 | 1 | null | 2017-11-11T13:26:21 | 2017-11-11T13:26:21 | null | UTF-8 | Python | false | false | 1,987 | py | #!/usr/bin/python
#
# Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"joe@bitworking.org"
] | joe@bitworking.org |
b46a9f045a08dbe61856a95eec669f548997abff | 074ce641fe9ab26835e4bfa77bdcac4aed92fcc7 | /locations/spiders/bojangles.py | 0e584c803734199752d1f60be07cccbd6260fee0 | [
"MIT"
] | permissive | zerebubuth/all-the-places | 173623ef00be2517bda26aff568a342ba1168c74 | a8b5931ca2e727194a6eb622357998dddccf1bb4 | refs/heads/master | 2021-07-04T04:02:54.306426 | 2017-08-02T16:17:46 | 2017-08-02T16:17:46 | 105,061,033 | 0 | 0 | null | 2017-09-27T19:35:12 | 2017-09-27T19:35:12 | null | UTF-8 | Python | false | false | 4,326 | py | # -*- coding: utf-8 -*-
import json
import scrapy
import re
from scrapy.utils.url import urljoin_rfc
from scrapy.utils.response import get_base_url
from locations.items import GeojsonPointItem
class BojanglesSpider(scrapy.Spider):
name = "bojangles"
allowed_domains = ["locations.bojangles.com"]
start_urls... | [
"ian.dees@gmail.com"
] | ian.dees@gmail.com |
a927f9c813867b753eff1fe9ffff2a4ca4958e48 | f65c074b9d47a86488ea82bccf3bcea2c089b576 | /Matc_links/Matc_links/items.py | ab239cf684765f22c9935412ffce36888c35f3d9 | [
"MIT"
] | permissive | Nouldine/CrawlerSystems | 32aea71bf4f24f7f5f3430fa93576d4524bf0448 | 7bba8ba3ec76e10f70a35700602812ee6f039b63 | refs/heads/master | 2020-09-15T12:18:50.117873 | 2020-01-23T14:50:45 | 2020-01-23T14:50:45 | 223,441,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.item import Item, Field
class MatcLinksItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
... | [
"abdoulyigo@gmail.com"
] | abdoulyigo@gmail.com |
7d0c1a071fb41cdfe747f02f3ff8aacdd1540482 | 5864f03e60b18b6ba6d5f666f5656193a423be2a | /5.3-random.py | a810965241b091e21e408279cdb5a52e425e4457 | [] | no_license | c4collins/python-standard-library-examples | 1ca66176cee9dab606afc8cd70f806f7c261ef81 | ef812ca846692243604a0fc119b6eece4025f148 | refs/heads/master | 2021-01-01T17:05:21.504397 | 2018-01-18T21:15:06 | 2018-01-18T21:15:06 | 8,157,627 | 22 | 9 | null | null | null | null | UTF-8 | Python | false | false | 7,582 | py | ## 5.3 Random
# Uses the Mersenne Twister algorithm
import random, os, itertools, time, decimal, math
import cPickle as pickle
## 5.3.1 Generating Random numbers
for i in xrange(5):
print '%04.3f' % random.random(),
print
# uniform() will generate numbers within a specified range
for i in xrange(5):
... | [
"connor.collins@gmail.com"
] | connor.collins@gmail.com |
46eb89357e79a72c0d54fe04daaea91db1801d5d | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stdlib/_thread.pyi | 2425703121b5dd5c8b5f33b5571063d7ac4de438 | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 1,427 | pyi | import sys
from threading import Thread
from types import TracebackType
from typing import Any, Callable, NoReturn, Optional, Tuple, Type
error = RuntimeError
def _count() -> int: ...
_dangling: Any
class LockType:
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
def release(self) ... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
a2fab96aa42133cf1bef5480f1a3154ef1479005 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /programming_computer_vision_with_python/cvbook-contrib/rof.py | cca76f74204c8c254b9909d2168401a571270eac | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,102 | py | import numpy
def denoise(im, U_init, tolerance=0.1, tau=0.125, tv_weight=30):
"""Denoises |im| using the ROF image denoising model.
Note: If tv_weight is set to something large, tolerance needs to be
lowered."""
# THe code is from Jan Erik Solem's book; it's based on:
# Chambolle 2005, eq 11 on p14 "Total... | [
"bb@b.om"
] | bb@b.om |
d376851a61e7d1f753b45331107716086f934b7e | fa9bae32c203323dfb345d9a415d4eaecb27a931 | /33. Search in Rotated Sorted Array.py | e6cd02b083ea61bcdaa241d139c7425c617c6ff7 | [] | no_license | IUIUN/The-Best-Time-Is-Now | 48a0c2e9d449aa2f4b6e565868a227b6d555bf29 | fab660f98bd36715d1ee613c4de5c7fd2b69369e | refs/heads/master | 2020-09-14T12:06:24.074973 | 2020-02-15T06:55:08 | 2020-02-15T06:55:08 | 223,123,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | class Solution:
def search(self, nums: List[int], target: int) -> int:
if not nums:
return -1
left, right = 0, len(nums) - 1
if nums[left] ==target:
return left
if nums[right] ==target:
return right
while left +1 < right:
mid = ... | [
"liuyijun0621@hotmail.com"
] | liuyijun0621@hotmail.com |
9dda382f321a6bd1b6fe598188a36bf543a1a2e8 | 026f12a5fdd4b3bfee00713091267aaef71047c1 | /end/demo4/hualiservice/trade/admin.py | daf8549e21a189ea882ce11a3ab0e6af12b56ab1 | [] | no_license | zzy0371/py1911project | 64c64413ea0107926ae81479adc27da87ee04767 | 7ce2a2acfc1dade24e6e7f8763fceb809fabd7a1 | refs/heads/master | 2023-01-08T07:51:13.388203 | 2020-03-19T03:31:33 | 2020-03-19T03:31:33 | 239,649,431 | 0 | 1 | null | 2023-01-05T09:04:53 | 2020-02-11T01:22:35 | JavaScript | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Cart)
admin.site.register(Order)
admin.site.register(OrderDetail)
| [
"496575233@qq.com"
] | 496575233@qq.com |
28fde1cc01caebb7f303b02bcf82fa3c46c163d1 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/DynamicProgramming/132_PalindromePartitioningII.py | 207d00a98abde367cada73c26aa59d47492dee70 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,820 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
class Solution(object):
"""
Dynamic Programming:
cuts[i]: minimum cuts needed for a palindrome partitioning of s[i:], so we want cuts[0].
To get cuts[i-1], we scan j from i-1 to len(s)-1.
Once we comes to a is_palindrome[i-1][j]==true:
if j==... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
46ff6bb671dba2e977cd92127af3a8fdffa5e7eb | 2cd06e44dd79b45708ddf010c31289458d850b94 | /test/functional/p2p_leak.py | 17143f418ca822b3cde05e7a2d2f0874b7260b7b | [
"MIT"
] | permissive | adymoloca/flocoin | bc66233e5b3b1af294ca6719b4a26f8829d682e4 | d9244577577dede975c852f6fcfe1afba4d71a57 | refs/heads/master | 2023-08-21T23:51:28.266695 | 2021-10-06T01:40:10 | 2021-10-06T01:40:10 | 408,609,250 | 0 | 0 | MIT | 2021-09-30T10:11:53 | 2021-09-20T21:45:28 | C++ | UTF-8 | Python | false | false | 7,392 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test message sending before handshake completion.
Before receiving a VERACK, a node should not send an... | [
"adymoloca91@gmail.com"
] | adymoloca91@gmail.com |
9578af48e44f55f45d0eac8073ab379d3a7704ac | dc83706c0fc77dca0dde8f5d8de0c53dd746bd59 | /cachier/scripts/cli.py | c467b07ac8cef327a7cab774a89c4f8a48456cc3 | [
"MIT"
] | permissive | ofirnk/cachier | 5a773d38c6093a276a7ce735e5173461e86bcc60 | 0d4a914806e5a6d048dc4189c9f6176105f8954f | refs/heads/master | 2023-06-20T07:09:09.761919 | 2021-07-22T07:56:52 | 2021-07-22T07:56:52 | 388,360,470 | 0 | 0 | MIT | 2021-07-22T07:15:51 | 2021-07-22T06:57:58 | null | UTF-8 | Python | false | false | 429 | py | """A command-line interface for cachier."""
import click
from cachier.core import _set_max_workers
@click.group()
def cli():
"""A command-line interface for cachier."""
@cli.command("Limits the number of worker threads used by cachier.")
@click.argument('max_workers', nargs=1, type=int)
def set_max_workers(ma... | [
"shaypal5@gmail.com"
] | shaypal5@gmail.com |
fcd760062115725444cb9e272a9278e304d34a66 | 83924510277a85ab7719598877f1cc56741854d3 | /qatrack/notifications/service_log_scheduling/tasks.py | 1fe758d5a5cd4ff71c7b2b8867ad29e161950829 | [
"MIT"
] | permissive | tguiot/qatrackplus | 3cc07ed6320c9f92a2d848e3429c89f2f0051712 | c587cb2ddbfbc116a3ce5124537b2160af09d8e1 | refs/heads/master | 2023-06-01T01:30:53.619027 | 2021-07-02T10:35:52 | 2021-07-02T10:35:52 | 381,009,929 | 0 | 0 | NOASSERTION | 2021-07-02T10:35:53 | 2021-06-28T11:39:21 | null | UTF-8 | Python | false | false | 2,897 | py | import logging
from django.conf import settings
from django.utils import timezone
from django_q.models import Schedule
from django_q.tasks import schedule
from qatrack.notifications.models import ServiceEventSchedulingNotice
from qatrack.qatrack_core.email import send_email_to_users
from qatrack.qatrack_core.tasks im... | [
"randle.taylor@gmail.com"
] | randle.taylor@gmail.com |
c5c2760d2fc07bd602141fc4bf0326bacc3903b6 | 1b2369715f47c9276f3dd458541d0b62cf5ba237 | /core/templator.py | e520946dd891c205f610bf01a342298ab7428e33 | [] | no_license | Virucek/gb_framework | 5a68cdf4f09867db3704ec589e937ddbe68b27f0 | 50893554c80583243ed301ab52e4bc46875ad241 | refs/heads/main | 2023-02-13T14:01:57.808400 | 2021-01-04T22:20:07 | 2021-01-04T22:20:07 | 319,729,864 | 0 | 0 | null | 2021-01-04T22:20:20 | 2020-12-08T18:44:10 | Python | UTF-8 | Python | false | false | 630 | py | import os
from jinja2 import Template, Environment, FileSystemLoader
def render(template_name, folder='templates', **kwargs):
# file = os.path.join('templates', template_name)
# with open(file, encoding='utf-8') as file:
# template = Template(file.read())
env = Environment()
env.loader = File... | [
"aykin.yakov@gmail.com"
] | aykin.yakov@gmail.com |
e2d5e9208c5d6b345a80365e423c67dd11e07d48 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /ML/SCIENCE/day07/bi.py | c23037e4121ee3dd657696790e8fe62a76e9e0f4 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import numpy as np
import matplotlib.pyplot as mp
outcomes = np.random.binomial(9, 0.5, 10000)
chips = [1000]
for outcome in outcomes:
if outcome >= 5:
chips.append(chips[-1] + 1)
else:
chips.append(chips[-1] - 1)
chips... | [
"764375224@qq.com"
] | 764375224@qq.com |
1126c2887c7bf5192117f4eaef69b0120a23243f | 29b1b15e4fef90717ff7bf8b13ab9a23cdc17c51 | /postsproject/testapp/views.py | cc8ee2c2ba5629d911722b4ea30e6bdf9aaf35a5 | [] | no_license | deepawalekedar319/DjangoProjects | 93fe59812593a1e1b8f542c8c5b1642bc95f6da4 | 1780b703a3022ea17dc188ad98b0f17bb14fa12f | refs/heads/main | 2023-09-03T04:48:21.201822 | 2021-11-08T05:28:00 | 2021-11-08T05:28:00 | 425,706,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.shortcuts import render , get_object_or_404
from testapp.models import Posts
def post_view(request):
post_list = Posts.objects.all()
return render(request,'testapp/posts_list.html',{'post_list':post_list})
def post_detail_view(request , year , month , day , post):
post = get_object_or_404(post , slug ... | [
"deepawalekedar319@gmail.com"
] | deepawalekedar319@gmail.com |
06f63f7eb1f9eb33e61b437d376faf87f4639603 | a4191cc76c1d733c58bbb6692a75b0885bb74e13 | /Control-Planning-master/Planning/planning_tools/carla_global_path.py | 35d4fa8e7156ab76d6e1b702c5d87efd4b43ee7e | [] | no_license | js7850/sonjunseong | 69173d67e34ce2085d2e0617fbefa02cbc6676b5 | 0d8bb7c87fac07634abd4b002f1111108b42e939 | refs/heads/main | 2023-07-16T15:28:00.459349 | 2021-08-28T13:08:19 | 2021-08-28T13:08:19 | 400,545,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import rospy
from sensor_msgs.msg import JointState
from geometry_msgs.msg import PoseStamped
import csv
import matplotlib
import threading
import math
rospy.init_node("carla_glodal_path")
class publisher:
def __init__(self):
self.x=0
self.y=0
self.nodes = []
self.node_x = []
... | [
"noreply@github.com"
] | js7850.noreply@github.com |
c139c36375ea4de3c9eed6ff3bcc1abc1ea29fd7 | e1ef59f60ecc011305e50d12f3fa480937b61e34 | /Problem Solving/Implementations/Utopian Tree.py | 8c3cddf1addfff4bddbb325756151b9b8708273f | [] | no_license | prashanthr11/HackerRank | 7ef3c32c3b697f54880fcd5a607245d313b12e05 | 2a01cb28f2f1a8ef616026a126d95bc9e76dd903 | refs/heads/master | 2021-07-08T21:17:13.273389 | 2020-12-27T19:00:25 | 2020-12-27T19:00:25 | 222,383,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the utopianTree function below.
def utopianTree(n):
height = 1
for i in range(n):
if i % 2:
height += 1
else:
height *= 2
return height
if __name__ == '__main__':... | [
"noreply@github.com"
] | prashanthr11.noreply@github.com |
868926954c42f7c803e11a7d7309f3de7949bd8e | f2b31c29d30959ab484187ed5754552a644c0256 | /setup.py | 847e732192b6e4fa4a48c36cf0cb2976f239929d | [
"Apache-2.0"
] | permissive | pkimber/old_moderate | d385dd679909eaf3249204f39626a7f711465cc9 | 761233f9a9c660026f5197d0b5812bf5db28afbe | refs/heads/master | 2016-09-05T15:34:53.960675 | 2014-01-07T14:34:53 | 2014-01-07T14:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import os
from distutils.core import setup
def read_file_into_string(filename):
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
def get_readme():
for name in ('README', 'README.r... | [
"code@pkimber.net"
] | code@pkimber.net |
ff1f8886eaa249084c6246e1aa3f939e2a40708b | 38a9e2780ac8b800c336207a5c0a621eb1277a53 | /tests/test_planners/test_planner_latin_hypercube.py | 6c1b96b0e2543493d9ea123d6a11489bec8a8f51 | [
"MIT"
] | permissive | priyansh-1902/olympus | 2454850413bb0562a1bfe20ab35fa7e770367323 | f57ad769918c0d5d805c439ab5ffbd180af698fa | refs/heads/main | 2023-06-21T05:58:49.118264 | 2021-08-07T22:19:41 | 2021-08-07T22:19:41 | 342,454,516 | 0 | 0 | MIT | 2021-08-07T22:19:41 | 2021-02-26T03:43:08 | Python | UTF-8 | Python | false | false | 1,148 | py | #!/usr/bin/env python
import pytest
from olympus import Observations, ParameterVector
from olympus.planners import LatinHypercube
# use parametrize to test multiple configurations of the planner
#@pytest.mark.parametrize("disp, eps, ftol, gtol, maxcor, maxfun, maxiter, maxls",
# [(None, 1e-8, 2.220446049250313... | [
"hase.florian@gmail.com"
] | hase.florian@gmail.com |
5c70d23d8d54bf46d7d2e8547bf4ec59236ac4ab | fb9bfe18889cdcb1efad2544bec05d1551ec14f8 | /home-assistant/custom_components/hacs/repositories/theme.py | 0831694927efa2d466e194c26034207a18209395 | [
"MIT"
] | permissive | macbury/SmartHouse | b5cac3db82ad2350dc613a7fbb19584082ac29a0 | 796afdf7552c7798fc6a2a238537a36fa1073efe | refs/heads/master | 2022-12-25T10:30:47.115121 | 2022-07-10T15:03:00 | 2022-07-10T15:03:00 | 188,223,508 | 166 | 65 | MIT | 2022-12-10T15:46:43 | 2019-05-23T11:47:23 | Python | UTF-8 | Python | false | false | 3,631 | py | """Class for themes in HACS."""
from __future__ import annotations
from typing import TYPE_CHECKING
from ..enums import HacsCategory, HacsDispatchEvent
from ..exceptions import HacsException
from ..utils.decorator import concurrent
from .base import HacsRepository
if TYPE_CHECKING:
from ..base import HacsBase
... | [
"me@macbury.ninja"
] | me@macbury.ninja |
bd2641b8e5b2b74521b6620cea1f61afcd186eae | 77077a391973d1f8c05647d08fc135facd04fc5e | /xlsxwriter/test/comparison/test_background02.py | 25a76b75104c00aaf83a899b79d12ccfe831151a | [
"BSD-2-Clause-Views"
] | permissive | DeltaEpsilon7787/XlsxWriter | 28fb1012eaa42ea0f82e063f28c0c548ca016c5e | 550b9c5bd678c861dcc9f6f4072b33a69566e065 | refs/heads/main | 2023-08-02T09:14:10.657395 | 2021-09-06T10:51:56 | 2021-09-06T10:51:56 | 384,948,081 | 0 | 0 | NOASSERTION | 2021-07-11T12:57:26 | 2021-07-11T12:57:25 | null | UTF-8 | Python | false | false | 1,300 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
from io import BytesIO
class TestCompareXLSXFiles(ExcelC... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
f3b5b32158007db75f97c4df7a3bdae34ab46ac3 | 37cfcdfa3b8f1499f5899d2dfa2a48504a690abd | /test/functional/mining_prioritisetransaction.py | fe0256f3a78b06dd52f4dbc84cd78a7169c450e4 | [
"MIT"
] | permissive | CJwon-98/Pyeongtaekcoin | 28acc53280be34b69c986198021724181eeb7d4d | 45a81933a98a7487f11e57e6e9315efe740a297e | refs/heads/master | 2023-08-17T11:18:24.401724 | 2021-10-14T04:32:55 | 2021-10-14T04:32:55 | 411,525,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,616 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Pyeongtaekcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the prioritisetransaction mining RPC."""
import time
from test_framework.messages import ... | [
"cjone98692996@gmail.com"
] | cjone98692996@gmail.com |
be05c884bf49420daeef4374a004c5cda9062076 | 306afd5282d9c24d58297478a1728a006c29e57e | /python3/0213_House_Robber_II.py | 4d1ea3b9abd8dcecdc9fed21a9a7723218c62808 | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | class Solution:
def rob(self, nums: List[int]) -> int:
if len(nums) == 1:
return nums[0]
# 第一棟和最後一棟房子相連,所以不能同時偷
# 要拆開成兩種情況討論,變成兩個普通的 house robber I 問題
res1 = self.house_robber(nums[:-1]) # 不偷第一棟房子
res2 = self.house_robber(nums[1:]) # 不偷最後一棟房子
return max(r... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
9cbb8de9fa1b82364b1435e1745f5a067f0bce6a | 3669cd260bdab697376feca747d1635d35f42c83 | /lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py | 2bbe4511dd58f04fbedcf24691c3bcbe18e71267 | [] | no_license | tuxillo/DPorts | 58072bc88887c7a53a51988c76a70366bef44a93 | f523fb13a9d3ecc5ce9a8045fdf146ae05de5399 | refs/heads/master | 2020-04-03T08:02:44.297511 | 2013-03-04T07:56:00 | 2013-03-04T07:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py |
$FreeBSD: ports/lang/clang-devel/files/patch-utils_llvm-build_llvmbuild_main.py,v 1.2 2012/11/17 05:58:48 svnexp Exp $
--- utils/llvm-build/llvmbuild/main.py.orig
+++ utils/llvm-build/llvmbuild/main.py
@@ -633,7 +633,13 @@
# We handle a few special cases of target names here for historical
# reasons, as t... | [
"nobody@home.ok"
] | nobody@home.ok |
bb2aef030b5b31e6b3dc6710d92c38df6a019f77 | e968c7b2a81eac674fe90d4988d49dc76cd6ea90 | /Chap0/project/guess_number_advanced.py | c7469c5b549b102d7e4fce82232709e7f0821658 | [] | no_license | AIHackerTest/0x0o_Py101-004 | f27c2988ef4b755546a2a64bf5f8e225c1c46c93 | cf3fcd4d2618b63e04732ddc0cc9dfdd36e94b8d | refs/heads/master | 2021-06-28T20:05:03.110594 | 2017-09-13T03:41:25 | 2017-09-13T03:41:25 | 103,240,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Program name: 猜数字进阶
Author: 0x0
Github: https://github.com/0x0o
Edition:
Edit date: 2017.08.15
游戏介绍:程序内部用 0 - 9 生成一个 4 位数,每个数位上的数字不重复,且首位数字不为零,如 1942
用户输入 4 位数进行猜测,程序返回相应提示
用 A 表示数字和位置都正确,用 B 表示数字正确但位置错误
用户猜测后,程序返回 A 和 B 的数量
比如:... | [
"xiaowan5219@gmail.com"
] | xiaowan5219@gmail.com |
fa3d745753daff8cdc2dae59e1518e0bf8f81b84 | 1c7b5b866b505b7b8c47dce504c5bd27a34d5992 | /TargetOffer/和为S的两个数字.py | 9b7088871e2e866064899912df859868121c9059 | [] | no_license | ii0/algorithms-6 | 2dbcb3df504810ea52b41e5129b334f62136d70a | 3eddc77d2f3dafffd177f2a9ee28e9850da2f020 | refs/heads/master | 2022-04-25T23:17:53.332297 | 2019-09-19T14:52:04 | 2019-09-19T14:52:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | """
author: buppter
datetime: 2019/8/15 16:34
题目描述
输入一个递增排序的数组和一个数字S,在数组中查找两个数,使得他们的和正好是S,如果有多对数字的和等于S,输出两个数的乘积最小的。
解决思路:
1. 已经排序,所以可以使用双指针
2. 对于未排序的,可以使用 y = s - x,借助Map, LeetCode 第一题。但要判断最小乘积,略显的复杂
"""
class Solution:
def FindNumbersWithSum1(self, array: list, tsum: int) -> list:
if not array:
... | [
"shixintian@aliyun.com"
] | shixintian@aliyun.com |
ca5a807578a341ab6150858ebc98582151ea5b7b | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/55/55-42_wat_20Abox/setin.py | a052af3560b39d0ff4ffd8b4721a1f81128a90d8 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | import os
final_common = ["C1", "C2", "C3", "C4", "C5", "C6", "CL1", "C8", "O9", "N10", "C11", "C12", "C13", "N14", "C15", "C16", "N17", "C18", "O19", "CL2", "H1", "H2", "H6", "HN10", "H12", "H13", "H16", "HN17"]
dir = '/mnt/scratch/songlin3/run/tyk2/L55/wat_20Abox/ti_one-step/'
res1i='55'
res1='NNN'
res2list=LIST1
... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
d6d6e742047319fd822c0f16e580902ce8b79fad | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /09_Data_Preparation_for_Machine_Learning/18/04_transform_evaluate.py | 5a5532223e4999a7b4f4ff6f9f11674e3a596ea3 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # evaluate knn on the diabetes dataset with robust scaler transform
from numpy import mean
from numpy import std
from pandas import read_csv
from sklearn.model_selection import RepeatedStratifiedKFold
from sklearn.model_selection import cross_val_score
from sklearn.neighbors import KNeighborsClassifier
from sklearn.pip... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
1787a9d7699255bd09744b9a3cdb66697a4b4de1 | 468f397949b514c03b8b497bdff0c7dc6dff753c | /addons/hc_person/__openerp__.py | 542444eb5404795bd7d17d31403ebb8ab04d8f9e | [] | no_license | LasLabs/odoo-fhir | bc1750de277c71a453a1c75a2f3fbe6ffc8faf4b | 4eaccbd218f89587217b932651f4eb38feb43047 | refs/heads/master | 2021-01-20T05:09:11.970604 | 2017-04-28T21:44:17 | 2017-04-28T21:44:17 | 89,753,143 | 1 | 0 | null | 2017-04-29T00:00:03 | 2017-04-29T00:00:03 | null | UTF-8 | Python | false | false | 1,736 | py | # -*- coding: utf-8 -*-
{
'name': "Person",
'summary': """
A person independent of a specific health-related context
""",
'description': """
Demographics and administrative information about a person independent of a specific health-related context.
**Scope and Usage*... | [
"lsison@moxylus.com"
] | lsison@moxylus.com |
23432df9eef11bab3e6a972cfdcc73e473190c62 | c43c88015f9498aed5f3b5a339d245c31781444e | /Free/l10n_ru/__manifest__.py | 9b57e4476142649d8c7f06a54fccc7adfca950b0 | [] | no_license | mulaudzicalvin/perpul | 65106d41d5197fea17628ac1a7fa7e581d29d75e | 00e3a5ee1771d2e09a48460ca23c2e9c2ef507d6 | refs/heads/master | 2020-03-09T18:39:33.131420 | 2018-02-05T05:17:36 | 2018-02-05T05:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-2016 CodUP (<http://codup.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | [
"daniel.podvesker@perpul.co"
] | daniel.podvesker@perpul.co |
65932c9daac0c0d74e2dfd51da456a1788016eff | a55fa75d170dec85b230b68046aae7cb18a7ea55 | /backend/mobile_8_dec_dev_16442/wsgi.py | 8eb7242448c4fc2456e1d329215a5f4645042dc1 | [] | no_license | crowdbotics-apps/mobile-8-dec-dev-16442 | be0c8274472d7d396bbf12722a80cda25b371590 | 50cc76003f526ed3cfdb811988812663f449918e | refs/heads/master | 2023-06-30T04:40:18.561586 | 2020-12-08T09:16:42 | 2020-12-08T09:16:42 | 319,529,324 | 0 | 0 | null | 2021-08-03T20:05:31 | 2020-12-08T04:50:35 | JavaScript | UTF-8 | Python | false | false | 421 | py | """
WSGI config for mobile_8_dec_dev_16442 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bd8e7ae6df45a567320e605bd58c48a15da5e7c5 | dcb1904a6acbee6a4102a86468f7f805dd4326f6 | /hackerrank_tuple.py | 1292ffd1494d12e6826137c66f939a1a62f1472f | [] | no_license | Rabbi50/HackerRank-Problem-Solve | b7304eaaf42a9a4b85cfd9d53646d4c69f066ee1 | 1501a802f86f13c98acd75936ce79e71c862128d | refs/heads/master | 2020-09-21T19:21:16.883823 | 2020-07-14T14:40:06 | 2020-07-14T14:40:06 | 224,897,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # if __name__ == '__main__':
# n = int(input())
# # integer_list = map(int, input().split())
# # print()
# input_line=input()
# input_list=input_line.split()
# for i in range(n):
# input_list[i]=int(input_list[i])
# #print(input_list)
# t=tuple(input_list)
# print(hash(3))
#... | [
"jasrabbi50@gmail.com"
] | jasrabbi50@gmail.com |
42baf2d7ff0468903f6f4794c8562724d5b3a362 | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/test/prompto/translate/omo/TestCategories.py | 00b03872c5e6ee79505515f577f99228f18b9296 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 1,677 | py | from prompto.parser.o.BaseOParserTest import BaseOParserTest
class TestCategories(BaseOParserTest):
def setUp(self):
super(type(self), self).setUp()
def testAttributeConstructor(self):
self.compareResourceOMO("categories/attributeConstructor.poc")
def testCopyFromAscendant(self):... | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
64aa5b08d5c62364013595552c7828a2a2d1976f | df0461f16c82af1fd5c580dd9ab91094158e4c43 | /artifacts/proxy.py | e514b2eee728675f2f21105934a81b76fe67406e | [
"Apache-2.0"
] | permissive | lucaschultz/unearth | 738021310178062f0d1893a86fe68e99eaf98b74 | 60bbc887415205b23483d0cb99c3774ab47c9c66 | refs/heads/master | 2020-04-22T17:20:34.191739 | 2019-02-25T15:21:44 | 2019-02-25T15:21:44 | 170,538,069 | 2 | 0 | Apache-2.0 | 2019-02-13T16:12:55 | 2019-02-13T16:12:54 | null | UTF-8 | Python | false | false | 623 | py | from SystemConfiguration import SCDynamicStoreCreate, SCDynamicStoreCopyValue
factoid = 'proxies'
def fact():
'''Returns the current dns servers'''
proxies = 'None'
net_config = SCDynamicStoreCreate(None, "net", None, None)
proxy_info = SCDynamicStoreCopyValue(net_config, "State:/Network/Global/Proxi... | [
"chilcote+github@gmail.com"
] | chilcote+github@gmail.com |
07eee5fb5e2ef6d4bba6977b2f628b3aa2179927 | c957fbcb133093d3331731259c557cef5ccf45d1 | /src/contentbase/json_renderer.py | 9f0b60111957e16ac2aaf8bf69633c4a3d46a99c | [
"MIT"
] | permissive | ClinGen/clincoded | da2aa2c08cf98f7af4953f81b13b94653b9c8264 | 5624c74546ce2a44eda00ee632a8de8c2099da10 | refs/heads/dev | 2022-09-27T15:48:08.000844 | 2021-08-03T19:05:54 | 2021-08-03T19:05:54 | 36,758,056 | 31 | 10 | MIT | 2022-09-16T19:33:53 | 2015-06-02T19:54:12 | JavaScript | UTF-8 | Python | false | false | 1,358 | py | from pyramid.threadlocal import get_current_request
import json
import pyramid.renderers
import uuid
def includeme(config):
config.add_renderer(None, json_renderer)
class JSON(pyramid.renderers.JSON):
'''Provide easier access to the configured serializer
'''
def dumps(self, value):
request =... | [
"laurence@lrowe.co.uk"
] | laurence@lrowe.co.uk |
884229c842df85409ab4a26013a3943a54b8d419 | 685038d4be188fa72e9dba1d2213a47ee3aa00a2 | /ECOS2021/Demands/Inputs/Surveys/A/S7/Oct_S7_A.py | ea3279e31338f885612c658133f974cb1e135206 | [] | no_license | CIE-UMSS/Tradeoff-between-Installed-Capacity-and-Unserved-Energy | e5599e4e4ac60b97f0c4c57c5de95e493b1b5ac4 | 459f31552e3ab57a2e52167ab82f8f48558e173c | refs/heads/master | 2023-06-01T18:09:29.839747 | 2021-06-19T15:56:26 | 2021-06-19T15:56:26 | 343,720,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 31 14:33:07 2020
@author: alejandrosoto
Script for 2 class of household in Raqaypampa.
"""
# -*- coding: utf-8 -*-
"""
@author: Alejandro Soto
"""
from core import User, np
User_list = []
#User classes definition
HI = User("high income",1)
Us... | [
"asm19971997@gmail.com"
] | asm19971997@gmail.com |
15ad905cd84616800887959795f7b7b25d2c0bc8 | f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2 | /2015/AST1/vezbovni/Ivan/treci.py | 92de3fe389d536db156a2b47a60dfee2cec9d33a | [] | no_license | ispastlibrary/Titan | a4a7e4bb56544d28b884a336db488488e81402e0 | f60e5c6dc43876415b36ad76ab0322a1f709b14d | refs/heads/master | 2021-01-17T19:23:32.839966 | 2016-06-03T13:47:44 | 2016-06-03T13:47:44 | 60,350,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def fahr(a):
F = (9.0/5)*a + 32
print("temperatura je: ", F)
return F
def cels(a):
C = (a-32)*(5/9)
print("temperatura je:", C)
return C
prvo = fahr(100)
drugo = cels(212)
| [
"ispast.library@gmail.com"
] | ispast.library@gmail.com |
a79fbdaf7b77d609257fa8ea0f0ee08500283919 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s857237201.py | ed807852eb80a79aa87a94d4e96803a8c9ee4e1c | [] | 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 | 1,538 | py | def add(a, b):
mod = 1e9+7
c = a + b
if c >= mod:
c -= mod
return c
H, W = [int(x) for x in input().split()]
sl = [input() for _ in range(H)]
dp = [[0 for _ in range(W)] for _ in range(H)]
dp[0][0] = 1
for i in range(H):
for j in range(W):
for frm in [[i-1, j], [i, j-1]]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
754965cb553d4700b0aea09f00514c8478a8e968 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/mixed-reality/azext_mixed_reality/vendored_sdks/mixedreality/models/_mixed_reality_client_enums.py | 3c095b5688815dc47d4e0a5d9e8e2dad0cf60b42 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 2,085 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
36d142620364d13b8ee4ffa85e69d9eede13dc46 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /TrackLater-master/tracklater/main.py | 72e022c9b512b865703c592e30c9a97c5fa8c49a | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import importlib
from typing import Dict
from types import ModuleType
from tracklater import settings
from tracklater.timemodules.interfaces import AbstractParser
from tracklater.models import ApiCall, Entry, Issue, Project
from tracklater.database import db
import lo... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
d96a9159f7e818a5432f964d54d8790c633a202a | 3458efd930792fc768f53d773603c917d172ac3d | /webapp/store_frontend/StoreFrontendController.py | 6eb3e4be6e6f7a353059d8204ad8dd15017c0497 | [] | no_license | binary-butterfly/shared-delivery | 0a4a90d9c42d7948267d674da1d1ec323d345c1b | 63167a6f7d80c822ac02ffc6dd698fcf1ff9e37e | refs/heads/master | 2022-08-17T15:03:04.568889 | 2020-04-28T16:05:00 | 2020-04-28T16:05:00 | 249,144,165 | 15 | 9 | null | 2022-07-20T23:00:35 | 2020-03-22T08:42:59 | JavaScript | UTF-8 | Python | false | false | 6,031 | py | # encoding: utf-8
"""
Copyright (c) 2017, Ernesto Ruge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions an... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
6fec5b707195f997de20929632b6dabf2412d1e1 | aa6059b13468595a872897694572767d278318d1 | /RemoveVideoWaterMark/LightVideo.py | d31d6d5dfb4b69a7001b0e7f4d10a0d15614204c | [] | no_license | 18708111002/Tools | 3845273724fc9bd2b1e31991339053448d08bfa2 | c81f6df8ac7e57c0c544be78a706c919c3c57384 | refs/heads/master | 2022-11-09T10:47:33.608418 | 2018-06-08T09:14:11 | 2018-06-08T09:14:11 | 127,995,521 | 1 | 2 | null | 2022-11-02T07:22:24 | 2018-04-04T02:27:44 | Python | UTF-8 | Python | false | false | 1,625 | py | #encode-UTF-8
from watchdog.observers import Observer
from watchdog.events import *
import time
class FileEventHandler(FileSystemEventHandler):
def __init__(self):
FileSystemEventHandler.__init__(self)
def on_moved(self, event):
if event.is_directory:
print("directory moved from {... | [
"18708111002@163.com"
] | 18708111002@163.com |
5154db3907a3d17cdf26b8e4ff5596f31844b55c | f9f1f887629855bbf12ecb0b7358fed5946b3caa | /.history/app_blog_forum/views_20201117201218.py | bd4632b14091e7318696c02acc68f232583f1721 | [] | no_license | hibamohi5/blog_forum | 4f687cee3ca6bdb1d0302b3657a77c01945404b3 | d6380eb7149355c79276b738da7da94c2ee03570 | refs/heads/main | 2023-01-14T18:33:53.043754 | 2020-11-20T01:52:22 | 2020-11-20T01:52:22 | 314,417,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_new_user(request):
errors = User.objects.user_registration_validator(request.POST)
if len(errors) > 0:
for key, value in ... | [
"hibamohi5@gmail.com"
] | hibamohi5@gmail.com |
50e3b6211cb784adbca528e697dca518ab8b7ac8 | 50f202b7068abcac204e795ee7a2dc9f13ab07e3 | /mchck_swd.py | e01cd7996edaa5390d5e681d593db025609fb332 | [] | permissive | twitchyliquid64/PySWD | 7830dd9213167d82f567bf5d912b930fa9bfb0e7 | 2981d4dcc385cd58f3c2423b359f3f53623184e0 | refs/heads/master | 2020-03-22T17:17:41.642609 | 2018-07-19T01:05:19 | 2018-07-19T01:05:19 | 140,386,338 | 0 | 0 | BSD-3-Clause | 2018-07-10T06:19:43 | 2018-07-10T06:19:43 | null | UTF-8 | Python | false | false | 1,567 | py | import time
import logging
import serial
from SWDAdapterBase import *
CMD_HANDSHAKE = "?SWD?"
CMD_HANDSHAKE_REPLY = "!SWD1"
CMD_WRITE_WORD = 0x90
CMD_WRITE_BITS = 0xa0
CMD_WRITE_BYTE = CMD_WRITE_BITS | (8 - 1)
CMD_READ_WORD = 0x10
CMD_READ_BITS = 0x20
CMD_CYCLE_CLOCK = 0x28
class Adapter(SWDAdapterBase):
def ... | [
"pfalcon@users.sourceforge.net"
] | pfalcon@users.sourceforge.net |
07f19b1600350ce134465c5c2401089bbc90b0d0 | 8567438779e6af0754620a25d379c348e4cd5a5d | /testing/xvfb.py | a5620e7cde4072d7bd8b5f6bef54b27af767d9e1 | [
"BSD-3-Clause"
] | permissive | thngkaiyuan/chromium | c389ac4b50ccba28ee077cbf6115c41b547955ae | dab56a4a71f87f64ecc0044e97b4a8f247787a68 | refs/heads/master | 2022-11-10T02:50:29.326119 | 2017-04-08T12:28:57 | 2017-04-08T12:28:57 | 84,073,924 | 0 | 1 | BSD-3-Clause | 2022-10-25T19:47:15 | 2017-03-06T13:04:15 | null | UTF-8 | Python | false | false | 2,751 | py | #!/usr/bin/env python
# Copyright (c) 2012 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.
"""Runs tests with Xvfb and Openbox on Linux and normally on other platforms."""
import os
import platform
import signal
import su... | [
"hedonist.ky@gmail.com"
] | hedonist.ky@gmail.com |
a9ddf2c7ce753bd52658b66a00fbd265e29339f3 | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/user/management/commands/proxy_detection.py | 933792ab6086b2d3cab311183442d44cbdc89ce0 | [] | no_license | embedded1/django-package-forwarding | 2ef84a1fde5ba6817d42d89f983512bdc3d77bc3 | 8c3286e9a7da8f4ae0401a81c8037585b3bb7ba6 | refs/heads/master | 2020-06-22T17:05:36.637695 | 2019-07-26T09:34:40 | 2019-07-26T09:34:40 | 197,738,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | from django.utils.translation import ugettext as _
from django.core.management.base import BaseCommand
from django.template import loader, Context
from django.core import mail
from django.conf import settings
from django.contrib.auth.models import User
from decimal import Decimal as D
import requests
import logging
l... | [
"asili@usendhome.com"
] | asili@usendhome.com |
a9fd8d74fd2eb83202790909a6fdb4ff546cd49d | 5d3acf19a31749111bc9332632d56cfa8f229872 | /testing/tests/001-main/003-self/200-json/001-users.py | ace465f0ccc2064551dac140ac940ae4add24ee0 | [
"MIT",
"Apache-2.0"
] | permissive | fragmede/critic | 217adea764b96b028fe6d95ee8f0ec82bc38b606 | f32a41b8c209440b2cbf208b1790320ef6ba3ecb | refs/heads/master | 2020-12-28T07:47:37.603777 | 2015-06-23T08:15:38 | 2015-07-14T09:12:28 | 39,280,420 | 0 | 0 | NOASSERTION | 2022-09-02T20:59:50 | 2015-07-18T00:03:57 | Python | UTF-8 | Python | false | false | 7,042 | py | # @dependency 001-main/001-empty/003-criticctl/002-adduser-deluser.py
# @dependency 001-main/001-empty/004-mixed/003-oauth.py
# @dependency 001-main/001-empty/004-mixed/004-password.py
# @dependency 001-main/003-self/028-gitemails.py
frontend.json(
"users",
expect={ "users": [user_json("admin", "Testing Admini... | [
"jl@opera.com"
] | jl@opera.com |
869a50983066c01546bfa59c724d88e8d2fa2d10 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/44730c28cc28b124da727c569ddc9706715f50b1-<main>-bug.py | a18ff146bef3def4007632f225c584366ee5ef90 | [] | 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,947 | py |
def main():
module = AnsibleModule(argument_spec=dict(login_user=dict(default=None), login_password=dict(default=None, no_log=True), login_host=dict(default='localhost'), login_port=dict(default='27017'), login_database=dict(default=None), replica_set=dict(default=None), database=dict(required=True, aliases=['db'... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.