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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
467737aa13e6224c2b5459fae510519622e05c84 | b4c11d69197ef90dcacc8e34884036e4f576855e | /Python/myEnvironment/djangoEnv/bin/pilfont.py | 146697b69ee3a1e8db89379b57baf96f2fd4437e | [] | no_license | VT-Zhang/PYTHON_Platform_Works | c6314715e207995cce0244c38c8d48f95cf934b8 | 52654ef0ecf9102bfe378540818ebbb2dc27a134 | refs/heads/master | 2021-06-15T02:22:03.868898 | 2017-03-07T16:20:26 | 2017-03-07T16:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | #!/Users/jianzhang/Dropbox/Dojo/Python/myEnvironment/djangoEnv/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFo... | [
"jianz@vt.edu"
] | jianz@vt.edu |
dcebc6b36fed20d92041c019092864c956b743da | e6ebd1f9e3968f6ed613e9f35e46716115e6e9c3 | /chapter3/demo1.py | fdb50467279d444e9033ffd2743c6fed6e6e300c | [] | no_license | huwanping001/Python | 897046d3d6d1b420befeefcaa2b9544efa7d1881 | 3c76278f7a9b216b28b8880e0108af3c550b9372 | refs/heads/main | 2023-08-21T00:45:17.991833 | 2021-10-18T13:47:52 | 2021-10-18T13:47:52 | 409,586,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # 学校:四川轻化工大学
# 学院:自信学院
# 学生:胡万平
# 开发时间:2021/9/17 19:36
present= input('小胡想要什么礼物呢?')
print(present,type(present))
| [
"noreply@github.com"
] | huwanping001.noreply@github.com |
5160df22bf339592d41b4ff90b972fa65bcbcd93 | 773c02448ad1766270583cadcbb5c2c71347efd2 | /T2_img2latent.py | 0a200f93eb514a9c131e57b12e6605ca580d353a | [] | no_license | thoppe/SyntheticCountenance | b4640c8009ba5bc2377a11aac88cc1be75d7b92c | c06e186fb0596a50d9080b38b80d81c58f2bdde4 | refs/heads/master | 2020-04-14T19:36:12.431157 | 2019-02-02T22:05:20 | 2019-02-02T22:05:20 | 164,064,092 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | """
The idea is to find the img such that D(img) is minimized, that is the picture
that _most_ fools the discriminator.
"""
import numpy as np
import os, json, glob, random, h5py
from tqdm import tqdm
import tensorflow as tf
from src.GAN_model import GAN_output_to_RGB, RGB_to_GAN_output
from src.img2latent import Im... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
c639300afde098f8880ea4f170b16a2aa369d28c | 0f90bc3f68e674b2a71d940167b9d5702d18d8ba | /finalProject/env/lib/python3.6/abc.py | d3583e61a4a85959762a2d51fc07cc3be07470ea | [] | no_license | pondjames007/DetourningTheWeb | a0f0d730365097b2233c2b9e6ccac0bcc7c113e4 | 49aea061bea449b016eb7b35ff5489c35654dd28 | refs/heads/master | 2021-05-04T05:40:39.881902 | 2018-04-23T20:44:43 | 2018-04-23T20:44:43 | 120,343,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /Users/pondjames007/anaconda3/lib/python3.6/abc.py | [
"jameshuang@nyu.edu"
] | jameshuang@nyu.edu |
83c5bdc03f15bf3062de8e162dc37d0640411c79 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/BsKstKst/python/BsKstKst/FitMassAngles/Param_Diego/for_Juan.py | c5a03c629416915abae29c06369469f6b4fd23be | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | from ROOT import *
from math import *
from array import *
from Urania import PDG
from Urania.Helicity import *
from Urania import RooInterfaces as D
# Generate the pdf using the tools in Urania.Helicity
A = doB2VX([0,1,2], helicities = [0], transAmp = 1)#0)
### masage a bit the expression to make it more suitable for ... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
c48e575ae1fb8a2c929db8e5ce19ddf8a1db5e42 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/python/question_python(resolved)/chapter4_conditional_and_loops(완결)/iii_five_seven.py | 978209ab4157d0feb585ee846dc3b32fb9719737 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
def five_seven(x, y):
""" 전달 받은 두 수(경계 모두 포함)의 범위에서 7로 나눠지면서, 5의 배수인 수의 목록을 "," 로 구분한 문자열로 반환하는 함수를 작성하자
sample in/out:
five_seven(1500, 1600) -> "1505, 1540, 1575"
five_seven(1500, 1700) -> "1505, 1540, 1575, 1610, 1645, 1680"
"""
# 여기 작성
resul... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
0ac4e38308fb4ff518727b8ee1195fa098b9eb57 | 9a94357b2cc45b1e6a56c5c309fad0f717e96b2b | /tests/test_vpx.py | 108360a809ec883ab5d5c6b8521ffbd7c1e719a3 | [
"BSD-3-Clause"
] | permissive | gitter-badger/aiortc | 34099aee833a56d36f53b74336a2e7344d274cf3 | 0417b6b9c75dd4fc9f049ddeda7f09f306318574 | refs/heads/master | 2020-03-30T11:22:22.704701 | 2018-10-01T12:49:46 | 2018-10-01T13:16:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,489 | py | from unittest import TestCase
from aiortc.codecs import get_decoder, get_encoder
from aiortc.codecs.vpx import (Vp8Decoder, Vp8Encoder, VpxPayloadDescriptor,
_vpx_assert, number_of_threads)
from aiortc.mediastreams import VIDEO_TIME_BASE, VideoFrame
from aiortc.rtcrtpparameters import RT... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
b2e1e547eb7cb40072a470450961ec3ea2a10584 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/652.py | 4beb500f3c8a4122fb591a82efec72a0653e53da | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py |
n = int(raw_input())
for c in range(n):
(A,B) = (int(r) for r in raw_input().split(' '))
L = len(str(B))
ans = []
out = 0
# The odd ones out
for v in (1,4,9):
if A <= v <= B:
ans.append(v)
out += 1
# Twos
for d in range(L/2+2):
s = '2'+'0'*d+'2'
sq = int(s)**2
#print s,sq
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a0ab6ad9437802c9e710e2446a34b6e0e6f0927f | 298e100a601f3edcc4b9c8dd465d934554b87065 | /config/XPS/xps_config_oct2010/XPS_C8_drivers.py | 694dd48501e6ca5bf579217deeb004b6ff834df9 | [] | no_license | newville/xrmcollect | 27bc673d1a1e0cd6ab928e27fd4964e7ca5eddd4 | f479e8812a244d478b456dab942506892180f17d | refs/heads/master | 2023-08-24T17:57:38.090068 | 2016-05-11T21:32:15 | 2016-05-11T21:32:15 | 1,025,945 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 109,311 | py | # XPS Python class
#
# for XPS-C8 Firmware V2.6.x
#
# See Programmer's manual for more information on XPS function calls
import socket
class XPS:
# Defines
MAX_NB_SOCKETS = 100
# Global variables
__sockets = {}
__usedSockets = {}
__nbSockets = 0
# Initialization Function
def __init__ (se... | [
"newville@cars.uchicago.edu"
] | newville@cars.uchicago.edu |
95cd4d519c8b65d09a90e0a1a1ab1db1c5e65090 | b677894966f2ae2d0585a31f163a362e41a3eae0 | /ns3/pybindgen-0.17.0.post57+nga6376f2/tests/boost/wscript | 575c486512db2596263726622d81756947c7266d | [
"LGPL-2.1-only",
"Apache-2.0"
] | permissive | cyliustack/clusim | 667a9eef2e1ea8dad1511fd405f3191d150a04a8 | cbedcf671ba19fded26e4776c0e068f81f068dfd | refs/heads/master | 2022-10-06T20:14:43.052930 | 2022-10-01T19:42:19 | 2022-10-01T19:42:19 | 99,692,344 | 7 | 3 | Apache-2.0 | 2018-07-04T10:09:24 | 2017-08-08T12:51:33 | Python | UTF-8 | Python | false | false | 1,018 | ## -*- python -*-
#from waflib import Task
import sys
import os.path
import os
import subprocess
# uncomment to enable profiling information
# epydoc uses the profile data to generate call graphs
#os.environ["PYBINDGEN_ENABLE_PROFILING"] = ""
if 0:
DEPRECATION_ERRORS = '-Werror::DeprecationWarning' # deprecation... | [
"you@example.com"
] | you@example.com | |
2aea9148c27a7fbf9f644d8c40edb2525fad701b | dd483c380c93edb21dae4cb0cb082ba0bfeb3e6a | /app/src/apps/stats/topological_stat/views.py | 7c0caf2793ef1aa6e631cff093ebcec9992ed96e | [] | no_license | BarbaraDiazE/D_Peptide_Builder | 7aa4647c9b0ce20d8a258834d0dffaf21e368224 | d47e29e0b9e55bd6e520bc9caf7d362e796d458d | refs/heads/master | 2020-04-25T02:29:03.092694 | 2019-02-25T20:43:19 | 2019-02-25T20:43:19 | 172,440,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from rest_framework.views import APIView
from django.http import HttpResponse
from django.shortcuts import render, render_to_response
import pandas as pd
import os
import glob
from .compute_topological import statTOPOLOGICAL
class TOPOLOGICALView(APIView):
def get(self, request):
csv_name = request.sess... | [
"debi_1223@hotmail.com"
] | debi_1223@hotmail.com |
1908f8673019ee60a62183f9409a6ca86cd08649 | 358519772669c73092f625f630722c38e1d33783 | /ctools/Testing/Types/ImproperDihedral2Type.py | 3855f86040c5114b8995f4d188699f85bb2a3205 | [] | no_license | minghao2016/mmtools | e7e61aca084498408ceae965dd6c9450ad89eafa | 3ade988afb51cd54ee5a4067d8deaad88afbb0fe | refs/heads/master | 2021-09-21T01:02:22.522187 | 2014-09-19T03:40:03 | 2014-09-19T03:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import sys
sys.path.append('..')
from Decorators import *
from Types.AbstractDihedralType import *
class ImproperDihedral2Type(AbstractDihedralType):
@accepts_compatible_units(None,
None,
None,
None,
None,
units.degrees,
units.kilojoules_per... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
76685f23ac80025d9fc64fa03036df7c4bbdbbbe | 485816a0a8b86818e4f2cefec517e6316e2252d6 | /posthog/test/test_middleware.py | e7bd0e8275c8ba6c3d46790e80193e5a60a215f4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abhijitghate/posthog | 3647443274aee6431e7fecf6902644a9fa7eb9d8 | 68dc4d2730600efb00d3708fb7fba70d85612760 | refs/heads/master | 2023-04-19T15:17:25.033992 | 2021-05-13T09:48:59 | 2021-05-13T09:48:59 | 279,130,099 | 1 | 0 | MIT | 2020-07-12T19:04:15 | 2020-07-12T19:04:14 | null | UTF-8 | Python | false | false | 6,775 | py | from django.conf import settings
from rest_framework import status
from posthog.test.base import APIBaseTest
class TestAccessMiddleware(APIBaseTest):
CONFIG_AUTO_LOGIN = False
def test_ip_range(self):
"""
Also test that capture endpoint is not restrictied by ALLOWED_IP_BLOCKS
"""
... | [
"noreply@github.com"
] | abhijitghate.noreply@github.com |
8d4456f1709a03ff7ff76e4b6638771ded6bae27 | 4c6113392ea456e1eb964172b43f0c9846ca712a | /tests/test_standard_deviation.py | 6b866dc49e5a5dc366f0596b18e6b8812eb37b4d | [
"MIT"
] | permissive | g8a9/pyti | abd344d4d5eb30f36e6c860eb82567d7cacbd780 | 1697ea000730a2238df70505ba77e165619fdf8c | refs/heads/master | 2020-03-27T11:04:22.417031 | 2019-09-09T08:50:51 | 2019-09-09T08:50:51 | 146,463,237 | 0 | 1 | MIT | 2018-08-28T14:53:08 | 2018-08-28T14:53:07 | null | UTF-8 | Python | false | false | 9,669 | py | from __future__ import absolute_import
import unittest
import numpy as np
from tests.sample_data import SampleData
from pyti import standard_deviation
class TestStandardDeviation(unittest.TestCase):
def setUp(self):
"""Create data to use for testing."""
self.data = SampleData().get_sample_close_d... | [
"kyle@collectiveidea.com"
] | kyle@collectiveidea.com |
3208b05d0da560dca27f9423abf4a82b2b8c2985 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/30/usersdata/82/9455/submittedfiles/atividade.py | c5d3ff8f09f278a98531a889412358d110818bae | [] | 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 | 192 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=input('Digite o valor de n:')
i=1
j=n
soma=0
while i<=n:
soma=soma+i/j
i=i+1
j=j-1
print('%.5 f' %soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9ccd664cded01d384a74b70078226710006213ac | cf7fed790b733b9a21ec6c65970e9346dba103f5 | /opencv/gen_sine_table.py | a92197731a8388aa38b098c9704de464791890c8 | [
"MIT"
] | permissive | CospanDesign/python | a582050993efc1e6267683e38dd4665952ec6d40 | a3d81971621d8deed2f1fc738dce0e6eec0db3a7 | refs/heads/master | 2022-06-20T15:01:26.210331 | 2022-05-29T01:13:04 | 2022-05-29T01:13:04 | 43,620,126 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | #! /usr/bin/env python3
# Copyright (c) 2017 Dave McCoy (dave.mccoy@cospandesign.com)
#
# NAME 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 the License, or
# any later version.
#
# NAME... | [
"cospan@gmail.com"
] | cospan@gmail.com |
60e9881d0417bfd779ab8f261e6d4a6eba1be611 | f2ee087b896000ce500ecdb50d6af3a81c9ea67a | /ex16_read_write_file/ex16.py | 21af6acf9f67a01ada06dcad48bed4c2ac91e3b0 | [] | no_license | billgoo/Learn_Python_the_Hard_Way | 5a029223701f1fd6929afbe51b7cd3bfff3e7410 | a280b4110a10d41edda2e90c817f7a8fbc0cecd6 | refs/heads/master | 2020-05-04T17:39:42.275970 | 2019-08-14T14:28:35 | 2019-08-14T14:28:35 | 179,321,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | """
========= ===============================================================
Character Meaning
--------- ---------------------------------------------------------------
'r' open for reading (default)
'w' open for writing, truncating the file first
'x' create a new file and ope... | [
"billgoo0813@gmail.com"
] | billgoo0813@gmail.com |
ae8c313063f63d8ca46adb08c54ed25e9c15a211 | 6968c7f9d2b20b5296663829f99a27d184a59fc1 | /experiments/explorations/experiments/experiment_000202/repetition_000002/calc_statistics_per_repetition.py | 782a2e55a6ea5672f1258b531b384649ad3979d5 | [
"MIT"
] | permissive | flowersteam/automated_discovery_of_lenia_patterns | d42dff37323d51732571b33845c0562d844f498f | 97cc7cde2120fa95225d1e470e00b8aa8c034e97 | refs/heads/master | 2020-06-29T07:08:58.404541 | 2020-05-14T07:37:10 | 2020-05-14T07:37:10 | 200,470,902 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,282 | py | import exputils
import autodisc as ad
import os
import imageio
import numpy as np
import torch
import importlib
from torch.autograd import Variable
from sklearn.manifold import TSNE
tsne = TSNE(n_components=2, init='pca', random_state=0)
def collect_final_observation(explorer):
data = dict()
for run_data in ... | [
"chris.reinke@inria.fr"
] | chris.reinke@inria.fr |
667d3a55f26dcbea425733e4d22f03d40b58aea2 | 8f26514c451e2398d5e3688c184ea74d1dad21b2 | /month_01/test_01/test_02.py | 60b70e67643224bf76ad67e8d5c2bc33fc6e5eb3 | [] | no_license | CircularWorld/Python_exercise | 25e7aebe45b4d2ee4e3e3afded082c56483117de | 96d4d9c5c626f418803f44584c5350b7ce514368 | refs/heads/master | 2022-11-21T07:29:39.054971 | 2020-07-20T10:12:24 | 2020-07-20T10:12:24 | 281,081,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | '''
2.需求:在终端中获取月份和年份,打印相应的天数.
1 3 5 7 8 10 12 有 31天
2平年有28天,闰年有29天
4 6 9 11 有 30天
步骤:在终端中录入年份和月份,根据逻辑判断 ,显示天数
'''
month = int(input('请输入月份:'))
year = int(input("请输入年份:"))
if month in range(1,13):
if month in (4, 6, 9, 11):
print(f"{year}年{month:02}月有30天")
elif month == 2:
if year % 4 ... | [
"jiayuhaowork@163.com"
] | jiayuhaowork@163.com |
4f7885709411c1849cb738566eade86235d66115 | 906ca170744eb2e075b7236814f2137a0283966d | /highFreq/subarraySumClosest.py | 375a0b7543a6c12ebb1706033df97221ba3ac4fe | [] | no_license | logancyang/lintcode | 815f893ee970d760403b409f2adcb11627ce917e | c541fa91b2187391320a8a1dd3e2ca75041b3dab | refs/heads/master | 2021-05-30T14:03:28.795033 | 2015-10-26T19:50:45 | 2015-10-26T19:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # subarraySumClosest: http://www.lintcode.com/en/problem/subarray-sum-closest/
class Solution:
"""
@param nums: A list of integers
@return: A list of integers includes the index of the first number
and the index of the last number
"""
# brute force O(n^3)
def subarraySumClosestBru... | [
"logan1934@gmail.com"
] | logan1934@gmail.com |
c56498fc4dae80612f8baae4f506c36ed59b0171 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Benzylpenicillin_Panpharma_powder_for_solution_for_injection_or_infusion_SmPC.py | 69089c71ae727141e3d4f4acc96f228c2a5007ba | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | {'_data': [['Uncommon',
[['General',
u'(>1/1 000 till Blodet och lymfsystemet: eosinofili < 1/100): Hud och subkutan v\xe4vnad: urtikaria']]],
['Rare',
[['General',
u'< 1/1 000): anafylaktiska reaktioner. Blodet och lymfsystemet: agranulocytos, hemolytisk a... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
813ed9d22c40ad0ebf512f0f48797ec447f7b234 | 00cb5907750926f1a9b0fde97301f10d01f49645 | /tf_quant_finance/models/euler_sampling.py | 27d3ed52099fd2850f5f9dd8d627110fafddc958 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] | permissive | dannyb2018/tf-quant-finance | 63761e4a39b615da6a5258e48030d2b12a142b26 | 668b4fb0f91b1f60c9015cef087b3e879ee2a4f7 | refs/heads/master | 2023-07-07T20:00:59.529305 | 2021-08-18T13:05:11 | 2021-08-18T13:05:51 | 284,707,826 | 0 | 0 | Apache-2.0 | 2020-08-03T13:29:15 | 2020-08-03T13:29:14 | null | UTF-8 | Python | false | false | 22,684 | py | # Lint as: python3
# Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
823d1a2718699ef51208e2f707d1e8d3994fa6a8 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/ovsdbcontroller_789ff2911c009a5ce719da4041ccbf73.py | f77a1ef26f1ad4fed45de942f83349bbf533fa7d | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,934 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
b7bad42217740964a6c56c458b83e77dcb6f7ac0 | 22102fe3aadaabb967b9a0e33af5ea624afdaa38 | /merge.py | 6c48c87b8644f6c9004bdadef6fdc3dcc8e4f93d | [
"MIT"
] | permissive | tecoholic/Election2021 | 1c840a0e7ba23c885ca07ab9e676087fb312189f | 0b3fb8930d09883f5b58584f6f14b02d30788cbf | refs/heads/main | 2023-04-30T22:20:37.406868 | 2021-05-14T11:17:16 | 2021-05-14T11:17:16 | 363,843,846 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import os
import pandas as pd
states = {
"AS": 126,
"KL": 140,
"PY": 30,
"TN": 234,
"WB": 294
}
def get_code(party):
if party.lower() == "none of the above":
return "NOTA"
party = party.replace("of ", "") # handle CPIM
parts = party.split(" ")
parts = [p.strip() for p in ... | [
"arun@arunmozhi.in"
] | arun@arunmozhi.in |
450884b464f60b3e241efe035f78dab576018545 | 56aa30f949f9e66bce9b7351d72cf76a65e8cd33 | /config/urls.py | 486d4479c5a6cb420fffdd8d1f3b3df2f07eba70 | [
"MIT"
] | permissive | bfssi-forest-dussault/food_list_db | 5684677aa9df6cd30fd81ae4a16940af34b32190 | 76d2d56a9948f41cf67f5a1c6612c2726bd0b8b7 | refs/heads/master | 2022-12-11T22:38:49.250432 | 2020-09-10T20:17:10 | 2020-09-10T20:17:10 | 294,507,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from django.views import defaults as default_views
from django.views.generic import TemplateView
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = ... | [
"forest.dussault@canada.ca"
] | forest.dussault@canada.ca |
c342af77f7076aebe55ba2cc939f06cccaabe9c9 | 137832600734c4a3a16966bbaba19d3540378f9a | /1768.py | d44ef2d1bd2a0adbdd61901b7614ced2cfa29e10 | [] | no_license | DidierStevens/DidierStevensSuite | e824354c80f5b7aae4dfb6e55f60178eb9ae208c | 8190354314d6f42c9ddc477a795029dc446176c5 | refs/heads/master | 2023-09-01T20:11:55.341694 | 2023-08-29T10:26:39 | 2023-08-29T10:26:39 | 35,275,445 | 1,670 | 554 | null | 2023-06-04T22:54:40 | 2015-05-08T11:21:00 | Python | UTF-8 | Python | false | false | 112,042 | py | #!/usr/bin/env python
from __future__ import print_function
__description__ = 'Analyze Cobalt Strike beacons'
__author__ = 'Didier Stevens'
__version__ = '0.0.19'
__date__ = '2023/04/27'
"""
Source code put in the public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
History:
... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
37f4be96948ac5d8e9f6f8094a2c25c829074819 | 45ee9a6d3ac82043241e96cbf2459e9d3937cd9c | /docs/source/conf.py | b7655eca2423b0fed3ffb8303d889a943a4dc47b | [
"MIT"
] | permissive | ggaughan/django-cities-light | 013f83e870e2f3eaf1ba93e212d83956b8b060a9 | bdd22248c7934d912b8e763360c132da2c794e27 | refs/heads/master | 2021-01-18T00:05:26.502029 | 2013-11-22T20:50:27 | 2013-11-22T20:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,421 | py | # -*- coding: utf-8 -*-
#
# django-cities-light documentation build configuration file, created by
# sphinx-quickstart on Sat May 19 19:32:33 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 f... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
1cb30c9e269871d07348485c6437fce3c01a5415 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pip/_vendor/msgpack/fallback.py | dd93d22d4040925980e877b62a2e0b299673c4bd | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f85297381085e0252cf5010ea8096cb08f88640d230516b6ed589e1429e0302e
size 37491
| [
"github@cuba12345"
] | github@cuba12345 |
b2fb7e9429aba97f24de724038516d82b01d2628 | c35b1d9dd99c7b0ad3e8bee3293df7042f9ae39a | /flatpages_plus/migrations/0006_auto__add_field_flatpage_photo.py | aafdf685ac68e4d45ca808587c1bf1d9451669dc | [
"MIT"
] | permissive | grengojbo/django-flatpages-plus | 467b2e82d3f2d3c71629ddab5288e1416e5ddeda | 29af987565dd4c87fa3b0751105b5521e2690374 | refs/heads/master | 2020-12-24T20:42:23.064557 | 2014-03-02T17:29:22 | 2014-03-02T17:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,533 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'FlatPage.photo'
db.add_column('flatpages_plus_flatpage', 'photo',
self... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
af5d7b1d518ffbf1091fa797c5bab04d0ceafc39 | 5b5eb61c02a1ee6632036a31108d5c962d474d2e | /00/pytorch.py | bae78442e40b561cf168d0df6d691ad703c08406 | [] | no_license | seven320/deeplearning | 73c76fa5e006a9164ed11fe9538b4975c0bdc161 | 56300e450caf390b4f953a9c882a9b4701ccb971 | refs/heads/master | 2021-04-26T22:27:47.019462 | 2018-11-06T02:09:04 | 2018-11-06T02:09:04 | 124,096,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
# coding: utf-8
# pytorch とは?
# https://pytorch.org/tutorials/beginner/blitz/tensor_tutorial.html#sphx-glr-beginner-blitz-tensor-tutorial-py
# In[ ]:
from __future__ import print_function
import torch
x = torch.empty(5, 3)
print(x)
# ランダム初期設定行列(randomly initialized matrix)
# In[7]:
x = torch.rand(5,3)
print(... | [
"yosyuaomenw@yahoo.co.jp"
] | yosyuaomenw@yahoo.co.jp |
4a70189f56b7c999e46df08262eb3ac37e231c87 | 77871bb4c5f4714a19c33ad804a20c94bcdacc7e | /Interfaces/AI/Stepper/Pokestopper.py | abd44d28f5e7de1647e7ca9a35e479c9fd8da45b | [] | no_license | MaxOnNet/PokeStats | 58165f449acf3fc5b14e4f3a63a783f947df3eb8 | 3eb5aa2d13833b1d2299023f4d6f88348bae3bd6 | refs/heads/master | 2021-01-20T20:28:56.999545 | 2016-08-24T08:06:41 | 2016-08-24T08:06:41 | 63,936,162 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,961 | py | # -*- coding: utf-8 -*-
import logging
import random
from math import ceil
from sqlalchemy import text as sql_text
from Interfaces.MySQL.Schema import Pokestop, parse_map_cell
from Interfaces.AI.Human import sleep, random_lat_long_delta, action_delay
from Interfaces.AI.Stepper.Normal import Normal
from Interfaces.AI.Wo... | [
"viktor@tatarnikov.org"
] | viktor@tatarnikov.org |
72d83f61ea7278de06a9f45c110a3ffba2430063 | 163808746e51d378f69a966645b8bb8a855b4625 | /MyMain1012/MyMain1012/mislHrf.py | 860d28ba23c0e7b4b51f525d9b16734181920a56 | [] | no_license | 0024thiroshi/comm5.0_fall_semester | 02b26b506b759dd7b18b963295a8908cb4a78245 | db350599b7085e56fbf2c316e74cd7a5b48f02b8 | refs/heads/main | 2023-02-12T13:07:34.080809 | 2021-01-13T06:03:04 | 2021-01-13T06:03:04 | 329,202,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import scipy
import numpy as np
from math import exp
import pandas as pd
import scipy.stats as sps
import matplotlib.pyplot as plt
import math
def hrf(nt,
peak_delay=6,
under_delay=10,
p_u_ratio = 6,):#nt:時間間隔
t = np.arange(0,30+nt,nt)
peak_disp=1
under_disp=1
normalize=True ... | [
"“0024thiroshi@gmail.com”"
] | “0024thiroshi@gmail.com” |
b2eb613a9162290732d40c2631fdb47d3cb98dbf | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/src/programy/storage/stores/sql/dao/link.py | f6447200627f0fc643988dcc8badf78e7d13dab7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,960 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
e7e44f6c501f1455b389ef57e85fc9f635efc6a2 | b0ddd37a614556785b2ecd3d408357fd010ed72f | /test/test_py2vega.py | 61017752de6e06bfb281d05b43ba4bed2c5c5854 | [
"BSD-3-Clause"
] | permissive | codeaudit/py2vega | 837c9b347f4968956656fcfbc15b2d69110e267f | a3a94bf7e29414a649b796e3202a5621befadbb3 | refs/heads/master | 2020-07-07T13:06:04.690110 | 2019-08-20T08:49:12 | 2019-08-20T08:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,294 | py | import pytest
from py2vega import py2vega
from py2vega.functions.math import isNaN
whitelist = ['value', 'x', 'y', 'height', 'width', 'row', 'column']
def test_nameconstant():
code = 'False'
assert py2vega(code, whitelist) == 'false'
code = 'True'
assert py2vega(code, whitelist) == 'true'
code... | [
"martin.renou@gmail.com"
] | martin.renou@gmail.com |
d771baddfaa09a4c3db22756b3f490f38382cbf3 | afada51a34ebc932fc9ca824ecf56aae04e3d74b | /lib/enrichment_modules.py | b74c4fce6db72594a14b0b79acb4fe6ac996284c | [] | no_license | SkBlaz/CBSSD | 0ec8c7e3fc2765d4897b650f584e97afabf7c4f6 | 3043a76c7065fa0f13770f38d3b7b3f661a9f117 | refs/heads/master | 2021-01-01T19:53:21.190536 | 2019-02-01T06:31:23 | 2019-02-01T06:31:23 | 98,710,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,931 | py | ##### this pyton code enables enrichment calculation from graph results from previous step
## this is to calculate enrichment scores
from scipy.stats import fisher_exact
import multiprocessing as mp
import random
from statsmodels.sandbox.stats.multicomp import multipletests
from collections import defaultdict, Counte... | [
"skrljblaz@gmail.com"
] | skrljblaz@gmail.com |
3e01df71c43a92672a6b4387ffcd0d505ed0ef01 | 6c219c027c7d0ef454bdeac196bd773e8b95d602 | /cms/php168/php168_login_getshell.py | 08224eb0012c6eed6e10a98c7606dfd32c336bc4 | [] | no_license | aStrowxyu/pocscan | 663f3a3458140e1bce7b4dc3702c6014a4c9ac92 | 08c7e7454c6b7c601bc54c21172c4788312603b1 | refs/heads/master | 2020-04-19T10:00:56.569105 | 2019-01-29T09:31:31 | 2019-01-29T09:31:31 | 168,127,418 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: PHP168 login.php GETSHELL漏洞
referer: http://wooyun.org/bugs/wooyun-2014-050515
author: Lucifer
description: Powered by php168 v6或者一下版本v5、v4、v3、v2、v1会搜索到很多很多相关的网站,login.php文件可以把代码写入cache目录中。
'''
import sys
import requests
import warnings
from termcolor import cprin... | [
"wangxinyu@vackbot.com"
] | wangxinyu@vackbot.com |
86024511a554590ea7ae122070eab0f619c43d93 | 4fd5860beb1e6809eee297509bcc776dfca40aca | /event_synchronization_analysis/ed_lf_es_mc.py | cab4b7d9f4e05674b37592ab836218dde4a38ed7 | [] | no_license | manmeet3591/fingerprint-volcano-enso-im | 40a41eca517abdd09079feb7ae58cc866343d6a8 | 21f39125ece4d03c5ee2961e4aae3768ee61cdb8 | refs/heads/master | 2021-07-05T09:49:28.858614 | 2021-04-19T02:55:45 | 2021-04-19T02:55:45 | 229,057,834 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py |
# coding: utf-8
# In[1]:
from __future__ import print_function, division
get_ipython().run_line_magic('matplotlib', 'inline')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import datetime as dt
import warnings
import random
warnings.filterwarnings("ignore")
sns.set()
... | [
"manmeet20singh11@gmail.com"
] | manmeet20singh11@gmail.com |
03a9dfea771fb783bbd10950701d0049f6fa4eb3 | b76e39e535499704368eddc26237dc0016ef7d06 | /RailRites/allsiemensdriveprocessing.py | a9963fed91147d1a03a027d0f56cd7e4d6f3f9fa | [] | no_license | BUBAIMITRA2018/castersimulation | 0532e53df7d346c2824e577cc91cd0ac2ce4694c | eca5fddff5c0f33f785168f6b1e9f572c1622be0 | refs/heads/master | 2022-12-10T02:45:04.207196 | 2020-09-09T05:35:54 | 2020-09-09T05:35:54 | 260,110,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py |
from observable import *
import logging
from clientcomm_v1 import *
from readgeneral_v2 import *
logger = logging.getLogger("main.log")
threadlist = []
class AreaObserver:
def __init__(self, observable):
observable.register_observer(self)
def notify(self, *args, **kwargs):
for item in arg... | [
"subrata.mitra@sms-group.com"
] | subrata.mitra@sms-group.com |
29156ba1d65e04552c8a58d16cf74743e89ed231 | f820d23a92ea5050b9bd6d9eff346532bf64a950 | /cucumber.py | 5b8360d11e34242043045d1d1722155d084ada17 | [] | no_license | aidardarmesh/behave | af84cb42c6e7fa3b1b45ff1ed424341dba1aec62 | 64aa16af5ee8c0b8b68ce56fad6237abe81551ec | refs/heads/master | 2022-11-30T16:15:54.914006 | 2020-08-12T17:35:33 | 2020-08-12T17:35:33 | 287,071,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | class Basket:
def __init__(self, initial_weight):
self.weight = initial_weight
| [
"darmesh.aidar@gmail.com"
] | darmesh.aidar@gmail.com |
ee0bc5029cbb3d92a0311e726a37acbb4ac87617 | 6601acd5ba7aaaa11f8620df9509e951574373b4 | /aircraft_comparisons/make_1D_histograms.py | bbdbf982f6c812b8a0ea1ad7599d3578d647ec37 | [] | no_license | rachawker/Hawker_ACP_2021-UM_CASIM_paper | 852d07519e4c15791e38bdf8ba7ae4ee9ac3707c | ff3cdd0b1ff72b0fed477824679ab7da49976aa3 | refs/heads/main | 2023-04-07T20:23:16.738292 | 2021-04-22T13:07:22 | 2021-04-22T13:14:40 | 360,516,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,512 | py |
from __future__ import division
import matplotlib.gridspec as gridspec
import iris
#import iris.coord_categorisation
import iris.quickplot as qplt
import cartopy
import cartopy.feature as cfeat
import rachel_dict as ra
#import iris ... | [
"rhawker@sci2.jasmin.ac.uk"
] | rhawker@sci2.jasmin.ac.uk |
83c8ab86e6e3a8b6764880c6ff5d8c569fa8a7b8 | 2612f762ec75a0723a4d12ae1d63a30792e4c236 | /src/websocket_server/src/ws_ros.py~ | f804ffdceb5f6c972b0265f5cf2bc6bfa41642a3 | [] | no_license | aransena/catkin_ws | efdf1a52b7dbbefbfa9cb748630f7be1ffd7f628 | eae6b83c80803a718a8e41569d3b4e7c1c838926 | refs/heads/master | 2021-01-18T21:12:48.557260 | 2016-06-03T13:39:22 | 2016-06-03T13:39:22 | 52,208,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | #!/usr/bin/env python
# sample code from http://iot-projects.com/index.php?id=websocket-a-simple-example
import rospy
from std_msgs.msg import String as ros_string
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
import tornado.web
import json
pub = rospy.Publisher('websocket_server_msgs', ... | [
"aransena@gmail.com"
] | aransena@gmail.com | |
31e398f160b1e7e9561e782bfa7d7d1eb3c10ec1 | dea48ecac82d241e7960f52794eb8a29e5d2e428 | /jianzhioffer/二叉树/字符串验证是否树的前序遍历.py | 0947369b674e63e6e19fb50a48bf9bcedce51ce0 | [] | no_license | yxx94/2020- | e2302bed32c5d7d1e8b559ef378fc60408687934 | e63431cfc3d8c8903bb383144dd0c5ed5d71aa5c | refs/heads/master | 2020-09-03T09:04:08.795099 | 2019-09-19T08:12:51 | 2019-09-19T08:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # coding=utf-8
# 字符串验证是否树的前序遍历
'''
//遍历一边str[]
//如果不是"#"就会多出一个叶子结点,如果是"#"就会减少一个叶子结点
输入: "9,3,4,#,#,1,#,#,2,#,6,#,#"
输出: true
'''
class Solution(object):
def isValidSerialization(self, preorder):
res = 1 # 叶节点的个数
for val in preorder.split(','):
if not res:
return False
... | [
"jiachen0212@163.com"
] | jiachen0212@163.com |
2eed8db45422d9c88538efb423a9a4754c1887e2 | 3a21faa925e8a21ad5e0d6dedf3037cc52750cbd | /datasciencebox/tests/test_cluster.py | 89b93a7e9fa3876d1158ec3b5b928d7a7a92c6fe | [
"Apache-2.0"
] | permissive | yabebalFantaye/datasciencebox | 9e630f9ad9139a609d9d925ce4a3f29467bf661f | 9f57ae85a034357d5bc15a12f3ebd15930f33ff1 | refs/heads/master | 2021-01-15T18:14:01.730969 | 2015-09-06T05:42:23 | 2015-09-06T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import pytest
from datasciencebox.core.settings import Settings
from datasciencebox.core.cloud.cluster import Cluster
settings = Settings()
def test_cluster_from_to_list():
data = [{'id': 0, 'ip': '0.0.0.0'}, {'id': 1, 'ip': '1.1.1.1'}, {'id': 2, 'ip': '2.2.2.2'}]
cluster = Cluster.from_list(data, settings)... | [
"df.rodriguez143@gmail.com"
] | df.rodriguez143@gmail.com |
6e21f862d7e958f80ed264d9ffd7489494b638db | d9f52125601ec26f79202f0e912891b31b60ffc4 | /오후반/Sets/3_Set_union_Operation/3_Set_union_Operation_LGY.py | c79cb4088243b817c276b33d76d8101e5cfec87e | [] | no_license | YoungGaLee/2020_Python_coding-study | 5a4f36a39021c89ac773a3a7878c44bf8b0b811f | b876aabc747709afa21035c3afa7e3f7ee01b26a | refs/heads/master | 2022-12-12T13:34:44.729245 | 2020-09-07T04:07:48 | 2020-09-07T04:07:48 | 280,745,587 | 4 | 4 | null | 2020-07-22T03:27:22 | 2020-07-18T21:51:40 | Python | UTF-8 | Python | false | false | 135 | py | first = int(input())
A = set(input().split())
second = int(input())
B = set(input().split())
result = A.union(B)
print(len(result))
| [
"noreply@github.com"
] | YoungGaLee.noreply@github.com |
78e205ae750a4be5a068a55c9c559e1374f631e3 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /hacker_rank/domains/algorithms/sorting/almost-sorted_sunghyo.jung.py | 0264ebbc94a8388fd6ffbfafa0b6f4d7256e3e34 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | n = int(input())
ar = map(int, raw_input().split())
d = []
for i in range(1, n):
if ar[i] < ar[i - 1]:
d.append(i)
if len(d) == 1:
a, b = d[0] - 1, d[0]
ar[a], ar[b] = ar[b], ar[a]
if ar == sorted(ar):
print("yes")
print("swap %d %d" % (a + 1, b + 1))
else:
print("no... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
4e8ad11d0b63d59fba4ed5c53a72136da7a90273 | 7c24607e5c201e9a6d4ab86bb89f5aa882aa65bf | /sib_api_v3_sdk/models/create_smtp_template.py | ec035dcd91cc45904777e8a6325c77808f609663 | [
"MIT"
] | permissive | SportPursuit/APIv3-python-library | f9c715f59ada2efce1f8ff69d167e71bfc71b598 | a615e09ccb59d78fd9baa9f45e1a70f2f882fe16 | refs/heads/master | 2021-05-10T13:19:41.566860 | 2017-12-27T10:59:34 | 2017-12-27T10:59:34 | 118,469,772 | 0 | 0 | null | 2018-01-22T14:42:32 | 2018-01-22T14:42:31 | null | UTF-8 | Python | false | false | 11,754 | py | # coding: utf-8
"""
SendinBlue API
SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h... | [
"mymac@Aakankshas-MacBook-Air.local"
] | mymac@Aakankshas-MacBook-Air.local |
70bbe8208649b16729cf28e1e4a6518b00610e12 | 0617c812e9bf58a2dbc1c1fef35e497b054ed7e4 | /venv/Lib/site-packages/pyrogram/raw/functions/account/check_username.py | d280838035783c8751c6caf5d199e15af0b780fc | [] | no_license | howei5163/my_framework | 32cf510e19a371b6a3a7c80eab53f10a6952f7b2 | 492c9af4ceaebfe6e87df8425cb21534fbbb0c61 | refs/heads/main | 2023-01-27T14:33:56.159867 | 2020-12-07T10:19:33 | 2020-12-07T10:19:33 | 306,561,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"houwei5163"
] | houwei5163 |
b7d132d47f8448aeb6077d1264063bf458f2674c | e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b | /Project Euler/014 - Collatz sequance.py | d3aabfadf4ae8c3e4f5527c2ef44622211ca50e0 | [] | no_license | thran/the_code | cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a | ba73317ddc42e10791a829cc6e1a3460cc601c44 | refs/heads/master | 2023-01-05T14:39:16.708461 | 2022-12-25T08:37:39 | 2022-12-25T08:37:39 | 160,978,160 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def next_collatz(n):
if n % 2 == 0:
return n / 2
return 3 * n + 1
def collatz_lenght(n):
if n == 1: return 1
return collatz_lenght(next_collatz(n)) + 1
m = 0
best = 0
for i in range(1, 10**6):
l = collatz_lenght(i)
if m < l:
m = l
best = i
print m, best | [
"thran@centrum.cz"
] | thran@centrum.cz |
44b80c569089638f50802259a2b208a0acc1f02b | ee58b29d8982cc6987b986ee616bc47b6a8d8aa3 | /python/dcp_367_merge_iterators.py | fa15d8ab6be1c94d2399b380055906ae31def2cf | [] | no_license | gubenkoved/daily-coding-problem | 7dd9e0a7ee6606a04cd50fa2766e650da1259f7b | ea8b352b1d3d1f44cd0f04ddaadf3e662f4c85bf | refs/heads/master | 2021-07-03T22:31:50.519730 | 2020-09-27T10:28:09 | 2020-09-27T10:28:09 | 172,369,604 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # This problem was asked by Two Sigma.
#
# Given two sorted iterators, merge it into one iterator.
#
# For example, given these two iterators:
#
# foo = iter([5, 10, 15])
# bar = iter([3, 8, 9])
# You should be able to do:
#
# for num in merge_iterators(foo, bar):
# print(num)
#
# # 3
# # 5
# # 8
# # 9
# # 10
# # 1... | [
"gubenkoved@gmail.com"
] | gubenkoved@gmail.com |
4bd60b2710f545f82a96f3c453c1fe5e6af26c4e | 6caab8d886e8bd302d1994ff663cf5ccb5e11522 | /MyNotes_01/Step01/4-CORE/day02_15/demo04.py | 899097f7197eb4379f74f3afa0259428d5a3dcf2 | [] | no_license | ZimingGuo/MyNotes01 | 7698941223c79ee754b17296b9984b731858b238 | 55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6 | refs/heads/master | 2022-07-30T21:30:32.100042 | 2020-05-19T16:59:09 | 2020-05-19T16:59:09 | 265,254,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # author: Ziming Guo
# time: 2020/2/24
"""
demo04:
异常处理
练习:exercise03.py
"""
def div_apple(apple_count):
# ValueError
person_count = int(input("请输入人数:"))
# ZeroDivisionError
result = apple_count / person_count
print("每人%d个苹果"%result)
"""
try:
# 可能出错的代码
div_apple(10)
except Ex... | [
"guoziming99999@icloud.com"
] | guoziming99999@icloud.com |
dda479fe3985fbe635d716f2b72e44d05c545d36 | 016109b9f052ffd037e9b21fa386b36089b05813 | /checkTree.py | 824b6551f6e8aaa158948abc4cfda4bca896f43e | [] | no_license | nsshayan/DataStructuresAndAlgorithms | 9194508c5227c5c8c60b9950917a4ea8da8bbab2 | 2f7ee1bc8f4b53c35d1cce62e898a9695d99540a | refs/heads/master | 2022-09-29T21:15:33.803558 | 2022-09-08T17:14:59 | 2022-09-08T17:14:59 | 73,257,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | '''
Given :-
the number of nodes in a graph
the degree of each of the vertices
Find whether the given graph is tree or not
'''
N = int(raw_input())
Degree = raw_input().split(" ")
sum = 0
for i in range(len(Degree)):
sum = sum + int(Degree[i])
if sum/2 == N-1:
print "YES"
else :
print "NO" | [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
b6faf20877f683beab77c503370315724c92cdac | 5fb579602489728ac47e195bd15838eb632aece4 | /tests/test_utils.py | 99a1fd9fe74c0728ba2a92baf3a1f722c68f4174 | [
"MIT"
] | permissive | Cesare-Liu/cryptokit | 6101701f3daec60ce8ca2f8a2bb464a58ccae20e | bfb90c229279c3c755bdbedfe659d7d5b6e65b51 | refs/heads/master | 2020-03-27T10:38:20.714133 | 2018-06-07T06:15:51 | 2018-06-07T06:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | # coding: utf-8
"""test utils."""
from __future__ import unicode_literals
import datetime
from unittest import TestCase
from cryptokit.rsa import RSACrypto
from cryptokit.utils import (load_pfx, generate_certificate, generate_pfx,
get_pubkey_from_pfx)
class UtilTestCase(TestCase):
... | [
"istommao@gmail.com"
] | istommao@gmail.com |
d152111c4317b9090484c966da3a4671a305c7de | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02755/s084222637.py | a56cd5d0e5b0b0922a2417c7c93736a84b7a05d5 | [] | 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 | 136 | py | a,b=map(int,input().split())
for i in range(100001):
if int(i*0.08) == a and int(i*0.1) == b:
print(i)
break
else:
print(-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
76da4859384e1d8a645aaf5c79f6116f3d66c864 | 38c35956be6343855914b1c58b8fbd2e40c6e615 | /Strings/2023.py | 449cb787bc1f493dc6d2d3557856b2f76693cf95 | [] | no_license | LucasBarbosaRocha/URI | b43e4f4a6b3beed935f24839001bea354411c4bd | 2c9bcc13300a9f6243242e483c8f9ec3296a88ad | refs/heads/master | 2020-06-25T05:06:51.297824 | 2019-08-22T04:50:11 | 2019-08-22T04:50:11 | 199,210,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | lista = []
l = ""
while True:
try:
entrada = input()
l = l + entrada + "+"
except :
break
#print (l)
l = l[:len(l) - 1]
original = l.split("+")
lista = l.lower()
lista = lista.split("+")
lista.sort()
escolhido = lista[len(lista) - 1]
for i in range(len(original)):
if (escolhido == original[i].lower()):
print... | [
"lucas.lb.rocha@gmail.com"
] | lucas.lb.rocha@gmail.com |
58412d85187532f9f42d4f40e1c022211b03d8f3 | 4e1af52e60dd997fca04be3485e157292cf84b6a | /2020/tests/test_day08.py | c14b7db55c5cf09e4fcbd77b7364367ebec9a8fd | [
"MIT"
] | permissive | JesperDramsch/advent-of-code | e0173d4e78cf274ae461b39d619f56a03ef54773 | ccad3d578be473bf44dea7284c2f99fd67f3271c | refs/heads/main | 2023-01-13T07:18:30.772913 | 2022-12-25T16:12:02 | 2022-12-25T16:39:53 | 160,000,829 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import sys
import pytest
sys.path.insert(0, ".")
from util import Day
from day08 import *
@pytest.fixture(scope="function")
def day():
day = Day(8)
day.load(typing=str)
return day
def test_example(day):
data = """nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6"""
day.load(data, ty... | [
"jesper@dramsch.net"
] | jesper@dramsch.net |
b207fefd6ccd6d562f1572e2426380b43b6f1983 | 76563ffc91a6f35ffab2986693f0124a3a3aaf86 | /Crawler/2-DecisionTreeClassifier.py | 4f7047571f73169fdfd436414573723cf4d2f024 | [] | no_license | zelenkastiot/FCSE-Data-Mining | ab7aea21402742c518857a1c871d3e0a033f8581 | 6e1ffbada09784bb846af54aefc57fe0eb257a17 | refs/heads/master | 2023-02-27T17:14:10.457335 | 2021-02-07T22:13:20 | 2021-02-07T22:13:20 | 289,999,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | """
Created on 15-Jan-21
@author: Kiril Zelenkovski
"""
import math
from sklearn.preprocessing import OrdinalEncoder, LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import CategoricalNB
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import accuracy_s... | [
"zelenkastiot@gmail.com"
] | zelenkastiot@gmail.com |
2ebbafa1c2d6e457a74cceb59b8ab893eab097ca | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/configs/fpg/retinanet_r50_fpg_crop640_50e_coco.py | 6c517c9bfc6efebd56f35173b33505ea42865e03 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | _base_ = "../nas_fpn/retinanet_r50_nasfpn_crop640_50e_coco.py"
norm_cfg = dict(type="BN", requires_grad=True)
model = dict(
neck=dict(
_delete_=True,
type="FPG",
in_channels=[256, 512, 1024, 2048],
out_channels=256,
inter_channels=256,
num_outs=5,
add_extra_c... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
c89927df7078e8bf390e1f73ca56617223ac32d4 | cef4f2e3357577bf56d3181dba988d0006d796b9 | /Projects/CourseInfo/Services/BussinessLogicServices/CourseService-old.py | 3ecae3d629720953d59c8dacbef0d7c8def24fd4 | [] | no_license | IshaShah27/E6156F21 | 5256715399f58d5f03dc6b4b8cf8e3920eb55bc7 | 8769203cf61a5ca96d5baa5ad1be34b1031ffffe | refs/heads/main | 2023-08-26T22:07:13.469515 | 2021-10-18T21:31:01 | 2021-10-18T21:31:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | import Services.DataAccessServices.CourseWorksAdapter as cw_adapter
class Student():
def __init__(self, context, j_data):
self._context = context
self.id = j_data["id"]
self.user_id = j_data["sis_user_id"]
self.login_id = j_data["login_id"]
name_fields = j_data["sortable_n... | [
"donff2@aol.com"
] | donff2@aol.com |
e32ac73c3af16ed8be75891963807a7fb28d0ba1 | bc441bb06b8948288f110af63feda4e798f30225 | /next_builder_sdk/model/flowable/process_instance_pb2.py | a763c2c5d25ebaa8d7f7708cb7b4d2a1e212f761 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,254 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: process_instance.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | [
"service@easyops.cn"
] | service@easyops.cn |
8c626ab93dbf410bba8151b8cdd660481d96c411 | a2c575fe2cf4afa40ec2adb8d5b98ec47693665b | /thread_api/model_builder.py | 1408f69c6ff601cbc6c4b8fa998e7f5224c3adaf | [] | no_license | cosmicBboy/confesh-bots | b530ba866fee5d276a8428670f2b2fb3a3f1ca3b | e1115a7c3f3cfb13d5b2e185c0b9410ccc09f5e4 | refs/heads/master | 2021-03-19T08:28:25.579876 | 2018-04-12T20:13:05 | 2018-04-12T20:13:05 | 44,482,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | '''Module for Building a Model
Train a Word2Vec Model based on secret and comment text on www.confesh.com
1. Read secret and comment text
2. Train a Word2Vec model
3. Serialize model to S3
'''
import logging
import pandas as pd
import mongo_creds as creds
import json
import sys
import smart_open as so
from collection... | [
"niels.bantilan@gmail.com"
] | niels.bantilan@gmail.com |
1a95ee42312d01afa32e915af2536f8f124984c7 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/denonavr/receiver.py | 28969d2579256202064fcda1e7a514fa6498a181 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,668 | py | """Code to handle a DenonAVR receiver."""
from __future__ import annotations
from collections.abc import Callable
import logging
from denonavr import DenonAVR
_LOGGER = logging.getLogger(__name__)
class ConnectDenonAVR:
"""Class to async connect to a DenonAVR receiver."""
def __init__(
self,
... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
8bfbca51d0b37ee289502c1fbaaf5efe3b2fda3e | debffca14a39dbeaf6af2f1b73ea530913e2cdad | /astromodels/tests/test_load_xspec_models.py | e10e14154daf319d6f29bd8409ebbdc01001fd9b | [
"BSD-3-Clause"
] | permissive | BjoernBiltzinger/astromodels | 6986695abfc4510a62254854fd0977b1e96e192f | d94a3d3bc607def2b5e3cd145c3922e0a00a7b15 | refs/heads/master | 2022-11-03T19:28:16.949036 | 2019-03-12T17:05:59 | 2019-03-12T17:05:59 | 175,420,543 | 0 | 0 | BSD-3-Clause | 2019-03-13T12:53:03 | 2019-03-13T12:53:03 | null | UTF-8 | Python | false | false | 641 | py | import pytest
import astropy.units as u
try:
from astromodels.xspec import *
except:
has_XSPEC = False
else:
has_XSPEC = True
# This defines a decorator which can be applied to single tests to
# skip them if the condition is not met
skip_if_xspec_is_not_available = pytest.mark.skipif(not has_XSPEC,
... | [
"giacomo.vianello@gmail.com"
] | giacomo.vianello@gmail.com |
0aab616a8c0ca629a1f4e434c91a20302f47285b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/monitoring/metricsscope/v1/monitoring-metricsscope-v1-py/google/monitoring/metricsscope_v1/__init__.py | 1530640d664a0943bb90109a53b0c43ead78fa5b | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b4d83d9b56e607732cd70a9353169eb6c897b04c | 2a2435c1955f61727c9968ea87a599d6e999c1bd | /core/migrations/0010_billingaddress.py | 88d7b724fb03f794792b0d947aca41ec9c668d05 | [] | no_license | mahmoudabuelnaga/dje-commerce | 9a5ba483b568613860d55c6062a01cd08ff9466c | 964917da53dc6045c4374943fce68d7de0edad37 | refs/heads/master | 2020-12-15T17:59:11.443834 | 2020-02-23T23:55:29 | 2020-02-23T23:55:29 | 235,202,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.2 on 2020-01-20 02:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mahmoudaboelnaga392@gmail.com"
] | mahmoudaboelnaga392@gmail.com |
d1df2196740c711b82b68bf80a7a61e19b6efa9f | 84b99814136f134fc2238a266225ed8342b6ede0 | /artemis_pcie/artemis_pcie.py | 467fc4772e63824248331ac13bb98a51834d7d05 | [
"MIT"
] | permissive | CospanDesign/nysa-artemis-pcie-platform | 1f25f3e940c43acc631d9c0cb1ecdee26e846af0 | 844be4b14b27520eb4bb15b8a2f18d7797b91943 | refs/heads/master | 2021-01-21T04:35:18.492160 | 2016-07-04T20:25:43 | 2016-07-04T20:25:43 | 48,339,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,373 | py | """ artemis_pcie
Concrete interface for Nysa on the artemis_pcie board
"""
__author__ = 'you@example.com'
import sys
import os
import time
from collections import OrderedDict
from array import array as Array
from nysa.cbuilder.sdb import SDBError
from nysa.host.nysa import Nysa
from nysa.host.nysa import NysaError
... | [
"cospan@gmail.com"
] | cospan@gmail.com |
e72fb5148e9d6560555da3cb66069e5cb311d78e | 147519505f3c47e5f10d9679e07d3719931b9fd0 | /my_contacts/contacts/views.py | 177a81dfd5a303c238013aa4c1cbcc9b156afbe2 | [] | no_license | grbalmeida/hello-django | 85ed28d8d47a9a2e072f3eecd13d22fb2e977a31 | 9ef261ba5faeac3de8d36eeb7efa8974e5d1e661 | refs/heads/master | 2020-08-12T10:10:48.554349 | 2019-12-20T01:18:33 | 2019-12-20T01:18:33 | 214,748,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | from django.shortcuts import render, get_object_or_404, Http404, redirect
from django.core.paginator import Paginator
from django.db.models import Q, Value
from django.db.models.functions import Concat
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .models import Cont... | [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
8dc96ae6d44f834bc6be387acb6a7d8ae7d3e972 | a9eed4d7b8d5256af9f33363761683bba32f106f | /apps/organization/migrations/0006_auto_20180620_2140.py | 98e71397529b5d6e0e4d6500af697f01abd731dc | [] | no_license | cannon-liu/mkonline | 12735d4761663ba42fdd6fe781a2658a5db1b383 | 2a1c64c10ae67abe58c1bfcd77c564fd53957067 | refs/heads/master | 2020-03-28T22:19:08.747770 | 2018-09-18T06:17:50 | 2018-09-18T06:17:50 | 149,223,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.0.6 on 2018-06-20 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0005_auto_20180620_1655'),
]
operations = [
migrations.AlterField(
model_name='teacher',
name='image... | [
"woliuliwen@163.com"
] | woliuliwen@163.com |
50d3fa769119f65fde8c60106790dd20765218bf | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/profiler.py | 721d79980232dad6801fb4dd8236482b83610596 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from cProfile import Profile
from pstats import Stats
__author__ = 'Daniel'
def demo():
f = lambda x: x
profiler = Profile()
profiler.runcall(f)
stats = Stats(profiler)
stats.strip_dirs()
stats.sort_stats('cumulative')
stats.print_stats()
stats.print_cal... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
045e91eefbb6784e11a0d581027f7438c82d7ee4 | 211874c8c72ad0ff1e4d30b29f2e179161a36195 | /lingvo/tasks/milan/params/dual_encoder_recipe.py | 34d43f560fae603a1f930703f68e0a0e586a149f | [
"Apache-2.0"
] | permissive | sailfish009/lingvo | d3308260d2365477e38c4b1b61bdaa4405172b1e | 432e1b0918459c28fcfbed0e6d1a2f48a962a80f | refs/heads/master | 2023-04-19T03:15:51.420821 | 2021-04-27T22:52:45 | 2021-04-27T22:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | # Lint as: python3
# Copyright 2021 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 ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
ca570fc3f6bac84c77a2c7ed692f80fdf74003e1 | d737fa49e2a7af29bdbe5a892bce2bc7807a567c | /software/qt_examples/src/pyqt-official/sql/cachedtable.py | fc5e0ccdcaaacec4422fb011786cc34c79471638 | [
"MIT",
"CC-BY-NC-SA-4.0",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | TG-Techie/CASPER | ec47dfbfd6c3a668739ff4d707572e0b853518b4 | 2575d3d35e7dbbd7f78110864e659e582c6f3c2e | refs/heads/master | 2020-12-19T12:43:53.825964 | 2020-01-23T17:24:04 | 2020-01-23T17:24:04 | 235,736,872 | 0 | 1 | MIT | 2020-01-23T17:09:19 | 2020-01-23T06:29:10 | Python | UTF-8 | Python | false | false | 4,184 | py | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... | [
"TGTechie01@gmail.com"
] | TGTechie01@gmail.com |
9fc60961ec8cdf589ac40c7a9a1ed86cf073e0f3 | 2c95e0f7bb3f977306f479d5c99601ab1d5c61f2 | /olive/rpc/farmer_rpc_api.py | 2544c04855463194e9428596f772ea7d75e8b7b9 | [
"Apache-2.0"
] | permissive | Olive-blockchain/Olive-blockchain-CLI | d62444f8456467f8105531178d2ae53d6e92087d | 8c4a9a382d68fc1d71c5b6c1da858922a8bb8808 | refs/heads/main | 2023-07-19T03:51:08.700834 | 2021-09-19T16:05:10 | 2021-09-19T16:05:10 | 406,045,499 | 0 | 0 | Apache-2.0 | 2021-09-19T16:05:10 | 2021-09-13T16:20:38 | Python | UTF-8 | Python | false | false | 5,569 | py | from typing import Callable, Dict, List, Optional
from olive.farmer.farmer import Farmer
from olive.types.blockchain_format.sized_bytes import bytes32
from olive.util.byte_types import hexstr_to_bytes
from olive.util.ws_message import WsRpcMessage, create_payload_dict
class FarmerRpcApi:
def __init__(self, farme... | [
"87711356+Olive-blockchain@users.noreply.github.com"
] | 87711356+Olive-blockchain@users.noreply.github.com |
aaa6aa548821da963e638937b213dc378966b3c7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/88/23890/submittedfiles/av2_p3_civil.py | ed8eac935d52a83bb78809e7cbded4971043205d | [] | 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 | 708 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def slinha(a,x):
soma=0
for j in range(0,a.shape[1],1):
soma=soma+a[x,j]
return soma
def scoluna(a,y):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,y]
return soma
def somatorio(a,x,y):
soma=... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3951a840c8f398942a0c28d4e5f40a8e9f9f69a1 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_03_17_plastic_polycrystal/calibration.py | f385c0c6a6ac236b52df962dea3b4c3b32f84600 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 23 14:25:50 2014
This script performs the MKS calibration given the microstructure function
and the FIP response, both in frequency space.
@author: nhpnp3
"""
import time
import numpy as np
import functions as rr
from functools import partial
import tables as tb
def c... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
a01a5b1f58abd518d11593d8bf433d842f768037 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/pyface/i_image_cache.py | 4a5bd9b1c0f48877eacba33f5ee9f7ac19573d67 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 50 | py | # proxy module
from pyface.i_image_cache import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
c3844394a1d734f67a9d8879ca813c80bfbe37eb | 80f56878dbceb714266abca85519ebbfa131404e | /app/main.py | 9266f39af6e62cd635ea47fef07f21720c4cb42c | [] | no_license | z-sector/async-fastapi-sqlalchemy | 1b944173972bc8487a2f9c638810ba0ffffbbbf5 | 9d622677c56d6d8495f3c87522216f289d52e2f7 | refs/heads/main | 2023-08-15T03:05:10.260060 | 2021-09-12T00:55:02 | 2021-09-12T00:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from fastapi import FastAPI
from fastapi.responses import JSONResponse
from app.api.main import router as api_router
from app.settings import Settings
settings = Settings()
app = FastAPI(title="async-fastapi-sqlalchemy")
app.include_router(api_router, prefix="/api")
@app.get("/", include_in_schema=False)
async def... | [
"rhoboro@gmail.com"
] | rhoboro@gmail.com |
cf297f53e6ac80a9e6f143b01404bb8118b28817 | 8c5e45061286c10cba373c1576432cc43bc387fc | /venv/bin/easy_install | aeb63742c78362328a12c31888d6cfb3f0b23c7b | [] | no_license | Ruldane/Mapping-using-Pandas-Folium | 13828b18ad0c7eeb45afad46d50f94f22ef9c908 | c0f8d6cda2898f8075d52e31ba9712f47e54b145 | refs/heads/master | 2020-06-10T17:07:05.522872 | 2019-06-25T10:22:13 | 2019-06-25T10:22:13 | 193,685,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | #!/home/ruldane/PycharmProjects/Mapping/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"l.nizzoli@gmail.com"
] | l.nizzoli@gmail.com | |
3b14bebd791e49b44c807127e1d8c83ab8667dd2 | bc441bb06b8948288f110af63feda4e798f30225 | /resource_package_tools_sdk/model/easy_flow/deploy_strategy_pb2.pyi | 96c1f94d9b9d719ffac232700204d7507eacb6ca | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,205 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
443ad2b069ebe801ccdc2108f6045a11a4f817f6 | c2e93b806bf439136d7ff651c14601af405eddc5 | /play_input.py | 362bf3b9fe6bed561365d670f1af67ed564a0782 | [] | no_license | mehulchopradev/divya-python-core | 11bdd09072b81a7f4c46ee84170119655f9d7273 | 0d10fd5697686c3fb46ab1f9b42c0b7d2fb771b8 | refs/heads/master | 2020-08-23T20:35:12.946154 | 2019-11-05T03:00:07 | 2019-11-05T03:00:07 | 216,702,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | print('Program starts')
n = input('Enter n : ')
# Exception handling
try:
ii = int(n)
except ValueError:
print('Please enter integer value')
else:
# will execute when there is no exception raised in the corresponding try block
print('Odd') if ii % 2 else print('Even')
print('Program ends') | [
"Mehul.Chopra@avalara.com"
] | Mehul.Chopra@avalara.com |
6b152beccb5eaa5fe80526c70aa33082e6c766ef | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays4CstmVapO2_px_N2.py | 2fd80c1ca4fc8994a818eb65c208cb1c144cf3b0 | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def VapO2_px_N2(P,T,x_N2):
x = (P-5.62017561e+02)/2.47804900e-01
y = (T--1.74950614e+02)/6.71933000e-02
z = (x_N2-7.23608844e-01)/7.27108322e-03
output = \
1*1.91797051e+00
y_O2 = output*1.00000000e+00+0.00000000e+00
return y_O2 | [
"1052632241@qq.com"
] | 1052632241@qq.com |
f69a22886b9e73676be73b0bbedc6f5b740e85fa | 597c4f48332251552a602122bb3d325bc43a9d7f | /etc/04_calculator/01_string.py | e88884554aa8d5499cf5f68d2c4a5093c4f0af83 | [] | no_license | Kyeongrok/python_algorithm | 46de1909befc7b17766a57090a7036886361fd06 | f0cdc221d7908f26572ae67b5c95b12ade007ccd | refs/heads/master | 2023-07-11T03:23:05.782478 | 2023-06-22T06:32:31 | 2023-06-22T06:32:31 | 147,303,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | string = "1 + 2 * (3 - 4)" | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
aa9645e56df07dec0f994311efd80a58baed1428 | 159bd4c0274271aae7cf2d42bc6819957ee626c9 | /script/UG_Complex_Network_4UD.py | b19380956564614c4ec4e80c552ce2dfa34e0a4b | [] | no_license | Schuck9/UG-in-Weighted-Network | aaa9810e8806d6130ec87c275a169009da460abc | 8e2a6ebde2ed4b9e2f6d2a2ca9d84140c2c5e792 | refs/heads/master | 2021-03-01T04:03:05.983146 | 2020-04-24T02:51:34 | 2020-04-24T02:51:34 | 245,752,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,179 | py | """
A simple implementation of Ultimatum Game in complex network
@date: 2020.3.8
@author: Tingyu Mo
"""
import os
import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import time
class UG_Complex_Network():
def __init__(self,node_num = 10000,network_type = "SF... | [
"noreply@github.com"
] | Schuck9.noreply@github.com |
59b39957186f3c76e740d3bac8084fb63519bf5e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3066.py | fce606fdb7b3bf7e4ebcb4d8aa5331d6907dbeba | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | fin = open('in', 'r')
fout = open('out', 'w')
numberOfCases = int(fin.readline())
def findChosenRow():
answer = int(fin.readline())
for rowNum in range (1,5):
row = fin.readline()
if rowNum == answer:
cosenRow = row.split()
cosenRow = [int(string) for str... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
26f14e295a03e3cd20d40a232caddf97471a11f2 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBF/Full2016DNN/cuts.py | cfe23e2e39ec86c60d657dd0498314605d02f098 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 13,831 | py | # cuts
#cuts = {}
supercut = 'mll>12 \
&& std_vector_lepton_pt[0]>25 && std_vector_lepton_pt[1]>10 \
&& std_vector_lepton_pt[2]<10 \
&& metPfType1 > 20 \
&& ptll > 30 \
&& (std_vector_lepton_flavour[0] * std_vector_lepton_flavour[1] == -11*13) \
... | [
"lorenzo.viliani@cern.ch"
] | lorenzo.viliani@cern.ch |
4cb9216fe42a1d68811c6513183c40488acaff47 | bb150497a05203a718fb3630941231be9e3b6a32 | /models_restruct/deepxde/tools/start.py | 7e9ecf8ec9ecf1528bb5f166d1ce332103f5b5aa | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 6,862 | py | """
start before model running
"""
import os
import sys
import json
import shutil
import urllib
import logging
import wget
logger = logging.getLogger("ce")
class DeepXDE_Start(object):
"""
自定义环境准备
"""
def __init__(self):
"""
init
"""
self.qa_yaml_name = os.environ["qa... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
2a3afbad100efcb1edda22e3475a09ff6d227fab | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/ai/DistributedPhaseEventMgr.py | 2a79a55ca8df3ac10529506eb7476344ed65df63 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 1,096 | py | # File: t (Python 2.4)
from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject
import datetime
class DistributedPhaseEventMgr(DistributedObject.DistributedObject):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedPhaseEventMgr')
def __init__(sel... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
0f20585a844977b4362a9860a036f47b28823b97 | ecf1ce6f8b592f76c7b7c253608c1264ae0676a3 | /days/day017/list_comprehensions_and_generators.py | 78d9123b75c5cf83388f77dff5985392cf955d59 | [] | permissive | alex-vegan/100daysofcode-with-python-course | 94e99880a50ac412e398ad209ed53796f253641f | b6c12316abe18274b7963371b8f0ed2fd549ef07 | refs/heads/master | 2021-07-20T23:05:59.721661 | 2019-01-21T16:18:25 | 2019-01-21T16:18:25 | 150,115,516 | 0 | 0 | MIT | 2018-09-24T14:28:16 | 2018-09-24T14:28:15 | null | UTF-8 | Python | false | false | 1,006 | py | from random import sample
from itertools import islice
from pprint import pprint as pp
NAMES = ['arnold schwarzenegger', 'alec baldwin', 'bob belderbos',
'julian sequeira', 'sandra bullock', 'keanu reeves',
'julbob pybites', 'bob belderbos', 'julian sequeira',
'al pacino', 'brad pitt'... | [
"alex-vegan@outlook.com"
] | alex-vegan@outlook.com |
83ef4a6d7e5cdbfb45c05ea36208a409740e1e33 | 2280e309df300fe1d4cd684799b9aeeb3495c6cc | /core/inbound.py | c6ecbcc422d08468584f3ea64b30969da4f41629 | [] | no_license | cming091/psshutlle-toots | 471fe1a9505116b6d9571259e9de04b3d7404f98 | 1445c2efd024fe33743c09bac799ed9f4a3f15cb | refs/heads/master | 2023-05-30T12:34:39.364337 | 2021-06-21T07:23:23 | 2021-06-21T07:23:23 | 378,834,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,856 | py | import time
import os
from .base import Base
from config import CONF
from utils import *
from psgrpc import wholeInboundBcr
logger = LogHandler(__name__)
class Inbound(Base):
def __init__(self, data):
super(Inbound,self).__init__(data)
def singleProcess(self):
self.common.tearDownStockAndAss... | [
"349152234@qq.com"
] | 349152234@qq.com |
dcc7adaa49fada352d2eb346c9e51df6ed8c9dd4 | 0a5c468cee07b79ddb5368aa7b0fe118f4b11e72 | /lazy_slides/download.py | 72beca49e25d6ab0de60cb57f0674c4ab1b133c7 | [] | no_license | abingham/lazy_slides | c36e451571c14e53cbc2817d4f72475fa5c400ba | ca8eb4618415df6eaa9fb3c3f721cb168708f52b | refs/heads/master | 2020-05-19T16:34:20.286129 | 2013-06-18T17:58:05 | 2013-06-18T17:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import contextlib
import logging
import os
import urllib2
import urlparse
import uuid
log = logging.getLogger(__name__)
def download(url, directory):
'''Download a file specified by a URL to a local file.
This generates a unique name for the downloaded file and saves
into that.
:param url: The URL ... | [
"austin.bingham@gmail.com"
] | austin.bingham@gmail.com |
80cd8baa4841a770e7eb7696c77d6f7a99d12ad2 | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/235.py | e2c5a50114f99694f5bfed245e493ea6148b0de9 | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | """
235. Prime Factorization
https://www.lintcode.com/problem/prime-factorization/
"""
import math
class Solution:
"""
@param num: An integer
@return: an integer array
"""
def primeFactorization(self, num):
result = []
up = math.sqrt(num)
k = 2
while k <= up and num ... | [
"hipaulshi@gmail.com"
] | hipaulshi@gmail.com |
8879d084898863cce23dedb47389a370ebb7adcf | 11a1e1140fe869e83e337518ca99162cca8780dd | /BHScripts_8TeV_postICHEP_Final_WithRun2012C_NewFitRange/histograms/DataAnalysis_FitRanges/Styles.py | ec5775c7f79b34278912b0d67309b9cfba720b4c | [] | no_license | jhakala/BHMacros | 6bdd1ac855df8a803f39f06e7e218b24b2eb76b1 | bc3cf2e3c1d3570a9e042c865214035e60d20021 | refs/heads/master | 2021-01-19T04:52:27.624800 | 2015-04-09T12:14:21 | 2015-04-09T12:14:21 | 33,666,386 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | pattle = [862, 814, 797, 899, 614, 921]
marker = [20, 21, 22, 25, 24, 26]
from ROOT import gStyle
from ROOT import gROOT
from ROOT import TStyle
gStyle.SetPadTopMargin(0.05)
gStyle.SetPadRightMargin(0.05)
def formatST(h):
h.SetMarkerStyle(20)
h.SetMarkerColor(923)
h.SetLineColor(923)
h.SetXTitle("S_{T} (... | [
"john_hakala@brown.edu"
] | john_hakala@brown.edu |
f3a5e46acb64711021bf454c7e8f5af682764ebf | 48f10cc3520ba8cfa5f3478e4b021766e4d5f29b | /openpyexcel/drawing/tests/test_text.py | 82b747c27e487d5e6e9267a416b1ef8698b4401b | [
"MIT"
] | permissive | sciris/openpyexcel | bef5094d193e62806164c77777fe8c741511aaec | 1fde667a1adc2f4988279fd73a2ac2660706b5ce | refs/heads/master | 2022-01-20T14:04:52.196385 | 2019-02-06T22:48:38 | 2019-02-06T22:48:38 | 168,293,752 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,372 | py | from __future__ import absolute_import
# Copyright (c) 2010-2019 openpyexcel
import pytest
from openpyexcel.xml.functions import fromstring, tostring
from openpyexcel.tests.helper import compare_xml
@pytest.fixture
def Paragraph():
from ..text import Paragraph
return Paragraph
class TestParagraph:
d... | [
"questionably@gmail.com"
] | questionably@gmail.com |
41e9e39d9234f668e5bdebd3c69be5fac6a52ed8 | bc074a145c83c53c24288a62806e9806f4bf992f | /lib/bp_utils/filt.py | 8ef6443344a1f4016b9beb9ad690d9e0634a3618 | [] | no_license | Genomon-Project/GenomonBreakPoint | 4b9f44751894d67d8e19a0170f162ab15ce6b237 | 0eed3922c483edcc8a181af042fcce86ad9d9203 | refs/heads/master | 2021-06-09T06:36:31.676564 | 2016-11-20T13:26:36 | 2016-11-20T13:26:36 | 73,768,508 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | #! /usr/bin/env python
import sys, gzip, math, numpy
import pysam
from scipy import stats
def filter_by_control(tumor_bp_file, output_file, matched_control_bp_file, merged_control_file,
min_support_num, min_median_mapq, min_max_clip_size, max_control_num_thres):
use_matched_control = True i... | [
"friend1ws@gmail.com"
] | friend1ws@gmail.com |
38e297f2ecdcdafc8a850489ec195d720ca6a99a | fff5eeff850258b5208f41d4f6c3027044f5374a | /blog/tests/test_urls.py | e384ffffc42e1bbf5c436fcd0981a200d3649038 | [] | no_license | khabdrick/django-pytest | 3f4300f875ed4c6ad9d4fa1bb3bf0902c3e420e7 | 5ce5f5cd1973885dfa2d476b1817d00644e9b10c | refs/heads/main | 2023-04-01T17:10:22.220605 | 2021-04-20T17:27:43 | 2021-04-20T17:27:43 | 345,196,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.urls import reverse, resolve
class TestUrls:
def test_post_content_url(self):
path = reverse("content", kwargs={'pk':1})
assert resolve(path).view_name == "content" | [
"muhamzyali@gmail.com"
] | muhamzyali@gmail.com |
ec2f321127e4a1f870d4e4c9b178002ea220402a | d74ccf6290b7acb0011fd9b9132cd8beac0bd9d3 | /back/movies/migrations/0003_movie_like_users.py | 13f3f2abdab2d74e4da72d3a07d59fe254a85fc1 | [] | no_license | gaberani/final_netflix | a0687c9cec9157712c9fe2a8627d3624e5fe00b6 | 637016fd6a0c589f1ff96ed5e9225deffc8f18cb | refs/heads/master | 2022-11-09T10:42:22.460795 | 2020-06-21T00:30:21 | 2020-06-21T00:30:21 | 272,981,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 2.1.15 on 2020-06-15 11:38
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('movies', '0002_comment'),
]
operations = [
... | [
"khs0783@naver.com"
] | khs0783@naver.com |
517d75eb080fc570f9f2944db0205779a06920c9 | 6ac0bba8c1851e71529269c0d9d89a7c8fa507f2 | /Medium/18.py | 5808c521f0c1350c3c957493c5fcc72c735dcfcf | [] | no_license | Hellofafar/Leetcode | e81dc85689cd6f9e6e9756beba070cb11e7b192e | 7a459e9742958e63be8886874904e5ab2489411a | refs/heads/master | 2021-05-16T07:07:19.823953 | 2020-02-17T03:00:09 | 2020-02-17T03:00:09 | 103,690,780 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # ------------------------------
# 18. 4Sum
#
# Description:
# Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
#
# Note: The solution set must not contain duplicate quadruplets.
#
# Note: ... | [
"buptljf@gmail.com"
] | buptljf@gmail.com |
68616c0dbcebfbf9c42b5566168c88f7aa8c9404 | 7c2e677d931a8eb7d7cffc6d54713411abbe83e4 | /AppBuilder9000/AppBuilder9000/NflApp/migrations/0001_initial.py | c6c706f8bd214fbbea2270eca679fe35fce7be36 | [] | no_license | r3bunker/Python_Live_Project | 19e367b3cf74c2279c287fcd3a8a44a27f24041a | d3e06150d7daea6326cc1a4155309d99e4ff6244 | refs/heads/main | 2023-06-12T23:01:50.440371 | 2021-06-16T20:21:03 | 2021-06-16T20:21:03 | 344,883,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # Generated by Django 2.2.5 on 2020-11-06 15:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PlayerProfile',
fields=[
('id', models.Auto... | [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
76e31ee753accb6937d8800000f3bbc5a28dabe6 | 8a9f0a0924706ded24ab4214aa42ab07f201e38b | /LeetCode_Python/Linked_List/Swap_Nodes_In_Pairs.py | 030136ef60b1879da3ce6eb6cdd836e2dfdd49ae | [] | no_license | gitzx/Data-Structure-Algorithm | 687162565729b12551cb660aa55a94f1d382014c | d6af7dfdc4d3d139fd939687a45dd36e327c914c | refs/heads/master | 2021-06-03T21:27:17.750464 | 2019-06-27T10:50:48 | 2019-06-27T10:50:48 | 14,443,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | '''
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes itself can be changed.
'''
'''
class ListNode(object):
def __init... | [
"emailzhx@126.com"
] | emailzhx@126.com |
b8760e44c9b37c312a00f01f06b0f1d1992247d0 | 28b405b8a538187367e019e45dd7fff3c5f4f296 | /src/rocks-pylib/rocks/commands/set/host/interface/vlan/__init__.py | 6224fb0a1b94d913a4014f8e6961bc95b0bc6627 | [] | no_license | rocksclusters/core | 95c84cbe4d9f998eea123177e43b25fa0475c823 | 7fb7208aa4a532e64db83e04759d941be9b96d91 | refs/heads/master | 2023-04-08T16:30:45.931720 | 2023-03-23T17:18:54 | 2023-03-23T17:18:54 | 58,084,820 | 21 | 11 | null | 2019-08-22T21:17:23 | 2016-05-04T21:21:17 | Python | UTF-8 | Python | false | false | 5,142 | py | # $Id: __init__.py,v 1.10 2012/11/27 00:48:28 phil Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWinder)
# version 7.0 (Manzanita)
#
# Copyright (c) 2000 - 2017 The Regents of the University of California.
# All rights reserved.
#
# Redistribution... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
9896ed4a15946204d46a0faecec93ee19b1562de | 15373eaa353e8aece47a26741b7fb27795268bf6 | /easy/674_longest_continuous_increasing_subsequence.py | ef6d6b79c989164a5d0abafb804820ca0af2c060 | [] | no_license | esddse/leetcode | e1a9bacf04c68a8d642a1e53c90e6c2dda2c1980 | 0ceccdb262149f7916cb30fa5f3dae93aef9e9cd | refs/heads/master | 2021-06-08T19:15:14.346584 | 2020-01-09T01:41:23 | 2020-01-09T01:41:23 | 109,675,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class Solution:
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
N = len(nums)
dp = [1] * N
max_len = 1
for i in range(1, N):
if nums[i] > nums[i-1]:
... | [
"tjz427@sina.cn"
] | tjz427@sina.cn |
c78fca675d5676273ac2feefb58558b427a6339b | 74e53273dc5aa71293a385512b3d239971099738 | /Data_structures_and_Algorithms/linked_list/odd_even_linked_list.py | 23a4c71690de5d036acb1edf0b4d3ec4ea4b1b76 | [] | no_license | BJV-git/Data_structures_and_Algorithms | 3b240bf699e7091453f3a1459b06da1af050c415 | 393c504b2bb17b19e76f6d9d9cce948b4c12dbb2 | refs/heads/master | 2020-04-23T22:32:22.525542 | 2019-02-19T16:09:51 | 2019-02-19T16:09:51 | 171,504,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # just about the positional ordering
# just can go by the next.next and set the odd last to even head
def odd_even(head):
if not head or not head.next: return head
odd =head
even = head.next
evenhead = head.next
while even and even.next:
odd.next = odd.next.next
odd = odd.next
... | [
"noreply@github.com"
] | BJV-git.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.