blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbaa6d49368db0becbe90cabc3be773834120c82 | ad6eb2236acdf525c10af6c1cf62e877039301c2 | /lfs_order_numbers/models.py | 0ec1751dcead67933630dd17b9a6b1905885d42a | [] | no_license | diefenbach/lfs-order-numbers | 1dad836eded78d830cd6af79d1ce3fa2b9357640 | f9c3342dc7ebedfa286ac927ba84b433c2cbbc80 | refs/heads/master | 2021-05-25T11:14:21.547104 | 2017-02-23T10:12:19 | 2017-02-23T10:12:19 | 4,285,159 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from lfs.plugins import OrderNumberGenerator as Base
class OrderNumberGenerator(Base):
"""
Generates order numbers and saves the last one.
**Attributes:**
last
The last stored/returned order number.
fo... | [
"kai.diefenbach@iqpp.de"
] | kai.diefenbach@iqpp.de |
d2921fe8f0ce8ec4fb95b0e4aae8a9b2d90db54d | 19380415ccdcb0dac20f7bd67fcc8a0f631a3b90 | /models/union-find.py | c1b9a401d367ca82e8e843172825c2ccacca6e0c | [
"MIT"
] | permissive | italo-batista/problems-solving | c06c811364db7439d842db76e743dd7a1a7c8365 | f83ad34f0abebd52925c4020635556f20743ba06 | refs/heads/master | 2021-10-28T07:01:21.643218 | 2019-04-22T15:27:19 | 2019-04-22T15:27:19 | 76,066,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # n : numero de nos
# q : numero de operacoes
n, q = map(int, raw_input().split())
parents = range(n+1)
sizes = [1] * (n+1)
def get_parent(x):
if x == parents[x]:
return parents[x]
else:
parents[x] = get_parent(parents[x])
return parents[x]
def same_set(x, y):
return get_parent(x) == get_parent(y)
def co... | [
"italo.batista@ccc.ufcg.edu.br"
] | italo.batista@ccc.ufcg.edu.br |
d13ae0b389a9aad24520238844270163decc9f47 | c2e06926e58e49e2659c77ec454716ccb42bd729 | /Test3/hawc2/2_postPro.py | 970866b6948734ae8d86a446cdf8f6be3f9fcab6 | [] | no_license | ptrbortolotti/BeamDyn_CpLambda | 72bfd6c831ebc5b86fdbc1f3dd10b3c05e693141 | e2f9a70044f7c0f1e720d828949faf1d392872c6 | refs/heads/main | 2023-08-28T22:34:21.546502 | 2021-09-27T17:34:01 | 2021-09-27T17:34:01 | 331,133,603 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Local
import weio
from welib.fast.fastlib import find_matching_pattern, averageDF
# --- Parameters
IPostPro=[0,1]
simDir='cases'
BD_mainfile = '../load_conv/f_1e5/Box_Beam_SCALED_1_BeamDyn.dat'
load = 500000;
vf = np.array([0.2,0... | [
"emmanuel.branlard@nrel.gov"
] | emmanuel.branlard@nrel.gov |
4978a0b12d379e159f7293cb2652dda29e4c98b6 | 3b76f9f2317e1eb2cd9553cab0b4dd01ce216ad5 | /using nested list find the second lower score using python.py | bbbf48ebc25de5392d90b5cabd6ffa32747cf7f2 | [] | no_license | KaziMotiour/Hackerrank-problem-solve-with-python | f12ea978c5274a90745545d3d2c9fb6a4f9b5230 | 798ce2a6c2b63ea24dc28a923bfee4b528fb2b5e | refs/heads/master | 2022-05-26T19:45:44.808451 | 2020-05-05T09:44:40 | 2020-05-05T09:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | arr=[]
n=int(input())
list=[[input(),float(input())] for _ in range(n)]
x=10000.0
a=0
i=0
j=1
while(n!=0):
if(list[i][j]<x ):
x=list[i][j]
i+=1
n-=1
a+=1
else:
i+=1
n-=1
a+=1
i=0
j=1
y=1000.0
p=0
for i in range(len(list)):
if(list[i][j]>x):
if(... | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
b29bf0c42c3bd7b3ef74fd50f2d5c415917e4666 | 6dbf099660ee82b72fb2526a3dc242d99c5fb8c8 | /tests/standalone/PmwUsing.py | b763dd902383fb55b22258463d256f19f0b49337 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Hellebore/Nuitka | 3544af691bc352769858ec1d44b6e9de46087bcf | 252d8e5d24521f8fff38142aa66c6b9063151f57 | refs/heads/develop | 2021-01-06T15:33:49.111250 | 2020-02-18T14:24:49 | 2020-02-18T14:24:49 | 241,380,473 | 0 | 0 | Apache-2.0 | 2020-07-11T17:52:04 | 2020-02-18T14:21:01 | Python | UTF-8 | Python | false | false | 1,038 | py | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
2a8156a8a96ce1b6fba8ac57fb61505dc07461e3 | c90c88f662ca3f6294ae7d5b7adb04831a2c01d9 | /WalletCenter/alembic/env.py | df09303374a28e8df4b7f0812639d3baf82e3c2b | [] | no_license | BigJeffWang/blockchain-py | a41512fbd52b182306ea00607e6b93871d5aa04d | 9d2abf10e9ff5a4ed7203564026919c1e2bd088a | refs/heads/master | 2021-07-20T22:52:13.496892 | 2020-08-05T09:54:18 | 2020-08-05T09:54:18 | 203,220,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from __future__ import with_statement
import sys
from pathlib import Path
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
sys.path.append(str(Path(__file__).resolve().parent.parent))
from tools.mysql_tool import MysqlTools
from models import base_mode... | [
"bigjeffwang@163.com"
] | bigjeffwang@163.com |
229d34fcec99565b3f6d19af0cbe8c1e7108dde1 | ecb22ddf7a927d320d2447feddf970c6ed81adbe | /src/plotAnswerLengthDistribution.py | f6a1c47810f11104d60e0195c7f698393074b053 | [] | no_license | shiannn/ADL2020-HW2-BertForQA | b1733339703dffb2fbdda481a5f090c26182c4a4 | 9e4f38bdeaaf61bd2c08ddd163271a699f21f16e | refs/heads/master | 2022-12-17T00:02:48.287380 | 2020-09-27T08:26:47 | 2020-09-27T08:26:47 | 257,008,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import sys
import json
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
from transformers import BertTokenizer
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: python3 plotAnswerLengthDistribution.py dataName saveName')
exit(0)
dataName = sys.argv[1]
... | [
"b05502087@ntu.edu.tw"
] | b05502087@ntu.edu.tw |
cbfa5d9b795b084ed6548df8174d6450302ffb67 | d4bb21370ab020aa9d1dad2d812cdd0f25722ed4 | /test/support/git_fixture.py | c1102e4132706de3b9ce846406dfe120dc7f1820 | [
"MIT"
] | permissive | richo/groundstation | e6b74fb0a428b26408feae06ce16ad98997f2709 | 7ed48dd355051ee6b71164fc801e3893c09d11db | refs/heads/master | 2023-07-21T16:20:17.244184 | 2018-12-09T22:39:41 | 2018-12-09T22:39:41 | 7,293,510 | 27 | 5 | MIT | 2023-07-06T21:04:24 | 2012-12-23T09:09:49 | Python | UTF-8 | Python | false | false | 372 | py | def fake_tree():
return """100644 blob fadc864ddfed4a93fabf6d23939db4d542eb4363
.gitignore100644 blob 48e87b133a2594371acd57c49339dc8c04d55146 .gitmodules
100644 blob 725455bca81c809ad55aac363c633988f9207620 .jshintignore
100644 blob 40928639c7903f83f26e1aed78401ffde587e437 .jshintrc
100644 blob f3a9c9a807... | [
"richo@psych0tik.net"
] | richo@psych0tik.net |
5b7dfee3f6b4c14d728cbcd104dab4bee21ee794 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2761/60747/246217.py | 9d03172af498a3a1277332b3a310877d13fc4478 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | n=int(input())
result=[]
for i in range(n):
sum=0
num=int(input())
for i in range(num+1):
sum=sum+i*i
result.append(sum)
for f in range(n):
print(result[f]) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
510f696ac8f8d51de2808c5a04deb4bf2d448ff3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_54/457.py | eb264093bd6ce407dfba0a75b15923f580c80baa | [] | 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 | 647 | py | from sys import stdin
def gcd(A, B):
a = A
b = B
while b != 0:
r = a % b
a = b
b = r
return a
if __name__ == '__main__':
C = int(stdin.readline())
for c in xrange(1, C + 1):
a = stdin.readline().split()
N = int(a[0])
t = map(long, a[1:])
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f677802888481b96a2c6b0d4537ffe39daea4b66 | a14ec6e367e6a471bfc74c066fb958ef585bc269 | /2019/08/common.py | cb39afff51d0c807e5697dc5794d241a5969ab81 | [] | no_license | jimhendy/AoC | 90641814ed431f46a8500ff0f022c6c957567563 | a1727f88bc2e6f739d65902dce188377966b3fb4 | refs/heads/master | 2023-09-02T14:48:39.860352 | 2023-08-28T08:09:19 | 2023-08-28T08:09:19 | 225,152,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import numpy as np
def in_to_array(inputs, n_rows=6, n_cols=25):
data = np.array(list(inputs))
return data.reshape(-1, n_rows, n_cols).astype(int)
| [
"jimhendy88@gmail.com"
] | jimhendy88@gmail.com |
8e022b65157dfae25c3997ca0bfcf8bfd5b3af03 | 57ea6657b4deb620c4e29b606a5ec259d22fadcd | /Chatbot_Web/impl/view/kg_overview.py | 44d5dfc7bee3607865aecc31e6b77c9d710eaab7 | [
"Apache-2.0"
] | permissive | orchestor/Chatbot_CN | 021d05849257d66e8e2a65d4ead5a777e09d7d3d | 43922d7f73946d00faad3f27d86188ec18022965 | refs/heads/master | 2020-05-09T12:48:48.124981 | 2019-04-09T13:54:24 | 2019-04-09T13:54:24 | 181,124,145 | 1 | 0 | Apache-2.0 | 2019-04-13T05:11:09 | 2019-04-13T05:11:06 | null | UTF-8 | Python | false | false | 3,273 | py | #-*- coding:utf-8 _*-
"""
@author:charlesXu
@file: kg_overview.py
@desc: 知识图谱概览页面
@time: 2019/01/28
"""
import sys
from django.shortcuts import render
from pinyin import pinyin
from Chatbot_KG.toolkit.pre_load import tree
def show_overview(request):
ctx = {}
if 'node' in request.GET:
node = re... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
1f799e8e7be3bb458b963d6e3341620559bc09f8 | 0680311baa2a401f93bf4124fb6bbc229950848c | /model/one_stage_detector.py | a62d198fd9f49d880deaa56845b6398bc0a618c0 | [] | no_license | TonojiKiobya/m2det_pytorch | 8b56342862ef5dbc74dd905957cb41ab30273aff | 20a00c4ece288148e6112daa822451c6904560c6 | refs/heads/master | 2023-06-08T14:41:29.110670 | 2019-03-26T10:40:46 | 2019-03-26T10:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,483 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 5 16:05:16 2019
@author: ubuntu
"""
import logging
import torch.nn as nn
import numpy as np
import pycocotools.mask as maskUtils
import mmcv
from dataset.utils import tensor2imgs
from dataset.class_names import get_classes
from utils.registry_buil... | [
"ximitiejiang@163.com"
] | ximitiejiang@163.com |
8f358c1bc133197673c67695d220540b3e6a5394 | c8371b410f19dc87059bbe0a28e983c3cfe0f4f8 | /src/etheroll/roll.py | 1e52d4a97491b5fb857622c89d755a84f9517b56 | [
"MIT"
] | permissive | homdx/EtherollApp | c70e37cff4fbbde8c605a8ca87776535185a7167 | 4953ce0f10ac58d43517fbc3a18bc5ed43297858 | refs/heads/master | 2020-03-28T19:05:10.591229 | 2018-09-30T21:25:32 | 2018-09-30T21:25:32 | 148,942,827 | 0 | 0 | MIT | 2018-09-15T21:52:51 | 2018-09-15T21:52:51 | null | UTF-8 | Python | false | false | 5,457 | py | from etherscan.client import ConnectionRefused
from kivy.app import App
from kivy.clock import Clock, mainthread
from kivy.properties import NumericProperty, StringProperty
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.screenmanager import Screen
from etheroll.utils ... | [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
a07012e4a01d74426aafbfa004b80c190341161a | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /python/tvm/exec/gpu_memory_bandwidth.py | a5f2021f733c2cd1e3ba8e6c82cce9db1dc4c994 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 5,788 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | apache.noreply@github.com |
0d9346ea6bfd98a4ea4aa39fdecc95754315d40f | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/anderspeders/sa_tester.py | 72d36cd4c6c8bfde2f227c119e5d3741ea5aa7be | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | import scraperwiki
scraperwiki.sqlite.save_var('data_columns', ['id', 'name', 'adress', 'city', 'postcode', 'country', 'Virksomhedstype'])
ftUrl = 'http://ec.europa.eu/competition/elojade/isef/index.cfm'
import lxml.html
root = lxml.html.fromstring(ftUrl)
for tr in root.cssselect("div[align='left'] tr.tcont"):
... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
e5a36deb356ed45d8a49e46daa46887d4e9d4c1e | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714202552.py | 2ac589eab5e3a7e94d03b273ea1e766f243f7093 | [] | 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 | 4,777 | 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 |
3c8f27457cd7e7975d7b68a101cbdd624eb043d1 | 73c2716fc72d0a389f14f21a5de73da818b54dc4 | /udemy-recipe-api/app/user/views.py | 75c415e65ee1bdfb16165a1ebbd5bc9b67e3722d | [
"MIT"
] | permissive | washimimizuku/django-tutorials | e13a429aa43cee24d84466d4cf3f22c518b17673 | 4f0e3836778dd3ea5403ef713e2f6777e44eae8d | refs/heads/main | 2023-06-04T05:47:16.863511 | 2021-06-15T13:38:37 | 2021-06-15T13:38:37 | 363,867,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from user.serializers import UserSerializer, AuthTokenSerializer
class CreateUserView(generics.CreateAPIView):
"""Create a new user in the s... | [
"nuno.barreto@inventsys.ch"
] | nuno.barreto@inventsys.ch |
570549c76e261ef39c724067588e6f90a8bd18af | 57d1580fd540b4819abb67f9db43fdfbba63725f | /lib/var.py | 37390233f5572cf38a87bfd5b95f5894ff38f029 | [] | no_license | glyfish/alpaca | 49edfcb9d80551825dfa4cf071f21aeb95a3502f | 2b5b69bcf50ed081a526742658be503706af94b4 | refs/heads/master | 2023-02-22T00:24:19.293502 | 2022-09-05T17:20:23 | 2022-09-05T17:20:23 | 186,169,438 | 1 | 3 | null | 2023-02-11T00:52:12 | 2019-05-11T18:38:58 | Python | UTF-8 | Python | false | false | 7,328 | py | import numpy
from matplotlib import pyplot
from lib import config
def multivariate_normal_sample(μ, Ω, n):
return numpy.random.multivariate_normal(μ, Ω, n)
def timeseries_plot(samples, tmax, ylabel, title, plot_name):
nplot, nsample = samples.shape
ymin = numpy.amin(samples)
ymax = numpy.amax(samples)... | [
"troy.stribling@gmail.com"
] | troy.stribling@gmail.com |
6d45a0aafcf85c8215157029bef4318a5c2d0836 | 7ab41799fd38489c93282f1beb3b20e7ef8ff165 | /python/79.py | baa33400e8230c73e0d6ae18a6d3a474fff1fc2d | [] | no_license | scturtle/leetcode-sol | 86c4095df6b31a9fcad683f2d63669ce1691633c | e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7 | refs/heads/master | 2020-04-23T00:01:37.016267 | 2015-11-21T04:15:27 | 2015-11-21T04:15:27 | 32,385,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | class Solution(object):
@staticmethod
def search(board, word, idx, i, j, vit):
if idx == len(word):
return True
if i < 0 or i >= len(board) or\
j < 0 or j >= len(board[0]) or\
board[i][j] != word[idx]:
return False
vit.add((i, j))
for... | [
"scturtle@gmail.com"
] | scturtle@gmail.com |
0d8d655f64d764621a9762d4c449a17f82d6ac57 | b4d160ff9bc139752f04ead3c38b88cf2d91c8a2 | /Tests/DegenPrimer_Tests/Test_SecStructures.py | feda0edcb1189bb46d9320c9c0c9a697b3bbb902 | [] | no_license | allista/DegenPrimer | 2c69bf832f908601c28245c735db9b6b1efa9932 | c610551c9f6f769dcd03f945d7682471ea91bade | refs/heads/master | 2022-06-03T01:16:12.269221 | 2022-05-12T11:16:02 | 2022-05-12T11:16:02 | 45,181,326 | 7 | 4 | null | 2022-05-07T12:22:54 | 2015-10-29T12:20:21 | Python | UTF-8 | Python | false | false | 1,656 | py | # coding=utf-8
#
# Copyright (C) 2012 Allis Tauri <allista@gmail.com>
#
# degen_primer 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
# (at your option) any later version.... | [
"allista@gmail.com"
] | allista@gmail.com |
c2de7d559633cefc527fd6e213dd4284f75e0499 | 94bb879816dbdd69559ecfcc70a09f33d104af67 | /source/functions/sqlmap/plugins/dbms/oracle/fingerprint.py | 3e471ca628ae7c75cc2d193a498e8d77b0777536 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-other-permissive",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"GPL-CC-1.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | 51000000/CampusCyberInspectionTool2021 | f328ad571ab88051aa6928a67209dd94ce25eb6c | 27a2de7ff3707ba6ab084acfce79a7d3f42b8f84 | refs/heads/main | 2023-03-28T01:11:22.678066 | 2021-04-01T05:23:54 | 2021-04-01T05:23:54 | 353,502,239 | 0 | 0 | MIT | 2021-03-31T22:06:49 | 2021-03-31T22:06:48 | null | UTF-8 | Python | false | false | 3,859 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import re
from lib.core.common import Backend
from lib.core.common import Format
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from... | [
"55148245+51000000@users.noreply.github.com"
] | 55148245+51000000@users.noreply.github.com |
7c363abe67e32e125b760f67b97c0168b77ec74a | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc201-abc250/abc248/c/main.py | f8dc5e6782ba90a0e4f2cd025916315e4147dbc5 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
n, m, k = map(int, input().split())
size = n * m + 10
dp = [0 for _ in range(size)]
mod = 998244353
for i in range(m):
dp[i] = 1
for i in range(n - 1):
ndp = [0 for _ in range(size)]
... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
5ef51b0a8c32b67780cc1894aa59fcc513e7b686 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_3_1_neat/16_3_1_bsoist_a.py | 6d05be7fb34134bb8fb5c0df300c6d30f8e63afe | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,334 | py | from string import uppercase
import sys
import itertools
def no_majority(nums):
total = sum(nums) * 1.0
if total == 0:
return True
for num in nums:
if num / total > 0.5:
return False
return True
def get_indexes(indexes):
for a, b in itertools.permutations(indexes,r=2):
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
1818b2f90162f7c979b4d61341cd65944efcddbd | 7cd6a7bc72f0026056a7238c0feea081bfff13a7 | /bioprocs/chipseq.py | 17d1dc9bfa97f4b60ece6b03c19b086b816f8d32 | [
"MIT"
] | permissive | shijianasdf/biopipen | 8d963ccca38e2a9d7a46582a5eec45c38924655c | d53b78aa192fd56a5da457463b099b2aa833b284 | refs/heads/master | 2023-08-18T18:28:03.306877 | 2019-12-31T16:17:35 | 2019-12-31T16:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | """ChIP-seq data analysis"""
from pyppl import Proc
from diot import Diot
from . import params, proc_factory
pPeakToRegPotential = proc_factory(
desc = 'Convert peaks to regulatory potential score for each gene.',
config = Diot(annotate = """
@name:
pPeakToRegPotential
@description:
Convert peaks to regulatory... | [
"pwwang@pwwang.com"
] | pwwang@pwwang.com |
f34a9115279a8d7cbc59260fc5acfcab05b942c6 | 0e25dc15ae9efce8bfd716d4d2041da07767968b | /qbench/benchmarks/QLib/OPENQL_converted/benstein_vazirani_48b_secret_4.py | fc296603b534cdd78fb80f43ed23a31bafc0d90d | [] | no_license | alxhotel/crossbar-bench | f608fc0062b4f8a5162ec33d61c0204aaf27b6ff | 3bf7536e7697d29c3089b0ba564ba22d39698b88 | refs/heads/master | 2021-07-13T16:06:50.085838 | 2020-10-04T23:39:05 | 2020-10-04T23:39:05 | 213,409,122 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,382 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"alxmorais8@msn.com"
] | alxmorais8@msn.com |
e881c76005641b8cc28159d379e1ebb69b36acda | 67a7c314fc99d9cd7a677fcb6bc2b6dfa20a9cff | /spambayes-1.0.4/windows/py2exe/setup_all.py | 60446035118e67633d6b59e7c128165b8689f6a7 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Xodarap/Eipi | 7ebbb9fd861fdb411c1e273ea5d2a088aa579930 | d30997a737912e38316c198531f7cb9c5693c313 | refs/heads/master | 2016-09-11T06:28:01.333832 | 2011-05-03T15:35:20 | 2011-05-03T15:35:20 | 1,367,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,674 | py | # setup_all.py
# A distutils setup script for SpamBayes binaries
import sys, os, glob
sb_top_dir = os.path.abspath(os.path.dirname(os.path.join(__file__, "../../../..")))
sys.path.append(sb_top_dir)
sys.path.append(os.path.join(sb_top_dir, "windows"))
sys.path.append(os.path.join(sb_top_dir, "scripts"))
sys.pa... | [
"eipi@mybox.(none)"
] | eipi@mybox.(none) |
5c713a2c568f78b3d8fbfcb025ede730942f035b | 1dcd3e78eca92356365faceb824addb53ff592e5 | /oracle_monitor.py | 789e9634d54f2a4b2765c646e2a8a3999331ad18 | [] | no_license | LingFangYuan/SendMailOrWX | b7201afce52d32c3d92fd087000aaa87c0f8006d | ca4beb1888823604a19283b6db5b07cd46948b6b | refs/heads/master | 2020-05-16T22:33:12.084808 | 2019-05-07T09:34:42 | 2019-05-07T09:34:42 | 183,339,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import oracle_exec
from mysql_monitor import formattext
from get_sqltext import get_sql
def get_data(path):
"""
获取数据
:return:
"""
sql = get_sql(path)
return oracle_exec.exec(sql)
def set_table(subject, path):
re, de = get_data(path)
content = "<strong>" + subject + "</strong><table ... | [
"786173189@qq.com"
] | 786173189@qq.com |
64ef22513cede77e09605582fc911425e63ca7ac | 233d852269c62cf5792adc74e50b78161f9d29d0 | /apps/question_record/migrations/0003_auto_20181128_2351.py | 0bb0cd31ca72b9cf2e2c1746715a8f8d55eb60a2 | [] | no_license | liao-shuai/chaflow | ce83aa52383c335c2e8ad4863c40ac3f53b3f472 | f26dd0b9c74e1fb8dbb5181fdb9d0ec6cad6f981 | refs/heads/master | 2021-02-04T16:24:21.852056 | 2019-09-13T13:36:58 | 2019-09-13T13:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2018-11-28 15:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('question_record', '0002_auto_20181128_2328'),
]
operations = [
migrations.A... | [
"irainsun@live.cn"
] | irainsun@live.cn |
241932a8711c5e9ed45a20db44356998e7522fb1 | 162b86e030ccb6b2c3adb2e540f9892f25abccbf | /gradient_descent_new/experiments/2019-04-25/observables_vs_gamma-variations/scan_gamma.py | 94e51a71f241a80e8218a6d3e73da11d807a667a | [] | no_license | samueljmcameron/pfc_fibrils | a0d647a1a4490f25c4b7d42be2815c93967d18df | 564164b815229f3b5e863a95aa885dab4c52dfae | refs/heads/master | 2021-07-03T20:50:46.260599 | 2019-05-31T19:40:05 | 2019-05-31T19:40:05 | 144,604,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | import numpy as np
import subprocess
import sys
import time
sys.path.append('../../scripts/')
from singlerun import SingleRun
from readparams import ReadParams
if __name__=="__main__":
start_time = time.time()
FAILED_E = 1e300
Lambdas = np.array([0.1,0.5,1.0,5.0,10.0,50.0,100.0,500.0],float)
k2... | [
"samuel.j.m.cameron@gmail.com"
] | samuel.j.m.cameron@gmail.com |
7fcc04cd97bc7d308475cfdbc01f435f93e2b87d | 51dc3ab902fbbd335fde207e06967d636879c853 | /predict/urls.py | 083424ae89095eb35fe458b56e9abd529d360435 | [] | no_license | khanansha/uberprediction | 2c06cd9c8525b363e16a0ce58385b9c01344f8e2 | 8e8340f22b6b26aba0e164a295b344d34bfce19a | refs/heads/master | 2022-11-14T11:52:43.518135 | 2020-07-12T15:11:10 | 2020-07-12T15:11:10 | 279,088,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('predict', views.predict, name="predict"),
path('ran', views.check, name="check"),
]
| [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
6588ac9881281d906936463f633ae4e4a3fa2047 | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /UMLRT2Kiltera_MM/graph_MT_pre__MetaModelElement_T.py | 4b496aa73b98fca4db94f79526f7d4b9f5446fc4 | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 2,229 | py | """
__graph_MT_pre__MetaModelElement_T.py___________________________________________________________
Automatically generated graphical appearance ---> MODIFY DIRECTLY WITH CAUTION
________________________________________________________________________________________
"""
import tkFont
from graphEntity import *
f... | [
"levi"
] | levi |
b454d814b5714c7a47a34188e03b5bb70289c5f9 | c09817490b36beaea98abc8c955904528c5cd4fd | /tests/test_0058-detach-model-objects-from-files.py | 9229de78be7f626e95ef00c107e5a2b832e99960 | [
"BSD-3-Clause"
] | permissive | oshadura/uproot4 | 245b7e14a3341d87a9e655792c6ee912ad443586 | ee535f6632d371d82b5173a43d6445c854968315 | refs/heads/master | 2023-08-19T13:48:23.541016 | 2021-09-22T23:51:52 | 2021-09-22T23:51:52 | 287,539,468 | 0 | 0 | BSD-3-Clause | 2020-08-14T13:29:03 | 2020-08-14T13:29:02 | null | UTF-8 | Python | false | false | 2,524 | py | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE
from __future__ import absolute_import
import copy
import os
import pickle
import sys
import numpy
import pytest
import skhep_testdata
import uproot
def test_detachment():
with uproot.open(skhep_testdata.data_path("uproot-hepd... | [
"noreply@github.com"
] | oshadura.noreply@github.com |
f6dab0896b1864866a10f0a2f3fe89e1a8b2b76d | 9184e230f8b212e8f686a466c84ecc89abe375d1 | /histogrammode/docs/DeveloperGuide/txml2xml_html.py | f9b117894a239bb84a1432c1da25bbcd1186e193 | [] | no_license | danse-inelastic/DrChops | 75b793d806e6351dde847f1d92ab6eebb1ef24d2 | 7ba4ce07a5a4645942192b4b81f7afcae505db90 | refs/heads/master | 2022-04-26T17:37:41.666851 | 2015-05-02T23:21:13 | 2015-05-02T23:21:13 | 34,094,584 | 0 | 1 | null | 2020-09-10T01:50:10 | 2015-04-17T03:30:52 | Python | UTF-8 | Python | false | false | 914 | py | # The following dictionary will be used to convert docbook
# xml templates (*.txml)
# to docbook xml source. All keys are map to values.
# There are now two files: web_absolutepath and web_relativepath
# web_absolutepath is for pdf format product. Because pdf cannot contain movies and some other medias, we have to used... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
3894ab976831c651854a100add14f3fc3c94768b | a45b5742814cc51c706c707d3b86e4f0a97c864b | /lists/urls.py | 4474f773460fd2ba16f25eafd5e0007017886c98 | [] | no_license | stanislavBozhanov/superlists | 9c6f0628c0eb02f56e6d0eb1b232fac033edcbe9 | 3c4906004a878d00c2912dffed310e098c841043 | refs/heads/master | 2016-09-06T16:56:35.534154 | 2015-02-12T20:55:10 | 2015-02-12T20:55:10 | 29,201,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.conf.urls import patterns, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^(\d+)/$', 'lists.views.view_list', name='view_list'),
url(r'^new$', 'lists.views.new_list', name='new_list'),)
# url(r'^admin/', include(a... | [
"stanislav.bozhanov@gmail.com"
] | stanislav.bozhanov@gmail.com |
9c935b6339889fef28e5bb09557912ee3b39ac4f | c6bfa138886150d219b9086165a845a3542aca32 | /apps/home/serializers.py | cf7356ee02677f6bec7ff1346a70b393d2a87b84 | [] | no_license | pyeye/dub-back | 1192505eab64425d59af880703b9634b35384fd7 | 4079121cc7f825df6feedb4b8fbd842cfe4ec16d | refs/heads/master | 2023-02-28T15:40:04.784157 | 2021-02-11T12:08:59 | 2021-02-11T12:08:59 | 115,289,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from rest_framework import serializers
from .models import Banner, Advertisement
class BannerSerializer(serializers.ModelSerializer):
class Meta:
model = Banner
fields = ('pk', 'title', 'image', 'url', 'extra')
class AdvertisementSerializer(serializers.ModelSerializer):
class Meta:
... | [
"pyeye.91@gmail.com"
] | pyeye.91@gmail.com |
955e892dde47cf831c34694c926ee24685eeb8e0 | 501615c82801733e69c7447ab9fd68d3883ed947 | /9527/.svn/pristine/95/955e892dde47cf831c34694c926ee24685eeb8e0.svn-base | 9329b5957bacc5793ce39718051eb56e10531980 | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | # -*- coding: utf8 -*-
from db.api.apiutils import APIResult
from db.cores.mysqlconn import dec_make_conn_cursor
from utils import tool
from utils.tool import dec_timeit
from utils.logger import logger as log
@dec_make_conn_cursor
@dec_timeit
def get_equation_list(conn, cursor):
"""
获取所有公式
... | [
"1461847795@qq.com"
] | 1461847795@qq.com | |
3229389f779378c837f13abd5093dbfc188cf8fc | d9b53673b899a9b842a42060740b734bf0c63a31 | /leetcode/python/easy/p263_isUgly.py | 5fe4345ff3cf6f18d1402fe8bafc4a61b6c6929c | [
"Apache-2.0"
] | permissive | kefirzhang/algorithms | a8d656774b576295625dd663154d264cd6a6a802 | 549e68731d4c05002e35f0499d4f7744f5c63979 | refs/heads/master | 2021-06-13T13:05:40.851704 | 2021-04-02T07:37:59 | 2021-04-02T07:37:59 | 173,903,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | class Solution:
def __init__(self):
self.helper = {}
def isUgly(self, num):
if self.helper.__contains__(num):
return self.helper[num]
if num <= 0:
return False
if num == 1:
return True
base = [2, 3, 5]
if num % 2 == 0:
... | [
"8390671@qq.com"
] | 8390671@qq.com |
08d15901538579db4a4ac16f55acae810550d8ff | 1113c8d5689685106fd77363e5561006d8ecef0d | /confbusterplusplus/utils.py | 06c911d7c30c7936cd8cff9584f2f9012d42e6c6 | [
"MIT"
] | permissive | dsvatunek/ConfBusterPlusPlus | 238f73ab48e6d1d1491cbf4406acf828d76a56f9 | 2de751f409ffdb791d8b04fd4b3d08645beebaa6 | refs/heads/master | 2022-11-09T18:28:26.880541 | 2020-06-24T05:50:35 | 2020-06-24T05:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | """
MIT License
Copyright (c) 2019 e-dang
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... | [
"edang830@gmail.com"
] | edang830@gmail.com |
b6230fc0f27c8b25a5a30e21ff1adf750f7f2d60 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/ellecf/visualizing-titanic-data/visualizing-titanic-data.py | 2a423da53cf48d3cbf021e394da003ed61c61e90 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,543 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
# This Python 3 environment comes with many helpful analytics libraries installed
# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python
# For example, here's several helpful packages to load in
import numpy as np # linear algebra
i... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
fdaf162ebeaaede570a86fafefae08a63d204cad | 32868580ddb697d3a9248952d34f2090e05325b5 | /team.py | c479ddca67df9303506f6d3eb165ffe25b57a928 | [] | no_license | DFettes/basketball-sim | e0e7b99c731654c5348e25c8d17dd49f0a3812ed | 6967fc39df7b1ce05705e32fd9d610e5874a7b5c | refs/heads/master | 2021-01-01T18:55:13.894081 | 2015-02-16T20:17:57 | 2015-02-16T20:17:57 | 30,477,659 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import player
class Team():
name = ''
home = None
away = None
players = []
on_floor = []
on_bench = []
points = 0
possesions = 0
wins = 0
losses = 0
season_points = 0
def __init__(self, name, players):
self.name = name
self.players = players
sel... | [
"="
] | = |
8481b5c0414c9fae0193163d79b056ffc12d6171 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/132/usersdata/158/41060/submittedfiles/al14.py | 40febf8cf6f9e392b4e3564460cc1cf93bff2615 | [] | 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 | 180 | py | # -*- coding: utf-8 -*-
q=int(input('digite quantidade de pessoas:'))
soma=0
for i in range(1,q+1,1):
a=int(input('digite idade:'))
soma=soma+a
media=soma/q
print(media)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ea7a9906120df3389f9d770640964c92ab508a71 | 48e1ac111f48bf27b03625f81887a8eaef4d505d | /old/google-cloud-sdk/lib/googlecloudsdk/compute/subcommands/disks/delete.py | f25effc93aad64441570fff0441854a5c503fad6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | altock/dev | 74350528ea570925e8fbc584c64939cae86f6ea7 | 90d87b2adb1eab7f218b075886aa620d8d6eeedb | refs/heads/master | 2021-07-10T08:31:48.080736 | 2017-04-15T03:04:12 | 2017-04-15T03:04:12 | 23,088,790 | 0 | 1 | null | 2020-07-25T04:32:05 | 2014-08-18T22:33:25 | Python | UTF-8 | Python | false | false | 668 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for deleting disks."""
from googlecloudsdk.compute.lib import base_classes
class Delete(base_classes.ZonalDeleter):
"""Delete Google Compute Engine disks."""
@property
def service(self):
return self.context['compute'].disks
@property
def res... | [
"sjs382@cornell.edu"
] | sjs382@cornell.edu |
e5731ef0207cc76612873575e5242ec5f23089fb | f5b5a6e3f844d849a05ff56c497638e607f940e0 | /capitulo 10/capitulo 10/10.19 - A Classe Telefone.py | 296d8a4c18cbc78858609e9bcba6515cf9c7a413 | [] | no_license | alexrogeriodj/Caixa-Eletronico-em-Python | 9237fa2f7f8fab5f17b7dd008af215fb0aaed29f | 96b5238437c88e89aed7a7b9c34b303e1e7d61e5 | refs/heads/master | 2020-09-06T21:47:36.169855 | 2019-11-09T00:22:14 | 2019-11-09T00:22:14 | 220,563,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2017
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpres... | [
"noreply@github.com"
] | alexrogeriodj.noreply@github.com |
011202b97c3d525aba76422bc4ac0353c4ff9d47 | 8cfdc0fb2e1e34b5963badacaf4be853134abf48 | /MySQL_CRUD/createtable_users.py | 67133445c8e0f309a62b017d87e9f12773cb86a6 | [] | no_license | turamant/ToolKit | b88e36ce986cc1a25628409c317930245cc260f5 | 343daa8238cc1fd247d7c06fad8e5c4c729dd0f9 | refs/heads/main | 2023-06-30T11:54:14.130454 | 2021-08-04T22:00:37 | 2021-08-04T22:00:37 | 385,747,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import sys
import MySQLdb
conn = MySQLdb.connect(host="localhost",
user="user1",
passwd="password1",
db="shop")
cursor = conn.cursor()
try:
cursor.execute("""
create table users (id int primary key,
firstName varchar(20),
lastName var... | [
"tur1amant@gmail.com"
] | tur1amant@gmail.com |
721beb1176947744136d45e3c6de8ce8515fe84c | 420d4cf595fc8f28be0415aec70a4087e157555c | /Fluent_Python/Day35/tuple_unpacking_is_faster.py | 009896d6908736fa11385ba45fdc76243da6281f | [] | no_license | davidbegin/python-in-the-morning | 8cf89e62e7e8a2df5b8f875aae3cc7815545ad61 | aa4a271d1df0ce0a82d776c0955c1f20deb50937 | refs/heads/master | 2020-09-28T09:55:50.723066 | 2020-08-06T01:17:24 | 2020-08-06T01:17:24 | 226,753,142 | 23 | 3 | null | 2020-03-04T06:36:30 | 2019-12-09T00:31:09 | Python | UTF-8 | Python | false | false | 413 | py | import timeit
import array
print('\033c')
print("\n\t\t\033[36;1;6;4mPerf Tests!\033[0m\n\n")
TIMES = 10000000
SETUP = """
two_elem = ("cool_thang", "no nobody cares")
"""
def clock(label, cmd):
res = timeit.repeat(cmd, setup=SETUP, number=TIMES)
print(label, *('{:.4f}'.format(x) for x in res))
clock("[0... | [
"davidmichaelbe@gmail.com"
] | davidmichaelbe@gmail.com |
677490ba39e51883cc0eb61a5fc89eeeb212e873 | f0c402d3858f0643561886797578b1e64655b1b3 | /utils/regression/tests/smoke_check/test_critical_section.py | 9e48489ec81279eac77e4e572fb958a6b32d4f41 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Leo-Wang-JL/force-riscv | 39ad2a72abd814df4b63879ce9825b6b06a9391a | deee6acaaee092eb90ac2538de122303334e5be3 | refs/heads/master | 2023-01-28T00:06:58.135651 | 2020-11-18T02:54:10 | 2020-11-18T02:54:10 | 271,873,013 | 0 | 0 | NOASSERTION | 2020-06-28T00:51:26 | 2020-06-12T19:15:26 | C++ | UTF-8 | Python | false | false | 1,105 | py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | [
"jwang1@futurewei.com"
] | jwang1@futurewei.com |
f02aff8cc71531fdfa7921a01824d76da76292b0 | df30f97d316e899b07b223bc86cfe53345627f06 | /problems/test2/2.py | 62ecd3c40d29a1e559f5c4cedc42424ca0435ac4 | [] | no_license | GH-Lim/AlgorithmPractice | c6a3aa99fa639aa23d685ae14c1754e0605eaa98 | e7b8de2075348fb9fcc34c1d7f211fdea3a4deb0 | refs/heads/master | 2021-06-18T17:21:10.923380 | 2021-04-18T03:43:26 | 2021-04-18T03:43:26 | 199,591,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(S):
# write your code in Python 3.6
temp = S.split()
temp = ''.join(temp)
temp = temp.split('-')
temp = ''.join(temp)
ans = ''
len_temp = len(temp)
if len_temp % 3 == 0:
k = l... | [
"gunhyuck11@gmail.com"
] | gunhyuck11@gmail.com |
d16f78aa40e2a936776a27b16e5f84c4959b9d0d | d7d010a85125676b82df0fb5b010fdcc0d4c48f8 | /continuum_normalise.py | 0bd29339d263559631aefb1e92c1ad2e75689f6b | [] | no_license | conradtchan/slomp | 1b9b09bccf18cfccb62cac3b8a1880ff108051f1 | c8f6b2a424bfd3913418538c016cf05649222701 | refs/heads/master | 2022-03-03T01:09:41.123493 | 2018-04-11T13:38:47 | 2018-04-11T13:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py |
"""
An example script to pseudo-continuum-normalise a single LAMOST spectrum and
save the result to disk.
"""
import matplotlib.pyplot as plt
import pickle
import lamost
# When loading spectra, let's resample them onto a common wavelength scale.
# This makes it easier for any data-driven model or classifier.
with... | [
"andycasey@gmail.com"
] | andycasey@gmail.com |
b8fe8a23762651dd6136f569c4efcf35503ee3f6 | ed269e9a4d9d6bfbb833381b7aef65a23f391fe2 | /数据结构 以及部分基础模板算法/树/树demo.py | 301e62346dba2c25ee64ffa1202ee2fc4952b4c3 | [] | no_license | Comyn-Echo/leeCode | fcff0d4c4c10209a47bd7c3204e3f64565674c91 | 67e9daecb7ffd8f7bcb2f120ad892498b1219327 | refs/heads/master | 2023-04-28T17:35:52.963069 | 2021-05-19T01:52:16 | 2021-05-19T01:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | class node():
def __init__(self):
self.parent =None
self.chrldren = {} #不重复的子节点, 而且索引效率高
self.val = None
def show(self, deep=0):
print(deep * '--' , end=' ')
print(self.val)
for i in self.chrldren:
child = self.chrldren[i]
child.show(de... | [
"2892211452aa@gmail.com"
] | 2892211452aa@gmail.com |
f8a69439eed2eab8cca7d5ee80baa35e53e002f6 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2020/valid_mountain_array.py | e1546a90581fddd1841ef411d2951d5ec4afa217 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 506 | py | """
https://leetcode.com/problems/valid-mountain-array/
"""
from typing import List
class Solution:
def validMountainArray(self, arr: List[int]) -> bool:
i, n = 1, len(arr)
if n < 3:
return False
while i < n and arr[i] > arr[i - 1]:
i += 1
if i == 1 or i... | [
"“mengyu.jiang@gmail.com"
] | “mengyu.jiang@gmail.com |
30ea5fff596183df2745dfe231fffcae166b7a08 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1482494_0/Python/ciccino/round1a2.py | 713bdda24c7036d8fcc7b1102ab87344b94bbb0a | [] | 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 | 1,602 | py | import re
def Ryan(n, stars):
times = 0
star = 0
while len(stars) > 0:
keys = stars.keys()
onestar = 0
find = 0
for i in range(len(keys)):
level = stars[keys[i]]
#we can't do a 2-star, try to remember possible 1-star
if level[1] > star:
if star >= level[0] and level[2] == 0:
if onestar == ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a90d3e76a9136ee5850a8e7e50dc97be3fbca97d | 9ffa2c1d9472c0d686433a353764d03da2159205 | /tests/test_utils.py | d0c47ad37e9bdf82bc5c56e1ec57a453e56ac24c | [
"MIT"
] | permissive | zagaran/instant-census | 7c1a0ab0ff282ebc56dd3a35d18a3ab444da1bfb | 62dd5bbc62939f43776a10708ef663722ead98af | refs/heads/master | 2023-05-08T00:21:24.426828 | 2021-05-31T18:19:02 | 2021-05-31T18:19:02 | 372,590,104 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from datetime import datetime, timedelta
from tests.common import InstantCensusTestCase
from utils.time import days_in_question_period
class TestUtils(InstantCensusTestCase):
def test_days_in_question_period(self):
every_day = [0, 1, 2, 3, 4, 5, 6]
sunday = [0]
monday = [1]
fo... | [
"iamzags@gmail.com"
] | iamzags@gmail.com |
2dd25eba1dfe1ff5bb8e185add4283af8c09f5b7 | 371235a5c6636020fd9a103c732de8294c66c5de | /case sensitive game.py | 2f2af6c999d4f3090f8cecaeee0d9729e08304a7 | [] | no_license | Akmalhakimteo/10.009-The-Digital-World | 11bf13bc07c73ad36d260656b565cc0955a9217a | c037f6656a0eeb6e50d17c90164c590107a53087 | refs/heads/master | 2020-12-11T11:49:46.205201 | 2020-01-14T13:01:15 | 2020-01-14T13:01:15 | 233,841,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 17 13:20:49 2019
@author: akmal
"""
print("are there CAPS in your word?")
user_ans=input("type in your input here please\n")
list_caps=[]
for char in user_ans:
if char.isupper()==True:
list_caps.append(char)
print("{},{}".format(char.islower(),list_caps))
#pri... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
0bc9a61e4524f7747997d1b0023fa09bf3c7d9f3 | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /unique-paths-2.py | f301c97817b27d3d04efaed880fc888e4e9a44e5 | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | """
dynamic programming
current path = dp[i-1] + dp[j-1]
if there is a block in i-1 or j-1, i-1 or j-1 path would be zero
time: O(MN)
space: O(1)
"""
from typing import List
class Solution:
def uniquePathsWithObstacles(self, grid: List[List[int]]) -> int:
for row in range(len(grid)):
for col in ... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
ebc751ef7abdd04bdbca483941cc28084b496671 | cd9cb38fdc0be20d0b02c554537048f2c71333b6 | /fuzzy_search/__init__.py | 77b6484713f45e150ddf6c458df5f6681fd2bf7b | [
"MIT"
] | permissive | marijnkoolen/fuzzy-search | 15a09cc3bf9249175af2494903c1189b0f0f6608 | 1ac61e558f16b5a35918f55ac1f65857c740601e | refs/heads/master | 2023-08-03T08:37:15.752423 | 2023-07-20T13:23:01 | 2023-07-20T13:23:01 | 218,385,563 | 18 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | __version__ = '2.0.1a'
from fuzzy_search.search.config import default_config
from fuzzy_search.search.phrase_searcher import FuzzyPhraseSearcher
from fuzzy_search.search.token_searcher import FuzzyTokenSearcher
from fuzzy_search.match.phrase_match import PhraseMatch
from fuzzy_search.phrase.phrase_model import PhraseM... | [
"marijn.koolen@gmail.com"
] | marijn.koolen@gmail.com |
e0b4c42b2802188a2cdb0e5fa651d16088cf5d88 | aa13423fa47e405a4b8884fe125b99ef7f0111dc | /backend/service/common/common_service.py | 3b44ad38e701e1cf654486a9d3c9e976ec464163 | [] | no_license | imtos/loonflow | b2f04d2fa5890c0a2a09d34b8c63af2bee38230b | 5f0953c497736b2376757978782b13fb0ca76305 | refs/heads/master | 2020-03-07T19:56:37.527777 | 2018-02-08T09:53:58 | 2018-02-08T09:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from rest_framework.views import exception_handler
from service.base_service import BaseService
class CommonService(BaseService):
def __init__(self):
pass
| [
"blackholll@163.com"
] | blackholll@163.com |
494db8147046d97eeae5ef128b6145f4abd174c5 | a9a07bd14e0568c8aa95cc43dc1961c2cceba9bf | /src/util/convert_fasta.py | e0cb667728ce13f9344c8721a40c9e7b5a3b5532 | [] | no_license | daishu-li/AMP_Benchmark | 4781e3b44f0fa16550661aeb9f8bcfc0e5f5aace | 14abf5bb715c1e0ecd8099beac2a1e92d6c72330 | refs/heads/master | 2023-01-12T10:38:10.227157 | 2020-11-15T23:57:19 | 2020-11-15T23:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | '''
AMP FAST Formater
Author: Yuya Jeremy Ong (yjo5006@psu.edu)
'''
from __future__ import print_function
# Application Parameters
DATA_DIR = '../../data/proc/'
INPUT_DIR = DATA_DIR + 'data3.csv'
OUTPUT_DIR = '../../data/fasta/data3_merges.fasta.txt'
def read_csv(dir, ignore_header=True):
st = 1 if ignore_header ... | [
"yuyajeremyong@gmail.com"
] | yuyajeremyong@gmail.com |
72c3f2d8497a0d60d2c0f14e957489a4618e4be4 | 4851d160a423b4a65e81a75d5b4de5218de958ee | /Are You Playing Banjo.py | 433730f43ecfc4a458d8b013baa223ac9e5ed536 | [] | no_license | LarisaOvchinnikova/python_codewars | 519508e5626303dcead5ecb839c6d9b53cb3c764 | 5399f4be17e4972e61be74831703a82ce9badffd | refs/heads/master | 2023-05-05T14:52:02.100435 | 2021-05-25T18:36:51 | 2021-05-25T18:36:51 | 319,399,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # https://www.codewars.com/kata/53af2b8861023f1d88000832
def areYouPlayingBanjo(name):
if name[0] == "r" or name[0] == "R" :
return f"{name} plays banjo"
else:
return F"{name} does not play banjo" | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
0e05766e147bc75fb98146c9f60ba7e258833825 | c34759a07cee20cdfe067247753f9951d6de77ff | /course/models.py | 3f43ba4570b105d629c6736e73cfec263824bb8c | [] | no_license | Shadyaobuya/PythonWeb | 6e52be7819489de7ae508c92aea4bea4917db828 | 451e193b4000627d3fccc0966be684307d75ca18 | refs/heads/master | 2023-08-02T12:04:02.661068 | 2021-09-30T08:31:39 | 2021-09-30T08:31:39 | 380,287,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from django.db import models
from django.db.models.deletion import CASCADE, SET_NULL
# Create your models here.
class Course(models.Model):
course_name=models.CharField(max_length=40,null=True)
course_code=models.CharField(max_length=20,null=True)
trainer=models.CharField(max_length=30,null=True)
descr... | [
"shadyaobuyagard@gmail.com"
] | shadyaobuyagard@gmail.com |
c10648c141dd42e67722581ebc455b6b420f711c | 93a43800b64c70ecf7069600b9d5fc83a726343e | /Examples/SecurityOperations/UpdateDocumentPassword.py | 7f56bb2b3983d043278cd546bcc5dca26fef5e7a | [
"MIT"
] | permissive | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | 2837afeac5cefb966cdafe4e5ec8c4ca8f8ea216 | dc4dffe01b98d68d469cbacab490894a024b79a7 | refs/heads/master | 2023-02-19T13:40:20.721383 | 2023-02-08T06:48:04 | 2023-02-08T06:48:04 | 225,944,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # Import modules
import groupdocs_merger_cloud
from Common import Common
# This example demonstrates how to update document password
class UpdateDocumentPassword:
@classmethod
def Run(cls):
securityApi = groupdocs_merger_cloud.SecurityApi.from_config(Common.GetConfig())
options = groupdocs_m... | [
"sergei.terentev@aspose.com"
] | sergei.terentev@aspose.com |
58b86a62d88299e881d276fb2e91397a3746ba21 | 59b3f3e3c082bf0891e8a117251607dac71c7e9c | /dockit/tests/serializers/common.py | 5d6ecc9d49b6c25711ef94d27ed3c6c6403344cd | [
"BSD-3-Clause"
] | permissive | cuker/django-dockit | 55a42af69b4dd41e941fe07ebc70a7a0826bd253 | 406734280ca6b55f66b73b3b4ec5e97ba58f045d | refs/heads/master | 2021-01-17T22:53:38.324005 | 2013-07-18T09:40:35 | 2013-07-18T09:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from dockit import schema
from django.contrib.contenttypes.models import ContentType
class ChildDocument(schema.Document):
charfield = schema.CharField()
def create_natural_key(self):
return {'charfield': self.charfield}
class ChildSchema(schema.Schema):
ct = schema.ModelReferenceField(Conte... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
e98a870a3708af61cf12893b76db95dce8ce711a | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_09_01_polycrystal_FIP/main_plt.py | 881fb484e611cde890483c3bf1796684fce491c5 | [] | 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,420 | py | # import plot_correlation as pltcorr
import plot_explained_variance as pev
import plot_pc_map_3d as pltmap3d
import plot_pc_map as pltmap
import plot_dendrogram as pd
import plot_err_v_pc as pevp
import plot_linkage_check as plc
import plot_evd as pe
import plot_evd_predicted as pep
from constants import const
import m... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
abb33774e1c174d956e5753d33f6f6a895bfc3c5 | ff4d26332da8b4d31689a68c97c06eca19cc4260 | /projectEuler/webScraping/problemTemplates/135.py | 644ba12b6d7d882d9abaf7cf859a982632096169 | [] | no_license | nickfang/classes | cf1b64686fb34909f6ffface0f669fa88256d20c | 6869deaa5a24782c5a69c7aa41875faf2553e013 | refs/heads/master | 2023-01-04T00:43:31.351247 | 2019-12-30T21:04:12 | 2019-12-30T21:04:12 | 100,035,808 | 0 | 0 | null | 2023-01-03T20:59:30 | 2017-08-11T13:41:17 | HTML | UTF-8 | Python | false | false | 548 | py | # Same differences
#
#Given the positive integers, x, y, and z, are consecutive terms of an arithmetic progression, the least value of the positive integer, n, for which the equation, x^2 − y2 − z2 = n, has exactly two solutions is n = 27:
#34^2 − 272 − 202 = 122 − 92 − 62 = 27
#It turns out that n = 1155 is the least... | [
"fang.nicholas@gmail.com"
] | fang.nicholas@gmail.com |
525d43ca59cc5097c97503cf5b04764728628052 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_135.py | 7dd1a834e9b79a4fe2ce51b8c71d9f8035bfa820 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_135(xtp_test_case):
def subOrderBook(self, Api, stk_info, case_name, rs_exp... | [
"418033945@qq.com"
] | 418033945@qq.com |
d57b2dfdaf0801d20f664f6d022bce430e4b2b95 | 86813bf514f3e0257f92207f40a68443f08ee44b | /0892 三维形体的表面积/0892 三维形体的表面积.py | 28d502d4a4003699f10cb5c26e011ee620470549 | [] | no_license | Aurora-yuan/Leetcode_Python3 | 4ce56679b48862c87addc8cd870cdd525c9d926c | 720bb530850febc2aa67a56a7a0b3a85ab37f415 | refs/heads/master | 2021-07-12T13:23:19.399155 | 2020-10-21T03:14:36 | 2020-10-21T03:14:36 | 212,998,500 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | #label: maths difficulty: easy
class Solution:
def surfaceArea(self, grid: List[List[int]]) -> int:
n = 0
for i in range(len(grid)):
for j in range(len(grid[i])):
if grid[i][j] > 0:
n += 2 + 4 * grid[i][j]
if i > 0:
... | [
"noreply@github.com"
] | Aurora-yuan.noreply@github.com |
23942b0d1b41fd4f12a183199851c68f55ddcee6 | 7e41d5ec2f8ba704c99bbb252a216566fa0e7ce3 | /Clases/Estadistica/centralizacion.py | 26fffe21b157bcf0a85b3c5175119168738d30dd | [
"MIT"
] | permissive | juanpanu-zz/PM_DataScience | 11cf1fab4939ba415bbae28b134182e7f3108e37 | 24e71616dae692e931e95cd3815ca88fa9b8a46a | refs/heads/master | 2023-01-03T01:15:50.893425 | 2020-10-24T16:32:16 | 2020-10-24T16:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | datos= [0,0,0,0,0,0,0,0,0,0,0,0,0
,1,1,1,1,1,1,1,1,1,1
,2,2,2,2,2,2,2
,3,3,3,3,3,3
,4,4]
def media(datos):
return sum(datos)/len(datos)
def mediana(datos):
if(len(datos)%2 == 0):
return (datos[int(len(datos)/2)] + datos[int((len(datos)+1)/2)]) / 2
else:
retu... | [
"juanpa.nb@gmail.com"
] | juanpa.nb@gmail.com |
02d7211f3b1a728472c1ffef0d6d0e717bc29ca3 | df982b09cb71edeb2f306d5b966c13a45b9a9e70 | /src/encode_task_trimmomatic.py | 83bd7b94706fa278c3d5f819498ba86cdab5b840 | [
"MIT"
] | permissive | Fnyasimi/chip-seq-pipeline2 | 7857c752abbb6fa9c1b3e2e19e54776cdf2583b5 | 15d87e4dfd6a4fdf1419b17a1f25fcde75252e1c | refs/heads/master | 2020-12-15T07:52:35.261071 | 2020-05-10T10:40:36 | 2020-05-10T10:40:36 | 235,036,517 | 0 | 0 | MIT | 2020-05-10T10:40:37 | 2020-01-20T06:47:59 | null | UTF-8 | Python | false | false | 6,081 | py | #!/usr/bin/env python
# ENCODE DCC Trimmomatic wrapper
# Author: Jin Lee (leepc12@gmail.com)
import sys
import os
import argparse
from encode_lib_common import (
assert_file_not_empty, log, ls_l, mkdir_p, rm_f,
run_shell_cmd, strip_ext_fastq)
from encode_lib_genomic import (
locate_trimmomatic)
def pars... | [
"leepc12@gmail.com"
] | leepc12@gmail.com |
7de9384fbd2f2372f2d386386c9cd8ff2c6cbc27 | 591a05e50f2515f6bd4605de6ed9ed7d3936ad9d | /welib/wt_theory/tests/test_wakeexpansion.py | 54e4f50b1cb6405abe136bc768d734c18a01b8ff | [
"MIT"
] | permissive | ebranlard/welib | 679edeec85feb629dc27047a62422d469c6e0081 | 3486e87c6348e9580099fe5c360138e762ab3ea9 | refs/heads/main | 2023-08-09T13:31:40.253283 | 2023-06-16T18:17:09 | 2023-06-16T18:17:09 | 153,533,129 | 50 | 25 | MIT | 2023-06-16T18:17:11 | 2018-10-17T22:47:46 | Python | UTF-8 | Python | false | false | 1,027 | py | import unittest
import numpy as np
from welib.wt_theory.wakeexpansion import *
class TestExpansion(unittest.TestCase):
def test_downstreamD(self):
# Check that analytical solution and numerical solution match when getting downstream distance
CT=0.8
fraction = 0.5
rw0 = wake_expa... | [
"emmanuel.branlard@nrel.gov"
] | emmanuel.branlard@nrel.gov |
515e5f55d7782b81daf3473bf6affdc0b76a7cbe | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_api/pages/page.py | 4181623ca86611c093bc53b9c670ae1e4e098000 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 2,597 | py | import requests
from projects.golem_api.pages.utils import url, headers
DELETE_PAGE_ENDPOINT = '/page/delete'
DUPLICATE_PAGE_ENDPOINT = '/page/duplicate'
RENAME_PAGE_ENDPOINT = '/page/rename'
PAGE_COMPONENTS_ENDPOINT = '/page/components'
SAVE_PAGE_ENDPOINT = '/page/save'
SAVE_PAGE_CODE_ENDPOINT = '/page/code/save'
R... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
ecd23624ad4bf1a877b5602da7d072f654ced6f2 | 19316c08712a502b1124f2b55cb98bfcbcca7af5 | /dev/python/2018-07-25 findcrash.py | 3d319feb710cd4cc991faf1eb345cf56d8c88d28 | [
"MIT"
] | permissive | swharden/pyABF | 49a50d53015c50f1d5524242d4192718e6f7ccfa | 06247e01ca3c19f5419c3b9b2207ee544e30dbc5 | refs/heads/main | 2023-08-28T02:31:59.540224 | 2023-08-17T16:34:48 | 2023-08-17T16:34:48 | 109,707,040 | 92 | 39 | MIT | 2023-04-06T00:37:29 | 2017-11-06T14:39:21 | Jupyter Notebook | UTF-8 | Python | false | false | 179 | py | """
Boilerplate dev test
"""
from imports import *
if __name__ == "__main__":
abf = pyabf.ABF(PATH_DATA+"/180415_aaron_temp.abf")
print(abf.sweepY)
print(abf.sweepC) | [
"swharden@gmail.com"
] | swharden@gmail.com |
3a30c4238d79e5f91a766e65bc38e75f764384bd | 59129c8fee701270a7a69cc03d876834f567597a | /olvidado/.i3pystatus.caladan.py | fdb15af7e800b5bc31251bb794b506c25e0ef9e0 | [] | no_license | jmberros/dotfiles | 0d79e35fc30fe3669464bc979e64bb6a365ab3f6 | 7c12c4e70b25b4c932a160c2142a132eecca5b1d | refs/heads/master | 2023-08-31T15:33:11.801980 | 2023-08-29T00:48:24 | 2023-08-29T00:48:24 | 10,116,001 | 37 | 26 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
import subprocess
from i3pystatus import Status
status = Status(standalone=True)
status.register("clock",
color="#cccccc",
format="%H:%M, %A %-d %B",)
status.register("pulseaudio",
format="🔊 {volume}",)
status.register("load",
... | [
"juanmaberros@gmail.com"
] | juanmaberros@gmail.com |
803157c722e9a3da82f6f61490f4b508d74f77c0 | 22b3f1851bf4da5fc8837b31cc276e95f92c7a33 | /deeppy/expr/util.py | 62e19c43957f6237f2f401406e30ca2d0bbf294e | [
"MIT"
] | permissive | nagyistoce/deeppy | db34eda7d4d14077c577ef081ed3edf2b9d00add | f7d073aef9a7070a841d66f34046414c88b01812 | refs/heads/master | 2020-12-11T04:01:49.877773 | 2015-11-19T14:34:43 | 2015-11-19T14:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import numpy as np
from .base import Identity
_measures = {
'mean': ('%.2e', np.mean),
'std': ('%.2e', np.std),
'shape': ('%s', lambda x: str(x.shape)),
'absnorm': ('%.2e', lambda x: np.sum(np.fabs(x))),
}
class Print(Identity):
def __init__(self, rate=1, label=None, fprop=True, bprop=False,
... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
6fff296d0c4099761ec2cf15b9a4f8bf629a1a65 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.9/service_advisor.py | bb93a78ea3459b895c9e4d4937a9cde5a51bdf2d | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 6,392 | py | #!/usr/bin/env ambari-python-wrap
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
7890d7748d77cc57c6b36016d9bbadd55f92a3b6 | 063fbbeb14bec58e25147484bfeae0d73124525e | /python/common.py | 0fd5366a8677754812c037d6e85ffb518fb4836e | [
"MIT"
] | permissive | mit-gfx/py_pbrt | 2bd9f60ee2fa5a35d338259747254b39f972029d | 853382447da449be6dcc38ba0f570508600f4698 | refs/heads/master | 2023-03-05T10:55:12.107096 | 2021-02-21T05:19:12 | 2021-02-21T05:19:12 | 340,816,570 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,836 | py | import numpy as np
def ndarray(val):
return np.asarray(val, dtype=np.float64)
###############################################################################
# Pretty print.
###############################################################################
def print_error(*message):
print('\033[91m', 'ERROR ', *... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
797144fdad73105f67b0ff7bb1599091430fcaac | 85235f02e9674877cfcca8976076e26e39e1ca9e | /ForMark/singleton.py | 07cc54c959af4c7a6a368a0152eb749c0a0c22f5 | [] | no_license | zhaolixiang/ForMark | dd4e4bd2effb0d5085001c8e88d4a9811c100698 | 9bb83348fbb84addca2a40d5f9edeeec4bf9e5c3 | refs/heads/master | 2022-12-23T11:17:18.260110 | 2020-04-24T08:14:57 | 2020-04-24T08:14:57 | 250,973,339 | 0 | 0 | null | 2022-12-08T04:01:47 | 2020-03-29T07:01:47 | Python | UTF-8 | Python | false | false | 226 | py | # 单例模式
class Singleton(object):
# 重写
def __call__(cls, *args, **kwargs):
if not hasattr(cls, '_instance'):
cls._instance = super().__call__(*args, **kwargs)
return cls._instance
| [
"1782980833@qq.com"
] | 1782980833@qq.com |
e7379a055c87d6291e48f91d2fb474d83a71a427 | 2f44cecd8fc447c9e2f2d9f55abdea36ebb40cc5 | /剑指offer2/11.py | a2ed7b1898b111ad89eba9553fab224aca071393 | [] | no_license | yuzumei/leetcode | 751a234b429131169e3eaf4594ffeb3b94f6ab34 | b6708b03c92ec92e89fc7ecf13f1995dee346657 | refs/heads/master | 2023-07-28T05:48:53.192948 | 2021-09-11T06:16:07 | 2021-09-11T06:16:07 | 365,780,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding:utf-8 -*-
# @Author : Yuzu
# @Time : 2021/9/5 21:09
# @file : 11.py
class Solution:
def findMaxLength(self, nums) -> int:
import collections
memo = collections.defaultdict(list)
memo[0].append(-1)
for i in range(len(nums)):
if nums[i] == 0:
nu... | [
"973802530@qq.com"
] | 973802530@qq.com |
16c24fcee56307c226d8c936e065ef10f9edcb43 | 8f35dbebd8fe0fe7eacb2bbcffa6e8c96c9bb506 | /inc/console.py | 701b71839e4509fe01a9feb68bd8fd0ddfba0798 | [
"MIT"
] | permissive | tulibraries/combine | 57280d374a622543ef34da479c721b0b935230aa | eb100ea17193d65485aa6c4a7f05a41b4cab7515 | refs/heads/master | 2020-07-03T16:54:23.618414 | 2019-09-26T15:53:59 | 2019-09-26T15:53:59 | 201,976,306 | 1 | 0 | MIT | 2019-09-26T16:09:16 | 2019-08-12T17:18:32 | JavaScript | UTF-8 | Python | false | false | 755 | py | # convenience methods for Django's shell_plus
import os
from core.models import *
# get Record instance
def get_r(id):
return Record.objects.get(id=id)
# get Job instance
def get_j(id):
return Job.objects.get(pk=int(id))
# get CombineJob instance
def get_cj(id):
return CombineJob.get_combine_job(int(... | [
"ghukill@gmail.com"
] | ghukill@gmail.com |
16f565b451e48fa90ec01e19fbee6dd257f35ac6 | f2ff79ab3d0b1328c66b834826cd311dc8eb5cc2 | /tests/test_clilib.py | 21bc633216f98ccef50a0228ce464d3a38575341 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | sambfloyd/clldutils | 2bc8251d94105f46c192de156741e623c7c33b62 | 92ab4cab4f9a39e0d6f20f09ef75e0ea4a11d025 | refs/heads/master | 2021-01-16T08:58:14.877413 | 2020-02-14T10:30:47 | 2020-02-14T10:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | import pathlib
import argparse
import importlib
import pytest
from clldutils.clilib import *
from clldutils.path import sys_path
def test_get_parser_and_subparser():
assert get_parser_and_subparsers('a')
def test_register_subcommands(fixtures_dir, mocker):
with sys_path(fixtures_dir):
pkg = import... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
e24e1885f44d205d6a98fab50b4e827710fcbca5 | afcf8a43e0e20c8748a6fe6629235c993c563b40 | /applications/audit-trail/ow/virtualenv/bin/rst2s5.py | 16eeb27f5dba664496b497d58715c8f47286b027 | [] | no_license | jjkotni/faas-benchmarks | dafd0857809e4ff7b1701646799d03517bc7afc2 | 3a22603bc4340d39e610921514d4f75c9f95aec0 | refs/heads/master | 2022-12-12T17:07:47.183247 | 2020-05-31T04:04:53 | 2020-05-31T04:04:53 | 247,883,437 | 0 | 1 | null | 2022-12-08T05:27:06 | 2020-03-17T05:02:32 | Python | UTF-8 | Python | false | false | 705 | py | #!/home/kjj/faas-benchmarks/applications/audit-trail/batching/virtualenv/bin/python3.5
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides... | [
"kjjswaroop@gmail.com"
] | kjjswaroop@gmail.com |
ffe6d854d8d1aedcc34bedb819dc158015905c8e | bb970bbe151d7ac48d090d86fe1f02c6ed546f25 | /arouse/_dj/conf/__init__.py | 3ecd0cc2268e18e4daa2d70e2fef331cc127a941 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | thektulu/arouse | 95016b4028c2b8e9b35c5062a175ad04286703b6 | 97cadf9d17c14adf919660ab19771a17adc6bcea | refs/heads/master | 2021-01-13T12:51:15.888494 | 2017-01-09T21:43:32 | 2017-01-09T21:43:32 | 78,466,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,904 | py | """
Settings and configuration for Django.
Values will be read from the module specified by the DJANGO_SETTINGS_MODULE environment
variable, and then from arouse._dj.conf.global_settings; see the global settings file for
a list of all possible variables.
"""
import importlib
import os
import time
from arouse._dj.con... | [
"michal.s.zukowski@gmail.com"
] | michal.s.zukowski@gmail.com |
2dbb8694809973b8675987ec2313935492d5ead1 | 4e1ff54c2f2a21fd6d8e34f2bc3d6dc9990ffa0e | /model/batch_norm_default.py | 3a3c2b7b624283639aa5d6ca6003cb87b3f4cde4 | [] | no_license | haoxiangsnr/A-Convolutional-Recurrent-Neural-Network-for-Real-Time-Speech-Enhancement | 2a037da46f2c89c368cd41b2cba89519cdf471cb | 31610a5b6b398b90ae6b42701ee6cf0e8dcfe871 | refs/heads/master | 2021-07-13T09:08:26.370828 | 2020-09-05T00:50:51 | 2020-09-05T00:50:51 | 201,885,023 | 259 | 55 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
class CRNN(nn.Module):
"""
Input: [batch size, channels=1, T, n_fft]
Output: [batch size, T, n_fft]
"""
def __init__(self):
super(CRNN, self).__init__()
# Encoder
self.bn0 = nn.BatchNorm2d(num_fea... | [
"haoxiangsnr@gmail.com"
] | haoxiangsnr@gmail.com |
824ffbe6bcb7970e95b94c794a7386665de41747 | 3996539eae965e8e3cf9bd194123989741825525 | /PhysicsTools/JetMCAlgos/matchGenHFHadron_cfi.py | dc80c83017b34f44fcee282a9cc724b02a224333 | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 336 | py | import FWCore.ParameterSet.Config as cms
matchGenHFHadron = cms.EDProducer('GenHFHadronMatcher',
genParticles = cms.required.InputTag,
jetFlavourInfos = cms.required.InputTag,
noBBbarResonances = cms.bool(True),
onlyJetClusteredHadrons = cms.bool(False),
flavour = cms.int32(5),
mightGet = cms.optional.untr... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
6cd99f4cccde01fec5a66af6c83a998cd6dcf091 | e50954bb35fbc377a1c9a6842fa4ceb6b6234b39 | /zips/plugin.video.wargames/resources/lib/scrapersource/scenedown_mv_tv.py | 9fd1378892301541c1acaec6be953b03008cc793 | [] | no_license | staycanuca/BUILDONLY | f213e242ed869475668933ac7b6ee2d4e8508bbc | f87684bf0111a1079b0e1184e1bfca3f2c5348ed | refs/heads/master | 2021-05-09T04:54:22.747154 | 2018-01-28T08:55:07 | 2018-01-28T08:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | # -*- coding: utf-8 -*-
'''
Add-on
Copyright (C) 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | [
"biglad@mgawow.co.uk"
] | biglad@mgawow.co.uk |
dc758b6a7277e9de59e2c57cdf69fdd4bce8dd25 | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/market_tools/tools/complain/mobile_views.py | 98be8a1fab60f3f9c0eaab6a009dbd7b4ff0c26a | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # -*- coding: utf-8 -*-
__author__ = 'chuter'
import os
from datetime import datetime, timedelta
from django.http import HttpResponseRedirect, HttpResponse, Http404
from django.template import Context, RequestContext
from django.contrib.auth.decorators import login_required
from django.conf import settings
from djan... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
4d8da9b345c887bd27fb0d8b57d52da3c1595cb0 | 9ed325dd1cf60458135796b0df32bf0877481134 | /marketplace/migrations/0001_initial.py | c93fc67edd1ee09ca220d5ba40a15a30283a48ad | [] | no_license | codingspider/konetos | ca64b25cb8fa43a44913b9e58067c271ec0d1756 | d484284287e16f807530af11ce1d2918e05d3d42 | refs/heads/master | 2023-02-10T04:48:53.764000 | 2020-12-30T12:13:30 | 2020-12-30T12:13:30 | 324,984,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | # Generated by Django 2.2 on 2020-12-24 06:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"engrokon.rok@gmail.com"
] | engrokon.rok@gmail.com |
39597b6730f6fb6296e2187603b26ceff65fd6e2 | 1944f0b25a19080832933b78d9c191ceb212a62b | /minggu-13/praktik/src/8_7.py | 237368f6f3fbc297c07bd72a1f6199bb694db043 | [] | no_license | satriang/bigdata | b0432683dde5b3cb6c3b2e22c8ce80530b32cb67 | 4075ced73978ae7d1169a42ffead640b94b0fe04 | refs/heads/master | 2020-03-28T15:34:43.885548 | 2019-01-07T22:41:32 | 2019-01-07T22:41:32 | 148,607,481 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
# In[7]:
state_fruit = pd.read_csv('data/state_fruit.csv', index_col=0)
state_fruit.stack() .rename_axis(['state', 'fruit']) .reset_index(name='weight')
# In[ ]:
| [
"ngestusatria7@gmail.com"
] | ngestusatria7@gmail.com |
f202eedd79a9e367604c1e9a49f05eb86ad60345 | 5dbf8039a281c4ba13e9cb19453a4bace0f2b6bd | /billing/admin.py | 76a5c2e8c6c9d2b1f7c499cb34b4b446e54278b0 | [] | no_license | adamtlord/ease | e605d901fc944d48212c4283998e1b4995c09324 | 51e7e0e79e21dad6fa7bdd360cd0a5c0ba3c9d41 | refs/heads/master | 2021-01-18T22:24:12.146024 | 2019-07-30T17:48:14 | 2019-07-30T17:48:14 | 72,482,564 | 0 | 0 | null | 2019-01-02T17:15:51 | 2016-10-31T22:15:56 | CSS | UTF-8 | Python | false | false | 1,242 | py | from django.contrib import admin
from billing.models import Plan, StripeCustomer, Invoice, GroupMembership, Balance, Gift, Subscription
class SubscriptionAdmin(admin.ModelAdmin):
readonly_fields = ('date_created',)
class GroupMembershipAdmin(admin.ModelAdmin):
raw_id_fields = ("address", "user", "ride_acco... | [
"adam.lord@gmail.com"
] | adam.lord@gmail.com |
ba891550744ddb67f7c86b7185ac71745e52b0c3 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/tutorial/gui/Scaleform/meta/TutorialBattleStatisticMeta.py | 15582a969c3a38f9a7ba3204478e72fb0e9e2039 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 957 | py | # 2017.05.04 15:28:00 Střední Evropa (letní čas)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/meta/TutorialBattleStatisticMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class TutorialBattleStatisticMeta(AbstractWindowView):
"""
DO NOT MODIFY!
... | [
"info@webium.sk"
] | info@webium.sk |
62b8df2cdf56956f30f95202944153f596347fa4 | f98f0ae6a318c8efd8aeac770b000534d1c6ab23 | /da_rnn/metrics.py | df615fe802d6bb0b9419a30454e1d4242d5d2a0b | [
"Apache-2.0"
] | permissive | kimsse0430/dual_stage_attention_rnn | aff71111785af91c47f371b785dab5b41fc0d4e7 | 08744ee2cfa3dc71fb1c9da895e879708cea805e | refs/heads/master | 2022-04-19T01:47:21.123150 | 2020-03-09T15:27:26 | 2020-03-09T15:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | """ Metrics utilities """
import numpy as np
class Metrics:
""" Metrics to evaluate prediction performance """
def __init__(self):
pass
def get_metrics_dict(self, predictions, labels):
""" Return the metrics result in dict """
res = dict()
res['rmse'] = self.rmse(predic... | [
"siqiao_xue@163.com"
] | siqiao_xue@163.com |
3710d154cf29a95d73ae991be6631907e17e1022 | da2993b3aaa18bb35f42886b1f4d7f938d055ff5 | /backend/mysite/mysite/urls.py | c0f738c13e004c447355fc5fac05e8af36dd7f2c | [] | no_license | karthikeyansa/React_Django_AuthToken | 00838c6ef679b589ad38aba864b21a64478a33c4 | cab17eff3ef75ade389c33c5f9109fdbc366a8d3 | refs/heads/master | 2023-02-09T23:10:24.311347 | 2021-01-01T18:34:53 | 2021-01-01T18:34:53 | 304,940,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from django.contrib import admin
from django.urls import path,include
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path('admin/', admin.site.urls),
path('api/',include('app.urls')),
path('auth/',obtain_auth_token)
]
| [
"karthikeyansa39@gmail.com"
] | karthikeyansa39@gmail.com |
79c81670f0d6cb73535fd86bb43d6d32d320e3b6 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_Lag1Trend/cycle_0/ar_/test_artificial_128_None_Lag1Trend_0__0.py | c224a904afad41ec2d371e5e1389e07997af4970 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 263 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0a37a74c812523a59805fb7704eefccb904cbfb9 | 35fa43655e18d18f2de898bce3a96456b05468de | /fernet_fields/test/settings/sqlite.py | 7ded7cba6f65dacc0789763741bf0df033f41288 | [
"BSD-3-Clause"
] | permissive | singular-labs/django-fernet-fields | b077588ba5f99383b9312c1ebbcb2c104be0f1e4 | f2d57ef179409cee554a177a9f7d90974acd14ed | refs/heads/master | 2023-08-17T18:59:58.627042 | 2023-08-14T12:06:48 | 2023-08-14T12:06:48 | 253,502,252 | 0 | 0 | BSD-3-Clause | 2023-08-14T12:06:50 | 2020-04-06T13:13:54 | Python | UTF-8 | Python | false | false | 293 | py | from .base import * # noqa
import os
HERE = os.path.dirname(os.path.abspath(__file__))
DB = os.path.join(HERE, 'testdb.sqlite')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': DB,
'TEST': {
'NAME': DB,
},
},
}
| [
"carl@oddbird.net"
] | carl@oddbird.net |
cb6d6b0ee4a364082c3ad8f3a2aa5e19fb59a36c | 8032f671147f62ce91d6a42be5bafebdfeb236f9 | /tests/test_01_dxf_entities/test_133_sun.py | 415a0407d23625c42466f7e16ff56c0d3ecf7231 | [
"MIT"
] | permissive | mamofejo/ezdxf | 3ebcd9afae06e53d56a8622f8406e2c9a95e4971 | bd5a08a85608360266eb8702d48638195c72c247 | refs/heads/master | 2023-02-26T22:04:48.798010 | 2021-02-05T14:06:28 | 2021-02-05T14:06:28 | 336,305,662 | 0 | 0 | MIT | 2021-02-05T15:29:09 | 2021-02-05T15:08:54 | null | UTF-8 | Python | false | false | 2,054 | py | # Copyright (c) 2019 Manfred Moitzi
# License: MIT License
import pytest
import ezdxf
from ezdxf.entities.sun import Sun
from ezdxf.lldxf.tagwriter import TagCollector, basic_tags_from_text
SUN = """0
SUN
5
0
330
0
100
AcDbSun
90
1
290
1
63
7
421
16777215
40
1.0
291
1
91
2456922
92
43200
292
0
70
0
71
256
280
1
"""
... | [
"mozman@gmx.at"
] | mozman@gmx.at |
428acd38c50ae5ec8e63de2b7e9a6f24510905af | dd74129c42933062ca4a6304f9a715bd18f3806b | /setup.py | d40f460af6508730e4e85c2efdcba1be69c42c05 | [] | no_license | sensein/cmixf | 12d1873508835023a32e6898baee831ea2ef91f9 | 28bf47ee8c7d1ba4a5241bcc19563df75b578fb5 | refs/heads/master | 2022-07-31T15:59:03.878678 | 2020-05-25T20:55:12 | 2020-05-25T20:55:12 | 266,423,055 | 2 | 1 | null | 2020-05-25T20:55:13 | 2020-05-23T21:32:50 | Python | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""CMIXF parser
"""
import sys
from setuptools import setup
import versioneer
# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata i... | [
"satra@mit.edu"
] | satra@mit.edu |
c80ae0ca01e06a0f390815cba89694ab583cb5b0 | 2edaaa8e2d11ac9ec02f3949e684fb5037719fbf | /Python/10 Days of Statistics/Central Limit Theorem 3.py | 9e56f0a395082cb5f24971407aca8733b87599f1 | [] | no_license | vipulsingh24/Hacker-Rank | 5419fb9b29780ad59fea96121a0d0888f1cdc152 | 789d72f5c3f6bf1536ab44c460c59733065823b7 | refs/heads/master | 2020-03-18T15:17:49.542451 | 2018-07-01T16:03:19 | 2018-07-01T16:03:19 | 134,899,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | '''
You have a sample of 100 values from a population with mean 500 and with standard deviation 80.
Compute the interval that covers the middle 95% of the distribution of the sample mean; in other words,
compute A and B such that P(A < x < B) = 0.95. Use the value of z = 1.96.
'''
import math
n = 100 # Sample Size
m ... | [
"letsmailvipul@gmail.com"
] | letsmailvipul@gmail.com |
c96c4f6fc13242502ce3b163d701be75a220f796 | 97dae48fa3c613a84655c1c0b12cdc0db2c555bb | /algorithm/bitwise/add_two.py | de1cbc069f8c30b9d39c0879e14027c02d41b4b8 | [] | no_license | klknet/geeks4geeks | 6aa5841b15be41057dc987524721ea1ea37e02ea | d7d9099af7617a4000f38c75d2c7214bed570eda | refs/heads/master | 2021-07-12T06:34:30.048691 | 2020-06-22T07:51:14 | 2020-06-22T07:51:14 | 170,288,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | """
Add two numbers without using arithmetic operators.
"""
def add_two(x, y):
while y != 0:
x, y = x ^ y, (x & y) << 1
return x
def add_two_recur(x, y):
if y == 0:
return x
return add_two(x ^ y, (x & y) << 1)
def smallest(x, y, z):
return my_min(x, my_min(y, z))
def my_min(x... | [
"konglk@aliyun.com"
] | konglk@aliyun.com |
9e8d1c9052e9fd9c61e954143162bfaeaf8a867a | 222c5f0e36717a053bcfd61c7fcfd1e2975d52ad | /mypackage/test/test_mymodule.py | 73a50bc5152b51abd3e56f088075401b1e80ac4b | [] | no_license | ParmEd/test-jenkins-project | ea6ce801bb03d474323294a2c9c9b005736582ed | d05e12a06ea1acc90b6ff1382da7fdb536439454 | refs/heads/master | 2021-06-11T14:39:52.533680 | 2016-12-26T21:03:44 | 2016-12-26T21:03:44 | 77,406,843 | 0 | 0 | null | 2017-02-05T22:25:06 | 2016-12-26T21:04:22 | Python | UTF-8 | Python | false | false | 199 | py | from __future__ import absolute_import
from nose.tools import assert_equal
from ..mymodule import myfunction
def test_my_function():
""" Tests my function """
assert_equal(myfunction(), 0)
| [
"jason.swails@gmail.com"
] | jason.swails@gmail.com |
0a2ba5e6111f6bab5f5212a505cdb7146d25f4f4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/195/32504/submittedfiles/ex1.py | 88cadca3ab6339c897432a8160b8d83ee8e60d87 | [] | 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 | 278 | py | from_future_ import division
a=float(input('Digite a:'))
b=float(input('Digite b:'))
c=float(input('Digite c:'))
delta=(b*b)-(4*a*c)
if delta>=0:
x1=(-b+delta**(1/2))/2*a
x2=(-b-delta**(1/2))/2*a
print('X1:%.2f' %x1)
print('X2:%.2f' %x2)
else:
print('SSR')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f758c6bccce92a39ee512572b55a09aa2a0f479 | 2c7ae872d789701fafdeada20d0df8f07fd931c6 | /examples/12_write_program_scope.py | d45fb943d2329b2e76ccde63dcb059f254052435 | [
"Apache-2.0"
] | permissive | Ozsqhbj/pylogix | 55b78deb9c730e52f15bfa65d27844cd3bc3e12b | d6774690478334983d3695b367bd67233dc529d7 | refs/heads/master | 2022-11-08T11:40:58.428297 | 2022-11-01T18:37:17 | 2022-11-01T18:37:17 | 166,840,261 | 1 | 1 | Apache-2.0 | 2019-01-21T15:53:11 | 2019-01-21T15:53:11 | null | UTF-8 | Python | false | false | 626 | py | '''
the following import is only necessary because eip.py is not in this directory
'''
import sys
sys.path.append('..')
'''
Write a program scoped tag
I have a program named "MiscHMI" in my main task.
In MiscHMI, the tag I'm reading will be TimeArray[0]
You have to specify that the tag will be program scoped
by appe... | [
"dmroeder@gmail.com"
] | dmroeder@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.