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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c4ea1a55aa1857a24e8392dc9ee83a4a26653d2 | e29409a3128165f1cd9d698c3b44e883b23a518e | /doc/conf.py | 27d308bdcfb17afbd685096ed676923609206b51 | [
"BSD-2-Clause"
] | permissive | renefritze/nb2plots | e5b69e2e8fdcb947f44833e7a2fb7df76e079086 | ad269b151c746eb0072aa8f03a31121a39012522 | refs/heads/master | 2020-09-21T18:19:09.267839 | 2019-12-05T12:14:56 | 2019-12-05T15:53:18 | 224,879,955 | 0 | 0 | NOASSERTION | 2019-11-29T15:35:20 | 2019-11-29T15:35:20 | null | UTF-8 | Python | false | false | 10,244 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# nb2plots documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 16 08:41:58 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
40c2680cba8adb4f45b6f169538fa7388bd4ffaf | ccd1dced3b39f970c4d1b41f03d372b71a360194 | /property/migrations/0007_category_image.py | ab56a4074b926265ba07b2dd955a4f49c3fd6011 | [] | no_license | joescaos/hotel-ecommerce-site | 5ab815f85b7e4d09a06b963a7785010c068a24d8 | 0b40aaf73d0d6241df88fa4dfe6fa63d868ee9aa | refs/heads/master | 2022-09-29T07:59:02.474986 | 2020-06-06T00:51:55 | 2020-06-06T00:51:55 | 269,823,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.0.5 on 2020-05-31 01:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('property', '0006_auto_20200521_2139'),
]
operations = [
migrations.AddField(
model_name='category',
name='image',
... | [
"jxexcxo@gmail.com"
] | jxexcxo@gmail.com |
b8e08f8929644608f02c3d6e6fc8a410cd9c05cd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayFundEnterprisepayMemberModifyModel.py | d1d2f85425b69bf336ad21837ecf8dd2b333fe2d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 6,152 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.FundExtInfo import FundExtInfo
class AlipayFundEnterprisepayMemberModifyModel(object):
def __init__(self):
self._account_id = None
self._agreement_no = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
8dd0a54e2c18cc359f8bbc9a5a06659f45269823 | 4efd4fe7e848dc5973e350516ebfb57be015f5b6 | /inline_media/tests/parser.py | 111038f50b1f76514967b44f63baef82dc66db13 | [
"BSD-2-Clause",
"CC-BY-2.5"
] | permissive | MechanisM/django-inline-media | 468648eb7a8b909a4204fc3c05788a73988a7855 | e3ef3def173bcc9ac540123afe467894b635db85 | refs/heads/master | 2021-01-19T08:23:07.228198 | 2012-02-22T18:09:10 | 2012-02-22T18:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | #-*- coding: utf-8 -*-
import os
import shutil
import tempfile
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase as DjangoTestCase
from inline_media.models import InlineType
from inline_media.parser import MySoup, inlines, render_inline
from inline_media.widgets import Texta... | [
"danirus@eml.cc"
] | danirus@eml.cc |
ae75a4e4e98e779462934871276bedbdd4d46e90 | 431a1f738b1edfba7dad8d10a6b7520d51d917cb | /Samples/UserSamples/2018/ggH_Splits/ggH2Config.py | 88310b478b17319c11136fe426fcd9265a083a66 | [] | no_license | aloeliger/DatacardCreator | 5ce702e46fbb77e843b44d8fe088c2645a4a8f66 | 5c7e890276a5be079ed3b677a471c1dcadcba52d | refs/heads/master | 2022-02-26T19:52:30.563747 | 2022-02-16T20:24:48 | 2022-02-16T20:24:48 | 215,602,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.JES import JESUncertainty
from Samples.Uncertainties.UserUncertainties.ggHTheory import ggHTheoryUncertainty
from Samples.Uncertainties.UserUncertainties.MetRe... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
8e37aac511b0cae4341fac4bc5e433d598934167 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L41/41-35_wat_20Abox/set_2.py | 0d09b429cc615aa8547489fd53727cb51b0633aa | [] | 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 | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L41/wat_20Abox/ti_one-step/41_35/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
3d11100956a6fec50f50a061926d77f2677a4c40 | a62d603a0b31ccd77f9b2035c2740d4d25f2408d | /artistforum/artistforum/urls.py | b2b0502da749d37a8d5dbe8825c2d844170f78a6 | [] | no_license | shushantkumar/Projects | 44751949c2787e1ae4bb3909e0b37a6210680352 | e6ce305dc80ec7bd258e213271d0292f8f1e3cfd | refs/heads/master | 2021-01-02T22:34:35.854166 | 2018-04-22T07:30:37 | 2018-04-22T07:30:37 | 99,346,113 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """artistforum URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"shushantkmr2@gmail.com"
] | shushantkmr2@gmail.com |
5ced8005d7ca2b0d24eada8cddaa00c4a3825af9 | 696c1a00fbf09da67c37de2406c5394a5edcb166 | /tests/combined_model_tests/combined_model_tests.py | 4854a4daeffff3293082bec9ada559fe26bfd617 | [] | no_license | mengyx-work/xgboost_hyperopt | 7f52c5aa3fff81d029e3879630b373d79c4155bb | bbd80c489cb308309d45f1de1cc2676b13e29b6b | refs/heads/master | 2021-01-15T15:41:38.622028 | 2017-05-14T21:05:46 | 2017-05-14T21:05:46 | 55,736,994 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | import pandas as pd
import numpy as np
import os, sys, time
import yaml
import cPickle as pickle
sys.path.append('/home/ymm/kaggle/xgboost_hyperopt')
from utils.bosch_functions import load_processed_bosch_data
from utils.models import CombinedModel
from utils.validation_tools import score_MCC, MCC, create_validation_i... | [
"ymeng.ucla@gmail.com"
] | ymeng.ucla@gmail.com |
7168d5ad5f15baa04059a1819cae512b8d6ccff2 | cf4e5165a8408344a4c62e63a0fd2d0fe6308b37 | /15期/15 flask框架/13-使用蓝图划分模块/orders.py | a78452943880b1d6638e7eeb4f45bfaf6f0516f5 | [] | no_license | kennycaiguo/Heima-Python-2018 | 5f8c340e996d19f2b5c44d80ee7c144bf164b30e | a8acd798f520ec3d079cc564594ebaccb9c232a0 | refs/heads/master | 2021-01-08T10:54:18.937511 | 2019-09-01T14:37:49 | 2019-09-01T14:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # coding=utf-8
from flask import Flask, Blueprint
# 创建蓝图对象,蓝图就是一个小模块的概念
app_orders = Blueprint("app_orders", __name__, template_folder="templates")
@app_orders.route("/get_orders")
def get_orders():
return "get orders page"
@app_orders.route("post_orders")
def post_orders():
pass
| [
"microease@163.com"
] | microease@163.com |
a849ea55c243f6df2ba62ce912a03beb7a554c9b | bfc0a74a378d3692d5b033c21c29cf223d2668da | /unittests/pytests/utils/TestPylith.py | de1c2d7ed43609cfec1e7c351ee3ff7dead84b91 | [
"MIT"
] | permissive | rishabhdutta/pylith | b2ed9cd8039de33e337c5bc989e6d76d85fd4df1 | cb07c51b1942f7c6d60ceca595193c59a0faf3a5 | refs/heads/master | 2020-12-29T01:53:49.828328 | 2016-07-15T20:34:58 | 2016-07-15T20:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
cccc2caec8badcd13bf957235949812bb9349150 | 6ed48bf3c72e61fe53144a3545ab305112c93501 | /appengine/findit/util_scripts/remote_api.py | d49a94ae16abf3e15f56036cd09699fb730490c3 | [
"BSD-3-Clause"
] | permissive | eunchong/infra | ee5f7a9379977de8c814f90dbba3f6adbf06a75c | ce3728559112bfb3e8b32137eada517aec6d22f9 | refs/heads/master | 2022-11-27T06:26:57.415805 | 2016-04-08T12:34:36 | 2016-04-08T12:34:36 | 55,699,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | # Copyright 2015 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.
"""This module is used to set up Remote API to use services on App Engine.
After setup, available services include datastore, task queue, etc.
You may be pr... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
117c969597f63a06bb56b3e40e60ba582e8ba33d | e1f87c26f973bd31da1f53dfef37ff4a8c7fd0b6 | /packs/github/sensors/github_repository_sensor.py | 80f7b909a2eb52584b114f38e3945c6d1560e86d | [
"Apache-2.0"
] | permissive | meirwah/st2contrib | 4470028cf467dfe33ccebe2ebb224c79edc6642e | 0743c96abc04ccda983303c4bdb744929dc17fd2 | refs/heads/master | 2021-01-22T02:13:20.290982 | 2015-08-30T11:39:03 | 2015-08-30T11:39:03 | 38,318,169 | 1 | 2 | null | 2015-06-30T15:45:15 | 2015-06-30T15:45:15 | null | UTF-8 | Python | false | false | 5,136 | py | import eventlet
from github import Github
from st2reactor.sensor.base import PollingSensor
eventlet.monkey_patch(
os=True,
select=True,
socket=True,
thread=True,
time=True)
DATE_FORMAT_STRING = '%Y-%m-%d %H:%M:%S'
class GithubRepositorySensor(PollingSensor):
EVENT_TYPE_WHITELIST = [
... | [
"tomaz@tomaz.me"
] | tomaz@tomaz.me |
0cb32b495378935ca0dc58cd114e1c9f37142914 | 0c14e45bd96dcbdd344e038705822ffce90aba4e | /application.py | 3bdd304a07cf828f4ba8632fc5a73c5751c60864 | [] | no_license | qiwsir/json-diff | 624b18833832edaab62180a1bdf0c10c19f9fefc | bb5ae3798fcf24c0e3d20ba7cb6bd63dce217620 | refs/heads/master | 2021-01-16T21:08:39.725121 | 2014-11-13T15:25:11 | 2014-11-13T15:25:11 | 26,757,081 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | #! /usr/bin/env python
#coding:utf-8
from method import diffmethod
from dboption.mongodb import *
import json
import datetime
import time
import json_tools
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
def diff():
"""
find the difference between the two JSONs.
"""
gene_last = [ ele["_id"... | [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
22cce749bf9d8f333797bf9494f8885489e03119 | fa89836a6759151896a07650747462b8cda40610 | /mse/mapdata/migrations/0008_auto_20180223_2200.py | b0b78b056bec3467aec86819cb31761fc5f1df5d | [] | no_license | DigitalGizmo/mse21 | 334813bfebec9b78f0541744e54f218f9cc6936b | 89f1c0f9c05cefaaa8c703732ee4e4642aecd3c9 | refs/heads/master | 2023-07-09T13:29:13.903900 | 2018-03-26T19:26:09 | 2018-03-26T19:26:09 | 126,878,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-02-24 03:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mapdata', '0007_auto_20180223_2119'),
]
operations = [
migrations.AlterFiel... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
c51f89c655b8803a2b1d658b3ed1d38be188103a | 67f988dedfd8ae049d982d1a8213bb83233d90de | /external/chromium/build/android/run_monkey_test.py | 433b2bdd5f81c748e3497f34f25e25487ffdb2b1 | [
"BSD-3-Clause"
] | permissive | opensourceyouthprogramming/h5vcc | 94a668a9384cc3096a365396b5e4d1d3e02aacc4 | d55d074539ba4555e69e9b9a41e5deb9b9d26c5b | refs/heads/master | 2020-04-20T04:57:47.419922 | 2019-02-12T00:56:14 | 2019-02-12T00:56:14 | 168,643,719 | 1 | 1 | null | 2019-02-12T00:49:49 | 2019-02-01T04:47:32 | C++ | UTF-8 | Python | false | false | 5,697 | 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 the Monkey tests on one or more devices."""
import logging
import optparse
import random
import sys
import time
from pylib... | [
"rjogrady@google.com"
] | rjogrady@google.com |
d77e14f58ee39af8660b99b10fb1fe3800ec8f01 | 1d7a40fde9c4da1cdb70f7e641a7dd65a8eba1a8 | /scripts/data/__init__.py | bfae36d4a18366f86026d2c4834e343a27d94655 | [
"BSD-3-Clause"
] | permissive | dezede/dezede | 675c5f6c05beffa5ad855ab521c19c077a188039 | f50d2d478b473ac2acce1c5f6f9748c6211d593c | refs/heads/master | 2023-08-25T13:26:47.939378 | 2023-08-14T20:24:51 | 2023-08-14T20:25:02 | 9,086,660 | 18 | 6 | BSD-3-Clause | 2023-06-05T16:32:57 | 2013-03-28T21:22:39 | Python | UTF-8 | Python | false | false | 20 | py |
data_modules = [
]
| [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
fd6ab081d187f04abb302d2404e52c16f876fa11 | 048cda95057e9852b7f1cebbab864ea10e3fc0db | /crawler/v1/yehey.py | d8db31fceb0c5421bbcdb9b8fa70b42b9a447127 | [] | no_license | AMAtreus/dg_crawler_website | fa9e587cf07549c0752bb88a8f61b1057496da26 | 1bcb03a48aff1ebca4e04a5c060be299ca9881d4 | refs/heads/master | 2023-08-17T09:56:51.379743 | 2021-10-13T13:50:23 | 2021-10-13T13:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | from crawler.spiders import BaseSpider
import requests
# 此文件包含的头文件不要修改
import scrapy
from utils.util_old import *
from crawler.items import *
from bs4 import BeautifulSoup
from scrapy.http import Request, Response
import re
import time
import json
class yehey(BaseSpider):# cyl
name = 'yehey'
# allowed_domains ... | [
"2782299413@qq.com"
] | 2782299413@qq.com |
71b991b29176ceeb40dd18fb108913132eac9b9c | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/028_log_mod_onboarding_msgs_up.py | 2d6e3dc23a0f321e5d54cd071e2830380b16a154 | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 850 | py | import unittest
import helper
class UpTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollback... | [
"noreply@github.com"
] | LoansBot.noreply@github.com |
61459c90cd48b2ee3302ca8357924844cce4aef0 | 7fc26de436ad958fc02e11fc7f7486f9ac775d0b | /services/url_lookup/project/api/url.py | 533675f407a56387237c088a49ac2be9f518316b | [] | no_license | chenjienan/url_lookup_service | 633071d78598b2ee248b6a6fc3ceee2bf4ccca9b | ef10d58450af97221697ac0fa26cfb9e5a43415e | refs/heads/master | 2023-05-12T00:09:36.278356 | 2019-08-06T16:45:05 | 2019-08-06T16:45:05 | 199,910,038 | 0 | 0 | null | 2023-05-01T21:14:08 | 2019-07-31T18:36:20 | Python | UTF-8 | Python | false | false | 2,698 | py | from flask import Blueprint, request, jsonify
from flask_restful import Resource, Api
from sqlalchemy import exc
from project import db
from project.api.models import Url
from urllib.parse import unquote
import tldextract
url_blueprint = Blueprint('url', __name__)
api = Api(url_blueprint)
class UrlList(Resource)... | [
"chenjienan2009@gmail.com"
] | chenjienan2009@gmail.com |
079e09457902766095c8d29b7e0de221c64610d5 | 48661992ea5d378437aa245bc2469d9677678fbc | /changecsv.py | d358fb5cd0d7309fed5ab796bf09c38300e23a08 | [] | no_license | sakurasakura1996/kaggle | a4f259ff0a89395d0801cfcd1215d2794598dcce | d159ccaebcc4fcd3013f746d6f280b4914ad9945 | refs/heads/master | 2020-09-11T22:51:34.604108 | 2019-12-08T06:51:45 | 2019-12-08T06:51:45 | 222,216,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # 修改一下sub.csv的输出 输出序号从1开始,然后label是整数
import csv
import numpy as np
train_data = []
openfile = open('./sub.csv', 'r')
read = csv.reader(openfile)
for line in read:
train_data.append(line)
# print(line)
train_data = np.array(train_data) | [
"2470375551@qq.com"
] | 2470375551@qq.com |
7acf6789b67228e00bf1be4e74c42b43dcefa3e8 | a9a10382236404d65cd7909adf12bf41b6a59085 | /django_and_full_stack/multi_madlib/web_madlib/web_madlib/views.py | de5b1f7511c5e47a2d346ade9d3fcb4dd9a746ed | [] | no_license | shedwyn/codeguild | 9718038613d082b3a21f2b4ba56cf6cbb282606a | db792b1a13b32d6b135398b21f6a5124a75c639b | refs/heads/master | 2020-04-06T14:36:03.617029 | 2016-09-20T19:48:38 | 2016-09-20T19:48:38 | 55,080,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | """
Python Coding Bootcamp (pdxcodeguild)
Code File for web_madlib/views.py
by: Erin Fough and Matthew James K on 5/9/2016
"""
from django.http import HttpResponse
def get_httpresponse_to_request(request=[], sentence=''):
"""
This function accepts the sentence for each numbered request, and the re... | [
"shedwyn@gmail.com"
] | shedwyn@gmail.com |
5ef24cba12de0d3932574c98055682b47fb59215 | faca44e8424959ecd04098ccf936e6f5f80c8465 | /lessons/103-datetime.py | d4e481bf984cf1eaf889fa304cda67ee528e858a | [] | no_license | craymaru/python_practice | 01b0153631d83b2566e31a54346110f632412703 | 7616cbb945f432aa80d43408631b59afb90bf0f5 | refs/heads/master | 2021-05-20T10:12:07.245941 | 2020-05-19T14:33:14 | 2020-05-19T14:33:14 | 252,242,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import datetime
print("datetime:")
now = datetime.datetime.now()
print(now)
print(now.isoformat())
print(now.strftime("%d/%m/%y-%H%M%S%f"))
today = datetime.date.today()
print(today)
print(today.isoformat())
print(today.strftime("%d/%m/%y"))
t = datetime.time(hour=1, minute=10, second=5, microsecond=100)
print(t)
p... | [
"craymaru@gmail.com"
] | craymaru@gmail.com |
3f0729620abccdeb6d4a9f3848fc18bcc0de6521 | 0103046cd77e9f86ccde477736de36bba766ceb6 | /src/sentry/migrations/0143_add_alerts_integrationfeature.py | 8ebf10baaca631b26cd1f6b68dae5ac7c842b3e8 | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | kaozdl/sentry | ad41ada649a20300e9f2fe69050200cfbf738a63 | 63d698f5294f64a8c206b4c741e2a11be1f9a9be | refs/heads/master | 2021-06-21T18:24:21.713064 | 2021-03-04T19:45:20 | 2021-03-04T19:45:20 | 198,681,569 | 0 | 0 | BSD-3-Clause | 2019-07-24T17:32:29 | 2019-07-24T17:32:28 | null | UTF-8 | Python | false | false | 2,008 | py | # Generated by Django 1.11.29 on 2020-12-10 23:55
from django.db import migrations
import sentry.db.models.fields.bounded
class Migration(migrations.Migration):
# This flag is used to mark that a migration shouldn't be automatically run in
# production. We set this to True for operations that we think are ri... | [
"noreply@github.com"
] | kaozdl.noreply@github.com |
72bd965eb35957d66906599b19f40556c0cd940b | 06e34e2dface0b87fa785cab7e65422a5f20ba18 | /Solutions/1822.Sign of the Product of an Array/python.py | efc08c79677082b17cc8158628db075c809fd996 | [] | no_license | JerryHu1994/LeetCode-Practice | c9841b0ce70451c19c8a429a3898c05b6233e1d4 | b0ce69985c51a9a794397cd98a996fca0e91d7d1 | refs/heads/master | 2022-02-10T04:42:28.033364 | 2022-01-02T04:44:22 | 2022-01-02T04:44:22 | 117,118,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | class Solution:
def arraySign(self, nums: List[int]) -> int:
ans = 1
for n in nums:
if n < 0:
ans *= -1
elif n == 0:
return 0
return ans | [
"hjr01211@gmail.com"
] | hjr01211@gmail.com |
bba941cbd7a031aba596f35b0cd5f58040fc39ac | 9d35f59c102236581e010e24ae39dd4a1c876aca | /fbauth/managers.py | f818d969d504b5fb08a0ddfbddc0c210e9ea6709 | [
"MIT"
] | permissive | Tuss4/django-fb-oauth | 195d30f19b7fa3b43cf1b337c2178fffb1c4a7ef | 9098ab3ea77e7695affd5c793c35d05ae61b1cdb | refs/heads/master | 2021-07-17T17:30:09.435330 | 2016-02-07T08:02:45 | 2016-02-07T08:02:45 | 51,091,583 | 2 | 0 | MIT | 2021-06-10T18:27:59 | 2016-02-04T17:10:42 | Python | UTF-8 | Python | false | false | 408 | py | from django.db import models
from django.contrib.auth import get_user_model
class FBManager(models.Manager):
"""Manager method to create a Facebook User"""
def create_fb_user(self, fb_id, token, **kwargs):
user = get_user_model().objects.create_user(**kwargs)
fbt = self.model(user=user, face... | [
"tuss4dbfn@gmail.com"
] | tuss4dbfn@gmail.com |
3b7113ec2fe7f30d44c4a0e4f1c9e0a04ee4f474 | 360e1f69f4c0923c5d79bc82aa33c0fd4e80b71e | /RECURSION/subsets.py | f334469a9f4ddc3cb74e3afb1d219f81e37a0ac4 | [] | no_license | Vijay1234-coder/data_structure_plmsolving | 04e52fe6c918313e13d39107a2ded8b47645bb12 | d449b266295d1ae55613cdcfd9b22ad9cee3dfbe | refs/heads/master | 2023-08-01T00:55:28.825972 | 2021-09-12T15:20:12 | 2021-09-12T15:20:12 | 387,782,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def subSets(arr,index,sub):
if index==len(arr):
if len(sub)!=0:
print(sub)
else:
subSets(arr,index+1,sub)
subSets(arr,index+1,sub+[arr[index]])
return sub
arr = [1,2,3]
n = len(arr)
subSets(arr,0,[]) | [
"77201164+Vijay1234-coder@users.noreply.github.com"
] | 77201164+Vijay1234-coder@users.noreply.github.com |
016c0b20397a06625c09871ea2375ffd3f6a0c97 | dfe2a52a1c36a28a8bf85af7efd42380d980b773 | /virtual/lib/python3.6/site-packages/registration/migrations/0001_initial.py | 5c56041a6ca8b00eff3ae7668f2cfc0281c5d363 | [
"MIT"
] | permissive | virginiah894/Instagram-clone | 2c2a15d89fcdb25b22bd60428cf84a01f3bd553c | 4d8abe7bafefae06a0e462e6a47631c2f8a1d361 | refs/heads/master | 2022-12-10T06:56:21.105357 | 2020-01-07T14:14:50 | 2020-01-07T14:14:50 | 229,394,540 | 3 | 0 | MIT | 2022-12-08T03:23:40 | 2019-12-21T07:41:19 | Python | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
acfa5f0d183bd41ee79f4a9b874cb03788f3ca7c | 5d605697cd6bb493250718232d9e95c69f624103 | /code/train-est-mod-var/halo_unet.py | 7a248e48f709272bc78904f415e5b29854edcbf6 | [
"MIT"
] | permissive | modichirag/galmodel | 738a257e3fad89efd0f5698077c0c0ae67a99145 | d3243b8f2f51d558255346a37f2bda2f83274e3d | refs/heads/master | 2020-04-05T14:19:51.838549 | 2019-09-25T05:08:49 | 2019-09-25T05:08:49 | 156,924,087 | 4 | 1 | MIT | 2019-09-25T05:08:53 | 2018-11-09T22:17:24 | Jupyter Notebook | UTF-8 | Python | false | false | 12,405 | py | import numpy as np
import matplotlib.pyplot as plt
#
import sys, os
sys.path.append('../utils/')
import tools
import datatools as dtools
from time import time
os.environ["CUDA_VISIBLE_DEVICES"]="0"
#
import tensorflow as tf
from tensorflow.contrib.slim import add_arg_scope
from layers import wide_resnet
import tensorfl... | [
"modichirag@berkeley.edu"
] | modichirag@berkeley.edu |
e89bf19c8f53855bfc3e1277c31a3391c13eeba9 | 33621e000244ef274de9f4da3f1afc83a130414f | /tests/test_version.py | 231a11632b4ac9665f625fd51b51dbfbda2a92cb | [
"MIT"
] | permissive | pombredanne/i18nspector | 8901b7dd39b2a9e662edd0870906bbe683ba1960 | abf543ccad9034e6278af0ba1bb6a384193c799b | refs/heads/master | 2021-01-19T20:09:06.069438 | 2017-07-04T08:26:38 | 2017-07-04T08:26:38 | 83,740,280 | 0 | 0 | null | 2017-07-04T08:26:39 | 2017-03-03T00:50:28 | Python | UTF-8 | Python | false | false | 1,911 | py | # Copyright © 2012-2013 Jakub Wilk <jwilk@jwilk.net>
#
# 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, modify, mer... | [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
8e281a5b517d5197c5e02452a34be7e31c26bc61 | 5191423bc86a4e56845c737b4ce6853f3faef90e | /pytautulli/const.py | 705a83cdab7eff5546a0fac20c880319ed7c337e | [
"MIT"
] | permissive | ludeeus/pytautulli | 075d354d03a50dab0ffb7d9425bb4015c1ff443d | 0cf5b826c2033882b582287bbd0056d81a30065f | refs/heads/main | 2023-04-09T15:51:02.346720 | 2023-02-04T14:35:39 | 2023-02-04T14:35:39 | 141,796,012 | 2 | 5 | MIT | 2023-03-29T06:59:02 | 2018-07-21T08:46:33 | Python | UTF-8 | Python | false | false | 374 | py | """Pytautulli constants."""
from enum import Enum
from logging import Logger, getLogger
API_HEADERS = {"Content-Type": "application/json"}
LOGGER: Logger = getLogger(__package__)
ATTR_RESPONSE = "response"
ATTR_DATA = "data"
class HTTPMethod(Enum):
"""HTTPMethod Enum."""
GET = "GET"
POST = "POST"
... | [
"noreply@github.com"
] | ludeeus.noreply@github.com |
945cbd4408c837958ac33a2794a1fa4bf98b2e3e | 0a3c85ca1388a6e9935509a0488f4027f40986f8 | /tests/issues/test_477.py | db9dd56244047b7eaa042b6be812e4e239298667 | [
"Apache-2.0"
] | permissive | langitem/hgvs | cbf4c9f22f4e8bd0523a8948e63b3bc95599c7ff | 0dac443b9dc565c7fdca5a4b8de40b3fea7624f4 | refs/heads/master | 2020-04-18T00:37:30.157853 | 2019-02-25T19:24:59 | 2019-02-25T19:24:59 | 167,084,812 | 0 | 0 | Apache-2.0 | 2019-02-16T01:57:14 | 2019-01-22T23:42:34 | Python | UTF-8 | Python | false | false | 3,213 | py | import pytest
from hgvs.exceptions import HGVSInvalidIntervalError
tests = (
# {"c": "", "g": "", "rs": "" },
# GPHB5, GRCh37 https://www.ncbi.nlm.nih.gov/gene/122876
{"c": "NM_145171.3:c.-63A>G", "g": "NC_000014.8:g.63785599T>C", "rs": "GPHB5/GRCh37/rs1299953722", "ex": HGVSInvalidIntervalError },
{... | [
"reecehart@gmail.com"
] | reecehart@gmail.com |
3588bec4261cc0eb788f5aa02ad1e5db0f2d19ec | db9b3be76bb5502d0b11a23ee829efbe328d68b2 | /python/decoretors/actual decorator/using_decorator.py | c32ca1660ad581167ad793785de47c1c3cd8ed78 | [] | no_license | NARESHSWAMI199/python | 2cdf240a8610815b4fb64fcb3e8beeafd3191aab | 4896345ea2af623c76b06083bcfb38d90f318c88 | refs/heads/master | 2020-12-01T16:47:49.974094 | 2019-12-29T04:32:03 | 2019-12-29T04:32:03 | 230,702,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py |
from functools import wraps
def decorator(func):
@wraps(func)
def warpper(*args, **kwargs): # this args take as a tuple
''' this is a warpper function'''
print("this is a awsome function ")
return func( *args,**kwargs)
# also use return here beacuse some function will return someth... | [
"swaminaresh993@gmail.com"
] | swaminaresh993@gmail.com |
b7327ec48991201cec6ef1c2fe84990ae5ce6d4e | 709b56d4b045d9dc671a922bf95e4477def3aa51 | /Python-3.8.7/Lib/shutil.py | 6986bce8aaee2d30a7a4a8b1b397f4ac15a8738e | [
"MIT",
"GPL-1.0-or-later",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"0BSD",
"LicenseRef-scancode-free-unknown"
] | permissive | Gizmotronn/django-start | 1240ba3e3050f618364654e53a0f69f65c5c1f52 | f2046e04655d9040f4a55f3c771f87e323e33313 | refs/heads/master | 2023-03-19T12:23:19.980979 | 2021-01-28T22:08:30 | 2021-01-28T22:08:30 | 274,297,608 | 4 | 2 | MIT | 2021-03-20T05:50:25 | 2020-06-23T03:16:15 | Python | UTF-8 | Python | false | false | 50,924 | py | """Utility functions for copying and archiving files and directory trees.
XXX The functions here don't copy the resource fork or other metadata on Mac.
"""
import os
import sys
import stat
import fnmatch
import collections
import errno
try:
import zlib
del zlib
_ZLIB_SUPPORTED = True
except ImportError:... | [
"noreply@github.com"
] | Gizmotronn.noreply@github.com |
dc6194d9f9bf211787a355e6de94714e28514b5e | 6b63845777e94a06ebd4c728fee3fb3127d97033 | /setup.py | a32d9928d614164775df821d7305e5b6c3d84670 | [
"BSD-2-Clause"
] | permissive | mstaniszczak/python-redis-lock | 86c517a6d8b825ac767c8f6cd06f59519e0bf973 | 5cfa2f48cb06940355fb7776b16742b32c779571 | refs/heads/master | 2020-07-26T08:13:31.863248 | 2019-11-18T14:45:35 | 2019-11-18T14:45:35 | 208,586,940 | 0 | 0 | BSD-2-Clause | 2019-09-15T11:56:11 | 2019-09-15T11:56:10 | null | UTF-8 | Python | false | false | 2,945 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import find_packages
fro... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
1934058aa2a961fccfeb79e210fbfa47f3df6f84 | 67cb31c6ac800dd8a3b6f9cfde21bf619871d0de | /two-sum-closest.py | 7523709d919495e37dda24deade2815c905528a7 | [] | no_license | onestarshang/leetcode_onestar | 93a5fbafaa49bb7f186eafdee5accc031c8893db | 2d6f1235b0ce311a0a2e46f157521430f17140e1 | refs/heads/master | 2021-01-19T20:30:49.169149 | 2017-06-16T05:12:58 | 2017-06-16T05:12:58 | 88,514,095 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # coding=utf8
'''
找到两个数字使得他们和最接近target
nums = [-1, 2, 1, -4],target = 4.
最接近值为 1
'''
class Solution:
# @param {int[]} nums an integer array
# @param {int} target an integer
# @return {int} the difference between the sum and the target
def twoSumClosest(self, nums, target):
# Write your code... | [
"onestar1967@gmail.com"
] | onestar1967@gmail.com |
dbaee83d67af86e8bc68165648dfd407ad7f3b3f | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /torch/distributed/fsdp/_fsdp_extensions.py | 1f087f44b573970d1e27e823f8ddbd18f756a8ca | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 3,174 | py | from abc import ABC, abstractmethod
from typing import Any, List, Optional, Tuple
import torch
import torch.distributed as dist
from torch.distributed._shard.sharded_tensor.api import ShardedTensor
from torch.distributed._shard.sharded_tensor.shard import Shard
from torch.distributed.fsdp._shard_utils import _create_c... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
3cf3c1f1d35bc706b4bad88d510bd47402af2346 | c487885e2b43f1dbaa8b06a6ad379550a6d8de16 | /work/022-web-crawl/program.py | 830209341c6466bf3b46af269bdcfc7aa8d367bb | [] | no_license | tbrlpld/100daysofweb-with-python-course | 3395a9d055e7e0d9b04785a48fe7dbd5e8d3a080 | 6b80c01a33d144107fe1bebe402f22cf23fc5408 | refs/heads/master | 2023-01-24T10:57:17.308107 | 2020-09-07T01:02:57 | 2020-09-07T01:02:57 | 215,710,767 | 2 | 0 | null | 2023-01-05T14:54:23 | 2019-10-17T05:34:23 | JavaScript | UTF-8 | Python | false | false | 1,050 | py | import requests
import bs4
from colorama import Fore
def get_html(episode_number: int) -> str:
print(Fore.YELLOW + f"Getting HTML for episode {episode_number}", flush=True)
url = f'https://talkpython.fm/{episode_number}'
resp = requests.get(url)
resp.raise_for_status()
return resp.text
def get... | [
"tibor@lpld.io"
] | tibor@lpld.io |
f6719e445232e1c84992d697f3fcc76afaf4c267 | 7e96ba20c25c6fb56af6ccd36b3b6d68df6a081c | /Kyle_Marienthal/DJANGO/wishlist/apps/wish_app/urls.py | d928425723734900ca75a11317fa753b0ac948ee | [] | no_license | CodingDojoDallas/python_september_2017 | 9d8cd74131a809bc6b13b7f465594cf8b1e2fd75 | f9f2f7b39bf9c4fceda3df5dc7424164aa5d5df5 | refs/heads/master | 2021-01-23T08:52:22.899994 | 2017-10-30T17:00:55 | 2017-10-30T17:00:55 | 102,558,291 | 2 | 14 | null | 2018-01-13T05:28:34 | 2017-09-06T03:28:38 | Python | UTF-8 | Python | false | false | 557 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^dashboard$', views.dashboard, name='dashboard'),
url(r'^wish_item$', views.wish_item, name='wish_item'),
url(r'^create$', views.create_item, name='create_item'),
url(r'^show_wish/(?P<id>\d+)$', views.show_wish, name='show_wish')... | [
"kylemarienthal@gmail.com"
] | kylemarienthal@gmail.com |
7bd4767c83974c3317ae920f888f7a5b4a9dff45 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/sympy/logic/algorithms/dpll.py | 62041c20519eb86cbcd92273b4ee8d2ed89d4101 | [
"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 | 9,253 | py | """Implementation of DPLL algorithm
Further improvements: eliminate calls to pl_true, implement branching rules,
efficient unit propagation.
References:
- http://en.wikipedia.org/wiki/DPLL_algorithm
- https://www.researchgate.net/publication/242384772_Implementations_of_the_DPLL_Algorithm
"""
from __future__ impo... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
68bd7d76d90c36e16e1c519cefc8671496e0247f | b29589f95734682663ae6cd40ab00eb0a94b6d87 | /longwave/lblnew_20160916/study__g1_threshold/n2o/conc_3.2e-07/band03a_wn_540_620/nv_200/dv_0.005/ng_3/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_1__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20/atmpro_mls/wgt_k_1/wgt_0.9__0.5_0.95/wgt_flux_1/w_diffuse_1.8__1.66... | 1efa8ff08b38418af19888072c3fb5e9fe5cb613 | [] | no_license | qAp/offline_radiation_notebooks | 02c2b2414ef1410f235776001a668f7df0b9f1cf | 44fb62391c27e4e314ad68ae3e91f6111b3172c5 | refs/heads/master | 2020-04-15T14:31:34.675322 | 2019-07-08T04:45:54 | 2019-07-08T04:45:54 | 43,118,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/n2o/conc_3.2e-07/band03a_wn_540_620/nv_200/dv_0.005/ng_3/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_1__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20/a... | [
"llacque@gmail.com"
] | llacque@gmail.com |
2569b26ea00537888870b42898de01514eb98c50 | a873f3cd46a10ad879fc56d78e1f533d8bf486c0 | /vova_project/vova_resful/接口/loc3.py | 1ebd4430df919e0ff85e243af0f32555921ed583 | [] | no_license | shenhaiyu0923/resful | d0301b39363e6b3d3659f62fa4a9b2532ebcd225 | 1e66cae7d68fa231794776953cc1a5e999bf36c6 | refs/heads/master | 2021-07-08T20:46:57.300298 | 2021-06-01T08:17:27 | 2021-06-01T08:17:27 | 244,308,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | from locust import HttpLocust, TaskSequence, task, TaskSet
from pprint import pprint
from random import randint
import os
'''
1. 实现登陆基本功能,输出响应,脚本正确
2. 多用户随机登陆:在doLogin方法里构造随机数据。 -LR:参数化 Jmeter : 参数化
3. 添加初始化方法on_start:类似于构造方法,每个用户只运行一次
4. 添加检查点:断言
- 在请求方法中设置catch_response参数为True
- 调用success和feature方法标注成功或失败
'''
# 任... | [
"1802161998@qq.com"
] | 1802161998@qq.com |
96702d0e44ae4a9a31a61c1639af7cc8917fd069 | 7e72e16f43170749dada023624a88fd622727639 | /jdcloud_sdk/services/monitor/models/DescribeAlarmingRulesEnd.py | 05a8f48f0d26c1478fdc96f2918611bc48513a30 | [
"Apache-2.0"
] | permissive | jdcloud-demo/jdcloud-sdk-python | 4dc1e814217df16c5f60f5e4b3f8260b770f9d2b | fddc2af24031c597948b8b8091978ac7e01a2695 | refs/heads/master | 2020-07-11T18:19:59.688112 | 2019-08-23T05:55:18 | 2019-08-23T05:55:18 | 204,613,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
728e0e56dc869b0274f7b832fdc35d1ddddf9393 | 57da072d37d59f00301e7483fdee067a244f24ce | /autobots/spider/test.py | 16cdf605c823d2c3aa45aba5b337bb417a119592 | [] | no_license | KonroyZhu/auto_project | 47919879e5f4b78ef082e7e76be2c2bb958018d3 | c0f10e8ee24342ede402a5694a20d160322eb8c1 | refs/heads/master | 2021-03-30T21:17:46.470105 | 2018-03-10T09:41:44 | 2018-03-10T09:41:44 | 124,640,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
url="https://www.baidu.com/"
driver=webdriver.PhantomJS()
dcap=dict(DesiredCapabilities.PHANTOMJS)
dcap["phantomjs.page.settings.userAgent"]=(" Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 F... | [
"1433192948@qq.com"
] | 1433192948@qq.com |
cee42ce181f4e1b5dfe899aa01006622846891c3 | 1a6c2be5ff1a8364c97a1ede23c824b2579ecf79 | /tfx/tools/cli/kubeflow_v2/commands/run_test.py | 46bb0730fdc04d5a2c3f65c8b83d3ee5b7b8f0ea | [
"Apache-2.0"
] | permissive | 418sec/tfx | fa1a4690df2178e9c6bd24f97df0bbde7436df95 | df1529c91e52d442443eca5968ff33cf0a38dffa | refs/heads/master | 2023-04-18T12:25:38.098958 | 2021-04-28T16:11:00 | 2021-04-28T16:11:00 | 333,769,030 | 2 | 1 | Apache-2.0 | 2021-04-28T16:11:01 | 2021-01-28T13:35:14 | null | UTF-8 | Python | false | false | 1,587 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
ea2aa7a6be899b5c63b9a6e52a3e81d525669b50 | 0ae05ab700b3a7678186d34dfb602cfe347b1377 | /AB_spatial/code/Adi_29Nov2018_10-15.py | a345273206124586a22d20773cc04768bee0372e | [
"CC-BY-4.0",
"MIT"
] | permissive | Adibuoy23/spatio_temporal_information_processing | 20c68cae4e673171c95867e2a2b444894d814104 | a16485aa2e68b1c12043a29b5c1faf56db0ae10f | refs/heads/master | 2021-08-06T13:17:24.662844 | 2020-04-22T23:53:56 | 2020-04-22T23:53:56 | 157,260,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,182 | py | # Alex Holcombe alex.holcombe@sydney.edu.au
# See the README.md for more information: https://github.com/alexholcombe/attentional-blink/blob/master/README.md
# git remote add origin https://github.com/alexholcombe/attentional-blink.git
from __future__ import print_function
from psychopy import monitors, visual, event, ... | [
"supadhy6@jhu.edu"
] | supadhy6@jhu.edu |
689cb975bfecd8db5e093abf10d4ce088eda3841 | 77c2010bb9533ecbdfa46cd41c16ee5ae26e94fa | /blog/urls.py | f47fe3383b5e4c15a25bebd8f057c5476da21240 | [] | no_license | dimansion/portfolio-django | b2cbb28dff97dd03cdf795f0bc661d39bcfae83d | 2dffe0e8579b2a426cb7aceb1ee085933b122d90 | refs/heads/master | 2020-05-23T08:15:38.205372 | 2017-03-05T14:44:14 | 2017-03-05T14:44:14 | 70,251,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.conf.urls import url
from django.contrib import admin
from .views import (
post_list,
post_create,
post_detail,
post_update,
post_delete,
)
urlpatterns = [
url(r'^$', post_list, name='list'),
url(r'^create/$', post_create),
url(r'^(?P<slug>[\w-]+)/$', post_detail, name='detail'),
url... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
952a83fef5c7290c002d8325d0d09c4de2fc2f89 | 94d5467b1315791fa75165eb862fdd8fef300958 | /yunyan_baotou/src/user_prob/bak/prob_trans.py | 5c962bdbf3d75cd901bff55b83083745fea7fde2 | [] | no_license | scmsqhn/code | e31926174c247d49c1db8f121e3ec1b82f8a2d9d | b389d7dc5fafad8a4185a03cd6d5519ccf8f99df | refs/heads/master | 2022-12-09T05:37:07.065840 | 2019-05-14T01:55:07 | 2019-05-14T01:55:07 | 185,903,771 | 1 | 0 | null | 2022-12-08T05:05:51 | 2019-05-10T02:22:28 | Python | UTF-8 | Python | false | false | 448 | py | #P={'B': {'E': -0.510825623765990, 'M': -0.916290731874155},
# 'E': {'B': -0.5897149736854513, 'S': -0.8085250474669937},
# 'M': {'E': -0.33344856811948514, 'M': -1.2603623820268226},
# 'S': {'B': -0.7211965654669841, 'S': -0.6658631448798212}}
P={'B': {'E': -3.2770032528476309, 'M': -1.030296703073057},
'E': {'B': -... | [
"2364839934@qq.com"
] | 2364839934@qq.com |
d923053a034a799be752fd757cda0a0a54a7f8e4 | b3c3b09a2abc71b35fc54da16f2b4d88b254fc4b | /zerver/views/development/integrations.py | fba4308be9525cf13491593a658ca06e12e346b9 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | yovanycunha/zulip | 2fc57ba2f35736d13b609f763e1b36f6686c4a80 | 339f742578c15cc9c72d44963e621986629818bb | refs/heads/master | 2020-09-03T04:12:41.356314 | 2019-11-03T22:02:37 | 2019-11-03T23:51:19 | 219,382,296 | 1 | 0 | Apache-2.0 | 2019-11-03T23:51:44 | 2019-11-03T23:51:44 | null | UTF-8 | Python | false | false | 5,681 | py | import os
import ujson
from typing import Any, Dict, List
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
from django.test import Client
from zerver.lib.integrations import WEBHOOK_INTEGRATIONS
from zerver.lib.request import has_request_variables, REQ
from zerver.lib.response imp... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
45d3ae300ef4fa451f0e6b75cff19ba93f979adc | aa0270b351402e421631ebc8b51e528448302fab | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_results_operations.py | 58b5481810d826165bfeac369e00feb3a9394861 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 7,201 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
5ac37bff1e1c67144707a66c27ca55b95a253605 | e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14 | /top/api/rest/ItempropvaluesGetRequest.py | 1641824f67bf20947dfd5c1e6d7cc49197575d1e | [] | no_license | htom78/taobao_comet_py | 9224dbca1a413a54bcc5569873e4c7a9fc9ba059 | ad8b2e983a14d3ab7665244449f79dd72f390815 | refs/heads/master | 2020-05-17T10:47:28.369191 | 2013-08-27T08:50:59 | 2013-08-27T08:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | '''
Created by auto_sdk on 2013-06-16 16:36:02
'''
from top.api.base import RestApi
class ItempropvaluesGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.cid = None
self.fields = None
self.pvs = None
self.type = None
def getapin... | [
"tomhu@ekupeng.com"
] | tomhu@ekupeng.com |
ef5540685a093ff38d640fd18b6e7e5528ee2196 | 8292648c36f4b1e8eb70c0992eec3737dc7d7749 | /exam_practice/Samples/Sample 6/sample_6.py | fb8d6c663edd847d65fb057da8c8f45486bd82f2 | [] | no_license | LukeElliman/Sandbox | 6f4dc2b57db4475dab376fa4de8ec7b3a0cd238e | 519ab171c121ca7f7dc22c484836314b816033be | refs/heads/master | 2023-05-24T06:53:57.638685 | 2021-06-05T12:57:12 | 2021-06-05T12:57:12 | 344,040,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def count_words(sentence):
"""Count words in sentence"""
words = sentence.split(" ")
return len(words)
print(count_words("This is a sentence with words in it"))
print(count_words(("Hello, my name is Luke, whats your's?"))) | [
"luke.elliman@my.jcu.edu.au"
] | luke.elliman@my.jcu.edu.au |
e384b0b89ef2675764b8f90db90e2618a131954f | 0e3d0ac18a0605c26ac004c6da904d06d1f93ad0 | /decorators_exercise/execution_time.py | 1c81a3a6fb46897c9dd2a914709b3568ab0a67a0 | [] | no_license | lion963/Python-OOP | a74c85918bf7400dc5ffc82ff4c02b699969b1b1 | 24d184030f6cac8288d27a17cecb64bd133c1cf6 | refs/heads/main | 2023-04-06T05:48:53.945037 | 2021-04-15T07:28:35 | 2021-04-15T07:28:35 | 333,083,111 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import time
def exec_time(func):
def wrapper(*args):
start_time = time.time()
func(*args)
return time.time() - start_time
return wrapper
@exec_time
def loop(start, end):
total = 0
for x in range(start, end):
total += x
return total
print(loop(1, 10000000))
@e... | [
"lion963@mail.bg"
] | lion963@mail.bg |
c62b5ee746ccfce616744d13ae9e9517ab93fae9 | a8079efec61894fb6082986e66c4c146757fc895 | /src/gia/npGIAforZ3.py | d215c013d3ac83180938d3cafbd33092e4b60d34 | [] | no_license | gsdlab/ClaferSMT | aaa5bd0c0c72f6a9b156529a871cced40e006cba | d8240b4503107641d62f7f913ebe50a88182d9a3 | refs/heads/master | 2021-01-16T21:23:22.838308 | 2015-08-20T00:24:54 | 2015-08-20T00:24:54 | 9,037,961 | 2 | 1 | null | 2018-08-21T13:48:02 | 2013-03-26T19:00:12 | TeX | UTF-8 | Python | false | false | 13,428 | py |
from common import Common, SMTLib
from common.Common import preventSameModel
from time import time
from solvers import BaseSolver
#Modified by Jianmei for EPOAL
# count #ParetoPoints
# count #satcalls and #unsatcalls
# print every found Pareto point (especially for Eshop)
OUTPUT_PARETO_FRONT = False
... | [
"ezulkosk@gsd.uwaterloo.ca"
] | ezulkosk@gsd.uwaterloo.ca |
3b20d8bc8956d16dfbb697f43dec97305b5fa7df | 8ef6dbdd3791dd7fbe1320483a22e0540c54359b | /Core Python/Dictionary/19Nested.py | 83bae4d2c11b6adf2d1a3a4876f39b5fc4330d28 | [] | no_license | kundan4U/Python | 8095eecba088910d2068a6375c907d47f2bb9c95 | 6b3fdbe66edb52e9f612352abb9c6563547b6297 | refs/heads/main | 2023-06-24T06:29:43.770282 | 2021-07-21T18:40:11 | 2021-07-21T18:40:11 | 388,213,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py |
# Nested Dictionary
# Empty NEsted dictionary
z={
1:{},
2:{},
3:{}
}
# Access Element
a = {'course':'python','fees':15000,1:{'course':'javaScript','fees':100000}}
print(a['course'])
print(a[1])
print(a[1]['fees'],"\n")
# Modifi Element
print("Before Modifieng",a)
a['course']= 'Machine Learning'
print(" After ... | [
"kc946605@gmail.com"
] | kc946605@gmail.com |
04facd847cbb9cda0046a3abb22c61f30f0cee65 | 6f844abf7c436a4ae3444744c523f5f1fe6367a4 | /UserBase/migrations/0016_auto_20171123_1931.py | fb52007d0c78de3f27659bd6a8992c3d97a6bb13 | [] | no_license | deepakbhamla/Halanx_Backend_Task | 1dd02a1061eb4d4f6072a3276735cb606dfec752 | acda98c6b79690689317585dd06cf0c1cfc65192 | refs/heads/master | 2022-04-12T10:02:29.740781 | 2020-03-12T12:17:22 | 2020-03-12T12:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-23 14:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserBase', '0015_customer_profilepic'),
]
operations = [
migrations.AlterFie... | [
"patel.ayush08@gmail.com"
] | patel.ayush08@gmail.com |
84bf444bf1e614422ec13359d22a0d727da1ca4c | d9e0585e57b482d91e8af7514e683e2488e23381 | /dbcog/models/leader_skill_model.py | 804712af51304155ae45a7a870eda7e86f31d374 | [
"MIT"
] | permissive | TrendingTechnology/pad-cogs | d08abb8da8bf2763a4091a29139168d8c1d2333a | b913a4e16a6473b8b53fae4bda564bedcc82c876 | refs/heads/master | 2023-08-11T01:10:22.088761 | 2021-09-19T00:41:43 | 2021-09-19T00:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | import re
from .base_model import BaseModel
class LeaderSkillModel(BaseModel):
def __init__(self, **kwargs):
self.leader_skill_id = kwargs['leader_skill_id']
self.name_ja = kwargs['name_ja']
self.name_en = kwargs['name_en']
self.name_ko = kwargs['name_ko']
self.max_hp = kw... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
46a00379b4971f43bbcd75efd489630c9201401e | 470c6e447c7ee6daed90a0bf1216e2fb838282b6 | /rtl/tasks/open.py | 1b982debfdebfb9d21abbbfe2a35895eedbfcc43 | [
"Apache-2.0"
] | permissive | kelceydamage/raspi-tasks | d0300173b2eba274a5c0a974b7ecb8817586d22d | 18aa323e3e2428c998b7472c226d05a00c8ae8c2 | refs/heads/master | 2020-07-02T11:55:27.276343 | 2019-08-10T06:42:42 | 2019-08-10T06:42:42 | 201,520,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | #!/usr/bin/env python3
# ------------------------------------------------------------------------ 79->
# Author: ${name=Kelcey Damage}
# Python: 3.5+
#
# 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 Lice... | [
"kdamage@palantir.com"
] | kdamage@palantir.com |
4d2c140c6db6f542dc0a49fd239d9fe840daa562 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/msData/datatypes/Facets/double/double_enumeration002.py | 59133e9f2219248cc567d675c7fac346d16f2afd | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 273 | py | from output.models.ms_data.datatypes.facets.double.double_enumeration002_xsd.double_enumeration002 import FooTypeFoo
from output.models.ms_data.datatypes.facets.double.double_enumeration002_xsd.double_enumeration002 import Test
obj = Test(
foo=FooTypeFoo.VALUE_1_1
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
a097e28031810d9e35910e6b6bf5d6a647d3a901 | 21a5d36b32ddf277be891fd1f0e93d458c4f0c2f | /official/modeling/hyperparams/base_config.py | 7ce5ce2d55016dce0c985a0e6f9fe3893a25f644 | [
"Apache-2.0"
] | permissive | pkulzc/models | 7cf3b718bc4edba53accd14b692712f6c1883578 | 2ec6572e1b79127a7cf905c1e67ec6568e364f10 | refs/heads/master | 2021-06-28T08:04:36.609825 | 2020-06-18T17:54:53 | 2020-06-18T22:00:50 | 126,526,822 | 8 | 9 | Apache-2.0 | 2018-03-23T18:50:30 | 2018-03-23T18:50:29 | null | UTF-8 | Python | false | false | 8,964 | py | # Lint as: python3
# Copyright 2020 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1c1a0e0b8ff5071c1c2792231ed5f1acce0adb43 | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/mpl_toolkits/axes_grid/grid_helper_curvelinear.py | c425086ada0af2702e837a37bcf0b19bd7ddfa0c | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 63 | py | from mpl_toolkits.axisartist.grid_helper_curvelinear import *
| [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
5930d4f80c56d4ac4735ccaa84bd96cd822d5d74 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/statsmodels/graphics/tests/test_boxplots.py | 503c5cc20c15d3e577a1709b13de1418c79ccd3c | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 2,315 | py | import numpy as np
from numpy.testing import dec
from statsmodels.graphics.boxplots import violinplot, beanplot
from statsmodels.datasets import anes96
try:
import matplotlib.pyplot as plt
have_matplotlib = True
except:
have_matplotlib = False
@dec.skipif(not have_matplotlib)
def test_violinplot_beanpl... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
3c2c612f1ce660f79c63116378101afddeb27721 | cc4d7a0dc58e70379fda3d1f6b75c7b70ad1e205 | /UDEMY/numbers.py | 42aaed7267cc1885a724c942be82aff76500f3f3 | [] | no_license | evamaina/Python_practice | 2da766d61c111135285323aa2b8fb50ee5b31be1 | ecd6c255dc66b2dc6f2cd81ec79bc42a241bfca1 | refs/heads/master | 2020-03-24T00:08:17.911604 | 2018-07-25T09:17:41 | 2018-07-25T09:17:41 | 142,275,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# Modify the method below to make sure only even numbers are returned.
def even_numbers():
evens = []
for number in numbers:
if number % 2 == 0:
evens.append(number)
return evens
# Modify the below method so that "Quit" is returned if the choice p... | [
"evajohnson714@gmail.com"
] | evajohnson714@gmail.com |
a3343c3fc5ec2c28d9012a8f7aab290396c75b50 | 312d40d6023858891dd32bda67579f7284a54c15 | /06/00/keys.py | bb03a499aa679a455ffcfd78b62d8aa5294e54e4 | [
"CC0-1.0"
] | permissive | pylangstudy/201708 | b67a49f091f5f949954e7b9a910a07761fe9a7d1 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | refs/heads/master | 2021-01-01T20:49:15.973299 | 2017-08-31T00:18:55 | 2017-08-31T00:18:55 | 98,936,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | d = {'k1':'v1', 'k2':'v2'}; print(d)
print(d.keys())
for k in d.keys(): print(k, d[k])
| [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
fd4b14a27556c53af09d1ab430e96ecf11199d9c | 7c7c3a34b266e664cf63f710ae5aff5587672c91 | /ALUS/countingBlobs/createTestingImagesFile.py | 1c4ad82a1afd8acf6aee2de2c29ef1da109498f2 | [] | no_license | Schnei1811/PythonScripts | 845594a886a1fecc81cf5d7c550abec325f006a3 | 89eb331357b7cea86f5b2d0b33089215b73f9481 | refs/heads/main | 2023-03-31T23:36:48.731570 | 2021-04-11T21:55:46 | 2021-04-11T21:55:46 | 356,950,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import os
from glob import glob
from tqdm import tqdm
import cv2
# img_dir = "G:\\PythonData\\ALUS\\ALUS_Data\\"
# img_dir = "G:\\PythonData\\ALUS\\ALUS_Mixed_Test_Set\\"
img_dir = "C:\\Users\\Stefan\\Desktop\\CountBlobs\\LCFCN-master\\ALUS_BL\\"
# sizes = [1, 2, 3, 4, 5]
sizes = [5]
for div in sizes:
if not ... | [
"stefan871@gmail.com"
] | stefan871@gmail.com |
99f8326596d1987c00f35288f3c8b12c3991b244 | 3ec1f6d425a6ddc350785947a3a864a4820d926f | /thnthn_2/settings.py | 7cdeadef11fccf37d118cb1e90d65ca99c7cacdb | [] | no_license | crowdbotics-apps/thnthn-2 | a8829b4e627c1865ca18772857d4f3abf599da32 | 15a66f105a233c813f27c20e26aff9d19c08b89e | refs/heads/master | 2022-11-09T06:45:47.205540 | 2020-06-27T01:02:14 | 2020-06-27T01:02:14 | 275,275,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,626 | py | """
Django settings for thnthn_2 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3254f277b9f7bc17109e5f0eb6f62261ecc84387 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/diagnostic/migrations/0143_merge_20190102_1610.py | 600e06ca0f55228ae1e74f57b7435416c88120fa | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Generated by Django 2.0.5 on 2019-01-02 10:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('diagnostic', '0142_auto_20181229_0505'),
('diagnostic', '0139_auto_20181231_1658'),
]
operations = [
]
| [
"navneetsingh@docprime.com"
] | navneetsingh@docprime.com |
fc03b2addf535c39046c40df168afe7cabd0e67c | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_local_object_reference.py | 8bdf99cde581bc3d3abefcc9897708676fc092bb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
8ead76d7340deb6bd81fc2eadd7a573efbba4100 | b027af825501f40157921456778e0c2b4a15c313 | /981. Time Based Key-Value Store.py | 58d5a5d50bd834b2811f5474b3f41618627561f5 | [] | no_license | Eustaceyi/Leetcode | bba9db25d940aa1a3ea95b7a97319005adb58655 | 237985eea9853a658f811355e8c75d6b141e40b2 | refs/heads/master | 2020-05-19T08:04:37.101702 | 2020-02-02T01:43:05 | 2020-02-02T01:43:05 | 184,912,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | class TimeMap:
def __init__(self):
"""
Initialize your data structure here.
"""
self.d = {}
def set(self, key: str, value: str, timestamp: int) -> None:
if key not in self.d:
self.d[key] = [(timestamp, value)]
else:
self.d[key].append((tim... | [
"eustaceyi@gmail.com"
] | eustaceyi@gmail.com |
9827030868fdbec7d08cc003e957a3ab49091c27 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/615fe5511019f4d9377f3903f87a6e0b5f40a3c520ef52ec49ceeaa834141943/typing/io.py | aba44effd2b04593bdce89e5f191dfa3f72ded87 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | # encoding: utf-8
# module typing.io
# from C:\Users\Doly\Anaconda3\lib\site-packages\pandas\_libs\missing.cp37-win_amd64.pyd
# by generator 1.147
""" Wrapper namespace for IO generic classes. """
# imports
import typing as __typing
# no functions
# classes
class IO(__typing.Generic):
"""
Generic base class... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
812d33ceecf8a2ed47eb5c83d1e0225481655f44 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /Calibration/IsolatedParticles/test/proto_runIsolatedTracksHcal_cfg.py | 34200f8e49f76ae0284d76dd370be5ac5a950c7c | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 2,875 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("L1SKIM")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 10
process.MessageLogger.categories.append('L1GtTrigReport')
process.MessageLogger.categories.append('HLTrigReport')
process.options = cm... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
eacdc0def0769b9ac87a01477d979d10893e999e | 3345fd9994269b2617e5cbd8f9de879f61544341 | /sklearn_theano/utils/validation.py | 2d75fff7123bf8f257d8b510f1be458631604271 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | khaoulabelahsen/sklearn-theano | 63f927c61732601f684e36d28e9f029246b84a20 | a159d63b913c4f3a7abfb5a46a97a5a39bbc793f | refs/heads/master | 2021-05-18T13:30:17.228526 | 2020-03-30T09:54:29 | 2020-03-30T09:54:29 | 251,263,043 | 1 | 0 | BSD-3-Clause | 2020-03-30T09:45:51 | 2020-03-30T09:45:51 | null | UTF-8 | Python | false | false | 1,974 | py | """Utilities for input validation"""
# License: BSD 3 clause
import numpy as np
def get_minibatch_indices(array, minibatch_size):
""" Get indices for minibatch processing.
Parameters
----------
array : object
Input object to get indices for
minibatch_size : int
Size of minibatche... | [
"kastnerkyle@gmail.com"
] | kastnerkyle@gmail.com |
ef126642a60cbf935062792af151179cfa4acb7e | 11c24617b0f62bc55b7d2f34eb65fa63e3e3ec06 | /Stacks and Queues - Exercise/10. Cups and Bottles.py | 05eea022bd503beddd8750833b08dd39d18c3a5e | [] | no_license | SilviaKoynova/Python-Advanced | 2d1750a4943b82a82ec910d29241bd3fc473289e | 0a94556592bca60b29a85849a5e694f2eeeda52b | refs/heads/main | 2023-07-18T05:41:33.641250 | 2021-08-26T21:15:13 | 2021-08-26T21:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | from collections import deque
cups_capacity = list(map(int, input().split()))
bottles_with_watter = list(map(int, input().split()))
cups = deque(cups_capacity)
wasted_water = 0
while cups and bottles_with_watter:
current_cup = cups[0]
current_bottle = bottles_with_watter[-1]
if current_cup > curre... | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
bd543a56885e63c0880db093f6cc7f3b0a5aebd7 | d3cd9012fb535f304d23635145d3fbe71fdbf17e | /geonames/fileutils.py | 7bb9513b06e9cfb8f77f8e62e5dac124d7991570 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | flyingdice/geonames-sqlite | 38023e8ffc2e6ff47ee614fc7ea223bfa3079cc2 | acf51d9af723d46815c43509ce22712ce910a61e | refs/heads/master | 2023-02-18T02:06:44.676771 | 2021-01-20T01:48:00 | 2021-01-20T01:48:00 | 109,519,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
geonames/fileutils
~~~~~~~~~~~~~~~~~~
Contains utility functions for files.
"""
from typing import IO
def peek_line(f: IO) -> str:
"""
Peek the next line of the given file obj without progressing the pointer.
"""
pos = f.tell()
data = f.readline()
f.seek(pos)
return data
... | [
"andrew.r.hawker@gmail.com"
] | andrew.r.hawker@gmail.com |
20719f4d841e021eca7cb85b8fe056e631ae325c | 91824d746654fe12881b4fc3b55c553aae0d22ac | /py/count-numbers-with-unique-digits.py | 627afa761d56db8cd55409afa5f4afa8c3a6a30b | [
"Apache-2.0"
] | permissive | ckclark/leetcode | a1a173c67a36a3256b198f853fcd3d15aa5abbb7 | 844c6f18d06dcb397db76436e5f4b8ddcb1beddc | refs/heads/master | 2021-01-15T08:14:43.368516 | 2020-02-14T07:25:05 | 2020-02-14T07:30:10 | 42,386,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | class Solution(object):
def countNumbersWithUniqueDigits(self, n):
"""
:type n: int
:rtype: int
"""
n = min(10, n)
ans = 1
for i in xrange(10 - (n - 1), 10 + 1):
ans = ans * i + 1
ans *= 9
ans /= 10
return ans + 1
| [
"clark.ck@gmail.com"
] | clark.ck@gmail.com |
e83f691304be7f8aaee96e7151f7442647d2fb7c | ac9b453759dbab67d92f88942b7ac41b337e003d | /hudson/hudson-scripts/qiime/test_tree_compare.py | 41856e1636672dce3233f85b256d692af20cdd73 | [] | no_license | carze/clovr-base | 12d8dd405136643b889c3752a360a2efc9405f45 | 617bcb84b087f80a5d5e74ad7ef1616a369d2306 | refs/heads/master | 2021-01-24T01:39:55.353409 | 2014-11-05T15:06:05 | 2014-11-05T15:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | #!/usr/bin/env python
__author__ = "Justin Kuczynski"
__copyright__ = "Copyright 2010, The QIIME Project"
__credits__ = ["Justin Kuczynski"]
__license__ = "GPL"
__version__ = "1.1.0"
__maintainer__ = "Justin Kuczynski"
__email__ = "justinak@gmail.com"
__status__ = "Release"
"""tests the tree_compare.py module."""
fr... | [
"cesar.arze@gmail.com"
] | cesar.arze@gmail.com |
9f882bb61120cc1a2aa888581ffeef7eb9ebc90f | 8ad9faa828ce54cddc38dc86eef30e6635babd0c | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/instructions.py | b089f7f273ad469a5399bb17b1a314f0423ac06b | [
"MIT"
] | permissive | ralfjon/IxNetwork | d1a50069bc5a211f062b2b257cb6775e7cae8689 | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | refs/heads/master | 2020-04-04T00:36:24.956925 | 2018-10-26T16:37:13 | 2018-10-26T16:37:13 | 155,655,988 | 0 | 0 | MIT | 2018-11-01T03:19:30 | 2018-11-01T03:19:30 | null | UTF-8 | Python | false | false | 3,717 | py |
# Copyright 1997 - 2018 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, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
e2ee40c43a7150a5d6cee96817a5c77f7357f557 | d1a4e71c407c52d28914570c684d2be2f03d1cd2 | /tensorflow/python/keras/layers/preprocessing/text_vectorization_distribution_test.py | 61fb62f7885dec08d19c28211ebc412e7d18f9ed | [
"Apache-2.0"
] | permissive | WindQAQ/tensorflow | f43dd80e1b6004f2443faf2eb310dbcb19ae9796 | 4f4e5f4196e243b33fd218bc9fc910e275b1f22b | refs/heads/master | 2021-07-05T05:55:38.374488 | 2021-03-12T04:51:17 | 2021-03-12T04:51:17 | 190,140,026 | 1 | 0 | Apache-2.0 | 2019-06-04T06:09:54 | 2019-06-04T06:09:53 | null | UTF-8 | Python | false | false | 4,191 | 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 |
fc7c24ed77a547bd786367f500d47a40c1ac668c | bc61b2d61e0d7c119ad40432490a35e49c2af374 | /src/opencmiss/extensions/airwaysmask/utils.py | 418ee6e288308afb4f2d4c8d26af8e38fb44cf52 | [
"Apache-2.0"
] | permissive | hsorby/neon.extension.airwaysmask | 28c2be8d685d9bf72f7704c549bca11c286ce305 | 2d9da30c569e1fcdd0819a6512e570b3d8c9efda | refs/heads/master | 2020-03-27T02:28:06.928298 | 2018-08-29T21:36:27 | 2018-08-29T21:36:27 | 145,792,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py |
def generate_offset_cube_coordinates(dimensions):
"""
Create a set of eight 3D coordinates that are offset by 0.5. In this case the 0.5 is a pixel so that
the centre of the voxel is at the integer coordinate location.
:param dimensions: A list of size three containing the dimensions of the cube.
... | [
"h.sorby@auckland.ac.nz"
] | h.sorby@auckland.ac.nz |
4031eec86fa97d01395a6c182056643b6b8fd372 | 33524b5c049f934ce27fbf046db95799ac003385 | /2017/файлы/write_test.txt | c85aa4e7ccd9f59fca496675eb77169c3c84b5f4 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | txt | сейчас я учусь в институте МФТИ.
меня зовут мье маунг. Меня интересует информатика.
| [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
894fb7bca92442fa7ede87e3eb4fb9460d48dac3 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /00_BofVar-unit-tests/05_64/remenissions-work/exploit-BofFunc-55.py | aaa5881a3250fe6ea97d12a84f892bc0bf2bb8f1 | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from pwn import *
import time
import sys
import signal
import sf
target = process("./chall-test_BofVar-05-x64")
gdb.attach(target, execute="verify_exploit")
bof_payload = sf.BufferOverflow(arch=64)
bof_payload.set_input_start(0x58)
bof_payload.add_int32(0x20, 0xdead)
bof_payload.add_int32(0x1c, 0xbef1)
bof_payload.a... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
c2f713bbc9cad80955d03476244f66543e606652 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/kubernetes/client/models/v1beta1_role.py | 2c1a21b5a2042eac6ef9b08e9bd6650f618215a2 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | guctum/aws-kube-codesuite | 9ce2cc02fe5fa15c2e175fb697138014fb162f1e | 5d62beaadc13bec745ac7d2fc18f07805e91cef3 | refs/heads/master | 2021-05-24T10:08:00.651840 | 2020-04-23T20:21:46 | 2020-04-23T20:21:46 | 253,511,083 | 0 | 0 | Apache-2.0 | 2020-04-06T13:48:14 | 2020-04-06T13:48:13 | null | UTF-8 | Python | false | false | 6,072 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
ed0430a62d28f4125e637ff3312f7676ec05f87e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_247/ch7_2020_09_02_20_17_45_778734.py | bb2bde7727968a017b1f9750c6aa7f2d2bd26672 | [] | 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 | 68 | py | def calcula_area_do_triangulo (b, h):
y= ((b*h)/2)
return y
| [
"you@example.com"
] | you@example.com |
5ef75da1022655c5bd6ac835508068ef14abd034 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_fountains.py | 8f3662dc38b64b11ddca5e07e700a81c35dac24f | [
"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 | 230 | py |
#calss header
class _FOUNTAINS():
def __init__(self,):
self.name = "FOUNTAINS"
self.definitions = fountain
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['fountain']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
73eac1e22433ab4eea9aca1376ba592b36c8a766 | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /19.remove-nth-node-from-end-of-list.python3.py | 3b4c3c3f89c9d6b3ace1f623eb8f445776978c96 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #
# [19] Remove Nth Node From End of List
#
# https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/
#
# algorithms
# Medium (33.66%)
# Total Accepted: 320.9K
# Total Submissions: 953.4K
# Testcase Example: '[1,2,3,4,5]\n2'
#
# Given a linked list, remove the n-th node from the end of list and ... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
2480aceae6ae2ba2e2a15b9c72c5bc82b9962eb7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02939/s369857416.py | 52d015695e7208d99d4fc5b060a39a9e61059cf9 | [] | 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 | 152 | py | S = input()
ans = 0
x = ''
y = ''
for i in S:
x += i
if x == y:
pass
else:
ans += 1
y = x
x = ''
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
245197b0595c935756ec65fe267b78539b1a40ca | 7a88fc18f30d5dd3ac935877d4d9268a56c296be | /di_website/vacancies/migrations/0014_auto_20190814_1527.py | d83551c3c570dff4336656f37419b42c8c1ef8cb | [] | no_license | devinit/DIwebsite-redesign | 745a480b7ba0feffa34dc664548ee4c5a7b4d470 | 9ec46823c67cdd4f35be255896bf30d8f6362666 | refs/heads/develop | 2023-08-30T04:06:20.951203 | 2023-08-07T12:06:07 | 2023-08-07T12:06:07 | 184,287,370 | 1 | 0 | null | 2023-08-28T14:34:57 | 2019-04-30T15:29:25 | HTML | UTF-8 | Python | false | false | 3,075 | py | # Generated by Django 2.2.2 on 2019-08-14 15:27
from django.db import migrations
import wagtail.blocks
import wagtail.fields
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('vacancies', '0013_auto_20190813... | [
"edwinm_p@yahoo.com"
] | edwinm_p@yahoo.com |
ec0cfcecd31f2c6a246a73248820c3d252ee9f33 | 170864b6ec66be48138f231fe8ac3381481b8c9d | /python/BOJ_5585.py | 13ea463165f2037fccae553ad628352c08812824 | [] | no_license | hyesungoh/AA_Algorithm | 5da3d8312d035d324dfaa31eef73f01a238231f3 | d68f52eaa29cfc4656a8b5623359166779ded06e | refs/heads/master | 2023-06-09T14:49:01.402456 | 2021-06-28T10:10:09 | 2021-06-28T10:10:09 | 272,701,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = 1000 - int(input())
coins = [500, 100, 50, 10, 5, 1]
ans = 0
for coin in coins:
t = n // coin
n -= t * coin
ans += t
print(ans)
| [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
80891c064ba70a74469236ea3fa95287ff894762 | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/config/test_config.py | 1a7bfb879e6967e2864e3b5cbfb441f9debef077 | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 18,734 | py | import warnings
import pytest
from pandas._config import config as cf
from pandas._config.config import OptionError
import pandas as pd
class TestConfig:
@classmethod
def setup_class(cls):
from copy import deepcopy
cls.cf = cf
cls.gc = deepcopy(getattr(cls.cf, "_glo... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
5f0784ef8ebaf4b89a25a06905196b48dbd2da46 | db652288d2a5da615c3026cb49e7e66c4c68b2b1 | /website/welree/migrations/0003_auto_20150203_1526.py | 5e8441e2c94dba59036eb731f0ce18162a52c977 | [] | no_license | dhanuagnihotri/Welree-Website | a6b76ba6be47617ff4585fdf254460abc1aa7c59 | 899ed8de4eadc2411b5fee0588a1ed756fb5325e | refs/heads/master | 2021-01-21T03:38:00.119591 | 2015-08-19T17:31:18 | 2015-08-19T17:31:18 | 29,544,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('welree', '0002_customuser_is_designer'),
]
operations = [
migrations.AlterField(
model_name='customuser',
... | [
"mrooney.github@rowk.com"
] | mrooney.github@rowk.com |
d6e93df4cf85a0b82684bc63ef054e46fd0cd165 | 6bc7062b2f99d0c54fd1bb74c1c312a2e3370e24 | /crowdfunding/users/permissions.py | 5b18344a04da371391dd876904d9dae8001cae2e | [] | no_license | marinkoellen/drf-proj | f2d1f539efb877df69d285bd2fe6d5e789709933 | 874549d68ab80a774988c83706bb7934e035de42 | refs/heads/master | 2022-12-25T16:53:52.187704 | 2020-10-03T03:54:06 | 2020-10-03T03:54:06 | 289,620,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from rest_framework import permissions
class OwnProfile(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj == request.user
| [
"ellen.marinko1@gmail.com"
] | ellen.marinko1@gmail.com |
371b4a3ef74327f5b87793eb24cc846c854d2160 | 9ca8da461ac27ad18ceee5e81a60b17e7b3c4a8c | /venv/Lib/site-packages/matplotlib/tests/test_ttconv.py | 3bbe7af9c73844ce54a7320e0c963ddf605e1b8e | [] | no_license | LielVaknin/OOP-Ex3 | 1c2e36436ffe6b701e46efec77d4beb4aba711bf | 4b830b6806c6d8013332992241dce01cc81634d7 | refs/heads/master | 2023-02-11T05:10:20.460355 | 2021-01-14T18:18:22 | 2021-01-14T18:18:22 | 328,455,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | <<<<<<< HEAD
from pathlib import Path
import matplotlib
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt
@image_comparison(["truetype-conversion.pdf"])
# mpltest.ttf does not have "l"/"p" glyphs so we get a warning when trying to
# get the font extents.
def test_truetype_con... | [
"yairaviv83@gmail.com"
] | yairaviv83@gmail.com |
28b184b624819b1c5d9358d7ca85f7b19ddc8eb9 | e00130d5aa146c344c8c31a491ced75e3c41463a | /agentzero/version.py | 3589800bd14458e7efe469103396f42a3e578825 | [] | no_license | gabrielfalcao/agentzero | 9b0eb0cc9b7076786d5b5c6821ca28a1dc2dbf19 | ee18af5b7fdbb77540e7658d3f85c8a7b76f8bc9 | refs/heads/master | 2023-01-11T02:48:57.661321 | 2022-12-27T20:12:55 | 2022-12-27T20:12:55 | 52,629,552 | 10 | 1 | null | 2019-12-20T17:18:39 | 2016-02-26T20:05:23 | Python | UTF-8 | Python | false | false | 65 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
version = "0.4.6"
| [
"gabriel@nacaolivre.org"
] | gabriel@nacaolivre.org |
119cf069fba05ec41726845576cf1a5f7597599c | 788965833baa87fec02520ebccde379bf03198bc | /askcompany/settings/common.py | 3cbb1f9fc7b5a61b00f31452e4465a468f4f49d3 | [] | no_license | sungchan1025/django-with-react-rev2 | e907bfb464a1a9ed0061d5829257558426335fcd | 62bf5b5e57e8c791e0c74bf4e496f3bc79de8c4b | refs/heads/master | 2022-04-07T03:11:39.990147 | 2020-02-16T05:50:50 | 2020-02-16T05:50:50 | 273,150,775 | 1 | 0 | null | 2020-06-18T05:36:54 | 2020-06-18T05:36:54 | null | UTF-8 | Python | false | false | 4,025 | py | """
Django settings for askcompany project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"me@askcompany.kr"
] | me@askcompany.kr |
6bda908e9230dfb4ccd5c22e157ae0537128b390 | cf543dda5dc841b3eb7063d78821fbbdbd8f9d60 | /tests/conftest.py | 7ebcb25452700b0c985871fb03296261e0d46991 | [
"BSD-3-Clause"
] | permissive | mdxs/json-spec | 2b66a9b792210188788a04138e8e2e9fea4aed89 | f093a2d47e899990e023a13a29f94b9aebdae5ab | refs/heads/master | 2021-01-18T03:14:28.420809 | 2015-07-07T14:34:37 | 2015-07-07T14:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import sys
def pytest_cmdline_preparse(args):
if 'pytest_cov' in sys.modules: # pytest-xdist plugin
args[:] = ['--cov', 'jsonspec', '--cov-report', 'html'] + args
| [
"clint.northwood@gmail.com"
] | clint.northwood@gmail.com |
2b35f8032e339afc72a833ccfba443d92be9e9e2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/Cases/2937/.mooctest/answer.py | 075d4f8539d3f652a78d8e28ff7dc8eaa60bc42f | [] | 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 | 586 | py | #include<iostream>
using namespace std;
char a[16], b[16] = {'C', 'O', 'D', 'E', 'F', 'E', 'S', 'T', 'I', 'V', 'A', 'L', '2', '0', '1', '6'};//直接字符数组走一波,后面比较方便
int ans;//定义ans为答案/在函数外面定义的全局变量初始值默认为0
int main()
{
cin >> a;//不需要一个字符一个字符的输,题目数据全都是16位的,不用担心超界限
for(int i = 0; i < 16; i ++){
if(a[i] != b[i]) ... | [
"382335657@qq.com"
] | 382335657@qq.com |
724cb5e6e6271b7e8dbf448bcc2f40bfd0712d1f | 87fecbc5b4e6ae4b2a0c32c45e20eb1fec2ebcdd | /Siyam Solved/Problem Set -2/Solutions- 2/7.py | d9e973e8e12bc7f464b259713babb0d6a8e4b005 | [] | no_license | siyam04/python_problems_solutions | 08aa2bc17342ee85fdcd90ef96bd8eeed0699726 | 7b271d98e4d600bca31061e57ce792f5d9913991 | refs/heads/master | 2020-06-27T22:56:48.973484 | 2019-08-01T15:33:18 | 2019-08-01T15:33:18 | 200,075,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | def EvenCount ():
L = []
count =sum([1 for i in range(1, 9) if i % 2 == 0])
return count
def OddCount ():
L = []
count =sum([1 for i in range(1, 9) if i % 2 != 0])
return count
print("Total EVEN numbers are:", EvenCount())
print("Total ODD numbers are:", OddCount())
| [
"galib.abdullah04@gmail.com"
] | galib.abdullah04@gmail.com |
edb496f47578df1e8327f71f94f3e27bce57874f | 0fc27c29f508a3b0f38f1bab10c543903306aa93 | /python/machinetalk/protobuf/object_pb2.py | f10339ae4595542f8f277705b24208435be5a9c6 | [
"MIT"
] | permissive | luminize/machinetalk-protobuf | 91604f6a933e1feb6ccf80e05caf86ad649c1a5a | 6ca7c99806401179ece164b07dc87852bfa8df9c | refs/heads/master | 2020-05-23T22:16:34.309507 | 2018-11-14T06:53:25 | 2018-11-14T06:53:25 | 186,970,319 | 0 | 0 | MIT | 2019-05-16T06:58:34 | 2019-05-16T06:58:31 | null | UTF-8 | Python | false | true | 69,227 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: machinetalk/protobuf/object.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ... | [
"mail@roessler.systems"
] | mail@roessler.systems |
d0752ea82d55e18e109b58693127c0b741fae2fe | 9d0d01fcae352e9a7d48d7a8035be775118a556e | /sample/get_user_by_device_id.py | 395098703b40be6086fb8398e22b87538f811d88 | [] | no_license | BlueLens/stylelens-user | b278faef0fd32b36355f190e4cd13b95b6e7e57c | aa3698d35c237dd022fb16824945636b0b3660e7 | refs/heads/master | 2021-09-04T20:47:27.881925 | 2018-01-22T09:28:14 | 2018-01-22T09:28:14 | 117,768,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from __future__ import print_function
from stylelens_user.users import Users
from pprint import pprint
api_instance = Users()
device_id = "xxxx"
try:
api_response = api_instance.get_user_by_device_id(device_id)
pprint(api_response)
except Exception as e:
print("Exception when calling get_user_by_device_id: %s\n... | [
"master@bluehack.net"
] | master@bluehack.net |
1e6c9e8e59bddb832eadfc7780eebfef53aa5db6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fYMjhe7BnijXwfNpF_6.py | bb60873df92e89aabc853fedd429ccfe8fa9fc7e | [] | 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 | 606 | py | """
Create a function that takes a string and returns the first character of every
word if the length of the word is even and the middle character if the length
of the word is odd.
### Examples
stmid("Alexa have to paid") ➞ "ehtp"
# "e" is the middle character of "Alexa"
# "h" is the first character of... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
756fcf505f52ff1857548565961f6ca716d0e0ee | 8c699adc72ed1765ec4fdd1a4ea7ef77d12e870a | /pytext/models/doc_model.py | a8e58382db1b2970e267b3e9f5288b01ed54102a | [
"BSD-3-Clause"
] | permissive | haowu666/pytext | d7c592a85e437e3e4bd67de7b8ca083f0cce89ce | 8455458c101683602478b93bc8d016bd49d04323 | refs/heads/master | 2020-06-11T13:39:31.431606 | 2019-06-26T21:20:28 | 2019-06-26T21:24:24 | 193,984,662 | 0 | 0 | NOASSERTION | 2019-06-26T22:16:36 | 2019-06-26T22:16:35 | null | UTF-8 | Python | false | false | 12,291 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict, List, Optional, Union
import torch
from pytext.config import ConfigBase
from pytext.config.component import create_loss
from pytext.data.tensorizers import (
ByteTokenTensorizer,
FloatListTen... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.