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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6672bc6d3850e044ea1f8fb79c6ff9cba031cfe5 | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res/scripts/client/gui/scaleform/daapi/view/lobby/boosters/boosterspanelcomponent.py | 0caa7bfe82fda7414ba9a2de46bbce35ac7d8dd8 | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,857 | py | # 2016.10.11 22:11:02 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/boosters/BoostersPanelComponent.py
from gui import game_control
from gui.Scaleform.genConsts.TOOLTIPS_CONSTANTS import TOOLTIPS_CONSTANTS
from gui.ClientUpdateManager import g_clientUpdateManager
from gu... | [
"info@webium.sk"
] | info@webium.sk |
0667c0b03b59413ed9e1ceebc3ff08683d9d142b | b72c37e3ccda507b231649cddd5c7845c6c34ba1 | /PythonBasic/Day12/HomeWork_birth.py | e78f35a7fd539268e61aa6848d9f0f6fbea30bde | [] | no_license | ljrdemail/AID1810 | 51c61c255b5c5efc1dc642b46691a614daedd85e | b417bd831bc1550ab953ce7ca23f54e34b8b2692 | refs/heads/master | 2020-04-24T09:45:14.781612 | 2019-02-21T11:26:49 | 2019-02-21T11:26:49 | 171,866,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import datetime
def liveday():
dob = input("请输入你出生年月日,以-分隔:")
year = int((dob.split("-")[0]))
month = int(dob.split("-")[1])
day = int(dob.split("-")[2])
d1 = datetime.datetime(year, month, day)
d2= datetime.datetime.now()
w={0:"星期一",1:"星期二",2:"星期三",3:"星期四",4:"星期五",5:"星期六",6:"星期日"}
... | [
"root"
] | root |
c98c4a5b216fe8c82e6824648216dbc541cb869f | 165305e7d92075018b57f6288b84b4d5129be412 | /knit-graph.py | 9cae11d27be278f431448c7c8a588c5f698700a0 | [] | no_license | kshedstrom/plug-ins | 7c6e1358926f1d0cc062dc0d19e21f32d99b202c | 65aeb7c8b2c7f7c0a27fbf813863f10e6e2c00c9 | refs/heads/master | 2022-02-10T12:10:03.156258 | 2022-02-02T17:54:14 | 2022-02-02T17:54:14 | 7,652,530 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | #!/usr/bin/env python
#
# Take an image and turn it into a knitting pattern: expand it by
# some (you pick) number and place black lines around each box.
# Chunks stolen from Akkana Peck's arclayer script.
import math
from gimpfu import *
from array import array
def python_knit_graph(timg, tdrawable, x_scale=14, y... | [
"kshedstrom@alaska.edu"
] | kshedstrom@alaska.edu |
5603b4614f0b5b7454891b5011ba3cb49b7f827e | c769dc9a7a4338f2eba6fe44d6de3eab968ff51f | /OA/OA/settings.py | 313328eb96393c078887de6b506a7a873aef643b | [] | no_license | simonzhao88/practice | 267f4836c3d4d19e8db973f13d561024613bb88c | d29db772793a8d01301bbcb457595d8bb9ea33bc | refs/heads/master | 2020-03-17T17:41:26.650235 | 2018-07-07T09:50:12 | 2018-07-07T09:50:12 | 133,798,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | """
Django settings for OA project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Buil... | [
"642252108@qq.com"
] | 642252108@qq.com |
a9210d6d25b25c52a6e6e17e87b2ec6fa22734db | 986fc4298a3d728691951f77470beb5e92505425 | /icepack/mesh/stitch.py | a939ec8137ff08d6c2058f78e15ca17faafaba51 | [] | no_license | danshapero/icepack-py | 4eeee730056248cb1a33112bd07fea02b0e82194 | 24a13cba05dd5597fbec64f8bd2eb9580cc69fe7 | refs/heads/master | 2021-07-23T11:50:27.779303 | 2017-10-31T22:44:35 | 2017-10-31T22:44:35 | 105,718,249 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py |
import copy
import itertools
from numpy import ones, zeros, sqrt
from matplotlib.path import *
# --------------
def dist(x1, x2):
return np.sqrt((x1[0] - x2[0])**2 + (x1[1] - x2[1])**2)
# -----------------------------------
class IsolatedSegmentError(Exception):
pass
# -----------------------------------... | [
"shapero.daniel@gmail.com"
] | shapero.daniel@gmail.com |
d577c4d03856c05f0a30f68c85439667e187a747 | 4c577d9ddf21d8aba5626343f91a4986266f01e2 | /eric6/.eric6/eric6plugins/vcsGit/GitFetchDialog.py | 6686d150f3e09781568a6197a7e8228c683b3132 | [] | no_license | metamarcdw/.dotfiles | 362199d415ebd7d09247ee0efbda03243aa22faa | 3df0c805225a8d4f2709565d7eda4e07a050c986 | refs/heads/master | 2020-12-30T15:29:25.769345 | 2017-12-22T05:44:01 | 2017-12-22T05:44:01 | 91,143,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,548 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015 - 2017 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a dialog to enter data for a Fetch operation.
"""
from __future__ import unicode_literals
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QDialog, QDialogButtonBox
from .Ui_GitFet... | [
"metamarcdw@gmail.com"
] | metamarcdw@gmail.com |
536ff8a0db556679da306bd709afddbc31ee7b11 | 03f9b8bdea312636afb4df3737b55cb0cc4b21ff | /EditDistance.py | 20fb3e9c2e621e3789092624f15fa5338bbd61f3 | [] | no_license | ellinx/LC-python | f29dd17bbe15407ba0d06ad68386efdc9a343b56 | 9190d3d178f1733aa226973757ee7e045b7bab00 | refs/heads/master | 2021-06-01T15:21:24.379811 | 2020-10-29T04:37:07 | 2020-10-29T04:37:07 | 132,704,788 | 1 | 1 | null | 2019-05-15T03:26:11 | 2018-05-09T05:13:26 | Python | UTF-8 | Python | false | false | 1,405 | py | """
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.
You have the following 3 operations permitted on a word:
1. Insert a character
2. Delete a character
3. Replace a character
Example 1:
Input: word1 = "horse", word2 = "ros"
Output: 3
Explanation:
horse -> r... | [
"ellin.xll@gmail.com"
] | ellin.xll@gmail.com |
c14390c5349a7bb564d59f5828cdc6bbf09d9e06 | a29c7e363026111276e94b96d39b1b4ab48dbca8 | /sdk/test/test_overdraft_overdraft_fee_charge_cap.py | 2424dab7913426542a731b72bb7d31c75654266f | [
"MIT"
] | permissive | matteo-kalogirou/yapily-sdk-python | a56bf6f9b1b308efda38f081f6237ebd8c8f8ad5 | f10d2d14383f551eeb59aa893d328ffa5080da22 | refs/heads/master | 2022-12-16T22:24:18.026765 | 2020-09-18T13:59:26 | 2020-09-18T13:59:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
The version of the OpenAPI document: 0.0.242
Generated by: https://openapi-generator.tech
"""
from __future__ imp... | [
"systems@yapily.com"
] | systems@yapily.com |
9e892d45dda82d76e0bb7c174261cd156399a9d1 | 59934e837a4e425bba4ce9bcb46940a00b68691c | /user_auth/views.py | f240bb27c98f015c23120e1c06e384e664960076 | [] | no_license | cjredmond/store_app | 309e8956785a7720b0578cf512c33cab7d2d03a9 | d285ddfcc2e2427baa1c30fc9504c4bbf0f387f6 | refs/heads/master | 2021-01-12T07:31:56.664103 | 2017-01-09T19:42:48 | 2017-01-09T19:42:48 | 76,973,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from django.shortcuts import render
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from django.views.generic import TemplateView, ListView, DetailView
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse, reverse_laz... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
9f8e6550d80fe0672b5a2dc3e1f8e9427e24ba58 | 5df8b0f5bda2603cf5437c2bcf1e30b326ea791e | /geektrust/MakeSpace/Tests/TestBufferTime.py | 329061397f6a11f3f3cdff0af3e8272ae4a269ab | [] | no_license | RishabhKatiyar/CorePython | 4e9133ab3949815290157818b9be8ab943f9b802 | d4e80e26b4c439fa269351c674466a2918eaaf77 | refs/heads/main | 2023-07-19T14:03:38.662270 | 2021-09-05T09:09:51 | 2021-09-05T09:09:51 | 369,292,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import unittest
from src.Models.BufferTime import BufferTime
class TestQuery(unittest.TestCase):
def test_buffer_time(self):
bufferTime = BufferTime()
bufferTime.StartTime = "12:00"
bufferTime.EndTime = "13:00"
self.assertEqual(str(bufferTime), "12:00-13:00")
if __name__ == '__... | [
"rishabh.katiyar@outlook.com"
] | rishabh.katiyar@outlook.com |
0243cb82e0007eaf0d6e9fbaf1c0b266247784ad | 09f0a01272042b6de7cb7af6d40f10dd6e10a574 | /compounds/script_new/prescription_13.py | bd9f51f91b260b8dbbc4ab23498987b051b8e19b | [] | no_license | jianping-grp/yatcm-1-02 | 4c010788989562365f78745a619fc66f5ef7554e | d03d599cc45fd757b19e11856bc203ee1c39fdf7 | refs/heads/master | 2021-09-06T11:39:22.829983 | 2018-02-06T05:28:54 | 2018-02-06T05:28:54 | 115,930,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,148 | py | import os
import xlrd
import logging
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'yatcm.settings')
import django
django.setup()
from compounds.models import *
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
primary_file = '/home/jianping/django_test/yatcm/compounds/data/prescripti... | [
"libaiqing11@163.com"
] | libaiqing11@163.com |
d3367cde2f6849fd46b362f07fe9839e088bf261 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bps_cs22955-0024/sdB_BPS_CS22955-0024_coadd.py | 413af22bb38328ee2ff50f70e492e505c5504036 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[305.959417,-25.141333], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_BPS_CS22955-0024/sdB_BPS_CS22955-0024_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCUR... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a7a762a61b13efb880d4bd6c329f5fe38e10421f | da8730b3977d0b1e59e0b80d88cc871d92cd2700 | /nlp_txt/tfidf_test.py | 567643af0c55ace0ff786e4a687a64e2730c14bd | [] | no_license | legend1412/PythonDemo | 44b62f82a8826b5a50cf0a6506e6082d89d1ab7b | 3e6e4624801b9b9c272d0891f5675ec9466b4205 | refs/heads/master | 2020-12-28T01:27:39.942087 | 2020-10-12T02:33:29 | 2020-10-12T02:33:29 | 238,136,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | import os
import math
file_path = '../data/allfiles'
# 加载停用词表
stop_set = set()
with open('stop_word.txt', 'r', encoding='utf-8') as f:
for word in f.readlines():
stop_set.add(word.strip())
doc_words = dict()
doc_num = 0
for filename in os.listdir(file_path): # 当前目录下的所有文章的名字
# print(filename)
wit... | [
"zhaojianhao_1984@163.com"
] | zhaojianhao_1984@163.com |
e4244f1657cfe342166a84a3c031654b728f69f5 | 91a2ecfaf5dc6c917ec2fda31f56291103f68ceb | /tests/post_process/test_ctc_greedy_decoder.py | bc51da0de6d2dc6ebf4c6a36ba101ef8d5808b7c | [
"BSD-3-Clause"
] | permissive | MyrtleSoftware/myrtlespeech | 635d1d16d1bd60fb07a4d30edbf9acb61786c13f | 8522048fd37744ffa06827a0cbd202b839a15453 | refs/heads/master | 2021-07-16T14:55:00.479967 | 2020-03-20T14:33:15 | 2020-03-20T14:33:15 | 192,501,300 | 12 | 1 | NOASSERTION | 2020-03-20T14:33:17 | 2019-06-18T08:44:33 | Python | UTF-8 | Python | false | false | 5,299 | py | from typing import Tuple
import hypothesis.strategies as st
import pytest
import torch
from hypothesis import assume
from hypothesis import given
from myrtlespeech.post_process.ctc_greedy_decoder import CTCGreedyDecoder
from tests.data.test_alphabet import random_alphabet
# Fixtures and Strategies -----------------... | [
"sam@samgd.com"
] | sam@samgd.com |
fe6dd390f3317b44c302772859d4bfffd9a5d58f | f0f4eef5a57807960070a1989799def6deaf30ef | /bclearer_boson_1_2_source/b_code/substages/operations/b_evolve/runners/boson_1_2_add_composite_names_operation_substage_runner.py | eb1b64dfdeff8908e40bf4673a209e0227ec359e | [
"MIT"
] | permissive | boro-alpha/bclearer_boson_1_2 | 4f8dd72b79e0ccdd759271d79e3cbfa61a949ac6 | 571b2e1ca6dee93ccc5cb4e30abe2660f40c2ac0 | refs/heads/master | 2023-08-23T05:02:30.384138 | 2021-11-04T11:24:35 | 2021-11-04T11:24:35 | 424,218,650 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from nf_common_source.code.services.reporting_service.reporters.log_with_datetime import log_message
from nf_ea_common_tools_source.b_code.services.general.nf_ea.com.nf_ea_com_universes import NfEaComUniverses
from nf_ea_common_tools_source.b_code.services.session.orchestrators.ea_tools_session_managers import \
Ea... | [
"xibertao@borogroup.co.uk"
] | xibertao@borogroup.co.uk |
a043804e7b66e1f74b60df789131b4a8007b392f | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/workflows/unit_tests/utest_surface_energies.py | 850a7385e490305b0b680a214039bfa158ae9a4b | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py |
import types
import unittest
import unittest.mock as mock
import gen_basis_helpers.workflows.surface_energies as tCode
class TestSurfaceEnergyWorkflow(unittest.TestCase):
def setUp(self):
self.bulkEnergy = 4
self.bulkNumbAtoms = 1
self.surfEnergy = 6
self.surfNumbAtoms = 2
self.surfaceArea = 3
self.s... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
4fa4c5f3db02a42dbc8eed96c34b70d36bbb1d69 | e532600dd9a7f4ad5cdb62134c4a6c670270b026 | /viewer/settings_nersc_dev.py | ebda2349228f803f210d7404cea09c3d963b2ff7 | [] | no_license | ziyaointl/decals-web | 5a94195528dd11bf9774f4ddf10076116ec80e14 | 8950ccb28d5ec51c6eda305b51ffbc484c1c8452 | refs/heads/master | 2020-04-26T17:27:07.555736 | 2019-07-13T04:17:24 | 2019-07-13T04:17:24 | 169,711,896 | 0 | 0 | null | 2019-02-08T09:34:06 | 2019-02-08T09:34:06 | null | UTF-8 | Python | false | false | 1,068 | py | from viewer.settings_common import *
#ENABLE_SQL = True
DEBUG_LOGGING = True
#DEBUG_LOGGING = False
USER_QUERY_DIR = '/tmp/viewer-dev-user'
#USER_CATALOG_DIR = USER_QUERY_DIR
READ_ONLY_BASEDIR = True
ROOT_URL = '/viewer-dev'
STATIC_URL_PATH = '/viewer-dev/static'
STATIC_URL = 'http://%s%s/' % (HOSTNAME, STATIC_UR... | [
"dstndstn@gmail.com"
] | dstndstn@gmail.com |
1945c8b7fc54ee79f504b75e8e089fb5ab7e8023 | 6faa21b2d8a7e55e64fe289a21e455d1b4718fbb | /app/alamat_app/urls.py | 756fa3973ae1e73aa1a4c1bac10f5218910202b6 | [
"MIT"
] | permissive | ganggas95/simdus_app | 62eae2e7a1e0e9b2250fbccd795de1f658db814b | 0c57e11c712912f61d29ca4b63dfa1fe38bb067c | refs/heads/master | 2020-03-27T12:42:48.506769 | 2018-08-29T10:05:28 | 2018-08-29T10:05:28 | 146,563,860 | 0 | 1 | MIT | 2018-08-29T10:05:28 | 2018-08-29T07:43:05 | CSS | UTF-8 | Python | false | false | 726 | py | from .blueprint import (
alamat_bp,
api_alamat_bp,
api_alamat)
from .views import (
AlamatView,
AddAlamatView,
EditAlamatView)
from .api import alamat_ns
alamat_bp.add_url_rule(
'/admin/alamat',
view_func=AlamatView.as_view(
'alamat_view',
'alamat.html'
)
)
alamat_b... | [
"subhannizar25@gmail.com"
] | subhannizar25@gmail.com |
32e94eed43019733021268596b411e4d13419be2 | ebd2b04c9d55691e7208ff8d6816beb7dcae8f77 | /fin_app/tests.py | 594425d6e1c9efda02cee7397cb6138dd08e28a8 | [] | no_license | playmepe/djing2 | e35f11fdbef2b4f4bf2ef37d7f3e7b6dc9d5aba0 | 10379e974d969be94a40317e8121436f03f19ca2 | refs/heads/master | 2022-12-28T01:28:01.653972 | 2020-10-12T14:37:23 | 2020-10-12T14:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | from hashlib import md5
# from django.test.utils import override_settings
from django.utils import timezone
from django.utils.html import escape
from rest_framework.test import APITestCase
from customers.models import Customer
from fin_app.models import PayAllTimeGateway
from profiles.models import UserProfile
def ... | [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
650ab3e0162c461a54a59ba252b1be8069adf69a | f4f2ef334b7ccf704a4fc9e034fb863370d3d63a | /demo/oop/mi/demo4.py | a809a72674572c87f659b4991896a18f4effd402 | [] | no_license | srikanthpragada/PYTHON_21_SEP_2020 | 012f27868dcbbeba9964fbc2f963198e9d3f626f | 9e28dfc1d35d710fb4f32b158e0e73861d5fc9ac | refs/heads/master | 2023-01-02T18:39:28.554862 | 2020-10-28T02:24:20 | 2020-10-28T02:24:20 | 298,142,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class A:
def process(self):
print("Process in A")
class B(A):
pass
class C(A):
def process(self):
print("Process in C")
class D(B, C):
pass
obj = D()
obj.process()
print(D.mro()) | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
c23660db52fea446d25017ac197279c37ff7df94 | c4267e2e092ac0e3f53e82eef5a0bd5417222525 | /base/base_T5.py | b7209bde1bec3d59f9f7cefb2f28f8fe4a4fe002 | [] | no_license | chenyang1999/lanqiaocup_marcus | fde22466287e2bea02b7ea4292256b70fed1d33b | 6ad13f1a28ca6b650d9545b5148a450d1c9cd154 | refs/heads/master | 2023-01-07T06:47:11.316530 | 2020-11-14T08:21:42 | 2020-11-14T08:21:42 | 286,075,513 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | '''
问题描述
给定一个年份,判断这一年是不是闰年。
当以下情况之一满足时,这一年是闰年:
1. 年份是4的倍数而不是100的倍数;
2. 年份是400的倍数。
其他的年份都不是闰年。
输入格式
输入包含一个整数y,表示当前的年份。
输出格式
输出一行,如果给定的年份是闰年,则输出yes,否则输出no。
'''
n=int(input())
if (n%4==0)and(n%100!=0) or (n%400==0):
print('yes')
else:
print('no')
| [
"34475230+chenyang1999@users.noreply.github.com"
] | 34475230+chenyang1999@users.noreply.github.com |
3a4f7cd5e67246cbd53f57079413493158901450 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/vpsrlw_ymm_ymm_xmm/instructions/vpsrlw_ymm_ymm_xmm/vpsrlw_ymm_ymm_xmm.gen.vex.py | ac220d900c443bc37197e364bd268625ee83393d | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import angr
proj = angr.Project('./instructions/vpsrlw_ymm_ymm_xmm/vpsrlw_ymm_ymm_xmm.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
574d9f240c46961ab64781b6206ab27569c919d4 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/sdl2/test/version_test.py | 4c4f54ca0aba4dd64e485bd5c91f9973da5dff93 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 2,505 | py | import sys
import ctypes
import pytest
import sdl2
from sdl2 import dll, __version__, version_info
def test__version_tuple():
# Note that this is not public API.
assert dll._version_tuple_to_int((2, 0, 18)) == 2018
assert dll._version_tuple_to_int((2, 24, 1)) == 2241
# Micro version stops at 9 in this... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
1064dd2a532c28681368959e15db5a6a1789ba6d | 152f8c72bcb315bc0cf40ec389a97898cbc057c3 | /_sadm/listen/errors.py | bb22caffc4806e8930841d85c15e5e243312fe81 | [
"BSD-3-Clause"
] | permissive | jrmsdev/pysadm | 0a205cf7b4bf647461d480403051b5f88f82090b | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | refs/heads/master | 2022-06-11T07:33:53.847565 | 2019-11-13T04:25:00 | 2019-11-13T04:25:00 | 186,210,706 | 1 | 0 | BSD-3-Clause | 2022-06-03T22:45:36 | 2019-05-12T04:19:14 | Python | UTF-8 | Python | false | false | 1,470 | py | # Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com>
# See LICENSE file.
from bottle import response, HTTPError, request, HTTP_CODES
from _sadm import log
__all__ = ['init', 'error']
def _handler(code, error):
log.debug("handler %d" % code)
log.debug("%d - %s" % (error.status_code, error.status_line))
argsLe... | [
"jrmsdev@gmail.com"
] | jrmsdev@gmail.com |
d55baa8c7931039f27574f922f012fbfad8715c7 | ee10559195ec6e8e8c514ace5e131598a9ae29ae | /algo/algo_02/특별한정렬.py | 85e3aae8e8c813cbafcb69669c7665333bd59b5d | [] | no_license | jun0811/TIL | 12e8f0ab0506ed6ba81e3c0b6f18c4d5743324d1 | 2bc6da0214ffad7989270b60d682d5060a37531f | refs/heads/master | 2023-04-03T09:56:30.434378 | 2020-11-12T08:55:32 | 2020-11-12T08:55:32 | 282,910,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | def select_max(arr, k):
for i in range(k):
max_n = i
for j in range(i+1, len(arr)):
if arr[max_n] < arr[j]:
max_n = j
arr[i], arr[max_n] = arr[max_n], arr[i]
return str(arr[k-1])
def select_min(arr, k):
for i in range(k):
min_n = i
for j i... | [
"nate199458@gmail.com"
] | nate199458@gmail.com |
5e88ad802cd4191e107338ee1973dcab8852c683 | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /training/04_sorting/closest_numbers.py | a8911c2fa9d77f3da3ce44d5dceeaa0729b6d78a | [] | no_license | salvador-dali/algorithms_general | 04950bd823fc354adc58a4f23b7d2f3d39664798 | aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d | refs/heads/master | 2020-12-14T06:24:10.466601 | 2016-07-17T06:00:17 | 2016-07-17T06:00:17 | 47,397,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # https://www.hackerrank.com/challenges/closest-numbers/
# Given a list of unsorted numbers, can you find the numbers that have the smallest absolute
# difference between them? If there are multiple pairs, find them all.
def closestNumbers(arr):
arr.sort()
smallestList, smallestDiff = [], 10**10
for i in r... | [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
7dda270cb89324484f1f2395537ee120b96934c0 | 63efeff58299f3ca66c7be0aa80d636ade379ebf | /March/firstNotRepeatingCharacters.py | 7d6c8eeff907be76a685eb78cdf248738008b223 | [] | no_license | gosch/Katas-in-python | 0eb6bafe2d6d42dac64c644c2fd48f90bdcef22b | f89ee2accdde75222fa1e4e0ca8b4f8e27b7b760 | refs/heads/master | 2021-07-24T23:50:26.268217 | 2020-04-14T23:53:15 | 2020-04-14T23:53:15 | 137,545,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | def firstNotRepeatingCharacter(s):
v = [0] * 26
for i in s:
v[ord(i) - ord('a')] += 1
for i in s:
if v[ord(i) - ord['a']] == 1:
return i
return '_'
print(firstNotRepeatingCharacter("abacabad")) | [
"francisco.gosch@ge.com"
] | francisco.gosch@ge.com |
544f39d0e4849b3724752b33837d4ade1f75bb68 | b5ce6908490cfb8e6a1e1cbe4745d675122ddce0 | /questions/compare-version-numbers/Solution.py | c09a63ebef803affca38aee90843be66dd2e765e | [
"MIT"
] | permissive | franklingu/leetcode-solutions | 8895910f13208e1d8e604100d84c2dd35684cde4 | 7ad7e5c1c040510b7b7bd225ed4297054464dbc6 | refs/heads/master | 2023-01-09T01:34:08.097518 | 2023-01-02T02:05:35 | 2023-01-02T02:05:35 | 43,345,677 | 155 | 66 | MIT | 2020-10-02T03:41:36 | 2015-09-29T04:54:38 | Python | UTF-8 | Python | false | false | 2,144 | py | """
Compare two version numbers version1 and version2.
If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0.
You may assume that the version strings are non-empty and contain only digits and the . character.
The . character does not represent a decimal point and is used to separate num... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
b883ed842f7690fde699ff443ca676adc01a44b0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_vinegary.py | 653de88336afb19a4ab2a15bab7561617533e496 | [
"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 | 453 | py |
#calss header
class _VINEGARY():
def __init__(self,):
self.name = "VINEGARY"
self.definitions = [u'tasting or smelling like vinegar: ', u'angry and unpleasant, or giving a lot of criticism: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
aeff02783c27d7d8d94f42c54b1ddcec5836af70 | 7619aed8a311e2832634379762c373886f4354fb | /trace_floodlight_firewall-MeshTopology4-steps200/replay_config.py | 87195057cf5fe11f0768a6301d89358f649e3825 | [] | no_license | jmiserez/sdnracer-traces | b60f8588277c4dc2dad9fe270c05418c47d229b3 | 8991eee19103c8ebffd6ffe15d88dd8c25e1aad5 | refs/heads/master | 2021-01-21T18:21:32.040221 | 2015-12-15T14:34:46 | 2015-12-15T14:34:46 | 39,391,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.replayer import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cm... | [
"jeremie@miserez.org"
] | jeremie@miserez.org |
e8f2ee54b4593c5f2cba14c51572ac76ab1bd325 | 8d2e5b5ea408579faa699c09bdbea39e864cdee1 | /ufora/networking/SocketStringChannel.py | 7dd8db8de7d30be32e2bfbb205bf76b4a306ae67 | [
"dtoa",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | iantuioti/ufora | 2218ef4c7e33c171268ce11458e9335be7421943 | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | refs/heads/master | 2021-01-17T17:08:39.228987 | 2017-01-30T16:00:45 | 2017-01-30T16:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # Copyright 2015 Ufora 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 or agreed to i... | [
"braxton.mckee@gmail.com"
] | braxton.mckee@gmail.com |
9e3346c416adf380dc6e422d8318352326c33b14 | 6deafbf6257a5c30f084c3678712235c2c31a686 | /Toolz/sqlmap/plugins/dbms/sybase/fingerprint.py | c88b22d045d9152ffd54bb1a076a59d3a2daa804 | [
"Unlicense",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-other-permissive"
] | permissive | thezakman/CTF-Heaven | 53fcb4a72afa821ad05d8cc3b309fb388f958163 | 4b52a2178922f1502ab00fa8fc156d35e1dc653f | refs/heads/master | 2023-04-05T18:20:54.680378 | 2023-03-21T13:47:45 | 2023-03-21T13:47:45 | 167,290,879 | 182 | 24 | Unlicense | 2022-11-29T21:41:30 | 2019-01-24T02:44:24 | Python | UTF-8 | Python | false | false | 3,355 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
from lib.core.common import Backend
from lib.core.common import Format
from lib.core.common import unArrayizeValue
from lib.core.data import conf
from lib.core.data import kb
from... | [
"thezakman@ctf-br.org"
] | thezakman@ctf-br.org |
f8bd0380e72c08810391f7b6c48e94849efcf7a1 | e06700779972be87d537d1fee69d1808317c4c65 | /posts/views.py | 506535f85514465bdc3a83139bd13b42184ff508 | [] | no_license | ajy720/django_Study | 5d73d14974ff8c538871dd0b5782d431baf6bdce | a7b7e7ad12239b9b296f8055c6d417e6835938f3 | refs/heads/master | 2022-06-05T13:21:01.479148 | 2020-05-04T05:37:17 | 2020-05-04T05:37:17 | 229,542,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from .models import Post
from .forms import PostForm
import pdb
def main(request):
context = {
"posts": Post.objects.all(), # 정렬 방법 1. models.py에서 해주는 방법
# "posts": Post.objects... | [
"ajy720@gmail.com"
] | ajy720@gmail.com |
cd9080a31750fd6fb0f6169f6b3a521c68c2b600 | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/.svn/pristine/cd/cd9080a31750fd6fb0f6169f6b3a521c68c2b600.svn-base | 3edb65fecab8efada344d05e730544d8fd6e0929 | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | #!/usr/bin/env python
# -*- coding: utf8 -*-
from django.db import models
class RecommendKeywords(models.Model):
name = models.CharField(u'推荐搜索关键词', max_length=50)
class Meta:
verbose_name = u'推荐搜索关键词'
verbose_name_plural = verbose_name
def __unicode__(self):
retur... | [
"1461847795@qq.com"
] | 1461847795@qq.com | |
fed1270ad3e023a09ad4a6c34adf894036258543 | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /lib/RollHash.py | 256aaff82909156e295b6cb35458d089751d67f4 | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | A = 'abcd'
B = 'dacbabcdaacd'
W, MOD = 26, 2**32
L = len(A)
h = 0
for i in range(len(A)):
h = (h * W + ord(A[i])) % MOD
b_h = 0
WL = pow(W,L,MOD)
for i in range(len(B)):
if i < len(A):
b_h = (b_h * W + ord(B[i])) % MOD
else:
b_h = (b_h * W - ord(B[i-L]) * WL + ord(B[i])) % MOD
if b_h ... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
c22c92dfe26cffb6193e8818d239bc2767418d4f | e755453c853ae400d94f562ad215b59166b63782 | /tests/splay_tests/test_prev.py | 68c2817fe7eda9dc6a0bce3cc6dcdd77fe0ba5d6 | [
"MIT"
] | permissive | lycantropos/dendroid | 0cb3e276dd9c476b82b0b7a17c25c2e05616a993 | fd11c74a395eb791caf803c848805569869080f6 | refs/heads/master | 2023-04-07T11:07:55.550796 | 2023-03-27T00:46:03 | 2023-03-27T00:46:03 | 215,369,321 | 0 | 1 | MIT | 2020-09-24T05:02:02 | 2019-10-15T18:29:36 | Python | UTF-8 | Python | false | false | 547 | py | from typing import Tuple
from hypothesis import given
from dendroid.hints import Value
from tests.utils import (BaseSet,
are_keys_equal,
set_value_to_key)
from . import strategies
@given(strategies.non_empty_sets_with_their_non_min_values)
def test_properties(set_wi... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
1d51d837e727c28b3f81bbbc0c956636983839e0 | b28300f3af1517e149baeadd9f87d92e56e23ba0 | /pages/forms.py | 65907867023b70c0f348bf0a17bbf9029e3fe93f | [] | no_license | xarala221/myportfolio | f39ea13fe493d4d3a7525774d568daa099a51cd0 | a62be57414b0971157a9923c17ec8bf5c9524823 | refs/heads/master | 2022-12-14T23:00:42.540391 | 2018-06-29T01:27:39 | 2018-06-29T01:27:39 | 138,381,453 | 2 | 0 | null | 2022-12-08T02:14:30 | 2018-06-23T07:39:53 | JavaScript | UTF-8 | Python | false | false | 781 | py | from django import forms
from .models import Contact
class ContactForm(forms.ModelForm):
email = forms.EmailField(label='Email :', widget=forms.EmailInput(attrs={'placeholder': 'Your Email', 'class': 'form-control ', 'required': 'True'}))
name = forms.CharField(label='Name :', widget=forms.TextInput(attrs={'placeh... | [
"xaralaxarala@gmail.com"
] | xaralaxarala@gmail.com |
c340916b2367f30fe565bb515bbbbf87eb4445e3 | acad4e69e68354311e6b82f70d713e5c47d30cf8 | /User_version/Chapter1_Pre-requisit/Section1_math/01_solution.py | c1513df4d29e7b25e65b9fd7de36fa04bd169bf1 | [
"MIT"
] | permissive | MacHu-GWU/Data-Science-in-Python | fabe7232349cec78a4cded4d930a66fc5e362a2c | a3042864fae6c764d031817c7d7f5ef4ee7251cb | refs/heads/master | 2020-04-06T07:02:54.415759 | 2018-08-04T16:56:27 | 2018-08-04T16:56:27 | 22,156,078 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | ##coding=utf8
##author=Sanhe
##date=07-13-2014
'''
Let's take a look at how long your codes takes.
Please copy your codes to the function "combination(n,k)", and run.
Usually the solution is 4-10 times faster than naive implementation.
WHY?
Time complexity
c(n,k) = n! / (k! * (n-k)! )
... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
d7c70f9ad07e408f22db366edf4d3645a22ed5d4 | 3f7d819c918fe185bfb2c96bdd85b394e3b3b42c | /12-4-15.py | fffc1d210b97cd33177e4c8571206576d5467b74 | [] | no_license | daxaxelrod/notes-from-3rd-semester | 1b04a1c8bba458c9af226d190ebdfa6bb31cef62 | 171f272bd57c7989f999dc799f1fa1b3ca88f5d9 | refs/heads/master | 2021-01-10T12:49:05.632358 | 2015-12-14T22:19:40 | 2015-12-14T22:19:40 | 47,573,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | 12-4-15 class notes
quick thing on zeroth law of thermodynamics
validates idea of tempertature
2 objects in thermal equalirium with a 3rd object are equal to eachother
Chapter 19
Kinetic Theory of gasses
def review():
look over the first two setions of chater 19
pressure volume equals N R temp... | [
"daxaxelrod@gmail.com"
] | daxaxelrod@gmail.com |
7f34e8fac9c89052bcd5c9d0ab669942016c0277 | a3ed36806067cecb5c7aaa5dcfe4a0e4163a0742 | /tests/unit/test_base.py | ca8ad6a430909b83a6a161825458f6c183d37108 | [
"MIT"
] | permissive | gabrielfalcao/plant | 02f14055439947fa4c56f58c8b9f539b8eb7f559 | 6d9122470fd6ad3b89957f0dcbc6bdeedb46ca9b | refs/heads/master | 2021-08-28T16:00:45.533014 | 2017-09-08T17:55:39 | 2017-09-08T17:55:39 | 11,139,306 | 6 | 4 | NOASSERTION | 2019-12-20T17:39:56 | 2013-07-03T01:37:50 | Python | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
# <plant - filesystem for humans>
# Copyright (C) <2013> Gabriel Falcão <gabriel@nacaolivre.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"gabriel@nacaolivre.org"
] | gabriel@nacaolivre.org |
bf8ca3cf4733a29992a93f9a401b418c5c3aeb68 | b6699361cea596afbafcff40056e12a3ccadb590 | /complexconfig_python/complexconfig-0.2/complexconfig/parser/dict_parser.py | 5605448e1ff53b86678150ab5608dcb74eec378e | [
"Apache-2.0"
] | permissive | benhe119/python_lib | 4c6ba3468ef380eadc5ab65401052aba224801db | e2d4052de04c82cb7bccd08042f28db824cab442 | refs/heads/master | 2020-08-09T10:09:59.368521 | 2019-03-29T02:21:55 | 2019-03-29T02:21:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # -*- coding: utf8 -*-
from __future__ import print_function, unicode_literals
from . import BaseParser
class DictParser(BaseParser):
"""
Parse config from dictionary.
This is a specific parser which parse code from python dictionary instead of text
"""
def parse(self, data):
return da... | [
"zengjinping@threathunter.cn"
] | zengjinping@threathunter.cn |
db4a5b1057320eaf972ba83b5616f4e54d71cc19 | 99ed889f5d679f0712a9578435819ff9fe1038e9 | /baselines_tactile/ppo2/test_microbatches.py | c758fb8f5ba3adf9123d5c59631875cee4554f44 | [] | no_license | WMViolet/baselines_tactile | 7e7800c44167d6e29f4f4a187e49d92462f49100 | 761193122ff8c914d8b983d93620a7ffc63ea917 | refs/heads/main | 2023-02-24T00:30:04.616016 | 2021-02-01T23:45:53 | 2021-02-01T23:45:53 | 322,393,115 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | from envs import gym
import tensorflow as tf
import numpy as np
from functools import partial
from tactile_baselines.common.vec_env.dummy_vec_env import DummyVecEnv
from tactile_baselines.common.tf_util import make_session
from tactile_baselines.ppo2.ppo2 import learn
from tactile_baselines.ppo2.microbatched_model im... | [
"violetfuyao@berkeley.edu"
] | violetfuyao@berkeley.edu |
6eaff47ed53d499b32e238b5a7097c89a1bc0175 | f6641c552622e1446d913d50f561ff14c524e885 | /data/box_data_bidirect.py | 76bae58334dd110d98ed895f37fc04711a480921 | [] | no_license | yangyi02/video_motion_synthetic3 | 939d1ddd3a4caada87e0e2ef3ed430dae9b2447e | e732d3641c555422b977648211683cb21186bcdb | refs/heads/master | 2021-01-01T06:46:55.553125 | 2017-08-04T00:19:28 | 2017-08-04T00:19:28 | 97,509,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | import numpy
from synthetic_data_bidirect import SyntheticDataBidirect
import learning_args
import logging
logging.basicConfig(format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s',
level=logging.INFO)
class BoxDataBidirect(SyntheticDataBidirect):
def __init__(self,... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
adb66b38b38c519f92faf97c07eefe21491c1f8b | bf0c13d412a7021b299c5e0622e63e72172cf725 | /week4/todolist/api/migrations/0002_task_created_by.py | c072e72d50a61591cd796376074211e17682bbbe | [] | no_license | Alibek120699/BFDjango | 765e734e925041947f607a1d15228309dfa3e647 | eac06c317551c561ffccb44750862972ae11dea3 | refs/heads/master | 2022-12-01T15:49:39.402815 | 2020-04-19T21:09:39 | 2020-04-19T21:09:39 | 233,657,360 | 0 | 0 | null | 2022-11-22T05:49:56 | 2020-01-13T17:50:13 | Python | UTF-8 | Python | false | false | 593 | py | # Generated by Django 2.2 on 2020-02-16 13:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('api', '0001_initial'),
migrations.swappable_dependency(settings.A... | [
"sayakalibek1@gmail.com"
] | sayakalibek1@gmail.com |
8a56d384d8f53a7a0624ccda96ddcebda8177931 | acf8ce66cc5335b7a1ce98887949bee724d98d9e | /stu_and_extend/extend_info/views.py | e751667727978882e693199a847ea95679efd8f4 | [] | no_license | iversongit/20180426 | eec4f56612cd775be179783932fee19cd9f59096 | b5af588eff11940fff9222e9662ca3f49442ab10 | refs/heads/master | 2020-03-13T10:15:20.061654 | 2018-04-27T02:19:00 | 2018-04-27T02:19:00 | 131,079,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
# Create your views here.
from extend_info.models import Extend
from student.models import Student
def addExtendInfo(request,s_id):
if request.method ... | [
"1564329410@qq.com"
] | 1564329410@qq.com |
d4fba6a899bdae2ae0774c15e23236244c0e3ec1 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArExample/LArCalibProcessing/share/LArCalib_Example_HVCorr.py | e4330dd17032ade9800b69f61ce3b19e7ff0e949 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,059 | py | #################################################################
#
# example jobOptions to read HV from Cool/DCS in athena
# and compute cell level correction factors to store in conditions
# database
#
##################################################################
from time import strptime,time
from calendar... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
58310eb70b1d56186ab82bb5923708c9a6cfd67d | b3f22f69401f57e29ea7b3fe7fd921d328abfdb2 | /autohome/items.py | 98d04c298d38af7dedc356a9e5352544c08f6325 | [] | no_license | ivancoacher/autohome | 1f148b4ab6738f226bb2c6683aeafd4e37cde358 | ebf0d213e08a8386b436e03b65a6747aa0de4d43 | refs/heads/master | 2021-05-31T02:27:54.979715 | 2015-11-24T05:18:13 | 2015-11-24T05:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class AutohomeItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
content = Field()
| [
"heshang1203@sina.com"
] | heshang1203@sina.com |
5cc795f76bf1ca525800c7786bef520c5fc96657 | 32e716570ab33a201e7581bfa497bfa820729cd8 | /web_3/class_write/server.py | cbfbef35c11da618ca6b434626347f6b6b01a4c6 | [] | no_license | Coder-Chandler/Web | b21bf9213432d1bfe949c00e9c0e507883574d1e | bb1e403ae194aec01896f374607135d24d2cb16f | refs/heads/master | 2021-09-07T11:16:49.516177 | 2018-02-22T05:33:31 | 2018-02-22T05:33:31 | 112,816,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | # coding: utf-8
"""
url 的规范
第一个 ? 之前的是 path
? 之后的是 query
http://c.cc/search?a=b&c=d&e=1
PATH /search
QUERY a=b&c=d&e=1
"""
import socket
import urllib.parse
from utils import log
from routes import route_static
from routes import route_dict
# 定义一个 class 用于保存请求的数据
class Request(object):
def __init__(self):
... | [
"ysiwgtus@gmail.com"
] | ysiwgtus@gmail.com |
dccaabaea2ce82f404be9435d198c09cebb12357 | e01842bbd6fa4ec5df69e9dc3feda23f0085367c | /blog/posts/urls.py | 9e9f930a79c1eb0d80c0c12fe9aef76893311746 | [] | no_license | Greh/pyladies-gswd | cae38aa9f60e9d0307401e18f97390a3388d32d2 | a6c0cf555068fd4bc7cf8eaead8237e2d04d0f46 | refs/heads/master | 2021-01-20T22:51:08.683674 | 2013-08-24T08:53:39 | 2013-08-24T08:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('',
url(r'^$', views.post_list_view, name='list'),
url(r'^read/(?P<slug>[-\w]+)/$', views.post_detail_view, name='detail'),
)
| [
"kenneth@gigantuan.net"
] | kenneth@gigantuan.net |
fec6355a19a54de67434605bd6c36ffc7fd76909 | 8633ec7985ffd7f849210b93bc20e632f8ae8707 | /tree/CMSSW_4_2_8_patch7/src/Validation/RecoTrack/python/PostProcessorTracker_cfi.py | 9d4bd7efb05784788385b3074371e74ca53102c8 | [] | no_license | liis/el_track | 2ed5b3b7a64d57473328df0e5faf28808bab6166 | cd7978e5fa95d653bab5825b940911b465172c1a | refs/heads/master | 2016-09-10T20:09:07.882261 | 2015-01-08T14:41:59 | 2015-01-08T14:41:59 | 14,494,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,530 | py | import FWCore.ParameterSet.Config as cms
postProcessorTrack = cms.EDAnalyzer("DQMGenericClient",
subDirs = cms.untracked.vstring("Tracking/Track/*"),
efficiency = cms.vstring(
"effic 'Efficiency vs #eta' num_assoc(simToReco)_eta num_simul_eta",
"efficPt 'Efficiency vs p_{T}' num_assoc(simToReco)_pT num... | [
"polaarrebane@gmail.com"
] | polaarrebane@gmail.com |
b4d5b5ebd165f661378a8add290298b1ad8bac5c | 36c00fe2afff4818c937e312ce0c6a79f35e2a77 | /7-kyu/dictionary-from-two-lists/python/solution.py | 4a710029d9177cbb5e6dccb8e00376800102be0b | [] | no_license | p-lots/codewars | 0a67b6ee4c91180ff78c648421b9d2d64463ddc3 | 535faeee475c6b398124d6f5002b0e111406e8bb | refs/heads/master | 2023-08-23T22:14:33.635011 | 2023-08-23T13:30:37 | 2023-08-23T13:30:37 | 195,320,309 | 0 | 0 | null | 2023-05-09T19:25:50 | 2019-07-05T01:40:15 | Python | UTF-8 | Python | false | false | 132 | py | def createDict(keys, values):
while len(values) < len(keys):
values.append(None)
return dict(zip(keys, values))
| [
"paul.calotta@gmail.com"
] | paul.calotta@gmail.com |
a39e9bab1aa016cf4f51db6b1ddcf7edd3ba6b25 | 4d9bdc1444ab73858a123b8273b72e1d74a9233d | /funNLearn/src/main/java/dsAlgo/sort/BucketSort.py | cddef4a09f7d8aba57c892f73c9bfb70035b2b75 | [] | no_license | vishalpmittal/practice-fun | f7ca1389d758f93ddf2ddc3a58f2592b7caabab4 | 727dec2e23e765925a5e7e003fc99aeaf25111e9 | refs/heads/master | 2022-07-11T18:31:49.574410 | 2022-02-26T23:05:12 | 2022-02-26T23:05:12 | 51,132,794 | 0 | 1 | null | 2022-06-29T19:34:05 | 2016-02-05T07:34:32 | JavaScript | UTF-8 | Python | false | false | 1,184 | py | """
Tag: sort
"""
from typing import List
class Solution:
def insertionSort(self, B: List[int]) -> List[int]:
for i in range(1, len(B)):
up = B[i]
j = i - 1
while j >= 0 and B[j] > up:
B[j + 1] = B[j]
j -= 1
B[j + 1] = up
... | [
"vishalm@vmware.com"
] | vishalm@vmware.com |
10b1c8f6d365f2b3cdbf5aba30dd342bfdf97743 | a8ca62991d552367831daf302833053dec847d1b | /data_structures/python/tree.py | f4b902f99075ec6af63bc84c56e5f2a913b9792c | [] | no_license | krinj/tech-interview-kit | fec0d6e192ee4c3226602c840fcf650e7e10e726 | 86967a9237dd465dbeb9f6ada896eeceae6d553c | refs/heads/master | 2022-01-10T02:57:22.632021 | 2019-05-31T14:02:02 | 2019-05-31T14:02:02 | 185,377,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # -*- coding: utf-8 -*-
"""
Python binary tree.
"""
from typing import Union
__author__ = "Jakrin Juangbhanich"
__email__ = "juangbhanich.k@gmail.com"
class TNode:
def __init__(self, key: Union[str, int, float], data=None):
self.left: TNode = None
self.right: TNode = None
self.key: Union... | [
"juangbhanich.k@gmail.com"
] | juangbhanich.k@gmail.com |
019239c764dc2fe2ed066beb136ef05b5afe9741 | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /evaluate-reverse-polish-notation/evaluate-reverse-polish-notation.py | b2e0ca728623d1edf0e18e6502be0e0b436af60b | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | class Solution:
def evalRPN(self, tokens: List[str]) -> int:
stack = []
# operators = {"+","-","*","/"}
for token in tokens:
if token[-1].isdigit():
stack.append(int(token))
# elif token in operators:
else:
second = stack.po... | [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
2b3452773a594169640f1364f39a01c29f048d9b | 34b55781ae90e1f268ce74ee27ecd4909663b728 | /freqlearn/images/draw_impulses.py | 2c1aa223d0c864e568b0e4078afc6057ad1863ba | [] | no_license | fbcotter/thesis | 28ecac0d84f1a5ff9ea104e8e1ac7753beba1c51 | e1a4032ffd6d241694fc173d67051798db22f20d | refs/heads/master | 2023-03-28T14:02:09.835895 | 2020-06-12T09:56:04 | 2020-06-12T09:56:04 | 269,305,306 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # coding: utf-8
import matplotlib.pyplot as plt
import numpy as np
from math import *
import dtcwt
xfm = dtcwt.Transform2d('near_sym_b', 'qshift_b')
x = np.zeros((128,64))
p = xfm.forward(x, nlevels=2)
m = p.highpasses[1].shape[0] // 2
r = int(.8 * m)
fig, ax = plt.subplots()
w = np.array([-1j, 1j, -1j, -1, 1, -1], 'co... | [
"fbcotter90@gmail.com"
] | fbcotter90@gmail.com |
9c473691dcc0f4e2dc4c0c3a0135eb5eca24fded | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/scene/yaxis/_dtick.py | 508da58d48cdfe7cca997d9b666a67c6367abde3 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 477 | py | import _plotly_utils.basevalidators
class DtickValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(self, plotly_name="dtick", parent_name="layout.scene.yaxis", **kwargs):
super(DtickValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
be9dbe69c82f3c7fcfb4be1760bb03d41e845213 | f121695e2dff353607fa47fb42482470e03bbf8a | /capitulo_19-Contas_de_usuario/learning_log/learning_logs/migrations/0003_topic_owner.py | 9b0e4de5a7cad3f304adda9c7ccdd8dc8ebadeb9 | [] | no_license | ranog/python_work | 76cbcf784c86fae4482be5383223e4b0a34f4130 | 47c442a90dcf32d5aef70858693a772a3c76a7ac | refs/heads/master | 2022-12-22T11:02:26.482059 | 2021-04-17T01:12:22 | 2021-04-17T01:12:22 | 233,634,221 | 2 | 1 | null | 2022-12-08T07:38:43 | 2020-01-13T15:58:46 | Python | UTF-8 | Python | false | false | 602 | py | # Generated by Django 3.1.4 on 2021-01-23 15:03
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),
('learning_logs', '0002_en... | [
"jprnogueira@yahoo.com.br"
] | jprnogueira@yahoo.com.br |
0cedadd55b1e6d9d6b10d6d76f215c3480001304 | c2636c8bb8964ed2d6c8eca6c922dea27ef597e8 | /main.py | 26767768b29e108b2f1cd7bd3429822c71ab9629 | [] | no_license | rafaeltorrese/webscrapperplatzi | 97db94c5db5f919d198a4aa266aba4ed42a08d73 | f692f18ad17740d4a506a9d560a61180bad1b8ea | refs/heads/master | 2022-12-14T08:37:24.353294 | 2020-09-04T22:53:05 | 2020-09-04T22:53:05 | 292,951,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import argparse
import logging
import re
from requests.exceptions import HTTPError
from urllib3.exceptions import MaxRetryError
from common import config
import news_page_object as news
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
is_well_formed_link = re.compile(r'^https?://.+/.+$') ... | [
"torresc.rafael@gmail.com"
] | torresc.rafael@gmail.com |
e3bed94cd6c673192d0065f770c84ddcc55c6d0f | 1287ad54942fd2020a217ab12004a541abb62558 | /pythonexercicios/Ex069.py | 3e115b129e95eaefc77d1cfc0493628117d9168a | [] | no_license | LuPessoa/exerciciospy- | 637f24581722e547a62380973ca645b55ff65d90 | b5faad818f978bb13a65922edceb17888b73a407 | refs/heads/master | 2023-05-12T04:16:39.847184 | 2021-06-04T03:02:24 | 2021-06-04T03:02:24 | 374,410,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | tot18 = toth = totm20 = 0
while True:
idade = int(input('Idade: '))
sexo = ' '
while sexo not in 'MF':
sexo = str(input('Sexo:[M/F]')).strip().upper()[0]
if idade >= 18:
tot18 += 1
if sexo == 'M':
toth += 1
if sexo == 'F'and idade < 20:
totm20 += 1
resp = ' ... | [
"lulenemacedo29@gmail.com"
] | lulenemacedo29@gmail.com |
86e3018dfa70529dc368c2fd8577eea8b8c9b37b | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/RecExample/RecExCommission/share/RecExCommissionCommonFlags_jobOptions.py | 28d3249054bcee974759a24c6adda8d0d21b089f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,532 | py | # ---------------------------------------------------------------------------
# RecExCommon flags
# ---------------------------------------------------------------------------
include.block("RecExCommission/RecExCommissionCommonFlags_jobOptions.py")
# -----------------------------------------------------------------... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
912f205c750470d91a847ee210f182d2c0cb001a | 40ac1c3f3dc024e2cdb5e7939abf408cde1b59ee | /webscraper/application/airquality/app_air_quality_scraper.py | 71cc8dafa1476eb9dbe385cb727aab56a7da302c | [] | no_license | plutoese/webscraper | 5319fbdcd2baf7392b2f9fb623eddef8f9c0bbcf | f360a10e0e6da2c250a2c7e5c64ceb74e6919ac6 | refs/heads/master | 2020-04-15T12:43:23.740908 | 2017-12-24T14:22:07 | 2017-12-24T14:22:07 | 61,554,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | # coding=UTF-8
# --------------------------------------------------------------
# application_air_quality文件
# @introduction: 抓取空气质量的数据
# @source:天气后报,http://www.tianqihoubao.com/aqi/
# @dependency: requests,bs4及re包
# @author: plutoese
# @date: 2016.06.26
# --------------------------------------------------------------... | [
"glen.zhang7@gmail.com"
] | glen.zhang7@gmail.com |
8de8074878d9a6ef66cf4b622dd96bda62582f72 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_ConstantTrend_NoCycle_MLP.py | 8dc04c8230edaa12adfba6c5a152dc044fc81b45 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 161 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Integration'] , ['ConstantTrend'] , ['NoCycle'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
10ffed599ac0d1038847cb9bd88e3bb7cfa7baa5 | 245381ad175dcc03ee0710964340eed4daa2ef85 | /shagroup/asgi.py | 68a2f8abe49c2e7dc7b2c96529a21083cda0f947 | [] | no_license | musabansari-1/Shagroup-erp-backend | 2c1f56f7ce5763dae668d160cdcc1a26dbc2e8d7 | 87845f11faae50301d5bb73ffa0c3ee0bed38256 | refs/heads/main | 2023-04-13T02:25:36.808755 | 2021-04-15T16:28:19 | 2021-04-15T16:28:19 | 358,324,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for shagroup project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"musabzahida@gmail.com"
] | musabzahida@gmail.com |
a5e95a78db593a7a838f3c05604b0d18e3f5e2b0 | 6af6c7158609f889fa1f53c99b63c435113d496e | /RLTutorial/modelFreeValue.py | c57ba1bad60aeb8faff7827ff764ece01fdbbfe2 | [
"MIT"
] | permissive | fyabc/MSRAPaperProject | 170752a5b8bfdecbab876841762d8fd2f9732f08 | 2d7974acfe8065523d0c56da695807e94acd0b34 | refs/heads/master | 2020-04-06T08:03:08.211020 | 2016-09-07T10:28:11 | 2016-09-07T10:28:11 | 64,015,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | #! /usr/bin/python3
# -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals
from MDP import MDP
import version23
__author__ = 'fyabc'
def MonteCarlo(mdp, stateSamples, actionSamples, rewardSamples):
vFunc = {
state: 0.0
for state in mdp.states
}
nFunc = {
... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
7c1155cf96173f5b9655062ea7bac26a067474ff | a192078ebd74d54db64d02d815d805b4e8d9a0c6 | /GeneratePAMLChemopartitions.py | 4396e3399c57c88109daaa45fc7437cb7a69175c | [] | no_license | rjovelin/CRM_POPVAR | ae1fe4b55345dd41b6c8ed4566a4ebce8b1ac437 | 9fe6d475f834b1bf9cfad26248d16dadb9c4f2ae | refs/heads/master | 2021-01-21T14:23:53.028058 | 2016-07-04T18:08:33 | 2016-07-04T18:08:33 | 57,171,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,729 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 30 18:38:26 2016
@author: Richard
"""
# use this script to generate PAML alignment files for chemoreceptor gene membrane partitions
from manipulate_sequences import *
from chemoreceptors import *
import os
# set number of minimum codons of each partition
MinimumCodo... | [
"richard.jovelin@oicr.on.ca"
] | richard.jovelin@oicr.on.ca |
05e0c4be9187c69e133664eedd04e6dc36798554 | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /Hackerrank/problem_solving/implementation/Break_the_records.py | b150aeec27614733888d1b3cafb916de5e67b008 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 28 09:07:41 2020
@author: aims
"""
scores = [17,45,41,60,17,41,76,43,51,40,89,92,34,6,64,7,37,81,32,50]
def breakingRecords(scores):
high = []
high.append(scores[0])
low = []
low.append(scores[0])
count_max = 0
count_m... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
7b98411d65809d3254ba52dfd4f00395db75f254 | a5a4cee972e487512275c34f308251e6cc38c2fa | /pypospack/pyposmat/visualization/plot_2d_density_new.py | 06a52f350768e1a703822139dcea4ad5249f251b | [
"MIT"
] | permissive | eragasa/pypospack | 4f54983b33dcd2dce5b602bc243ea8ef22fee86b | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | refs/heads/master | 2021-06-16T09:24:11.633693 | 2019-12-06T16:54:02 | 2019-12-06T16:54:02 | 99,282,824 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats
from pypospack.pyposmat.visualization import PyposmatAbstractPlot
class Pyposmat2DDensityPlot(PyposmatAbstractPlot):
kde_bandwidth_types = ['silverman','silverman1986','chiu1999']
def __init__(self,config=None,data... | [
"eragasa@ufl.edu"
] | eragasa@ufl.edu |
9b6a8004b396ffea385ddfe4ebf79d7c40d5a1d2 | 1d8a4659d4a13cd8b0244918484990bb000687ea | /OpenPROD/openprod-addons/tracker/__openerp__.py | 4ea0f630e42a6909f66a9cb9ad244b53b60136b7 | [] | no_license | kazacube-mziouadi/ceci | d8218ede129186c26eb36f251ef42f07c7a74883 | eb394e1f79ba1995da2dcd81adfdd511c22caff9 | refs/heads/master | 2020-03-23T00:22:51.501409 | 2018-07-13T14:58:32 | 2018-07-13T14:58:32 | 140,859,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # -*- coding: utf-8 -*-
{
'name': 'Issue tracker',
'version': '1.1',
'category': 'Hidden/Dependency',
'license': 'LGPL',
'description': """""",
'author': 'Objectif-PI',
'website': '',
'depends': ['base_openprod'],
'data': [
'tracker_view.xml',
'data/sequence.xml',
... | [
"mziouadi@kazacube.com"
] | mziouadi@kazacube.com |
6a8b9e4ede272b664d0f795040983a39b0abec0f | d7016f69993570a1c55974582cda899ff70907ec | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_06_01/aio/_configuration.py | 432effa58c39c7f1021a6c274d2906adcb47ac1b | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 3,545 | 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"
] | kurtzeborn.noreply@github.com |
c26f65a8b4765d23a71a577bf9fdc2a895991866 | f411c70d2951f1744b7c5c47433593c5a1288f4d | /old_version_mysite (wegen bilder)-1a566232fd31fbf4038539de112513e859373364/blog/migrations/0009_auto_20200107_2049.py | f5e7596ffe53a3763b471b0fadf11444bb79f228 | [] | no_license | nevergofullretard/technikmax-website | b239c6cd378c196ab97c6141dd345434db795888 | 57c0ab44fc73bccc097df5d7003aaa38125e5413 | refs/heads/master | 2023-01-05T04:49:02.600988 | 2020-11-06T22:26:53 | 2020-11-06T22:26:53 | 249,065,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Generated by Django 2.1.2 on 2020-01-07 19:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_auto_20200107_2040'),
]
operations = [
migrations.AlterField(
model_name='project',
name='description',... | [
"jagermaxi1@gmail.com"
] | jagermaxi1@gmail.com |
5b70f0ee6f386b9458baaa5b140f0b18bed0f90b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_6/models/file_info.py | 23b64849799a5104d64bb70df45f389369dbffa6 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,301 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
cbe0e65929a0840a5b46f3c6711671225d2c19c2 | 58dcd83b6af6e947328519e3e8e43e7e07dce1da | /tasks/ptf.py | ec7bac864be4098bec8c90868c7c6594d2265149 | [
"MIT"
] | permissive | astrocatalogs/kilonovae | ad10ba93b5c9676edb0ccf983d8ff770d4de7808 | 887742fdfc26a291c61056bbb3a420370c377584 | refs/heads/master | 2021-01-21T22:25:39.526071 | 2018-06-29T00:36:58 | 2018-06-29T00:36:58 | 102,157,542 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,887 | py | """Import tasks for the Palomar Transient Factory (PTF).
"""
import os
from astrocats.catalog.utils import is_number, pbar
from bs4 import BeautifulSoup
from ..kilonova import KILONOVA
def do_ptf(catalog):
# response =
# urllib.request.urlopen('http://wiserep.weizmann.ac.il/objects/list')
# bs = Beautif... | [
"guillochon@gmail.com"
] | guillochon@gmail.com |
443af4141f7802b5d3e978997b9dac8822173592 | 892dd32ee0be7135cd33c875b06dcc66307dcc99 | /automation/MPTS/backup/Accounts.py | 6fe7e7d76954193b0d4e99c8c2a8a0ba288108da | [] | no_license | cloudbytestorage/devops | 6d21ed0afd752bdde8cefa448d4433b435493ffa | b18193b08ba3d6538277ba48253c29d6a96b0b4a | refs/heads/master | 2020-05-29T08:48:34.489204 | 2018-01-03T09:28:53 | 2018-01-03T09:28:53 | 68,889,307 | 4 | 8 | null | 2017-11-30T08:11:39 | 2016-09-22T05:53:44 | Python | UTF-8 | Python | false | false | 1,866 | py | import json
import sys
import time
from cbrequest import sendrequest, filesave, timetrack, queryAsyncJobResult, configFile
config = configFile(sys.argv);
stdurl = 'https://%s/client/api?apikey=%s&response=%s&' %(config['host'], config['apikey'], config['response'])
######## To Add an Account for TSM -- Begins
print... | [
"karthik.s@cloudbyte.com"
] | karthik.s@cloudbyte.com |
1a543e20fb95abcd577d9003d76182a50bd8bce2 | f5ab9e3d4119bee183bf8f8bd8fb2f3fea755fc5 | /backend/home/migrations/0002_load_initial_data.py | d4bb919a45ea61c2c8b90e58cf799aa726e7d3a9 | [] | no_license | crowdbotics-apps/nyayo-wallet-18168 | ac0ad9e481a81055ef499b41eb86f88448675bd7 | 6b9c874b3176713c800dc623b3cb366cc504c585 | refs/heads/master | 2022-11-05T23:37:52.818433 | 2020-06-17T19:52:20 | 2020-06-17T19:52:20 | 273,065,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Nyayo Wallet"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2fc4d12557de8db0b15da6c67806ef018129e119 | 6271171cbfab3e2b195b73cb936428adc6a1ca96 | /virtual/bin/pip3 | 8033ed37aafbc34b36d8141d1db9b65fd90cd886 | [] | no_license | UmuhireAnuarithe/Neighborhood | 7592f24d0f11ec77d7f46a92cdb9dced5e66dd11 | 60072d868433e38145b74cbe1cee06e16bf58266 | refs/heads/master | 2020-09-04T11:34:29.819137 | 2019-11-07T19:19:30 | 2019-11-07T19:19:30 | 218,758,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/wecode/Desktop/Umuhire/Neighborhood/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
a0323ac561a7a50abb306f498d8afa48cd00566e | d7fb8743b6faa4d948b2b08ca0dbdd3b0f11379b | /测试代码/theano/LSTMVRAE-master/VRAE.py | c61d81f248ad9a86b1b74adf9f6bfaf207556f16 | [] | no_license | bancheng/Stock-market | 219e9882858e6d10edad1d13fba67dadbedc27ba | 142ea0eaed0fdccd8e79a51c34d66d1be1c336ed | refs/heads/master | 2021-01-20T15:13:14.667022 | 2017-09-10T06:31:10 | 2017-09-10T06:31:10 | 90,737,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | import numpy as np
from chainer import Variable, Chain
from chainer import functions as F
class LSTMVRAE(Chain):
"""
Class: LSTMVRAE
===============
Implements Variational Recurrent Autoencoders, described here: http://arxiv.org/pdf/1412.6581.pdf
This specific architecture uses a single-layer LSTM ... | [
"tangdongge@buaa.edu.cn"
] | tangdongge@buaa.edu.cn |
28c55dd0c36cd14490b30996420bde8006459891 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1809541/homework02/program02.py | 219171cdc7d415d3f2ab468fa1f3b181bae13566 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | '''
Un file di compiti contiene informazioni su un insieme di compiti da eseguire.
Esistono due tipologie di compiti:
- compiti che possono essere eseguiti indipendentemente dagli altri.
- compiti da svolgere solo al termine di un compito preliminare.
I compiti del primo tipo sono codificati nel file mediante una ... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
bd207e42fac6fcf7bc3bd69478759816700352a8 | 0c35b8b69fe899bf510826c52ab3171443acdaf3 | /sportshack/predictor/migrations/0001_initial.py | d15192eb788edc952ded02a54ed439eeb4969c95 | [
"MIT"
] | permissive | vaastav/SportsHack | c37c8e9b315142091ad9dbe6b50268880421a69d | 6d20d1abcb1d72659607c08e4a9aafc291162c58 | refs/heads/master | 2020-02-26T17:12:24.526099 | 2016-03-12T21:50:54 | 2016-03-12T21:50:54 | 47,007,457 | 0 | 0 | null | 2016-03-12T21:50:55 | 2015-11-28T02:44:14 | null | UTF-8 | Python | false | false | 3,843 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
m... | [
"vaastav.anand05@gmail.com"
] | vaastav.anand05@gmail.com |
7191f92baf553381ff048a6940f844b83fc097a7 | ca064338a35104cc94c60b330fc9b60efee6a089 | /cabunicrisis/comparativegenomics/FastANI/FastANI_output_to_distance_matrix.py | 733ec67fa6482e409befb0df111fba5a6c1b4022 | [] | no_license | compgenomics2020/Team2-WebServer | 76d9c5e9ac01be84da2b19ee8c7cfcb088e24911 | 0e550cc523e93afd4417af688a1e9ada79ae489f | refs/heads/master | 2022-06-23T08:16:11.751133 | 2020-05-02T14:00:43 | 2020-05-02T14:00:43 | 263,474,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | #!/usr/bin/env python3
"""
Copyright 2019 by Jianshu Zhao (jansuechao@hotmail.com)
This script uses FastANI output to generate a PHYLIP distance matrix suitable for tree/headmap et.al.
"""
import argparse
import sys
def get_arguments():
parser = argparse.ArgumentParser(description='Distance matrix from pairwise ... | [
"github-noreply@oit.gatech.edu"
] | github-noreply@oit.gatech.edu |
5090607a5ef39fea84b21da06b8f38aeeea43fb4 | 13d013cd5481ad47d48cf87750647f08a9c630ed | /melons.py | b5545fdc3526f8ce157ea918c5c488daa28dd367 | [] | no_license | marjanasarker/oo-melons | 7878de32f9ead132770c77570ae1410a7fe29ed3 | a75fcce861b1e4ea47896921f2fbc221d875764f | refs/heads/master | 2023-03-21T11:01:13.996561 | 2021-03-12T21:00:08 | 2021-03-12T21:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | """Classes for melon orders."""
class AbstractMelonOrder():
"""An abstract base class that other Melon Orders inherit from."""
def __init__(self, species, qty):
self.species = species
self.qty = qty
def get_total(self):
"""Calculate price, including tax."""
ba... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
87b129553779da9bda36a4a63c210538154e7ef6 | 2fa4007849c1ec0f9c009ba536887001217b7f9f | /sgkit_plink/tests/test_pysnptools.py | ac5df4ddbc65a1abad0d9c88df7aa98d4361d3b7 | [
"Apache-2.0"
] | permissive | eric-czech/sgkit-plink | 219195318836dcfbfbb6de9b720ef6f3e183f7be | 4f10c1b0b260fa80fe18c31d28a434c175e558cd | refs/heads/master | 2022-12-08T18:28:09.111583 | 2020-08-04T13:49:56 | 2020-08-04T13:49:56 | 276,471,757 | 0 | 0 | null | 2020-07-01T20:06:50 | 2020-07-01T20:06:50 | null | UTF-8 | Python | false | false | 3,100 | py | import numpy as np
import pytest
import xarray as xr
from sgkit_plink.pysnptools import read_plink
example_dataset_1 = "plink_sim_10s_100v_10pmiss"
@pytest.fixture(params=[dict()])
def ds1(shared_datadir, request):
path = shared_datadir / example_dataset_1
return read_plink(path=path, bim_sep="\t", fam_sep="... | [
"eric.allen.czech@gmail.com"
] | eric.allen.czech@gmail.com |
7ef1801849d89765bd4444252fe2be738977662f | fe9d6ff3d7a39bb57a6ed7a973c0318d3a7aa189 | /chapters5/exe5_14.py | 30417bf07dc5fd973a3261b80db35c60467c31c2 | [] | no_license | yiguming/python_core_progreamming | 12cfca8b44b187a706c7dd7e1bb73ab3ef1f7552 | 9b7790938f33523c0cd4172b0d508e49bbddf17a | refs/heads/master | 2020-03-29T16:27:55.888601 | 2015-04-19T03:09:39 | 2015-04-19T03:09:39 | 31,845,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | #!/usr/bin/env python
def huibao(basemoney,rate):
totalmoney = basemoney*(1+rate)*365
huibao = totalmoney / float(basemoney)
print "The basemoney %.2f ,after a year it will be change %.2f ,and the huibaolv is %f"%(basemoney,totalmoney,huibao)
if __name__ == "__main__":
huibao(100.00,0.25)
| [
"439309415@qq.com"
] | 439309415@qq.com |
1067841ff7b2255d7deb7766bb7e37d66f3416ec | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/Wprime/Wprime_WZ_WlepZhad_narrow_M3000_13TeV-madgraph_cff.py | 5ea1fd9178d90686f424118336088b009a602725 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 769 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/91ab3ea30e3c2280e4c31fdd7072a47eb2e5bdaa/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-1/Wprime_WZ_WlepZhad/Wprime_WZ_WlepZhad_narrow_M3000
externalLHEProducer = cms.EDProducer("ExternalLHEProdu... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
323a93c9c5d16e668db2cef2445cd7fe25a23394 | 91ac6c1be33810c98cb49a18318603bcab1ff37d | /temp.py | 3d64b4e0a5fcfbe0c0c16eb54fdfc8bd8eb7b5bd | [] | no_license | antonylu/serial | 492a1e61cc65e9c32f7e49ff1cf1a2281b6c8045 | 141986c3c8a911d9560ab133e1e7488627094f71 | refs/heads/master | 2022-11-13T00:07:18.333268 | 2020-06-30T12:53:33 | 2020-06-30T12:53:33 | 275,778,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import serial
import pygame
import json
BG_L_IMG = "bg.jpg"
BG_P_IMG = "bgp.jpg"
OPTION_JSON = "options.json"
class Temp():
def __init__(self):
pygame.init()
pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
self._surface = pygame.display.get_surface()
options = json.load(op... | [
"w3back@gmail.com"
] | w3back@gmail.com |
2f69b6682d0e02c84f16d9a1392c5798407925f3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_desisted.py | dc89e70ec3bbf682ce15215f48ef5b72a515f1d5 | [
"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 | 224 | py |
#calss header
class _DESISTED():
def __init__(self,):
self.name = "DESISTED"
self.definitions = desist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['desist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
11bec3b555107fc73d0e2a16654cd5dc9d63550a | 7e4460c85790fae2d470182732289bcd1b8777b2 | /Process/process_skins.py | 3a30a41c954eafa1f3fe1ae717d05245e99ec506 | [] | no_license | khamukkamu/swconquest-msys | 5b23654c8dd2e8b2f25bc7914252eedc05a5cc1e | 71337a4ae9c507b9440e84cf49d31fc67a781978 | refs/heads/master | 2021-04-29T19:00:10.389224 | 2019-05-01T15:11:11 | 2019-05-01T15:11:11 | 121,704,753 | 1 | 1 | null | 2018-02-16T01:40:58 | 2018-02-16T01:40:58 | null | UTF-8 | Python | false | false | 3,719 | py | import string
from process_common import *
from module_info import *
from module_skins import *
from module_info import wb_compile_switch as is_wb_skin
import string
from process__swyhelper import *
# WARNING: The following should be the same as the number in face_generator.h
num_voice_types = 2
##########... | [
"swyterzone@gmail.com"
] | swyterzone@gmail.com |
417b7c78684e01503bc3ad7a901d8c6be1916817 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4379/codes/1649_2446.py | ef3d63fb97cf206c3f0439f899c69140cd7791fa | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | num=float(input("senha (6 digitos): "))
n1=num//100000
n2=(num//10000)%10
n3=(num//1000)%10
n4=(num//100)%10
n5=(num//10)%10
n6=num%10
if ((n2+n4+n6)%(n1+n3+n5)==0):
print("acesso liberado")
else:
print("senha invalida")
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cccc38104fcdd3214cf991fab273dde1f1d0454d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch35_2020_09_16_23_12_26_483631.py | 9df7bf2f9250ad03afdea874bfc0681b95417cdd | [] | 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 | 150 | py | continua=True
soma=0
while(continua):
numero=int(input("digite o numero"))
soma+=numero
if(numero==0):
continua =False
print(soma) | [
"you@example.com"
] | you@example.com |
9aa5e52832cf35b3e5921015b4c55e33c4e5b7dd | b44a984ac8cfd183e218d56e1ec5d0d3e72d20fd | /High_Frequency/Dynamic Programming/Course Schedule IV/dfs+memo.py | de84bcc80eaf5dd410518179c7f1e887dc08076f | [] | no_license | atomextranova/leetcode-python | 61381949f2e78805dfdd0fb221f8497b94b7f12b | 5fce59e6b9c4079b49e2cfb2a6d2a61a0d729c56 | refs/heads/master | 2021-07-15T20:32:12.592607 | 2020-09-21T00:10:27 | 2020-09-21T00:10:27 | 207,622,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | class Solution:
"""
@param n: an integer, denote the number of courses
@param p: a list of prerequisite pairs
@return: return an integer,denote the number of topologicalsort
"""
def topologicalSortNumber(self, n, p):
post_to_pres = []
cur_list = [str(i) for i in range(n)]
... | [
"atomextranova@gmail.com"
] | atomextranova@gmail.com |
fd24ce8e6ab3237a43786af7a37372084eb42eb7 | de4aa86038fb75778b4e6d0e7bb07fc78cf28a0e | /__init__.py | ca2ddad9a898b8b1ae13ba3007b43eafaef53bfb | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | radaniba/jcvi | 718d8b87fc5a5e748841a37f5e100cfa2c232347 | 04d457ea7231897d547ea0bd51b011fe7412f171 | refs/heads/master | 2020-12-31T06:22:16.125846 | 2014-09-18T16:58:43 | 2014-09-18T16:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | __author__ = ("Haibao Tang", "Vivek Krishnakumar", "Jingping Li", "Maria Kim")
__copyright__ = "Copyright (c) 2010-2014, Haibao Tang"
__email__ = "tanghaibao@gmail.com"
__license__ = "BSD"
__status__ = "Development"
__version__ = "0.4.9"
| [
"tanghaibao@gmail.com"
] | tanghaibao@gmail.com |
b116d249bb6b8d8d11168a3c5583bf091dcdc466 | 4e13248d569f3d2ba30519e45d7479d8764f84a2 | /lib/plot.py | c68d5a227c947ff42198e2c4592f12990837bf71 | [] | no_license | SunnerLi/Cup2 | 84df0b07df5875f20e0480b7032fe982bb8b4a79 | 8c8c8c0864a4f4b02f1496bb8e91970a04d5c6d0 | refs/heads/master | 2021-06-24T10:07:35.597057 | 2017-09-12T03:08:22 | 2017-09-12T03:08:22 | 93,631,639 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,753 | py | from collections import Counter, defaultdict
from config import *
import numpy as np
import time
import cv2
# Mapping object (Auto-generated)
obj_index_2_name = {index: name for name, index in obj_name_2_index.iteritems()}
# Other variable (Auto-generated)
kind = len(obj_name_2_index)
grid_height = None
grid_width = ... | [
"a6214123@gmail.com"
] | a6214123@gmail.com |
4046b3d62d1ce23666ab43c8a41a59234f840fd4 | 2850d9adba96bc4e73185de5d6adebf363a5c534 | /tce/tcloud/cvm/RebootInstances.py | 6b68f7510fb20afa20eecb430276d6bf55bdddb3 | [
"Apache-2.0"
] | permissive | FatAnker/tencentcloud-sdk-python | d8f757b12ad336e78a06b68a789ecc3c86d1d331 | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | refs/heads/master | 2020-04-30T22:34:16.740484 | 2019-04-28T11:14:11 | 2019-04-28T11:14:11 | 177,122,691 | 0 | 1 | null | 2019-03-22T10:46:01 | 2019-03-22T10:46:01 | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
import os
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
# 导入对应产品模块的client models。
from tencentcloud.cvm.v20170312 import cvm_client, models
import json
# 导入可选配置类
from tencentcloud.common.profile.client_p... | [
"1113452717@qq.com"
] | 1113452717@qq.com |
fefac9fb3ef1ecc86facfe365495ab0f28693881 | 87b006149b16a3028385fc58cf781f5a12c94ad9 | /PyFunceble/checker/syntax/second_lvl_domain.py | e01845520774e59a1dd0e96aa7033158eb539543 | [
"Apache-2.0"
] | permissive | spirillen/PyFunceble | 04d03b2678ad46ec81c520a32df5397832414451 | 3c8f62062bffa0e16d465c150a853af8bf2f2205 | refs/heads/master | 2023-05-12T04:32:04.587521 | 2022-11-20T11:19:06 | 2022-11-20T11:19:06 | 237,827,167 | 2 | 0 | Apache-2.0 | 2021-01-27T10:09:59 | 2020-02-02T19:50:47 | Python | UTF-8 | Python | false | false | 4,696 | py | """
The tool to check the availability or syntax of domain, IP or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █... | [
"contact@funilrys.com"
] | contact@funilrys.com |
9634edfec32f0f9cfa846e90a764fa87057766cf | a20f9643cc79d2ce4fe69176b4439ce5855fdab4 | /backend/songbird_18676/urls.py | db249b68d533e4dd80a645b2e807acbfe92cbca3 | [] | no_license | crowdbotics-apps/songbird-18676 | bde32b1206d3f045403e2ef9e609254e33761994 | 09490a0d9438df7219164cf0c84437a69596c5a6 | refs/heads/master | 2022-11-14T19:46:35.980627 | 2020-07-07T20:58:39 | 2020-07-07T20:58:39 | 277,920,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | """songbird_18676 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
99ac83b99ddb015a8af7fe01b944afb27dfa0dd2 | 84226827016bf833e843ebce91d856e74963e3ed | /tests/integration/modules/boto_sns.py | 8bff3a65f280a9b4b69437e07f0a875772f21f3b | [
"Apache-2.0"
] | permissive | jbq/pkg-salt | ad31610bf1868ebd5deae8f4b7cd6e69090f84e0 | b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3 | refs/heads/master | 2021-01-10T08:55:33.946693 | 2015-05-21T13:41:01 | 2015-05-21T13:41:01 | 36,014,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | # -*- coding: utf-8 -*-
'''
Validate the boto_sns module
'''
from salttesting import skipIf
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
import integration
NO_BOTO_MODULE = True
BOTO_NOT_CONFIGURED = True
try:
import boto
NO_BOTO_MODULE = False
try:
boto.connect_ia... | [
"joehealy@gmail.com"
] | joehealy@gmail.com |
2ae43110afb9d1103a7ace2557660dbaa671a972 | 58df224689ab08c99359b1a6077d2fba3728dc61 | /lamda-ocr/merge-files/borb/pdf/canvas/event/begin_text_event.py | edadfc51f9880306c13f85e943a3463f2f3669f3 | [] | no_license | LIT-Midas/LITHackathon | 2b286728c156d79d3f426f6d19b160a2a04690db | 7b990483dd48b91cf3ec3452b78ab67770da71af | refs/heads/main | 2023-08-13T05:22:59.373965 | 2021-08-16T01:09:49 | 2021-08-16T01:09:49 | 395,024,729 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This implementation of Event is triggered when an BT instruction is being processed.
"""
from borb.pdf.canvas.event.event_listener import Event
class BeginTextEvent(Event):
"""
This implementation of Event is triggered when an BT instruction is being proc... | [
"trevordino@gmail.com"
] | trevordino@gmail.com |
5feb3012f0d839b4153bd825a19ad07f4b45e4f4 | 36b75aac4236e928e22552e8812abd45d32aecf1 | /modules/dbnd/src/dbnd/_core/task_ctrl/task_dag_describe.py | a9c956e79acc37da5af6f130546fa1f05224cdb3 | [
"Apache-2.0"
] | permissive | reloadbrain/dbnd | 7793aa1864f678005de626068b0ac9361d637d65 | ec0076f9a142b20e2f7afd886ed1a18683c553ec | refs/heads/master | 2023-09-01T08:04:09.486666 | 2021-10-14T16:43:00 | 2021-10-14T16:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,355 | py | from __future__ import print_function
import logging
from dbnd._core.constants import DescribeFormat
from dbnd._core.errors import DatabandSystemError
from dbnd._core.settings import DescribeConfig
from dbnd._core.task_ctrl.task_ctrl import TaskSubCtrl
from dbnd._core.utils.basics.helpers import indent
from dbnd._ven... | [
"roman.slipchenko@databand.ai"
] | roman.slipchenko@databand.ai |
95565b6038b246017520d2f8a8fd5549545a9860 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/account_helpers/__init__.py | c17ac8288f39b7019429fc00e8831b5f8f10f203 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,047 | py | # 2017.05.04 15:20:20 Střední Evropa (letní čas)
# Embedded file name: scripts/client/account_helpers/__init__.py
import datetime
import BigWorld
from constants import ACCOUNT_ATTR
from account_helpers.AccountSettings import AccountSettings, GOLD_FISH_LAST_SHOW_TIME
from shared_utils.account_helpers import BattleResult... | [
"info@webium.sk"
] | info@webium.sk |
ca486408ec1dad11aa30a35e2c012cbbef64c774 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.2/tests/regressiontests/forms/localflavor/id.py | cb346ef7213c8b9f9b3ac7246e6189dda91db151 | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 6,972 | py | from django.contrib.localflavor.id.forms import (IDPhoneNumberField,
IDPostCodeField, IDNationalIdentityNumberField, IDLicensePlateField,
IDProvinceSelect, IDLicensePlatePrefixSelect)
from utils import LocalFlavorTestCase
class IDLocalFlavorTests(LocalFlavorTestCase):
def test_IDProvinceSelect(self):
... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
2332fc6eb75e911cda4ac674a691601b23144c56 | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /N/NumberofSubsequencesThatSatisfytheGivenSumCondition.py | 2b3ac4e3f31a679a7d7875712e7e3752b79dbc87 | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | '''
-Medium-
You are given an array of integers nums and an integer target.
Return the number of non-empty subsequences of nums such that the sum of the minimum and maximum element on it is less or equal to target. Since the answer may be too large, return it modulo 109 + 7.
Example 1:
Input: nums = [3,5,6,7], ... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.