blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2f31f47bc3e6ca77641e3545093fb0f071d4f07 | ee4f74535a92687f51ebc77eee24408d8c925488 | /blog/models.py | 9966438cc7b73478e3cdafeec56ccc5a5f2f2eff | [] | no_license | sandeepshiven/portfolio_project | ae617d2703c072e0e8c7ff1e1bf92de1b963f0e5 | 09e53d2594aed81876be84eea4339a5f2150bfb5 | refs/heads/master | 2022-12-01T02:20:39.305145 | 2019-12-19T14:26:19 | 2019-12-19T14:26:19 | 227,981,293 | 0 | 0 | null | 2022-11-22T04:55:01 | 2019-12-14T07:07:26 | HTML | UTF-8 | Python | false | false | 382 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=50)
pub_date = models.DateTimeField()
body = models.TextField()
image = models.ImageField(upload_to = 'images/')
def __str__(self):
return self.title
def summary(self... | [
"sandeepshiven0@gmail.com"
] | sandeepshiven0@gmail.com |
eb3dd994a59471aa0ad713fb833febeade24fb65 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/snuke/snuke21/a.py | 68e931ecf644f095aa53460d65c107a576f9d12e | [
"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 | 325 | py | # -*- coding: utf-8 -*-
def main():
from math import sqrt
n = int(input())
q = 1 + 8 * n
if int(sqrt(q)) ** 2 == q:
if (-1 + int(sqrt(q))) % 2 == 0:
print((-1 + int(sqrt(q))) // 2)
else:
print(-1)
else:
print(-1)
if __name__ == '__main__':
ma... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
b155d7cd688658411d1e3a3aa742052fb2a20181 | 01ac3dadac08b258af33f3e8d2f64229a8d5259a | /unit_tests/neb/pys_chk/RIB2PLYP/BOLi_LiBO_FIRE.py | 820a1bcc1dd2f97c4fbdcadf0531dd269d6c5171 | [] | no_license | jminuse/clancelot | 245f468dd87afe4e2d6ba2d518fe7b20754af7ac | 82b4b3afc742d65aaddfce936f94137b0e4f628c | refs/heads/master | 2021-01-23T14:03:46.811820 | 2016-09-20T19:14:50 | 2016-09-20T19:14:50 | 36,739,780 | 1 | 3 | null | 2016-04-04T14:38:50 | 2015-06-02T14:42:47 | Python | UTF-8 | Python | false | false | 387 | py | import sys
import files, neb
fptr = 'BOLi_LiBO'
frames = files.read_xyz('/fs/home/hch54/clancelot/unit_tests/neb/xyz/'+fptr+'.xyz')
opt = 'FIRE'
route = '! RI-B2PLYP D3BJ def2-TZVP def2-TZVP/C Grid3 FinalGrid5'
run_name = fptr[:fptr.find('.xyz')] + '_' + opt
neb.neb(run_name, frames, route, opt=opt, maxiter=1000, gto... | [
"hherbol@gmail.com"
] | hherbol@gmail.com |
c4cb5e306919ee5c35fed911e857689a646c585b | 1e9ad304868c2bda918c19eba3d7b122bac3923b | /kubernetes/test/test_v1_service_status.py | d5f786c2cbf01b2f85e8b1121bed9faa4be4318d | [
"Apache-2.0"
] | permissive | pineking/client-python | c77e5bd3d476ac852e6dffa96056008baa0f597f | 74a64d7325518f4298600d4bb300f92843c29347 | refs/heads/master | 2021-01-22T22:16:27.368406 | 2017-03-15T08:21:21 | 2017-03-15T08:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.1-660c2a2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
impor... | [
"mehdy@google.com"
] | mehdy@google.com |
06f0a4da06e156333a6a8b4a2dbbca61d50e8de5 | 99117515c0410cea29357adfdf71aa628241ece1 | /posts/tests.py | 77595ac51b8b58c5fe0042066b95086632b8d949 | [
"MIT"
] | permissive | kangsLee/9XD | e3a774184381a03722f09a4bed86132b67845118 | f80ea88f85f4cc677c7d1b404101e2ffe8b538ea | refs/heads/master | 2021-04-28T23:42:13.918903 | 2016-12-30T16:16:29 | 2016-12-30T16:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from test_plus.test import TestCase
from posts.factories import PostFactory
class PostsTest(TestCase):
def test_get_list(self):
post = PostFactory()
post_list_url = self.reverse('post:list')
self.get_check_200(post_list_url)
self.assertResponseContains(post.title, html=False)
... | [
"chm073@gmail.com"
] | chm073@gmail.com |
e61d55be1f72641485b0dfbb597f67d9e51f18f0 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_express_route_gateways_operations.py | 7ec7e728a183ae5f3851338bd9622272365624d5 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 21,746 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
9931d68bde183982f725f119901d39bc281b0f83 | 5d36864f5f9f1b737c4718703ee53c3aa715e398 | /CourseGrading/3.2.11整数列表排序.py | 1505665fa902de210a4dfcebd676dabf3f5b4234 | [] | no_license | xzl995/Python | d909274c9aba8ae9f18029a5f2069b1bb3418b9a | 48d4add7a1d46b2e3773bdf096e834852115014d | refs/heads/master | 2020-04-14T11:51:35.407548 | 2019-01-02T10:54:55 | 2019-01-02T10:54:55 | 163,824,702 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | """
【问题描述】
输入一组整数,从小到大排序后,输出排序结果。
【输入形式】
一行。一组用空格隔开的整数。
【输出形式】
一行。一组用一个空格隔开的整数,从小到大排列。
【样例输入】
9 8 7 6
【样例输出】
6 7 8 9
【提示】
用列表的sort方法。
"""
num = input().split()
list = []
for n in num:
list.append(int(n))
list.sort()
print(" ".join(str(i) for i in list)) | [
"595696893@qq.com"
] | 595696893@qq.com |
26626eb142093d221f57181092ec5e01fd199ae3 | 2fe58e7f6bfc3efdb78ca56f72a4e2a75a24c270 | /eric/eric6/WebBrowser/Download/DownloadItem.py | 7c3396e56dc7d5e82befafebf3eaab050ad5c2a0 | [] | no_license | testerclub/eric6-20.3 | 3053e0e6962060b213f5df329ee331a4893d18e6 | bba0b9f13fa3eb84938422732d751219bc3e29e2 | refs/heads/master | 2023-03-18T08:24:03.472297 | 2020-03-14T06:44:14 | 2020-03-14T06:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,022 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2010 - 2020 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a widget controlling a download.
"""
import os
from PyQt5.QtCore import (
pyqtSlot, pyqtSignal, Qt, QTime, QUrl, QStandardPaths, QFileInfo, QDateTime
)
from PyQt5.QtGui import QPalette, QDe... | [
"skeptycal@gmail.com"
] | skeptycal@gmail.com |
135ba6b27144192daf557049497729eec9ce5091 | 5bcee9248d0bdebb134c61b4d0a3f3113337a569 | /IV_term/02_lesson_2704/02_turtle_commands.py | 34fc4f3dc65273ce01d64bb61b8de0376dda47e6 | [] | no_license | 100ballovby/6V_Lesson | c2edbc652ea2ebec07eeed60060c16ae4b4792e4 | 4b6dfda323a628558bd63bd5569960004fc335dd | refs/heads/master | 2023-05-08T07:49:14.569854 | 2021-05-25T06:40:53 | 2021-05-25T06:40:53 | 330,888,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from turtle import *
tina = Turtle()
tina.shape('turtle')
tina.fd(100) # .fd(step), .forward(step) пойти вперед step шагов
tina.lt(45) # .lt(deg), .left(deg) повернуть влево на deg градусов
tina.bk(120) # .bk(step), .backward(step) пойти назад step шагов
tina.rt(90) # .rt(deg), right(deg) повернуть вправо на deg ... | [
"greatraksin@icloud.com"
] | greatraksin@icloud.com |
37f76c51e0f3b2f6ee42258c7c21005a91451284 | d9dddd43e61ade0eab50098df79a3b116c76fbb8 | /terrender/__init__.py | 74040da3f042dcd7419a268e959b07218bfcee45 | [] | no_license | Mortal/terrender | 18d704ae20e1b647818e1e1b5e6a3660f49765f2 | c1103a7f62d7f4b696a98e38aff303b02a1a0b30 | refs/heads/master | 2021-01-21T22:05:44.684318 | 2018-07-09T12:13:05 | 2018-10-08T08:00:50 | 95,161,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | APP_NAME = 'terrender'
DESCRIPTION = '''\
Render terrains to vector formats
'''.rstrip('\n')
| [
"rav@cs.au.dk"
] | rav@cs.au.dk |
f1ae77ce6c8a31bdb0e7fbe79377aaef1b871b5d | b0bb5a3e1bd4efc3bdc035f477c2b14c40b3d62a | /blog/templatetags/blog_tags.py | f6655ef002989018795274f5d168b3d84b2eb876 | [] | no_license | yuansuixin/Myblog_Python | 45c0bd610ab3dbbcdc10b4b4b9e45589f178ce29 | a6b0c526371def0aab8fd7251517a97ce215168c | refs/heads/master | 2021-09-05T21:02:37.227342 | 2018-01-31T01:31:14 | 2018-01-31T01:31:14 | 114,453,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from django import template
from ..models import Post,Category,Tag
from django.db.models.aggregates import Count
from blog.models import Category
register = template.Library()
@register.simple_tag
def get_recent_posts(num=5):
return Post.objects.all().order_by('-created_time')[:num]
@register.simple_tag
def ar... | [
"cyss428@163.com"
] | cyss428@163.com |
5e3a365993b2027bd0ca4a439c8b29a1a03cc4e5 | db54727e37a0928ed698171e862ad274b99a02b1 | /get_angelist_jobs_by_location.py | a8f0282858b2fbff8abaa29e875b1ae5bc664c2a | [
"MIT"
] | permissive | tibbetts/sfba-compensation | 6514a58c004b468c5eb0b204087d5a1d8d168a12 | 89a36391c7dd778b6343e67c2f8d587651b1d7f2 | refs/heads/master | 2020-04-05T23:46:12.264717 | 2016-06-01T05:09:35 | 2016-06-01T05:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | import urllib2
import json
import datetime
import csv
import time
#https://api.angel.co/1/tags/151282/jobs?access_token=xxx
access_token = "<FILL IN>" # DO NOT SHARE WITH ANYONE!
location_tag = 151282 # San Francisco Bay Area
# location_tag = 1664 # New York City
def request_until_succeed(url):
req = urllib2... | [
"max@minimaxir.com"
] | max@minimaxir.com |
9734b8d821852dd069ae730eb6e5581f79278c28 | 3bdcb60b0bffeeb6ff7b0ddca4792b682158bb12 | /Sentencias Condicionales/4.1.8-90.py | c0d1ba9b3e6d0df836a98fc9e064ff10920a2037 | [] | no_license | FrankCasanova/Python | 03c811801ec8ecd5ace66914f984a94f12befe06 | 03f15100991724a49437df3ce704837812173fc5 | refs/heads/master | 2023-05-23T01:37:12.632204 | 2021-06-10T15:20:38 | 2021-06-10T15:20:38 | 278,167,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #CORRECCIÓN DE PROGRAMA.
from math import pi
radio = float(input('Dame el radio de un circulo: '))
#menú
print('Escoge una opción: ')
print('a) Calcular el diámetro: ')
print('b) Calcular el perímetro: ')
print('c) Calcular el área: ')
opción = input('Teclea a, b o c y pulsa intro: ')
if opción.lower() == 'a':
... | [
"frankcasanova.info@gmail.comm"
] | frankcasanova.info@gmail.comm |
ea92fcc7c3a19e5cc1c4276c6e75738bd12b4d5b | 9d58364bd43fbb4edf60fba3425e9dc006097e22 | /product/serializers.py | e6571d2151ef723f8b3eab7b9cfa5344cf3c8373 | [] | no_license | darkblank/commerce-toy | a92ee2634777fa9997cb52c57f2fd8a68877677c | be8b4b7633204c83615853835c3772369e37766a | refs/heads/master | 2022-12-03T14:18:54.966662 | 2020-08-12T22:29:49 | 2020-08-12T22:29:49 | 287,127,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | from rest_framework import serializers
from product.models import Product, ProductOption
from user.serializers import ProviderSerializer
class ProductOptionSerializer(serializers.ModelSerializer):
class Meta:
model = ProductOption
fields = (
'id', 'stock', 'name',
)
class Pr... | [
"darkblank1990@gmail.com"
] | darkblank1990@gmail.com |
c37f6418fac1b3ca989225a2b5d667bc7a56df58 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060352270.py | 1361d8f30b13daab25781738ad6daac5b6a201ce | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 3,846 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060352270(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
9e5d5b8517e58b290fe195b2aab1e2d9938074d6 | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/TaobaokeMobileListurlGetRequest.py | b09b1da208bf08fea60e8912f9988fb2a936ad96 | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class TaobaokeMobileListurlGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.q = None
def getapiname(self):
return 'taobao.taobaoke.mobile.listurl.get'
| [
"alswlx@gmail.com"
] | alswlx@gmail.com |
c9364b17c64e0b99950c44eaf940ac5a5081aea4 | b1403c5a0f8dcf5eec881367f3928c6faf047b1d | /PRINCIPIANTE/1051-1100/1098.py | d3a71591410aff0c977f88c66d582bdb8e28a005 | [] | no_license | apesquero/URI | ba56f9d597e0e781bf85dc14eeeedf9bc206fbc4 | 8c45813d99eb903405ebe1a0e2c6618e87025641 | refs/heads/master | 2021-06-19T23:56:51.798180 | 2021-01-01T18:43:20 | 2021-01-01T18:43:20 | 138,192,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # -*- coding: utf-8 -*-
i = 0
while i <= 2:
for x in range(3):
print("I={:g} J={:g}" .format(i, x+1+i))
i += 0.2
| [
"apesquero@gmail.com"
] | apesquero@gmail.com |
865ae8442eadb66eb5b33a7c998542e89eb501ce | c1aac38b1ee7bf7b8621050bd4837a60744bfd9f | /ay_hw_4/main_test.py | 2b487bd9621a3f4e1763f4d5ad1fd4560b536838 | [] | no_license | callmeorangecat/INF_552 | 3b0a007a37963fcd57396dab96d3f17ee20b0eb6 | cdcaf20e549bfa2d5942f91f2ce3b4a93d1beba9 | refs/heads/master | 2021-02-17T15:04:32.222974 | 2020-02-21T20:31:54 | 2020-02-21T20:31:54 | 245,105,595 | 0 | 1 | null | 2020-03-05T08:16:29 | 2020-03-05T08:16:28 | null | UTF-8 | Python | false | false | 1,999 | py | #
__author__ = 'Aaron Yang'
__email__ = 'byang971@usc.edu'
__date__ = '9/27/2019 11:13 PM'
import numpy as np
import matplotlib.pyplot as plt
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squ... | [
"aaron19940628@gmail.com"
] | aaron19940628@gmail.com |
e58bbef1e15f9f5ad7ab00b1d2269ab475394474 | 726d164e2dcf0c13beacf5ac23db1f76e34645f1 | /src/scripts/mcce/count_conf.py | a84c651e305eb12a71987d33c9e42616df9aab6f | [] | no_license | zxiaoyao/br_pscript | 57bde5940d0d18704052f705c2025e4ba73e1b29 | a3023b33a4332d0d77389f1d64c5af1b19a80a95 | refs/heads/master | 2020-06-01T13:39:39.192776 | 2015-06-09T04:26:39 | 2015-06-09T04:26:39 | 16,268,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/python
def count_conf():
'''Count the number of conformers in step2_out.pdb."
Assuming the atoms in a conformer are in consecutive lines in step2_out.pdb.
'''
atoms = open("step2_out.pdb").readlines()
for line in atoms:
if line[:6] != 'ATOM ' and line[:6] != 'HETATM': cont... | [
"zhuxuyu@gmail.com"
] | zhuxuyu@gmail.com |
d966c7c4b7e38e02139b6160072dee1765279666 | beaae5a6429c688923404fa86a546cad1fbeb34d | /cumulusci/salesforce_api/tests/test_metadata.py | 164db8d2a3060dab47c7e16cfe5ac6b3e54d8ad2 | [] | permissive | justindonnaruma/CumulusCI | ae71c386b48ebead6ac32d10958a8adb3e37a9c9 | cc097c1f6f102a104f83ad9a9684af9d6bc0af31 | refs/heads/master | 2022-07-22T03:35:40.064602 | 2018-07-30T13:24:11 | 2018-07-30T13:24:11 | 142,879,837 | 0 | 0 | BSD-3-Clause | 2022-07-06T20:48:29 | 2018-07-30T13:32:23 | Python | UTF-8 | Python | false | false | 31,584 | py | import ast
import httplib
import os
import shutil
import tempfile
import unittest
import urllib
from xml.dom.minidom import parseString
import requests
import responses
from nose.tools import raises
from cumulusci.tests.util import create_project_config
from cumulusci.tests.util import DummyOrgConfig
from cumulusci... | [
"jlantz@salesforce.com"
] | jlantz@salesforce.com |
7ee3973c5a0010f5130adefd271d210b00f5b470 | 4a9035a8c74fa3d12b6717d94dbb2fa9727e4d29 | /doc/LectureNotes/_build/jupyter_execute/chapter6.py | a03e1b223398711946ad19d2a175bf99719bac26 | [
"CC0-1.0"
] | permissive | smithis7/Physics321 | 6f877fc89f6a99a8bea1022551e6e878e9902881 | 406297c2a87b10557075435e38e8cb7f38088229 | refs/heads/master | 2023-04-11T12:38:26.201740 | 2021-04-23T20:53:16 | 2021-04-23T20:53:16 | 331,421,603 | 0 | 0 | CC0-1.0 | 2021-04-23T20:53:16 | 2021-01-20T20:19:36 | HTML | UTF-8 | Python | false | false | 130,666 | py | # Two-body problems, from the Gravitational Force to Two-body Scattering
## Introduction and Definitions
Central forces are forces which are directed towards or away from a
reference point. A familiar force is the gravitional
force with the motion of our Earth around the Sun as a classic. The Sun, being
approximatel... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
3134c8be734f985ea89efce1776e9cb0a8765cc1 | 89f3169a2393bff8880f657d9bb4c12b40729e9a | /2020-11/abc062_b.py | 19c743500148144716c92f15603587e44fabd2c1 | [] | no_license | YutaGoto/daily_atcoder | c087adbb7fa03f0cdc4291c806f21b1b93130d86 | 113d4e25f1d3bb0e665f9154bc0afaecae5ea7bf | refs/heads/main | 2023-06-19T00:56:12.359473 | 2021-07-16T12:33:06 | 2021-07-16T12:33:06 | 273,282,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | h, w = map(int, input().split())
print('#'*(w+2))
for _ in range(h):
a = input()
print('#'+a+'#')
print('#'*(w+2))
| [
"you.goto.510@gmail.com"
] | you.goto.510@gmail.com |
59f73e7d1222effb04a6343a2dd82ffeabb56260 | 3b2971ac117cf597e60233afffbf088989d7abdb | /tests/settings.py | 6f66deb4674338780d11af86a8f3faa9ca1eabd7 | [
"BSD-3-Clause"
] | permissive | ubernostrum/pwned-passwords-django | 7b8e27ce774e1d698eef382a67664301be61bdbd | c615c2b80eab2f6554b6f113e99c658dd722c5cd | refs/heads/trunk | 2023-04-10T05:33:44.797687 | 2023-03-27T05:25:45 | 2023-03-27T05:25:45 | 124,067,069 | 116 | 8 | BSD-3-Clause | 2023-09-11T06:26:23 | 2018-03-06T11:15:11 | Python | UTF-8 | Python | false | false | 722 | py | """
Minimal Django settings file for test runs.
"""
from django.utils.crypto import get_random_string
INSTALLED_APPS = ["pwned_passwords_django"]
ROOT_URLCONF = "tests.urls"
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
MIDDLEWARE = [
"pwned_passwords_django.middleware.pwne... | [
"james@b-list.org"
] | james@b-list.org |
9fc65a9e22b154df1f46b9485b329b31a238ff3b | 96f32051b1fcd322534fdf1f590704b7f48e08e3 | /otx_epub/migrations/0003_auto_20161027_2317.py | 22756320fbeb9f4e40103f15ce8d9ebe93f84e72 | [
"Apache-2.0"
] | permissive | NYULibraries/dlts-enm-tct-backend | 0f1ebad7d7334d41b4f24b2243639314c6ed1353 | 07455a660fb2cb8bc91a54f7f12d150923678157 | refs/heads/master | 2020-05-18T14:36:31.041830 | 2017-09-30T17:51:16 | 2017-09-30T17:51:16 | 84,251,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-28 03:17
from __future__ import unicode_literals
from django.db import migrations, models
import otx_epub.storage
class Migration(migrations.Migration):
dependencies = [
('otx_epub', '0002_epub_contents'),
]
operations = [
mi... | [
"go.for.dover@gmail.com"
] | go.for.dover@gmail.com |
9c9273b0557cfea35937de7e9f7ed2c0f11e495f | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/view_intent.py | e28eef393c010d4f1cd356037269faaa14fa16a2 | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 1,660 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class ViewIntent(object):
"""Implementation of the 'ViewIntent' model.
Specifies the Intent of the View.
Attributes:
template_id (long|int): Specifies the template Id from which the View
is created.
template_name (strin... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
ea98fab7c614bb2763e13a4a538ea3249fe899bf | afc3558e47ea4c82cb70190743472274eae7aeb1 | /configs/textrecog/master/master_resnet31_12e_toy.py | adf14636518c6aa154da397106d2aae8b008226c | [
"Apache-2.0"
] | permissive | open-mmlab/mmocr | 86a77fb77ca80cede9c41a9a22080eeeaf364002 | 9551af6e5a2482e72a2af1e3b8597fd54b999d69 | refs/heads/main | 2023-08-03T14:06:11.075037 | 2023-07-26T02:32:14 | 2023-07-26T02:32:14 | 355,559,187 | 3,734 | 801 | Apache-2.0 | 2023-09-12T03:17:12 | 2021-04-07T13:40:21 | Python | UTF-8 | Python | false | false | 1,164 | py | _base_ = [
'_base_master_resnet31.py',
'../_base_/datasets/toy_data.py',
'../_base_/default_runtime.py',
'../_base_/schedules/schedule_adam_base.py',
]
optim_wrapper = dict(optimizer=dict(lr=4e-4))
train_cfg = dict(max_epochs=12)
# learning policy
param_scheduler = [
dict(type='LinearLR', end=100, ... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
21df06ff4d70b2fe784d4a83c9a4ea9391b1f1a8 | 71297da3cf9e0cc5e2e3eb29477ed77150bf93fa | /baekjoon/10984.py | 0e27694252233b2a2f65c64c0406100c715057e8 | [] | no_license | Kangjinwoojwk/algorithm | 7c8e4189c384f7104225284e9e0a2e2a5cdd18df | c92da7410523d340240bbe9256cecf710c4e641e | refs/heads/master | 2022-11-15T19:11:33.918644 | 2022-11-10T03:13:50 | 2022-11-10T03:13:50 | 184,699,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | for tc in range(int(input())):
A, G = 0, 0
for i in range(int(input())):
a, b = map(float, input().split())
A += a
G += a * b
G /= A
print('{} {}'.format(int(A), round(G, 1))) | [
"kjw03230@naver.com"
] | kjw03230@naver.com |
56f43f8aff84049b1d9ce85fb3c2d3fb0e5bc6ab | 0431fb263e38422585edca273fb47ef92fd22243 | /dataloaders/data_atari.py | 50f23b17a6e6faf07dfeb81276ef50ed9522166d | [] | no_license | RRoundTable/EEN-with-Keras | a6c3352eafc05fcb7ed41463d637a684de9a0b27 | ae71903afa05135f5eb6e2797854969f5a082958 | refs/heads/master | 2020-04-28T03:17:25.762629 | 2019-04-27T12:19:13 | 2019-04-27T12:19:13 | 174,930,756 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,310 | py | import numpy, os, random, glob, pdb, gc
import pickle as pickle
from scipy import misc
#import torch, torchvision
from tensorflow.python.keras.backend import *
import copy, time
class ImageLoader(object):
def _load_set(self, split, n_episodes):
datalist = []
datapath = '{}/{}'.format(self.arg.get(... | [
"ryu071511@gmail.com"
] | ryu071511@gmail.com |
262b31f426537ac6065fa5fbe714726118f635a2 | 18940c73497d11c1386a19a2e90719356f8ed9b2 | /python_solutions/90-subsets-2.py | aaa5aa73c476b0fb0652047257cab595e27aa005 | [] | no_license | yunieyuna/Solutions-for-Leetcode-Problems | 9741ba1a48341157fded637bb6e269fd9a659b5a | 47910878328591844ab2c9b97ff8c89e2b98c319 | refs/heads/master | 2020-09-13T17:37:25.632463 | 2020-07-02T02:07:19 | 2020-07-02T02:07:19 | 222,857,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # https://leetcode.com/problems/subsets-ii/
class Solution:
def subsetsWithDup(self, nums: List[int]) -> List[List[int]]:
dic = {}
for i in nums:
dic[i] = dic.get(i, 0) + 1
res = [[]]
for i, v in dic.items():
temp = res.copy()
for j in res:
... | [
"noreply@github.com"
] | yunieyuna.noreply@github.com |
aa2be9b8e11e4a867f9c1d4feb7c3716361366ab | ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9 | /contrib/python/plotly/py3/plotly/graph_objs/histogram/marker/_colorbar.py | de0bf149cc077a8134605f4109788fffa81089f6 | [
"MIT",
"Apache-2.0"
] | permissive | alvinahmadov/catboost | f32d2b16be9db7439e429c88feb5676de842fc89 | a6e0caa4779b31199f535cf43b09879d7c653abe | refs/heads/master | 2023-06-12T19:29:52.028508 | 2023-05-11T18:33:03 | 2023-05-11T18:33:03 | 202,584,937 | 0 | 0 | Apache-2.0 | 2019-08-15T17:35:23 | 2019-08-15T17:35:23 | null | UTF-8 | Python | false | false | 80,205 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram.marker"
_path_str = "histogram.marker.colorbar"
_valid_props = {
"bgcolo... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
419827681f3f82c9700097168df022ee151b4639 | 2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b | /33.搜索旋转排序数组.py | e67b6bd61499c8507cb2cb4f53db5ccbe9e2e868 | [] | no_license | mqinbin/python_leetcode | 77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3 | 73e0c81867f38fdf4051d8f58d0d3dc245be081e | refs/heads/main | 2023-03-10T18:27:36.421262 | 2021-02-25T07:24:10 | 2021-02-25T07:24:10 | 314,410,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | #
# @lc app=leetcode.cn id=33 lang=python3
#
# [33] 搜索旋转排序数组
#
# @lc code=start
class Solution:
def search(self, nums: List[int], target: int) -> int:
# if len(nums) == 1 :
# return 0 if target == nums[0] else -1
left , right = 0 , len(nums)
while left < right:
... | [
"mqinbin@gmail.com"
] | mqinbin@gmail.com |
eec69491952dc2206c921236c774340265028549 | cf7d6cc5efd2d3545a538c1bf12e927a60b8600e | /iniciante/1478.py | 2fbb42d314bb183909e20c8d6e3ab7903c9700a9 | [] | no_license | DarknessRdg/URI | 1a4d821cc43c715f5092076a1753b13f42f3ceac | 459361f9e055efb6eb291fb030dde47cb08688ab | refs/heads/master | 2022-05-08T06:46:44.618627 | 2022-04-24T03:46:43 | 2022-04-24T03:46:43 | 200,585,901 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | def main():
ordem = int(input())
while ordem != 0:
matriz = []
for i in range(1, ordem + 1):
matriz += [[i] * ordem]
for i in range(ordem):
for j in range(ordem):
if i == j:
matriz[i][j] = 1
if i < j:
matriz[i][j] = matriz[i][j - 1] + 1
if i > j:
if j == 0:
continue
... | [
"luanrodrigues007@hotmail.com"
] | luanrodrigues007@hotmail.com |
44877423e0a7b2fbd5c6d3490744498281831dd6 | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/influxdb-client/influxdb_client/domain/range_threshold.pyi | bc6b3aa97fdc891511d30c007c3c8dd1a4f27782 | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 1,004 | pyi | from _typeshed import Incomplete
from influxdb_client.domain.threshold_base import ThresholdBase
class RangeThreshold(ThresholdBase):
openapi_types: Incomplete
attribute_map: Incomplete
discriminator: Incomplete
def __init__(
self,
type: str = "range",
min: Incomplete | None = ... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
82ef0c669736d69b2da60bea4943dc6b93cf54f9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_luaus.py | db10b77fa904fbdc865fafa175f9a8538ee5ee10 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
from xai.brain.wordbase.nouns._luau import _LUAU
#calss header
class _LUAUS(_LUAU, ):
def __init__(self,):
_LUAU.__init__(self)
self.name = "LUAUS"
self.specie = 'nouns'
self.basic = "luau"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5c0db854454cabafcab66f84b62cc0ae6df4a7a6 | 4c7a9d9af1f5a68e718fd626281b979590f7a434 | /v6/combine_filter.py | 54dd64244b4450e2414f2e8e536e9122c58768c3 | [] | no_license | bcrafton/bp-analysis | 59f077f09d4c10445b2f1e2889842a681de44129 | 9290df4bc8ae6a527586328eee0ad86fd370989e | refs/heads/master | 2020-05-31T12:27:23.673875 | 2019-07-02T15:46:58 | 2019-07-02T15:46:58 | 190,281,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py |
import numpy as np
def combine_filter(f1, f2, stride=1):
h1, w1, fin1, fout1 = np.shape(f1)
h2, w2, fin2, fout2 = np.shape(f2)
oh = h1 + 2*(h2 // 2) * stride
ow = w1 + 2*(w2 // 2) * stride
ofin = fin1
ofout = fout2
fout = np.zeros(shape=(oh, ow, ofin, ofout))
for x... | [
"crafton.b@husky.neu.edu"
] | crafton.b@husky.neu.edu |
6b124e1471d862488e655f3811a9cdfd0dc281cb | e4aab0a71dc5c047d8b1576380b16364e03e7c0d | /post scripts/deluge.py | 4a1106e8a5d1e3b050a700159f20b48d25f02268 | [
"Apache-2.0"
] | permissive | Joecastra/Watcher3 | 8ca66c44846030f0eb771d9d6ddeb9c37f637a4e | ce25d475f83ed36d6772f0cc35ef020d5e47c94b | refs/heads/master | 2021-01-19T11:05:55.454351 | 2017-04-10T20:17:24 | 2017-04-10T20:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/env python3
# ======================================== #
# ============= INSTRUCTIONS ============= #
# Add file to Deluge's Execute plugin for event Torrent Complete
# Add api information to conf:
watcherapi = 'APIKEY'
watcheraddress = u'http://localhost:9090/'
category = 'Watcher'
# DO NOT TOUCH ANYTH... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
58913959884ae744d8d208372316ac4a7ab7379f | e6ea71d6acbb41bd40d3a17b352e19c6369d5c4b | /senpai/stage_instance.py | 736cc80fa7d0ffe07b80e08582726f18cda05304 | [
"MIT"
] | permissive | alexyy802/waifucord | bbfb50515ca23bf711e940ac8921092ff6d1e12e | c3bb883a6a148effb127781a885e839697df6a8b | refs/heads/master | 2023-09-02T13:19:44.478472 | 2021-10-29T06:51:51 | 2021-10-29T06:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,004 | py | """
The MIT License (MIT)
Copyright (c) 2021-present waifucord
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, m... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
f08f5e37c8d43e03f7302f3dc075c370c0ebb88c | c70d020907e538492665c7fe75d7b2b90c88ba93 | /python/pygobject/basis.py | 9507a9e5cafe13baefa28c73ed1d79d857155810 | [] | no_license | 4179e1/misc | 7250de0bc0d9ab5641f48ec87f038f8b5dbed29b | 1fb4d38b75fcc7692da605a6d3ec72e735116de1 | refs/heads/master | 2023-08-10T23:37:10.362847 | 2023-07-08T14:27:53 | 2023-07-08T14:27:53 | 14,710,900 | 3 | 3 | null | 2023-02-23T02:03:23 | 2013-11-26T08:21:00 | Roff | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python
from gi.repository import Gtk
win = Gtk.Window()
win.connect ("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
| [
"4179e1@gmail.com"
] | 4179e1@gmail.com |
aae7967595c33684d0cddfce97bc78285b719b53 | 67c0bc2b2292857fcc19b3c6e6da5570dc09749c | /chapter_6_visualization/audio_path.py | b8f4132d681a1663b16025bb3e2816c9f6d25d96 | [
"Apache-2.0"
] | permissive | jim-schwoebel/voicebook | 9d28f638fa6a31cb8c4915f9871c07da261b3ea6 | 0e8eae0f01487f15589c0daa2cf7ca3c6f3b8ad3 | refs/heads/master | 2022-12-11T13:41:24.005431 | 2021-04-15T13:51:35 | 2021-04-15T13:51:35 | 137,778,789 | 363 | 84 | Apache-2.0 | 2022-12-08T03:58:01 | 2018-06-18T16:37:37 | Python | UTF-8 | Python | false | false | 3,273 | py | '''
================================================
## VOICEBOOK REPOSITORY ##
================================================
repository name: voicebook
repository version: 1.0
repository link: https://github.com/jim-schwoebel/voicebook
author: Jim Schwoebel
author contact: js@neur... | [
"noreply@github.com"
] | jim-schwoebel.noreply@github.com |
db6175fa2394c30524ad292439ef8721022ae025 | 851c474c9d91875b0fa8fe46d591bb6550b1c550 | /eye/migrations/0003_auto_20200818_0030.py | 62e72256111c4d71a8e8f0ef2e19f772bd42a5f2 | [] | no_license | songlei1979/BigEye4 | 1a8e9c71cae3e3bd3fb5432c05b73997ba9590c2 | 825e79ebd43d71203c827490d5ffe36c861e4dec | refs/heads/master | 2022-12-03T22:19:25.224277 | 2020-08-26T05:44:19 | 2020-08-26T05:44:19 | 288,315,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.0.8 on 2020-08-18 00:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('eye', '0002_auto_20200812_1007'),
]
operations = [
migrations.AlterModelTable(
name='allocation',
table='eye_allocation',
... | [
"gabriel_sl19798@hotmail.com"
] | gabriel_sl19798@hotmail.com |
3803da3b8f058178d20d30d5aa287d146a64bf84 | 7579431f002103a74b5ae6bccf76458b221e78ab | /Dynammic Programming/Egg Dropping Puzzle.py | 0cea9ac5597a588db4fd63558fc43eea55a49cab | [] | no_license | mukundajmera/competitiveprogramming | 5c187e9681b320482c7b8cdfa71be95f9f9184c1 | 85774aea5a20a9cf4a97c66237d2faa570edd96b | refs/heads/main | 2023-03-21T14:01:03.653953 | 2021-03-22T19:41:54 | 2021-03-22T19:41:54 | 319,270,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # User function Template for python3
# Function to get minimum number of trials needed in worst
# case with n eggs and k floors
import math
def eggDrop(n, k):
# code here
# create table of n+1, k+1
dp = [[None] * (n + 1) for i in range(k + 1)]
# fill
# floor 0 with egg is zero
# floor 1 with ... | [
"mukundajmera94@gmail.com"
] | mukundajmera94@gmail.com |
103b7a688f8a7e8cf5d5dddf9358f9b4c41bf7fa | 7fc03f7d28ea7bbdca650a51a23fc0b13cbefde1 | /supervised_learning/0x11-attention/6-main.py | 756a7098a53ec467f39ff16efa42dd77ce531301 | [] | no_license | HeimerR/holbertonschool-machine_learning | 54c410e40d38635de482773f15e26ce1c2c95e46 | e10b4e9b6f3fa00639e6e9e5b35f0cdb43a339a3 | refs/heads/master | 2021-07-24T09:33:25.833269 | 2021-01-14T00:21:45 | 2021-01-14T00:21:45 | 236,603,791 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/env python3
import numpy as np
import tensorflow as tf
MultiHeadAttention = __import__('6-multi_head_attention').MultiHeadAttention
mha = MultiHeadAttention(512, 8)
print(mha.dm)
print(mha.h)
print(mha.depth)
print(mha.Wq)
print(mha.Wk)
print(mha.Wv)
print(mha.linear)
Q = tf.convert_to_tensor(np.random.uni... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
b0680c3e15836ae1c131b441d324db4d218d5f96 | 04f8c7d9eb20745def8568fcbd2401392187ebf0 | /www/www/settings_prod.py | 2df597cfc30b7934a40ca8e4d06329af96778cbd | [] | no_license | boogiiieee/Victoria | 5f01d8c01e92d78b756324ee8da2208ab9c63bc6 | c76996698bbbd88309ed35f47d19e09fec19eb94 | refs/heads/master | 2021-09-04T03:13:00.208173 | 2018-01-15T04:05:29 | 2018-01-15T04:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # -*- coding: utf-8 -*-
'''
from settings import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
MANAGERS = (
('', ''),
('', ''),
)
MEDIA_ROOT = '/var/www/home/'
STATIC_ROOT = '/var/www/home/'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '',
'USER... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
c7390cd06f4184861f8f1c7715515e955cf21374 | 9427fa36416d835e28faa8e52a11140b6512e9c7 | /dæmatímaverk/dæmatími_tuples/tuples5.py | 9a17ed22e2776c27573687cc7d5525fb0ac8cac2 | [] | no_license | fannarl/traveler | e5f274e404c10fe799b87e36eb4eb37e64fb8db8 | 8bc121d9fc26374f1b0dcee6da815ed732f2d889 | refs/heads/master | 2020-03-28T23:23:31.216234 | 2018-12-14T17:22:30 | 2018-12-14T17:22:30 | 149,289,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | def get_list():
a_list = input("Enter elements of list separated by commas: ").strip().split(',')
return a_list
def get_integer(prompt):
val = int(input(prompt))
return val
def transform(list1, list2, r1, r2):
new_list = []
for i in range(r1,r2):
new_list.append(list1[i])
for i in ... | [
"fannarleo95@hotmail.com"
] | fannarleo95@hotmail.com |
0696c8ebc33ac64b9ec37ab7fb5a23ad490a88fc | 194a1e2ac246c5f9926b014c00d4c733f0cdaf0c | /tests/wallet/test_singleton_lifecycle.py | 965eaeab5e49fb9b8403e58e5fcd5a088a688c53 | [
"Apache-2.0"
] | permissive | chia-os/btcgreen-blockchain | 03e889cd0268284b7673917ab725ad71f980b650 | 2688e74de423ec59df302299e993b4674d69489e | refs/heads/main | 2023-08-29T14:40:11.962821 | 2021-08-17T06:33:34 | 2021-08-17T06:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,191 | py | import asyncio
from typing import List, Tuple
from blspy import G2Element
from clvm_tools import binutils
from btcgreen.types.blockchain_format.program import Program, INFINITE_COST
from btcgreen.types.announcement import Announcement
from btcgreen.types.blockchain_format.coin import Coin
from btcgreen.types.blockch... | [
"svginsomnia@gmail.com"
] | svginsomnia@gmail.com |
5078630d55858cd9668eb7877bb6ed87f89a2020 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/a3y.py | c12946f262d52a5b5e020798136feaac117c0a6b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
673ee013002ca17e8e0fec41ab801aa3d9ac69ce | 356fd94e07539437ced3514c664be5e8cec40a88 | /amicus/simplify/analyst/encode.py | fbab552e5f889a64fcf105e2cc999c37750559d2 | [
"Apache-2.0"
] | permissive | WithPrecedent/amicus | 6740de4c4c43c0ca3b6f71ff1892322b92f61678 | 0de6d90c34b8402f4464dcba784349514b3b8e42 | refs/heads/main | 2023-04-25T04:18:58.842285 | 2021-05-19T19:01:00 | 2021-05-19T19:01:00 | 339,543,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,607 | py | """
simplify.analyst.encode
Corey Rayburn Yung <coreyrayburnyung@gmail.com>
Copyright 2021, Corey Rayburn Yung
License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
Contents:
"""
from __future__ import annotations
import dataclasses
from typing import (Any, Callable, ClassVar, Dict, Hashable, Iterable, L... | [
"coreyrayburnyung@gmail.com"
] | coreyrayburnyung@gmail.com |
8a7146223b544962aa2917ea4cf93337f3460901 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/s_checklist_scenariobased_step07.py | f74d1ac5806b3df08f57092c9a18ef1c0abce61d | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,564 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # s_ch... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
df39f1b43eaa8211c126ff9d37b5062dbbbf6b0a | 7f99fb1f9d051dbcd13770e7a08e92f90e6027ca | /Analyzer/fakeRateGetRatesMuons_DiBoson_cfg.py | 505ad378830fb34d6a4008d8b48de6479a3b79a3 | [] | no_license | kmtos/AnalyzerGeneratorRecoVariousFunctions | be54dd360a37b4ef1aeef2ee692ada4351b7db2e | acd8cde2f5657674c73eae9af28f3235b9b3f7c5 | refs/heads/master | 2021-01-10T08:34:49.953330 | 2018-07-26T12:36:41 | 2018-07-26T12:36:41 | 50,570,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | ### PDG IDs ###
A_PDGID = 36
MU_PDGID = 13
TAU_PDGID = 15
ANY_PDGID = 0
### Tau decay types ###
TAU_HAD = 0
TAU_MU = 1
TAU_E = 2
TAU_ALL = 3
### Tau hadronic decay types ###
TAU_ALL_HAD = -1
TAU_1PRONG_0NEUTRAL = 0
TAU_1PRONG_1NEUTRAL = 1
TAU_1PRONG_2NEUTRAL = 2
TAU_1PRONG_3NEUTRAL = 3
TAU_1PRONG_NNEUTRAL = 4
TAU_... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
49a564d5f2ae3ade119c6bd9772c475fc668c306 | f2ba48da8c66c454470dd1441904797e5fbc509c | /WDLJ/zgw_goods/zgw_goods/run_crawl/run_wag.py | b2fd1cef7aaa4327c6c57db1d3e7c346770e5c8c | [] | no_license | awmace/Demo | 862800b81e4088615a92d2da0a576a5660e0fec9 | 9734e50578bda139d3781478b7170af723c5881a | refs/heads/master | 2023-03-06T09:01:02.321914 | 2021-02-20T07:41:25 | 2021-02-20T07:41:25 | 340,599,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | import os
os.system('scrapy crawl uploadwuage')
os.system('scrapy crawl wuage') | [
"2638274890@qq.com"
] | 2638274890@qq.com |
b5ccbc7a42bed9f50e10a78f16edea638f7d2b4d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_070/ch164_2020_06_19_01_22_22_398779.py | bd37e300eab69845e9b34b2c8a398225a70f5f0d | [] | 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 | 113 | py | def traduz(ingles, eng2port):
port = []
for i in ingles:
port.append(eng2port[i])
return port | [
"you@example.com"
] | you@example.com |
a94dad9094cd2893b487f36a7115d0663e3c5db0 | 526bf18a8695862067c817f432ab197ceb645f39 | /migrations/versions/76fb82b8961b_cars_add_location_diller.py | 985f450b99df7550155f2a0c2b4945f918d451e9 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | """common add location diller
Revision ID: 76fb82b8961b
Revises: 920ac7659cb4
Create Date: 2020-09-15 08:23:44.523023
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "76fb82b8961b"
down_revision = "920ac7659cb4"
branch_labels = None
depends_on = None
def upgr... | [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
b6a81ff24dc21edef75de72eabcc703386468603 | 33c51931bc7d6f73da5a64ecc0e7cb751e7fc62c | /karesansui/db/model/option.py | b43f24a1ca8043122b981e017ab2dccc30551e60 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | qmutz/karesansui | e86ed107f313f8c4140797a2c3250c5f16b524c2 | f4ba1cf6f88cf76c3e4dbc444139d73134f7c9d1 | refs/heads/develop | 2023-05-06T14:52:38.668631 | 2019-02-01T03:57:00 | 2019-02-01T03:57:00 | 316,682,704 | 0 | 0 | MIT | 2021-06-03T14:59:45 | 2020-11-28T07:43:33 | null | UTF-8 | Python | false | false | 6,806 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui Core.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restric... | [
"taizo@karesansui-project.info"
] | taizo@karesansui-project.info |
fd67b2cea25f2c76efaf85561698eed8bbd55edd | 88e06bab1989c81a2dd649bb09b144fa7c958f89 | /leet_subarray_with_k_different_integers.py | e67b6bb2f63e7f22e17fc918d64b415ae5cb16f5 | [] | no_license | VaibhavD143/Coding | 4499526b22ee4ef13f66c3abcea671c80a8f748a | 5de3bae8891c7d174cbc847a37c3afb00dd28f0e | refs/heads/master | 2023-08-06T21:56:44.934954 | 2021-10-09T18:31:29 | 2021-10-09T18:31:29 | 263,890,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """
Intution:
l1 is left-most valid index for substring ending at rth index
l2 is left-most index from where substring becomes invalid ending at rth index
so we can generate l2-l1 substrings ending at rth index
Valid : have exactly K distinct elements
"""
from collections import defaultdict
class Solution:
def su... | [
"vaibhav.dodiya143vd@gmail.com"
] | vaibhav.dodiya143vd@gmail.com |
cfeefe2c257d1544d9c955d1dc11614118070a9c | 15e8a393f6c71ba77094a1718f4f89050409c7ae | /library/templatetags/book_tags.py | 9a7f4c4fe3a48fb66d691bf5f46e69dbe8b81227 | [] | no_license | emilte/johansson | 21a3e20208c67725776af0f94de4c29150935b50 | d16bdde26e840814562f668904b2f5588c0a13ad | refs/heads/master | 2023-07-23T21:01:32.830302 | 2021-09-05T14:56:01 | 2021-09-05T14:56:01 | 390,360,563 | 0 | 0 | null | 2021-08-30T00:42:49 | 2021-07-28T13:26:31 | SCSS | UTF-8 | Python | false | false | 2,133 | py | # imports
import PIL
import random
from django import template
from django.conf import settings
from django.utils import timezone
from django.templatetags.static import static
from django.contrib.auth.models import Permission
# End: imports -----------------------------------------------------------------
register =... | [
"emil.telstad@gmail.com"
] | emil.telstad@gmail.com |
f38c4e2a896f8c73c898cc11185b6085feb8c88d | e9f40b2ae17b5bf7f7fba339b00cb59e2cce34fa | /uclbrt/qrmaster/syn_2/qrmaster.py | d246e2572213241f40433b368df2c79a4a91ce75 | [] | no_license | linyouwei/pycharm | 0d8dbfd83fcc88077137bcbec063186ce0fb622c | 246fe3ab855f7614fd05f2d31239170077791822 | refs/heads/master | 2021-01-19T17:38:35.698089 | 2018-03-26T10:12:50 | 2018-03-26T10:12:50 | 101,077,696 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,302 | py | # encoding=utf-8
import requests
import hashlib
from bs4 import BeautifulSoup
import json
import re
class QrmasterClass:
# 切换集群
qrm_client = ''
qrm_bpass = ''
def __init__(self, qrm_client, qrm_bpass):
self.qrm_client = qrm_client
self.qrm_bpass = qrm_bpass
def change_commuity(se... | [
"yjlyw020150@163.com"
] | yjlyw020150@163.com |
132f1bff7f32b051fa9726e0c877ce090d8c5506 | c264153f9188d3af187905d846fa20296a0af85d | /Python/Python3网络爬虫开发实战/《Python3网络爬虫开发实战》随书源代码/jiepai/spider.py | 7ca771da154f16c51cbbbec444ee1ad0371ecea2 | [] | no_license | IS-OSCAR-YU/ebooks | 5cd3c1089a221759793524df647e231a582b19ba | b125204c4fe69b9ca9ff774c7bc166d3cb2a875b | refs/heads/master | 2023-05-23T02:46:58.718636 | 2021-06-16T12:15:13 | 2021-06-16T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import os
from multiprocessing.pool import Pool
import requests
from urllib.parse import urlencode
from hashlib import md5
def get_page(offset):
params = {
'offset': offset,
'format': 'json',
'keyword': '街拍',
'autoload': 'true',
'count': '20',
'cur_tab... | [
"jiangzhangha@163.com"
] | jiangzhangha@163.com |
335096cb45cac78881b05c35bf2129c9b91761c7 | 76742bf1c7dee6a01a0a41402fe734eeb0da3d74 | /venv/bin/sphinx-autogen | 7607e9cf2f5bad91acbff30af728168c78ff5ba7 | [] | no_license | Zacharilius/tangoProject | e5490c80af3caaabe2cf132a40387db2574713dc | 305fa20e344f8ad24514dff959be3e4e3632645e | refs/heads/master | 2021-01-22T23:26:51.921743 | 2015-03-17T17:52:22 | 2015-03-17T17:52:22 | 29,359,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | #!/home/zacharilius/Documents/GitHub/tangoProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sphinx.ext.autosummary.generate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zabensley@gmail.com"
] | zabensley@gmail.com | |
741026f4fb0abd4abf264a986c30c02d470275ad | 21c6989099b95e608c73b246c5ccc97dfac688da | /testserver.py | b7d29e7363de0bf4c74e4e5fc18ed0a4cdfda7d1 | [] | no_license | ashcrow/taboot-tailer | a8200dedab4084041ec1f931b93d53360e5789f2 | 4c403cfaeb38e7a3b10478b74b28e5b31b1d4e5b | refs/heads/master | 2021-01-21T01:18:05.144141 | 2014-05-23T15:39:45 | 2014-05-23T15:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | #!/usr/bin/env python
import SimpleHTTPServer
import SocketServer
def main():
SocketServer.TCPServer.allow_reuse_address = True
httpd = SocketServer.TCPServer((
"127.0.0.1", 5000),
SimpleHTTPServer.SimpleHTTPRequestHandler)
print "Do not use this server for anything but testing!"
prin... | [
"stevem@gnulinux.net"
] | stevem@gnulinux.net |
988107dcdf49e79a36105bd8984988e97d0bd846 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L84/84-85_wat_20Abox/set_1ns_equi.py | 3b6c86ee4db3d4d1da891eb4aea66a5c7fe219e7 | [] | 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 | 916 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L84/wat_20Abox/ti_one-step/84_85/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.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... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
be50f1b323652c40e6b49cf9a2bd79de2d808a78 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_crocks.py | 1a3f520d65582f3f690bc163e29107237760a5b2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._crock import _CROCK
#calss header
class _CROCKS(_CROCK, ):
def __init__(self,):
_CROCK.__init__(self)
self.name = "CROCKS"
self.specie = 'nouns'
self.basic = "crock"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e072e242996c7e1919533e5daa584cf59c3457e6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/others/CLIP_for_PyTorch/transformers/tests/utils/test_modeling_tf_core.py | 8edfc8eab02d4c58c3426a1fd71fe3e503ffa4c0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 15,226 | py | # coding=utf-8
# Copyright 2019 HuggingFace Inc.
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f83c4b3c6faf3ef8350d51cee7b1ed1509e0e084 | a51062d546e0936c5b2ac5cbfb3f91fc7bf342d7 | /openff/evaluator/properties/__init__.py | a1178d3374263026cb4e256232bb78964f451d98 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joegomes/openff-evaluator | 4e748a9f43001a8e738851a9160837f6618fc8e5 | 9ccd3d017af0c6c1b556b1e77a8eccd0d1dfbcd1 | refs/heads/master | 2023-04-22T01:02:47.038298 | 2021-05-05T18:49:49 | 2021-05-05T18:49:49 | 364,670,685 | 0 | 0 | NOASSERTION | 2021-05-05T18:49:50 | 2021-05-05T18:27:10 | null | UTF-8 | Python | false | false | 423 | py | from .binding import HostGuestBindingAffinity
from .density import Density, ExcessMolarVolume
from .dielectric import DielectricConstant
from .enthalpy import EnthalpyOfMixing, EnthalpyOfVaporization
from .solvation import SolvationFreeEnergy
__all__ = [
HostGuestBindingAffinity,
Density,
ExcessMolarVolume... | [
"simon.boothroyd@colorado.edu"
] | simon.boothroyd@colorado.edu |
2323ad3b44127d58791d33e46cf34b22f637af99 | 553b86e3b1ed21e64ea4feeb690af0701a17ba5f | /prob1.py | 807fc0a8bb9f9d250e350cde7f495af6014e156a | [] | no_license | shihyuuuuuuu/LeetCode_practice | d1c4b7851abfa42fcc4b56f835444792aca3f222 | dbc7e988ca9fd6f3a9541a36a0ad543c97b884af | refs/heads/master | 2023-01-03T21:25:14.426989 | 2020-11-03T07:09:29 | 2020-11-03T07:09:29 | 254,667,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | class Solution:
# Prettier
def twoSum(self, nums: List[int], target: int) -> List[int]:
d = {}
for cnt, i in enumerate(nums):
if d.get(target - i, -1) != -1:
return [d[target-i], cnt]
else:
d[i] = cnt
# Faster, more memory
def twoS... | [
"www.elmo20816@gmail.com"
] | www.elmo20816@gmail.com |
62225756896d2b4614a6f4732d1f5e155553fb11 | f931249f3766bd871eede76a950484701915c32d | /collective_decision/tests/test_models.py | aa2bd906a88f75c7dc22581ed4b16733fcad544b | [] | no_license | cleliofavoccia/Share | aa509c9cfa1aa3789237b411b2b94d952d848322 | cf0b982a6df2b8b4318d12d344ef0827394eedfd | refs/heads/main | 2023-07-11T08:29:59.016252 | 2021-08-09T10:13:53 | 2021-08-09T10:13:53 | 373,621,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,125 | py | """Tests of collective_decision django models"""
from django.test import TestCase
from django.db import IntegrityError
from user.models import User
from group.models import Group
from group_member.models import GroupMember
from product.models import Product
from ..models import Estimation, Decision
class Estimatio... | [
"favoccia.c@live.fr"
] | favoccia.c@live.fr |
be6cbbd046838c6b3ea18f1e70cb6f08612db43e | 0c1d6b8dff8bedfffa8703015949b6ca6cc83f86 | /lib/worklists/operator/CT/v3.0/business/ADSL/test/data.py | 011c359518dc97400db6bdb1e079f6fba7538eb2 | [] | no_license | samwei8/TR069 | 6b87252bd53f23c37186c9433ce4d79507b8c7dd | 7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c | refs/heads/master | 2021-06-21T11:07:47.345271 | 2017-08-08T07:14:55 | 2017-08-08T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #coding:utf-8
# -----------------------------doc--------------------------
# 工单 描述
WORKLIST_DOC = """ """
# -----------------------------args--------------------------
# 工单 参数
WORKLIST_ARGS = {
"ConnectionType": ("IP_Routed", "1"),
"ServiceList": ("INTERNET", "2"),
"Username": ("admi... | [
"zhaojunhhu@gmail.com"
] | zhaojunhhu@gmail.com |
47ea0ceecd6c900370bb212ceedfa5d6e9398339 | 2b1b4b92b5b6dadc6dfb556e867b042c97a4d738 | /CMGTools/H2TauTau/python/proto/plotter/HistDrawer.py | afd02f94b7ea7778cb69f5c3d0a53fba6df59986 | [] | no_license | emanueledimarco/cmg-cmssw | 65f6d20ccd9bfec74856397407b96dee9830afc6 | b54ebd03ab8bad9c7694d867e3f3c54a1ad910c4 | refs/heads/CMGTools_from7412_monox | 2021-01-18T17:57:17.833303 | 2016-02-24T15:27:58 | 2016-02-24T15:27:58 | 21,276,131 | 1 | 0 | null | 2017-10-25T21:50:09 | 2014-06-27T13:11:29 | C++ | UTF-8 | Python | false | false | 6,022 | py | import re
import os
import copy
from math import log10, floor
from ROOT import TCanvas, TPaveText, TBox, gStyle
from CMGTools.RootTools.DataMC.Stack import Stack
from CMGTools.H2TauTau.proto.plotter.CMS_lumi import CMS_lumi
from CMGTools.H2TauTau.proto.plotter.officialStyle import officialStyle
officialStyle(gStyle... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
8f54020865428b31e51ea2f36018f18b202ee386 | b46dff381a329b5456359d9edcbb279e7c710999 | /tilelit/tests/test_tilelit.py | f6f7297882115d058d6e9d9ba83007ba751485e7 | [
"MIT"
] | permissive | uw-biomedical-ml/tilelit | d8c48cfaf95ea90c23fe4dbc7862d76747e00628 | 36062279e321a30a194982dc61df6946614e7e22 | refs/heads/master | 2021-09-17T22:08:43.761931 | 2018-07-05T22:27:58 | 2018-07-05T22:27:58 | 114,414,633 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | from __future__ import absolute_import, division, print_function
import os.path as op
import numpy as np
import pandas as pd
import numpy.testing as npt
import tilelit as ti
import skimage.data as skd
from skimage import transform as tf
def test_tile():
static = skd.coins()
ty = np.random.randn() * 0.05 * sta... | [
"arokem@gmail.com"
] | arokem@gmail.com |
06196dc14bd12901227bf7210937a9df76502363 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /topcoder/Rookie SRM 1/OverallScores.py | d32100bb4d37fadd8b01c0ab9f613199978513d7 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class OverallScores:
def findWinner(self, N, scores):
dat = [0] * N
for i in range(len(scores) // N):
for j in range(N):
dat[j] += scores[j + i * N]
maind = -1
... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
2a722ec1fe9fcda7804a6102c78858b391aa6dfe | 377dc973a58d30154cf485de141223d7ca5424dd | /havok_classes/hkaSkeletonLocalFrameOnBone.py | 24e0e76c53f139086cdd47e4f2731f50d18ed9ba | [
"MIT"
] | permissive | sawich/havok-reflection | d6a5552f2881bb4070ad824fb7180ad296edf4c4 | 1d5b768fb533b3eb36fc9e42793088abeffbad59 | refs/heads/master | 2021-10-11T12:56:44.506674 | 2019-01-25T22:37:31 | 2019-01-25T22:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | from .hkLocalFrame import hkLocalFrame
import struct
class hkaSkeletonLocalFrameOnBone(object):
localFrame: any
boneIndex: int
def __init__(self, infile):
self.localFrame = any(infile) # TYPE_POINTER:TYPE_STRUCT
self.boneIndex = struct.unpack('>h', infile.read(2)) # TYPE_INT16:TYPE_VOID... | [
"kevin@turtlerockweb.com"
] | kevin@turtlerockweb.com |
0953423a781578e7260493e3b17df08f46cb8ffa | 0f9a97d48a9f0179bcf1e3d80c08340096eb561e | /ДЗ-5. Функции и рекурсия/C. Периметр треугольника.py | 218540cdf273e3aecc918c967a3df0f90da0aa53 | [] | no_license | dmitryokh/python | 96d8ec8c3f2d3428b90d510a1003aecf102b13d0 | 8efe761412779bed9a7516832d3152843088fa43 | refs/heads/master | 2020-04-24T03:08:42.865813 | 2019-02-20T11:41:52 | 2019-02-20T11:41:52 | 171,661,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from math import sqrt
def distance(x1, y1, x2, y2):
return(sqrt((x2 - x1)**2 + (y2 - y1)**2))
x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
x3 = int(input())
y3 = int(input())
a = distance(x1, y1, x2, y2)
b = distance(x1, y1, x3, y3)
c = distance(x3, y3, x2, y2)
print(a + b + c)
| [
"noreply@github.com"
] | dmitryokh.noreply@github.com |
46b795561c7cd2ef9084ec78d43889d97b023575 | 747f759311d404af31c0f80029e88098193f6269 | /addons/stock/wizard/stock_location_product.py | 1f9777a72c1d926463d1fd0cf913ed81086e71dc | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"geerish@omerp.net"
] | geerish@omerp.net |
e4def48c4cf436a2b2d384bd315d99b9a0f1b56a | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1310.py | f6c89f3e4f5a2d30ec73a1b5f825e843ad9d4a87 | [
"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 | 4,424 | py | # qubit number=5
# total number=56
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9ad89e902ed284ef9edf8837805fb2c2d6c96dce | f0f2a548457e345d5432c8ddcd37daa25ee56957 | /apml-client/show-stats.py | c989e874560d2414b6478337566c10ae269a4f02 | [
"MIT"
] | permissive | blxlrsmb/myap.ml | edf2703df34de27282dbf0d7821f83b629e1ccc8 | b21270d54b453cd53e160a017f21d52e444ff62b | refs/heads/master | 2021-01-24T20:52:38.420997 | 2016-06-19T06:19:44 | 2016-06-19T06:19:44 | 36,968,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: show-stats.py
# Date: Sat Jun 06 20:16:34 2015 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
from logger import EventLogger
ev = EventLogger()
pkgs = ev.packages
names = set()
cnt = 0
for p in pkgs:
names = names.union(set(p['key'].keys()))
cnt += sum(p['... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
bc68bd06515bf96079aa0ed7e1770b5be7c25b5c | b50ff836c3010b42821624e79cb21e4d9594f588 | /selfdrive/car/vin.py | 76fd34ca6d80e8aecc040376a6369041889c537f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dnv26/openpilot | 5fe441eb9ef93a56b5a2522ace58c3ae415c7813 | b1db54ea553ccc41cfb54bdf66a1c31ab52432f2 | refs/heads/HKG_6.5 | 2020-09-09T06:37:33.909558 | 2019-11-14T21:47:55 | 2019-11-14T21:47:55 | 221,376,282 | 8 | 31 | MIT | 2020-05-09T02:30:46 | 2019-11-13T05:01:02 | C++ | UTF-8 | Python | false | false | 3,245 | py | #!/usr/bin/env python3
import selfdrive.messaging as messaging
from selfdrive.boardd.boardd import can_list_to_can_capnp
VIN_UNKNOWN = "0" * 17
# sanity checks on response messages from vin query
def is_vin_response_valid(can_dat, step, cnt):
if len(can_dat) != 8:
# ISO-TP meesages are all 8 bytes
return Fa... | [
"user@comma.ai"
] | user@comma.ai |
8fd9e5477942786209d08d62c024179c66489083 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_0/Python/trapped/a_small.py | d6f1fa475144b794563c801431c358bd4fcbb062 | [] | 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 | 538 | py | T = int(raw_input())
def solve(r, c, w):
if w == 1: return r*c
if w == c: return (r-1) + c
# following only for small case: r=1
if w > c//2: return w+1
if w == c//2: return w+1+(c%2)
return 1+ solve(r, c-w, w)
'''if c%2 == 1:
ans = 1 + (c//2)//w
ans += solve(r, c//2, w)... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
c8d8db5bcecf909d177c3caf44457684046f456e | e5606385fc77c1fbb30be223637b2b62372d6635 | /news/urls.py | 20fbb45caaed199e495d3c073c27917d6aaccb6c | [] | no_license | bhoj001/DJ_Test_App | 6b2f116523af72a15370e303af745d7df7d7951c | a20d5ae9049a5d432ba219eb96036953c5512bf5 | refs/heads/master | 2020-03-24T00:25:57.714156 | 2018-07-25T11:29:15 | 2018-07-25T11:29:15 | 142,290,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.conf.urls import url
from tango_with_django import views
urlpatterns = [
url(r'^home$', views.home, name='home'),
url(r'^$', views.index, name='index'),
] | [
"nishantkarki305@gmail.com"
] | nishantkarki305@gmail.com |
1abb6b3b06ad3d28a1bc8ffef2a528725d178bbd | 9214a22c37f9751f66005d9033c68eadca43d6ee | /app/.history/datasets/spotify_fetch_20201212160615.py | 2d534dc61d069d9f1b881c5e1a14e0cc57cb80ae | [] | no_license | bsalgado98/lockdown-music | 0800922ea25c9b07ea4b034297e67725776de070 | a407265b7caa83667c92ee13c2adec1645acdafa | refs/heads/main | 2023-01-29T09:55:38.137972 | 2020-12-17T01:01:49 | 2020-12-17T01:01:49 | 322,133,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
import json
import csv
auth_manager = SpotifyClientCredentials()
sp = spotipy.Spotify(auth_manager=auth_manager)
def get_artist_genre(artist):
results = sp.search(q='artist:' + artist, type='artist')
# print(json.dumps(results, indent=4, sort_... | [
"bsalgado@stevens.edu"
] | bsalgado@stevens.edu |
e58b99b41a4f3a5a38ecf00da40037bd8fa7eae3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayPcreditLoanHousemortgageRealtychainNotifyResponse.py | c8ce7d57930cb013c46e118af02437d5099697ec | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 506 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayPcreditLoanHousemortgageRealtychainNotifyResponse(AlipayResponse):
def __init__(self):
super(AlipayPcreditLoanHousemortgageRealtychainNotifyResponse, self).__init__()
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
146ee16ca9aaaf47c04e5aa73ebb2fc961973fc6 | 3ec8ade4cedc4601a1dea1933182675bc35f543a | /demo/models.py | 4376f3134a7a3e28177d207c2299c172e8bd3723 | [] | no_license | artrey/drf-comments | d9fce0b14c28ef9810cc17caeb03b2435cc075b6 | ee875f820dc691df984ef8f292e8f9e532ca4689 | refs/heads/master | 2023-07-20T12:31:14.879634 | 2021-08-20T17:12:12 | 2021-08-20T17:12:12 | 398,344,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.core.validators import MaxValueValidator
from django.db import models
class Comment(models.Model):
author = models.CharField(max_length=100)
text = models.TextField()
rating = models.PositiveSmallIntegerField(validators=[MaxValueValidator(5)])
| [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
75124e86e3e6d2e88fb785d3c12f62938022879e | ac7c02f29a837fdd67d2bdc77bba182080e98ed8 | /codekata/ASCII.py | 0a5f9b4a9ab3339cbd9a961167afabd66480eb85 | [] | no_license | YaminiNarayanan-359/guvi | 7630c309a86365e4367fda1ddab4e966e7d1ac5b | a52b6353100b4e9b83a003e6a327fbfb174daac4 | refs/heads/master | 2020-06-03T00:08:00.389609 | 2019-07-16T06:59:53 | 2019-07-16T06:59:53 | 191,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | u=input()
d=ord(u)
print(d)
| [
"noreply@github.com"
] | YaminiNarayanan-359.noreply@github.com |
a7323120d71625d329147a0ad58c8fbe841c5d7e | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/test-multiprocessing/multiprocessing_simple.py | f23b32c4e12ab97388c5ee1cb1354982163bc9f4 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 276 | py | # https://pymotw.com/3/multiprocessing/basics.html
import multiprocessing
def worker():
"""worker function"""
print('Worker')
if __name__ == '__main__':
jobs = []
for i in range(5):
p = multiprocessing.Process(target=worker)
jobs.append(p)
p.start()
| [
"morpheus.0@kakaocorp.com"
] | morpheus.0@kakaocorp.com |
49fd37eab918232db078265207ad4f60b6097bb1 | b80bd48e12f2361ea51284fba0a08ea61673cfd4 | /drip/models.py | beec587cc63ff535831ebb3038532e3041054c3d | [] | no_license | pdc/caption | 25829912241224ec93697537900f6199fb14121b | 6677de9f0bf40d5f331da8a3fb1fb45c7404d704 | refs/heads/master | 2016-09-06T16:55:30.264130 | 2013-02-28T20:01:55 | 2013-02-28T20:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # -*-coding: UTF-8-*-
from django.db import models
from django.contrib.auth.models import User
from articles.models import Article
class DripAuthor(models.Model):
uid = models.IntegerField(editable=False, primary_key=True)
name = models.CharField(max_length=60, unique=True)
mail = models.EmailField(max_le... | [
"pdc@alleged.org.uk"
] | pdc@alleged.org.uk |
7964d51dadf0214da7cc67756d0945ff15a2053c | f30e9ca8c5777196bf8e56d82ecddb80418d21ba | /test_fena/v1_12/test_blocks.py | 7f1ca52716e4415e719a8986dcf5cb915ef2c9b7 | [
"MIT"
] | permissive | Aquafina-water-bottle/Fena | 029a1d6be64bdf1bd75d647d83e524821dfc7a3c | 00a2b1dbc6f8abd968c46c637d6ad30d5fcde919 | HEAD | 2018-10-22T13:36:24.838025 | 2018-07-19T18:16:17 | 2018-07-19T18:16:17 | 96,073,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,790 | py | from test_fena.test_common import test_block
def test_blocks():
# block states as simple values
test_block("stonebrick[0]", "minecraft:stonebrick 0")
test_block("stonebrick[1]", "minecraft:stonebrick 1")
test_block("stonebrick[-1]", "minecraft:stonebrick -1")
test_block("stonebrick[*]", "minecra... | [
"glowing.locker@gmail.com"
] | glowing.locker@gmail.com |
2015f26b503e42442766db3c50645d21d6ecccab | 2635edb96afa8117d4584a470061e447b79adc6e | /test/booknotes_test.py | 3682f6f5b88bb82f90d549216fa699601c455763 | [] | no_license | Mark-Seaman/Sensei-2018 | 673609731ecb5ebb782dab94b2cf3d7c22940424 | 06b02892cfe1bf1d25cb4224e86eb693c82b0f29 | refs/heads/master | 2022-02-18T19:14:10.343093 | 2022-01-15T20:06:21 | 2022-01-15T20:06:21 | 158,728,468 | 0 | 0 | null | 2022-01-16T21:06:09 | 2018-11-22T16:51:55 | HTML | UTF-8 | Python | false | false | 273 | py |
from os import environ
from os.path import join
from bin.shell import file_tree_list, shell, check_shell_lines
def booknotes_list_test():
return shell('x booknotes list')
def booknotes_lines_test():
return check_shell_lines('x booknotes content', 2700, 2800)
| [
"Mark.Seaman@imac.net"
] | Mark.Seaman@imac.net |
d6f031e3334ef1f7763c833a88e5aee446318a00 | c28beb6795c688c0eeaaa3a8bf66edc7e336f9b6 | /SkeinPyPy_NewUI/skeinforge_application/skeinforge_plugins/craft_plugins/cool.py | d8572d363f20cfab84c7572737a028d6804b28fe | [] | no_license | alx/SkeinPyPy | 80427f81853fb302a2f3636e3cd8a2375fd8eff4 | 5d4e8c7ed16d43bf0ede972f5b05a56199567826 | refs/heads/master | 2021-01-20T22:02:59.076693 | 2012-03-15T10:21:07 | 2012-03-15T10:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,101 | py | """
This page is in the table of contents.
Cool is a craft tool to cool the shape.
Cool works well with a stepper extruder, it does not work well with a DC motor extruder.
If enabled, before each layer that takes less then "Minimum Layer Time" to print the tool head will orbit around the printed area for 'Minimum Lay... | [
"daid303@gmail.com"
] | daid303@gmail.com |
8ab6f785b6f34c9e36b99994af2bb9339cfbb8db | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_mfa_device_request.py | e917b2945cce19343061600282e1586bd29f038b | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | # coding: utf-8
import re
import six
class ShowUserMfaDeviceRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d5476304cb3aab788f50565a72061d73b9a6a5ed | 5aaa7bdc5085987f925748e6b9afc694a3e9b908 | /y63p.py | f9fbeee2e07e974b15c4185a22fd4c85e17a50fb | [] | no_license | swarnanjali/pythonproject | e086af8e2b03f8dae9e155f958c99c4ebb722445 | 10932592b601c7b27ce7eebeeb59e3876ac8fafb | refs/heads/master | 2020-06-22T10:31:43.354583 | 2019-07-10T14:47:26 | 2019-07-10T14:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | t=input()
s=''
n=[]
for i in t:
if i not in n:
s+=i
n.append(i)
elif i in n:
break
print(len(n))
| [
"noreply@github.com"
] | swarnanjali.noreply@github.com |
cd4860ec2a8cda26dffcb523f58de782eb9b010c | 53181572c4b22df4b569a9901bcd5347a3459499 | /ceit_191116/py200111/output_2_format.py | 67686883b4583dec92ce8b20bb65683a5a040e91 | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
output formatting
string format()
positional arguments
"""
name1 = 'Obama'
name2 = 'Helen'
name3 = 'Marie'
name4 = "Cindy"
greeting1 = "morning!"
greeting2 = "afternoon!"
greeting3 = "evening!"
print("Good {1}, {0}! Long time no see".format(name3, greeting3))
print("Good {2}, {0} and {1} ! Long time no see".for... | [
"lada314@gmail.com"
] | lada314@gmail.com |
c17f393578dbf4d70079ed8f1bf7e03fa2ae8362 | 326e1a4dde10d287b8978ee6c7d1946934c1c0c1 | /main/helper/constants.py | b6d72fef11557b099c01a5e5e402d89a8405d198 | [] | no_license | volgoweb/tt | ee7a7021bf541f8dc544095c458c8a54c0956d58 | 7d2bc6b1a6ca3218f13f45ba3ccfda6482b3233c | HEAD | 2016-08-06T00:57:27.681694 | 2015-03-05T07:59:31 | 2015-03-05T07:59:31 | 24,623,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # -*- coding: utf-8 -*-
constants = {
# ответ при неудаче аякс запроса
'BAD_AJAX_RESPONSE' : 'ERROR',
}
| [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
730f11cd40ad83877318044f913b110a4afb45f1 | 5a75325ffdc14ca1eb08fa32225ba2b5b1347010 | /compose/django/cull_backups.py | a05a182ed41edc94c1e0e8a196199c79d301f5c9 | [
"MIT"
] | permissive | teamhero/hawc | cdc3f058aeef104c9305af67a54579f7f6362111 | 528f4ec605e8f406e0d147ba240a6a604f80a713 | refs/heads/master | 2021-05-23T06:09:01.679227 | 2019-03-11T14:30:39 | 2019-03-11T14:30:39 | 94,796,508 | 0 | 2 | NOASSERTION | 2020-04-03T23:47:21 | 2017-06-19T16:14:52 | Python | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/env python3
import os
from datetime import date, datetime
today = date.today()
print('Checking db backups for removal: {}'.format(today))
root = '/data/backups'
for fn in os.listdir(root):
if '.sql.gz' not in fn:
continue
d1 = datetime.strptime(fn, 'hawc-%Y-%m-%dT%H_%M.sql.gz').date()
... | [
"shapiromatron@gmail.com"
] | shapiromatron@gmail.com |
1359004d9f80c9154062c624edc743d5280a1316 | ecd27923efba50703a7bfbfa2ba37a8cc78560ea | /automatic_scraper/config/bid/liriqing/liaoning_huludao_ggzy_config.py | 6d9fe5faedd7b9732ff28010a2a073fb58b59ae8 | [] | no_license | yougecn/work | fb691b072a736731083777e489712dee199e6c75 | 1b58525e5ee8a3bdecca87fdee35a80e93d89856 | refs/heads/master | 2022-03-03T19:14:17.234929 | 2018-04-17T12:29:19 | 2018-04-17T12:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | # coding: utf-8
import time
import logging
import re
logger = logging.getLogger(__name__)
author = "liriqing"
web_title = u"葫芦岛市公共资源交易"
data_source = 'http://www.hldggzyjyzx.com.cn'
start_urls = [
#招标公告
"http://www.hldggzyjyzx.com.cn/Front/jyxx/071001/071001001/",
"http://www.hldggzyjyzx.com.cn/Front/jyxx... | [
"iwechen123@gmail.com"
] | iwechen123@gmail.com |
dfa29b530d8cfec3c71ef5b903b2669318bf08a0 | 8f7615603d4d923fd2cda41a2105b85b596ab4c5 | /leetcode/easy/605-Can_place_flowers.py | 0768c8acf6ccd14529365904c51987083054bec6 | [
"MIT"
] | permissive | shubhamoli/solutions | e7ec922047c16cfdc10070aa5b884a278b12d8c5 | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | refs/heads/master | 2021-01-05T04:13:35.302613 | 2020-06-27T18:28:18 | 2020-06-27T18:28:18 | 240,875,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """
Leetcode #605
"""
from typing import List
class Solution:
def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool:
if not flowerbed:
return False
# the idea here is check for 0 and if left and right of 0 are also 0
# then plant
N = len(flowerbed)
... | [
"oli.shubham@gmail.com"
] | oli.shubham@gmail.com |
2844cf4b13b35cbfb70349ea571ed31560c361e4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-881.py | 32893ae51d75e73a580c1f5cc1e4256b561b48b9 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,003 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
fce93dd6490570c79d10bd6acd01a91479394c8c | 7ae20e08e736e6df546cb5a80df2baf067686b52 | /tasks/sprint-5/Финал B - Remove Node/my_solution.py | 4cbe757f866c016c572fa865b916b06f74304bf0 | [] | no_license | Grey2k/yandex.praktikum-alghoritms | faf466374c932733cc1c5049a2df719d8fd33ac7 | 97b1b4858265b44266a33b834e1e9a1349739048 | refs/heads/master | 2023-08-28T02:46:16.502298 | 2021-09-28T19:08:35 | 2021-09-28T19:08:35 | 334,646,281 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | # from node import Node
def remove(root, key):
if root is None:
return root
node_to_remove, parent_of_node_to_remove = find_node(root, None, key)
# If noting to remove returns original root
if node_to_remove is None:
return root
# Removing found node
return remove_node(root,... | [
"grey2k@gmail.com"
] | grey2k@gmail.com |
9afc47d3742c9bd1433e0d1f78a7a3bc61f0e45d | 65b6e3dada91a0acb589d25358badb02c845b67f | /examples/ex_graph.py | dafeb6b4aa33fafca13629a3f11db2e1e0c8e08c | [
"BSD-3-Clause"
] | permissive | polestar37/src | 5b9bacb1e1e5118835d47c0f44fa5ad78fb0ad04 | 5dd54527356901b24b6ea3caff644a26aeb3c3c6 | refs/heads/master | 2021-01-15T22:39:44.730414 | 2017-06-22T23:06:15 | 2017-06-22T23:06:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | # -----------------------------------------------------------------------
# This is an example illustrating how to use the user graphing functionality
# in Python
# (c) Hex-Rays
#
from idaapi import *
class GraphCloser(action_handler_t):
def __init__(self, graph):
action_handler_t.__init__(self)
se... | [
"Arnaud Diederen arnaud@hex-rays.com"
] | Arnaud Diederen arnaud@hex-rays.com |
5441634d49305645e4e9a6c7fbaffd964e776814 | ad2251276aec376b480a31373165cf5b63a109c0 | /input/litdata/bouwens2017.py | bbd597895d8fcf211e9ab49763d96822106933fe | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | mirochaj/ares | 1b6bbe39c423762eb3051d65718394e8e839cd14 | f323300b56ae61fab56eda1e5179cfc991eaa74f | refs/heads/main | 2023-08-19T04:14:29.928747 | 2022-11-09T22:46:08 | 2022-11-09T22:46:08 | 249,536,610 | 16 | 13 | MIT | 2023-08-28T23:00:00 | 2020-03-23T20:25:55 | Python | UTF-8 | Python | false | false | 1,534 | py | """
Bouwens et al., 2017, ApJ, 843, 129
Table 4 and volume estimate from text.
"""
info = \
{
'reference': 'Bouwens et al., 2017, ApJ, 843, 129',
'data': 'Table 5',
'label': 'Bouwens+ (2017)'
}
import numpy as np
redshifts = [6.]
wavelength = 1600. # I think?
ULIM = -1e10
tmp_data = {}
tmp_data['lf'] = \
{
... | [
"mirochaj@gmail.com"
] | mirochaj@gmail.com |
88f232fac4f287de895c8cbfeeff0607dcc04412 | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/one_of_advanced_concepts_momentum_sources.py | e65a552e5e7b0f64ea0e3a14eb179f8092694ec8 | [
"MIT"
] | permissive | SimScaleGmbH/simscale-python-sdk | 4d9538d5efcadae718f12504fb2c7051bbe4b712 | 6fe410d676bf53df13c461cb0b3504278490a9bb | refs/heads/master | 2023-08-17T03:30:50.891887 | 2023-08-14T08:09:36 | 2023-08-14T08:09:36 | 331,949,105 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 9,735 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class OneOfAdvancedConceptsMomentumSources(object):
"""NOTE: This cla... | [
"simscale"
] | simscale |
e3b7c0253fc3545cc8614c084a9fd36fb3322e26 | e2a8c529c7e92108c11f01cbef168b5b9137521a | /ChromeGo/XX-Net/code/default/launcher/post_update.py | d05d8c507d1b2ec9887e5be04d71ed6fe7e89b0b | [
"BSD-2-Clause"
] | permissive | glxdegit/fanqiang | c28a514988eaaf6485c682bc346aa276e8b0c0b3 | 85691ef7a5ec99fbd81f8bdb09db7b60379e3c38 | refs/heads/master | 2022-07-07T06:41:24.681743 | 2020-05-16T02:25:22 | 2020-05-16T02:25:22 | 264,363,999 | 3 | 2 | null | 2020-05-16T05:11:06 | 2020-05-16T05:11:06 | null | UTF-8 | Python | false | false | 2,603 | py | import os
import sys
import re
import stat
import shutil
current_path = os.path.dirname(os.path.abspath(__file__))
root_path = os.path.abspath(os.path.join(current_path, os.pardir))
top_path = os.path.abspath(os.path.join(root_path, os.pardir, os.pardir))
from xlog import getLogger
xlog = getLogger("launch... | [
"banned.ebook@gmail.com"
] | banned.ebook@gmail.com |
45aab77aeb697bf1ad193b75e81fb1b11904a171 | 2995ab9f4d8e4292763f215709bd3da266c812d4 | /proyecto_ibis/ibis/users/migrations/0003_auto_20210611_1201.py | 696f1309a1b6218a8098ff72531e3d4b7f7bf16a | [] | no_license | mrinxx/Ibis | a45c84184c03c5983cfb67ba303235162f22abfb | 4435fad66bf8082eb9a3b41b0b2d415607cd207a | refs/heads/main | 2023-06-01T19:40:16.092648 | 2021-06-14T20:48:10 | 2021-06-14T20:48:10 | 376,138,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.2.4 on 2021-06-11 12:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_remove_guardian_image'),
]
operations = [
migrations.RemoveField(
model_name='alumn',
name='address',
... | [
"mrinxx5@gmail.com"
] | mrinxx5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.