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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9ab497015525833279bb4f7cb7b294f7e35efe7 | 5fd401dbc7b9ac782d387067c43a559971de5028 | /modules/file/upload.py | 5ad9b4a030323d70e88e69b37d7ef047af896c60 | [] | no_license | SagaieNet/weevely3 | 0b41be1bbd08a8ebde1e236775462483ad175c6e | c169bbf24807a581b3f61a455b9a43a5d48c8f52 | refs/heads/master | 2021-01-22T15:00:19.838734 | 2014-09-30T20:00:07 | 2014-09-30T20:00:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | from core.vectors import PhpCmd, ModuleCmd
from core.module import Module
from core import messages
from core.loggers import log
import random
import hashlib
import base64
class Upload(Module):
"""Upload file to remote filesystem."""
def init(self):
self.register_info(
{
... | [
"emilio.pinn@gmail.com"
] | emilio.pinn@gmail.com |
6bf462112c68e100b92acc5b9b8ed814e8f09d27 | ef4a1748a5bfb5d02f29390d6a66f4a01643401c | /algorithm/new_teacher_algorithm/AD/도약.py | 5c781e9d4bc4c9a28efdc8ca127c58b5528ef92d | [] | no_license | websvey1/TIL | aa86c1b31d3efc177df45503d705b3e58b800f8e | 189e797ba44e2fd22a033d1024633f9e0128d5cf | refs/heads/master | 2023-01-12T10:23:45.677578 | 2019-12-09T07:26:59 | 2019-12-09T07:26:59 | 162,102,142 | 0 | 1 | null | 2022-12-11T16:31:08 | 2018-12-17T08:57:58 | Python | UTF-8 | Python | false | false | 2,093 | py | import sys
sys.stdin = open("도약.txt")
###########################################################
########################## 두개 쓰기 ########################
###########################################################
# def lowerSearch(s,e,f):
# # f 이상 중에서 가장 작은 값의 위치를 리턴
# sol = -1
# while s<=e:
# m ... | [
"websvey1@gmail.com"
] | websvey1@gmail.com |
b563da1a4aa94a36c4599e6482162f6ded7d93e9 | 5b2218208aef68cf06609bcc3bf42b499d99d5f6 | /docs/source/conf.py | e94bc7c7e29be180973b828865b19e7712c33ad6 | [
"MIT"
] | permissive | c137digital/unv_app_template | c36cacfff3e0be0b00ecad6365b20b434836ffe7 | a1d1f2463334afc668cbf4e8acbf1dcaacc93e80 | refs/heads/master | 2020-05-25T19:24:17.098451 | 2020-04-24T19:33:08 | 2020-04-24T19:33:08 | 187,950,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,816 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"morty.space@gmail.com"
] | morty.space@gmail.com |
4c1e7c5233cb21118ed12162d9ba099c0665a80a | e0980f704a573894350e285f66f4cf390837238e | /.history/flex/models_20201029143145.py | b68119b214fd032d442ee5cf1b7492154ab67eb2 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import StreamFieldPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from wagtail.core import blocks as wagtail_
from streams import blocks
from home.models import n... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
71bfd188e3307f50316b5807460e05e6b0dab81e | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /int_long.py | 09d9178607925a32fd93bcf2ea90ca80acb00f96 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | n=int(input())
if(n>=-2**15+1 and n<=2**15+1):
print ("INT")
elif n>=-2**31+1 and n<=2**31+1:
print("LONG")
else:
print ("LONG LONG")
#..int,long...longlong
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
e32bd0130a28604d940e0a1e7d79496057d8a0cb | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /tests/live_test.py | b71930af68b02cc6137cb3b01a6f80f39c0ef9f3 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 3,422 | py | import logging
from sleekxmpp.test import *
class TestLiveStream(SleekTest):
"""
Test that we can test a live stanza stream.
"""
def tearDown(self):
self.stream_close()
def testClientConnection(self):
"""Test that we can interact with a live ClientXMPP instance."""
self.... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
f5058ccbcc8449198222100dc98b9d6777472a89 | 2f6d017dedc68588b2615d65c1e8ca8bcdd90446 | /api/deploy/write_json.py | 01f5c1cf3ca63b0de2e90ca19f9b694b331c12f5 | [] | no_license | hysunflower/benchmark | 70fc952a4eb1545208543627539d72e991cef78a | c14f99c15b4be9e11f56ea378ca15d9c3da23bab | refs/heads/master | 2022-06-30T07:04:14.986050 | 2022-06-15T02:43:04 | 2022-06-15T02:43:04 | 224,449,279 | 1 | 0 | null | 2019-11-27T14:29:29 | 2019-11-27T14:29:29 | null | UTF-8 | Python | false | false | 3,347 | py | #!/bin/python
# -*- coding: UTF-8 -*-
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | [
"noreply@github.com"
] | hysunflower.noreply@github.com |
89189e31f7eff193f8991a28da369417a28ae86d | 68cd659b44f57adf266dd37789bd1da31f61670d | /D2/D2_20190715파리퇴치.py | 37273d877cfb93458b8b8fdef4531e610039777c | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | def arrr(N) :
for i in range(N) :
inp = input().split(' ')
inp = [int(j) for j in inp]
fly.append(inp)
return fly
def max_cal(fly,N,M):
sum_num = 0
max_num = 0
for i in range(N-M+1) :
for j in range(N-M+1) :
for l in range(M) :
for m in ra... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
f21360c68557a49b1b4e4413627b85cd6737f75c | 73c9211d5627594e0191510f0b4d70a907f5c4c5 | /nn/keras_dataguru/lesson2/work2.py | 4dcacb8f30dd2feaffbd330256b8915e94435bcf | [] | no_license | tigerxjtu/py3 | 35378f270363532fb30962da8674dbcee99eb5ff | 5d24cd074f51bd0f17f6cc4f5f1a6e7cf0d48779 | refs/heads/master | 2021-07-13T05:34:15.080119 | 2020-06-24T09:36:33 | 2020-06-24T09:36:33 | 159,121,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import keras
import numpy as np
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import SGD
# In[2]:
(x_train,y_train),(x_test,y_test)=mnist.load_data()
print('... | [
"liyin@16010.net"
] | liyin@16010.net |
9f719d70ff61b820cde1a602f393ba9c91b6514b | d83f50302702d6bf46c266b8117514c6d2e5d863 | /number-of-boomerangs.py | 7add2f05767711dbf020f6215cc8f92ec9b5a59c | [] | no_license | sfdye/leetcode | 19764a6bdb82de114a2c82986864b1b2210c6d90 | afc686acdda4168f4384e13fb730e17f4bdcd553 | refs/heads/master | 2020-03-20T07:58:52.128062 | 2019-05-05T08:10:41 | 2019-05-05T08:10:41 | 137,295,892 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Solution(object):
def numberOfBoomerangs(self, points):
"""
:type points: List[List[int]]
:rtype: int
"""
ans = 0
for p in points:
d = collections.defaultdict(int)
for q in points:
d[(p[0] - q[0]) ** 2 + (p[1] - q[1]) ** ... | [
"tsfdye@gmail.com"
] | tsfdye@gmail.com |
840b8e213aaeafea3b9c2b03e58bd84996694d5a | bafcde124dd3af37ef14e322e0e76e82d8684469 | /restapi/services/models/PasswordResetModel.py | 47e24ce9d570005a767967ad9265625a49a108e4 | [] | no_license | mentimun-mentah/balihot-property-backend | 1c7ac91c04f791ca55f5f97e872034fbc30a8d32 | b715cc3988ca70d16dbe2e89839653af310fa091 | refs/heads/master | 2022-12-27T15:01:23.196310 | 2020-09-06T17:00:53 | 2020-09-06T17:00:53 | 268,197,437 | 1 | 0 | null | 2020-10-20T16:55:31 | 2020-05-31T02:46:41 | Python | UTF-8 | Python | false | false | 1,310 | py | import uuid, os
from services.serve import db
from time import time
from flask import url_for
from sqlalchemy import func
from services.libs.MailSmtp import MailSmtp
class PasswordReset(db.Model):
__tablename__ = 'password_resets'
id = db.Column(db.String(100),primary_key=True)
email = db.Column(db.String... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
014e8f1ddcd99487d99ffa878a6e6cfa7d50ed6c | d55bda4c4ba4e09951ffae40584f2187da3c6f67 | /h/admin/views/groups.py | 0caffe6dcf887350fc17bfffc50c9f1ecc8b64bc | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"BSD-2-Clause",
"MIT"
] | permissive | ficolo/h | 3d12f78fe95843b2a8f4fc37231363aa7c2868d9 | 31ac733d37e77c190f359c7ef5d59ebc9992e531 | refs/heads/master | 2021-01-15T21:08:17.554764 | 2016-06-09T15:42:01 | 2016-06-09T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # -*- coding: utf-8 -*-
from pyramid.view import view_config
from h import models
from h import paginator
@view_config(route_name='admin_groups',
request_method='GET',
renderer='h:templates/admin/groups.html.jinja2',
permission='admin_groups')
@paginator.paginate
def groups_in... | [
"nick@whiteink.com"
] | nick@whiteink.com |
b9aeff68654c2ed50000a30879c2e21c640d81e5 | 0206ac23a29673ee52c367b103dfe59e7733cdc1 | /src/nemo/compare_2nemo_simulations.py | 041bbfd0229b247c34b4796abf04bc639b9483ae | [] | no_license | guziy/RPN | 2304a93f9ced626ae5fc8abfcc079e33159ae56a | 71b94f4c73d4100345d29a6fbfa9fa108d8027b5 | refs/heads/master | 2021-11-27T07:18:22.705921 | 2021-11-27T00:54:03 | 2021-11-27T00:54:03 | 2,078,454 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | from collections import namedtuple
from pathlib import Path
from matplotlib import cm
from matplotlib.gridspec import GridSpec
from nemo.nemo_yearly_files_manager import NemoYearlyFilesManager
__author__ = 'huziy'
# Compare 2 Nemo outputs
import matplotlib.pyplot as plt
import numpy as np
def main_compare_max_year... | [
"guziy.sasha@gmail.com"
] | guziy.sasha@gmail.com |
92e85c7b6e66817ecaf916d920cc1d86019397c2 | fe9573bad2f6452ad3e2e64539361b8bc92c1030 | /scapy_code/sniif_packet.py | 97cbf240c0083c9937735a47714341cd1d7da111 | [] | no_license | OceanicSix/Python_program | e74c593e2e360ae22a52371af6514fcad0e8f41f | 2716646ce02db00306b475bad97105b260b6cd75 | refs/heads/master | 2022-01-25T16:59:31.212507 | 2022-01-09T02:01:58 | 2022-01-09T02:01:58 | 149,686,276 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from scapy.all import *
def print_pkt(pkt):
print("---------------this is a new packet----------------------")
new_pkt = pkt[IP]
if new_pkt[ICMP]:
new_pkt.show()
sniff(filter= "icmp" , prn=print_pkt)
| [
"byan0007@student.monash.edu"
] | byan0007@student.monash.edu |
83a912f2fd9bb92402ffe65df2ebaf7a667edd7e | e590449a05b20712d777fc5f0fa52097678c089b | /python-client/test/test_stash_appscode_com_v1alpha1_api.py | 58eaf340d2c3e2c403e782c27e9854d90c2f4271 | [
"Apache-2.0"
] | permissive | Hardeep18/kube-openapi-generator | 2563d72d9f95196f8ef795896c08e8e21cd1a08e | 6607d1e208965e3a09a0ee6d1f2de7e462939150 | refs/heads/master | 2020-04-11T03:30:18.786896 | 2018-05-05T20:57:51 | 2018-05-05T20:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # coding: utf-8
"""
stash-server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"tamal@appscode.com"
] | tamal@appscode.com |
c693954cad97f78d72668a79087d4930ccea1091 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-opsgenie/source_opsgenie/source.py | 743694d15b54b6ca441b6e91b3a528af43f6b85c | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 1,870 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from typing import Any, List, Mapping, Tuple
import requests
from airbyte_cdk.sources import AbstractSource
from airbyte_cdk.sources.streams import Stream
from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator
from .streams i... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
a0b0afefa29d9867d2ca4e7ea95add21f514f525 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py | 36137183535e3c620a46e8cea7f926e0adadefd9 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,767 | 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.
#----------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
87db78fc9bb040bc77eeeb14ffba6ee78b8c43fa | 42394bd8cd674dcd0822ae288ddb4f4e749a6ed6 | /fluent_blogs/sitemaps.py | 97da332b7a014536107d1f7fe042d295b321ac83 | [
"Apache-2.0"
] | permissive | mmggbj/django-fluent-blogs | 4bca6e7effeca8b4cee3fdf4f8bb4eb4d192dfbe | 7fc3220d6609fe0615ad6ab44044c671d17d06a3 | refs/heads/master | 2021-05-08T13:02:51.896360 | 2018-01-31T21:54:27 | 2018-01-31T21:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.contrib.sitemaps import Sitemap
from fluent_blogs.models import get_entry_model, get_category_model
from fluent_blogs.urlresolvers import blog_reverse
from parler.models... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
b149655165dbfc3253e689f968488cd68f3e18c6 | 3e660e22783e62f19e9b41d28e843158df5bd6ef | /script.me.syncsmashingfromgithub/smashingfavourites/scripts/oldscripts/smashingtvextended.py | 23aa7191d67b111064220b6ce41ecbc4caa91859 | [] | no_license | monthou66/repository.smashingfavourites | a9603906236000d2424d2283b50130c7a6103966 | f712e2e4715a286ff6bff304ca30bf3ddfaa112f | refs/heads/master | 2020-04-09T12:14:34.470077 | 2018-12-04T10:56:45 | 2018-12-04T10:56:45 | 160,341,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,059 | py |
# -*- coding: utf-8 -*-
# opens tv channel or guide groups via smashingfavourites and / or keymap.
import os
import os.path
import xbmc
import sys
# make sure dvbviewer is running - enable and wait if necessary
def enable():
if not xbmc.getCondVisibility('System.HasAddon(pvr.dvbviewer)'):
xbmc.executeJSON... | [
"davemullane@gmail.com"
] | davemullane@gmail.com |
6042ebe496e64d755d312557f38f2f61d3e98e80 | 18e687608ff326fae4d1e1604cf452f086f99559 | /classroom/admin.py | 7da03566a6f4b009b1d4c24281b22e580476a82c | [
"Apache-2.0"
] | permissive | nu11byt3s/lms-ml | 955bad451ddcb78e464227294496ee0a92be08c0 | c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42 | refs/heads/main | 2023-08-13T08:09:53.097312 | 2021-10-12T09:51:31 | 2021-10-12T09:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from django.contrib import admin
from .models import ClassFiles, ClassRoom, MemberShip, RoomStream, Comment
admin.site.register(ClassRoom)
admin.site.register(ClassFiles)
admin.site.register(MemberShip)
admin.site.register(RoomStream)
admin.site.register(Comment)
| [
"farsin310yeariha9701@gmail.com"
] | farsin310yeariha9701@gmail.com |
f50a2c13091de7e6652bd032364405a6cb81e40a | f08336ac8b6f8040f6b2d85d0619d1a9923c9bdf | /148-sortList.py | deaa09cb9bde869ffaac11cb72d4a48498d2f6ed | [] | no_license | MarshalLeeeeee/myLeetCodes | fafadcc35eef44f431a008c1be42b1188e7dd852 | 80e78b153ad2bdfb52070ba75b166a4237847d75 | refs/heads/master | 2020-04-08T16:07:47.943755 | 2019-02-21T01:43:16 | 2019-02-21T01:43:16 | 159,505,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | '''
148. Sort List
Sort a linked list in O(n log n) time using constant space complexity.
Example 1:
Input: 4->2->1->3
Output: 1->2->3->4
Example 2:
Input: -1->5->3->4->0
Output: -1->0->3->4->5
'''
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next... | [
"marshallee413lmc@sina.com"
] | marshallee413lmc@sina.com |
24aeb181fe8842ceab8dcbdae1e7eae470e32e96 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2091.py | 2be5159255a480621d5ba476c77387286fc6d261 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
def get_values(f,line):
choices = [];
for i in range(0,4):
if i+1 == line:
choices.extend(f.readline().split())
else:
f.readline()
return choices
if __name__ == "__main__":
with open('problem.txt','r') as f:
trials = int(f.readline())
for i in ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
94039fd9178ad4160ba0efb6f0dda17c0fde9816 | 8926a97e04be31c62a28ee9031520ca785f2947b | /flask/member_test/app3.py | 1879796d52c5957ea5c6d9b35167283e4c2e6a95 | [] | no_license | ragu6963/kfq_pyhton | 3d651357242892713f36ac12e31f7b586d6e7422 | bdad24e7620e8102902e2f0a71c8486fb0ad86c9 | refs/heads/master | 2022-11-26T16:02:49.838263 | 2020-07-31T00:40:59 | 2020-07-31T00:40:59 | 276,516,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | from flask import Flask, request, render_template, redirect, url_for, jsonify, json
import pymysql, os, cx_Oracle
from flask_sqlalchemy import SQLAlchemy
from json import JSONEncoder
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "oracle://hr:hr@127.0.0.1:1521/xe"
# app.config['SQLALCHEMY_DATABASE_URI'... | [
"bhj1684@naver.com"
] | bhj1684@naver.com |
b40d364523a6a0d9a5830630e0d64197363cab87 | 95884a6b32f6831e68c95d7785bc968a56877121 | /cifar_imagenet/models/cifar/momentumnet_restart_lookahead_vel_learned_scalar_clip_mom.py | ba44f69eff7577785b303b3c9d7d192514916fc3 | [
"MIT",
"Apache-2.0"
] | permissive | minhtannguyen/RAdam | d89c4c6ce1ce0dd95b0be3aa2c20e70ea62da8b0 | 44f403288df375bae0785cc82dd8c888eaaaa441 | refs/heads/master | 2020-08-09T07:53:50.601789 | 2020-02-17T06:17:05 | 2020-02-17T06:17:05 | 214,041,479 | 0 | 0 | Apache-2.0 | 2019-10-09T23:11:14 | 2019-10-09T23:11:14 | null | UTF-8 | Python | false | false | 7,243 | py | # -*- coding: utf-8 -*-
"""
momentum net
"""
import torch
import torch.nn as nn
import math
from torch.nn.parameter import Parameter
__all__ = ['momentumnet_restart_lookahead_vel_learned_scalar_clip_mom']
def conv3x3(in_planes, out_planes, stride=1):
"3x3 convolution with padding"
return nn.Conv2d(in_planes,... | [
"mn15@rice.edu"
] | mn15@rice.edu |
066f467af220cf2210d237b5be14036c9a366795 | c4ee4a9d28425aa334038ad174c7b1d757ff45db | /py/survey_backdeck/SurveyBackdeckDB.py | 425ea9aadef024c30c34e6d6199380a96c70f5d1 | [
"MIT"
] | permissive | nwfsc-fram/pyFieldSoftware | 32b3b9deb06dba4a168083a77336613704c7c262 | 477ba162b66ede2263693cda8c5a51d27eaa3b89 | refs/heads/master | 2023-08-03T07:38:24.117376 | 2021-10-20T22:49:51 | 2021-10-20T22:49:51 | 221,750,910 | 1 | 1 | MIT | 2023-07-20T13:13:25 | 2019-11-14T17:23:47 | Python | UTF-8 | Python | false | false | 1,155 | py | __author__ = 'Todd.Hay'
# -------------------------------------------------------------------------------
# Name: TrawlBackdeckDB.py
# Purpose: Provides connection to the trawl_backdeck.db SQLite database
# Author: Todd.Hay
# Email: Todd.Hay@noaa.gov
#
# Created: Jan 08, 2016
# License: M... | [
"will.smith@noaa.gov"
] | will.smith@noaa.gov |
56cb0a401e086cffa893b8b4dcd75edf07ca9e4c | dacf092e82b5cc841554178e5117c38fd0b28827 | /day24_program4/server_start.py | 80694736d2929c195b9ccc3caf71539ee8767758 | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import socket
import os
from conf import setting
from interface import common_interface
from db import models, db_handler
import logging.config
def upload_file(): # 接收文件
file_path = os.path.join(BASE_DIR, 'db', 'file_upload')
if not os.path.exists(file_path):
os.makedirs(file_path)
path = os.path... | [
"775653143@qq.com"
] | 775653143@qq.com |
50a805dc8a946792bd4c670cf4d42f3317b82c4d | 5925c0fc934760f1726818a18d6098499dcfb981 | /GAN_upscale_28x28/GAN_upscale_28x28.py | 0c4f60692043ba8d1aaf07a121723c78c1911750 | [
"MIT"
] | permissive | PsycheShaman/Keras-GAN | 64b4b20471f4b185580860f28caa9320ed615a51 | 9a1f2576af8f67fad7845421ea5feb53012c1c9f | refs/heads/master | 2020-06-17T11:03:23.993616 | 2019-09-14T08:04:25 | 2019-09-14T08:04:25 | 195,858,154 | 2 | 0 | MIT | 2019-09-14T08:04:26 | 2019-07-08T17:33:39 | Python | UTF-8 | Python | false | false | 6,859 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 11 12:14:02 2019
@author: gerhard
"""
from __future__ import print_function, division
from keras.datasets import mnist
from keras.layers import Input, Dense, Reshape, Flatten, Dropout
from keras.layers import BatchNormalization, Activation, ZeroPadding2D
fro... | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
babc9118bdcf7d2c25b4dc9e551d807e63b0a18f | 6b6c00e637e4659e4c960ff5dc48c8b25f09c543 | /myihome/web_html.py | 86d5f26bfaab5886725ef16013e4324d6595659e | [] | no_license | too-hoo/myiHome | 881d24f7835a1d6f95fea8cc97d68194d078d451 | 54c57755f5c9a700330cb38a47fe88e4f9f7ab3a | refs/heads/master | 2020-07-13T11:26:53.915246 | 2019-09-04T11:43:01 | 2019-09-04T11:43:01 | 205,073,018 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# 静态文件加载的显示文件
from flask import Blueprint, current_app, make_response
from flask_wtf import csrf # 引入CSRF防御
# 提供静态文件的蓝图
html = Blueprint("web_html", __name__)
# 127.0.0.1:5000/()
# 127.0.0.1:5000/(index.html)
# 127.0.0.1:5000/(register.html)
# 127.0.0.1:5000/(favico.ico... | [
"13414851554@163.com"
] | 13414851554@163.com |
328588836d307293f0d666768429a1b18e4e1007 | 3a1c5ae00324fc26728ad9549cd4cf710a6dfcca | /trackmeapp/serializers.py | ecb9872ce6f7e0f07739fb553cc72ca93c734d99 | [] | no_license | EnockOMONDI/TRACK-ME | c39b3f6ed04957a011c96735526475dae596941c | aff6704f2ce1645a6b7f044a52abf0769de7d604 | refs/heads/master | 2021-06-24T22:26:49.841861 | 2019-06-24T07:19:22 | 2019-06-24T07:19:22 | 193,167,979 | 0 | 0 | null | 2021-06-10T21:37:58 | 2019-06-21T22:46:08 | Python | UTF-8 | Python | false | false | 309 | py | from rest_framework import serializers
from trackmeapp.models import Task
# transforming objects to JSON and vice versa
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = ('item_id', 'title', 'description', 'created_at', 'comp_date', 'status')
| [
"enockomondike@gmail.com"
] | enockomondike@gmail.com |
4835bc6e70d40dff4467464c94615a922a6eeb0d | 82ef9a0dd1618a28770597227acfc0150b948af2 | /wearnow/tex/plug/_plugin.py | dd765acd80043d80efc8cafe2aca871e1af2e00f | [] | no_license | bmcage/wearnow | ef32a7848472e79e56763b38551835aa97864b21 | c8dfa75e1ea32b0c021d71c4f366ab47104c207e | refs/heads/master | 2021-01-16T00:27:59.597812 | 2016-01-19T11:55:03 | 2016-01-19T11:55:03 | 37,195,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | #
# WearNow - a GTK+/GNOME based program
#
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
#
# 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 versi... | [
"benny.malengier@gmail.com"
] | benny.malengier@gmail.com |
35d145eae9baf5f65b192fdad8fad0e7408f07eb | 9eff544e604f9cff4384d4154204ab3276a56a23 | /mpsci/distributions/gumbel_max.py | c6080c33985af06b004adc47893c0f19297ed96c | [
"BSD-2-Clause"
] | permissive | WarrenWeckesser/mpsci | 844d22b0230bc8fb5bf2122e7705c6fd1f0744d9 | cd4626ee34680627abd820d9a80860b45de1e637 | refs/heads/main | 2023-08-31T11:01:11.412556 | 2023-08-25T20:30:43 | 2023-08-25T20:30:43 | 159,705,639 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,575 | py | """
Gumbel probability distribution (for maxima)
--------------------------------------------
This is the same distribution as:
* `scipy.stats.gumbel_r`;
* NumPy's `numpy.random.Generator.gumbel`;
* the Gumbel distribution discussed in the wikipedia article
"Gumbel distribtion" (https://en.wikipedia.org/wiki/Gumbel... | [
"warren.weckesser@gmail.com"
] | warren.weckesser@gmail.com |
af43c669459f8dd1c60ac2dae04418f9744f6a29 | 44a7b4879c1da661cc2e8aa51c7fcc24cfb0fd3b | /tests/psu/psu_version_test.py | b3942b4c3523ed8b6ec2b0b234eb1705e2bb042b | [
"MIT"
] | permissive | seoss/scs_core | 21cd235c9630c68f651b9a8c88120ab98fe5f513 | a813f85f86b6973fa77722a7d61cc93762ceba09 | refs/heads/master | 2021-08-08T08:09:56.905078 | 2020-04-16T19:46:52 | 2020-04-16T19:46:52 | 156,239,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python3
"""
Created on 13 Nov 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import json
from scs_core.data.json import JSONify
from scs_core.psu.psu_version import PSUVersion
# ---------------------------------------------------------------------------------------------------... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
3206f80ebb7cd794ba25b8f13f14e0c5a68d2477 | 6f8c5d58ccd771d1ba92dc053b54caa44be9515c | /inst_fluid_en/models.py | 7fba96ece1c1d3dfd9ed2d96070362bda8abf302 | [
"MIT"
] | permissive | manumunoz/8004 | b6f32cf446a3d0d66988d34a03a252ba4d885da1 | 06b5a5a8cdea53294ff85c4bedb6be163d2da25a | refs/heads/master | 2020-03-24T22:24:37.155460 | 2019-03-28T07:02:18 | 2019-03-28T07:02:18 | 143,083,725 | 0 | 0 | NOASSERTION | 2018-12-07T15:17:27 | 2018-08-01T00:29:45 | HTML | UTF-8 | Python | false | false | 4,478 | py | from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
import itertools
author = 'Manu Munoz'
doc = """
Identity Switch - Networks: Instructions FLUID
"""
class Constants(BaseConstants):
#------------------------------------------
... | [
"manumunozh@gmail.com"
] | manumunozh@gmail.com |
b1a7b240bbf7f17341177d6f03acfd50f21dbac8 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc094/B/4253154.py | 6d7383b45734c25c5fe494a308375919ce98d92e | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
def solve(a, b):
a, b = min(a, b), max(a, b)
if a == b:
return 2 * a - 2
c = int(math.sqrt(a * b)) + 2
while True:
if c * c < a * b:
if c * (c + 1) >= a * b:
return 2 * c - 2
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
049e4a9ab11ab90ed899286b280e96eef25db4de | cadd27a5c72644fe87940e156e4f40f1131b9a57 | /udemy/_internal.py | 0cc13463a4fdad5b5c127e648080b4c565dc88a2 | [
"MIT"
] | permissive | mrbrazzi/udemy-dl | 1ef576800bd01ed2724911144a1fd8bad70b18f9 | 0f0a3ff00167b3b4614d5afc0d4dc6461e46be97 | refs/heads/master | 2022-11-13T17:41:38.170496 | 2020-07-01T18:17:24 | 2020-07-01T18:17:24 | 274,795,490 | 1 | 0 | MIT | 2020-06-25T00:16:33 | 2020-06-25T00:16:32 | null | UTF-8 | Python | false | false | 6,961 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
License : MIT
Copyright (c) 2020 Nasir Khan (r0ot h3x49)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft... | [
"r0oth3x49@gmail.com"
] | r0oth3x49@gmail.com |
6d9aa23aac7fc83f966804c5d25d3a1d9096f76b | 81f9d88a560edb2b92997855c6445628cf0e6eaa | /homura/__init__.py | 53bd57eca602723adbb53d18674e93be0451c1cd | [
"Apache-2.0"
] | permissive | haiyan-he/homura | e1de6e0162a0a3d5c2f2ce142f551562dc30f4c3 | 2b98d4e0071b926233869e5396a02e70638d19f7 | refs/heads/master | 2023-02-06T18:25:15.557698 | 2020-10-01T07:54:23 | 2020-10-01T07:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from .register import Registry
from .utils import TensorDataClass, TensorTuple, distributed_print, enable_accimage, get_args, get_environ, \
get_git_hash, get_global_rank, get_local_rank, get_num_nodes, get_world_size, if_is_master, init_distributed, \
is_accimage_available, is_distributed, is_distributed_avail... | [
"hataya@keio.jp"
] | hataya@keio.jp |
10682582ea1863fd922d5da0927d22778286f60e | 38c35956be6343855914b1c58b8fbd2e40c6e615 | /Grafos/2131.py | 2dd6d299343e38504e64253ea933e1dd5ba17cd3 | [] | no_license | LucasBarbosaRocha/URI | b43e4f4a6b3beed935f24839001bea354411c4bd | 2c9bcc13300a9f6243242e483c8f9ec3296a88ad | refs/heads/master | 2020-06-25T05:06:51.297824 | 2019-08-22T04:50:11 | 2019-08-22T04:50:11 | 199,210,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | # -*- coding: utf-8 -*-
# Funcao que cria um grafo
def cria_grafo(lista_de_vs, lista_de_arestas):
grafo = {}
for v in lista_de_vs:
grafo[v] = []
for aresta in lista_de_arestas:
grafo[aresta[0]].append(aresta[1])
return grafo
# Busca em profundidade personalizada
def dfs_iterative(grafo... | [
"lucas.lb.rocha@gmail.com"
] | lucas.lb.rocha@gmail.com |
3b29475196e55b01c9672bfe50448f45d59c16f9 | 9ffd8754679f363f7c03fa2873dfd3b1f5af41a7 | /UserRegistration/admin.py | 90d6d157eb401162e4d94faa6e1e2727258d82ca | [] | no_license | cmrajib/django_fashion_ecommerce | 54848c7f3f1ede349bad77533647cd161d86c413 | 141e87ad77f4a4503e487de8ad360789a9e272f4 | refs/heads/main | 2023-02-21T12:31:07.457942 | 2021-01-19T17:58:31 | 2021-01-19T17:58:31 | 331,065,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.contrib import admin
# Register your models here.
from UserRegistration.models import User, Coupon
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'full_name')
list_display_links = ('email', 'full_name')
# list_filter = ('user__email','full_name','city')
# list_editable = ('i... | [
"cmrajib@gmail.com"
] | cmrajib@gmail.com |
4049996983313e176aa4972cf259096df6168fe7 | eee6dd18897d3118f41cb5e6f93f830e06fbfe2f | /venv/lib/python3.6/site-packages/scipy/sparse/spfuncs.py | a5aeb7d325475944cf4927075b955f7bbfa4a436 | [] | no_license | georgeosodo/ml | 2148ecd192ce3d9750951715c9f2bfe041df056a | 48fba92263e9295e9e14697ec00dca35c94d0af0 | refs/heads/master | 2020-03-14T11:39:58.475364 | 2018-04-30T13:13:01 | 2018-04-30T13:13:01 | 131,595,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | """ Functions that operate on sparse matrices
"""
__all__ = ['count_blocks','estimate_blocksize']
from .csr import isspmatrix_csr, csr_matrix
from .csc import isspmatrix_csc
from ._sparsetools import csr_count_blocks
def extract_diagonal(A):
raise NotImplementedError('use .diagonal() instead')
#def extract_d... | [
"georgeosodo2010@gmail.com"
] | georgeosodo2010@gmail.com |
621d2aad3eb42bb8dbd059d46d0a17ff7f170215 | a8f6a8afd6b3609a947cafad5988d025454b4f9c | /datesFromLogs_Test.py | c15388862c6f16360d4caae0cd5764dee4ff4481 | [] | no_license | andreodendaal/100DaysOfCode | aede59a6e1f3f3ada30a1a534548939a7b9b375f | 282bf21c2d75fcd562ae935fa23e41a7c4c0cb45 | refs/heads/master | 2020-03-20T17:21:44.649611 | 2019-02-27T17:22:56 | 2019-02-27T17:22:56 | 137,557,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import unittest
from datesFromLogs_d2 import datetime, timedelta
from datesFromLogs_d2 import loglines, convert_to_datetime, time_between_shutdowns
class TestDatesFromLogs(unittest.TestCase):
def test_convert_to_datetime(self):
line1 = 'ERROR 2014-07-03T23:24:31 supybot Invalid user dictionary file'
... | [
"aodendaal.direct@gmail.com"
] | aodendaal.direct@gmail.com |
aa8d5d425f8c8c07e9aa8bd8b01d8c38944a0232 | 295ecf4f254c42e9201657ef0a13ec2c68c40c9b | /buy/forms.py | c80566d1a697136ed495d48bc28f1acb92a3c021 | [] | no_license | zwolf21/StockAdmin-pre2 | 0236061284a6fe8801591608591d21129d4ea7c0 | b21d069ff215c17ce3bca040ecf9b8f48b452ed4 | refs/heads/master | 2021-05-01T09:28:59.818469 | 2016-11-30T17:33:30 | 2016-11-30T17:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from django import forms
from .models import BuyItem, Buy
from datetime import date
class CreateBuyForm(forms.ModelForm):
date = forms.DateField(initial=date.today(), widget=forms.TextInput(attrs={'tabindex':'-1','readonly':'readonly'}))
class Meta:
model = Buy
fields = ['date']
class BuyItemAddForm(forms.Mod... | [
"pbr112@naver.com"
] | pbr112@naver.com |
c6ab3e4068fda9c8202f9017c37654175a68e019 | 393a387cdb286cde75b4b7d760625d5851b6b080 | /Sorting items from user in alphabetical and reverse.py | 90a60ccf36cb5d37082e64d25c13965862512f11 | [] | no_license | nami-h/Python | b57f12ae48d5bc17a3de72ec7c5abb5622ba0cd2 | 7b067950da29df705237405742564d2f127f1446 | refs/heads/master | 2021-06-27T16:00:10.113762 | 2020-09-22T19:59:05 | 2020-09-22T19:59:05 | 136,550,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | lis=[]
num=int(input("How many animals do you want to enter? "))
for add in range(num):
add=input("Enter animal: ")
lis.append(add)
animals=['horse','cat','mouse']
s=lis+animals
print("Our list consists of: ", s)
s.sort()
print("Alphabetically ordered: ", s)
s.reverse()
print("Reverse ordered: ",s)
| [
"noreply@github.com"
] | nami-h.noreply@github.com |
75abc5b6b01a6dcbb9c8d615f21e672899c50936 | f9e3a0fb511470561d3d94bc984dafaee06000cb | /PP4E-Examples-1.4/Examples/PP4E/Preview/person_start.py | c1ba77cd5ea9c9f2d7400fccde6645dfcf752e38 | [] | no_license | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Person:
def __init__(self, name, age, pay=0, job=None):
self.name = name
self.age = age
self.pay = pay
self.job = job
if __name__ == '__main__':
bob = Person('Bob Smith', 42, 30000, 'software')
sue = Person('Sue Jones', 45, 40000, 'hardware')
print(bob... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
a52bc78e9d3b3e11b7cddbd0d97869f5a2a6bec2 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/828005040.py | 4a6d507aea18f617baa5083c1e25b5d6ed822f7a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 823 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'DA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BAU', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 1},
{ID: 'N2', MIN: 0, MAX: 99999},
{ID: 'N3', MIN: 0, MAX: 99... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
2940503764898b98082340170692f4e10443826b | 8e59a43de9d427865c5d67fef39e9a50e44f07ce | /ppocr/modeling/heads/rec_multi_head.py | 0b4fa939eecad15c79f5e37384944720b1879205 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleOCR | af87db8a804b9a4f4eac8a0b2faf80d1dd71633a | 15963b0d242867a4cc4d76445626dc8965509b2f | refs/heads/release/2.7 | 2023-09-01T04:53:37.561932 | 2023-08-30T02:22:15 | 2023-08-30T02:22:15 | 262,296,122 | 34,195 | 7,338 | Apache-2.0 | 2023-09-14T06:08:11 | 2020-05-08T10:38:16 | Python | UTF-8 | Python | false | false | 4,301 | py | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.
#
# 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... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
47c310bae1e4abdaa6b75569a117b14e0647509e | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /基础课/jichu/day16/seek.py | 9bc56e0f93452a501443ed06d36a8a5bd659e588 | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | fr = open('20bytes.txt','rb')
print('当前读写位置是:',fr.tell())#0
b = fr.reed(2)
print(b)#b'AB'
print('当前读写位置是:',fe.tell())#2
#读写abcde这五个字节
fr.seek(5,0)#
# fr.seek(3,1)
# fr.seek(-15,2)
b = fr.read(5)#b'abcde'
print(b) | [
"zh_en520@163.com"
] | zh_en520@163.com |
83c7d94c9223617493fa9162a58e518ded6fbd10 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_price_response.py | 437f28d12f863bbca7d3ec3c11acd04386c74027 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,513 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowPriceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4a538cff9ad6cd0890340bd264318ca2cc7dc8c3 | cc9a0d5608b2209b02591ceace0a7416823a9de5 | /config/settings/local.py | cc31fc60988cb0f8692e336882a572a81a46a794 | [
"MIT"
] | permissive | morwen1/hack_your_body | 240838e75dd4447c944d47d37635d2064d4210fd | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | refs/heads/master | 2020-11-24T01:55:46.323849 | 2019-12-15T18:15:51 | 2019-12-15T18:15:51 | 226,505,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... | [
"morwen901@gmail.com"
] | morwen901@gmail.com |
a00da9b3a8568ca40cac0d1ea67083ce9ef97c43 | 9af35b0e0c0ed4b102c61c563d7c7647a758bb72 | /braindecode/datautil/signal_target.py | ebb6280370c5f4026abc132b5482426657926cdc | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TonioBall/braindecode | 7c0a5217c944e8718d74fd9763b3c609252c9feb | d5b8d87d959c96ea8422e21099e1ef4b71b9d05a | refs/heads/master | 2020-12-13T08:56:34.939109 | 2020-01-17T13:27:30 | 2020-01-17T13:27:30 | 234,367,901 | 0 | 0 | BSD-3-Clause | 2020-01-16T16:56:45 | 2020-01-16T16:56:44 | null | UTF-8 | Python | false | false | 911 | py | class SignalAndTarget(object):
"""
Simple data container class.
Parameters
----------
X: 3darray or list of 2darrays
The input signal per trial.
y: 1darray or list
Labels for each trial.
"""
def __init__(self, X, y):
assert len(X) == len(y)
self.X = X
... | [
"robintibor@gmail.com"
] | robintibor@gmail.com |
9f7cd33b09083b7ca32ab65d512beb3d76667dc4 | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /subject6_graphs/text.py | e255a01bf2155d3b55fd0ba8180d1b331aa5b94d | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
# created: 05.12.18
# by David Zashkolny
# 2 course, comp math
# Taras Shevchenko National University of Kyiv
# email: davendiy@gmail.com
tasks = int(input())
for mini_task in range(tasks):
s = input().split()
n, m = int(s[0]), int(s[1])
l = []
x, y = -1, ... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
cd6e8276b89ab78c02389cbb84c51b5ba844fbdb | 421d58c6b93b81e0724f8f4576119300eb344252 | /influencers/users/migrations/0005_auto_20181111_1505.py | 1d7c2ca75db84615820701ef82599ab6c705746f | [] | no_license | momen/influencers | 7728228c92a552bdff9ae62f85986ad03bce186e | f9c76cfc2970440112967f9579dc31f77063cb25 | refs/heads/master | 2020-06-03T22:20:03.881411 | 2019-06-15T07:48:43 | 2019-06-15T07:48:43 | 191,754,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.1.2 on 2018-11-11 15:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_is_removed'),
]
operations = [
migrations.AlterField(
model_name='user',
name='is_active',
... | [
"momennegm@gmail.com"
] | momennegm@gmail.com |
792451ae4deffa9b1fcfbae36e7e0397b0f3d802 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/tst/acupoints/test_zusanli213.py | f53e9b7310099603a6d346caed38546241f59172 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
import unittest
from meridian.acupoints import zusanli213
class TestZusanli213Functions(unittest.TestCase):
def setUp(self):
pass
def test_xxx(self):
pass
if __name__ == '__main__':
unittest.main()
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
78114eb9b8af0d0f91311f5efe983687ab814067 | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/ai_platform/operations/describe.py | 06aa812cb986b22a941e19bab4929cc2330eda88 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 1,528 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
1b661917f1bbf1889691f540f74bfadc8996f42a | 244189d49a3967b4b002af73f40ca8e8064c4771 | /modules/auxiliary/scanner/http/octopusdeploy_login.rb | e95f4eb8c6b5e148702da83e0b31045c7dcf1249 | [
"MIT"
] | permissive | darkcode357/thg-framework | 7540609fb79619bdc12bd98664976d51c79816aa | c1c3bd748aac85a8c75e52486ae608981a69d93a | refs/heads/master | 2023-03-01T05:06:51.399919 | 2021-06-01T14:00:32 | 2021-06-01T14:00:32 | 262,925,227 | 11 | 6 | NOASSERTION | 2023-02-10T23:11:02 | 2020-05-11T03:04:05 | Python | UTF-8 | Python | false | false | 2,528 | rb | ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'metasploit/framework/credential_collection'
require 'metasploit/framework/login_scanner/octopusdeploy'
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remo... | [
"darkocde357@gmail.com"
] | darkocde357@gmail.com |
adb6427317dfc161210edab8159cb6ef4ec06f21 | 23b44edcd663eb60d4deee64ced5a5b27ee3b7d2 | /thermosteam/chemicals/phase_change.py | ef5a32237d3cf1e9db68f454ccd5c957c0c7a959 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"MIT"
] | permissive | sarangbhagwat/thermosteam | 7b13c6c3146fe2fc378b453fe3c732dc7397ea0c | 710ec22b17c257a742300bf172fd3121852abf98 | refs/heads/master | 2022-12-13T03:37:49.251727 | 2020-09-14T17:24:30 | 2020-09-14T17:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module extends the phase_change module from the chemicals's library:
# https://github.com/CalebBell/chemicals
# Copyright (C) 2020 Caleb Bell <Caleb... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
6b5240c09546ae48c6e11c2e580c271be45aea67 | b75ee1f07fcc50142da444e8ae9ba195bf49977a | /test/todo.py | fda75e5f8c9744005e5de098f819c7cadc1540c1 | [
"Apache-2.0"
] | permissive | FlorianLudwig/code-owl | 369bdb57a66c0f06e07853326be685c177e2802a | be6518c89fb49ae600ee004504f9485f328e1090 | refs/heads/master | 2016-08-04T02:26:07.445016 | 2014-05-25T19:19:13 | 2014-05-25T19:19:13 | 18,918,361 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # this file contains tests for missing features
# this means the tests here do FAIL.
import codeowl.search
def match(query, code):
query = codeowl.search.generate_query(query)
code = codeowl.code.parse(code)
return codeowl.search.tokens(query, code, '<test>')
def test_py_import():
assert match(
... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
2bf16d2a0b120a587301917cafe6e3763746f348 | 52a3beeb07ad326115084a47a9e698efbaec054b | /horizon/.venv/bin/heat | da3eeefdf4e4f11003d3c6597a0c69aea163d0fd | [
"Apache-2.0"
] | permissive | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 240 | #!/home/horizon/horizon/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from heatclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com | |
62de38f216a4bb285bd5c78c9ae8517e3d1c44dc | 4ddf82eeb31d46fb67802a4375390eb42a8f23b8 | /tests/pyb/adc.py | 875d31d732cc3648fff5484fb1e95c617dda69ad | [
"MIT"
] | permissive | pulkin/micropython | 1437a507b9e90c8824e80c3553e6209d89e64565 | c274c947c611f510fd2b1c4ef6cbd9f4283794fc | refs/heads/master | 2023-03-08T02:35:28.208819 | 2022-04-19T12:38:47 | 2022-04-19T12:38:47 | 167,732,676 | 103 | 36 | MIT | 2023-02-25T03:02:36 | 2019-01-26T19:57:59 | C | UTF-8 | Python | false | false | 1,546 | py | from pyb import ADC, Timer
adct = ADC(16) # Temperature 930 -> 20C
print(str(adct)[:19])
adcv = ADC(17) # Voltage 1500 -> 3.3V
print(adcv)
# read single sample; 2.5V-5V is pass range
val = adcv.read()
assert val > 1000 and val < 2000
# timer for read_timed
tim = Timer(5, freq=500)
# read into bytearray
buf = byte... | [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
ba2dba9f3f8b6287d25ffbb5992a661635b0b81c | f1b9dc71b2dafc2b331de495ef4ceab938734fbe | /test.py | b80d38b36f71633c8ecb41f54b9fdf2f08e362bc | [] | no_license | philippjfr/FOSS4G-2017-Talk | 7deb6e48755b71658f930aa55c06d3a903f1abc6 | e3f035dc648cfc4642e774e536d6c07c847417b5 | refs/heads/master | 2022-11-07T07:19:37.053629 | 2017-08-23T17:16:38 | 2017-08-23T17:16:38 | 100,023,633 | 2 | 4 | null | 2022-11-01T10:51:44 | 2017-08-11T11:09:21 | JavaScript | UTF-8 | Python | false | false | 1,261 | py | import holoviews as hv
import param
import parambokeh
import numpy as np
from bokeh.io import curdoc
renderer = hv.renderer('bokeh').instance(mode='server')
class CurveExample(hv.streams.Stream):
color = param.Color(default='#000000', precedence=0)
element = param.ObjectSelector(default=hv.Curve,
... | [
"P.Rudiger@ed.ac.uk"
] | P.Rudiger@ed.ac.uk |
a8b75d380cc2dabf3b993334ea90a79166b071f7 | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week06/AssignmentQ4.py | 40922ab75fb78db62f5805f72f03ea8d78695d15 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Given an array of size n and a number k, find all elements that appear
# more than n/k times
# Input : k = 4 ,n=9 , A = [ 3 ,1, 2, 2, 2, 1, 4, 3, 3 ]
# # Output: - [ 3 , 2]
list1=list(map(int,input("Enter the list=").split()))
n=len(list1)
k=int(input("Enter the value of k="))
frequency={}
for i in list1:
if... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
98a3bb666aa53326b5eaed0135122f7aa1ea659d | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002017.py | 3e62b15d60a4b9a7663df6952ee01bd0980a8d61 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
d04aaef21caf30a7b3162da917e0162e5972d2ce | 4e93e4275e82a08d3c114c9dd72deb0959d41a55 | /src/ch10/binary/__init__.py | 6f8ad9a2cdb18a4e50d6eeff4b4bd01581729622 | [] | no_license | wsjhk/wasm-python-book | fd38e5a278be32df49416616724f38a415614e8b | 872bc8fe754a6a3573436f534a8da696c0486c24 | refs/heads/master | 2023-03-16T02:18:48.869794 | 2020-09-17T11:31:49 | 2020-09-17T11:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: __init__.py
@time: 2020/8/19 1:55
@project: wasm-python-book
@desc:
"""
from ch10.binary import reader
decode_file = reader.decode_file
| [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
9d9b777e9db5f14839481e9edb2dc062d203210a | 93b5da40708878016d953aeb4d9b908ff8af1e04 | /function/practice2.py | 3a807a52ef9fe652abe3614a37febbc4e2a91658 | [] | no_license | Isaccchoi/python-practice | e50e932d2a7bf13b54e5ca317a03a5d63b406c6b | 70e3e1f8590667cfe5ba4c094873eb39d555c44a | refs/heads/master | 2021-06-29T05:45:18.371743 | 2017-09-21T06:15:47 | 2017-09-21T06:15:47 | 103,229,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def sequential_search(str, key):
count = 0
while count < len(str):
if str[count] == key:
return count
else:
count += 1
return 0
print(sequential_search("개구리고양이", "개"))
print(sequential_search("개구리고양이", "구"))
print(sequential_search("개구리고양이", "리"))
print(sequential_se... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
d85ff8da66e28d47df80755796b5b30c21127fba | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /able_way/long_way/take_eye.py | cfcd983c2042f55d5d6e7c99ddba0ad24bf58cf2 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def good_time(str_arg):
problem_and_work(str_arg)
print('high_thing')
def problem_and_work(str_arg):
print(str_arg)
if __name__ == '__main__':
good_time('able_fact_and_life')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
a4096b7f1c4116a6ffaf257384b64bd4bd388996 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/6. ZigZag Conversion(Med).py | 1e80504fb03188e5ba70ed8751bed04c9c9c96c4 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1:
return s
store = [["" for _ in range(len(s))]for _ in range(numRows)];
i = 0;
m, n = -1, 1;
while i < len(s):
if m == -1:
m += 1;
n -= 1;
... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
83216ab4814f0ddc0657688c7f97149e35a3bdbb | 142362be3c4f8b19bd118126baccab06d0514c5b | /xapian64/site-packages/djapian/utils/decorators.py | 1deb7553ccf6014639b53b8845f5a841e5fbcb2e | [] | no_license | dkramorov/astwobytes | 84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6 | 55071537c5c84d0a27757f11ae42904745cc1c59 | refs/heads/master | 2023-08-27T07:10:51.883300 | 2023-08-02T16:52:17 | 2023-08-02T16:52:17 | 191,950,319 | 0 | 0 | null | 2022-11-22T09:15:42 | 2019-06-14T13:44:23 | HTML | UTF-8 | Python | false | false | 898 | py | import xapian
def retry_if_except(errors, num_retry=4, cleanup_callback=None):
def _wrap(func):
def _inner(*args, **kwargs):
for n in reversed(range(num_retry)):
try:
return func(*args, **kwargs)
except errors:
# propagate ... | [
"zergo01@yandex.ru"
] | zergo01@yandex.ru |
14f7ea5a0fd4e2ab4ffa08421ed6e486da33ccfc | 4692f28f86ee84a76abfac8cc8a0dd41fcd402e4 | /tasks/github_tasks.py | ddf0c9af7bae0fe3c10ef1e08285fae600084aa1 | [
"CC0-1.0",
"BSD-3-Clause",
"Apache-2.0",
"GPL-1.0-or-later",
"MIT",
"0BSD",
"Unlicense",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-2-Clause-Views",
"MPL-2.0"
] | permissive | DataDog/datadog-agent | cc4b89839d6031903bf23aa12eccc2a3f3c7f213 | d960cdb7de8fa5d1c7138cfe58e754af80cb796a | refs/heads/main | 2023-09-04T10:45:08.138748 | 2023-09-04T09:13:43 | 2023-09-04T09:13:43 | 49,970,739 | 2,388 | 1,288 | Apache-2.0 | 2023-09-14T20:06:34 | 2016-01-19T17:40:41 | Go | UTF-8 | Python | false | false | 3,694 | py | import os
from invoke import Exit, task
from .libs.github_actions_tools import (
download_artifacts_with_retry,
follow_workflow_run,
print_workflow_conclusion,
trigger_macos_workflow,
)
from .utils import DEFAULT_BRANCH, load_release_versions
@task
def trigger_macos_build(
ctx,
datadog_agent... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
019ab9a8348c516eab7132b6900f6f45b8172cdb | 243ce25168eea65144713a1100ca997a2d29f280 | /p68.py | aaea8a7b5cd711d48a2ecaed6cc2366716f5667f | [] | no_license | acadien/projecteuler | 6aa1efbb1141ecf36d6b23bb6b058070e5e881e0 | 2efb0b5577cee7f046ed4f67d0f01f438cbf3770 | refs/heads/master | 2020-04-28T21:33:49.631044 | 2013-12-06T19:25:20 | 2013-12-06T19:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/python
from math import *
from random import *
from itertools import chain,permutations
o_ind=range(5)
i_ind=[[5,6],[6,7],[7,8],[8,9],[9,5]]
def trysum(A):
if 10 in A[5:]:
return False
B=set([A[i]+A[i_ind[i][0]]+A[i_ind[i][1]] for i in range(5)])
if len(B)==1:
return True
re... | [
"adamcadien@gmail.com"
] | adamcadien@gmail.com |
ae9e61d3ae9ee479adabb49c6e4d75d50cecfd7e | b1f7c8eecdfc1e54e868430d7b6192b162f5a530 | /insta/signals.py | 2177664422d6238343c5645260f46897273c08a5 | [] | no_license | Nyagah-Tech/instagramWebApp | 490c9d8874c082132e9a0d78eb849e2b1136656b | abf3421a408ac1daf5f5bf20b76073ad73894eba | refs/heads/master | 2022-12-13T04:33:26.104920 | 2020-01-06T21:18:17 | 2020-01-06T21:18:17 | 229,194,006 | 0 | 0 | null | 2022-11-22T05:13:48 | 2019-12-20T05:08:18 | Python | UTF-8 | Python | false | false | 565 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
@receiver(post_save, sender=User)
def create_profile(sender,instance,created,**kwargs):
'''
this is a function that creates a profile of a user after registrat... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
62b7897f6f243bde43c73bd0addea96c61ff23d3 | e2d23d749779ed79472a961d2ab529eeffa0b5b0 | /gcloud/tests/core/models/test_user_default_project.py | a8944c2c0e485a689a536b1e3088ebda6139b172 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | manlucas/atom | 9fa026b3f914e53cd2d34aecdae580bda09adda7 | 94963fc6fdfd0568473ee68e9d1631f421265359 | refs/heads/master | 2022-09-30T06:19:53.828308 | 2020-01-21T14:08:36 | 2020-01-21T14:08:36 | 235,356,376 | 0 | 0 | NOASSERTION | 2022-09-16T18:17:08 | 2020-01-21T14:04:51 | Python | UTF-8 | Python | false | false | 2,282 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"lucaswang@canway.net"
] | lucaswang@canway.net |
02778531cc548dda2bfadf226376a93af1bcd11f | 746bf62ae3599f0d2dcd620ae37cd11370733cc3 | /leetcode/contains-duplicate.py | 768cd64e1cb979d349fc2bf6872d9d0a27bb7e6b | [] | no_license | wanglinjie/coding | ec0e614343b39dc02191455165eb1a5c9e6747ce | 350f28cad5ec384df476f6403cb7a7db419de329 | refs/heads/master | 2021-04-22T14:00:48.825959 | 2017-05-02T12:49:05 | 2017-05-02T12:49:05 | 48,011,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Author: Wanglj
Create Time : 20151223
Last Modified:
判断列表中是否有重复的
'''
class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
nums_set = set(nums)
if len(nums_set) < len(n... | [
"hitwhwlj@163.com"
] | hitwhwlj@163.com |
f9d7f2202c7c7b8cfb47887171023887d23fb306 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch50_2020_03_31_18_26_15_429003.py | 9cc22791965cdb59d8ef25da1a85490c844cd611 | [] | 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 | 177 | py | def junta_nome_sobrenome(n, s):
n_s = []
espaco = [' ']*len(n)
i = 0
while i < len(n):
n_s.append(n[i] = espaco[i] + s[i])
i += 1
return n_s
| [
"you@example.com"
] | you@example.com |
38723203b79a0913486767469b468bcf4790caac | 795ba44e09add69a6c3859adf7e476908fcb234c | /backend/mod_training_1_27492/urls.py | 58881d4c5e4d89926432059cb0802a8f7062e3db | [] | no_license | crowdbotics-apps/mod-training-1-27492 | 0df7b863ef18e7ba4e3f1c34f1bac7554e184553 | 91815c10d4f8af1e18bb550db97373b4099a4ae9 | refs/heads/master | 2023-04-26T00:57:13.854464 | 2021-06-01T19:48:41 | 2021-06-01T19:48:41 | 371,498,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | """mod_training_1_27492 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'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0e8eb7cfd16b0572c20b19d0ca5619c7eecbd659 | 7c9917d62959b8d69309d44362481356e632083e | /enzymatic_bias/profile_model_of_bias/kmer_init_tuned/dnase/24mer/model.py | 8e07a5bc7b4e1400fd6be929ca7b482df4c88a82 | [
"MIT"
] | permissive | kundajelab/bias_correction | bee77bd2d36268aa6b7046b817e9e349c8cc8238 | 521678ea8739473f793b0ce85e22e622d13df6fe | refs/heads/master | 2021-06-21T11:34:54.558788 | 2021-06-10T06:39:35 | 2021-06-10T06:39:35 | 218,137,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,974 | py | import pickle
import pdb
import numpy as np ;
from keras.backend import int_shape
from sklearn.metrics import average_precision_score
from kerasAC.metrics import *
from kerasAC.custom_losses import *
import keras;
#import the various keras layers
from keras.layers import Dense,Activation,Dropout,Flatten,Reshape,In... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
c51867d2cd55c0e97a84af6332cfcfd529eeb1d2 | 40be7c7a50b839a922c22ea624123b11e5da25cb | /feria/migrations/0003_franquicia_imagen.py | c252e9fbb8cc5b7835b3b8c49f36ae453c9fd74f | [] | no_license | LuberNavarrete/sistema | e70b15d0410402ceb6f3ba2a320886d5b225c65c | e4800f3aa2cdde69189a43dcf9543be85ed14693 | refs/heads/master | 2021-01-10T16:54:21.479466 | 2015-11-15T14:21:20 | 2015-11-15T14:21:20 | 44,011,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feria', '0002_auto_20151008_1937'),
]
operations = [
migrations.AddField(
model_name='franquicia',
n... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
951e87820000a2ba516ce5733b3db4e751382387 | be0eda70579e191d7dd1ace87ccbda8a3e85474e | /app01/urls.py | 78bd401466e3cf6df768de0ca595ee3d970007da | [] | no_license | zxycode-2020/django_tutrital2 | 084ebe4a83e7a9724163ae54b816239ff2b0cce6 | 969ce0b3caca92c045afee0e5eb628f9afb35b48 | refs/heads/master | 2022-05-03T23:22:17.075830 | 2020-02-05T03:11:09 | 2020-02-05T03:11:09 | 236,920,126 | 0 | 0 | null | 2022-04-22T23:00:29 | 2020-01-29T06:40:39 | Python | UTF-8 | Python | false | false | 577 | py | from django.urls import path, include
from app01.views import index, article, test_url, student, \
students, args, reg, xuanran, orm_test, post_cls, get_cls
urlpatterns = [
path('index/', index),
path('article/<str:aid>/', article),
path('test_url/', test_url),
path('students/', students), ... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
2b792a76a6d249e279abf8afff4ad007a551e9e7 | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_3/가장먼노드.py | 19833971ef9bcd673871a0c8a749d8662f7847c8 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from collections import deque
def solution(n, edge):
answer = 0
graph = [[] for _ in range(n+1)]
dp = [0] * (n+1)
dp[1] = 1
queue = deque([1])
for edg in edge:
graph[edg[0]].append(edg[1])
graph[edg[1]].append(edg[0])
while queue:
answer = len(queue)
for i i... | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
ecad99a07312379715f64a3e39b3ea5577d254ee | c5746efe18a5406764c041d149d89c0e0564c5a5 | /1. Python语言核心编程/1. Python核心/Day07/exercise11.py | a656871fe2f7a823083003ada2bd5ae8242e8c9c | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 175 | py | def sum_digit(num):
"""
:param num:
:return:
"""
count = 0
for item in str(num):
count += int(item)
return count
print(sum_digit(1234))
| [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
4052c872dbac2fd274177618ea0b913cd7c86450 | 6a9f06b967d7641ddff7b56425651b29d3e577f4 | /mindinsight/mindinsight/backend/datavisual/train_visual_api.py | a868a443c817c402a689b20195737d12c7706bd9 | [
"Apache-2.0"
] | permissive | ZeroWangZY/DL-VIS | b3117016547007b88dc66cfe7339ef02b0d84e9c | 8be1c70c44913a6f67dd424aa0e0330f82e48b06 | refs/heads/master | 2023-08-18T00:22:30.906432 | 2020-12-04T03:35:50 | 2020-12-04T03:35:50 | 232,723,696 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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... | [
"756762961@qq.com"
] | 756762961@qq.com |
904accd2539767b15763cd55082659294465b998 | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /demo8apr/testapp/urls.py | 612a33b0ec158d2795dc24c6b407ab4fabc9dc74 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from testapp import views
urlpatterns = [
path('form/',views.form_view,name='forms'),
path('thankyou/',views.thankyou_view,name='thankyou'),
path('list/',views.list_view,name='list'),
path('elist/',views.elist_view,name='elist'),
path('eform/',views.eform_view,name='efo... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
32275f30d3edfcdfabbae11c0e0d3061a353a050 | 33f9056de72ea429774cdf42d3f813a4cd33a255 | /backend/takeout/admin/models/admin.py | 803776d2c167a36a3dde181c74e8d18c7d90e965 | [
"MIT"
] | permissive | alex159s/Take-out | a566e35d5c05c6e8456beb449c08b6c6479f4e79 | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | refs/heads/master | 2020-04-06T06:36:51.806309 | 2016-07-15T14:27:06 | 2016-07-15T14:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # coding: utf-8
from lib.models.userbase import UserBase
class Admin(UserBase):
def to_string(self):
return {
"id": self.id,
"username": self.username,
"nickname": self.nickname,
}
def to_detail_string(self):
return self.to_string()
| [
"billo@qq.com"
] | billo@qq.com |
25bec75d335fd19663fb549bac3f111228adcee2 | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/facebook/ReverseLinkedList.py | 9184e30348f7f6739d047928f0e48937973b5b12 | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | '''
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.ne... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
01dca87891811dc9c80df4ec667f35a0d253a385 | 2d997384a86f0d9c0cdb80a1141908abfdf674cc | /ML_homework8/task.py | 3a7d666193d64500051f875d33be8500c66db5a8 | [] | no_license | Alice-Avetisyan/Machine_Learning | 1ddc91fad066f3abf0457d036aa783f0fc40a46f | 9a0cc83c6d90ef58703a383f066ef857bb124334 | refs/heads/master | 2021-01-16T09:07:20.435898 | 2020-06-18T08:44:17 | 2020-06-18T08:44:17 | 243,054,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from sklearn.datasets import make_classification
# Generate a random n-class classification problem
X, y = make_classification(100, 3, 2, 1, class_sep=0.5) # 2 of 3 features are informative and 1 is redundant
# 100 -> number of samples/rows,
# 3 -> number of features/columns,
# 2 -> number of informative features... | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
9e30f6dd5e43574bbc8c96b3976c5ed164f00864 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/vehicle_systems/components/__init__.py | 057145a5b192b33ecbef57d0bc595f52f45d7640 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 132 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/vehicle_systems/components/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
10ebb5a33de3a78479eeeeab0075a4ed9b9b5b16 | bcb56cc126ea1885eb5ecc920884e2e331def045 | /Part B/Letter.py | 5536de9080655ae9b4a8c2bdfc7f925462a11551 | [] | no_license | priyanshkedia04/Codeforces-Solutions | 2d11cb7b8329fe658f983b7212c17fc89fd784f0 | a5197c633bf4c3238f48bfb5b308144c2ffba473 | refs/heads/main | 2023-06-06T13:10:13.787843 | 2021-07-01T14:06:52 | 2021-07-01T14:06:52 | 382,000,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from collections import Counter
s1 = dict(Counter(list(input())))
s2 = dict(Counter(list(input())))
count = 0
if ' ' in s2:
del s2[' ']
for i in s2:
if i in s1 and i:
if s1[i] >= s2[i]:
count += 1
if count == len(s2):
print("YES")
else:
print("NO") | [
"noreply@github.com"
] | priyanshkedia04.noreply@github.com |
dab8b347c67f8225bb55fa6570fe28846ab87f79 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/101/usersdata/227/49714/submittedfiles/av1_m3.py | 24617831cbcfc8ae60100af176c4d6c910776e9e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # -*- coding: utf-8 -*-
import math
m=int(input('digite o número de termos:'))
a=4
pi=0
for i in range(2,m+1,2):
b=i+1
c=b+1
pi=3+(a/(i*b*c)
print('%.6d'%pi)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
464aca6bdb71bea101e69f9172bcaeea0fdf5dee | a485f01fd697721356d4405dfef569c50499d652 | /SipMask-mmdetection/configs/sipmask/sipmask++_r101_caffe_fpn_ssd_6x.py | dabccfd91bdc17e15ea79c812b84436a3eeb3192 | [
"MIT",
"Apache-2.0"
] | permissive | Borda/SipMask | 653333c1c7a7b5e9d0779c28f1b86d17b623aa5f | bc63fa93f9291d7b664c065f41d937a65d3c72fd | refs/heads/master | 2023-05-25T11:11:44.452534 | 2021-03-26T02:47:49 | 2021-03-26T02:47:49 | 299,910,001 | 1 | 0 | MIT | 2020-09-30T12:22:24 | 2020-09-30T12:22:23 | null | UTF-8 | Python | false | false | 4,553 | py | # model settings
model = dict(
type='SipMask',
pretrained='open-mmlab://resnet101_caffe',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=False),
style='caffe',
... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
8d09c7578019ad5f22cf3b2ab7e4e74eaa4c0bbe | f3ccd2cf5c1819cf6b2b296a134a59a58deb87a6 | /03img_classify/classify.py | a1bbe880c582e1d737c4fb08b515be56ded6347b | [] | no_license | leebinjun/gaze_tracking_ARglasses | 195120a17a0e4858f4cdfc9516e781567f091fb0 | 63841b565f6fbb16f788268fb1ef991df0142b6b | refs/heads/master | 2020-07-27T01:50:35.800129 | 2019-12-18T03:05:15 | 2019-12-18T03:05:15 | 208,825,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | import tensorflow as tf
import numpy as np
import cv2
uid_to_human = {}
for line in tf.gfile.GFile('imagenet_synset_to_human_label_map.txt').readlines():
items = line.strip().split('\t')
uid_to_human[items[0]] = items[1]
node_id_to_uid = {}
for line in tf.gfile.GFile('imagenet_2012_challenge_label_map_proto.pbtxt')... | [
"296735774@qq.com"
] | 296735774@qq.com |
4cbbc8616a600058c184f711b2e71766118ee132 | 2c8c7617d98f0349e560291960ecc5fb831bc0af | /programmers/level1/min/최대공약수와최소공배수.py | 67ebc70fa0b925142de49537b9ce963b435f15d2 | [] | no_license | BU-PS/coding_test | e53d9680ae80f32bfb5238795e868d3b37e5dd71 | c4fbd5034c8f507a858ca021cc7f6cfcf43f402a | refs/heads/master | 2023-03-15T05:26:36.566092 | 2021-03-25T12:36:40 | 2021-03-25T12:36:40 | 316,865,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # 최대 공약수 (GCD) : 두 개 이상의 자연수의 공통인 약수 중 가장 큰 수
# 1. 최대 공약수를 구하는 법
# - 두수의 약수들을 구한다
# - 두수의 약수들을 집합(set)에 넣는다
# - 교집합을 통해 공약수를 찾는다
# - 교집합을 중 가장 큰 수를 찾는다
# 최소 공배수 (LCM) : 두 수의 공배수가 최소인
# 1. 최소 공배수를 구하는 법
# - N * M = L * C 의 식을 통해 값을 구한
def solution(n: int, m: int):
gcd_value = gcd(n=n, m=m)
lcm_value = lcm(n=n... | [
"kjhm0607@gmail.com"
] | kjhm0607@gmail.com |
27e83ea7ad44899703c2d61c2941e9dcef77cdd2 | 8e583ac7e8a2047f01fa6e9829f9de36022c3265 | /lib/python/gooey/python_bindings/gooey_parser.py | 95e2b888765693f41f424ea3c8819bc2d20689f2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jonathanlurie/timelapseComposer | ef25c5623d19024e5f83ad6c236497fdcffca10d | 8de9f1ca626419bacb11bf6c563e79d52fb16a8d | refs/heads/master | 2021-01-10T09:18:58.517707 | 2015-05-25T18:58:40 | 2015-05-25T18:58:40 | 36,248,988 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py |
from argparse import ArgumentParser
class GooeyParser(object):
def __init__(self, **kwargs):
self.__dict__['parser'] = ArgumentParser(**kwargs)
self.widgets = {}
@property
def _mutually_exclusive_groups(self):
return self.parser._mutually_exclusive_groups
@property
... | [
"lurie.jo@gmail.com"
] | lurie.jo@gmail.com |
3bec992595116b04adc9b11ce51ab2e1693e2a4b | 38c8cca903432a88a6141dab4b9ac24740ae9e39 | /src/crike_django/manage.py | 8937161661f10d2505a8b82f54ecd20f227091b2 | [
"Apache-2.0"
] | permissive | mxwww/crike | 3d37882e75a4f7170d183d2050d6a643a72f381b | 141bd1c9b37882f0369dd8231cdf3576eeb7a5e1 | refs/heads/master | 2023-07-19T08:09:25.806263 | 2016-06-11T05:30:46 | 2016-06-11T05:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crike_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"geekan@foxmail.com"
] | geekan@foxmail.com |
a2190e26fa997ddb6b13f10b274f5d200b6e3918 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /vt_manager/src/python/vt_manager/models/utils/Choices.py | 8b045af44501156cda604d3c0cf5c53e35f5078b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py |
class VirtTechClass:
VIRT_TECH_TYPE_XEN = "xen"
VIRT_TECH_CHOICES = (
(VIRT_TECH_TYPE_XEN, 'XEN'),
)
@staticmethod
def validateVirtTech(value):
for tuple in VirtTechClass.VIRT_TECH_CHOICES:
if value in tuple:
return
raise Exception("Virtualization Type not valid")
class OSDistClass():
... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
06e6ec8eeae855acf71b78ba670c6f33f3e7d563 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/cfm_c1742b75736db9d1da0fb731317ab337.py | 2553211aa330936731e6ce2d5a16da9385c4e481 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 6,156 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
3093186e46c96765d0b51554468a7761c5484e8e | a72e79b8caa43e973e7d7ecb7ffdaba15314bb9f | /server/wtpodcast2/feeds/whatsnew/urls.py | d16a486de32ebec8b741e4bcd3163578dee8596f | [] | no_license | crgwbr/wt-podcast2 | 2e4be9a0ffa8675d8283f3d0cc16adc799acac68 | a2dfb178b5e4c3e9ac5ab9ef7c13669caf50129c | refs/heads/master | 2022-12-24T07:42:47.599582 | 2020-10-08T15:35:52 | 2020-10-08T15:35:52 | 266,866,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.urls import path
from . import views
app_name = 'whatsnew'
urlpatterns = [
path('feed.rss', views.feed_rss, name='feed_rss'),
]
| [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
f7a4a5e6467ee184d150cffb9fae09e625703666 | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/02.Data Science/1. collection/6. App/Scheduler_example.py | 25345e1d5cf5e270c0a09dd38d9fcbcdd11abc17 | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 998 | py | import threading
import time
g_Balcony_windows=False
g_AI_Mode=False
def updata_scheduler():
global g_Balcony_windows
while True:
if g_AI_Mode == False:
continue
else:
time.sleep(5)
g_Balcony_windows=not g_Balcony_windows
t= threading.Thread(... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
0864304fb6f9996499fcb687bf16c415b3d12c7e | 938d5d26c0346316a10a74520b7e30b1bb1f6893 | /oncopolicy/utils/generic.py | 4a1dcb70ea43341de423c68976e0cc57c3119a36 | [
"MIT"
] | permissive | yala/Tempo | 46fe0da5a6e2e1a8b9bc855851e7ff9a3ab63bd6 | bf3e0e78d64869bb2079c582a4a35982f78386ad | refs/heads/main | 2023-04-17T07:04:34.697607 | 2022-01-13T21:03:04 | 2022-01-13T21:03:04 | 419,388,269 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import datetime
import hashlib
import numpy as np
from copy import deepcopy
import torch
import pdb
INVALID_DATE_STR = "Date string not valid! Received {}, and got exception {}"
ISO_FORMAT = '%Y-%m-%d %H:%M:%S'
CGMH_ISO_FORMAT ='%Y%m%d'
DAYS_IN_YEAR = 365
DAYS_IN_MO = 30
MAX_MO_TO_CANCER = 1200
MIN_MO_TO_CANCER = 3
MA... | [
"adamyala@csail.mit.edu"
] | adamyala@csail.mit.edu |
79a50b733533cd6299691b654d5ce900ae38596f | de4449e4fbd2972a5a7e775e3a3c7a187ef86899 | /ubiops/models/pipeline_request_deploment_request.py | 4cab9039fd3b21f5a7110af758c322d56e311bb0 | [
"Apache-2.0"
] | permissive | egutierrez-ar/client-library-python | 03325cc1d4c3e949187889ceb404a08660a7f418 | 94177e5f175263bce645c15a171e54690b1e254f | refs/heads/master | 2023-01-22T23:41:40.274718 | 2020-11-19T07:34:36 | 2020-11-19T07:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,840 | py | # coding: utf-8
"""
UbiOps
Client Library to interact with the UbiOps API. # noqa: E501
The version of the OpenAPI document: v2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from ubiops.configuration import Configuration
class PipelineReque... | [
"sascha.vanweerdenburg@dutchanalytics.com"
] | sascha.vanweerdenburg@dutchanalytics.com |
95f6713504bf13a0bf73502b797efe5295597a01 | bcb71f3ad0196709d462330a60801d5f8ec92ea6 | /backend/blog/models.py | 52046c2bc34be06eb996c26a98cfd002333212d7 | [
"BSD-3-Clause"
] | permissive | lautarianoo/lautacademy | c7a7e84958fd6209415c16a0957a7e12449a9afc | beec082bdffe8c773fcec51974a687aced278a76 | refs/heads/master | 2023-05-28T20:22:22.718962 | 2021-06-11T17:19:32 | 2021-06-11T17:19:32 | 364,965,320 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | from ckeditor_uploader.fields import RichTextUploadingField
from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from django.utils import timezone
from ckeditor.fields import RichTextField
from mptt.models import MPTTModel, TreeForeignKey
from django.dispatch import r... | [
"neonchick1"
] | neonchick1 |
4e75a52bbb36cbac6858c29d1ab2d433f1f7071e | 169d809f45dedcaa3c7b1b49912d8b025abe18d9 | /challenge251_easy.py | 5d902f9cf7b2c9832252475e7fc7bf3834a08af4 | [] | no_license | bermec/challenges | 8a82d1d38d1ed1a0fc3f258443bc0054efc977a6 | 9fb092f20f12b4eaa808e758f00f482a49346c88 | refs/heads/master | 2021-10-08T05:05:56.803332 | 2018-12-08T00:20:20 | 2018-12-08T00:20:20 | 109,448,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | '''
Nonograms, also known as Hanjie, Picross or Griddlers, are picture logic puzzles in
which cells in a grid must be colored or left blank according to numbers at the
side of the grid to reveal a hidden picture. In this puzzle type, the numbers are a
form of discrete tomography that measures how many u... | [
"rog@pynguins.com"
] | rog@pynguins.com |
2982b152f2ef0916c17ae223e733483d0f455558 | fa9cc9cc469a3f0c5bdc0bc4e562dbbd3ff7e465 | /messages/RequestCloudMessage.py | cfd12e7df3126a5a7572dd9613f73bd6e7fc77a3 | [
"MIT"
] | permissive | zadjii/nebula | ddd86ea30791b46b2a1aeb000ae5dfea9a496168 | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | refs/heads/master | 2021-01-24T17:08:30.607634 | 2018-09-18T00:35:36 | 2018-09-18T00:35:36 | 36,847,552 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # last generated 2016-12-30 19:27:53.981000
from messages import BaseMessage
from msg_codes import REQUEST_CLOUD as REQUEST_CLOUD
__author__ = 'Mike'
class RequestCloudMessage(BaseMessage):
def __init__(self, id=None, cloud_uname=None, cname=None, username=None, passw=None):
super(RequestCloudMessage, sel... | [
"zadjii@gmail.com"
] | zadjii@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.