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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef8433f6bae0df2f57342d5ef4f9efcd844ecde0 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/search/tasks.py | 2c428bb843cb84de7aa107d3c9693be9e16496f7 | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | from oauth.utils import get_orcid_works, check_doi_in_works
from paper.models import Paper
from paper.utils import download_pdf
from researchhub.celery import app
from utils.orcid import orcid_api
from user.models import Author
from purchase.models import Wallet
VALID_LICENSES = []
@app.task
def download_pdf_by_lice... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
3fa9322ab882012f8dd6fc64efa180bbd27ec444 | f0856e60a095ce99ec3497b3f27567803056ac60 | /keras/keras19~31[scaler, CNN(GAP,DNN)]/keras31_cifar100_3_Djsull.py | 9150dcc697bf72ace67e7f4f1b9da8a5c55e6d9b | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212258 | 2021-10-27T08:00:49 | 2021-10-27T08:00:49 | 384,371,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler, QuantileTransformer,MaxAbsScaler, PowerTransformer, OneHotEncoder
from tensorflow.keras.datasets import cifar100
from tensorflow.keras.models import Sequential, Model
fro... | [
"tkackeowjs@naver.com"
] | tkackeowjs@naver.com |
c97e9f32dd8b94b6bb3365179ef73965eccd8be5 | bedae10cbaf676d8f309fa593028558d9a6e9c6b | /Algorithm/Easy/1000+/1206NextGreaterElementI.py | dfcffec1d8a09564dfb341ed4eb30870284fee73 | [
"MIT"
] | permissive | MartinYan623/Lint-Code | 5800d61a54f87306c25ff2e3d535145312b42c66 | 57d2fa441d6496234615736e3f55d0b71aaa51dc | refs/heads/master | 2021-06-06T13:51:19.587424 | 2021-04-21T12:23:19 | 2021-04-21T12:23:19 | 139,412,536 | 0 | 0 | null | 2020-08-08T10:28:52 | 2018-07-02T08:18:11 | Python | UTF-8 | Python | false | false | 627 | py | class Solution:
"""
@param nums1: an array
@param nums2: an array
@return: find all the next greater numbers for nums1's elements in the corresponding places of nums2
"""
def nextGreaterElement(self, nums1, nums2):
# Write your code here
for i in range(len(nums1)):
i... | [
"Maitong_y@163.com"
] | Maitong_y@163.com |
964de307289972354a1b551f7c32d12f000e98d4 | 95ec5d4d14516be1a1fdcc8bd1fb29279dfaff3c | /settings.py | 513790faf5a80aaabdf246439d26eae875211e35 | [] | no_license | gitter-badger/dev4gov.org | 16e25621a81552a6458cdd21cb96f17c7e222350 | a03165e921d0e76ad4283c970b3e0540f7d53c75 | refs/heads/master | 2021-01-18T06:52:15.360799 | 2011-08-21T09:01:55 | 2011-08-21T09:01:55 | 41,620,266 | 0 | 0 | null | 2015-08-30T07:25:32 | 2015-08-30T07:25:32 | null | UTF-8 | Python | false | false | 5,041 | py | # Django settings for dev4gov_org project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAM... | [
"sirmmo@gmail.com"
] | sirmmo@gmail.com |
96dbfb206fea6616d529302a4dd2d8b79d04dcdb | 4e8876d7b29cf9fb05849da77553b8a7e3783bdc | /src/plugins/processing/algs/gdal/contour.py | e25947294d997251bea2fcf065aa480f5e025270 | [] | no_license | hydrology-tep/hep-qgis-plugin-lite | 48477f504b6fc1a9a9446c7c7f5666f4b2ccfee7 | 781cbaa1b3e9331de6741dd44a22322048ab176c | refs/heads/master | 2021-03-27T17:01:18.284421 | 2018-06-27T12:09:58 | 2018-06-27T12:09:58 | 70,825,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
contour.py
---------------------
Date : September 2013
Copyright : (C) 2013 by Alexander Bruy
Email : alexander bruy at gmail dot com
**********... | [
"joaa@localhost.localdomain"
] | joaa@localhost.localdomain |
ab5d8fbd62d3448fb69cf6581a66121ca6459a25 | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/virtualbox/__about__.py | 600822f21eb32a6edbdfa087453d0b2e1ea10fc2 | [
"Apache-2.0"
] | permissive | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | __title__ = "virtualbox"
__author__ = "Michael Dorman"
__author_email__ = "mjdorma+pyvbox@gmail.com"
__maintainer__ = "Seth Michael Larson"
__maintainer_email__ = "sethmichaellarson@gmail.com"
__version__ = "2.1.1"
__license__ = "Apache-2.0"
__url__ = "https://github.com/sethmlarson/virtualbox-python"
| [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
4749bf6ccf6bd5a56d395c5462ac67cbfea6b435 | 7936ebf5b94c3d153fb55248b52db2eff724427c | /11/homework11/zhihu_top100.py | 6fb64a0e8b94e74945b6a87d6f31271cd6307984 | [
"MIT"
] | permissive | xiaodongzi/pytohon_teach_material | f9e95f7b294a9e49d86d1a8e25cbef5efef3aaf7 | 13ed128a993637d0203f1f8c5419d781d7212883 | refs/heads/master | 2021-05-30T09:48:16.898483 | 2016-01-24T17:02:34 | 2016-01-24T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
import requests
from pyquery import PyQuery as pq
question_num = 1
page_num = 1
to_stop = False
scrap_questions_num = 100
while True:
url = "http://www.zhihu.com/topic/19776749/top-answers?page=%d" % (page_num)
res = requests.get(url)
# print res.encoding
for p in pq(res.content).find... | [
"seerjk@gmail.com"
] | seerjk@gmail.com |
0bf78b5a94b1e07dee662b8e341ee34aea435e03 | 54857571461a579bed30cee27871aaa5fe396bcc | /nltk-0.9.7/src/nltk/inference/inference.py | 0b6d64c2a35e50e6cfaa2627aae6c30fe56517a5 | [] | no_license | ahmedBazaz/affective-text-classification | 78375182e800b39e0e309e8b469e273c0d9590f0 | 719e9b26e60863c620662564fb9cfeafc004777f | refs/heads/master | 2021-01-10T14:50:01.100274 | 2009-01-09T03:59:01 | 2009-01-09T03:59:01 | 48,296,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | # Natural Language Toolkit: Interface to Theorem Provers
#
# Author: Dan Garrette <dhgarrette@gmail.com>
# Ewan Klein <ewan@inf.ed.ac.uk>
#
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from nltk.sem import logic
import api
import tableau
import prover9
import mace
i... | [
"tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883"
] | tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883 |
f36f09b4e05bbc16b9f5367879c5ca25aebf7d66 | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/qa/migrations/0006_coupon_vendor_branch.py | 35b01a8e9fea5a66447f1b448de6613892793c36 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.0.5 on 2019-03-12 08:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0123_auto_20190312_1736'),
('qa', '0005_auto_20190312_1732'),
]
operations = [
migrations.A... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
5c15afa29895acb8165f67f96d1744092f542d33 | ed269e9a4d9d6bfbb833381b7aef65a23f391fe2 | /比赛/5479. 千位分隔数.py | f95b565d2780cc9f0cda6a36ec21c68410b1d997 | [] | 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 | 758 | py | class Solution(object):
def thousandSeparator(self, n):
"""
:type n: int
:rtype: str
"""
ans =""
res= n % 1000
n = n // 1000
ans = str(res) + ans
if n ==0:
return ans
if len(str(res)) == 2:
ans = "0" + ans
... | [
"2892211452aa@gmail.com"
] | 2892211452aa@gmail.com |
172a86f3c38e5011aa0bf1ac25cc91867d724c2f | 9e5353ba6e50f77a40a765bd494d8bfb990c8922 | /stream_backend/api/serializers.py | d5946df70464fd9e7b8cffcfad2c351823f30c86 | [] | no_license | admiralbolt/stream-stuff | d9e24f1d78ac142416525b9b42cc53ef0bc4712a | 29cfa96f9e8d40c531362aced47ebacadccbe759 | refs/heads/master | 2023-08-05T00:02:17.812991 | 2021-09-23T05:47:16 | 2021-09-23T05:47:16 | 261,022,447 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import json
from rest_framework import serializers
from api import models
class JsonSerializer(serializers.Field):
"""Custom serializer for json fields.
Internally json fields are represented as a string.
Externally it's json. What the fuck did you expect?
"""
def to_representation(self, val... | [
"aviknecht@gmail.com"
] | aviknecht@gmail.com |
3794ad4e6c4c29f51277e6c3db63938934199c94 | 912b3b5321c7e26887af94cf2f97e4892c8c956a | /Day6/1_os模块.py | e6c1d55e65f6ce1f83dbdb50a2a2369a9e7f34ed | [] | no_license | nmap1208/2016-python-oldboy | a3a614694aead518b86bcb75127e1ed2ef94604a | 873820e30aeb834b6a95bae66259506955436097 | refs/heads/master | 2021-05-31T04:43:14.636250 | 2016-05-06T01:24:39 | 2016-05-06T01:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # -*- coding:utf-8 -*-
import os
a = os.popen('ls')
print(type(a))
print(a.read())
b = os.system('ls')
print(b)
c = os.stat('1_os模块.py')
print(c)
print(os.path.isfile('.'))
print(os.path.isdir('.'))
print()
print(os.path.isfile('1_os模块.py'))
print(os.path.isdir('1_os模块.py')) | [
"yangk@ersoft.cn"
] | yangk@ersoft.cn |
e01e2b05fabcddca2a5a6ff51953f8e148933344 | 34ddec647d6ad357c1527cf713eaeaee4eb575aa | /2020/24/part1.py | 15437d944874572ab3349f6d824f88d3d20bf217 | [
"Unlicense"
] | permissive | cheshyre/advent-of-code | 98327c564f6b401244778aaf9a16043000b4d85e | 7ecb827745bd59e6ad249707bd976888006f935c | refs/heads/master | 2022-12-21T15:53:38.789228 | 2022-12-20T20:07:28 | 2022-12-20T20:07:28 | 75,426,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import os
import hex_grid
cur_dir = os.path.dirname(os.path.abspath(__file__))
tiles_count = {}
with open(f"{cur_dir}/input") as f:
for line in f:
instrs = hex_grid.parse_instructions(line)
point = (0, 0)
for i in instrs:
point = hex_grid.apply_instruction_to_point(point, i)
... | [
"heinz.matthias.3@gmail.com"
] | heinz.matthias.3@gmail.com |
8ca1f76025a6c70f3e1501bb42a2497806635dcd | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_TransformerDecoderLayer_base.py | a05bd02f5bfde173c39458efb57dde220590c836 | [] | 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 | 668 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
9f96bd3e842b17ffff0232b9c3744b778aa03a07 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_None/trend_MovingAverage/cycle_0/ar_/test_artificial_32_None_MovingAverage_0__20.py | 4d34289521e410c56e4feef0b93dd14485083f72 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 262 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
00054f224feac895bdeb59caf0cd9aa1a4ec7ba7 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/13102401.py | 51ba130c83268a3466ef39a7a7bdf749d0a89dca | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/13102401.py generated: Fri, 27 Mar 2015 15:48:14
#
# Event Type: 13102401
#
# ASCII decay Descriptor: [B_s0 -> rho+ K-]cc
#
from Configurables import Generation
Generation().EventType = 13102401
Generation().SampleGenerationTool = "SignalRepeatedHadroniza... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2a95a869e7d772ab128482d441931e4fa0c543aa | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FGzWE8vNyxtTrw3Qg_9.py | 5ad6edc044c49e09b4fc47b751fcc79350dfb72e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py |
def get_nbrs(grid, r, c):
nbrs = [[r+dr, c+dc] for dr, dc in [[-1,0],[0,1],[1,0],[0,-1]]]
return [[nr, nc] for nr, nc in nbrs if 0<=nr<len(grid) and 0<=nc<len(grid[0]) and grid[nr][nc]==1]
def is_region(grid, r, c):
if grid[r][c] != 1: return False
# set all interconnected cells in region to 0
# using back... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1af7478a5ccc39c7e8958468814792161a1bd6df | 70c3cf5f0c58b0074b33f653500604b5f4f7e198 | /rm_scraping/scrape.py | 4de5cfa3e045ca42c9b60e3faf2c82cac2d44c8e | [] | no_license | colinmorris/wiki-controversial-titles | 659a7264c7fe652b696e20414acbd74a4cb1b3f6 | b089c08655527e10624ecd912a0058fd1f150778 | refs/heads/master | 2020-06-03T05:04:07.017575 | 2019-07-27T22:32:34 | 2019-07-27T22:32:34 | 191,450,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | import csv
import os
import mwclient
import argparse
import pandas as pd
from RM import RM
from constants import *
FLUSH_EVERY = 50
LIMIT = 0
NEXT_ID = 0
def scrape_rms_for_title(title, f_fail, debug=0):
global NEXT_ID
pg = wiki.pages[title]
section_ix = 1
while 1:
try:
section = pg.text(section=s... | [
"colin.morris2@gmail.com"
] | colin.morris2@gmail.com |
d6cbdb0585782c2794ba7450f08232c03959e33d | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/alan-hicks/django-dmarc/dmarc/views.py | 9a3cac700e01af8df8f7ac8922d8369c5b52f135 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 1,280 | py | #----------------------------------------------------------------------
# Copyright (c) 2015, Persistent Objects Ltd http://p-o.co.uk/
#
# License: BSD
#----------------------------------------------------------------------
"""
DMARC views
http://dmarc.org/resources/specification/
"""
from django.contrib.admin.views.de... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
0e58b2eb4476360bd160080cb9a03e7fcad7a6e2 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/zun-ui/zun_ui/enabled/_2340_admin_container_providervms_panel.py | 4812c633141e50e75d7f5283c994e5efb453fe51 | [
"Apache-2.0"
] | permissive | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 964 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
6133de21acc69badb689577af432bce59a5def07 | 14cef240063145bba81d7ac4bd25ed671585527c | /core/database/crud/bottify_user.py | 4433dceb8bad52c68591d531e46bc649e45080ee | [] | no_license | Kroonjay/Bottify | f139d3cf6753c36b85ec061888a88c9f82dfd715 | c30c9cf924d19d053b0f678eb9d69143398ea83a | refs/heads/main | 2023-07-30T02:10:08.878698 | 2021-09-29T16:30:35 | 2021-09-29T16:30:35 | 411,117,108 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | import logging
from databases import Database
from uuid import UUID
from core.security.password import get_password_hash
from core.models.user import BottifyUserInModel, BottifyUserModel
from core.database.tables.bottify_user import get_bottify_user_table
from core.database.helpers import build_model_from_row
use... | [
"scoutfullner96@gmail.com"
] | scoutfullner96@gmail.com |
6ec3308ca74aee29ace51e8fb3b39a143120e86f | 29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68 | /tests/api_workflow/test_api_workflow_selection.py | 73147fd03b6bbd08ffaf12ded248a6f812a0cb81 | [
"MIT"
] | permissive | lightly-ai/lightly | 5b655fe283b7cc2ddf1d7f5bd098603fc1cce627 | 5650ee8d4057139acf8aa10c884d5d5cdc2ccb17 | refs/heads/master | 2023-08-17T11:08:00.135920 | 2023-08-16T12:43:02 | 2023-08-16T12:43:02 | 303,705,119 | 2,473 | 229 | MIT | 2023-09-14T14:47:16 | 2020-10-13T13:02:56 | Python | UTF-8 | Python | false | false | 7,897 | py | from typing import List
import pytest
from pytest_mock import MockerFixture
from lightly.active_learning.config.selection_config import SelectionConfig
from lightly.api import ApiWorkflowClient, api_workflow_selection
from lightly.openapi_generated.swagger_client.models import (
JobResultType,
JobState,
J... | [
"noreply@github.com"
] | lightly-ai.noreply@github.com |
8fe975eac45d0cbc7088a107247e236f4fea121b | 79a836022275b94b687325ae36980cafe6d66788 | /setup.py | 18eba6b9644a02f8b6a1d99711326daac0f2de62 | [] | no_license | reminder-bot/start | 1194adede56c46b587e27b003c0c401ceb7b9056 | 33c613d5a9c168635ad221d864e25d27c726ae5a | refs/heads/master | 2020-03-21T23:34:21.716780 | 2018-08-30T20:13:14 | 2018-08-30T20:13:14 | 139,195,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import os
import configparser
try:
os.mkdir('../DATA')
except FileExistsError:
pass
files = ['todos']
contents = ['{}']
for fn, content in zip(files, contents):
if fn + '.json' in os.listdir('../DATA/'):
continue
f = open('../DATA/' + fn + '.json', 'w')
f.write(content)
f.close()
if... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
d7420989469dab17d9f1146e6f856d16c343fb1e | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Green_06/midterm1.py | bbd16356c363c790e981dd3ec7c049cf0c48699b | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | n = int(input())
result = 1
if n == 1:
result = 1 * 15000
elif 2 <= n <= 5:
result = 1 * 15000 + (n - 1) * 13500
elif 6 <= n <= 11:
result = 1 * 15000 + 4 * 13500 + (n - 5) * 11000
elif n >= 12:
result = int((1 * 15000 + 4 * 13500 + (n - 5) * 11000) * (1 - 0.1))
print(result ) | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
addce9e9601f6db6495755d3b9f0ef59ec7bae2b | ac6a1789722de5e37be54b39b964beef005d111d | /rest_registration/utils/validation.py | d23aac4f20409a39eba749fbb9ac6225315dc012 | [
"MIT"
] | permissive | sunbeamer/django-rest-registration | cd194ccf152c62802ca6f7d7a048764da8aadf8a | dd25b84d0151630659da4c2c17ed48d26238e006 | refs/heads/master | 2023-03-29T10:39:06.225559 | 2021-03-25T23:21:46 | 2021-03-25T23:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | import functools
from collections import OrderedDict
from collections.abc import Mapping
from typing import Any, Callable, Dict, Iterable, List
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError as DjangoValidationError
from django.utils.translation... | [
"apragacz@o2.pl"
] | apragacz@o2.pl |
c8275c0263fa17dd5c699419bd33e02aa94828bc | 384813261c9e8d9ee03e141ba7270c48592064e9 | /new_project/fastsklearnfeature/interactiveAutoML/new_bench/multiobjective/metalearning/openml_data/private_models/randomforest/sam_node.py | 8fbb83881a619090a269f8cb2979875d31f3c78e | [] | no_license | pratyushagnihotri/DFS | b99d87c085e67888b81c19629c338dae92272a3b | 3b60e574905e93c24a2b883cc251ecc286cb2263 | refs/heads/master | 2023-04-18T22:17:36.816581 | 2021-04-20T13:41:29 | 2021-04-20T13:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,128 | py | ''' A class defining the nodes in our Differentially Private Random Decision Forest '''
from collections import defaultdict
import random
import numpy as np
import math
from scipy import stats # for Exponential Mechanism
class node:
def __init__(self, parent_node, split_value_from_parent, splitting_attribute, t... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
44ed7aab029125950b6f5f506929e89f4de0dcdf | 6968c7f9d2b20b5296663829f99a27d184a59fc1 | /autodisc/autodisc/gui/jupyter/imagelistwidget.py | b6152e78a221de869f622b5b6696836db4ed377e | [
"MIT",
"Apache-2.0"
] | 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 | 6,855 | py | import autodisc as ad
import ipywidgets
import numpy as np
import IPython.display
class ImageListWidget(ipywidgets.VBox):
@staticmethod
def get_default_gui_config():
default_config = ad.Config()
default_config.elements_per_page = 100
default_config.output_layout = ad.Config()
... | [
"chris.reinke@inria.fr"
] | chris.reinke@inria.fr |
2ac952f31d08278c866ed2990a35fd7f970f3e15 | fdf3aff5344271ef69ac7441c5dbca9cbf832cd1 | /car_location/location/models/__init__.py | 1219e9aa74d0d07e37129adcf33bba5812ee7ee2 | [] | no_license | lffsantos/DesafioPython | 6069b3277780326611e34ae024f7506f3d56c5b4 | fbc451b77c0310630fd95cbd23c339e194af88d1 | refs/heads/master | 2021-01-17T07:42:12.181187 | 2016-01-19T03:39:20 | 2016-01-19T03:39:20 | 49,730,610 | 0 | 0 | null | 2016-01-19T03:39:22 | 2016-01-15T16:25:30 | JavaScript | UTF-8 | Python | false | false | 277 | py | __author__ = 'lucas'
from car_location.location.models import categoriaveiculo
from car_location.location.models import veiculo
from car_location.location.models import cliente
from car_location.location.models import locacao
from car_location.location.models import devolucao | [
"lffsantos@gmail.com"
] | lffsantos@gmail.com |
9b86763b34bce30afdb20d256f2e76972cc7a3ed | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/tests/problems/hashtable/sparse_matrix.py | 6ffec84f318bf38c68b1a11b7e3818d670628f49 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,219 | py | import unittest
from dcp.problems.hashtable.sparse_matrix import SparseMatrix
class Test_SparseMatrix(unittest.TestCase):
def setUp(self):
pass
def test_case1(self):
mat = [[0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], \
[0, 0, 0, 0... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
4404d9fc262775f54d590079477f8a1ba5b93179 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/gevent/greentest/test__semaphore.py | 480ec0e930466916a152bfe75550bf85470a4e0e | [
"MIT"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 640 | py | import greentest
import gevent
from gevent.lock import Semaphore
class TestTimeoutAcquire(greentest.TestCase):
# issue 39
def test_acquire_returns_false_after_timeout(self):
s = Semaphore(value=0)
result = s.acquire(timeout=0.01)
assert result is False, repr(result)
def test_rele... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
58c7af9907e90657db990a4e460eb35ea902d102 | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/Authorization_System/Authorization_System_generateToken_POST/test_TC_43372_Authorizationsystems_POST_Pastdate_For_Not_Before_Time.py | fbedd554265220c2b614fc0c146a20e9c5d9bc1c | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,941 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Authorization_Systems.
* TC-43372 - Authorization_Systems POST:
Verify that user is unable to generate Token on providing time before expiration time for 'notBeforeTime' field using request POST /authorizationSystems/{id}/generateToken ".
Equivalent test CURL com... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
de4031edd500d91f3c5f79daceda0b6ddd0c105d | 53faa0ef3496997412eb5e697bc85eb09a28f8c9 | /pipeline/0x02-databases/34-log_stats.py | cd026394d8134a1af7cdf365a1a6c146de8897f9 | [] | no_license | oran2527/holbertonschool-machine_learning | aaec2ffe762b959573f98a5f4e002272a5d643a3 | 8761eb876046ad3c0c3f85d98dbdca4007d93cd1 | refs/heads/master | 2023-08-14T00:37:31.163130 | 2021-09-20T13:34:33 | 2021-09-20T13:34:33 | 330,999,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python3
""" stats about Nginx logs stored in MongoDB """
from pymongo import MongoClient
if __name__ == "__main__":
""" stats about Nginx logs stored in MongoDB """
client = MongoClient('mongodb://127.0.0.1:27017')
collection_logs = client.logs.nginx
num_docs = collection_logs.count_doc... | [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
cbe4d8dfdab89e21fe288bd6986ab78a30943da9 | a1807bf5ca332fecc7e775c9bde25eeed318db9d | /disclosure_backend/tests/test_docgen.py | 63a82b798a7aed4f2eaba4f1d41ba995ffbe972e | [] | no_license | MrMaksimize/disclosure-backend | 2c6a8936c08cd4c3ff328ee114a8050e410989cf | 6d97305b4656bd630b9e12aef953daed51c84ed7 | refs/heads/master | 2020-12-26T00:46:07.104157 | 2016-01-06T17:04:38 | 2016-01-06T17:04:38 | 49,169,984 | 0 | 0 | null | 2016-02-12T14:05:13 | 2016-01-07T00:19:30 | Python | UTF-8 | Python | false | false | 479 | py | import os
from django.conf import settings
from django.core.management import call_command
from rest_framework.test import APITestCase
class DocGenerationTest(APITestCase):
def test_generate_docs(self):
""" Test createcalaccessrawmodeldocs"""
call_command('createcalaccessrawmodeldocs')
# ... | [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
a94dbdf4fc6e774943ac77d02fc7c1c4ab4a4eff | 99767736ea5f34be4438ce689fc27454dffbf15c | /build/lib/sqlalchemy_nav/__init__.py | f5667ece8a87d320adf715b232e0f99d96ab7b47 | [
"MIT"
] | permissive | dsbowen/sqlalchemy-nav | 4600ff85c99878d98167fee000d5b9cd6a0a90bc | d60b28fe74cdde65de68a140d0c2845d92fb9b0f | refs/heads/master | 2020-08-02T09:35:27.233849 | 2020-06-10T16:50:22 | 2020-06-10T16:50:22 | 211,304,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | """Mixins for SQLAlchemy-Nav
SQLAlchemy-Nav Mixins can be used to create dynamic navigation bar models
compatible with Bootstrap 4. Navigation bars can contain navigation
items, dropdown items, and custom html.
All models store their HTML in a `MutableSoup` attribute, `body`. This is
essentially a `BeautifulSoup` ... | [
"dsbowen@wharton.upenn.edu"
] | dsbowen@wharton.upenn.edu |
4239b59efd8be01546de57fd9436920f76c9aaf9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch14_2020_03_09_13_31_11_006129.py | 151ce51fd678c102515933e6bb62da962336d66d | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def calcula_distancia_do_projetil(v,t,h):
D= (v**2/2*9.8)*(1+(1+(2*9.8*h)/v**2*(math.sin(t))**2))*math.sin(2*t)
return D | [
"you@example.com"
] | you@example.com |
a3bd9f7287b261d6b7e3c747f1d10e15bca2a1c1 | 2855f26e603ec7bf5b18876b54b75ee4577bdf2c | /witdraw/forms.py | 65f12090c349714d0754149c7cec48b2f49658bc | [] | no_license | zkenstein/ppob_multipay_v2 | e8ea789c395c6fa5b83ba56fbaf5ea08a2a77a14 | 85296f925acf3e94cc371637805d454581391f6e | refs/heads/master | 2022-03-04T13:53:30.893380 | 2019-11-16T22:49:50 | 2019-11-16T22:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | from django import forms
from django.contrib.auth.models import User
from .models import Witdraw
MIN_COMMISION = 10000
class WitdrawForm(forms.ModelForm):
class Meta:
model = Witdraw
fields = [
'create_by', 'amount'
]
def __init__(self, *args, **kwargs):
super(Witd... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
ac33c346ad83106d32dfc516843c5835c52734e9 | 3ed70536d4d06b2ac43b64976ddc43a5d7025b31 | /uri1091.py | 4cb102241664ec3f00f7c77717e8df84b2c4c8f9 | [] | no_license | LuisHenrique01/Questoes_URI | 7f1d397e3cd055349939184603eb86cb4bf43d65 | 35c8e77eb7cd9da96df4268b5d71f3ad87446c89 | refs/heads/master | 2020-07-22T08:12:12.700484 | 2020-04-12T17:39:29 | 2020-04-12T17:39:29 | 207,126,339 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | def main():
while True:
rep = int(input())
if rep == 0: break
div_x, div_y = list(map(int, input().split()))
for _ in range(rep):
ponto_x, ponto_y = list(map(int, input().split()))
if ponto_x == div_x or ponto_y == div_y:
print('divisa')
... | [
"luizbueno1201@gmail.com"
] | luizbueno1201@gmail.com |
bbb33c2583e79f2ebfcf80477d93aa479721526b | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/vault/oas/models/contracts_smart_contract.py | d5d7062b8e4de5bd91efe115deb981877b802760 | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,856 | py | # coding: utf-8
"""
vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
0db6856e41bbe6b3773d8320f95dd2e5edbcc1d6 | 451f158c20fd425bc9d14c8e27e1a8f415423276 | /novels_search/config/config.py | d38b0dcf8002cdb6327e83d0f826c02ffffffbc9 | [
"Apache-2.0"
] | permissive | TimeCharmer/novels-search | 3767a77c237426a66f25287abae3c0a44528cf52 | ab8152ff12d828dba0a8b52aa9c08675b21a1c5f | refs/heads/master | 2021-01-19T14:21:28.438011 | 2017-04-12T09:37:48 | 2017-04-12T09:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | #!/usr/bin/env python
import logging
from aiocache import RedisCache
# Search engine
URL_PHONE = 'https://m.baidu.com/s'
URL_PC = 'http://www.baidu.com/s'
BAIDU_RN = 15
SO_URL = "https://www.so.com/s"
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
a71c39e3394fc5cc6525d2128a4f4548fe0a677b | 042bd40e554ac7fcd618c334ae98b4f43248a250 | /interfaces/python/lib/ocean_dummy.py | 41ebdac07d314bb378d87fb2fc951791b1c79acd | [
"Apache-2.0"
] | permissive | kant/ocean-tensor-package | 8a62df968335de2057ff095f0910e5ad5fcff8e1 | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | refs/heads/master | 2020-03-29T04:01:22.064480 | 2018-09-19T19:17:19 | 2018-09-19T19:17:19 | 149,511,923 | 0 | 0 | Apache-2.0 | 2018-09-19T21:03:14 | 2018-09-19T21:03:14 | null | UTF-8 | Python | false | false | 925 | py | # -------------------------------------------------------------------------
# Copyright 2018, IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... | [
"evandenberg@us.ibm.com"
] | evandenberg@us.ibm.com |
8817c54b5350de86ca658ecf083530659a7b4852 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /unreleased/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_create_or_update_parameters.py | 22ea6ee0888f32dfc1f858599060ca80abe0a49a | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 2,128 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
0db5b3deb80041a74fe00a76329d36249f0746ad | 42dd79c614b775e6e8e782ea7ab332aef44251b9 | /extra_apps/xadmin/views/website.py | 02012eff0b7d66b2d7a36ed53d7a74ac75de61ae | [] | no_license | Annihilater/imooc | 114575638f251a0050a0240d5a25fc69ef07d9ea | 547046cff32ce413b0a4e21714cb9ab9ce19bc49 | refs/heads/master | 2020-05-03T09:06:18.247371 | 2019-12-04T09:24:55 | 2019-12-04T09:24:55 | 178,545,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | from __future__ import absolute_import
from django.utils.translation import ugettext as _
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.views.decorators.cache import never_cache
from django.contrib.auth.views import LoginView as login
from django.contrib.auth.views import LogoutView as logout
from dja... | [
"yanmiexingkong@gmail.com"
] | yanmiexingkong@gmail.com |
592f65c3845cec1b556e21772988fe41c2d61145 | aca2258cf58e0d2c7e4939e73bcb82b6c135282c | /libs/Mailman/mailman/commands/tests/test_membership.py | 6cf4802c6c8546a83b4d135e007b28482e0492be | [] | no_license | masomel/py-import-analysis | cfe6749a1d7430b179559b9e0911b8c8df507be7 | 7edf8148e34b9f73ca6433ceb43a1770f4fa32c1 | refs/heads/master | 2021-03-16T10:00:24.205301 | 2019-08-01T20:32:34 | 2019-08-01T20:32:34 | 112,668,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # Copyright (C) 2016-2017 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman 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 you... | [
"msmelara@gmail.com"
] | msmelara@gmail.com |
4b0e7d05d72b190fc3957af9c61e79e11a21b644 | abccdbf9b0849b47960c3c352870793405debfed | /0x07-python-test_driven_development/4-print_square.py | fab6205b3d5afa34eec331a57f3ea50045fc96f1 | [] | no_license | hunterxx0/holbertonschool-higher_level_programming | 88b1b0f31b536c6940f2e64a6924a06ba9cbf193 | 44064cf0722cd20d93f58b64ab185d2898770d73 | refs/heads/master | 2022-12-20T12:14:15.877147 | 2020-09-24T21:25:54 | 2020-09-24T21:25:54 | 259,276,369 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/python3
"""
a square printing function: print_square()::
>>> def print_square(1):
#
"""
def print_square(size):
"""
Prints a square of size 'size'
"""
if type(size) is not int:
raise TypeError('size must be an integer')
elif size < 0:
raise ValueError('size must be >= 0'... | [
"azouzimhamed@gmail.com"
] | azouzimhamed@gmail.com |
a8c4360159626be4980ee48d7a6491db264ceafc | 162e2588156cb2c0039c926c5c442363d9f77b00 | /tests/integration_tests/data_steward/analytics/cdr_ops/report_runner_test.py | c00229bcb0b01b9d9828c4aa35f5c20ef5eb9760 | [
"MIT"
] | permissive | nishanthpp93/curation | 38be687240b52decc25ffb7b655f25e9faa40e47 | ac9f38b2f4580ae806121dd929293159132c7d2a | refs/heads/develop | 2022-08-08T20:33:53.125216 | 2021-12-03T21:38:48 | 2021-12-03T21:38:48 | 155,608,471 | 1 | 0 | MIT | 2020-10-09T01:14:39 | 2018-10-31T18:54:34 | Python | UTF-8 | Python | false | false | 3,081 | py | import os
import unittest
from tempfile import NamedTemporaryFile
from pathlib import PurePath
from bs4 import BeautifulSoup as bs
from analytics.cdr_ops.report_runner import IPYNB_SUFFIX, HTML_SUFFIX, main
TEST_NOTEBOOK = """
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# fo... | [
"noreply@github.com"
] | nishanthpp93.noreply@github.com |
5846bc204c7e1842e8b5ea77991c70bcba7181e3 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/52_14.py | ac7dd979fdab752a1073fb88aae9f43db82f325a | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | Python – Test for Even values dictionary values lists
Given a dictionary with lists as values, map Boolean values depending upon all
values in List are Even or not.
> **Input** : {“Gfg” : [6, 8, 10], “is” : [8, 10, 12, 16], “Best” : [10, 16,
> 14, 6]}
> **Output** : {‘Gfg’: True, ‘is’: True, ‘Best’: Tr... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
8eef75cab1181157c9944e567533b91f03ae8168 | 7f0c02b3eef636cc382484dd8015207c35cc83a8 | /lib/python/treadmill/runtime/linux/image/_docker.py | fa24bbf1455842f1673f31d8a4867769d207bc30 | [
"Apache-2.0"
] | permissive | ceache/treadmill | 4efa69482dafb990978bfdcb54b24c16ca5d1147 | 26a1f667fe272ff1762a558acfd66963494020ca | refs/heads/master | 2021-01-12T12:44:13.474640 | 2019-08-20T23:22:37 | 2019-08-20T23:22:37 | 151,146,942 | 0 | 0 | Apache-2.0 | 2018-10-01T19:31:51 | 2018-10-01T19:31:51 | null | UTF-8 | Python | false | false | 4,405 | py | """Docker funtion in linux runtime
"""
import grp # pylint: disable=import-error
import io
import logging
import os
from treadmill import exc
from treadmill import fs
from treadmill import subproc
from treadmill import supervisor
from treadmill import utils
from treadmill import dockerutils
from treadmill.appcfg im... | [
"ceache@users.noreply.github.com"
] | ceache@users.noreply.github.com |
34698f6c132ed077c67d3a15f869d8d78bcefe61 | 3e3863e9eced23d646cd039a395b08ed6d1f3929 | /training/medium/robbery-optimisation.py | ca3d8f40995da67cf5301d321958008d3857282b | [] | no_license | Coni63/CG_repo | dd608bdbd2560598a72339d150ec003e6b688cac | d30e01dfe2a12e26c85799c82cf38e606ffdbc16 | refs/heads/master | 2020-06-25T04:03:54.260340 | 2019-10-20T16:16:40 | 2019-10-20T16:16:40 | 199,195,242 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
housevalue = [int(input()) for i in range(n)]
n = len(housevalue)
pn = housevalue[0]
qn = 0
for i in range(1, n):
pn1 = pn
qn1 = q... | [
"="
] | = |
fc9f01887c4a6b276e93e9c6fd48ae39dd9e98b0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_Class66.py | de1dd2f58ce2a9d58b5a7c4f8933d6310d93f36a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | # qubit number=3
# total number=11
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
463cdc82d5cd7cd1180bc5eaf2219bb87377ff45 | c9ad6ad969de505b3c8471c6f46dfd782a0fb498 | /0x07-python-test_driven_development/2-matrix_divided.py | e9a56cfcebadaa9b6d3ac60f351c118538368d68 | [] | no_license | enterpreneur369/holbertonschool-higher_level_programming | 002fd5a19b40c8b1db06b34c4344e307f24c17ac | dd7d3f14bf3bacb41e2116d732ced78998a4afcc | refs/heads/master | 2022-06-20T00:57:27.736122 | 2020-05-06T14:26:10 | 2020-05-06T14:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | #!/usr/bin/python3
""" Module 2-matrix_mul
Module that contains the function matrix_mul
"""
def matrix_mul(m_a, m_b):
""" Returns a product matrix
Arguments:
m_a (list:int, list:float): First matrix
m_b (list:int, list:float): Second matrix
"""
res = []
row_err = "Each row of the... | [
"jose.calderon@holbertonschool.com"
] | jose.calderon@holbertonschool.com |
b150f199a4268e8ab72d5c9a9ce49b2d6abe73d4 | 698cb8d24879fe75669af6f2667c3f88660a0a1e | /deepModel/s11b_ALS_CONCAT.py | 29627c713b760a2dcfce82233dba73e25b24c24f | [] | no_license | HuichuanLI/Recommand-Algorithme | c83c5d34d75eebd127e2aef7abc8b7152fc54f96 | 302e14a3f7e5d72ded73b72a538596b6dc1233ff | refs/heads/master | 2023-05-11T03:01:30.940242 | 2023-04-30T08:03:19 | 2023-04-30T08:03:19 | 187,097,782 | 71 | 19 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | import numpy as np
from data_set import filepaths as fp
from torch.utils.data import DataLoader
from torch import nn
import torch.nn.functional as F
import torch
from sklearn.metrics import precision_score, recall_score, accuracy_score
from basic_sim import dataloader
class ALS_MLP(nn.Module):
def __in... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
78b7438d65e518367530ce1ce4adeed283a97e9a | 002ee33a04a6a74c10be79a2d667871de90fe728 | /faq/views.py | 4c8191dd9394c62569a71e75a3d988cd4a34e227 | [] | no_license | Code-Institute-Submissions/final-milestone-eCommerce | dc5866c61acd31bbf59ed31168e3e8110262a737 | d1547f90dc26ca20be299b98966865ef88df0027 | refs/heads/master | 2022-11-26T00:27:32.014852 | 2020-08-07T14:44:55 | 2020-08-07T14:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django.shortcuts import render
from .models import FAQ
def show_faqs(request):
"""Renders all of the current frequently asked questions
to the faq.html page
"""
faqs = FAQ.objects.all()
return render(request, 'faq/faq.html', {'faqs': faqs})
| [
"adrian.havenga@yahoo.com"
] | adrian.havenga@yahoo.com |
0b026b7588cfd52cc92d6fd76b2985618ef2f533 | 60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14 | /beginner_contest/175/C.py | 430190fbe6f342eff4aae54d28abe6bb704ad2fd | [
"MIT"
] | permissive | FGtatsuro/myatcoder | 12a9daafc88efbb60fc0cd8840e594500fc3ee55 | 25a3123be6a6311e7d1c25394987de3e35575ff4 | refs/heads/master | 2021-06-13T15:24:07.906742 | 2021-05-16T11:47:09 | 2021-05-16T11:47:09 | 195,441,531 | 0 | 0 | MIT | 2021-05-16T11:47:10 | 2019-07-05T16:47:58 | Python | UTF-8 | Python | false | false | 331 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
x, k, d = map(int, input().split())
x = abs(x)
if x - (k * d) >= 0:
print(x - (k * d))
sys.exit(0)
else:
remain = k - (x // d)
p_min = x % d
n_min = abs(p_min -d)
if remain % 2 == 0:
print(p_min)
else:
pr... | [
"204491+FGtatsuro@users.noreply.github.com"
] | 204491+FGtatsuro@users.noreply.github.com |
84c2d1b9d4d9b14db0bd5e93aeac841a4e9ea9b0 | ddd3b6663fbcc5b64fe9a96a3da87dd1460e1ab4 | /src/routes/user.py | 8908f3e57f79e7b83ad52961a8451953a51f62fe | [] | no_license | ranihorev/scihive-backend | 3d72e35829d97368a331bc85c362c7af29b63eb9 | d246a8ed07b0fd793a1a9c3497c976cbd4957b3d | refs/heads/master | 2022-06-17T17:32:35.834425 | 2021-04-02T14:40:07 | 2021-04-02T14:40:07 | 184,781,038 | 13 | 4 | null | 2022-05-25T03:51:56 | 2019-05-03T15:41:16 | Python | UTF-8 | Python | false | false | 5,862 | py | import os
from flask import Blueprint, jsonify
import logging
from flask_jwt_extended.view_decorators import jwt_optional
from flask_restful import Api, Resource, abort, reqparse, marshal_with, fields
from flask_jwt_extended import (create_access_token, jwt_required, jwt_refresh_token_required,
... | [
"ranihorev@gmail.com"
] | ranihorev@gmail.com |
73797439d36e04dea271e61b61aa8620a1227750 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L26/26-1S_wat_20Abox/set_1.py | 36b3bd309b7e3c60deb656a873098ec88d7a6bb5 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L26/wat_20Abox/ti_one-step/26_1S/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
49b4e0b91d57155a69ce4080265a0ee06dd8bf3c | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/webdriver_manager/archive.py | f827dc3151deda496a84de6fc9aa5809d377ab0e | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 1,045 | py | import tarfile
import zipfile
class Archive(object):
def __init__(self, path: str):
self.file_path = path
def unpack(self, directory):
if self.file_path.endswith(".zip"):
return self.__extract_zip(directory)
elif self.file_path.endswith(".tar.gz"):
return self... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
3fc799fe13345e1eae8b48fa05b126090829b332 | 5a96112e11834d400a59b76caee33fd63831e273 | /python3_API_framework_V2/TestCases/test_api_v2.py | 60c0bfcfe591a2359e2ea5d8e3fd20024415a63f | [] | no_license | zhaozongzhao/interface_test | d3f93c8220cb5fab5f063ce7e315e54b2f623ce6 | f63f7e188639b34a8b80c9ce57591d9cabe3f4f8 | refs/heads/master | 2020-05-02T03:21:51.633352 | 2019-04-10T15:32:12 | 2019-04-10T15:32:12 | 177,726,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | import unittest
from Common.DoExcel import DoExcel
import os
from Common import myRequest
import ddt
from Common import dir_config
from Common import myLogger2
import logging
import re
#实例 化日志对象
#logger = MyLogger()
# 获取所有的测试数据
excelfile = dir_config.testcase_dir + "/api_info_1.xlsx"
de = DoExcel(excelfi... | [
"2206321864@qq.com"
] | 2206321864@qq.com |
e1bbce8655b1596bb2a77c6db900e7a854d70cf5 | 2c16e24486ac92bbd37f5c6d0d00ec4ba4d48e56 | /ex/ex1.py | 0d5193b36e4107bb3f5edf45a87b64307424927a | [] | no_license | alagram/lpthw | 386b6cf7534e2f7dba2e5832d6975107f27ceb9b | 656e7526006de80354917da881cbcbb3dbe8523a | refs/heads/master | 2021-01-10T20:55:35.461722 | 2014-09-16T18:33:50 | 2014-09-16T18:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # print "Hello World!"
# print "Hello Again"
# print "I like tying this."
# print "This is fun."
# print "Yay! Printing."
# print "I'd much rather you 'not'."
# print 'I "said" do not tocuh this.'
print "I am still printing..."
| [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
46efd06e7181e3095d182fdcacca6baea3973712 | 8d375652e44b67d73102fee7abc1abaab4cb4329 | /mcompiler/kernel/makeref.py | 9dfdeb93aea606402be14eef4fbc0d4790b57a87 | [
"MIT"
] | permissive | paulscottrobson/old-m-versions | 6d2061e36f2a5aaef388a4786406f876f0a06e0b | c2edb4200d32e066223ace4fd05837a485302645 | refs/heads/master | 2020-04-04T03:09:25.399283 | 2018-11-01T12:14:57 | 2018-11-01T12:14:57 | 155,709,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # ***********************************************************************************************
# ***********************************************************************************************
#
# Name : makeref.py
# Purpose : make reference file.
# Author : Paul Robson (paul@robsons.org.uk)
# Created : 17th... | [
"paul@robsons.org.uk"
] | paul@robsons.org.uk |
0d2ea1c5f31a044d68ce7bb06f65aaa2ee8a1422 | 327981aeef801fec08305d70270deab6f08bc122 | /13.tkinter与银行系统实战/thinker/18.Combobox下拉控件.py | 0dc0692ce37fde2328c063bb484b27127a142176 | [] | no_license | AWangHe/Python-basis | 2872db82187b169226271c509778c0798b151f50 | 2e3e9eb6da268f765c7ba04f1aefc644d50c0a29 | refs/heads/master | 2020-03-20T12:15:44.491323 | 2018-06-15T08:24:19 | 2018-06-15T08:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
import tkinter
from tkinter import ttk
#创建主窗口
win = tkinter.Tk()
#设置标题
win.title("魔兽世界")
#设置大小和位置 大小400x400 距离左侧400,距离上侧100
win.geometry("400x400+400+100")
#绑定变量
cv = tkinter.StringVar()
com = ttk.Combobox(win, textvariable = cv)
com.pack()
#设置下拉数据
com["value"] = ("济南", "青岛", "济宁")
#设置默认值
... | [
"huanji2209747841@foxmail.com"
] | huanji2209747841@foxmail.com |
c6e6e1ef088631e80462884b26b6f3bdfea593fb | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/messenger/proto/bw_chat2/find_criteria.py | ea24304c044114f780246fdbce4279659cbd77a3 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,701 | py | # 2016.02.14 12:42:53 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/messenger/proto/bw_chat2/find_criteria.py
from constants import PREBATTLE_TYPE
from messenger.ext import channel_num_gen
from messenger.m_constants import BATTLE_CHANNEL, PROTO_TYPE
from messenger.proto.interfaces import IEntityFindCr... | [
"info@webium.sk"
] | info@webium.sk |
8edf548db029dd530fa8bddd6f142a6ecd491f48 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/dns/transaction_util.py | e0444226d947ade648184a8d0f468d647f579eed | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 5,070 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
58a5ffe0456fe028034da211b3db8c3daf7f4530 | 7642f70954b73aca0d56f03b3e3577ee5648c752 | /ppm/settings.py | 5bfa923c2b43f7b3d5b3ae1d8a2264a866af4505 | [] | no_license | alviandk/ppm | 8e5dfb2ca9a98b460c9b0a71be68b5310ed56d87 | eea4d37904f86b4ec9cded6091b89d18244b85a9 | refs/heads/master | 2021-01-10T21:05:22.931101 | 2014-11-13T09:24:36 | 2014-11-13T09:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | """
Django settings for ppm project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"alviandk@gmail.com"
] | alviandk@gmail.com |
6e612a774a20e51feed223e0a74a18ebcf53f4a2 | 76fa4bc242502bcd9dfe1053c964318b94acc6d8 | /matplotlib bar chart/df_barplot.py | fc8ef89725b545217214b8af713ce4b4e05eb56a | [] | no_license | phani-1995/Week3-python_libraries | 720156098ccab5301a58e39a4dd7af5a19a08008 | 1347b8dfd4980b37471a54ce991c967fdcb32e2b | refs/heads/master | 2021-04-01T17:42:54.855954 | 2020-03-23T06:50:18 | 2020-03-23T06:50:18 | 248,204,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data=np.array([[2,4,6,8,10],[4,2,4,2,2],[8,3,7,6,4],[5,4,4,4,3],[6,6,8,6,2]])
dataFrame=pd.DataFrame(data,columns=['a','b','c','d','e'], index=["Delhi",'Mumbai','Hyderabad','Pune','Bengalur'])
dataFrame.plot(kind='bar')
plt.show() | [
"phanindrajallavaram@gmail.com"
] | phanindrajallavaram@gmail.com |
d700bfe0470ed942dca42727b21481b2d69a4bcd | 5e324af46c554b88b97ee26886b05c88457ff0f5 | /franchises/models/franchise.py | 8d73000fdaadc7d85bb373e0c6cadd7335661a11 | [] | no_license | doubleclickdetroit/dindintonight | 1bda8851e49782d4dc16ca77d46e4b1f431c2b52 | 9769e1a96730b02511d25af8828b075dff5c35b5 | refs/heads/master | 2016-08-04T22:01:08.083566 | 2014-07-26T18:58:58 | 2014-07-26T18:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | from autoslug import AutoSlugField
from django.db import models
from django.db.models.signals import post_save
from core.models import BaseModel
class Franchise(BaseModel):
id = models.AutoField(primary_key=True)
owner = models.OneToOneField('users.User', related_name='franchise_owners')
slug = AutoSlugF... | [
"rgarrison3@gmail.com"
] | rgarrison3@gmail.com |
fc0b1a61451fe1c4b893d8ea586e3c6d8e04d357 | 7b2a3ea853dc44aea204f02abedaad6a2029f4ff | /inv_test.py | 46e208002c5331c95094449e682798e59a78e53a | [] | no_license | NoisyLeon/SW4Py | 7d45503282dc988b5f886c039706bd79fdd6b339 | 7029f18eb526bcb46b4aa244da1e088ca57a56aa | refs/heads/master | 2020-12-22T14:57:11.265397 | 2016-12-20T18:27:18 | 2016-12-20T18:27:18 | 56,792,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # import obspy
#
# net=obspy.core.inventory.network.Network('SW4', ftanparams=[])
# inv=obspy.core.inventory.inventory.Inventory(networks=[net],source='CU')
# sta=obspy.core.inventory.ftanparam.Station('aa',13,132.4214,0.0)
| [
"lili.feng@colorado.edu"
] | lili.feng@colorado.edu |
9b52f8728284f014f32195d6f50595415bcec9bb | cf54adda6874a4256401e9e4eb28f353b28ae74b | /python-modules/python_call_django_view.py | f56832338684b861081db955189ae868d9eae874 | [] | no_license | oraant/study | c0ea4f1a7a8c3558c0eac4b4108bc681a54e8ebf | 7bce20f2ea191d904b4e932c8d0abe1b70a54f7e | refs/heads/master | 2020-09-23T02:08:07.279705 | 2016-11-21T06:30:26 | 2016-11-21T06:30:26 | 66,995,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # coding:utf-8
# # tree /home/oraant/test/django_celery/|grep -v .pyc
# /home/oraant/test/django_celery/
# ├── django_celery
# │ ├── __init__.py
# │ ├── settings.py
# │ ├── urls.py
# │ ├── wsgi.py
# ├── manage.py
# └── myapp
# ├── admin.py
# ├── apps.py
# ├── __init__.py
# ├── migrations
# ... | [
"oraant777@gmail.com"
] | oraant777@gmail.com |
33a26a9eff1d85003c886ec1259d2874765ba03b | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /中等/旋转图像.py | 239a028395365d7e1f8543fcf746f87fc6437301 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | '''
给定一个 n × n 的二维矩阵表示一个图像。
将图像顺时针旋转 90 度。
说明:
你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。
示例 1:
给定 matrix =
[
[1,2,3],
[4,5,6],
[7,8,9]
],
原地旋转输入矩阵,使其变为:
[
[7,4,1],
[8,5,2],
[9,6,3]
]
示例 2:
给定 matrix =
[
[ 5, 1, 9,11],
[ 2, 4, 8,10],
[13, 3, 6, 7],
[15,14,12,16]
],
原地旋转输入矩阵,使其变为:
[
[15... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
df4bc3c52cb2cc13ff6155431b8a111077115ef7 | da6d44b06f631387739d04471920037e8541d6c0 | /problems/014.py | 8753c9f24c8c00abf2eddba5325e948652a085c7 | [
"MIT"
] | permissive | JoshKarpel/euler-python | f6d5d5551a0d77565c852e3eb1e89522675824ec | 9c4a89cfe4b0114d84a82e2b2894c7b8af815e93 | refs/heads/master | 2021-09-01T09:07:46.378352 | 2017-12-26T05:39:35 | 2017-12-26T05:39:35 | 64,712,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from problems import mymath, utils
@utils.memoize
def collatz_length(n):
if n == 1:
return 1
if n % 2 == 0:
return 1 + collatz_length(n / 2)
else:
return 1 + collatz_length((3 * n) + 1)
def solve():
collatz_lengths = {x: collatz_length(x) for x in range(1, 1000001)}
ret... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
fc0dfd542cb1fc87198d882b23f32e2a923cb059 | 8822149855c27522b54b05f796e292c1c63dbdf6 | /mnist.py | 105022e5d79ea5317478d7612e35b04793373105 | [] | no_license | jaythaceo/TensorFlow-Tutorial | 3c33844b473e67c63bfa9992c124e22ac2a394c3 | b4eca4f3f25eeedd868ee2a0645eb617c1b3208a | refs/heads/master | 2021-06-27T01:38:49.942255 | 2017-02-04T23:09:51 | 2017-02-04T23:09:51 | 59,586,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # Copyright 2016 Jason "jaythaceo" Brooks. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jaythaceo@gmail.com"
] | jaythaceo@gmail.com |
74fdcfd69840950e1b3e336b45fef12d98d7d355 | 91ff6fdf7b2ccc58869d6ad41842f230644952c1 | /requirements/venky_task/String/7.py | 4f1a8999bfbb7bfa6d11aac952ba9d77b5cfcd61 | [] | no_license | KONASANI-0143/Dev | dd4564f54117f54ccfa003d1fcec4220e6cbe1f9 | 23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e | refs/heads/master | 2023-08-14T15:59:59.012414 | 2021-10-13T14:54:49 | 2021-10-13T15:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | def venky(s):
n=s.find("not")
m=s.find("poor")
for i in s.split():
if i=="not":
c=s.replace(i,"poor")
print(s[n:]+str(c))
n=input("enter a string :")
venky(n)
| [
"harinadhareddypython@gmail.com"
] | harinadhareddypython@gmail.com |
1f8c10416376d98fd9647224d5f6e4826a12517b | cd0cf1c75c715a67502ff7f164bb070da78956de | /calculation/migrations/0046_auto_20160310_0927.py | 2a0fc34d174875b0400e1f1c7e5a69becb00158e | [] | no_license | nustarnuclear/orient_linux | 9792fb4319007708861d619dac081fa32206d3f6 | 95082ea56a0dfc248024f9bf54897a017985ccdf | refs/heads/master | 2020-03-28T03:17:02.629719 | 2017-01-04T08:38:16 | 2017-01-04T08:38:16 | 43,117,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import calculation.models
class Migration(migrations.Migration):
dependencies = [
('calculation', '0045_server_queue'),
]
operations = [
migrations.RemoveField(
model_nam... | [
"hengzhang@nustarnuclear.com"
] | hengzhang@nustarnuclear.com |
5faf40bbcb2caaa7edd850c568952b71d9a6de70 | 05c22017cde07bb9fdff2c7f03f2602b1cd15323 | /src/textual/widget.py | e43372e6a165b2ec0153e5c91c32e700bf39cf10 | [
"MIT"
] | permissive | ramiro/textual | 00b0a7fc6fea95d327455c8328248cd926f3eaff | a6a912ab2713b0e1cb668224f7a38f31b1c9939c | refs/heads/main | 2023-06-14T01:22:40.975706 | 2021-07-05T14:06:16 | 2021-07-05T14:06:16 | 383,201,815 | 0 | 0 | MIT | 2021-07-05T16:25:54 | 2021-07-05T16:25:53 | null | UTF-8 | Python | false | false | 6,353 | py | from __future__ import annotations
from logging import getLogger
from typing import (
Callable,
cast,
ClassVar,
Generic,
Iterable,
NewType,
TypeVar,
TYPE_CHECKING,
)
from rich.align import Align
from rich.console import Console, RenderableType
from rich.pretty import Pretty
from rich.... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
ad8df248427f7098d6463b39e0c10612baf026cc | 807305b8aefbd7aac4f44c67deed06c059ca02d9 | /src/stk/molecular/topology_graphs/polymer/linear/vertices.py | 95e4ae66c4c80eab25400a4a05c7c5504fb3b81f | [
"MIT"
] | permissive | supramolecular-toolkit/stk | c40103b4820c67d110cbddc7be30d9b58d85f7af | 46f70cd000890ca7c2312cc0fdbab306565f1400 | refs/heads/master | 2022-11-27T18:22:25.187588 | 2022-11-16T13:23:11 | 2022-11-16T13:23:11 | 129,884,045 | 22 | 5 | MIT | 2019-08-19T18:16:41 | 2018-04-17T09:58:28 | Python | UTF-8 | Python | false | false | 6,060 | py | """
Linear Polymer Vertices
=======================
"""
import logging
from ...topology_graph import Vertex
logger = logging.getLogger(__name__)
class LinearVertex(Vertex):
"""
Represents a vertex in the middle of a linear polymer chain.
"""
def __init__(self, id, position, flip):
"""
... | [
"noreply@github.com"
] | supramolecular-toolkit.noreply@github.com |
9afca773cc3e575a5e99270fc96821846e41becd | 1eb7fa8b1745d4e51cefb4eceb44621862516aa6 | /Company Interview/FB/BiggestKValuesInBST.py | fd6ddc0d98fe0ee5e2f7a5090dd8918d9e3db922 | [] | no_license | geniousisme/CodingInterview | bd93961d728f1fe266ad5edf91adc5d024e5ca48 | a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3 | refs/heads/master | 2021-01-10T11:15:31.305787 | 2017-03-06T00:03:13 | 2017-03-06T00:03:13 | 43,990,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution1(object):
def biggestKthValues(self, root):
res = []; stack = []
while root or stack:
if root:
stack.append(root)
roo... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
5f52fdc03f0db7fb339060a70be115388bb1d11a | ed2d96ead522dd4dbd1dfdf4a6a776617f7dbcaf | /tutorial/settings.py | 2ab243e3f117195473def28fa8017680ee721604 | [] | no_license | Alexmhack/django_rest_quickstart | ff83f435b09f6e279d17c87ea53ad5719276d1f9 | b44be0cb8fd07d00ac8715934b1fe480e833e344 | refs/heads/master | 2020-04-01T06:45:04.591779 | 2018-10-14T12:22:00 | 2018-10-14T12:22:00 | 152,962,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
fr... | [
"alexmohack@gmail.com"
] | alexmohack@gmail.com |
70bc0f58d1a7260e8aa0c009c423467c33acd8a0 | e6611443e946d1129985a95bc2dd2afc610f8292 | /CMS/apps/task_status/migrations/0003_taskstatus_category.py | 53b4aaa95708f0d4641fb077232356c169f2ceb3 | [] | no_license | Indus-Action/Campaign-Management-System | a761dd9bbc7967f8302bb3283230f87ccc2bd2a6 | 9c6f1193ff897b8cc53f2a1c3bca8d70a890e70f | refs/heads/master | 2020-03-12T19:49:19.329764 | 2018-05-15T06:37:41 | 2018-05-15T06:37:41 | 130,792,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-28 06:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('task_status_categories', '0001_initial'),
('task_sta... | [
"madhav.malhotra3089@gmail.com"
] | madhav.malhotra3089@gmail.com |
fcdc3c6425304d12927eedb5366284da5f8f22cc | 67b04bf2bdfdfc8de4189a52fe431aa482c375ac | /example/app.py | 531fdcb75688c64a06ec95e82a0c65b0fe75b7d9 | [
"MIT"
] | permissive | d0ugal/aioauth-client | 2de6eeb25fd6582a34c8b144fff066d817b011db | 6fce61642c974ede8d800e476a4a5661778a180d | refs/heads/develop | 2023-04-10T03:59:04.766587 | 2020-01-22T19:46:26 | 2020-01-22T19:46:26 | 235,654,658 | 1 | 0 | MIT | 2023-04-04T01:21:32 | 2020-01-22T19:55:56 | Python | UTF-8 | Python | false | false | 5,114 | py | """ Aioauth-client example. """
import asyncio
from aiohttp import web
import html
from pprint import pformat
from aioauth_client import (
BitbucketClient,
FacebookClient,
GithubClient,
GoogleClient,
OAuth1Client,
TwitterClient,
YandexClient,
)
app = web.Application()
clients = {
'tw... | [
"horneds@gmail.com"
] | horneds@gmail.com |
c422911d66d3c472a423daa9aae44836f52b2fba | 7add1f8fc31b09bb79efd2b25cc15e23666c1d1d | /tfx/orchestration/portable/tfx_runner.py | c431cf3f36a66e468fcc48190bbaac4331fed4f7 | [
"Apache-2.0"
] | permissive | twitter-forks/tfx | b867e9fee9533029ca799c4a4c5d1c5430ba05fe | cb3561224c54a5dad4d5679165d5b3bafc8b451b | refs/heads/master | 2021-11-19T18:45:09.157744 | 2021-10-19T00:02:34 | 2021-10-19T00:02:34 | 205,426,993 | 2 | 1 | Apache-2.0 | 2021-10-18T21:03:50 | 2019-08-30T17:21:03 | Python | UTF-8 | Python | false | false | 1,333 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
1dc0356232f83b9f82596add14362a858c4e3774 | 1678abd4c1efb74993745b55bf5a5536c2205417 | /forum/migrations/0010_auto_20200414_2322.py | 59d3916c979c2e05ef688ccf22bdbfbb16dbbdc9 | [] | no_license | samosky123/Django-Forum | 7b8868338d09d4a02b61717454adb2297cafc44e | c1ee3c9261479ebf8039c3a6fc9a3aba06d2c870 | refs/heads/master | 2023-07-29T09:45:19.810265 | 2020-11-13T16:05:42 | 2020-11-13T16:05:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2 on 2020-04-14 17:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0009_auto_20200414_2313'),
]
operations = [
migrations.RenameField(
model_name='answer',
old_name='downvote',
... | [
"shout.mahmud@gmail.com"
] | shout.mahmud@gmail.com |
682e6e9bf096cd8bc9cecd1f5476499372f6c040 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /Own practice/2.2-2.10/2.8.py | a4281af24752c551736fa11d1a5726365e91a315 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 872 | py | """
程式設計練習題 2.2-2.10 2.8 計算能量.
請撰寫一程式,計算從起始溫度到最後溫度時熱水所需的能量。程式提示使用者數入多少公斤的水、起始溫度
及最後溫度。計算能量的公式如下:
Q = M * (finalTemperature - initialTemperature) * 4184
此處的M逝水的公斤數,溫度是攝氏溫度,而Q是以焦耳(joules)來衡量的能量。
以下是範例輸出的樣本:
```
Enter the amount of water in kilograms: 55.5
Enter the initial temperature: 3.5
Enter the final Temperature... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
4b4722dc364c71697c33815091831aec2badb373 | 0115cfe0ca89264d3e25616943c3437d24ac0497 | /pyx/finance/finance.py | 56f41561431419e6dbb05819a4c64021703e836c | [] | no_license | shakfu/polylab | 9024918681fe4807b4e5e2da4bba04453566bae1 | 9dce4d30120981e34bbbbc6f2caaff6e16a6cfbd | refs/heads/master | 2023-08-18T05:41:01.786936 | 2023-07-30T22:36:52 | 2023-07-30T22:36:52 | 62,841,098 | 3 | 0 | null | 2022-04-21T22:25:43 | 2016-07-07T22:08:47 | C | UTF-8 | Python | false | false | 4,309 | py | #!/usr/bin/env python
'''
A set of functions for quick financial analysis of an investment
opportunity and a series of projected cashflows.
For further details and pros/cons of each function please refer
to the respective wikipedia page:
payback_period
http://en.wikipedia.org/wiki/Payback_period
... | [
"shakeeb.alireza@rezayat.net"
] | shakeeb.alireza@rezayat.net |
ec63b954fd448cd482cec2bfb15b88afbea89cc4 | c3ff891e0e23c5f9488508d30349259cc6b64b4d | /python练习/基础代码/Demo33.py | 20ad574ee408810bd6658c854a8dd2e8ce4e4a44 | [] | no_license | JacksonMike/python_exercise | 2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53 | 7698f8ce260439abb3cbdf478586fa1888791a61 | refs/heads/master | 2020-07-14T18:16:39.265372 | 2019-08-30T11:56:29 | 2019-08-30T11:56:29 | 205,370,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | infor = {"name":"Jim"}
infor["age"] = 19#添加
infor["QQ"] = 10086
infor["QQ"] = 10085#修改
del infor["QQ"] #删除
print(infor.get("name"))#查询
a = {} | [
"2101706902@qq.com"
] | 2101706902@qq.com |
a2397630ed41926dd03f160daaf34fd7b95a8670 | 45ab4c22d918dc4390572f53c267cf60de0d68fb | /src/Analysis/Engine/Impl/Typeshed/third_party/2and3/werkzeug/_compat.pyi | 74981331c7de5221f3fe7114e32b5f8d3c300296 | [
"MIT",
"Apache-2.0"
] | permissive | sourcegraph/python-language-server | 580a24fd15fe9d4abeb95e9333d61db1c11a2670 | 64eae156f14aa14642afcac0e7edaf5d7c6d1a1c | refs/heads/master | 2023-04-09T21:17:07.555979 | 2018-12-06T23:25:05 | 2018-12-06T23:25:05 | 155,174,256 | 2 | 2 | Apache-2.0 | 2018-10-29T08:06:49 | 2018-10-29T08:06:49 | null | UTF-8 | Python | false | false | 1,280 | pyi | import sys
from typing import Any
if sys.version_info < (3,):
import StringIO as BytesIO
else:
from io import StringIO as BytesIO
PY2 = ... # type: Any
WIN = ... # type: Any
unichr = ... # type: Any
text_type = ... # type: Any
string_types = ... # type: Any
integer_types = ... # type: Any
iterkeys = ...... | [
"alsher@microsoft.com"
] | alsher@microsoft.com |
d911b045663d565be92524dcbdeb0dee537c4ee8 | a72106acf426859b49be66ec7a1d209d8ffb59d1 | /importer/indico_importer/converter.py | f8b138c0a1ca528382992688f5347a4d08c1ba43 | [
"MIT"
] | permissive | indico/indico-plugins-attic | 12502c891805e092b936c42a779fa9c667ee23d6 | 64a6bffe4dc7e30e2874dd4d6aac9908038910f1 | refs/heads/master | 2021-06-23T03:51:21.500524 | 2021-03-17T10:35:24 | 2021-03-17T10:35:24 | 201,440,329 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | # This file is part of the Indico plugins.
# Copyright (C) 2002 - 2020 CERN
#
# The Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License;
# see the LICENSE file for more details.
from __future__ import unicode_literals
APPEND = object()
class RecordCon... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
62a430d7658748dc827ca7a1a71a21975277174b | 2e70b3ce93762c5b66fba57f8b9cba37aacf0702 | /new/account/migrations/0005_auto_20190528_1610.py | 184bec8ce2a97ea9516a3f76e5495f0cfbb17c49 | [] | no_license | mahidul-islam/jamah | 02be511fe119e8934ec7d5aa1eaa8e2b24fad246 | c8ddf9a8094d33e8b1d6cb834eab3d9f18b1a9ea | refs/heads/master | 2022-05-13T15:11:38.609550 | 2019-06-08T04:52:09 | 2019-06-08T04:52:09 | 184,331,276 | 2 | 0 | null | 2022-04-22T21:27:18 | 2019-04-30T21:04:06 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 2.2.1 on 2019-05-28 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('account', '0004_account_mother_account'),
]
operations = [
migrations.AlterField(
model_name='t... | [
"mizihan84@gmail.com"
] | mizihan84@gmail.com |
1110f7e0dacac9ef0b6b69c736d03aa57d46b364 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.component-Zope-3.2.1/zope.component/bbb/utility.py | f626f6c3e1a4329b351d849e1924758ce526722a | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
244ecb3d7cda2b212c28968b72151583aa73ab22 | 7fb87945b77d3adaedd8a155c981e97946734e41 | /packstack/plugins/amqp_002.py | bc822100bc810d982c6734ba0f87cfae7797e907 | [
"Apache-2.0"
] | permissive | Tony910517/openstack | 916b36368ea9f17958e4eb04bd1f9daf3aba9213 | 4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0 | refs/heads/master | 2020-05-20T01:05:22.499224 | 2019-05-07T01:11:05 | 2019-05-07T01:11:05 | 185,292,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,981 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | [
"471123674@qq.com"
] | 471123674@qq.com |
e71f0a615ae491bb9857459804dafdee895970ae | fd5bc0e8a3ac2b7ba793287084f725a8cd10b5ef | /tests/bench/loadrelated.py | 9942ed0b1e2b9a0ae4d8a8c7c923e95f0e30e58e | [
"BSD-3-Clause"
] | permissive | moyaya/python-stdnet | 404cb645b80c59b08ce4506480ce897c24032dcd | 8d6c41ba1ddb8024e6bfab859f99bf96966d04cf | refs/heads/master | 2021-01-24T01:00:18.203118 | 2012-01-13T18:23:20 | 2012-01-13T18:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | '''Benchmark load realted.'''
from stdnet import test, transaction
from stdnet.utils import populate, zip
from examples.data import FinanceTest, Instrument, Fund, Position
class LoadRelatedTest(FinanceTest):
def setUp(self):
self.data.makePositions()
def testLoad(self):
... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
a5ae930e8fe263663440b7fda29bd5a056e44d78 | b589f3997e790c3760ab6ddce1dd1b7813cfab3a | /232.py | e2c5834920299064245bc4ccf2a5c4e5fe64f1ff | [] | no_license | higsyuhing/leetcode_easy | 56ceb2aab31f7c11671d311552aaf633aadd14a8 | 48d516fdbb086d697e2593a9ce1dbe6f40c3c701 | refs/heads/master | 2022-12-04T00:49:33.894066 | 2022-11-15T20:44:36 | 2022-11-15T20:44:36 | 135,224,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | class MyQueue(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack1 = []
self.stack2 = []
self.slen = 0
self.curr = 1 # push stack, 2 for pop stack
def push(self, x):
"""
Push element x to the back of queue... | [
"noreply@github.com"
] | higsyuhing.noreply@github.com |
57cd82ee8cf61947cac176ab1e3935c3582c06d2 | bc2a96e8b529b0c750f6bc1d0424300af9743904 | /acapy_client/models/credential_definition_send_request.py | 8d1879bd302faeaabbeac1ec17a5fbce0eddf4c4 | [
"Apache-2.0"
] | permissive | TimoGlastra/acapy-client | d091fd67c97a57f2b3462353459780281de51281 | d92ef607ba2ff1152ec15429f2edb20976991424 | refs/heads/main | 2023-06-29T22:45:07.541728 | 2021-08-03T15:54:48 | 2021-08-03T15:54:48 | 396,015,854 | 1 | 0 | Apache-2.0 | 2021-08-14T13:22:28 | 2021-08-14T13:22:27 | null | UTF-8 | Python | false | false | 2,441 | py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="CredentialDefinitionSendRequest")
@attr.s(auto_attribs=True)
class CredentialDefinitionSendRequest:
""" """
revocation_registry_size: Union[Unset, int] = UNSET
schema_id: Union... | [
"dbluhm@pm.me"
] | dbluhm@pm.me |
0bf464fb6204343b71d383b81c94bf835f6e6d58 | 58c34c597e825634fb5833b22e178df4fe570d39 | /lib/adapter/cheat_cheat.py | 9844008c6be19c9654ed8c373292de2a9e5132c6 | [
"MIT",
"CC-BY-SA-3.0"
] | permissive | sullivant/cheat.sh | 2eb731eb1d7c6b03d65b2dd5f9b6a325b167c005 | e2e69b61a361751a145b977ca2f58ae4a50d756e | refs/heads/master | 2020-05-30T09:36:58.834850 | 2019-05-31T19:47:53 | 2019-05-31T19:47:53 | 189,649,817 | 1 | 0 | MIT | 2019-05-31T19:45:23 | 2019-05-31T19:45:22 | null | UTF-8 | Python | false | false | 549 | py | """
Adapter for https://github.com/cheat/cheat
Cheatsheets are located in `cheat/cheatsheets/`
Each cheat sheet is a separate file without extension
"""
# pylint: disable=relative-import,abstract-method
from .git_adapter import GitRepositoryAdapter
class Cheat(GitRepositoryAdapter):
"""
cheat/cheat adapter
... | [
"igor@chub.in"
] | igor@chub.in |
ade0b23d401c7a201eec94e034a7bb38e413996e | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /users/urls.py | 98678c65848e0cd95f42b0434063e6edf15da19f | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 595 | py | from django.urls import path
# from .views import CustomLoginView, UserCreateView, UserListView, CustomLogoutView
from .views import CustomLoginView, CustomLogoutView, ProfileView
from django.contrib.auth.decorators import login_required
app_name = 'users'
urlpatterns = [
# path('', UserListView.as_view(), name='... | [
"oduntan@live.com"
] | oduntan@live.com |
27282a88578e3530b456399cac4b11018cde5044 | a8e2c66b3ebadfc17ee9aee197b3f466534cee16 | /ytn11/wh/wh/items.py | 0c48330df2942d96bbb37a839696a43850e30629 | [] | no_license | yintiannong/98kar | 49b6db186a4543a7c50671df990bb491846c1a98 | 3863529f57e9d2d9bc1bdf8188916e25ad289db0 | refs/heads/master | 2022-01-07T05:49:31.566453 | 2019-05-22T07:04:45 | 2019-05-22T07:04:45 | 187,794,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class WhItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
company = scrapy.Field()
company_id = s... | [
"1532295578@qq.com"
] | 1532295578@qq.com |
e8ae67da9e630730ae1df9ffca7fa2d4296f1d26 | 24dac117231c9ca39e09e1fd27db8de295a7fe45 | /Trident/settings.py | 2c943c27e79ee0020f4fe655aed1df9d616f3972 | [] | no_license | rohitrajput-42/Trident | 784f23b9fa02d405d55715ded627c274a1c887f2 | 0d75ef954c5d6f88d3b4937e90ab9aace120bdb9 | refs/heads/main | 2023-06-13T06:10:19.172276 | 2021-07-10T16:25:22 | 2021-07-10T16:25:22 | 384,705,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"rohit1471997@gmail.com"
] | rohit1471997@gmail.com |
311b64e499752b8f19be4d85c59a5b14455ada39 | a1a57977131ea917a3f3094dae4a3d18846103c0 | /unittests/pytests/problems/TestTimeStepUser.py | c53c39a3337525c4aa9aa5702ae8367062012113 | [
"MIT"
] | permissive | rwalkerlewis/pylith | cef02d5543e99a3e778a1c530967e6b5f1d5dcba | 8d0170324d3fcdc5e6c4281759c680faa5dd8d38 | refs/heads/master | 2023-08-24T18:27:30.877550 | 2020-08-05T16:37:28 | 2020-08-05T16:37:28 | 154,047,591 | 0 | 0 | MIT | 2018-10-21T20:05:59 | 2018-10-21T20:05:59 | null | UTF-8 | Python | false | false | 4,095 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
05aa5d78f1a77c1849dde9dff4856a79eddc89a7 | c1c87cd334972c01935dbb72769064e5d0066ac8 | /pickpack/robots/scratchpad.py | 2d469bd1d6d84f59c8bd0ec2db7949dd53ec5962 | [] | no_license | defgsus/pypickpack | 576e9471c9cc7cce60c1010d51b4ea85ec00ecfc | 8a604ec1502c615bf24d77f09d564962c3d04930 | refs/heads/master | 2022-12-28T13:17:18.306748 | 2020-10-09T00:50:41 | 2020-10-09T00:50:41 | 269,505,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | import random
from .base import RobotBase
from .._2d import direction_int
from ..astar import astar_search
from ..log import log
from ..static_map import StaticMap
from ..items import Article, PickOrder
class RandomRobot(RobotBase):
def __init__(self, id):
super().__init__(id)
def process(self, wor... | [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
b0ebf56863454ffb4571867555552aad6d06569d | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hw_proxy/controllers/main.py | 1a934348be4f3f21a928d20583d78d39b10c4c17 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,759 | py | # -*- coding: utf-8 -*-
import logging
import commands
import json
import os
import os.path
import yuancloud
import time
import random
import subprocess
import json
import werkzeug
import werkzeug.wrappers
_logger = logging.getLogger(__name__)
from yuancloud import http
from yuancloud.http import request
# Those are... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
f7b3b2faa86e0a9a1ac895411d5a0ba761b172ea | 9907134b0da8e5391c51b00c426c648eece7b4b9 | /Unidad 2/pfijo.py | a7a60477a2df6797926949881bacf7f7f695a593 | [] | no_license | hectorrdz98/metodos-numericos | 1fd21593c8c324f0e0e643cc08a8d930ea2e8cf3 | dab8e9425f454be60a74d30c985a643bcb915ce6 | refs/heads/master | 2022-01-22T07:26:48.566615 | 2019-05-29T12:26:43 | 2019-05-29T12:26:43 | 167,975,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import math
p0 = 3.8
n = 3
tol = 0.0001
def g(p):
return -4 + (4*p) - (0.5 * p * p)
flag = False
for i in range(n):
p = g(p0)
print('\nVamos en {}, con g(p0)={} y p0={}'.format(i+1,g(p0),p0))
print('El abs={}'.format(math.fabs(p-p0)))
if math.fabs(p-p0) <= tol:
print('\nEl valor de p0={}... | [
"="
] | = |
32fe115b47214dd5d925bc1419747dfcf52e0871 | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /NextGreaterElement.py | eba1f8d0ae08308ff8e272cffeec6304822d027f | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | '''
496. Next Greater Element I
The next greater element of some element x in an array is the first greater element that is to the right of x in the same array.
You are given two distinct 0-indexed integer arrays nums1 and nums2, where nums1 is a subset of nums2.
For each 0 <= i < nums1.length, find the index j such ... | [
"jerinsprograms@gmail.com"
] | jerinsprograms@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.