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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8af20b46235a7f15a182c240a401b53496ebfbb2 | 648e5ea6722db2f29806e24f11cf169257dfc1c7 | /stumbleupon/stumbleupon.py | fa304149171f3a629b125479315c76c7ce8905f3 | [] | no_license | cash2one/doorscenter | 30d4f65e3fb57c417df3f09d7feab721d8425faa | d2771bf04aa187dda6d468883a5a167237589369 | refs/heads/master | 2021-05-27T15:38:56.219907 | 2012-06-20T05:38:15 | 2012-06-20T05:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,286 | py | # coding=utf8
from __future__ import print_function
import os, sys, random, string, time, urllib, ConfigParser, json
import bot, botuser, captcha, proxy, common
if __name__ == '__main__':
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
interestsDict = {'Action Movies': 256, 'Alternative News': 16, 'Ancient Hi... | [
"alex@altstone.com"
] | alex@altstone.com |
72873187e1c342c5a5b9dd92483e5304b06f7927 | aa81ba4d6ae20dee412acb24b5ee0eccb502767f | /venv/lib/python3.5/site-packages/oic/utils/jwt.py | 9b12c909ebd9c103c30d8e7a88cd257310815a79 | [] | no_license | CarlosGonzalezLuzardo/SECAS | 32c3e0b9c176333d2c20b7b3fed3adc9de8c0216 | 4455de4eb61fb4bddf6cfa8a4ce9e5f9f8e9d812 | refs/heads/master | 2020-03-14T11:11:33.922067 | 2018-06-14T10:54:14 | 2018-06-14T10:54:14 | 131,585,370 | 0 | 2 | null | 2018-05-08T13:51:43 | 2018-04-30T11:00:45 | Python | UTF-8 | Python | false | false | 3,520 | py | import json
import uuid
from jwkest import jws
from jwkest import jwe
from jwkest.jwe import JWE
from jwkest.jws import NoSuitableSigningKeys
from oic.oic.message import JasonWebToken
from oic.utils.time_util import utc_time_sans_frac
__author__ = 'roland'
class JWT(object):
def __init__(self, keyjar, iss='', li... | [
"carlos.gonzalez@edosoft.es"
] | carlos.gonzalez@edosoft.es |
c5b90971f324a1b94ef41f08b7779501d6623804 | 9b78bc34a80e4137da15648b094196bfce144091 | /Pantallas/Serializables/alertEstadoArticuloSerializables.py | 67954a2849f53f9e79703231959410b6f4c0b3ce | [] | no_license | AlemFernandez786/Scabox | a3cb3bc16e0bcc95dda7671c19ca9b2fab11247e | 733efd788451b2ce914a5773f71789fbe246d027 | refs/heads/master | 2022-03-02T05:27:39.097097 | 2019-11-07T22:52:33 | 2019-11-07T22:52:33 | 202,450,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'alertEstadoArticuloSerializables.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(s... | [
"gustavorojas.1403@gmail.com"
] | gustavorojas.1403@gmail.com |
abbbc4259fef7de5b081be5a0ead202f3a1135dc | a7a588f90cf4473f2798c5f428158cbf695e27de | /0x08-user_authentication_service/12-main.py | efebdbdc856ef492af134992b36f356d58d9749a | [] | no_license | Gzoref/holbertonschool-web_back_end | eba8368a03f5959a7f10a3b34e3b325e132ed4c2 | 151c5c063b15c8474c1fa4ab5ce27f94f36c42b5 | refs/heads/master | 2023-02-16T20:49:17.851472 | 2021-01-19T22:10:42 | 2021-01-19T22:10:42 | 305,479,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!/usr/bin/env python3
"""
Main file
"""
from auth import Auth
from user import User
from sqlalchemy.exc import InvalidRequestError
from sqlalchemy.orm.exc import NoResultFound
auth = Auth()
user = auth.register_user("test@test.com", "PwdHashed")
print(user.id)
session_id = auth.create_session(user.email)
user_fr... | [
"gzoref@gmail.com"
] | gzoref@gmail.com |
5ac5dd6c9c97819da3862333d2dadb7ef9cb3a0c | 18cc37cf51296378a80a78fe3f57b9a721e024d0 | /powerapi/report_modifier/libvirt_mapper.py | efe2490a2ca2fb07c49e4202d7039bd8aac0e61c | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Alva007/powerapi | 143e94f42ce895507ad716ea673fa666cfa6cf30 | 790cfcf176e9a69906348e2898d35845acca6ef4 | refs/heads/master | 2023-07-28T23:45:40.097658 | 2021-08-16T10:40:57 | 2021-08-16T10:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | # Copyright (c) 2018, INRIA
# Copyright (c) 2018, University of Lille
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, t... | [
"arthur.d-azemar@inria.fr"
] | arthur.d-azemar@inria.fr |
a9dce9e5b341330226074ea141eede23d8a0ecd1 | 256460ede8e15a1e61aef69422ae2e4eacba6e64 | /Plotters/python/FakeRatePlotter.py | 4b39b9d6c2b35200eedf6c46d87b7e9a71ba59a3 | [] | no_license | senka/InitialStateAnalysis | 77d54c4aa7f831e83c2843195e3b188a04bc2a29 | 443f943e8257106a7b9093358ee594d563379ac4 | refs/heads/master | 2020-04-06T04:47:39.266757 | 2015-12-18T14:44:49 | 2015-12-18T14:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,199 | py | '''
A cut flow plotter class.
Author: Devin N. Taylor, UW-Madison
'''
from PlotterBase import PlotterBase
from array import array
import ROOT
import math
ROOT.gStyle.SetPalette(1)
class FakeRatePlotter(PlotterBase):
def __init__(self,analysis,**kwargs):
PlotterBase.__init__(self,analysis,**kwargs)
... | [
"dntaylor@wisc.edu"
] | dntaylor@wisc.edu |
2c2061780bf788dc4bb2e90225f39a1a22660acf | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/databoxedge/azure-mgmt-databoxedge/generated_samples/sac_delete.py | 2a8ba3fbc4041551669861a9f000ce05b5065444 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,624 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ee552f513b79717d992ace8d2250c7d84cda552d | 79799898b833178f0af59d00e6b8d96d44d129d4 | /backend/crm/apps/tests/exams/test_exams.py | ada12e0344c41812fb8ce0ae0b3d80e24004c0a9 | [] | no_license | edzen12/min_crm | 924edeede9250bc3fabfb45a3f0e01a3768f11b3 | 4b979b347b67a2507d3c26c91852b300cdd20975 | refs/heads/master | 2023-08-20T13:25:39.914325 | 2021-10-12T08:38:28 | 2021-10-12T08:38:28 | 416,251,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | from django.urls import reverse
from rest_framework import status
from apps.tests.base import BaseAPITestCaseSetup
from apps.exams.models import (
Exam, Question, QuestionAnswer
)
from apps.branches.models import Branch
from apps.courses.models import Course
class ExamAPITest(BaseAPITestCaseSetup):
def setUp(... | [
"oichiev.edzen@gmail.com"
] | oichiev.edzen@gmail.com |
23374e8cd87096242ae5305f97fc1e4ba941575e | 177338a720f904f63926da055364cc0e2c0a850c | /python_stu/s11_20_bbs/web_chat/views.py | 631aa2f38c5fe8975a7dea29be6296581992027a | [] | no_license | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | #coding:utf-8
from django.shortcuts import render,HttpResponse,HttpResponseRedirect
# Create your views here.
import models,json,Queue,time
GLOBAL_MQ = {} #用来存放消息
def web_chat(request):
return render(request,'web_chat/chat.html')
def contacts(request):
contact_dic = {}
contacts = request.user.userprof... | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
2f45ae5fa8573deb3774ce16949fd33b8670477e | a0465a0f5ff40a14649d03d77919237cbba05e29 | /WhatsNext/asgi.py | 87a837d07ff833bb034e660a74a3ad074228d423 | [] | no_license | ashutoshkrris/WhatsNext | 0c4671dbc6e12ef1e5e3a8f8c425423dff50db34 | a72e6fc08b886315848ddd446907be82a578a041 | refs/heads/master | 2022-11-28T20:41:38.532817 | 2020-08-11T12:24:56 | 2020-08-11T12:24:56 | 286,656,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for WhatsNext project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"ashutoshbritish@gmail.com"
] | ashutoshbritish@gmail.com |
5d8395d457c4825e77882773ffaedebda4281e5a | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /191004/1244_최대상금.py | 0500f23432b9ea47a5074673c8e61ebbcc22a437 | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | # num = [4,5,6,7,8,9]
# N = len(num)
# cnt = 10
# # 두 개의 숫자를 선택해서 교환
# # 교환횟수 1회 일때 => 5C2만큼 선택지
# visit = [[0] * 1000000 for _ in range(11)]
# MAX = 0
# def backtrack(k):
# global MAX
# val = int(''.join(map(str, num)))
# if visit[k][val]:
# return
# visit[k][val] = 1
# if k == cnt:
# ... | [
"jjgk91@naver.com"
] | jjgk91@naver.com |
845342990a9d1d9063795f2628c1e27c162524f4 | 4b7ad08ff76cb17e28d6b593fd88e38d46bf826e | /Asgama CTF/[RE] M4tH/mate.py | 55368e8640d1df96df1bd344751bcc5632ea853c | [] | no_license | IndominusByte/CTF-2019 | 1a29ea5adf1b78dd2c4f3fdf05524f4b9295ccbc | 43ecde30493e9f254ed5eec89efe01b5b9335996 | refs/heads/master | 2020-04-16T23:47:13.364730 | 2019-01-22T05:57:37 | 2019-01-22T05:57:37 | 166,025,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | from z3 import *
s = Solver()
key = [Int(x) for x in range(197)]
s.add(key[8] == 102 )
s.add(key[20] == 101 )
s.add(key[48] == 51 )
s.add(key[52] == 104 )
s.add(key[56] == 76 )
s.add(key[68] == 85 )
s.add(key[72] == 105 )
s.add(key[96] == 48 )
s.add(key[108] == 114 )
s.add(key[112] == 49 )
s.add(key[116] == 70 )
s.ad... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
634c7f4f6e7b516b748c0ea3be4de4b3c8345565 | a0801d0e7325b31f0383fc68517e208680bb36d6 | /Kattis/basicremains.py | 9c9eceebb09af1e445086d8657a52e707ee42632 | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | while True:
i = input()
if i == '0':
break
b, p, m = i.split()
b = int(b)
p, m = int(p, b), int(m, b)
n = p % m
if n == 0:
print(0)
else:
ns = []
while n:
n, r = divmod(n, b)
ns.append(str(r))
print(''.join(reversed(ns)))
| [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
4894a812e8d717f54edfa1c3e181f30144236351 | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2018/09/marist-voting-counted-20180914/graphic_config.py | 0efd75f17626dbfe4633a0d6ca548e7a7e8e024d | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1MtwieeHYQB8qHe2GhNUxruwL8__K-WURXyAzgjLP4hw'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
a4b960d6e0fc6acddb5736f60308f676a2acef63 | e95fc8c562c050f47ecb6fb2639ce3024271a06d | /easy/231.2-的幂.py | 4a8ad334309515e772578b39135809a422ea0eae | [] | no_license | w940853815/my_leetcode | 3fb56745b95fbcb4086465ff42ea377c1d9fc764 | 6d39fa76c0def4f1d57840c40ffb360678caa96e | refs/heads/master | 2023-05-25T03:39:32.304242 | 2023-05-22T01:46:43 | 2023-05-22T01:46:43 | 179,017,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | #
# @lc app=leetcode.cn id=231 lang=python3
#
# [231] 2的幂
#
# https://leetcode-cn.com/problems/power-of-two/description/
#
# algorithms
# Easy (49.28%)
# Likes: 343
# Dislikes: 0
# Total Accepted: 125.8K
# Total Submissions: 252.8K
# Testcase Example: '1'
#
# 给你一个整数 n,请你判断该整数是否是 2 的幂次方。如果是,返回 true ;否则,返回 false 。... | [
"ruidong.wang@tsingdata.com"
] | ruidong.wang@tsingdata.com |
ab830065f62908f42f0fa37ee9f5ac2737e89640 | c84e42448568fcca2b1454b949d4c161995781c1 | /ALU/Traces/generate_adder.py | 4850d7daeba84e2255b1782fe83fceb7b6e85466 | [] | no_license | martiansideofthemoon/EE-224-Digital-Systems | 92dab96cfd2aa1a91b38befc4171f6ca59eb8233 | dfeebf1e18dae57ef0495860add90713dfa695d9 | refs/heads/master | 2021-01-10T07:17:50.535216 | 2016-03-31T18:36:18 | 2016-03-31T18:36:18 | 51,597,528 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | output = ""
for i in range(0, 256):
for j in range(0, 256):
sum1 = (i + j) % 256
output += "{0:08b}".format(i) + " " + "{0:08b}".format(j) + " " + "{0:08b}".format(sum1) + "\n"
f = open('TRACEFILE_Adder.txt', 'w')
f.write(output)
f.close() | [
"kalpeshk2011@gmail.com"
] | kalpeshk2011@gmail.com |
a9cde0aa4be38b689ef7149dff8db95aaa646f9f | 509ca8d8535af5bb625add37a3ed7c8af86037be | /gcanvas/gcanvas_user/test_views.py | 3f12a03e387db7ef9c0c50d19df0ffe07df5fcbd | [] | no_license | nzgreens/gcanvas-server | 2e77ca1fa31c2c6d84f110f794340e6c6126a974 | 75eab2c5f460a66abffef6830993c2072fb6fb28 | refs/heads/master | 2021-01-14T13:21:22.901901 | 2016-02-19T14:26:43 | 2016-02-19T14:26:43 | 19,511,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,673 | py | import json
from django.test.utils import setup_test_environment
from django.core.urlresolvers import reverse
from django.test import TestCase, override_settings
from django.utils.http import urlencode, urlquote
from django.core.mail import send_mail, outbox
import django.core.mail as mail
from gcanvas_user.models i... | [
"terrasea@gmail.com"
] | terrasea@gmail.com |
ecb624c57c87f906a5491d8f66a7fa74427e4762 | 6257b3d146ecff251aabb4dc78cf66bc69d2ab31 | /middileware/zabbix/zabbix_sqlhack.py | 1a8cafd8efc326253472a2b1cf7bb88863f72070 | [
"MIT"
] | permissive | bigbigx/PocCollect | 39549107f01d313656b451bafe7657cb8c61f410 | 6b0f438e6e6005bd0adbdf3bcc97a2d808c6f9ea | refs/heads/master | 2021-06-04T15:48:04.790219 | 2021-04-06T11:24:54 | 2021-04-06T11:24:54 | 63,687,713 | 0 | 0 | MIT | 2021-04-06T11:24:55 | 2016-07-19T11:19:43 | Python | UTF-8 | Python | false | false | 2,598 | py | #coding:utf-8
import urllib2
from t import T
class P(T):
def __init__(self):
T.__init__(self)
def verify(self,head='',context='',ip='',port='',productname={},keywords='',hackinfo=''):
timeout=3
target_url = 'http://'+ip+':'+port
result = {}
res=None
result[... | [
"nanshihui@qq.com"
] | nanshihui@qq.com |
b577fc5a27751e60c23180c1cfa3c973e467e254 | b83ac23819fd7ba998563f2ad870405bdd07cc2b | /experiments/training/v9/random_defense/actor_critic/run.py | ee808035458dde0f991de9e6541c37a00205040b | [
"MIT"
] | permissive | Limmen/gym-idsgame | 699abd2894bce15108f1606f5fb71f612dd7ba03 | d10830fef55308d383c98b41b34688a7fceae357 | refs/heads/master | 2023-09-01T17:32:16.768138 | 2023-08-22T12:00:53 | 2023-08-22T12:00:53 | 247,794,752 | 49 | 12 | MIT | 2021-04-21T07:50:06 | 2020-03-16T19:00:27 | Python | UTF-8 | Python | false | false | 9,814 | py | import os
import time
import sys
import glob
from gym_idsgame.config.runner_mode import RunnerMode
from gym_idsgame.agents.training_agents.policy_gradient.pg_agent_config import PolicyGradientAgentConfig
from gym_idsgame.agents.dao.agent_type import AgentType
from gym_idsgame.config.client_config import ClientConfig
fr... | [
"kimham@kth.se"
] | kimham@kth.se |
b645c99809ba01a40f8f91198f1449ea43f75c6e | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/otp/speedchat/SCObject.pyc.py | 2fb3bb12113e18f3bafd2aa2bd72282725fda087 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | # 2013.08.22 22:15:49 Pacific Daylight Time
# Embedded file name: otp.speedchat.SCObject
from direct.directnotify import DirectNotifyGlobal
from direct.showbase.DirectObject import DirectObject
class SCObject(DirectObject):
__module__ = __name__
notify = DirectNotifyGlobal.directNotify.newCategory('Spee... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
b62914f80998f47951cfe5cd3a562982258460ee | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0751_0800/LeetCode768_MaxChunksToMakeSortedII.py | e2135c2b2b83b83530f5c4acc12ac147fe8592ba | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 460 | py | '''
Created on Apr 4, 2018
@author: tongq
'''
c_ Solution(o..
___ maxChunksToSorted arr
"""
:type arr: List[int]
:rtype: int
"""
p..
___ test
testCases [
]
___ arr __ testCases:
print('arr: %s' % arr)
res... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
616ec02f899780a755da1d9b9ff5092d94560660 | 024ad288e3e8c4407c147d3e5a3cef9c97ddecce | /ML/m22_xgb1_boston.py | b7d2b1ebaeb210885f5e20ec6d96f21eca837124 | [] | no_license | keumdohoon/STUDY | a17f62549e5dc59640875970b79b41ba8f62932c | 83a1369d8e93767ebc445a443d8f55921cd984ce | refs/heads/master | 2022-12-15T17:25:00.809774 | 2020-09-07T02:00:30 | 2020-09-07T02:00:30 | 264,050,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | #과적함 방지
#1. 훈련데이터량을 늘린다.
#2. 피처수를 줄인다.
#3. regularization
#4. boston 회기모델
#feature을 xgboost로 건들겠다
from xgboost import XGBRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from xgboost import plot_importance
import matplotlib.pyplot as plt
dataset = load_boston(... | [
"58944180+keumdohoon@users.noreply.github.com"
] | 58944180+keumdohoon@users.noreply.github.com |
8ab237a8ed9273adc19a2cdc3bf93422f6df86af | c4a3eeabe660e5d6b42f704d0325a755331ab3c5 | /hyperion/clean/l_bol.py | 2fc6bdfd759950d32cb0ce3f37b3d049d386ca17 | [] | no_license | yaolun/misc | dfcfde2ac4a6429201644e1354912d3a064f9524 | 049b68ce826ddf638cec9a3b995d9ee84bf6075a | refs/heads/master | 2021-01-21T23:54:08.953071 | 2018-06-02T19:46:18 | 2018-06-02T19:46:18 | 26,666,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | def l_bol(wl,fv,dist):
import numpy as np
import astropy.constants as const
import astropy.units as uni
import matplotlib.pyplot as plt
# wavelength unit: um
# Flux density unit: Jy
# distance unit: pc
# constants setup
#
c = const.c.cgs.value
pc = 3.086e+18
PI = np.pi
SL = 3.846e+33
# Convert the unit fr... | [
"allenya@gmail.com"
] | allenya@gmail.com |
d553de0dfb5f9d92acd4324b346ca3363bf48e7b | 7bde204fc269b3a28983194f7856928603f4762c | /zvt/factors/ma/ma_stats_runner3.py | a79de1d50779a182a4e9e460c0cee5101af16d98 | [
"MIT"
] | permissive | joyjarod163/zvt | e0b01333854b1751f3f9361331618d2467e1b588 | 3e03af11c7043bd5f848621219d3485662fc5132 | refs/heads/master | 2020-09-28T22:53:29.190824 | 2019-12-17T10:56:38 | 2019-12-17T10:56:38 | 224,348,018 | 1 | 0 | MIT | 2019-12-09T12:05:55 | 2019-11-27T05:00:05 | Python | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
import logging
from apscheduler.schedulers.background import BackgroundScheduler
from zvt import init_log
from zvt.factors.ma.common import cal_ma_states
logger = logging.getLogger(__name__)
sched = BackgroundScheduler()
@sched.scheduled_job('cron', hour=19, minute=0)
def run():
cal_ma... | [
"5533061@qq.com"
] | 5533061@qq.com |
a7b7adbc76d454b82357680704a6a58692853a40 | 83c57f25a1c8b29bb84078340efabaf527a9452e | /workspace/.svn/pristine/a7/a7b7adbc76d454b82357680704a6a58692853a40.svn-base | 873fdb0fbafce8dea7c69c4543ff592acaf0fc98 | [] | no_license | ifzz/py | df06cf5da5920dae979c2c8454bfa02c36dfeeb1 | 2305e651613725ca51d6a87306f3ef83d6c51939 | refs/heads/master | 2021-01-18T08:32:21.256271 | 2016-03-11T10:30:28 | 2016-03-11T10:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | # -*- coding: utf-8 -*-
# Scrapy settings for RBW project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/top... | [
"junxuanwoo@163.com"
] | junxuanwoo@163.com | |
432790ca65bff1616d0adeef0d58788e9faeac27 | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/analyse_md/specific_papers/hy_mg_water_classifier_opts.py | 77dd921e8d06507cad0bbee14a6da9ab27e57fa5 | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,065 | py |
import copy
from .. import binned_res as binResHelp
from .. import classification_distr_opt_objs as classDistrOptObjHelp
def getSolOtherOrCon1ClassifierOpts(hydroxylNonHyIndices, hydroxylHyIndices, waterNonHyIndices, waterHyIndices):
""" Gets classifier options object for solConFar; these are water which
a) Are ... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
83cead8dad6af9548bcf997c460e921ddabe1ba9 | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-07-27_modo_horario_cp_onda1_10d/script_modo_horario_2019-11-19_fchk_1028.py | c627876dbff1207645170ec5a86212b27767a64a | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | #!/usr/bin/env python3
# Bibliotecas
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
# Variáveis
projectID = "40" # ID do projeto, conforme mostrado no frontend Web
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd4... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
774f0b830a72fae147a27b916bf3d62e1be646b5 | 8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b | /env/Lib/site-packages/pylint/checkers/async.py | 9061cc9cbb7a18367f467cef500eb8ad48006c30 | [
"MIT"
] | permissive | theXtroyer1221/Cloud-buffer | c3992d1b543a1f11fde180f6f7d988d28b8f9684 | 37eabdd78c15172ea980b59d1aff65d8628cb845 | refs/heads/master | 2022-11-22T22:37:10.453923 | 2022-02-25T01:15:57 | 2022-02-25T01:15:57 | 240,901,269 | 1 | 1 | MIT | 2022-09-04T14:48:02 | 2020-02-16T14:00:32 | HTML | UTF-8 | Python | false | false | 3,868 | py | # Copyright (c) 2015-2018, 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2017 Derek Gustafson <degustaf@gmail.com>
# Copyright (c) 2019 Pierre Sassoulas <pierre.sassoulas@gmail.com>
# Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com>
# Licensed under the GPL: https://www.gnu.org/licenses/old-license... | [
"jaddou2005@gmail.com"
] | jaddou2005@gmail.com |
ab726f6fccb7a46ca52d32943cbae522dd9d1464 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/contrib/sparsemax/python/kernel_tests/sparsemax_test.py | 259e62bd864fba3cc7d9aa387e02c8319438d658 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 8,685 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"zylo117@hotmail.com"
] | zylo117@hotmail.com |
004f310fa69d3e296b55a7ce497e373c46860ae8 | ed11f664cbc459c7a4456dd58f2b231edcb22f33 | /ctm_saas_client/models/service_auth.py | 8cc0665aa3603ee02db51c69ecb911d7703e4679 | [
"BSD-3-Clause"
] | permissive | jpmc216/ctm_python_client | c8b8ba60580bf869b3d1e6af9b99737e0a7ea527 | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | refs/heads/main | 2023-08-26T22:06:34.022576 | 2021-10-25T13:41:31 | 2021-10-25T13:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,061 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.30
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from ctm_saas_cl... | [
"cmoraes@bmc.com"
] | cmoraes@bmc.com |
202da54623d18469c9b4f1bf91e8b3da43f33de0 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /appmesh_write_f/virtual-service_create.py | 36f7cbd5f9c1bb8f6cb9da74f0237a1261b82c3f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
71932160cad8274802bec225b7c215588989088f | dab0110db9013bd638244b2d5a77832aa022a66a | /tobias/blog/migrations/0001_initial.py | dec21af363e0e3b869b7fc6fb42bd73fd606f1f2 | [
"MIT"
] | permissive | tobias-fyi/tobiasfyi | a218aac9a031b88dbe6e6a94cb52a312f9047813 | 194768e27d9767f2d3f839106b56ff3502c86564 | refs/heads/master | 2022-12-14T23:03:17.170259 | 2020-08-18T16:48:34 | 2020-08-18T16:48:34 | 229,350,087 | 0 | 0 | MIT | 2022-12-08T10:56:46 | 2019-12-20T23:20:10 | Python | UTF-8 | Python | false | false | 8,293 | py | # Generated by Django 3.0.4 on 2020-03-15 02:08
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migra... | [
"tobyreaper@gmail.com"
] | tobyreaper@gmail.com |
49453ecb9a27bc5bab56ecdec774262c8c6cd132 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /trigger_multithreading_bug_mcs/intermcs_3_/interactive_replay_config.py | 3b28df6d16629204d163a1d929b99aac72a68299 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
a21a4584d6933810fd69baa14860cd30758f31a8 | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /ml/m06_wine.py | 276ebd24d7cf78f9c474cb855299b4c27d20816e | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | # wine = 다중분류
import numpy as np
from sklearn.datasets import load_wine
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, r2_score
from sklearn.svm import LinearSVC, SVC
from sklearn.neighbors import KNeighbo... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
58f7cb71c2da26724e00d31a15294510844c9172 | 37db56765276c0835a2c7e3955c412ce204836c1 | /767.py | f242e160bc8e6eb18dd9bb2679b7e26c5eafc54e | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | class Solution:
def reorganizeString(self, S: str) -> str:
ct = collections.Counter(S)
if ct.most_common(1)[0][1] > (len(S) + 1) // 2: return ''
hp = []
for ch in ct.keys():
heapq.heappush(hp, (-ct[ch], ch))
res = ""
while len(hp):
... | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
6ba8b025284b80441478c9932bacaf1f71b17347 | ebc5148d6ac2e89d4314876fcd1d90aa166d5c75 | /employer/migrations/0003_auto_20200122_1803.py | d08a0567381353d954be975b0f2e7cb12aa7d436 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | adriankiprono/jobs-project | ade65b045ed3744f6dc1e8b3cba999327aa040c1 | f08dae788727bc532f39840c72457be86dea498e | refs/heads/master | 2022-12-02T11:03:10.942586 | 2020-01-24T11:03:40 | 2020-01-24T11:03:40 | 235,325,384 | 0 | 0 | MIT | 2022-11-22T05:16:04 | 2020-01-21T11:22:40 | Python | UTF-8 | Python | false | false | 362 | py | # Generated by Django 3.0.2 on 2020-01-22 15:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employer', '0002_auto_20200122_1310'),
]
operations = [
migrations.RenameField(
model_name='applicant',
old_name='jobs',
... | [
"tuimuradrian6@gmail.com"
] | tuimuradrian6@gmail.com |
2425297999dda174b92e291ce643a075d9c5715d | 75e518cb1c38cbf8bc55b5e5bb186bcf4412f240 | /virtual/lib/python3.8/site-packages/flask_email/backends/base.py | 5abedef48b9998f199a74c0329ff95723b53c460 | [
"MIT"
] | permissive | adriankiprono/pitches_project | 984e8381b78c711bf20f84380fa83c26a1392f1b | a3102a7b1d618ad35b981414049c3ead0b5ecc3c | refs/heads/master | 2022-10-07T17:11:54.302322 | 2019-12-04T11:12:18 | 2019-12-04T11:12:18 | 223,401,174 | 0 | 0 | MIT | 2022-09-16T18:13:55 | 2019-11-22T12:44:29 | Python | UTF-8 | Python | false | false | 1,691 | py | """Base email backend class."""
class BaseMail(object):
"""
Base class for email backend implementations.
Subclasses must at least overwrite :meth:`send_messages`.
"""
# TODO: Add threadsafe warning
def __init__(self, app=None, **kwargs):
if app is not None:
self.init... | [
"tuimuradrian6@gmail.com"
] | tuimuradrian6@gmail.com |
4e4299093d4a8c61b5375a09e4835ac31a718ae1 | 3ab58fe0a0af56318c3afa85f63ee83fda88fdce | /test/test_sensor_system_update.py | 9ac1eadce6523f1ed033ef7217ec50aa60b0cf8e | [] | no_license | gpdviz/gpdviz_python_client | 460472e10c6cd1528bb8488b41fc6af112e5efc1 | 03b3e176b80b9bfce22b0567cdc65de46c9fc9b7 | refs/heads/master | 2021-09-18T06:24:12.732563 | 2018-07-10T15:34:34 | 2018-07-10T15:34:34 | 103,349,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
"""
Gpdviz REST API
The Gpdviz REST API deals with three main kinds of resources: sensor systems, data streams, and observations.
OpenAPI spec version: 0.4.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
i... | [
"carueda@mbari.org"
] | carueda@mbari.org |
620aff5e4d387dc3fd33a0b7f829a7b312fcfb8f | 47e36c5b205c8ab59eec0da13da7cb05aaf2238f | /Library_Management_System_API/asgi.py | 9c9501c6b9f9b5935e47c96312c3b38196b9b5b0 | [] | no_license | akhad97/Library_Management_API | 373355596e2e876488f22237ae4b5a9c4299979c | 9008f9990cca26e08755f516c9df16b32ff5d9de | refs/heads/master | 2023-03-27T21:59:37.540486 | 2021-03-31T11:48:55 | 2021-03-31T11:48:55 | 353,337,549 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
ASGI config for Library_Management_System_API project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.se... | [
"ahadjon.abdullaev1997@gmail.com"
] | ahadjon.abdullaev1997@gmail.com |
bc6b5914885c1f8de0eda014558740690f6bcf4f | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/third-party/capnp/setup_tests.py | dc55ac2b756c42228e1388e14c5ffd5235058826 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | """Test fixture setup."""
# TODO: I would like to build an optional test fixture library, but I do
# not know how to express this in ``setup.py``, and so I put this here.
# This is probably not a good practice, and I should rewrite this.
import sys
from setuptools import setup
from setuptools.extension import Extensi... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
5cca13d9efc6ae61d3391c739d47108903cd42d8 | 840f1abbf7311430ee6e8180995f79548281f1aa | /Problems/Implementing logic/task.py | 842ec57598c02527104ec529f0b38ebc85c64941 | [] | no_license | madanaman/smartcalculator | 8f31f1bff4734e92f503591bdbb7d14438bc0a9c | b97050c76c603cec7aa8ca580b5a49e8b43518ca | refs/heads/master | 2022-11-02T10:48:55.260424 | 2020-06-10T20:14:27 | 2020-06-10T20:14:27 | 269,350,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def func():
nam, surn = input().split()
return nam, surn
try:
name, surname = func()
except ValueError:
print("You need to enter exactly 2 words. Try again!")
else:
print(f'Welcome to our party, {name} {surname}')
| [
"madan.aman@gmail.com"
] | madan.aman@gmail.com |
0fe1d70e6c8cba8d622104e9d52ca283c0090be8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02759/s605817190.py | f7275e9d4cc0ddd2fe21e3baa14314db067494a2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | n = int(input())
div, mod = divmod(n, 2)
print(div+mod) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
57c8496613a69cd6fb5f2ea36ebafe2e1fdadcc3 | ea12fed4c32e9c7992956419eb3e2bace91f063a | /zombie/buildsys3/generators/xmlschema.py | 5b5e3755afea372a474678f208ef7e2ef8acb115 | [] | no_license | ugozapad/TheZombieEngine | 832492930df28c28cd349673f79f3609b1fe7190 | 8e8c3e6225c2ed93e07287356def9fbdeacf3d6a | refs/heads/master | 2020-04-30T11:35:36.258363 | 2011-02-24T14:18:43 | 2011-02-24T14:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,614 | py | import wx, os
import cmdparser
from xml.dom import minidom
import sys
#import xml.dom.ext
TABSIZE = 4
TABSPACES = " " * TABSIZE
MESSAGE_PROMPT = "SCHEMAPARSER:"
class xmlschema:
def __init__(self, buildSys):
self.buildSys = buildSys
self.description = "Nebula2 xml schema generator... | [
"magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91"
] | magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91 |
9156abd175fdb0f9ec317b4a283be7bad43b5854 | 76658a65823ea493038c1d037eb0bc1eda6733d3 | /chapter2/parent_directory/notebook.py | 473a43971fb41f677e9e8c6f66a2c407a78698d9 | [] | no_license | Asunqingwen/OOR_Edition3 | 2f14446f26a6615aea58920f67f6656c74257c4c | 92481b15fc365f8d5b903f6e5eb0974e9ff2af33 | refs/heads/master | 2022-08-15T05:49:33.619528 | 2020-01-13T01:53:47 | 2020-01-13T01:53:47 | 230,414,693 | 0 | 0 | null | 2022-07-29T23:04:04 | 2019-12-27T09:33:05 | Python | UTF-8 | Python | false | false | 2,394 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/24 0024 9:30
# @Author : 没有蜡笔的小新
# @E-mail : sqw123az@sina.com
# @FileName: notebook.py
# @Software: PyCharm
# @Blog :https://blog.csdn.net/Asunqingwen
# @GitHub :https://github.com/Asunqingwen
# @WebSite : labixiaoxin.me
import datetime
# store the next available id ... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
6e4586e7c62fe0c6440ec28186a391a142c70eb8 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/848c945a2c11e064d860fa494ed567c1606ffd65-<update_host>-fix.py | 77144a47864ac4afe806558affc73e830fa92c19 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | def update_host(module, array):
changed = True
if (not module.check_mode):
init_changed = vol_changed = pers_changed = pref_changed = False
volumes = array.list_host_connections(module.params['host'])
if (module.params['iqn'] or module.params['wwns'] or module.params['nqn']):
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d40c7d3dc9fd95fb3541e3f6026bd1c6d07031f7 | 14566715c2e75d870d745b52b1d4c141833a296d | /demos/custom_formatter.py | f0fcf8fe11146fdf531b974e254faf8dad33b7e6 | [
"MIT"
] | permissive | eprparadocs/friendly-traceback | 17036280e00d4d5da018a0ea3674e10536d3556c | b8038c4f346e75c040dd3f90d5eb5c6e318a2b31 | refs/heads/master | 2020-09-28T20:37:11.750593 | 2019-12-08T22:59:23 | 2019-12-08T22:59:23 | 226,860,086 | 1 | 0 | MIT | 2019-12-09T11:55:50 | 2019-12-09T11:55:50 | null | UTF-8 | Python | false | false | 1,518 | py | import friendly_traceback
items = (
"header",
"message",
"generic",
"parsing_error",
"parsing_error_source",
"cause_header",
"cause",
"last_call_header",
"last_call_source",
"last_call_variables",
"exception_raised_header",
"exception_raised_source",
"exception_raise... | [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
54f01233f4a9608227e14fffe2491fad0e6b9b4f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_270/ch162_2020_06_20_19_45_46_068001.py | d5210128bcacd3c9461d8af62744372662948ef6 | [] | 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 | 364 | py | def verifica_lista(l):
p = False
i = False
for i in l:
if i % 2 == 0:
p = True
else:
i = True
if p and i == True:
return("misturado")
elif p == True and i == False:
return("par")
elif len(l) == 0:
return("misturado")
elif p == F... | [
"you@example.com"
] | you@example.com |
03dd476d6950f463030c8e674056fa7af7a0400d | 5f2bd047587703b6d6ce4e3ba84be9d0a4a99de6 | /tests.py | 65a9aa6449fc4423ab5c16267619fa37ac67f061 | [
"BSD-3-Clause"
] | permissive | xmonader/simpletemplate | 487d4253f6e1468accb4d4af4f571f222f4a1bb5 | f8e2885118f8871038a1726e18ac7b0f0715e612 | refs/heads/master | 2021-04-29T10:22:19.932323 | 2016-12-29T22:25:29 | 2016-12-29T22:25:29 | 77,643,293 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | from simpletemplate import *
def test1():
tmpl = """hello %% {{name}} %%"""
root = parse_template(tmpl, {'name': 'ahmed'})
print(root.render())
def test2():
tmpl = """ hello %% {{firstname}} %% %% {{lastname}} %% whatss up?"""
root = parse_template(tmpl, {'firstname': 'ahmed', 'lastname': 'strik... | [
"xmonader@gmail.com"
] | xmonader@gmail.com |
d8db5b0b0117fd8d1ba4f6179003c54686844401 | d9f10273960c6956db55f694cdee5910554addd1 | /app/presentation/view/auth/forms.py | a852108086452a47e7fb75b076ba41a2d35cb844 | [] | no_license | manuelborowski/infoheliks | 09b7c6618922aa35ec2334b64cbf55d4bf0d4a80 | a543960a28d00d204a4a699d58964faec6326847 | refs/heads/main | 2023-04-18T11:28:03.115297 | 2021-05-04T08:46:25 | 2021-05-04T08:46:25 | 350,639,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
#flapp/auth/forms.py
from wtforms import Form, PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(Form):
username = StringField('Gebruikersnaam', validators=[DataRequired()], render_kw={'autofocus': 'true'})
password = PasswordField('Pas... | [
"emmanuel.borowski@gmail.com"
] | emmanuel.borowski@gmail.com |
8a951c9eb9f9d0566b3b5644d73cfd1f740e4276 | 2356ff9946a3122838b8c505c52eb922a614154e | /petstagram/petstagram/accounts/admin.py | 1dcb1f734c030c0c7b1b15c25915c3dbfd3fd0b3 | [
"MIT"
] | permissive | BoyanPeychinov/python_web_basics | 8587a10c9e36fd0ebedd7bfefc636a73949410d4 | 2f892ac119f7fe3a5c03fc5e7b35670dc609a70f | refs/heads/main | 2023-07-03T05:09:21.037914 | 2021-08-06T12:44:01 | 2021-08-06T12:44:01 | 374,112,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model
UserModel = get_user_model()
@admin.register(UserModel)
class PetstagramUserAdmin(UserAdmin):
list_display = ('email', 'is_staff')
list_filter = ('is_staff', 'is_superuser', 'groups... | [
"BoyanPeychinov@gmail.com"
] | BoyanPeychinov@gmail.com |
d0a53fbc858acba20e88cab3e8797888781dd16d | 767fc472213870ab73cf2ec6148d0025d3fff68a | /bot/wikidata/web_umenia_sk_import.py | 7bb421dbbe79e2eab6ef07bb560095105fe246fd | [] | no_license | fuzheado/toollabs | f3431b41b90c13ac23cb88e02fa24d2c0d397f8f | b1786deb7f9d27107410290b0d759f8db6098dd9 | refs/heads/master | 2020-06-03T20:39:24.922132 | 2019-06-16T15:18:19 | 2019-06-16T15:18:19 | 191,723,024 | 0 | 0 | null | 2019-06-13T08:32:02 | 2019-06-13T08:32:01 | null | UTF-8 | Python | false | false | 15,375 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Bot to import paintngs from https://www.webumenia.sk
* This will loop over a bunch of collections and for each collection
* Old system: Loop over https://www.webumenia.sk/en/katalog?work_type=maliarstvo&gallery=Slovensk%C3%A1+n%C3%A1rodn%C3%A1+gal%C3%A9ria%2C+SNG
* New syst... | [
"maarten@mdammers.nl"
] | maarten@mdammers.nl |
822183867d895a9510bc3f4c3838837133e26d61 | d432e50b7cf01e3d9efaf6fd698e8bc966a1d1da | /loaded-api/flask/lib/python3.7/codecs.py | cf810464b3f50ade080a990402c7cdcad458a8e8 | [] | no_license | dylangrosz/Disarming_Loaded_Words | ab87a01c5ff3018891cdea7afa16fa3aca00cb45 | d61129979b946c00277c50953b64b4161a59651c | refs/heads/master | 2022-12-15T08:13:50.046628 | 2019-12-05T04:20:15 | 2019-12-05T04:20:15 | 214,930,325 | 0 | 0 | null | 2022-12-08T06:55:39 | 2019-10-14T02:26:02 | Python | UTF-8 | Python | false | false | 99 | py | C:/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/codecs.py | [
"dylangrosz@gmail.com"
] | dylangrosz@gmail.com |
b3c0cc002968ce17a220413f411154d36b2ca373 | 79104c99db93c9abf941f64057210a993fec956a | /scrapy/tests/test_spidermanager/test_spiders/spider1.py | f38af6ba6124cfd644bee7c4116e75fd04dd8c37 | [
"BSD-3-Clause"
] | permissive | craftsmanTek/scrapy | 89bbb8ebef53093eae413c9a42fe6ffe83123011 | 8391b362518c5602867afebda81b1f42536f48b6 | refs/heads/master | 2023-05-01T04:36:20.615072 | 2013-03-13T06:24:25 | 2013-03-13T06:24:25 | 8,756,947 | 0 | 0 | BSD-3-Clause | 2023-04-15T11:24:43 | 2013-03-13T16:49:44 | Python | UTF-8 | Python | false | false | 139 | py | from scrapy.spider import BaseSpider
class Spider1(BaseSpider):
name = "spider1"
allowed_domains = ["scrapy1.org", "scrapy3.org"]
| [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
db030f4bab273a9f8d26211476779382f6d4283f | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPDP1P2_20210714143204.py | 277dc49578018b9161125d8f6613c514808fd542 | [] | 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 | 23,014 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
cbe1bae8519f297b3cad9a1da05798290b8ff89c | 9b9b6ccd51daeec2d4619d106c6a48f6b963e000 | /account/models.py | 4d17dddb28a96d82982e2636e3eb79b08bbb4181 | [] | no_license | vtemian/events | 30b35d6898cb3e2fca1584a01175bbe8345ccee3 | 017d234c82970e0a3fe81c608cd30ad0ee457732 | refs/heads/master | 2021-01-17T11:57:43.302840 | 2012-02-12T13:37:17 | 2012-02-12T13:37:17 | 3,415,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import User
import json
import urllib
class UserProfile(models.Model):
user = models.OneToOneField(User)
gravatar_url = models.CharField(max_length=100)
money = models.IntegerField(null=True, default=10)
exp = ... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
2b6833425f707828c97e300deb32e596219f2f83 | 03dfcd4bd41ff9ba76e67895e96a9794ad003a31 | /sandbox/practicepython/e9.py | b52126f801eda78dbddbcfd6ac434e06d8ce9bec | [] | no_license | gittygitgit/python-sandbox | 71ca68fcc90745931737f7aeb61306ac3417ce60 | 3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67 | refs/heads/master | 2021-01-19T02:41:17.047711 | 2018-11-22T18:07:15 | 2018-11-22T18:07:15 | 39,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/python
'''
Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. (Hint: remember to use the user input lessons from the very first exercise)
Extras:
Keep the game going until the user types "e... | [
"grudkowm@Michaels-Air-2.fios-router.home"
] | grudkowm@Michaels-Air-2.fios-router.home |
da4ff12abc7a2de752bb28fbb566f65850e1cae5 | f200708b8e5a67074f6c805a736311e9b1637532 | /part_04.4_AI/figures/windows0/grid_.py | 5c158f74f321dc5f3973f1f2735bbc1365f26c71 | [] | no_license | vivid-ZLL/tedu | 48b78951eae07f5f0433ba85f7cc4e07cd76011d | 319daf56d88e92f69ee467e0ccf83c01367ed137 | refs/heads/master | 2021-04-23T22:40:11.391574 | 2020-01-25T11:26:56 | 2020-01-25T11:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | """
刻度网格线
"""
import matplotlib.pyplot as mp
mp.figure('Grid Line', facecolor='lightgray')
ax = mp.gca()
ax.grid(
which='major', # 表示主刻度有网格线
axis='both', # 默认是both,表示网格线的绘制点
color='orangered', #
linewidth=0.75
)
# 绘制曲线
y = [1, 10, 100, 1000, 100, 10, 1]
mp.plot(y, 'o-', color='blue')
mp.show()
| [
"283438692@qq.com"
] | 283438692@qq.com |
7a58f706855863dd0a4fa6b13f48ec4e673dab52 | 7ef292d459f3d3155ee89ccd2707be8a998ab626 | /src/aiometer/_impl/run_any.py | ad6f14d82f50677e43d093ce32e76cda026e973f | [
"MIT"
] | permissive | gitter-badger/aiometer | 0e783230366cdd6834b612493c3b122c194a0bc2 | cd818ed1dd210e6a1ff135e9cebdbbd540a4c766 | refs/heads/master | 2022-06-16T17:21:18.189072 | 2020-04-12T14:31:07 | 2020-04-12T14:31:07 | 263,381,093 | 0 | 0 | MIT | 2020-05-12T15:46:58 | 2020-05-12T15:46:58 | null | UTF-8 | Python | false | false | 556 | py | from typing import Awaitable, Callable, Sequence
from .amap import amap
from .types import T
from .utils import check_no_lambdas
async def run_any(
async_fns: Sequence[Callable[[], Awaitable[T]]],
*,
max_at_once: int = None,
max_per_second: float = None,
) -> T:
check_no_lambdas(async_fns, entryp... | [
"noreply@github.com"
] | gitter-badger.noreply@github.com |
b5fe3d2c5c1d5f3059c9a8fee6c64373f1d0c68e | 20f225d8090447315c54e61e94449224e89c284c | /django/multiple_apps/apps/blogs/views.py | f7576a477c0b105c8c8d4021cb3683d0c6d8dc95 | [] | no_license | gomezalexis/python-flask-django | ee90b3cd00a72fb2572aac1242c9d6c40b07e8bf | eb39535086dc4b41ca28c7155452173f9d828cca | refs/heads/master | 2021-01-23T18:25:06.313182 | 2017-09-26T17:22:16 | 2017-09-26T17:22:16 | 102,789,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render, redirect
# Create your views here.
def index(request):
response = "placeholder to later display all the lists of blogs"
return HttpResponse(response)
def new(request):
... | [
"gomez.alexis@gmail.com"
] | gomez.alexis@gmail.com |
8dc32348508f145b1282ae6768035014e7871a62 | 25efd9eeaf486c3cd33f55f9e8609b483d462d95 | /广点通/media_API.py | 0e270f9473600b8f5ab48c4ea085e7682a4a5b37 | [] | no_license | qq351469076/Jenkins_BashScript | bef709888b3bd378fdb9e04e865220aa12f6893c | 5b04a6b0564a496c4147b0a9b852bfd319dbea22 | refs/heads/master | 2020-03-19T06:15:45.971691 | 2018-11-28T09:51:55 | 2018-11-28T09:51:55 | 136,004,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import zipfile
import os
reload(sys)
sys.setdefaultencoding('utf-8')
def make_zip(source_dir, output_filename):
zipf = zipfile.ZipFile(output_filename, 'w')
pre_len = len(os.path.dirname(source_dir))
for parent, dirnames, filenames in os.walk(source_d... | [
"d90159@163.com"
] | d90159@163.com |
ef9df35ecc035a0b12e1363fc4acc9acda69181a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03296/s725694181.py | 632211be8ebad5dff2d87c6e1d629e50db88b3f6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def resolve():
N = int(input())
A = list(map(int, input().split()))
ans = 0
count = 1
for i in range(N-1):
if A[i] == A[i+1]:
count += 1
else:
if count > 1:
ans += count//2
count = 1
if count > 1:
ans += count//2
pri... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
945020d7bfdca939af1683b66ff817f5f0814f1a | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/examples/tst_phase_o_phrenia.py | 0ad3cb3596ec57883c93da1d7fbfe95f169e603b | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 973 | py | from __future__ import absolute_import, division, print_function
from cctbx.examples import phase_o_phrenia
from cctbx.development import random_structure
from cctbx.development import debug_utils
import sys
def exercise(space_group_info, n_scatterers=1, d_min=2, verbose=0):
structure = random_structure.xray_structu... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
d0846614e4f565d19ecc81e5b56ce44400f5b4eb | 1e0c34c17fbf5f802123f25fe11a4c9024ba60b0 | /tests/em/fdem/forward/test_FDEM_sources.py | e03352a746bbe138bad3f137b03e590a64fda364 | [
"MIT"
] | permissive | zyex1108/simpeg | a9e467232f03fd60e1bb8ddf44cdc6eaa936447c | 54832d5c7e42a000f00d1bc95f9fb1db6224d9e0 | refs/heads/master | 2021-01-18T17:37:12.773625 | 2016-08-17T15:29:31 | 2016-08-17T15:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,767 | py | import unittest
from SimPEG.EM import FDEM, Analytics, mu_0
import numpy as np
from SimPEG import Mesh, Maps, Utils
import warnings
TOL = 0.5 # relative tolerance (to norm of soln)
plotIt = False
if plotIt is True:
import matplotlib.pyplot as plt
class TestSimpleSourcePropertiesTensor(unittest.TestCase):
d... | [
"lindseyheagy@gmail.com"
] | lindseyheagy@gmail.com |
17bae93d8a11b3eb8ddf51a7a967db8305f545c5 | 262e69af69bcb10f93eb49db1be47c819d2feb42 | /python/448-find-all-numbers-disappeared-in-an-array.py | 52702a0d9d4b8c9b125d188876c5fc8e7c4b2a5e | [] | no_license | betta-cyber/leetcode | 942eec580f5acdefd1710e5588b285f750362ee8 | a84302a151c2ec0f0cf406fcc8951c621f9da1d0 | refs/heads/master | 2023-04-05T15:55:32.946052 | 2023-03-29T09:09:31 | 2023-03-29T09:09:31 | 132,220,175 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
# encoding: utf-8
# 标志位法:用正负标志位,区分出现的元素和未出现的元素
class Solution(object):
def findDisappearedNumbers(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
res = []
for n in nums:
j = abs(n) - 1
if nums[j] > 0:
... | [
"l21828604@gmail.com"
] | l21828604@gmail.com |
f149e03ece8a25ae313d6f23c0fc27dc44ed744a | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_QJW_CWQZ.py | f7aaa8b35439767b25aaf5e2b996f9c3db343cf9 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_QJW_CWQZ", mongo_collection="ZX_CJXW_ZYCJ")
data_list = main_mongo.main()
for data in data_list:
re_data = data... | [
"499413642@qq.com"
] | 499413642@qq.com |
e99bb0e875bb3128bc42495b67d366746eaa27e8 | 0c3bc24b93b0f1a68f0936ec15c98efd1b52aa7c | /package_control/commands/remove_package_command.py | e74e230b4d65c3071c658da0e60e9376e228e62d | [
"MIT"
] | permissive | Shipow/package_control | 5888abbadd0f731bedd86f7f790ce96951477234 | 742befe7b247ab3ef5f316cbdb4e7c9f7cf8e93a | refs/heads/master | 2020-12-26T01:28:23.493956 | 2014-12-19T15:52:45 | 2014-12-19T15:52:53 | 28,241,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | import threading
import time
import sublime
import sublime_plugin
from ..show_error import show_error
from .existing_packages_command import ExistingPackagesCommand
from ..thread_progress import ThreadProgress
from ..package_disabler import PackageDisabler
class RemovePackageCommand(sublime_plugin.WindowCommand,
... | [
"will@wbond.net"
] | will@wbond.net |
c429a3dbfbf1b33e25db22f17ac0bb6f59ada220 | d3143c67b8e33d4d68d78d5349a4a640be954e4e | /MatsQuiz2.py | 0b5ce553fe390a16eb15a2e20ca3ec7412c1d9a4 | [] | no_license | Botany-Downs-Secondary-College/mathsquiz-rish-nar | 5965c856bec645391dc6787a1189cf0d17266f6b | 8afe72a7e13574f89acdabcd8a4c33585368cef4 | refs/heads/main | 2023-03-14T08:54:00.783354 | 2021-03-07T04:26:16 | 2021-03-07T04:26:16 | 337,539,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,671 | py | from tkinter import *
from random import*
from tkinter import ttk
class MathsQuiz:
def check_variables(self):
#Error checking for empty or non-text user entries for Name
try:
if self.NameEntry.get() == "":
self.WarningLabel.configure(text = "Please enter n... | [
"noreply@github.com"
] | Botany-Downs-Secondary-College.noreply@github.com |
8ace3a1704e3dbbd1a272efb0e9f4c7b5772e9f7 | 0af9f981f13dc2e4600ca19667163db311edbaf7 | /lesson07/examples/exceptions.py | 5b6bd7b46988542236dc494d2905f1ed9bd249c2 | [] | no_license | pm1945/PY-1-6388-HW | 4ad2665ada57ca0a50e4c354160174db548ef0e2 | 349c4eea1d8022381b7a2c0719ae9bd9da25987b | refs/heads/master | 2020-05-15T03:43:28.945908 | 2019-04-16T16:43:30 | 2019-04-16T16:43:30 | 179,352,012 | 1 | 0 | null | 2019-04-03T18:59:36 | 2019-04-03T18:59:36 | null | UTF-8 | Python | false | false | 721 | py | # coding: utf-8
import sys
class BadNumber(Exception):
def __init__(self, x):
self.x = x
def __str__(self):
return '! **** Нехорошее число: {} ****'.format(self.x)
f = open('numbers.txt')
for line in f:
try:
x = int(line.strip())
if x == 13:
raise BadNumb... | [
"artyom@manchenkoff.me"
] | artyom@manchenkoff.me |
f95b01ce428009affea06461c934fcaedf4b3ec0 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/dmlc_mxnet/mxnet-master/example/reinforcement-learning/a3c/a3c.py | 2ce687ea9ae0be16366a8ee441cc127159b2a50a | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 8,611 | py | import mxnet as mx
import numpy as np
import rl_data
import sym
import argparse
import logging
import os
import gym
from datetime import datetime
import time
parser = argparse.ArgumentParser(description='Traing A3C with OpenAI Gym')
parser.add_argument('--test', action='store_true', help='run testing', default=False)
... | [
"659338505@qq.com"
] | 659338505@qq.com |
b3ef6d7be5362aafac02a80b072bb4df3e942f4f | d5ef51c9c90fdcb6175392394c1ea0e9a868e8d9 | /algorithms/DQN/evaluation.py | 059bfeb6f0dfb72f871b34bc77971ea586dd1dca | [
"MIT"
] | permissive | dqgdqg/reinforce_py | cf9757346929697637f28414d5efd0d9754ff902 | 41f67327ae7e1bf87d4648e3ea5f406466c532c9 | refs/heads/master | 2021-04-07T14:48:44.300402 | 2019-12-30T05:42:06 | 2019-12-30T05:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import argparse
import gym
import tensorflow as tf
from agent import DQN
def main(args):
# load env
env = gym.make('CartPole-v0')
# load agent
agent = DQN(env)
agent.construct_model(args.gpu)
# load model or init a new
saver = tf.train.Saver()
if args.model_path is not None:
... | [
"badbobobo@gmail.com"
] | badbobobo@gmail.com |
a3fcdf18fbcdf7573ae095fedcc6a28c95c93df4 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2463486_1/Python/MichelJ/C.py | cfc9d42693ed43e714c335fa4e452fa7bb66ad1d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | # Google Code Jam 2013
# Problem A. Tic-Tac-Toe-Tomek
# mjacquem1
import sys
import logging
import StringIO
import math
from itertools import chain
def echo(fn):
def wrapped(*v, **k):
name = fn.__name__
logging.info( "Called %s(%s)" % (name, ", ".join(map(repr, chain(v, k.values()))))... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
6c9f752d99f57324e79d788729a3d678bda39eb8 | e44c83395d2ddd1e1b7c1e521d360f2ef8d585d0 | /gitlab-new/tt/tt/spiders/land3fang.py | b6b6fb5573957b21b6bbd3e95926cecb0fdc02c5 | [] | no_license | zhoujx4/Crawls | 63ebcac5b4c0bbccdde56e6a2f5efbc4091d03e0 | 94b3ac88d7e49cb4a03e7b211a9437709d1c371c | refs/heads/master | 2020-12-23T15:25:48.041965 | 2020-01-30T10:35:19 | 2020-01-30T10:35:19 | 237,189,197 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,134 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.selector import Selector
import csv
import re
import sys
import os
import datetime
import time
import random
import json
import numpy as np
import math
import socket
import hashlib
from urllib import parse
from scrapy.loader import ItemLoader
from scrapy.http import Te... | [
"673760239@qq.com"
] | 673760239@qq.com |
cf46139af79e924484250103642c1aee178da6f3 | db9463b7271c5a88f473390f393fbc5f00b6f46b | /examples/eeg_meg/source_space.py | 7e89911a47cca60a64b2e9b85c68ff958b3b5db0 | [
"BSD-3-Clause"
] | permissive | lassemadsen/visbrain | 6fbee27acaa46741899782a2ba347f6050275411 | be096aa8a7058c329e7120d0bdb45d3c9eb8be42 | refs/heads/master | 2022-11-08T05:00:21.857939 | 2022-10-25T10:33:36 | 2022-10-25T10:33:36 | 191,604,064 | 0 | 0 | NOASSERTION | 2019-06-12T16:05:22 | 2019-06-12T16:05:21 | null | UTF-8 | Python | false | false | 2,710 | py | """
Plot source space
=================
Plot from a .fif file using the :class:`visbrain.mne.mne_plot_source_space`
function
.. image:: ../../_static/examples/ex_eegmeg_plot_source_space.png
"""
###############################################################################
# Load .fif file in the MNE-python dataset
... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
6c33e36e5fd12ff0ac45dde6f3dd93d792231a83 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/ternary/aaxis/_tickformat.py | 06ff393ba83fd42822f0d59546e0bff0aba466e9 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 458 | py | import _plotly_utils.basevalidators
class TickformatValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='tickformat',
parent_name='layout.ternary.aaxis',
**kwargs
):
super(TickformatValidator, self).__init__(
plotly_name... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
a95dc5bb669adeab381637ee9e742f85937607d0 | 294c08418ae5e1a40ee2234c0a3c7446beafb1e4 | /sklearn-学习/101_bayes_study.py | b432f5a855cf59fb6560b0d2a6751337cf9945e9 | [] | no_license | zpeng1989/AI_study | 84ea79f136c323ab88e8e2c48dfc8ff323b25e58 | 776fe0277afefed6372d290d6f582bf4488a79ef | refs/heads/master | 2020-05-20T18:22:03.173573 | 2019-11-16T08:26:35 | 2019-11-16T08:26:35 | 185,702,905 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # -*- coding: utf-8 -*-
## naive_bayes.BernoulliNB
## naive_bayes.GaussianNB
## naive_bayes.MultinomialNB
## naive_bayes.ComplementNB
## linear_model.BayesianRidge
## param
## prior 先验概率
## var_smoothing 浮点数
import numpy as np
import matplotlib.pyplot as plt
from sklearn.naive_bayes import GaussianNB
from sklearn.da... | [
"592392714@qq.com"
] | 592392714@qq.com |
2c3dd0d423569d526dcd2003e2749fd309d28f16 | e2b5964fc6b72488af67c030fa88fcdb311fd8ca | /account/models.py | 5b89cdb55c33e74fdfd63a508aaacec462604a62 | [] | no_license | handole/bookshop | 6cfd4eadd3ac51d749720e1d6e47c67e5314e092 | 2f8df3577f838f22386c9eb9dd93525fafc25870 | refs/heads/master | 2022-06-16T05:42:37.871424 | 2020-05-08T21:10:03 | 2020-05-08T21:10:03 | 258,863,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | from django.db import models
from django.contrib.auth.models import AbstractUser, User
from django.db.models.signals import post_save
from django.dispatch import receiver
# Create your models here.
class User(AbstractUser):
TYPE_USER = (
(1, 'author'),
(2, 'buyer'),
)
user_type = model... | [
"denihhandoko@gmail.com"
] | denihhandoko@gmail.com |
c61482ecf75b6806e7edd7904ec271e038ec9dcf | 5da5e0483a92f400991579b82b0225f06f67ac29 | /neurokernel/ctrl_proc.py | fa4f6cbc12763655f52dff63d365a747932e92a0 | [
"BSD-3-Clause"
] | permissive | prabeesh/neurokernel | 6454dd8c9a61c4cca443da564a34bf9bb5e5fdef | 523dfe78700e0832c59b975fc6b321ac8f40097e | refs/heads/master | 2021-01-18T00:29:08.335790 | 2015-07-08T20:31:24 | 2015-07-08T20:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,108 | py | #!/usr/bin/env python
"""
Controlled Process subclass.
Notes
-----
This module uses twiggy for logging because calling the logging module
from code that is controlled by a signal handler may cause problems
[1].
.. [1] http://stackoverflow.com/questions/4601674/signal-handlers-and-logging-in-python
"""
import signal... | [
"lev@columbia.edu"
] | lev@columbia.edu |
8f40607ba7ce36785b4f060c3111bab8ff8a0390 | 5bf6452dfecd95adfca712a61a16cce677f91312 | /modules/gluon/contrib/shell.py | e514f673dce9b94ad4fb0dae78cf9ad94faff6d1 | [
"MIT"
] | permissive | prateekgupta3991/phyloShiny | 3fbc1e7422cf9ade633af6be8aaa583842e06752 | 9c9487ddae7ff18dfc39b33091be889097df43ed | refs/heads/master | 2021-01-18T06:58:27.860915 | 2013-05-18T13:41:01 | 2013-05-18T13:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /usr/share/pyshared/gluon/contrib/shell.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
9069160cd5a445b744b321aa872b45d3963e2bd2 | 1a2c87e248f0d82bf0909fd0701123ad98ede6e7 | /migrations/versions/84cd2e3a2d7f_added_email_column.py | 407e3688d5ab2df1fda3f6dda83efb5fcfa0245b | [] | no_license | kevahere/Movie-Api | a3b46a67ff8216208edf4b4ed7fce972e52507e8 | ee63be28a3f3cf2825a1e5bad7696ff4c2e8b95a | refs/heads/master | 2020-03-28T01:35:23.224854 | 2018-09-06T16:32:44 | 2018-09-06T16:32:44 | 147,515,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | """added email column
Revision ID: 84cd2e3a2d7f
Revises: 320e19381c63
Create Date: 2018-09-04 18:40:12.785604
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '84cd2e3a2d7f'
down_revision = '320e19381c63'
branch_labels = None
depends_on = None
def upgrade():
... | [
"kevahere@gmail.com"
] | kevahere@gmail.com |
662ea11bcc034ce91035090a7efda4c6b8e0204d | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/quickFixes/PyAddSpecifierToFormatQuickFixTest/string.py | 92862cda5f33d5548dec908065bd07ed3b93b2da | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 87 | py | a = <warning descr="Format specifier character missing">"test<caret> %"</warning> % "x" | [
"Ekaterina.Tuzova@jetbrains.com"
] | Ekaterina.Tuzova@jetbrains.com |
b7b099f5710fd9b9de41d0e88160cca423c71615 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/sero/runner/mes_single.py | 437396de4077c00d92b27df6a6cda61e5b7de10a | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 516 | py | from my_tf import tf
from taskman_client.wrapper import report_run
from tlm.model.mes_sel_var import MES_single
from tlm.sero.mes_main_common import run_mes_variant
from tlm.training.train_flags import *
@report_run
def main(_):
return run_mes_variant(MES_single)
if __name__ == "__main__":
flags.mark_flag_a... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
1664d7b89144e6ea11773121b59221bad4acb7e4 | 237abde5cb85e7131d7bf9700bd68fe8d0ede093 | /ryu/controller/dpset.py | 399bed93879cc418254c086f8c358eabc1044789 | [
"Apache-2.0"
] | permissive | a23554/ryu-oe | a368ddd21d2aa1c43a85ad27332c6ba656467d62 | 56ce6aae3b4661f6f2da682223baa3e520476a6b | refs/heads/master | 2021-01-11T12:10:17.575583 | 2015-04-17T01:49:11 | 2015-04-17T01:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,219 | py | # Copyright (C) 2012, 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2012 Isaku Yamahata <yamahata at valinux co jp>
#
# 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
#
# h... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
05eb1183fd43414ce2d1e297505f4dcfa6609a01 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02578/s012456448.py | f93eb41d0e096e990014b9bb5934575e0e85d676 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | n = int(input())
a = list(map(int,input().split()))
max_num = a[0]
ans = 0
for i in range(1,n):
max_num = max(max_num, a[i])
if max_num != a[i]:
ans += (max_num - a[i])
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f5109eb40e7e11141259052bbfb2a248d3151492 | 9cc1b58d0319308da98187d071295b2fabf1f080 | /0601/a0601_jieba_01.py | ca5f639e5ca2c2fcbe9ef20edb0476f3dd0f7680 | [
"MIT"
] | permissive | Arwen0905/Python_Test | 60d1dee383c9cf27df6b93cfde7884c91092229c | c75357e4354a684a9fae41f751dae60d4cf0716c | refs/heads/master | 2023-01-13T13:14:55.355898 | 2020-10-31T18:52:07 | 2020-10-31T18:52:07 | 265,150,874 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | import jieba
import jieba.analyse
import pdfkit
# f = open('article.txt','r',encoding='utf8')
# f = open('water.pdf','r',encoding='utf8')
# article = f.read()
# tags = jieba.analyse.extract_tags(article,10)
# print('最重要的字詞',tags)
# pdfkit 範例=============================================================================... | [
"qq23378452@gmail.com"
] | qq23378452@gmail.com |
2f700728c35ece26fdd6c82f8fbfbf744b39df27 | 97b3ab895aba214ee73837f0ea2838013d42ef8a | /27-2D_to_1D_array.py | bf8326380f5a6286b65a1853ab5c8c563422fb29 | [] | no_license | abhisheknm99/APS-2020 | 97b0f0ed8cf53c8e9686727ccac43990728f22d8 | 9ac83a9551533e47ff85cc9da5cc164b4670d6f8 | refs/heads/master | 2020-12-21T04:56:41.001669 | 2020-04-28T19:06:21 | 2020-04-28T19:06:21 | 236,313,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | #converts an 2d array to 1D array
def convert(a):
res=[]
for i in a:
if type(i)==list:
res.extend(i)
else:
res.append(i)
return(res)
a=[1,2,[3,4],[5],6,[7,8,9]]
res=convert(a)
print(res) | [
"abhisheknm99@gmail.com"
] | abhisheknm99@gmail.com |
ca169f6b530995b367b1bc09325c7ab2245ac018 | 559342b0c82cb5748b3166094fb7ab2918a8cda1 | /docs/conf.py | 72fc593582479b24e1e15628c5c6f101792bfd0b | [] | no_license | kvesteri/bourne | 8a29e21caf4eb80036f866efe65b748f22957e0a | 6b62106a3db0e301c51380650254ac09b3dd5f6d | refs/heads/master | 2023-08-18T02:50:03.473330 | 2012-10-03T10:02:44 | 2012-10-03T10:02:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | # -*- coding: utf-8 -*-
#
# bourne documentation build configuration file, created by
# sphinx-quickstart on Mon Sep 3 16:47:06 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
c58fe1195d5b3f7edda52febb4c0b46a9f0aa21b | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/patches/v14_0/update_github_endpoints.py | 9a3b4102b143385ac869fa3b8479138f3fc799db | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import vmraid
import json
def execute():
if vmraid.db.exists("Social Login Key", "github"):
vmraid.db.set_value("Social Login Key", "github", "auth_url_data",
json.dumps({
"scope": "user:email"
})
)
| [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
cbe55ff574dd7abc9974bbff46ae6904e39073e0 | e6cffd853d157cdc2e9be63ed3c812340a9f1cf3 | /ecgs/models.py | 2268b03790daa28d6b2a3b7213933c98286f5e6b | [] | no_license | dxviidmg/SIHECG | 21e7bf5cbc376d8e044e70bbb1912acb74b628bf | 3b20adb77aa7ae835e7e08fcc410b75d0017141b | refs/heads/master | 2022-03-24T17:01:42.393396 | 2017-12-05T03:12:21 | 2017-12-05T03:12:21 | 113,084,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class ECG(models.Model):
paciente = models.ForeignKey(User, related_name="paciente", null=True, blank=True)
creacion = models.DateTimeField(default=timezone.now, verbose_name="Fecha de creación")
archivo = mod... | [
"dmg_92@hotmail.com"
] | dmg_92@hotmail.com |
110d22ae29c54a7ffcf8a18dd69fd424bb71105d | 613d0766a36a0354ed8b7be4c8a552068afe5e71 | /07 Array/09 3sum/01.py | 1fc5795ca1e6f3771e9a6ff5fd3af6171c27d5d4 | [] | no_license | HYLee1008/Python | e9fb2109ed29d11faa37b0a823e603134d85dc28 | 04900b6de1d56c11fbb98d518c9b4cdd37772490 | refs/heads/master | 2022-12-12T12:07:49.198551 | 2020-09-05T12:41:55 | 2020-09-05T12:41:55 | 280,879,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | ### Print 3 elements which can make 0 in sum by brute force.
### O(n^3). Inefficient method.
def three_sum(nums):
results = []
nums.sort()
for i in range(len(nums) - 2):
if i > 0 and nums[i] == nums[i - 1]:
continue
for j in range(i + 1, len(nums) - 1):
if j > i + 1 ... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
56e09657f89d186782076648b9b21fc5ee9415ff | ad5fe6b2dfba0b04cd8fd638049175fcefe90fcf | /Protheus_WebApp/Modules/SIGAFIN/FINA910TESTCASE.py | 97bd42980ee795202ffc298b0882fcbbc5599f79 | [
"MIT"
] | permissive | totvs/tir-script-samples | 63833785de206e3e566baeab6f02e07a4313d6be | ccd0eb8038f4f1c91fe17e0813b15ce6dfa52cc9 | refs/heads/master | 2023-08-16T21:52:10.357667 | 2023-08-11T16:58:29 | 2023-08-11T16:58:29 | 148,842,685 | 24 | 22 | MIT | 2023-06-27T20:13:32 | 2018-09-14T21:17:10 | Python | UTF-8 | Python | false | false | 14,645 | py | import unittest
from tir import Webapp
class FINA910(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup("SIGAFIN", "02/08/2019", "T1", "D MG 01 ", "06")
inst.oHelper.Program("FINA910")
### CT028
### Conciliação Individual FINA910 - Conciliador SITEF - Data de... | [
"hadrignoli@gmail.com"
] | hadrignoli@gmail.com |
7d6b76d28d61b45040df6036e35ca867fed40f74 | a77fcccb2e46f06842daab98f1057209fe506b18 | /programmers/[프로그래머스]튜플.py | c2539562e036d1c56c808da9ed0e02947ceb38ea | [] | no_license | gan-ta/Algorithm | 0c55344a6eb8038c9247485a50bc6324e4ef4c3e | 80313278e6e8461891519fd556a65998939bc564 | refs/heads/master | 2023-05-27T17:03:28.236320 | 2021-06-14T18:48:35 | 2021-06-14T18:48:35 | 257,796,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | def solution(s):
answer_list = []
answer = []
s = s[1:len(s) - 1]
stack1 = []
stack2 = []
insert_num = ''
for c in s:
if c == "{":
stack1.append("{")
elif c == "}":
stack2.append(int(insert_num))
answer_list.append(stack2)
st... | [
"gilmat@naver.com"
] | gilmat@naver.com |
a52b780fb3fce98f4a12c89026047de0f344a904 | 195b8d12796872c05d539aa9283fc3f407b8d8b5 | /tempest/tempest/services/compute/xml/limits_client.py | d233bba8c5ef8c11d213febfbc83f6bf8f070d3a | [
"Apache-2.0"
] | permissive | rvbelapure/openstack-nova-sched | afaa5928da3a8430b64bc23aedb251bae0e7d3ef | 325da0e08979d79b7470d7506ced1b4210e2b696 | refs/heads/master | 2021-01-17T05:28:44.474242 | 2013-04-20T21:18:35 | 2013-04-20T21:18:35 | 9,082,500 | 0 | 1 | null | 2021-09-07T08:33:18 | 2013-03-28T17:30:46 | Python | UTF-8 | Python | false | false | 1,916 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 IBM
# 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/L... | [
"owlpostarun@gmail.com"
] | owlpostarun@gmail.com |
70bb79a141508155aee28f0a8a541eb1e9af1902 | c58bfb0d7a293cc471f2921db57b00d5c3e56bac | /scripts/mp-scripts/Bio/Entrez/__init__.py | 51a19a87f029e5fd03f9352c1d5e67d65a6a5d79 | [
"LicenseRef-scancode-biopython",
"Apache-2.0"
] | permissive | dbmi-pitt/DIKB-Micropublication | 0a2f29b704c269d2ccfe091f8faff1b2374d626d | 0fa264903414ac0b552d363d139746ead198f06a | refs/heads/master | 2020-12-24T16:32:04.206847 | 2020-01-22T18:33:58 | 2020-01-22T18:33:58 | 22,527,994 | 6 | 2 | null | 2015-07-15T14:39:09 | 2014-08-01T20:51:07 | Python | UTF-8 | Python | false | false | 9,504 | py | # Copyright 1999-2000 by Jeffrey Chang. All rights reserved.
# Copyright 2008 by Michiel de Hoon. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Provides code to access NCB... | [
"rdb20@pitt.edu"
] | rdb20@pitt.edu |
9d1826bf9eeea8c9af3086fe03d6a840e07589b1 | 651142483774f06c4c0ceb2126835790bba526aa | /tests/test_key.py | 12d4a49a2997a1790c5b7f58d280856addf5f2e8 | [
"MIT"
] | permissive | butayama/isobar | 73ea9f934497dc75f58b7fbc102f57c9596c4435 | 1f85de093d9cfb4eae373ee3fca69fac3d664161 | refs/heads/master | 2022-12-30T23:34:44.055169 | 2020-10-08T10:53:47 | 2020-10-08T10:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | """ Unit tests for Key """
import isobar as iso
import pytest
def test_key_defaults():
a = iso.Key()
assert a.get(0) == 0
assert a.get(1) == 2
def test_key_eq():
a = iso.Key()
b = iso.Key(0, iso.Scale([0, 2, 4, 5, 7, 9, 11]))
assert a == b
c = iso.Key(0, iso.Scale([0, 2, 3, 5, 7, 9, 11]))... | [
"daniel@jones.org.uk"
] | daniel@jones.org.uk |
386e99683a6977251869058637b66d783f4ef93b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /e69u7eJYnSz3kiLAn_5.py | d47264607b56d80e70691309b5e096b743c0ed73 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | """
Create a function that:
* Creates a sha256 hash from a list of strings.
* Sort the hash string, alphas first digits second, maintaining the original order of alphas and digits (e.g. "7a2f7fdf31a4b" would be sorted as "affdfab727314").
* Returns a new sha256 hash from the sorted string.
### Examples
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ce48518749e4b45ae945d773378a7b171a2baf1a | 5baf3cb8b08dcea2d53d2ef022e5c6d4b2468494 | /test/test_io_k8s_apimachinery_pkg_api_resource_quantity.py | d1b3bb5f1c7d218e577bd8dec4caa803c8f85855 | [] | no_license | atengler/swagger-kqueen-python | a4fc0de38378a08c6c2e0c339032ed4ad63f09f5 | 01225c74a743636483211f0274f772193517ffaf | refs/heads/master | 2021-08-07T18:16:28.453730 | 2017-11-08T17:24:53 | 2017-11-08T17:29:03 | 110,007,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # coding: utf-8
"""
Kubernetes Queen API
A simple API to interact with Kubernetes clusters
OpenAPI spec version: 0.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagger_client
from swa... | [
"atengler@mirantis.com"
] | atengler@mirantis.com |
2d3efe9ec7932926bd2b4515b7697ae99a2cc546 | 3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3 | /case/Wokflow/FinanceApplication/payment/test_flow_fee_payment.py | 485f08fedb037045c8e05bbc186e3214ddd05afe | [] | no_license | tian848-tim/trunk | de50a153c8cab3c81c79c523256a6f1b4c2f049d | cd52afdd003f094056dc2ea877c823a38e6a26fd | refs/heads/master | 2022-11-20T06:43:35.540105 | 2020-07-20T07:48:26 | 2020-07-20T07:48:26 | 281,048,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,770 | py | '''
测试用例标题:费用支付测试
测试场景:费用支付流程测试
创建者:Tom
创建日期:2018-7-25
最后修改日期:2018-7-25
输入数据:供应商:搭瓦家具公司,审批流程各个角色账号
输出数据:无
'''
import unittest
from cgitb import text
import selenium.webdriver.support.ui as ui
from selenium import webdriver
from time import sleep
from selenium.webdriver.remote.webelement import WebElement
from selenium... | [
"tim.long@Newaim01.com"
] | tim.long@Newaim01.com |
bf7ed366cd342e2109c284bb4131a9ad31a85fe9 | 57b53d243be373a7dda59eba57f7e5f315b42f29 | /tf_agents/agents/sac/examples/v1/train_eval.py | 513f149bbdb6d9a28b656382a8d42c9a1d9a33b6 | [
"Apache-2.0"
] | permissive | ageron/agents | 1d43dac37af95ca7b6772babbf5060fa1c5ec501 | af0b45c73301e0223d982b7323363c381aea2f78 | refs/heads/master | 2020-05-26T00:47:26.470180 | 2019-05-21T20:14:40 | 2019-05-21T20:15:05 | 188,054,825 | 5 | 0 | Apache-2.0 | 2019-05-22T14:25:46 | 2019-05-22T14:25:46 | null | UTF-8 | Python | false | false | 12,227 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
bb7181f3dad04a9ce0e819e7bc1cdabb290ea27d | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D05B/DOCINFD05BUN.py | 5907b3d67e06a5a1c55af922a3e19bde4fdd4d10 | [] | 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 | 2,529 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD05BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 3},
{ID: 'BUS'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3dbb6bec169e27c16bfbf3f8123e585a2f401a2d | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/55/55-44_MD_NVT_rerun/set_5.py | 3770141e7d35fc646401ac5a65ad221e3f5de3fa | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L55/MD_NVT_rerun/ti_one-step/55_44/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.