blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df5d0f9cd9fbd10df401ae6829425f78b699d912 | e8c303ca35a1f6b231193518fa5924d9a4cff0f0 | /frog-orchestrator/orchestrator_core/userAuthentication.py | aa0f5c430bbcb63000093d1e9dc37992329fae84 | [] | no_license | netgroup-polito/frog3 | 69187fa716fe4f93e0abea2e0df09f0dca2a721b | 3ad63ac25dddd8ba4bd9ab958f3c418e513b4ac9 | refs/heads/master | 2021-01-10T07:06:07.598744 | 2016-04-12T16:28:40 | 2016-04-12T16:28:40 | 36,660,818 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | '''
Created on 18 set 2015
@author: Andrea
'''
from sql.user import User
from orchestrator_core.exception import unauthorizedRequest
class UserData(object):
def __init__(self, usr=None, pwd=None, tnt=None):
self.username = usr
self.password = pwd
self.tenant = tnt
def getUse... | [
"stefanopet91@users.noreply.github.com"
] | stefanopet91@users.noreply.github.com |
dab19d4e555500f277957d95c0d1e3041bcaad0e | 3b21cbe5320137a3d8f7da40558294081211f63f | /Chapter12/FrozenDeepQLearning.py | 4910dba92203d7d02671ade946a3825a0a32ecd4 | [
"MIT"
] | permissive | Evelynatrocks/Python-Machine-Learning-Cookbook-Second-Edition | d06812bba0a32a9bd6e5e8d788769a07d28084cd | 99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f | refs/heads/master | 2023-04-06T20:23:05.384943 | 2021-01-18T12:06:36 | 2021-01-18T12:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import gym
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Reshape
from keras.layers.embeddings import Embedding
from keras.optimizers import Adam
from rl.agents.dqn import DQNAgent
from rl.policy import BoltzmannQPolicy
from rl.memory import SequentialMemory
ENV_NAME = 'Fr... | [
"joecasillas001@gmail.com"
] | joecasillas001@gmail.com |
04b413200d5c5c14c693f31cdea71096cfa5b87c | 8dde6f201657946ad0cfeacab41831f681e6bc6f | /617_merger_two_binary_tree.py | 29f9c56efed4c228638367c559ef7b02757f5f57 | [] | no_license | peraktong/LEETCODE_Jason | c5d4a524ba69b1b089f18ce4a53dc8f50ccbb88c | 06961cc468211b9692cd7a889ee38d1cd4e1d11e | refs/heads/master | 2022-04-12T11:34:38.738731 | 2020-04-07T21:17:04 | 2020-04-07T21:17:04 | 219,398,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | #Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution():
def mergeTrees(self, t1, t2):
"""
:type t1: TreeNode
:type t2: TreeNode
:rtype: TreeNode
"""
... | [
"caojunzhi@caojunzhisMBP3.fios-router.home"
] | caojunzhi@caojunzhisMBP3.fios-router.home |
60e4c38da404de4ba7dd46169d7c52c288298335 | ff55497043e91b5168b54369f3fd3f400dc9cf22 | /project/osmosis/event/api/views.py | 14fc471a28bddb1ce37cad0dcec068af4eba4872 | [] | no_license | kirami/Appevate | c890329928e2a9f91ded1cde29477c86b58e35ca | ee62eacd66606f3baf308718e5dbc6b7e55ba43b | refs/heads/master | 2022-12-02T00:07:59.448070 | 2020-07-22T01:23:27 | 2020-07-22T01:23:27 | 211,752,576 | 0 | 0 | null | 2022-11-22T05:52:38 | 2019-09-30T01:36:35 | HTML | UTF-8 | Python | false | false | 2,609 | py | from rest_framework import viewsets, permissions
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import generics
from ..models import Event
from .serializers import EventSerializer
from rest_fram... | [
"="
] | = |
9b05835b3205d9de4fd50aa8af20d2fbceef046d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_struggled.py | e5baa8e75aa991db85ea0ac09e2bb191bec47c29 | [
"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 | 252 | py |
from xai.brain.wordbase.verbs._struggle import _STRUGGLE
#calss header
class _STRUGGLED(_STRUGGLE, ):
def __init__(self,):
_STRUGGLE.__init__(self)
self.name = "STRUGGLED"
self.specie = 'verbs'
self.basic = "struggle"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf4267262480d8f9e04bb70a25dc61e4d56cdfe1 | c36d9d70cbb257b2ce9a214bcf38f8091e8fe9b7 | /977_squares_of_a_sorted_array.py | b06d138fadd0a72054f3ac664f5b51dc8b9a84ce | [] | no_license | zdadadaz/coding_practice | 3452e4fc8f4a79cb98d0d4ea06ce0bcae85f96a0 | 5ed070f22f4bc29777ee5cbb01bb9583726d8799 | refs/heads/master | 2021-06-23T17:52:40.149982 | 2021-05-03T22:31:23 | 2021-05-03T22:31:23 | 226,006,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class Solution:
def sortedSquares(self, nums: List[int]) -> List[int]:
l = 0
r = len(nums)-1
res = []
while l <= r:
if l == r:
res.append(nums[r]*nums[r])
break
if nums[l]*nums[l] < nums[r]*nums[r]:
res.append(nu... | [
"zdadadaz5566@gmail.com"
] | zdadadaz5566@gmail.com |
fed1b0600df776f414b4d2a66a68c13f4e7e15c1 | 8dbf11fe48645d79da06e0c6e9d6a5cc5e3116d5 | /pwnable_kr/asm/myShellcode.py | adddf23bdafcaa8b8825def5d8aa9549a4c91028 | [] | no_license | itaysnir/Learning | e1efb6ab230b3c368214a5867ef03670571df4b7 | a81c351df56699cc3f25618c81f8e04259596fd3 | refs/heads/master | 2021-05-23T09:33:58.382930 | 2021-02-17T19:36:46 | 2021-02-17T19:36:46 | 253,222,982 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | import pwnlib
import socket
FLAG_NAME = ".////this_is_pwnable.kr_flag_file_please_read_this_file.sorry_the_file_name_is_very_loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo0000000000000000000000000ooooooooooooooooooooooo000000000000o0o0o0o0o0o0ong"
IP = "pwnable.kr"
PORT = 9026
CHUNK = 40... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
640729d778883cd226020e47fea25bef8b99c520 | 5730110af5e4f0abe538ed7825ddd62c79bc3704 | /pacu/pacu/api/__init__.py | 5175c837b94da18470240e65eb75f00c9ed2e717 | [] | no_license | jzeitoun/pacu-v2 | bdbb81def96a2d87171ca20b89c878b2f66975e7 | 0ccb254a658263b4fe8c80ea623f860cb7dc1428 | refs/heads/master | 2021-06-03T18:50:50.890399 | 2020-04-27T16:31:59 | 2020-04-27T16:31:59 | 110,889,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import sys
from argparse import ArgumentParser, Action
if sys.argv[0] in ['-c', '-m']:
sys.argv[0] = 'python -m %s' % __package__
parser = ArgumentParser(
description = 'PACU v0.0.1',
epilog = "Contact to: Hyungtae Kim <hyungtk@uci.edu>",
)
group = parser.add_argument_group(
title='profiles',
desc... | [
"jzeitoun@uci.edu"
] | jzeitoun@uci.edu |
89d41180976614c3296c1f1ce9742f81d479d5cd | acdc8a6dcf131592ef7edb6452ee9da656d47d18 | /src/spv/demoFault2dCrf.py | 68062296649c2e88d4739e0da4f68460c439a60d | [] | no_license | xuewengeophysics/xmw | c359ed745c573507d1923375d806e6e87e3982a2 | 5f36d5f140dcfc0b7da29084c09d46ab96897f3c | refs/heads/master | 2021-01-01T19:44:07.737113 | 2017-07-27T17:56:21 | 2017-07-27T17:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,065 | py | #############################################################################
"""
Demo of dynamic warping for automatic picking
Author: Xinming Wu, University of Texas at Austin
Version: 2016.06.01
"""
from utils import *
setupForSubset("crf2d")
s1,s2,s3 = getSamplings()
n1,n2,n3 = s1.count,s2.count,s3.count
f1,f2,f... | [
"xinwucwp@gmail.com"
] | xinwucwp@gmail.com |
90632c12ee018323d838f0314ad1509f5b1b1450 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/1269.number_of_ways_to_stay_in_the_same_place_after_some_steps.py | 726086e2ad3c752a2b74ee77af09767afc7d3401 | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | # https://leetcode.com/problems/number-of-ways-to-stay-in-the-same-place-after-some-steps
# Hard (Difficulty)
# You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 position to the left, 1 position to the right in the array or stay in the same place (The pointer should not be placed ... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
0172e314069385caba90b50675f815799696c742 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/hotshot/log.py | e86c8b2519f959f123ad6f9f4bab8b88c486dd74 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/hotshot/log.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
854ca1b46498b6117d9f373caa9b6aa1588e13d0 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/pmb2_gazebo/catkin_generated/pkg.installspace.context.pc.py | c75e0ff2d2813071cbaee70567d2107aebd6d308 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "pmb2_gazebo"
PROJECT_SPACE_DIR = "/ho... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
9a2357b2017589fa88e975403385725ce748aa8e | b103d82e2f99815b684a58cad043c14bbc43c1aa | /exercicios3/ex115.py | 16a0f690f2137e5aaa6f2d96caae48e7c3d6fff5 | [
"MIT"
] | permissive | LuanGermano/Mundo-3-Curso-em-Video-Python | 6e3ffc5d82de55194cf0cfd318f1f37ff7e04f1f | 1dffda71ff769e4e901b85e4cca5595a5dbb545c | refs/heads/main | 2023-07-09T22:40:13.710547 | 2021-08-04T05:16:22 | 2021-08-04T05:16:22 | 392,557,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # Crie um pequeno sistema modularizado que permita cadastrar pessoas pelo seu nome e idade em um arquivo de texto simples.
# O sistema só vai ter 2 opções, cadastrar uma nova pessoa e listar todas as cadastradas
| [
"88220713+LuanGermano@users.noreply.github.com"
] | 88220713+LuanGermano@users.noreply.github.com |
bb68a5153695e94775883f6c5d021b72de37eba8 | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_wireless_controller_setting.py | 6cc88021aa0784ff5e1a80cf742278917d170ec1 | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,160 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# 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... | [
"a.u.bello@bham.ac.uk"
] | a.u.bello@bham.ac.uk |
d5d1c9478dab96f1827d01e24b9b942656c587a8 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/cpython/test_openpty.py | 0a3c4e43103e38bf52bf056329e17057aefce895 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 43 | py | ../../from_cpython/Lib/test/test_openpty.py | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
35b3d73af0a8e35ea5d24e76857a1e773f865d8c | f0fe4f17b5bbc374656be95c5b02ba7dd8e7ec6d | /all_functions/linux server/python GUI/Video capture/VideoCapture-0.9-5/Tools/3rdParty/pushserver/server.py | 83fe04d6bb7eef7b5a3a46f7d7f9eafce7ac910d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"LGPL-2.1-only"
] | permissive | Heroku-elasa/heroku-buildpack-python-ieee-new | f46a909ebc524da07f8e15c70145d1fe3dbc649b | 06ec2fda04d9e478ed2506400e460489b0ca91ab | refs/heads/master | 2022-12-10T13:14:40.742661 | 2020-01-29T14:14:10 | 2020-01-29T14:14:10 | 60,902,385 | 0 | 0 | MIT | 2022-12-07T23:34:36 | 2016-06-11T10:36:10 | Python | UTF-8 | Python | false | false | 3,094 | py | import SimpleHTTPServer
import urllib
import StringIO
import posixpath, sys, string
import time
from VideoCapture import *
cam = Device(devnum=0)
#~ cam.setResolution(640, 480) # VGA
#~ cam.setResolution(768, 576) # PAL
#~ cam.setResolution(384, 288) # PAL / 4
#~ cam.setResolution(192, 144) # PAL / 16
#~ cam.setResol... | [
"soheil_paper@yahoo.com"
] | soheil_paper@yahoo.com |
eda9af23bcb627e4435ca6f4e75e92aaca28c80b | b9609c425d8dfed3f32282f1a5f742ced0b4ab55 | /cart/tests.py | cd07f1df414f43d5502a7a71a8f6ab049a0e4c17 | [] | no_license | OlivierGaillard/elibrairie | 5e695f8c21787855e72d55710426c36238bba14b | 4d582d8d62efd396e7b0c2bed4182016f0fe5d9a | refs/heads/master | 2021-06-27T12:54:10.150293 | 2017-09-10T19:21:57 | 2017-09-10T19:21:57 | 102,965,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,174 | py | from django.test import TestCase, Client
from django.contrib.staticfiles import finders
from django.shortcuts import reverse
import os
from django.http import request
from elibrairie import settings
from catalog.models import Book, Category
from .models import CartItem
from .cartutils import CART_ID_SESSION_KEY
class ... | [
"info@metacoherence.ch"
] | info@metacoherence.ch |
2dd34ed91d4e5ea625355a87413ad5af693536b9 | f5ef25c84e9b4846f98d520bc9a20d20b3d1b65c | /set/set1.py | 6741123a44faca8e18c340dcbfe9628da7fabf2d | [] | no_license | amiraHag/python-basic-course2 | 45757ffdfa677c2accd553330cd2fd825208b0aa | 1fbfd08b34f3993299d869bd55c6267a61dc7810 | refs/heads/main | 2023-03-31T06:48:11.587127 | 2021-03-30T03:43:10 | 2021-03-30T03:43:10 | 327,271,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # ---------------------------------------------------------------------------------------
#
# -----------------------
# --------- Set ---------
# -----------------------
#
#
# [1] Set Items Are Enclosed in Curly Braces
# [2] Set Items Are Not Ordered And Not Indexed
# [3] Set Indexing and Slicing Cant Be Done
# [4] Set... | [
"amira071846@feng.bu.edu.eg"
] | amira071846@feng.bu.edu.eg |
88492f33f8de534399893ebb273852326688d51d | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /last_thing/come_new_day_at_own_point/have_problem_of_own_year/different_eye.py | 06693d6b27f56d6d2f8b7d46e4ca6e54ac2525b6 | [] | 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 | 277 | py |
#! /usr/bin/env python
def feel_other_person_for_young_hand(str_arg):
find_work_from_own_group(str_arg)
print('use_person')
def find_work_from_own_group(str_arg):
print(str_arg)
if __name__ == '__main__':
feel_other_person_for_young_hand('different_thing')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
57f40905b587a23a5f6f1a4d5e6fed0da1a38750 | 85c57781b746a141e469843ff7d94577cd4bf2a5 | /src/cfnlint/rules/functions/FindInMapKeys.py | 6b12f775741e2caf583e17463ca2cdc750de9a07 | [
"MIT-0"
] | permissive | genums/cfn-python-lint | ac2ea0d9a7997ed599ba9731127a6cada280f411 | b654d7fc0ed249d0522b8168dc7e1f4170675bc4 | refs/heads/master | 2020-04-18T00:49:03.922092 | 2019-01-21T23:58:02 | 2019-01-21T23:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | """
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 ... | [
"kddejong@amazon.com"
] | kddejong@amazon.com |
8b22a1578d5df4953a56da36b6c4398aa6b003a2 | d2e80a7f2d93e9a38f37e70e12ff564986e76ede | /Python-cookbook-2nd/cb2_15/cb2_15_1_exm_1.py | 1ed468d0c137493859fbf02087e909f3b6df71d7 | [] | no_license | mahavivo/Python | ceff3d173948df241b4a1de5249fd1c82637a765 | 42d2ade2d47917ece0759ad83153baba1119cfa1 | refs/heads/master | 2020-05-21T10:01:31.076383 | 2018-02-04T13:35:07 | 2018-02-04T13:35:07 | 54,322,949 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from xmlrpclib import Server
server = Server("http://www.oreillynet.com/meerkat/xml-rpc/server.php")
class MeerkatQuery(object):
def __init__(self, search, num_items=5, descriptions=0):
self.search = search
self.num_items = num_items
self.descriptions = descriptions
q = MeerkatQuery("[Pp]ython")
pr... | [
"mahavivo@126.com"
] | mahavivo@126.com |
01143cc98e3a99ff472d28f8ec05f40dd2c29abe | 8ca2c5b9673c9bf9a7b6033ffc7b3aea7008ca91 | /src/gdata/docs/data.py | 074fa917159d07e6044a7530ad2fbfa3af2e03d7 | [
"Apache-2.0"
] | permissive | hfalcic/google-gdata | c3a10f0260002c3d8a8d44686572ec2002e076e0 | 56d49a9915ce51590a655ec5f8aeef9f65517787 | refs/heads/master | 2021-01-10T22:01:52.403803 | 2015-02-17T15:12:18 | 2015-02-17T15:12:18 | 24,432,292 | 3 | 1 | null | 2014-11-30T07:26:44 | 2014-09-24T20:53:59 | Python | UTF-8 | Python | false | false | 18,755 | py | #!/usr/bin/env python
#
# Copyright 2011 Google Inc. 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... | [
"harvey.falcic@gmail.com"
] | harvey.falcic@gmail.com |
616900694b0862636d221e3a8773a98780b7afd3 | 493c7d9678a0724736fb9dd7c69580a94099d2b4 | /apps/utils/email_send.py | 36fe5822fba9d09e3c79655bd951767e0024091b | [] | no_license | cuixiaozhao/MxOnline | e253c8c5f5fa81747d8e1ca064ce032e9bd42566 | c96ae16cea9ad966df36e9fcacc902c2303e765c | refs/heads/master | 2020-03-29T18:47:11.158275 | 2018-10-22T14:06:50 | 2018-10-22T14:06:50 | 150,231,387 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Project: MxOnline
# Software: PyCharm
# Time : 2018-09-27 18:41
# File : email_send.py
# Author : 天晴天朗
# Email : tqtl@tqtl.org
from users.models import EmailVerifyRecord
from random import Random
from django.core.mail import send_mail
from MxOnline.settings import ... | [
"19930911cXS"
] | 19930911cXS |
ecfe7678744fa8d9f0e8c01aab200b5c1f9f6562 | 6fb1d9f617ad89c5ac7e4280f07a88bdb8b02aee | /test/mitmproxy/builtins/test_setheaders.py | 41c1836059fa20e5bf5afa43edf5bd300b45f47c | [
"MIT"
] | permissive | tigerqiu712/mitmproxy | e689f5d87e91837a6853b1a1402269ba3be4fcbc | dcfa7027aed5a8d4aa80aff67fc299298659fb1b | refs/heads/master | 2021-01-12T22:38:19.735004 | 2016-08-04T22:39:48 | 2016-08-04T22:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | from .. import tutils, mastertest
from mitmproxy.builtins import setheaders
from mitmproxy.flow import state
from mitmproxy import options
class TestSetHeaders(mastertest.MasterTest):
def mkmaster(self, **opts):
s = state.State()
o = options.Options(**opts)
m = mastertest.RecordingMaster(... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
0e6d89722932fd3a7117104f6e6c4694238e3d04 | eec2e3ed9be7c0bd4765a4bd9f32d2d575ff74ce | /databasetest/databasetest/wsgi.py | eeb1ca793be5c06948a41e91cee09bcd0663ceec | [] | no_license | durmusyasar/CecAcademy-Projects-4--Pretty-Printed-- | a67e5cb4bb8f7b9d64b9cd89dff84df3028eb0be | d5710b1bd79f4125cc6f246371cb848f23be0c74 | refs/heads/master | 2021-06-18T11:30:18.365631 | 2019-09-04T12:50:03 | 2019-09-04T12:50:03 | 173,425,664 | 0 | 0 | null | 2021-06-10T21:13:44 | 2019-03-02T08:57:58 | Python | UTF-8 | Python | false | false | 401 | py | """
WSGI config for databasetest project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"durmusyasar13@gmail.com"
] | durmusyasar13@gmail.com |
6db9bb5b24703aab877180c00f818cc1d8c49db5 | 8d13818c4aa7e32df594b3859344812669fd26f1 | /school_navigator/settings/deploy.py | 7d1186222c366849ebeca052151a059af60ef6a0 | [] | no_license | rosalsm/school-navigator | ee4ea47d9845900b22836b93bdc82862a8e53741 | a41cb0721da3f7c7cd43ae76f162db51c764d8ea | refs/heads/master | 2020-12-07T03:50:24.615270 | 2016-03-09T02:37:12 | 2016-03-09T02:37:12 | 54,512,859 | 0 | 0 | null | 2016-03-22T22:25:43 | 2016-03-22T22:25:42 | null | UTF-8 | Python | false | false | 1,893 | py | # Settings for live deployed environments: vagrant, staging, production, etc
from .base import * # noqa
os.environ.setdefault('CACHE_HOST', '127.0.0.1:11211')
os.environ.setdefault('BROKER_HOST', '127.0.0.1:5672')
ENVIRONMENT = os.environ['ENVIRONMENT']
DEBUG = False
DATABASES['default']['NAME'] = 'school_navigato... | [
"copelco@caktusgroup.com"
] | copelco@caktusgroup.com |
d916feda1d6f1e80da823656bd4c71d6f4dd5a02 | d0d1e07c984651f96bd9386d546c85c0341e46b2 | /timedata/control/envelope/segments.py | 16160ce32aeb7e7df7a512c946d3aac288a9636c | [
"MIT"
] | permissive | timedata-org/timedata | 61cde905b1fe9eb60ac83ecbf5a5a2114793c45d | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | refs/heads/master | 2020-04-11T12:03:57.962646 | 2019-06-09T10:05:16 | 2019-06-09T10:05:52 | 51,217,217 | 5 | 3 | null | 2016-09-18T16:20:43 | 2016-02-06T19:13:43 | C++ | UTF-8 | Python | false | false | 1,116 | py | class Segments(list):
"""
A list of [level, time] pairs.
"""
def __init__(self, segments=(), length=None):
super().__init__()
self.base_value = 0
for segment in segments:
try:
level, time = segment
except TypeError:
level, ... | [
"tom@swirly.com"
] | tom@swirly.com |
474c9f5e02f118f0f06da4331b7c2bd065301b36 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /NyTjy8nmHj9bmxMTC_14.py | e3c771df7a753dd5a3ce288cd92845294dcedb72 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py |
import math
from decimal import Decimal
def vol_pizza(radius, height):
solution = radius*radius*height*math.pi
decSol = Decimal(solution)
return round(decSol)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dd2c7c4d2446ea1919e10264fc0438137e66880e | f2d1362eea91a090cdec4f232ef168f0837a5f5d | /tests/bench/ssh-roundtrip.py | 8745505d2470f6f5065b38cb82c7fa585e3ac501 | [
"BSD-3-Clause"
] | permissive | marc1006/mitogen | 2296e7d7618d130efcd42d355ace16d536237364 | 2ed8395d6ce2adc6a252b68c310646707348f3a1 | refs/heads/master | 2022-05-19T19:38:30.053265 | 2019-08-08T16:50:40 | 2019-08-08T16:54:33 | 201,296,264 | 0 | 0 | null | 2019-08-08T16:25:20 | 2019-08-08T16:25:20 | null | UTF-8 | Python | false | false | 597 | py | """
Measure latency of SSH RPC.
"""
import sys
import time
import mitogen
import mitogen.utils
import ansible_mitogen.affinity
mitogen.utils.setup_gil()
ansible_mitogen.affinity.policy.assign_worker()
try:
xrange
except NameError:
xrange = range
def do_nothing():
pass
@mitogen.main()
def main(router):... | [
"dw@botanicus.net"
] | dw@botanicus.net |
dbddee33c2e3dad0c8f9955deb3e40d75449a052 | cebf2e5276e6d064d0ec86beaf1129fe0d0fd582 | /days081-090/day083/project/tic_tac_toe.py | 04fa7c9806b6d01e22dbdb0233b6d24bcf3ad8d4 | [] | no_license | SheikhFahimFayasalSowrav/100days | 532a71c5c790bc28b9fd93c936126a082bc415f5 | 0af9f2f16044facc0ee6bce96ae5e1b5f88977bc | refs/heads/master | 2023-06-14T06:18:44.109685 | 2021-07-08T16:58:13 | 2021-07-08T16:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,504 | py | import random
EMPTY = '_'
CROSS = 'X️'
DOT = 'O'
class TicTacToe:
POS_DICT = {
1: (0, 0),
2: (0, 1),
3: (0, 2),
4: (1, 0),
5: (1, 1),
6: (1, 2),
7: (2, 0),
8: (2, 1),
9: (2, 2),
}
def __init__(self, players):
self.board = [[... | [
"pullynnhah@icloud.com"
] | pullynnhah@icloud.com |
8511a92526362590653b4d46e0952834d47a5b81 | 2871a5c3d1e885ee72332dbd8ff2c015dbcb1200 | /SteReFo/stereonet/utils.py | 65da3b85dd3f3fd2addb467268b0901a7c58105a | [
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/noah-research | 297476299ad040552e44656541858145de72d141 | 82c49c36b76987a46dec8479793f7cf0150839c6 | refs/heads/master | 2023-08-16T19:29:25.439701 | 2023-08-14T03:11:49 | 2023-08-14T03:11:49 | 272,853,727 | 816 | 171 | null | 2023-09-12T01:28:36 | 2020-06-17T01:53:20 | Python | UTF-8 | Python | false | false | 4,760 | py | #Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#This program is free software; you can redistribute it and/or modify it under the terms of the BSD 0-Clause License.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
dfae7ec2e5295d75dd18efa6da46fbd208bce081 | b8c4ef9ccab22717ab97ab2fb100614d962a5820 | /src/main/python/com/skalicky/python/interviewpuzzles/merge_multiple_sorted_linked_lists.py | 1ac1c3dc9ac3a02f3b3c233c860d355c4f9dda3f | [] | no_license | Sandeep8447/interview_puzzles | 1d6c8e05f106c8d5c4c412a9f304cb118fcc90f4 | a3c1158fe70ed239f8548ace8d1443a431b644c8 | refs/heads/master | 2023-09-02T21:39:32.747747 | 2021-10-30T11:56:57 | 2021-10-30T11:56:57 | 422,867,683 | 0 | 0 | null | 2021-10-30T11:56:58 | 2021-10-30T11:55:17 | null | UTF-8 | Python | false | false | 3,633 | py | # Task:
#
# You are given an array of k sorted singly linked lists. Merge the linked lists into a single sorted linked list and
# return it.
#
# Here's your starting point:
#
# class Node(object):
# def __init__(self, val, next=None):
# self.val = val
# self.next = next
#
# def __str__(self):
# c = self... | [
"skalicky.tomas@gmail.com"
] | skalicky.tomas@gmail.com |
06a1015299b1742df49a3baa3691aa1c0bcdbb5f | 71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c | /.history/第4章/lian1_20200608191011.py | 322b31fe7018eb95ef28b4b5924a2532c3a1b951 | [
"MIT"
] | permissive | dltech-xyz/Alg_Py_Xiangjie | 03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3 | 877c0f8c75bf44ef524f858a582922e9ca39bbde | refs/heads/master | 2022-10-15T02:30:21.696610 | 2020-06-10T02:35:36 | 2020-06-10T02:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | #!/usr/bin/env python
# coding=utf-8
'''
@version:
@Author: steven
@Date: 2020-05-27 22:20:22
@LastEditors: steven
@LastEditTime: 2020-06-08 19:10:11
@Description:
'''
class Node(object):
# 在python 3 中已经默认就帮你加载了object了(即便你没有写上object)。https://my.oschina.net/zhengtong0898/blog/636468
def __init__(self, data, pne... | [
"a867907127@gmail.com"
] | a867907127@gmail.com |
bf726f5207709908e58489b515b521a76322c265 | a5a33e7446e9af18be7861f8e5b44e33fcfed9e1 | /users/admin.py | 8d272c18906bd46236e726c597ce2eea308721c4 | [] | no_license | akabhi5/url-shortener-django-api | 75afc14f167310a7a22429650a504da820627924 | 33a1fd3f52ce95b8d68ba706ce91cdfd95f95e53 | refs/heads/main | 2023-09-02T19:21:40.524613 | 2021-11-16T16:47:12 | 2021-11-16T16:47:12 | 380,212,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # users/admin.py
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group
from django.contrib import admin
from users.forms import UserChangeForm, UserCreationForm
from users.models import User
class UserAdmin(BaseUserAdmin):
form = UserChangeForm
add_form ... | [
"abhishekk580@gmail.com"
] | abhishekk580@gmail.com |
e6172fd041838054a0760cdc1ac341bcfcf3bb15 | bd1b1fda138e6687dadc57317c3e312bc8872600 | /mycode/leetcode2017/Hash/359 Logger Rate Limiter.py | af15b46efce80851b00ad6e66769fec1c7c88d72 | [] | no_license | dundunmao/lint_leet | fc185038f57e0c5cbb82a74cebd4fe00422416cb | 5788bd7b154649d2f787bbc4feb717ff2f4b4c59 | refs/heads/master | 2020-11-30T04:56:25.553327 | 2017-10-22T07:11:01 | 2017-10-22T07:11:01 | 96,705,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # -*- encoding: utf-8 -*-
# Logger Rate Limiter 记录速率限制器
# 这道题让我们设计一个记录系统每次接受信息并保存时间戳,然后让我们打印出该消息,前提是最近10秒内没有打印出这个消息
# Example:
# Logger logger = new Logger();
#
# // logging string "foo" at timestamp 1
# logger.shouldPrintMessage(1, "foo"); returns true;
#
# // logging string "bar" at timestamp 2
# logger.shouldPrintMe... | [
"dundunmao@gmail.com"
] | dundunmao@gmail.com |
0f87356dc8737967c17be6fb9a93469fbc84b1dc | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/gslb/gslb_geoloc_rdt_oper.py | a354a4599bd1c8491c401a33f89f34e99d66ee21 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 3,000 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class GeolocRdtList(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param rdt: {"type": "number", "format": "number"}
:param site_name: {"type": "string", "format": "string"}
:param gl_name: {"type": "string", ... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
d21833248f0bdec9ce0f4b88c983939bacd74938 | 4f1fa59cc81dbaabf41c9e95108b643d00faceb9 | /ros/actuation/stage/nodes/StageDevice.py | e2a4e44a9b722baa74204c36c0ee7ad2f637ad59 | [] | no_license | florisvb/Flyatar | 7f31bb27108f6da785e67a2b92f56e7bc0beced0 | dfaf30bcb77d6c95cab67ad280615722a11814c3 | refs/heads/master | 2021-01-01T15:44:54.827787 | 2010-06-24T01:24:06 | 2010-06-24T01:24:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,686 | py | #!/usr/bin/env python
#
# StageDevice.py
#
# Control interface for at90usb based xyfly stage board.
# Provides python module and a command line utility.
#
# Note, need to set permissions correctly to get device to respond to nonroot
# users. This required adding and rules file to udev/rules.d and adding a
# group.
#
# ... | [
"peterpolidoro@gmail.com"
] | peterpolidoro@gmail.com |
e986cdd445a1e19e8935ecb7c97f891c9b9a8eb9 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network5115_1.py | 40a4c9b1f1130ac0aadaafa4170cd5a2f758f213 | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,706 | py | species(
label = 'C=[C]C(O)C[C]=O(14295)',
structure = SMILES('C=[C]C(O)C[C]=O'),
E0 = (101.894,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3615,1277.5,1000,2950,3100,1380,975,1025,1650,1855,455,950,2750,2850,1437.5,1250,1305,750,350,1380,1390,370,380,2900,435,1685,370,243.441,243.605]... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
dea37d8cb8f20edbd9efe4496eee91c1a0e07810 | d37f798101bc6cc795b3ff7e5f9444ff30b4cd83 | /kubernetes/client/models/v1alpha2_pod_scheduling_context_status.py | 6c66c9464423da9126cd1786a1a8d2b186fe4809 | [
"Apache-2.0"
] | permissive | MorningSong/python | bdd8b9d60b7c2185457fc1bbbc64d098f9682981 | ae7b5ddd219fe09b6ed0be715dcca3377a029584 | refs/heads/master | 2023-08-30T14:41:41.582335 | 2023-08-23T16:15:28 | 2023-08-23T16:15:28 | 139,396,247 | 0 | 0 | Apache-2.0 | 2023-09-14T00:11:24 | 2018-07-02T05:47:43 | Python | UTF-8 | Python | false | false | 4,167 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.27
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"yliao@google.com"
] | yliao@google.com |
8d44940c93f41db2928de8cf2a87441142228f87 | 2970291ff52e98915abb47848aeb71517ed1fbab | /Calendar/migrations/0022_auto_20200405_1326.py | bd6f6fb6f31742fecf4543426da49ea7cd50f696 | [] | no_license | dannyswolf/MLShop_Django_Service_boook | dd33f4bb0352836897448bc45bbb09b7c49252c2 | 9ac5f85468487a53465e244ba31b9bc968300783 | refs/heads/master | 2023-07-15T15:06:53.298042 | 2021-08-29T11:49:42 | 2021-08-29T11:49:42 | 255,998,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 3.0.4 on 2020-04-05 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Calendar', '0021_auto_20200405_1321'),
]
operations = [
migrations.AlterField(
model_name='calendar',
name='Σημειώσε... | [
"ntinisiordanis@gmail.com"
] | ntinisiordanis@gmail.com |
3fd7a3e0404f2751c89dc996684f5666f37c08be | b29acb2e230b3cf2f8be070850c34ed5d62dc80c | /Python/YPS/Rensyu/02/Sample3.py | e3bfe084639a71fc6f70ae86c31e8c018820e106 | [] | no_license | MasatakaShibataSS/lesson | be6e3557c52c6157b303be268822cad613a7e0f7 | 4f3f81ba0161b820410e2a481b63a999d0d4338c | refs/heads/master | 2020-06-17T13:42:08.383167 | 2019-11-11T07:23:14 | 2019-11-11T07:23:14 | 195,940,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | print(1,"\t",2,"\t",3,"\t",4,"\t",5,"\t",6)
| [
"masataka.shibata.ss@gmail.com"
] | masataka.shibata.ss@gmail.com |
a2dc7d962e925ae61393016853778208544ae2cf | 361459069b1b2eb5adb180d1f61241742d2fbcd8 | /chapter19/web_connect_test.py | fce8848c7c0dfe21207a76daa684fa204abaff31 | [] | no_license | tangkaiyang/python3_laioxuefeng | 1704e72163aa55ce177e5b7a88a3e7501b415ceb | 02400db01f144417ef202e6c135561c304cacb3a | refs/heads/master | 2020-04-28T15:13:17.163004 | 2019-08-06T07:53:18 | 2019-08-06T07:53:18 | 175,364,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # -*- coding:UTF-8 -*-
# 用asyncio的异步网络连接来获取sina,sohu和163的网站首页:
import asyncio
@asyncio.coroutine
def wget(host):
print('wget %s...' % host)
connect = asyncio.open_connection(host, 80)
reader, writer = yield from connect
header = 'GET / HTTP/1.0\r\nHost: %s\r\n\r\n' % host
writer.write(header.enc... | [
"945541696@qq.com"
] | 945541696@qq.com |
e45eaf86cbf8d480bd4e852ab5145b3d56778d7c | 9ed7bd97e2140c69091aef63a8de1991e3bc7f3d | /递归/简单递归例子.py | 8eb57c77374ff9d8e0a81030c185d1bed6d231e9 | [] | no_license | EruDev/Learn_Algorithms | d8a422d02f000ba428bc05f80cdf40860504946a | 71c98599d84a33727fc434826bab800311053d8e | refs/heads/master | 2020-03-15T12:42:22.625351 | 2018-07-30T02:30:04 | 2018-07-30T02:30:04 | 132,150,091 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | # coding: utf-8
def countdown(i):
if i < 0:
return
else:
countdown(i - 1)
print(i)
if __name__ == '__main__':
countdown(100) | [
"1027926875@qq.com"
] | 1027926875@qq.com |
5ebb0f015b2b66dbb1ada9d1c3bad2a6bbb95c6b | 64660f7d708569135777d3ae429feed513f5d87f | /notebooks/_solutions/case1_bike_count1.py | 9bc481413fb41dc095a79972c617ecce99abad64 | [
"BSD-3-Clause"
] | permissive | jorisvandenbossche/DS-python-data-analysis | ea8fd46e9160d00be8550aa8d87ea33146161b54 | be5d5030e891590990f9044ac66b116799d83fe5 | refs/heads/main | 2022-12-13T03:53:52.365280 | 2022-12-04T18:54:39 | 2022-12-04T18:54:39 | 73,628,771 | 87 | 67 | BSD-3-Clause | 2022-12-12T15:00:28 | 2016-11-13T16:39:51 | Jupyter Notebook | UTF-8 | Python | false | false | 59 | py | df = pd.read_csv("data/fietstellingencoupure.csv", sep=';') | [
"noreply@github.com"
] | jorisvandenbossche.noreply@github.com |
32e507dd74d087d7274fd08b3587e4d135fa1fbe | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_tsp_account1.py | 4676fce503d1768ca6306fed2f92039a0e1746ba | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
9cc8e243ecb51f23f2139ee75bf881a59f3830bf | c557bfe571bb82b0d3296125325d55a4ebdb4273 | /rcsslurmfollowup/urls.py | e3b6e75136207f0ce09754c72b176130667e673f | [] | no_license | scottcoughlin2014/rcsslurmfollowup | b620675e44fb418997d59b732ecd2a5654ef15df | 1478ff6c103395f1a3dbd6dec8414f46b948ac5d | refs/heads/master | 2023-08-18T18:03:58.635212 | 2021-10-14T13:45:31 | 2021-10-14T13:45:31 | 290,794,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | """rcsslurmfollowup URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"scottcoughlin2014@u.northwestern.edu"
] | scottcoughlin2014@u.northwestern.edu |
5cf7b38d124d0c0e7bf9b0f518fef34621713742 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /Tensorflow/CNN/模型的保存与恢复.py | 5afbe1506eead1e2b7385c4097be42da24c579d7 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import tensorflow as tf
## 模型的保存
save_path ='...'
saver = tf.train.Saver()
sess = tf.Session()
saver.save(sess,save_path)
## 模型的恢复
save_path = ".."
saver = tf.train.Saver()
sess= tf.Session()
saver.restore(sess,save_path)
## 多次模型的保存和恢复
save_path = ".."
saver = tf.train.Saver()
sess= tf.Session()
epoch = 5
n =None
if e... | [
"864773190@qq.com"
] | 864773190@qq.com |
b9fc0aa48976be5a27682e1ba77b1e50abc59b40 | be3c759bd915887a384d1ef437ebf7277c75bd06 | /DynamicProgramming/BestTimeToBuyAndSellStock.py | dbf1090d26ca00a049bf614f03d64d5d63303251 | [] | no_license | yistar-traitor/LeetCode | c24411763d541b6eaf9ccc344c3fd24f9a00e633 | 0dd48b990f8bd0874630b1860361c6b3b2c801f6 | refs/heads/master | 2020-09-28T20:46:45.016872 | 2019-12-18T02:25:34 | 2019-12-18T02:25:34 | 226,861,515 | 0 | 0 | null | 2019-12-18T02:25:36 | 2019-12-09T12:04:01 | null | UTF-8 | Python | false | false | 2,292 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/8/24 0:03
# @Author : tc
# @File : BestTimeToBuyAndSellStock.py
"""
给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
如果你最多只允许完成一笔交易(即买入和卖出一支股票),设计一个算法来计算你所能获取的最大利润。
注意你不能在买入股票前卖出股票
Input1:[7,1,5,3,6,4]
Output1:5
解释: 在第 2 天(股票价格 = 1)的时候买入,在第 5 天(股票价格 = 6)的时候卖出,最大利润 = ... | [
"2448424636@qq.com"
] | 2448424636@qq.com |
93b9d5e73f675c4943a5c8250169cb72213f4ca8 | 08acec95bd1dc302633fadf7b47cd8ba3b749ff3 | /day-2018-04-02/myproject/venv/lib/python2.7/site-packages/ZEO/tests/ZEO4/runzeo.py | f8cb989b0151a6207e0113ed2de2da821bb8c934 | [] | no_license | WeAreHus/StudyRecord | 74a312103ad2c037de23534160fa42d6a68ad174 | 047b7d9dcbee7c01ad2e8b888b160e66dfa9012d | refs/heads/master | 2022-12-16T14:47:15.984939 | 2019-04-29T15:16:15 | 2019-04-29T15:16:15 | 127,758,387 | 2 | 1 | null | 2022-11-22T02:50:30 | 2018-04-02T13:15:07 | Python | UTF-8 | Python | false | false | 14,056 | py | ##############################################################################
#
# Copyright (c) 2001, 2002, 2003 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution... | [
"1131360171@qq.com"
] | 1131360171@qq.com |
2eb85d7c15450d4573568b284adfb1ab5a709c2d | d389c87cd0c160a0efad8f6eb1eefc221af35147 | /api/models.py | 9368acaeaef04b3cffd21f8d4ab6380b1ac3c700 | [] | no_license | shotaro0726/drf-vue1 | a9bced0c937b03fbd55f5f7e90c945bfadef560f | be68ee78d786029b1f7d3da1490312d6b5c096b0 | refs/heads/master | 2022-09-03T07:49:23.861354 | 2020-05-24T12:05:31 | 2020-05-24T12:05:31 | 265,808,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | from django.db import models
from user.models import User
from markdownx.models import MarkdownxField
from markdownx.utils import markdown
class Category(models.Model):
name = models.CharField(max_length=25, unique=True)
post_num = models.IntegerField(default=0, null=False)
description = models.TextField(b... | [
"shoutaro0726@gmail.com"
] | shoutaro0726@gmail.com |
a55e9c23dd7f6b0f13a8454e381e54949fe5a30a | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/qcut_hsp-s_025_pwde_mlpc_hs.py | 01b83466a393659ca5738a2724501fe600601146 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.neural_network import MLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders impo... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
fd4ef18957b6273d96e7cee67e6f983f534ba7f1 | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/kivy/uix/filechooser.py | faf5d9a5ad68a96fd54d972e29097a3321a29a41 | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36,467 | py | '''
FileChooser
===========
The FileChooser module provides various classes for describing, displaying and
browsing file systems.
Simple widgets
--------------
There are two ready-to-use widgets that provide views of the file system. Each
of these present the files and folders in a different style.
The :class:`File... | [
"="
] | = |
0d7c295a58bded7d8f0803c7bd0825307c7050e4 | d29f2e229cdabaee5b5ee999068dd5cdd4868386 | /core/plugins/phpunserializechain/dataflowgenerate.py | 81d6bc97c1902b30ac97f8f68cafcb4a79c16d11 | [
"MIT"
] | permissive | yzhbeihai/Kunlun-M | af066cbb9a23bff9e5a9645666918fa23cb00727 | 34765ff927154e981f0fd1f7c159aa1cbc280746 | refs/heads/master | 2023-05-15T05:13:48.103789 | 2021-05-13T07:21:24 | 2021-05-13T07:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,488 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: LoRexxar
@contact: lorexxar@gmail.com
@file: dataflowgenerate.py
@time: 2020/11/11 14:43
@desc:
'''
import re
import traceback
from core.pretreatment import ast_object
from utils.file import Directory
from utils.utils import ParseArgs
from utils.log import logger... | [
"lorexxar@gmail.com"
] | lorexxar@gmail.com |
8c65456eca2603036d5dbbcba1658c39a7b9998b | babaa6284820ae5ede8e0bb257cb802913ebe976 | /ML01-Python_Introduction/05_boolean_true_false.py | d92aa8f2e5de06ea1f65f5df33e7d8a3b9ac8b6b | [] | no_license | kevinelong/ML | c6a69be96202248214ed3c0db5d2514be8559411 | 93f430e31f1470cf1ac3ab6ee8ab5d701b3fc6e7 | refs/heads/master | 2023-05-02T12:08:32.693948 | 2021-05-21T19:21:28 | 2021-05-21T19:21:28 | 369,008,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | isCool = True
isTooCool = False
print(isCool)
isGreater: bool = 3 > 2
isSame: bool = 2 + 2 == 4
print(isGreater)
print(isSame)
| [
"kevinelong@gmail.com"
] | kevinelong@gmail.com |
a0a6c50f47ed536930fa9134d3ec75092e91ac68 | 6b791247919f7de90c8402abcca64b32edd7a29b | /lib/coginvasion/hood/DGSafeZoneLoader.py | 424ee7563b7c2f46dbeca8897532f40739267a72 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.hood.DGSafeZoneLoader
from lib.coginvasion.holiday.HolidayManager import HolidayType
import SafeZoneLoader, DGPlayground... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
55e4874425eb3724a4f27a4eb14c1cdd41077c73 | 0b953c73458679beeef3b95f366601c834cff9b4 | /Code Kata/player/string length without strlen.py | ae4291f56ac0bfc9852bf2406e6ee385ea7fcba1 | [] | no_license | Sravaniram/Python-Programming | 41531de40e547f0f461e77b88e4c0d562faa041c | f6f2a4e3a6274ecab2795062af8899c2a06c9dc1 | refs/heads/master | 2020-04-11T12:49:18.677561 | 2018-06-04T18:04:13 | 2018-06-04T18:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | a=raw_input()
count=0
for x in a:
count=count+1
print count
| [
"noreply@github.com"
] | Sravaniram.noreply@github.com |
406903fe9df4ba09c0d193fe84efd2cd76bc4e47 | 4c9e3a963aef1d8f0cea9edc35e3c5ffc64a87d1 | /tornado-frame/commands/sqlload.py | 19506d19d86fd44141c5870c37f821fb4d09ba89 | [] | no_license | hackrole/daily-program | d6820d532a9ebb8132676e58da8e2382bd459b8f | cff87a09f03ce5bd9e186b0302bead6cd8484ab5 | refs/heads/master | 2021-01-21T13:11:55.287908 | 2015-04-21T14:34:36 | 2015-04-21T14:34:36 | 17,940,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/env python
# encoding: utf-8
import sys
import cPickle as pickle
from os import path
def load_database(db_session, fixture):
"""
load the database data for the fixtures,
the fixture is a file path
"""
# TODO: the fixture file path controls
# load the fixture
datas = pickle.loa... | [
"daipeng123456@gmail.com"
] | daipeng123456@gmail.com |
ab1003d7efdeb5fc332d4f1e755524aee27b2773 | 8a49aafeea46ded564dd2482350f82b4334436ed | /dataloaders/path.py | 9814116a02c91cdb947275fff256967754e3365b | [] | no_license | yifuxiong/Deeplab_pytorch | 1f96cd69a5597edc2021c24a5b88e462f67cb738 | 530809110156625945dfabd9b6dec0b2c0190415 | refs/heads/master | 2022-06-24T19:55:28.687829 | 2019-02-19T08:22:09 | 2019-02-19T08:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
"""
@Time : 2019/1/30 19:30
@Author : Wang Xin
@Email : wangxin_buaa@163.com
"""
class Path(object):
@staticmethod
def db_root_dir(database):
if database == 'pascal':
return '/home/data/model/wangxin/VOCdevkit/VOC2012/' # folder that contains VOCdevkit/.
... | [
"wangxin_buaa@163.com"
] | wangxin_buaa@163.com |
31be3bffebdfd775abbd2a5ef8f4ee6bdc9cff3c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc010/B/4887036.py | ba13d3e730ec5dd09e19a0574b60ad637de85cd5 | [] | 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 | 270 | py | N = int(input())
maisu = list(map(int, input().split()))
ans = 0
for i in maisu:
while (i % 3 == 2 or i % 2 == 0):
if (i % 3 == 2):
ans += 1
i -= 1
if (i % 2 == 0):
ans += 1
i -= 1
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
7dc7064cb13f7cbf99bae8290d431be03989ad48 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/321/76866/submittedfiles/testes.py | e60134f230e927dc05748590d538982d937d6895 | [] | 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 | 131 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
#ENTRADA
m= float(input('Digite um valor em metros: '))
c= (m*100)
print('%.1f cm' % c) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d31f88ef07572a53d56f98887ef7cefbc063f60a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/flinder.py | ed7b3b28a911e187cd355dfab60c5a0a84c0618c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 201 | py | ii = [('LyelCPG2.py', 1), ('FitzRNS3.py', 3), ('KiddJAE.py', 4), ('BuckWGM.py', 2), ('FitzRNS4.py', 2), ('CoolWHM3.py', 46), ('FitzRNS.py', 3), ('ClarGE3.py', 6), ('DibdTRL.py', 1), ('FitzRNS2.py', 4)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ed9770b7effbdb44aa1fcb0abbaef7af6a08b6c7 | 47b40cce73500801c7216d16c3bf8629d8305e8c | /tools/tensorpack/examples/ResNet/svhn-resnet.py | b22bd115b73ddf6284d6c15c57c06a6e8ad71a16 | [
"Apache-2.0"
] | permissive | laceyg/ternarynet | a19d402a8bf5e54c477f4dd64273b899664a8f17 | b17744c2aba3aba7e7e72decb3b8a02792d33b54 | refs/heads/master | 2020-02-26T14:15:37.507028 | 2017-03-06T18:05:22 | 2017-03-06T18:05:22 | 83,691,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: svhn-resnet.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import tensorflow as tf
import argparse
import numpy as np
import os
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from tensorpack.tfutils.summary import *
"""
ResNet-110 for S... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
e26197127e92a2aa7241dde7e97a9c166231ce11 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnlysisPDP1P2_20210712095445.PY | 4bfa50547de6a6e34d667ac6143127baea45a36d | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,345 | py | # author: Bao Li #
# Georgia Institute of Technology #
import Sizing_Method.ConstrainsAnalysis.ConstrainsAnalysis as ca
import Sizing_Method.ConstrainsAnalysis.ConstrainsAnalysisPD as ca_pd
import Sizing_Method.Aerodynamics.Aerodynamics as ad
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_... | [
"libao@gatech.edu"
] | libao@gatech.edu |
54c140dea6736faad18cb4b357753ab8fe9c78d5 | 0cba5529e387ba0f077b4e8ddeb96f914004f5df | /misc/crawl/main.py | f61ef4cffc7591cf3323b98f28e84f45b993d08d | [
"MIT"
] | permissive | AsyrafAzlan/Malaya | dc78398ee6880578f40c5646a48882a5913217ae | 3d5166173cf74881f7a56fffaaf391813c55d4f1 | refs/heads/master | 2021-05-21T22:47:41.863857 | 2020-04-03T15:00:21 | 2020-04-03T15:00:21 | 252,841,526 | 1 | 0 | MIT | 2020-04-03T21:04:44 | 2020-04-03T21:04:44 | null | UTF-8 | Python | false | false | 1,449 | py | import sys
import argparse
def check_positive(value):
ivalue = int(value)
if ivalue <= 0:
raise argparse.ArgumentTypeError(
'%s is an invalid positive int value' % value
)
return ivalue
ap = argparse.ArgumentParser()
ap.add_argument('-i', '--issue', required = True, help = 'i... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
d9ff74cab1b9b382b1a78451ee982e6b7ca7fcf1 | f0316e656767cf505b32c83eef4df13bb9f6b60c | /LeetCode/Python/Easy/1603_design_parking_system.py | 34b0d5713382c201f7ab08da8a4483f7bda44d32 | [] | no_license | AkshdeepSharma/Classroom | 70ec46b35fab5fc4a9d2eac430659d7dafba93da | 4e55799466c101c736de6c7e07d716ff147deb83 | refs/heads/master | 2022-06-13T18:14:03.236503 | 2022-05-17T20:16:28 | 2022-05-17T20:16:28 | 94,828,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | class ParkingSystem:
def __init__(self, big: int, medium: int, small: int):
self.big = big
self.medium = medium
self.small = small
def addCar(self, carType: int) -> bool:
if carType == 1 and self.big > 0:
self.big -= 1
return True
if carType == 2... | [
"akshdeep.sharma1@gmail.com"
] | akshdeep.sharma1@gmail.com |
bc85782c3aeb9a7be067f9ec854daf239eaefaa4 | 6f1a0823a28955f0f44fc69862ebd3ab873d79a3 | /choices/admin.py | f9fccb307608bf20ae3e5cc14e4fe20e1799710e | [] | no_license | tommydangerous/spadetree | 69c437c7ea543a2a3906fc60ff223fa1ac16a1d8 | 04a7fcecf2c79db02c1cc2f9de733cf54009836a | refs/heads/master | 2020-05-03T21:43:14.509381 | 2014-10-07T04:27:59 | 2014-10-07T04:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | from django.contrib import admin
from choices.models import Choice, ChoiceNote
class ChoiceAdmin(admin.ModelAdmin):
list_display = ('pk', 'tutor', 'tutee', 'interest', 'created', 'accepted',
'denied', 'completed', 'date_completed', 'content', 'tutor_viewed',
'tutee_viewed', 'day', 'hou... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
c0e3a391ef5b8736bfaa7b0ae24781444cd7257e | 563274d0bfb720b2d8c4dfe55ce0352928e0fa66 | /TestProject/src/intellect/examples/rulesfest/BagOfWool.py | c81e60f5a0de75ca5d9b3d74d5a8de8012a8f7bf | [] | no_license | wangzhengbo1204/Python | 30488455637ad139abc2f173a0a595ecaf28bcdc | 63f7488d9df9caf1abec2cab7c59cf5d6358b4d0 | refs/heads/master | 2020-05-19T19:48:27.092764 | 2013-05-11T06:49:41 | 2013-05-11T06:49:41 | 6,544,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | """
Copyright (c) 2011, Michael Joseph Walsh.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | [
"wangzhengbo1204@gmail.com"
] | wangzhengbo1204@gmail.com |
cd6f6b1ab275a1d882c55fb188d3f83c804fcc16 | dd25972910fcf2e636034130511f3e90e72279ab | /tests/test_utils.py | a68203afe83de59ce51e5ff9509f8c42cf3f7963 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | juju-solutions/jujubigdata | 730919f25c86e0bca50c4d6e8fc31c08d56c68c8 | c7a7d68feb6fd5a7661835ac2bcf178a39f3c7f2 | refs/heads/master | 2021-05-23T06:19:50.498529 | 2016-05-25T20:50:36 | 2016-05-25T20:50:36 | 35,439,404 | 2 | 6 | Apache-2.0 | 2021-03-25T21:38:42 | 2015-05-11T17:37:55 | Python | UTF-8 | Python | false | false | 4,155 | py | #!/usr/bin/env python
# Copyright 2014-2015 Canonical Limited.
#
# This file is part of jujubigdata.
#
# jujubigdata is free software: you can redistribute it and/or modify
# it under the terms of the Apache License version 2.0.
#
# jujubigdata is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRAN... | [
"johnsca@gmail.com"
] | johnsca@gmail.com |
b2a162d9f9f162eb8a362eaa7d7226b8ba65b540 | 3ff4da2c4fbbf5310695d96bcf7f06a3fdf6d9f5 | /Python/Edx_Course/Analytics in Python/Excercises/W4_Practice_2_dictionary_ingredients_preparation.py | b01b0498f77363b81daca9df1fba6b6bb27ef2a8 | [] | no_license | ivanromanv/manuales | cab14389161cbd3fb6a5d4e2d4e4851f8d1cda16 | a296beb5052712ae3f03a3b492003bfc53d5cbba | refs/heads/master | 2018-10-01T01:01:50.166637 | 2018-07-22T18:55:50 | 2018-07-22T18:55:50 | 106,485,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # returns a dictionary containing the ingredients and preparation instructions
#
#
def get_recipe_info(recipe_link):
recipe_dict = dict()
import requests
from bs4 import BeautifulSoup
try:
response = requests.get(recipe_link)
if not response.status_code == 200:
return recipe... | [
"“ivanromanv@gmail”"
] | “ivanromanv@gmail” |
c38d930610a88fbfe78343ed1d9797eee7ac3150 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/14165002.py | 19933c4814bf463ca3508a791d21a537372aaacb | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/14165002.py generated: Fri, 27 Mar 2015 15:47:59
#
# Event Type: 14165002
#
# ASCII decay Descriptor: [B_c+ -> ([B_s0]nos -> (D_s- -> K+ K- pi-) pi+, [B_s0]os -> (D_s+ -> K+ K- pi+) pi-) pi+]cc
#
from Configurables import Generation
Generation().EventType... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
c8602c38456724f4cf0ecdb69a254026ec4a2afc | 2855f26e603ec7bf5b18876b54b75ee4577bdf2c | /bankrecon/migrations/0002_reconciliation_marker.py | bc25443b472d1f0c6d6130e214e29d0aa13b7ae3 | [] | no_license | zkenstein/ppob_multipay_v2 | e8ea789c395c6fa5b83ba56fbaf5ea08a2a77a14 | 85296f925acf3e94cc371637805d454581391f6e | refs/heads/master | 2022-03-04T13:53:30.893380 | 2019-11-16T22:49:50 | 2019-11-16T22:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.5 on 2019-04-16 16:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bankrecon', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='reconciliation',
name='marker',
... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
20188e1c1daf1aba8413510e021265f023defa6c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ke4FSMdG2XYxbGQny_24.py | 6930f8ab144bbed9488241d9059899adbcd6d6d4 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py |
def even_odd_transform(lst, n):
for i in range(len(lst)):
for j in range(n):
if lst[i] %2==0 :
lst[i]-= 2
else :
lst[i]+= 2
return lst
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
521c0123282061359a18e1ed2fb872d8782cea5d | 2dc12207547c3438421905aee1c506d427e0cbf1 | /ch17-01-变量作用域.py | 292464fb81bc78836df82ae8823bc6f238000a73 | [] | no_license | xmduhan/reading_notes__learning_python | 8b61ea30be3fb50e1ad49764fcfc8bee8189f48e | 3526f6b07cb2be799b2baddd7a2e3afef27e7b81 | refs/heads/master | 2020-05-17T16:26:23.624423 | 2014-06-15T04:43:38 | 2014-06-15T04:43:38 | 16,638,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
变量作用域
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#%% 可以是直接访问global数据
x = 1
def fun():
print(x) # 读取一个值
fun()
#%% 可以是直接访问global数据
x = 1
def fun():
y = x + 1 # 读取一个值
... | [
"xmduhan@gmail.com"
] | xmduhan@gmail.com |
5d8cabc7d618696a371038fb7960237e18f85354 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/directory_space.py | 181da14d597c49d1cb1260370a9839af5f77bbba | [
"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 | 4,530 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
720de787bbd74071e10d2e644a9c055ed7813456 | d2bb57efe62e1747a6ea2287da5c21fd18bfde02 | /mayan/apps/documents/tests/test_setting_migrations.py | 36906893232b807e0b2d006b9a929f1f5f38beb9 | [
"Apache-2.0"
] | permissive | O2Graphics/Mayan-EDMS | 1bf602e17a6df014342433827a500863eaed2496 | e11e6f47240f3c536764be66828dbe6428dceb41 | refs/heads/master | 2020-09-28T06:26:39.728748 | 2019-12-09T19:00:33 | 2019-12-09T19:00:33 | 226,711,506 | 0 | 0 | NOASSERTION | 2019-12-09T19:00:34 | 2019-12-08T18:21:06 | null | UTF-8 | Python | false | false | 2,133 | py | from __future__ import unicode_literals
from django.conf import settings
from django.utils.encoding import force_bytes
from mayan.apps.common.tests.base import BaseTestCase
from mayan.apps.common.tests.mixins import EnvironmentTestCaseMixin
from mayan.apps.smart_settings.classes import Setting
from mayan.apps.storage... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
cfbcbb6c08a5180985b1d36858eed3a4722b30aa | fb2e7a15d2b0ab34cc47664a526640aa80441083 | /try7.py | 93f5ff0e9a63ab816b0d7441bd017dc63c7e993e | [] | no_license | Jeonghwan-Yoo/python_practice | c7b4d19b1da589b12ec025f3ff5729407ee0ca26 | c82e0308b4b3a227ddbd560cedecc49c036ef4c2 | refs/heads/master | 2020-07-27T00:12:33.139274 | 2019-09-16T13:26:49 | 2019-09-16T13:26:49 | 208,806,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | a=[1,2,3]
try:
a[5]=6
except (ZeroDivisionError,IndexError,TypeError):
print('ZeroDivisionError,IndexError or TypeError')
except:
print('undefined error')
else:
print('good')
finally:
print('necessarily executed') | [
"dwgbjdhks2@gmail.com"
] | dwgbjdhks2@gmail.com |
93b5dafce54315a1f6bba023be93717bd858afa6 | 95761ba9ca92c9bf68f3fb88524ee01ddba9b314 | /api-web/src/www/application/modules/search/handlers.py | 91e5c196d1bcf213917388cff3ae848ef577618a | [] | no_license | duytran92-cse/nas-workboard | 918adf4b976f04a13dc756f8dc32aecf397c6258 | bebe7674a7c6e8a3776264f18a3b7ca6b417dc7e | refs/heads/master | 2022-10-23T01:02:39.583449 | 2020-06-14T19:25:01 | 2020-06-14T19:25:01 | 272,268,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from notasquare.urad_api import *
from application.models import *
from application import constants
from django.conf import settings
from django.db.models import Q
class Search(handlers.standard.GetHandler):
def get_data(self, data):
kw=str(data['keyword'])
result = {
'board': [],
'category': [],
'sto... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
a4b36ef3012a4833e99a6ced7f53a024ab683991 | 77b94c318ee6014f6080aa34886b85aa47500992 | /scraping/utils.py | c65ed994a3d7f8351d77613dd234a3d3fb7902c3 | [] | no_license | dm1tro69/rabota_find | 472c8417784333806db22eb4bb9ef722f5df779d | d3b903478186c9fa7313f1fedfefe6b2fe069164 | refs/heads/master | 2020-09-06T20:11:23.468166 | 2019-11-06T21:00:16 | 2019-11-06T21:00:16 | 220,536,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | import codecs
import datetime
import requests
from bs4 import BeautifulSoup as BS
import time
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)'
' Chrome/76.0.3809.100 Safari/537.36'}
def djinni():
session = requests.Session()
base_url =... | [
"dimolg22@gmail.com"
] | dimolg22@gmail.com |
c95b62caf60eaabd5548d4fd3d27c9f4b7bd46b8 | ffb6d3055d80d3403591f027d71701d4527b139a | /ACM-Solution/BEENUMS.py | d78ba92b0956733ea134415d77456e0bc1e97785 | [
"MIT"
] | permissive | wasi0013/Python-CodeBase | 811f71024e81699363c1cd3b93e59412f20e758d | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | refs/heads/master | 2020-12-24T21:01:38.893545 | 2016-04-26T15:13:36 | 2016-04-26T15:13:36 | 57,138,236 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import sys
import math
while True:
a=int(input())
if a<0 : break
d= 9+ 12*(a-1)
r= math.sqrt(d)
if r*r ==d :
r-=3
if r%6==0:
print("Y")
else :
print("N")
else : print("N")
| [
"wasi0013@gmail.com"
] | wasi0013@gmail.com |
0462a8a8229711aa4990eb67d187f7b2cb49d77c | fdedfbc1290016ae293edcc41df96d0a3fb8a99c | /tensorflow-tutorial/tf_imageprocess/tfqueue.py | 28610c999e22b3f05a98c40c0cede9f3286b0e42 | [] | no_license | Hsingmin/machine-learning | 5d798ff974429fccb84ad61b2f72f4bb375c80e3 | a554d9c2324b5daf0dde4c78f4a9b6e6b630e413 | refs/heads/master | 2021-01-23T18:47:51.153195 | 2018-06-14T14:48:09 | 2018-06-14T14:48:09 | 102,808,183 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py |
# tfqueue.py -- Queue as one kind of node in tensorflow have its own status .
#
import tensorflow as tf
import numpy as np
import threading
import time
'''
# Create a FIFO queue that can store two elements of integer type at most .
q = tf.FIFOQueue(2, "int32")
# Initialize elements in queue with enqueue_many() func... | [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
cf687ec2adc2c5f5e262d3341fb5ff6157f9c7bf | 3ae1409baed016cc9061ef98806ee7786300d8d2 | /python_import/feature_handling.py | 98d3e5bfbed1361706d6d46523872abc8630214b | [] | no_license | zashin-AI/minsun | 550e8b7650fab4e265d11aed186590cbd6df5587 | 144181b619e6716c584b9282adbf8aa4a9fe4fd9 | refs/heads/master | 2023-05-08T21:11:02.771058 | 2021-06-04T01:59:24 | 2021-06-04T01:59:24 | 352,831,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | import librosa
import numpy as np
import sklearn
import soundfile as sf
def load_data_mfcc(filepath, filename, labels):
'''
Args :
filepath : 파일 불러 올 경로
filename : 불러올 파일 확장자명 e.g. wav, flac....
labels : label 번호 (여자 0, 남자 : 1)
'''
count = 1
dataset = list()
label = li... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
6963934853735f22bd2b699b0ac88fcbc6d34969 | 387400d70932b7b65f0ad0e24cb8290a8ce6ed46 | /August_18/google2018/109. Convert Sorted List to Binary Search Tree.py | c30387c4193b90ad3e1a2c0cb9827f9132a6a1a9 | [] | no_license | insigh/Leetcode | 0678fc3074b6294e8369756900fff32c7ce4e311 | 29113d64155b152017fa0a98e6038323d1e8b8eb | refs/heads/master | 2021-01-20T07:51:21.051366 | 2018-09-17T13:33:15 | 2018-09-17T13:33:15 | 90,051,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | """
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
Example:
Given the sorted linked list: [-10,-... | [
"zhangchaojie@ruc.edu.cn"
] | zhangchaojie@ruc.edu.cn |
8cf1f23012e9884ade8bf68f444cf1c1d258659f | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/02167/2167.py2.py | 647d88318f0d43ea322c4891d86388afa298c05c | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
5462675544f12dbe29b1c868dd76aa611f90b43a | 4fa832c70c3afbb55efc005b5c40167df52c18e0 | /Python Crash Course/vAnil/Chapter-6/6-11.py | 81c53c9b9e9abceea0d80ae3b98e44cf4b55529e | [] | no_license | DimpleOrg/PythonRepository | 76f87d21bfbbcc332f1b02956c4a0b48f084a97d | 82ce549c7c08366a368d4e439e8ff4d66a4176ee | refs/heads/main | 2023-06-09T21:54:28.330130 | 2021-05-06T13:00:48 | 2021-05-06T13:00:48 | 340,079,685 | 0 | 0 | null | 2021-07-01T12:41:39 | 2021-02-18T14:43:09 | HTML | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 17:04:37 2021
@author: ANIL
"""
cities = {
'delhi': {
'country': 'India',
'population': '2 crores',
'fact': 'capital of India'
},
'lucknow': {
'country': 'India',
'population': '50 lakhs',
'fact... | [
"anil.kumar4@hp.com"
] | anil.kumar4@hp.com |
7987a696a4686316125b988503e2541779de5618 | 18fff3ece39927a72a2977c5266f9371e94cf06a | /scripts/config/config.py | 1d5c00d0f4c3569df3d3f12be432d2c265420eae | [
"MIT"
] | permissive | luiscape/hdxscraper-ors | 0d2699be4269921abbe87191eca0cc3108b61142 | ec307625dcf266e448753d4de15b9a3d47c4026f | refs/heads/master | 2021-01-25T03:48:34.096902 | 2015-06-22T21:26:02 | 2015-06-22T21:26:02 | 22,961,731 | 2 | 0 | null | 2015-05-20T19:56:27 | 2014-08-14T17:02:05 | Python | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
dir = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
sys.path.append(dir)
import json
from utilities.hdx_format import item
def LoadConfig(j='prod.json', verbose=True):
'''Load configuration parameters.'''
data_dir = os.path.join(... | [
"luiscape@gmail.com"
] | luiscape@gmail.com |
a023fa2269979db481d37ab6482cdb5cd88e4d53 | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/services/services/user_list_service/transports/grpc.py | aa22166efef7fdb969ffefbd194987071a083d21 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 12,287 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
4ecbc59278840ae59ba0f1bdb4527d98506b88bf | 74cf86509c669799a3a7ed4b7982d59dde695230 | /pilot_paper_code/plotting_code/plotW_impact.py | 8375e8f0b39ef4aae4b494f04f08ad2f1256ec6d | [] | no_license | frenchd24/pilot_paper | e77103ec4873758474f9020c76a8dad86fc6519c | a8d9191f9e435e02a8f6acfbd85ede32bdfd405d | refs/heads/master | 2020-05-20T06:54:13.266061 | 2019-05-07T17:08:42 | 2019-05-07T17:08:42 | 185,438,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,838 | py | #!/usr/bin/env python
'''
By David French (frenchd@astro.wisc.edu)
$Id: plotW_impact.py, v 5.6 9/26/16
Plot EW as a function of impact parameter, and impact parameter/diameter and /R_vir
(01/04/2016)
This is the plotW_b_diam bit from histograms3.py. Now is separated, and loads in a pickle
file of the relevant... | [
"frenchd24@gmail.com"
] | frenchd24@gmail.com |
ac30ba60a8ca7582effac94ead627f85ddf977c0 | 4eddf6a34715752dc652571b1ab274f51ceb5da0 | /Bayes Classification/.history/Bayes_main_20210428162403.py | fe9dc422ef038bea4328c618c7e6c8136a840ae0 | [] | no_license | Suelt/Hust-SE-introduction-to-ML | 649aba0e5b41363ceac03330ef02982982a0615d | a66785c3085da573f5748d13608eabf02e616321 | refs/heads/master | 2023-05-27T13:13:41.058545 | 2021-06-10T05:44:02 | 2021-06-10T05:44:02 | 375,582,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import model_selection
credit = pd.read_csv("C:\\pyproject\\Bayes Classification\\transformed.csv")
y = credit['credit_risk']
X = credit.loc[:,'status':'foreign_worker']
X_train, X_test, y_train, y_test = model_selection.train_test_sp... | [
"2552925383@qq.com"
] | 2552925383@qq.com |
e328b50030a57047e83da491475b3a082fcbf5c0 | b9dc028b6a62d681ef02f149efc903a182edcf13 | /week/6주차_선형재귀와 반복/6-4.1.py | 461553338bed4291c6e206396a85073b33bca798 | [] | no_license | masiro97/Python | 0d1963867c5e6fec678d8b9d07afa6aa055305ed | 78ec468630110cdd850e5ecaab33e5cf5bde0395 | refs/heads/master | 2021-05-10T22:47:28.692417 | 2018-01-20T17:58:46 | 2018-01-20T17:58:46 | 118,267,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | def power(b,n):
if n>0:
if n%2 ==0:
return power(b**2,n//2)
else:
return b * power(b,n-1)
else:
return 1
| [
"estrk7120@gmail.com"
] | estrk7120@gmail.com |
2db4950cce667880d8a89f0a16b27301c138bbad | 31009efe0b3882551f03dcaa9c71756c7c6f6ede | /src/main/resources/twisted/internet/gireactor.py | a7ada11c7385128a3d2c2f55a02998df86151f47 | [
"Apache-2.0",
"ZPL-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | riyafa/autobahntestsuite-maven-plugin | b533433c75f7daea2757158de54c6d80d304a962 | 737e6dad2d3ef794f30f0a2013a77e28decd2ec4 | refs/heads/master | 2020-08-16T13:31:39.349124 | 2019-10-16T09:20:55 | 2019-10-16T09:20:55 | 215,506,990 | 0 | 0 | Apache-2.0 | 2019-10-16T09:18:34 | 2019-10-16T09:18:34 | null | UTF-8 | Python | false | false | 6,123 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This module provides support for Twisted to interact with the glib
mainloop via GObject Introspection.
In order to use this support, simply do the following::
from twisted.internet import gireactor
gireactor.install()
If you wish to... | [
"nmaurer@redhat.com"
] | nmaurer@redhat.com |
2cae4e3b0562f72541fbb29166ea5f6cf51778db | a336dcd58a1e425add4add54dd0640ce1829e2ba | /language_modeling/language_utils.py | 45463ef7377097b692feb461e34052e71368e06c | [
"MIT"
] | permissive | ylsung/FedMA | 8d0b15bcecc98f87f8d1fe3283dadea38797fa3f | d80c22c0a464abcbc47346b9cbc0080a2556fa49 | refs/heads/master | 2022-04-12T20:31:53.064893 | 2020-04-03T15:33:27 | 2020-04-03T15:33:27 | 242,638,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,412 | py | # Modified from: https://github.com/litian96/FedProx/blob/master/flearn/utils/language_utils.py
# credit goes to: Tian Li (litian96 @ GitHub)
"""Utils for language models."""
import re
# ------------------------
# utils for shakespeare dataset
ALL_LETTERS = "\n !\"&'(),-.0123456789:;>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]a... | [
"hongyiwang@cs.wisc.edu"
] | hongyiwang@cs.wisc.edu |
32ac5a7d72b76f113a77fc4d6eca2a230f2d9f1a | bd6fd6bb82bf3179a4571c7a2ca3a030f5684c5c | /mundo3-EstruturasCompostas/096-funcaoQueCalculaArea.py | a37552e17727565abb68b53d43e8027d78f1f497 | [
"MIT"
] | permissive | jonasht/CursoEmVideo-CursoDePython3 | b3e70cea1df9f33f409c4c680761abe5e7b9e739 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | refs/heads/master | 2023-08-27T12:12:38.103023 | 2021-10-29T19:05:01 | 2021-10-29T19:05:01 | 276,724,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py |
def calcularArea(largura, comprimento):
return largura * comprimento
print('=-'*30+'=')
largura = float(input('qual é a largura: '))
comprimento = float(input('qual é o comprimento: '))
resposta = calcularArea(largura, comprimento)
print(f'a area do terreno {largura}X{comprimento} é de {resposta}m²')
| [
"jhenriquet@outlook.com.br"
] | jhenriquet@outlook.com.br |
a7be00b6b8cb3f71f680f3dd9f899fc55ee28faf | 40b6aa99da5b96a382a04b818b558b66c47f5a96 | /projects/serializers.py | 070927afeb267f7413d593453aa2dd3a1c9d1dec | [
"BSD-3-Clause"
] | permissive | LABETE/TestYourProject | 8bba87004227005edf6b7e9cfb1b3e496441bc7b | 416d5e7993343e42f031e48f4d78e5332d698519 | refs/heads/master | 2021-01-10T18:47:29.581371 | 2015-09-03T16:48:05 | 2015-09-03T16:48:05 | 37,154,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from rest_framework import serializers
from .models import Project
class ProjectSerializer(serializers.ModelSerializer):
"""ProjectSerializer use the Project Model"""
class Meta:
model = Project
# Fields displayed on the rest api for projects
fields = (
"id", "name", "own... | [
"eddie.valv@gmail.com"
] | eddie.valv@gmail.com |
dc228204221f9999a303f9408c676717036ef6e4 | 54934cfe32ce5aa5c2e718b0c5c2afa4b458fe75 | /29ch/simplex.py | 59b4470baf756d0125074792e5d87eb8135a1b62 | [] | no_license | mccarvik/intro_to_algorithms | 46d0ecd20cc93445e0073eb0041d481a29322e82 | c2d41706150d2bb477220b6f929510c4fc4ba30b | refs/heads/master | 2021-04-12T12:25:14.083434 | 2019-11-09T05:26:28 | 2019-11-09T05:26:28 | 94,552,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,014 | py | import numpy as np
from fractions import Fraction # so that numbers are not displayed in decimal.
print("\n ****SiMplex Algorithm ****\n\n")
# inputs
# A will contain the coefficients of the constraints
A = np.array([[1, 1, 0, 1], [2, 1, 1, 0]])
# b will contain the amount of resources ... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
c16d82720ec1b8fe3e203367af944e196afff6e1 | a829617f9ad158df80a569dd02a99c53639fa2c6 | /test/hep/hist/plotscatter1.py | 481bd4af3c75beb1b29ae31a8343f51318ba9f68 | [] | no_license | alexhsamuel/pyhep | 6db5edd03522553c54c8745a0e7fe98d96d2b7ae | c685756e9065a230e2e84c311a1c89239c5d94de | refs/heads/master | 2021-01-10T14:24:08.648081 | 2015-10-22T13:18:50 | 2015-10-22T13:18:50 | 44,745,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | #-----------------------------------------------------------------------
# imports
#-----------------------------------------------------------------------
from hep.draw import *
import hep.draw.postscript
import hep.draw.xwindow
import hep.hist
import hep.hist.plot
from random import random
import sys
#---------... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
337698bb08445f1bf0fb45fe6a2517906a80dd0b | b6452f95624c7f251f80a7803880b992f5b9332e | /toppings.py | 9e78ab7e5c97f71f10cdf5d00ad85bfd4834ed77 | [] | no_license | jimmy-kyalo/python_tutorials | 4a1cb8f0338718297deffeeefff9873eb5399571 | c310f615a84a42d4d978d300eb18422acb4e62f6 | refs/heads/master | 2023-03-06T15:38:57.413857 | 2021-02-21T12:32:29 | 2021-02-21T12:32:29 | 340,896,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # checking for inequality
requested_topping = 'mushrooms'
if requested_topping != 'cheese':
print("Hold the cheese!") | [
"kyalo90@gmail.com"
] | kyalo90@gmail.com |
d2823e6997c2111264e3da0f80476e590dfddc56 | 14744766d01d6719097fa6d2b0a9db42226c114b | /mysite/mysite/urls.py | 2700207fc7d9c265b503210e668e09142c8f1569 | [] | no_license | jakiiii/Django-2-by-Example | 8f491a23b7c45ef71a866622ec45dab9909ad212 | 6b3c68b7d54b6c763bba30be5c8b48d257cd97f5 | refs/heads/master | 2023-03-10T00:09:37.688697 | 2021-02-26T19:27:24 | 2021-02-26T19:27:24 | 342,679,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
90f95244f05c1263c0d096e6db8ca9eb041850be | 3ee0c019a7b10a7a78dfc07d61da5d2b3cf3ad27 | /190808/10815_num_card.py | b0e15f15f74903dcf0fac31456922a98aaf35c0b | [] | no_license | JiminLee411/algorithms | a32ebc9bb2ba4f68e7f80400a7bc26fd1c3a39c7 | 235834d1a50d5054f064bc248a066cb51c0835f5 | refs/heads/master | 2020-06-27T01:37:55.390510 | 2019-11-14T08:57:16 | 2019-11-14T08:57:16 | 199,811,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import sys
sys.stdin = open('10815_input.txt', 'r')
M = int(input())
my = list(map(int, input().split()))
N = int(input())
value = list(map(int, input().split()))
comp = ['0' for _ in range(N)]
for i in range(N):
if value[i] in my:
comp[i] = '1'
res = ' '.join(comp)
print(res)
| [
"wlals41189@gmail.com"
] | wlals41189@gmail.com |
775de92b67b22c79f8edaac2f60a42285e0b6576 | f942f82fb1b9c2eb0c4cf03ca2254f4207fd08d2 | /Products/urls.py | b5a99b7be68470e2ae719e7f66d3f28dde8ef522 | [] | no_license | mahdy-world/Fatoma-Restaurant | 2b6aec149c20d5526d5d7a505479cc29c811d666 | a500397741e72d0cf28dbb8f64c914144835d6c2 | refs/heads/master | 2023-06-27T19:27:35.606292 | 2021-07-31T13:53:18 | 2021-07-31T13:53:18 | 391,366,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | from .views import *
from django.urls import path
app_name = 'Products'
urlpatterns = [
path('main_categories/', MainCategoryList.as_view(), name='MainCategoryList'),
path('main_categories/new/', MainCategoryCreate.as_view(), name='MainCategoryCreate'),
path('main_categories/trash/', MainCategoryTrashLis... | [
"salmazidan1997@gmail.com"
] | salmazidan1997@gmail.com |
9f8ce2a8babfebf2df4043994027fbb07c66730e | 303d61b95651407951af11224df32a6b2c54ee0a | /medium/Next_Permutation.py | fc77b475ef0b932927fcfe83d9ff98e16b4db50f | [] | no_license | junghyun4425/myleetcode | 6e621e8f1641fb8e55fe7063b563d0cec20373a6 | f0ad1e671de99574e00b4e78391d001677d60d82 | refs/heads/master | 2023-07-22T12:27:23.487909 | 2021-08-24T10:01:49 | 2021-08-24T10:01:49 | 317,727,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | # Problem Link: https://leetcode.com/problems/next-permutation/
'''
문제 요약: 순열 다음에 나올 순서의 조합을 완성하는 문제.
ask: [4,5,3,2,1]
answer: [5,1,2,3,4]
해석:
순열이 만들어지는 내부 알고리즘을 정확히 파악할 수 있는가에 대한 문제. 이부분을 모른다면 난이도는 hard라 볼수 있음. (구현 자체는 어려움이 없으므로)
우선 처음 찾은 규칙이 다른 예제에서는 들어맞지 않아서 실패. 나름 정답과 근접했다고 생각했으나 정답까지 도달하지 못해 순열의 원리를 인터넷에서 공부.
우측... | [
"junghyun153@naver.com"
] | junghyun153@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.