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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc9d41c6b01997dc31c7ac7751f0fc9c93e3680e | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/tags/qecalc-0.2.1/qecalc/qetask/qeparser/outputs/ph.py | 4672bda6f2e61dcb456b0b700d932427fb1e7da8 | [] | no_license | danse-inelastic/AbInitio | 6f1dcdd26a8163fa3026883fb3c40f63d1105b0c | 401e8d5fa16b9d5ce42852b002bc2e4274afab84 | refs/heads/master | 2021-01-10T19:16:35.770411 | 2011-04-12T11:04:52 | 2011-04-12T11:04:52 | 34,972,670 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | #!/usr/bin/env python
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# QEcalc by DANSE Inelastic group
# Nikolay Markovskiy
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# File coded by:... | [
"markovskiy@gmail.com"
] | markovskiy@gmail.com |
12e68db6d979f2d66e44f13ea28882fd2a4c2fc5 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /amplify_write_f/resource_untag.py | 4a1cd5ed77d3d9cc39a5d50b8deac80e0817a7c9 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
070002fb259a78009bb2063b10a34b2e17b9b290 | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/rom/BlizKick.py | b775367fa04c14e914e17bde741d6188e1734948 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 2,319 | py | import struct
import amitools.binfmt.BinImage as BinImage
BKMODULE_ID = 0x707A4E75
BK_MODULE_ID = 0x4afc
BK_PATCH_ID = 0x4e71
class BlizKickModule(object):
def __init__(self, bin_img):
self.bin_img = bin_img
self.bk_type = self._find_type()
def _find_type(self):
segs = self.bin_img.get_segments()
... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
1a1e7f051541a533da94aedf899ce462bfaba4e4 | 0106018c092d7c6a3348d2fdf44dcbf64c0257cf | /webapp/migrations/0003_auto_20171012_1903.py | 755564d7d99df36794ab4c0de1e6bb79f534c908 | [] | no_license | UCLALibrary/latimes_index_app | 289fd82b1e9e796581996273948e3af05d682ead | 8d5d23dd3ffa348089ae612b2f462c2424e60a8d | refs/heads/master | 2021-05-05T06:46:22.612174 | 2018-01-24T20:50:59 | 2018-01-24T20:50:59 | 118,820,081 | 1 | 0 | null | 2018-01-24T20:51:00 | 2018-01-24T20:47:18 | HTML | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-12 19:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webapp', '0002_auto_20171012_1900'),
]
operations = [
migrations.AlterField... | [
"you@example.com"
] | you@example.com |
46d07de15a6e2bf376542cc5e5f8dcafa29fbf67 | cc0fc17ed959f71f00bf70fc3f4ccbcc4b42a78d | /locallibrary/tests/test_models.py | 7270cc9a7e18149be3182d8df7116e49b6f0340a | [] | no_license | sharmakajal0/django_projects | 813bb85234173e0edae602aaef564ac0ddbafee5 | 18386fb3f17fdbe8cf8f78b47c3a61164e6901ed | refs/heads/master | 2022-06-28T14:19:44.399594 | 2020-05-13T07:13:55 | 2020-05-13T07:13:55 | 263,414,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | from django.test import TestCase
from catalog.models import Author
from catalog.models import Book
# Create your tests here.
class AuthorModelTest(TestCase):
@classmethod
def setUpTestData(cls):
Author.objects.create(first_name='Big', last_name='Bob')
def test_first_name_label(self):
... | [
"sharma.kajal.sitm@gmail.com"
] | sharma.kajal.sitm@gmail.com |
c56305bc4e4f20061913ad089930727a60611051 | c1babab7b3fd9d5f0b32ff1104b30377866c3c14 | /src/covid19model/models/network.py | 88cb252ab678bc486cba218560b7382ac40e662d | [
"MIT"
] | permissive | JennaVergeynst/COVID19-Model | ad818261e7f837c443e1593f321d02c0ca687f6b | 9446147a71ead91a3c32c17680967f61b57c418a | refs/heads/master | 2023-03-23T22:38:31.430701 | 2020-09-07T07:31:09 | 2020-09-07T07:31:09 | 259,573,578 | 0 | 0 | MIT | 2020-04-28T08:13:42 | 2020-04-28T08:13:41 | null | UTF-8 | Python | false | false | 96,933 | py | # Original implementation by Ryan S. Mcgee can be found using the following link: https://github.com/ryansmcgee/seirsplus
# Copyright (c) 2020 by T.W. Alleman, D. Van Hauwermeiren, BIOMATH, Ghent University. All Rights Reserved.
import networkx as networkx
import numpy as numpy
import scipy as scipy
import scipy.integ... | [
"jorisvandenbossche@gmail.com"
] | jorisvandenbossche@gmail.com |
6ff3df487a1ef479e5efa79fca09b098e00164c7 | b3f6daa5d6c987eb8a61d5fe125bf2a98997e259 | /7kyu/Help Bob count letters and digits/index.py | af15993f0c3359ba35dacf270c42b14ab07abf48 | [] | no_license | krnets/codewars-practice | 53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce | 5f8e1cc1aebd900b9e5a276884419fc3e1ddef24 | refs/heads/master | 2022-12-20T19:33:43.337581 | 2022-12-16T05:32:39 | 2022-12-16T05:32:39 | 217,464,785 | 1 | 0 | null | 2020-07-20T08:36:31 | 2019-10-25T06:20:41 | JavaScript | UTF-8 | Python | false | false | 713 | py | # 7kyu - Help Bob count letters and digits
""" Bob needs you to create a method that can determine how many letters and digits are in a given string.
"hel2!lo" --> 6
"wicked .. !" --> 6
"!?..A" --> 1 """
# def count_letters_and_digits(s):
# return sum(1 for x in s if x.isalpha() or x.isdigit())
# def count_lett... | [
"cmantheo@gmail.com"
] | cmantheo@gmail.com |
02d4320a1a329c8649bb96b7bb7b0529fc8b5699 | b9526c8a20ccc9fb6a99800a3dd7ffbbe6e3d658 | /ServiceImplByDask/QualityProfilingService.py | 2bf87f4362cb0d50cac2d6bf22c614841488f647 | [] | no_license | MarkHe735/tgtks | 98777699587667246fa2c9778aaa5f6efffd4ec6 | b5a0b97772f006ab64580bc178a0e5d611fda8cb | refs/heads/master | 2020-12-27T22:27:24.007632 | 2020-02-09T00:14:59 | 2020-02-09T00:14:59 | 238,084,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from IService.DService import DService
import pandas as pd
class QualityProfilingService(DService):
"""
功能 对数据质量进行画像
输入 待质量画像的数据 数据帧类型 data
输出 数据质量画像 数据帧类型 dataQualityProfile
注释:输入为空表,输出为空表
"""
... | [
"markhe735@163.com"
] | markhe735@163.com |
12c732da487ccc6ee0488f09f321f93a61626145 | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /food_name/food_msj/food_msj/pipelines.py | 9cda9c6c29447db8c74e9d9b43dd517db0742173 | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
# import xlwt
# import numpy as np
# workbook = xlwt.Workbook()
# worksheet = workbook.add_sheet('msj', cell_overwrite_ok=True... | [
"noreply@github.com"
] | cekong.noreply@github.com |
d46baa6a76e6e05ae48ab17b58965df9701b3769 | a635b8d51016220a6d84808def431c27dde41b90 | /libcms/apps/robots_txt/urls.py | 70e7235f7ff3631751f7277b82cdaa138a31f16a | [] | no_license | isergey/chel | aab3ac98ae2a10258f7a5afce88c74f9e13a2d7f | d1a38bfe7ebba80d9c39ae3b0d54ebfd2965046c | refs/heads/master | 2023-07-07T02:13:41.363452 | 2023-06-26T10:25:14 | 2023-06-26T10:25:14 | 3,816,204 | 1 | 0 | null | 2023-03-31T14:52:31 | 2012-03-24T09:33:53 | JavaScript | UTF-8 | Python | false | false | 113 | py | from django.conf.urls import *
from . import views
urlpatterns = (
url(r'^$', views.index, name='index'),
)
| [
"dostovalov@gmail.com"
] | dostovalov@gmail.com |
ccecda641cc2efa9eab753f359143b190d73f027 | 788bdd9e443a571bc8262323425317015303cf1d | /p1520.py | 87ff09e68161f56cd4338c5179c64888114b3915 | [] | no_license | qyx2018/Xiaojiayu | e07dd5480babafb5f1940a2032ef30a92c7331f2 | e7decd439ed95b5a6d3cf195444cabfedf0eff76 | refs/heads/master | 2020-03-11T06:21:27.609708 | 2018-04-17T01:33:40 | 2018-04-17T01:33:40 | 129,827,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from tkinter import *
root = Tk()
sb = Scrollbar(root)
sb.pack(side = RIGHT, fill = Y)
lb = Listbox(root, yscrollcommand = sb.set)
for i in range(1000):
lb.insert(END, str(i))
lb.pack(side = LEFT, fill = BOTH)
sb.config(command = lb.yview)
mainloop() | [
"noreply@github.com"
] | qyx2018.noreply@github.com |
904c13cd137f0770f5740af0e7f8a11d19b564f7 | 5ef214719b700d82464685df5070f89aca65e662 | /caer/color/hls.py | 7f39296a24f86059df6fc56e3055c11778f44d21 | [
"MIT"
] | permissive | Srinivasaragavan/caer | 593b9ccac0e6aa1853340551821dc3e80e42b0f5 | 8d7befac146d764b841c3a1cc11ab630e91cd61a | refs/heads/master | 2023-01-29T23:34:49.189645 | 2020-12-13T11:19:48 | 2020-12-13T11:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | # _____ ______ _____
# / ____/ /\ | ____ | __ \
# | | / \ | |__ | |__) | Caer - Modern Computer Vision
# | | / /\ \ | __| | _ / Languages: Python, C, C++
# | |___ / ____ \ | |____ | | \ \ http://github.com/jasmcaus/caer
# \_____\/_/ \_ \______ |_| \_\
# Licensed ... | [
"jasmcaus@gmail.com"
] | jasmcaus@gmail.com |
67264812a82beac4efd07af1480c9031a3079d87 | e4480db09d0d949ad2f4e6ee9748366ee535a7cf | /Stream/urls.py | 7a731c776732f36c51328ef305f359e62c8280a8 | [] | no_license | Kaver160/microblog | 8a0b11d294b244a1b663f5a5dbf4f18e01e4f3fe | 1514b955f55e41d5d853b59fc51ac4783372ec72 | refs/heads/master | 2020-08-15T19:50:20.878895 | 2019-01-18T21:56:43 | 2019-01-18T21:56:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """Stream URL Configuration
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('auth/', include('djoser.urls.... | [
"socanime@gmail.com"
] | socanime@gmail.com |
efba186970ec3d159ed915478e65a93aaf8d7060 | 3da6b8a0c049a403374e787149d9523012a1f0fc | /Coder_Old/data-analysis/06-Python/6.11练习:销售额数据.py | 241da32ad1239ffc2c08e88b657c72be5eb3ccf8 | [] | no_license | AndersonHJB/PyCharm_Coder | d65250d943e84b523f022f65ef74b13e7c5bc348 | 32f2866f68cc3a391795247d6aba69a7156e6196 | refs/heads/master | 2022-07-25T11:43:58.057376 | 2021-08-03T02:50:01 | 2021-08-03T02:50:01 | 348,922,058 | 3 | 3 | null | 2021-09-05T02:20:10 | 2021-03-18T02:57:16 | Python | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: DeltaF
@software: pycharm
@file: 6.11练习:销售额数据.py
@desc:
'''
sales = [
["雅诗兰黛", "OLAY", "相宜本草", "Keith"],
[8731, 4209, 10239, 422],
[1099, 675, 516, 1349]
]
# 1.提取列表中的元素
sales_amount = sales[1]
sales_price = sales[2]
# 2.将列表中第2和第3个元素中的数据项分别相乘
list_targe... | [
"1432803776@qq.com"
] | 1432803776@qq.com |
78ce4063b0a348812765d7d7a601e70d958c959c | cf1a367ef65a4112ea3603ad1b1caca7674899fc | /macropodus/__init__.py | db158ea2204e831482361fb4af5e21af108b46f2 | [
"MIT"
] | permissive | xkyoung/Macropodus | f8dda2bc18891fda4c0317d370dfa393f1e918bc | 9de38c06d332bd26e704fd4afd8f44678de7f44f | refs/heads/master | 2022-10-03T12:43:32.839993 | 2020-06-03T12:25:35 | 2020-06-03T12:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2019/11/12 22:57
# @author : Mo
# @function: init of macropodus (tookit, keras of tensorflow)
# macropodus
from macropodus.tookit import calculate, chi2num, num2chi, Trie, roman2num, num2roman, pinyin, zh2han, han2zh
from macropodus.segment import cut_bidirecti... | [
"2714618994@qq.com"
] | 2714618994@qq.com |
a8c0208dee7773d02468ed46af96cda6a04c6fad | 864b907efa3cb20feb757153ad58e8b919e8a425 | /scripts/cmp_trees | 9486b25f6b1d65dec4ca8ed04a648b575881eecb | [] | no_license | annawoodard/ttH-TauRoast | 6d8a7efe6be269abd203c306b8d5f7a8d5980227 | e0113ae239913de147d70fd615d47f917fed13ef | refs/heads/master | 2021-01-21T00:36:45.315016 | 2016-09-13T10:08:52 | 2016-09-13T10:08:52 | 68,119,086 | 0 | 0 | null | 2016-09-13T15:01:45 | 2016-09-13T15:01:45 | null | UTF-8 | Python | false | false | 6,625 | #!/usr/bin/env python
from root_numpy import root2array
import argparse
import itertools
import matplotlib
import matplotlib.gridspec as gs
import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
matplotlib.rc('axes.formatter', limits=(-3, 4))
html = """
<hmtl>
<head>
<style>
tr:first-chi... | [
"matthias@sushinara.net"
] | matthias@sushinara.net | |
d8a500301e5fc1afbf0ccba5b9a8686f38b2ecb5 | 3fb12748e6d2f9257eebd79519821438d0dc6476 | /上课代码/Python基础第四天/04字符串常见操作.py | c2c61b3dd4925e7960d190a48d67e665fa07abd8 | [] | no_license | pscx142857/python | c53f3f03626b41709a5f02958751965e18c1a201 | 72b48bffbbbf082c84a717b576454a6676f66e7a | refs/heads/master | 2023-04-24T03:31:12.627432 | 2021-05-13T17:06:44 | 2021-05-13T17:06:44 | 362,584,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | # strip去除空格
name = " 两边有两个空格 "
str = name.strip()
print("--"+str+"--") #去除两边的空格,无论几个都可以去除
print("--"+name.rstrip()+"--") # 去除右边的空格
print("--"+name.lstrip()+"--") # 去除左边的空格
# split 分割
name = "我是第一个 我是第二个 我是第三个"
ls = name.split() # 默认按照空格进行分割
print(ls)
name = "我是第一个,我是第二个,我是第三个"
ls = name.split(",") # 按照指定的符号进行分割
prin... | [
"pscx142857@163.com"
] | pscx142857@163.com |
a16b992a10a86227cc0fcb9cab90b4bca48e0dd9 | f48f9798819b12669a8428f1dc0639e589fb1113 | /programming/environment/pisiyap/actions.py | 3d29becd4c2bb3366098d0342b6b7dc69d472358 | [] | no_license | vdemir/PiSiPackages-pardus-2011-devel | 781aac6caea2af4f9255770e5d9301e499299e28 | 7e1867a7f00ee9033c70cc92dc6700a50025430f | refs/heads/master | 2020-12-30T18:58:18.590419 | 2012-03-12T03:16:34 | 2012-03-12T03:16:34 | 51,609,831 | 1 | 0 | null | 2016-02-12T19:05:41 | 2016-02-12T19:05:40 | null | UTF-8 | Python | false | false | 427 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
def build():
pythonmodules.compile()
def install():
pythonmodules.install(... | [
"kaptan@pisipackages.org"
] | kaptan@pisipackages.org |
9ba328432e19b797ea1670ad1cf6b78cd53f924b | 894b290b4f4f47b5eb523c23efd7bd6110d91b2f | /54_Rentalshops58/Rentalshops58/Rentalshops58/settings.py | 495f742ae2d3253317eabfec7d4aaf00031a779a | [] | no_license | wliustc/SpiderS | 6650c00616d11239de8c045828bafdc5a299b1ce | 441f309c50d28c1a3917bed19321cd5cbe7c2861 | refs/heads/master | 2020-03-27T06:15:39.495785 | 2018-06-14T07:55:44 | 2018-06-14T07:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | # -*- coding: utf-8 -*-
BOT_NAME='Rentalshops58'
SPIDER_MODULES=['Rentalshops58.spiders']
NEWSPIDER_MODULE='Rentalshops58.spiders'
DOWNLOAD_HANDLERS={'s3': None}
USER_AGENT="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"
USER_AGENTS=[
"Mozilla/4.0 (compat... | [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
4acd96867b4ac2f6ea3cea78f399aeec35bf37cd | 44fd6df47b774b8354f901e9a6b7ea66a23fbc90 | /blog/blog/views.py | 57c46433821f64e0ad8486dc00c24122f5708b1a | [] | no_license | KimDoKy/Django-By-Example | 7bdb04ea40227d9b1219e903e3b5a9fcf25d13b9 | ebdb3239c24c9f15af94e544f948a18fe47db108 | refs/heads/master | 2022-12-23T10:58:25.710676 | 2018-12-19T16:02:04 | 2018-12-19T16:02:04 | 159,840,449 | 0 | 0 | null | 2022-11-22T03:09:32 | 2018-11-30T15:12:27 | Python | UTF-8 | Python | false | false | 3,813 | py | from django.shortcuts import render, get_object_or_404
from django.views.generic import ListView
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core.mail import send_mail
from django.db.models import Count
from taggit.models import Tag
from .models import Post, Comment
from .form... | [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
56f39c67f91966f95817ab8056a0afb2dbdd143e | b8ea631aae5d132c7b0236684d5f7c12d3c222be | /Library/Math/FloorSum.py | 2151ee6ce720d44548792f41230ff3d08f46ec86 | [] | no_license | Ryushi-tech/card3 | 68c429313142e58d4722a1cd5a4acc4ab39ca41f | 883636b2f518e38343a12816c5c641b60a87c098 | refs/heads/master | 2021-07-05T22:46:33.089945 | 2020-12-12T15:31:00 | 2020-12-12T15:31:00 | 209,176,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from numba import njit, i8
@njit((i8, i8, i8, i8), cache=True)
def floor_sum(n, m, a, b):
ans = 0
if a >= m:
ans += (n - 1) * n * (a // m) // 2
a %= m
if b >= m:
ans += n * (b // m)
b %= m
y_max = (a * n + b) // m
x_max = y_max * m - b
if y_max == 0:
ret... | [
"mryrys@gmail.com"
] | mryrys@gmail.com |
a5ade8ac21c8582419a771564fd1b82c3b990d92 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_99/386.py | 946de1643918fd5f49301bd638ab058fb675d938 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | def mul(list):
a = 1
for i in list:
a = a*i
return a
def main():
fi = open('A-small-attempt0.in')
fo = open('A-small-attempt0.out', 'w')
t = int(fi.readline())
for i in range(t):
ans = []
c, l = fi.readline().strip().split(' ')
p = fi.readline().strip().... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e8f681411d33caede0cfae9c8244afaaa97ca9b0 | f19f2b66ff47b4c270f65a2dce541b10b0486571 | /needlestack/management/commands/ns_drop_indexes.py | 9b13af5db5e814f2162f6e4a31bbe8b755554c10 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | niwinz/needlestack | df73cb629a1e97bce6415799dcf2b76c51472149 | 2f5db371ba24b1fa1b21957832c77176e5ef4454 | refs/heads/master | 2023-08-25T00:56:24.458734 | 2013-09-15T21:59:58 | 2013-09-15T21:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, unicode_literals
from django.core.management.base import BaseCommand, CommandError
from needlestack import commands
class Command(BaseCommand):
help = 'Sync all defined indexes with a current backend'
option_list = BaseCommand.o... | [
"niwi@niwi.be"
] | niwi@niwi.be |
3a658e470c2c821f3443103e2cd59c3450a0349f | 036c69a0c27cfdc0b0d9d6169caf027635b66325 | /dp/leetcode264.py | e7edde06e3f07d5b80f85051b1fe9b55cb03b6c8 | [] | no_license | Marco2018/leetcode | 19b6b2c19452babf0198f8705e0dd1f31c321017 | c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1 | refs/heads/master | 2020-03-23T17:34:09.637831 | 2020-01-18T11:00:36 | 2020-01-18T11:00:36 | 141,865,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | class Solution(object):
def nthUglyNumber(self, n):
"""
:type n: int
:rtype: int
"""
if n==0:
return
if n==1:
return 1
k=[0 for i in range(n)]
k[0]=1
t2,t3,t5=0,0,0
for i in range(1,n,1):
k[i]=min(k[t... | [
"513045631@qq.com"
] | 513045631@qq.com |
fdd3b313b1dc093decaa9a0dd8a7bb87b7b6851b | 12ff9a97a8039e5d225493872965eea10f26c9c7 | /authlib/base.py | b34dd216004ee0bf27ba71358238fcf28868f62f | [
"MIT"
] | permissive | fabiangermann/django-authlib | 6e3cf6e71b2bc0c017bea1e86e8f6982dbb9108d | 35b1c65dc668a03c949011abd6385229bcdb908e | refs/heads/master | 2020-03-25T02:38:39.760074 | 2018-08-02T13:55:24 | 2018-08-02T13:55:24 | 143,300,744 | 0 | 0 | null | 2018-08-02T13:47:07 | 2018-08-02T13:47:07 | null | UTF-8 | Python | false | false | 1,680 | py | from django.contrib.auth import models as auth_models
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class OAuthClient(object):
def __init__(self, request):
self._request = request
def get_authentication_url(self):
pass
... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
b154f28026b72b1f186d4b84708a66d16ab10eb8 | a079853d22a47a8c50bca2654e30c4fef3dd2d34 | /e_commerce/search/urls.py | e74080da4d28ff61fd8409a7d2ba59d628a8d254 | [] | no_license | toticavalcanti/django_ecommerce | 04299ac33de804f10270309d738e2c6dff61bf9c | 2ee45585d0724174e24ab5f4f52daa3b14fa473b | refs/heads/master | 2023-08-19T00:53:56.178570 | 2023-08-15T00:55:33 | 2023-08-15T00:55:33 | 160,266,119 | 25 | 11 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from django.urls import path
app_name = "search"
from .views import (
SearchProductView,
)
urlpatterns = [
path('', SearchProductView.as_view(), name='query'),
] | [
"toticavalcanti@hotmail.com"
] | toticavalcanti@hotmail.com |
1cacc21655e1646aeb26a972dd5e2bda1057f374 | 06ecc5630b8020a5637ab4b4f1f5582641a3d5ea | /environments/mujoco/rand_param_envs/gym/wrappers/__init__.py | 7f30ef1ac534d0fadc7d2a39fa0798503483b3bb | [
"MIT"
] | permissive | lmzintgraf/varibad | 33ef9925d35c2f1717bc6990b96030556b106e64 | 57e1795be142ace52d0c353097acf193d9067200 | refs/heads/master | 2023-04-05T06:04:23.027974 | 2022-08-02T11:23:41 | 2022-08-02T11:23:41 | 239,345,406 | 163 | 42 | NOASSERTION | 2023-03-15T23:16:27 | 2020-02-09T17:35:41 | Python | UTF-8 | Python | false | false | 250 | py | from environments.mujoco.rand_param_envs.gym.wrappers.frame_skipping import SkipWrapper
from environments.mujoco.rand_param_envs.gym.wrappers.monitoring import Monitor
from environments.mujoco.rand_param_envs.gym.wrappers.time_limit import TimeLimit
| [
"lmzintgraf@gmail.com"
] | lmzintgraf@gmail.com |
e47e36011b5511f7e2ec648972fdc737d2c942e3 | 212754abbe6c513901b6cf95852d9b1cf7077b6f | /enerpiweb/utils.py | 5f8a180783b5f7dd67d095a99eb58e47b9c33347 | [
"MIT"
] | permissive | d1aboilik/enerpi | 87f580bbccf51c49c453af8651e2e7f361416c4a | 155374f6c86248a63b141fc5a78d38cbc4b0ca45 | refs/heads/master | 2021-12-14T19:34:53.020601 | 2017-05-19T16:59:23 | 2017-05-19T16:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | # -*- coding: utf-8 -*-
"""
Flask filters for jinja2 rendering and flask error handlers
"""
import datetime as dt
from flask import request, render_template
from enerpi.base import log
from enerpiweb import app
@app.template_filter('color')
def filter_color(color):
"""
jinja2 template filter for color conver... | [
"eugenio.panadero@gmail.com"
] | eugenio.panadero@gmail.com |
2a1c3e600e8faf292345d7b476623bfc9082f8fc | 5b69e10d33661c13af67f803669e7f73f2b00deb | /models/save_composition_classifier.py | 27d41e6f558edf1b275e9db395ce94f29b6497c7 | [
"MIT"
] | permissive | mattmeehan/cr-composition | 4c03ecad8d1f09182e9d437b4f2ee712bfc4bd0c | 9ddbbdeb4543848d335e0c2ba87f6eec167c6672 | refs/heads/master | 2020-03-08T06:17:21.953118 | 2018-04-02T16:39:25 | 2018-04-02T16:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | #!/usr/bin/env python
from __future__ import division, print_function
import os
import argparse
import sklearn
from sklearn.externals import joblib
import warnings
import comptools as comp
warnings.filterwarnings("ignore", category=DeprecationWarning, module="sklearn")
if __name__ == '__main__':
description =... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
5ae52f8f36cd1d51058c52a5a313a075d5009756 | 128dac2cee9a1022fafcc15a8d4903af678d88ee | /004. Median of Two Sorted Arrays.py | 9d163e588176459962c02b5b5eaca7841ff74217 | [] | no_license | wangtaodd/LeetCodeSolutions | b998d9de408bc2e01b6bff11fcb315b453389bc8 | 364107c1a74b2fbe72cbf7076f38b9089f7017fb | refs/heads/master | 2021-09-11T19:21:10.223002 | 2018-04-11T11:18:32 | 2018-04-11T11:18:32 | 125,821,429 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | """
There are two sorted arrays nums1 and nums2 of size m and n respectively.
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Example 1:
nums1 = [1, 3]
nums2 = [2]
The median is 2.0
Example 2:
nums1 = [1, 2]
nums2 = [3, 4]
The median is (2 + 3)/2 = 2.5
"""
class Sol... | [
"wangtaodd@gmail.com"
] | wangtaodd@gmail.com |
7b1beb6749134cfaf07b8e2540270ebb80248a00 | a81c80cb9a50abf6a8d8f08f44803c61a778c7ef | /cpylog/warning_redirector.py | aae494e9da71c3073d97ac5717b4b2e4a4ca2e74 | [
"BSD-3-Clause"
] | permissive | SteveDoyle2/cpylog | a2e7374d934d9935e321920c8fbdb847c0fb243e | 99a3fc38cdcb1da7f3ca1299daf9af2453d2bad0 | refs/heads/main | 2022-09-21T08:37:23.634640 | 2022-08-24T06:08:11 | 2022-08-24T06:08:11 | 174,633,494 | 1 | 2 | BSD-3-Clause | 2022-08-24T06:08:12 | 2019-03-09T01:20:34 | Python | UTF-8 | Python | false | false | 1,493 | py | from __future__ import annotations
import os
import warnings
from typing import TYPE_CHECKING
if TYPE_CHECKING: # pragma: no cover
from cpylog import SimpleLogger
class WarningRedirector:
def __init__(self, log: SimpleLogger):
"""
Initialize ``WarningRedirector``, which takes standard python
... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
1f214429bc80867f37c301bad47b3ff4a83e8dd7 | 72706b8a63ccac91b4a748640fbbbf689953981b | /socket/groupChat/node_modules/uws/build/config.gypi | b8e5074a8186ea96c0692f797f0fa533c92d3831 | [
"Zlib"
] | permissive | Kevin0920/Mean- | cf322d5327f6d120b839bef3e0572ee46adb17ab | 1e126d971afe3c2d8bd269f428beafe05125290e | refs/heads/master | 2021-01-01T06:46:17.786922 | 2017-07-27T04:39:32 | 2017-07-27T04:39:32 | 97,504,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"kevinlingsike@gmail.com"
] | kevinlingsike@gmail.com |
5895d1ee1adffb97145ef7173624a6d5959d44e2 | 7dfd009355c67f3f5c466b328574710b87658fc6 | /awswrangler/__metadata__.py | aecf03829400a109d3ebc2a02cbc3b06d45fbf92 | [
"Apache-2.0"
] | permissive | mohamed-ben-chaliah/aws-data-wrangler | 1ea309667f4c047aba81fe07754f0a135418ac81 | 9c4a4d36db36af96ad16b43f087107f2adcaa99e | refs/heads/master | 2022-04-14T06:14:30.476424 | 2020-04-15T01:17:41 | 2020-04-15T01:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | """Metadata Module.
Source repository: https://github.com/awslabs/aws-data-wrangler
Documentation: https://aws-data-wrangler.readthedocs.io/
"""
__title__ = "awswrangler"
__description__ = "Pandas on AWS."
__version__ = "1.0.2"
__license__ = "Apache License 2.0"
| [
"igorborgest@gmail.com"
] | igorborgest@gmail.com |
f3bedaf1ad7cf2a640d85b2e0438cb62793e076a | 83b8e4770ed05fe4c73be7c4ad5bf044d55b710f | /business_unit/models.py | 382b3821be91c5844accc8288d95021819226b7d | [] | no_license | engrogerio/sgo_single | 026384ac551252fb4a8df420809266d7d4b49b82 | 3108a715c53dbd189f0c8b1fac58e80bf59db545 | refs/heads/master | 2021-03-30T17:36:34.037328 | 2018-01-17T14:23:09 | 2018-01-17T14:23:09 | 117,846,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py |
#_*_ coding: utf-8 _*_
from django.db import models
from django.contrib.auth.models import User
class BusinessUnit(models.Model):
# Business unit is a model to represent all sites envolved on transactions
cd_unit = models.CharField('Código do Estab.', max_length=5)
unit = models.CharField('Nome do Estab... | [
"eng.rogerio@gmail.com"
] | eng.rogerio@gmail.com |
9b6b602f07292ea3d5e9ca0c8312d4169c54aa8d | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipy/algorithms/statistics/formula/formulae.py | e1cfdba5bf408061cb67b3c0b77cdf4ca818a6c7 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 45,867 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
'''
Formula objects
===============
A formula is basically a sympy expression for the mean of something of
the form::
mean = sum([Beta(e)*e for e in expr])
Or, a linear combination of sympy expressio... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
03f19b5b56ff537ccba3f1fc41d273929910636b | 6810a482759afd585db7bb0b85fd0416f0450e6d | /Open Kattis/parking.py | 4c00034a1f2f3d792787cb617febe0f62f1329e2 | [] | no_license | BenRStutzman/kattis | 01b000ac2353c8b8000c6bddec3698f66b0198ef | 005720f853e7f531a264227d0d9aaa19d4d7cf1b | refs/heads/master | 2020-07-15T23:52:45.785021 | 2019-11-09T03:28:06 | 2019-11-09T03:28:06 | 205,675,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import sys
def main():
inp = [[int(num) for num in line.split()] for line in sys.stdin.read().splitlines()]
costs = [0] + [(i + 1) * inp[0][i] for i in range(3)]
#print(costs)
num_trucks = [0 for t in range(max(inp[1][1], inp[2][1], inp[3][1]))]
for truck_range in inp[1:4]:
for t in range(t... | [
"tysorx89@gmail.com"
] | tysorx89@gmail.com |
bbe25cfc78db71c9845fa7f03055b9ed957531d1 | ae2c9a5273f67415f2568c8998a5c57f0196d727 | /mirror-tools/setting.py | d4c7c42d1b68ba8cd2e0c59baa85cec710db72b1 | [] | no_license | shmilee/openwrt-wndr3700v4 | 12693081bae05a203cde7f728d1d1beb39dc155e | a757dfa485653affe20807f97b8cfacd77b0a596 | refs/heads/master | 2022-01-15T04:03:38.928255 | 2022-01-08T10:34:53 | 2022-01-08T10:34:53 | 74,760,934 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2018 shmilee
# 1. set download site, mirror
# URL = 'http://downloads.openwrt.org'
URL = 'https://openwrt.proxy.ustclug.org'
# 2. set processes number, 2-50
PSIZE = 10
# 3. arguments that ``requests.request`` takes
REQUESTS_KWARGS = dict(
stream=True,
timeout=min(PSIZE... | [
"shmilee.zju@gmail.com"
] | shmilee.zju@gmail.com |
c35d8ddf22f90b0119aec631b1201439336dc211 | 3c6b064bc1d98038ca03a73f4ce0053f4d0b1f71 | /main.py | a98a1814ab87e979ed268e48cd07f2331675258b | [
"MIT"
] | permissive | codelieche/scrapyProject | 83ba0d828410ab6b25cae569254597d6fbb65d91 | 9c51d55ac3b6faaea8d29473ddf18d8c122daad2 | refs/heads/master | 2022-01-10T09:15:12.771127 | 2017-12-04T08:11:25 | 2017-12-04T08:11:25 | 112,553,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # -*- coding:utf-8 -*-
"""
运行scrapy的脚本
主要是为了用于调试
"""
from scrapy.cmdline import execute
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# 1. codelie的相关爬虫
# 1-1:使用chrome的中间件打开网页,获取page_soource
# execute(["scrapy", "crawl", "codelieche_chrome"])
# 1-2: 使用chrome的中间件打开网页,同时不加载图片
execut... | [
"codelieche@gmail.com"
] | codelieche@gmail.com |
04ce4323b2fe8ef6269e2a35ce1c76c7ad1076fd | 91e8b3680f2c62a0f463fd649a047b2d62658745 | /liaison/distributed/learner_for_test.py | 185d1bfd15076ec25cf19ddcba22227eacb066ea | [] | no_license | aravic/liaison | cf726133568de0de7e00f082ceb15030d58ffba6 | 21a497bd67d82aab27cb883386601db0a062c9d1 | refs/heads/master | 2022-09-15T11:38:18.597782 | 2020-06-05T04:41:30 | 2020-06-05T04:41:30 | 206,321,282 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | import copy
import logging
import os
import uuid
from queue import Queue
from threading import Thread
import liaison.utils as U
import tensorflow as tf
from liaison.distributed import Trajectory
from liaison.session.tracker import PeriodicTracker
from liaison.utils import ConfigDict, logging
from tensorflow.contrib.fr... | [
"addanki@mit.edu"
] | addanki@mit.edu |
456e23b2f8d0dc0f03790d9aae7066a58957885c | 60f5b2e7916bfb2686f5e0da2a5d9031a097ce05 | /test/hlt/pytest/python/com/huawei/iotplatform/client/dto/ClientInfo.py | c74a560474a0d7ffdbf4364b680b6e83434e8e6c | [
"BSD-3-Clause"
] | permissive | SuYai/LiteOS_Lab | 65f1a73026331f2a78567f07955e43ee82df265f | 3c9a579cd17d730e21814efc15076351a365e5f8 | refs/heads/iot_link | 2020-11-28T18:39:02.989946 | 2020-03-02T02:09:51 | 2020-03-02T02:09:51 | 229,894,455 | 1 | 0 | BSD-3-Clause | 2020-03-05T07:49:17 | 2019-12-24T07:32:24 | C | UTF-8 | Python | false | false | 685 | py | class ClientInfo(object):
def __init__(self):
self.platformIp = None
self.platformPort = None
self.appId = None
self.secret = None
def getPlatformIp(self):
return self.platformIp
def setPlatformIp(self, platformIp):
self.platformIp = platformIp
def get... | [
"xu_liqun@hoperun.com"
] | xu_liqun@hoperun.com |
d6ac34462eaf80cc317f077b9d980ee864349c66 | 44bbfe1c9a7f16e632cdd27c2de058033b33ea6d | /mayan/apps/document_indexing/forms.py | c44915b2f02e22f09c6ff2eade84c56245259c31 | [
"Apache-2.0",
"ISC",
"MIT"
] | permissive | lxny2004/open-paperless | 34025c3e8ac7b4236b0d8fc5ca27fc11d50869bc | a8b45f8f0ee5d7a1b9afca5291c6bfaae3db8280 | refs/heads/master | 2020-04-27T04:46:25.992405 | 2019-03-06T03:30:15 | 2019-03-06T03:30:15 | 174,064,366 | 0 | 0 | NOASSERTION | 2019-03-06T03:29:20 | 2019-03-06T03:29:20 | null | UTF-8 | Python | false | false | 1,416 | py | from __future__ import absolute_import, unicode_literals
from django import forms
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from common.classes import ModelAttribute
from documents.models import Document
from .models import Index, IndexTemplateNode
class I... | [
"littlezhoubear@gmail.com"
] | littlezhoubear@gmail.com |
8f41241b4245cb6ebb40450b96790784e11a0975 | f7b1e7ea069908eece4821a8fffc87f148940976 | /rlflow/vector/constructors.py | 608da9738dca552e1efb4df650ac180e423cfa99 | [] | no_license | benblack769/rlflow | 5451fbc53000c7ee2bd8ec571df876275209d9dd | 4d504b91556f23c522915f3d6390ea5a3a6169a7 | refs/heads/master | 2023-03-07T18:24:04.957426 | 2021-02-23T00:12:52 | 2021-02-23T00:12:52 | 271,938,665 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | from .concat_vec_env import ConcatVecEnv
from .multiproc_vec import ProcConcatVec
class call_wrap:
def __init__(self, fn, data):
self.fn = fn
self.data = data
def __call__(self, *args):
return self.fn(self.data)
def MakeCPUAsyncConstructor(max_num_cpus):
if max_num_cpus == 0:
... | [
"weepingwillowben@gmail.com"
] | weepingwillowben@gmail.com |
4ef863750fd650bed47ebbd1d5daa430f0eaa9cc | db93a7b45b6d1c38267d72f0ea59371d880059a1 | /tw2facemelttg21/model/bloglog.py | a820bb9800282ec05d87c1948248925af3704eb6 | [] | no_license | ralphbean/tw2-facemelt-tg2.1 | 68093d91572be4a2d82fd78b8573f8a9bdfe22b4 | 549d3cf7c761374ed5b38d30b00a5e22eb6ddf71 | refs/heads/master | 2016-09-05T18:05:46.653249 | 2011-04-30T07:09:51 | 2011-04-30T07:09:51 | 1,683,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # -*- coding: utf-8 -*-
""" Logs of Bob Loblaw's Law Blog """
from sqlalchemy import *
from sqlalchemy.orm import mapper, relation
from sqlalchemy import Table, ForeignKey, Column
from sqlalchemy.types import Integer, Unicode
#from sqlalchemy.orm import relation, backref
from datetime import datetime
from tw2facemel... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
6f59134ed0e64bb32e20641fae277d1bb987957c | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /instagram_api/response/model/image_versions2.py | 2f9394f206f245bd6e08a838c41a8e6a08c2adad | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from ..mapper import PropertyMapper, ApiInterfaceBase
from ..mapper.types import Timestamp, AnyType
from .image_candidate import ImageCandidate
__all__ = ['ImageVersions2', 'ImageVersions2Interface']
class ImageVersions2Interface(ApiInterfaceBase):
candidates: [ImageCandidate]
trace_token: AnyType
class I... | [
"root@proscript.ru"
] | root@proscript.ru |
8cbb2ae9f4d929584455716730a3712486e92ba8 | 9d29861e44389e02762e6eb0457c6a415a54e26c | /pyrax/cloudnetworks.py | 43713d6255e362e4afa05275c492f53362567770 | [
"MIT"
] | permissive | itsmemattchung/pyrax | e787d67f8a79036834575f951f8c9e81d64d8b8f | e8eff127a5c9b6e64a9a42593d5e889c3c03f81d | refs/heads/master | 2021-01-18T10:14:31.752469 | 2015-05-16T16:44:35 | 2015-05-16T16:44:35 | 21,360,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,036 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2013 Rackspace US, 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.a... | [
"ed@leafe.com"
] | ed@leafe.com |
f1c0f35fae129830dfcfd1c88e2e3298e617fb5c | 97aa1181a8305fab0cfc635954c92880460ba189 | /caffe2/python/hypothesis_test_util.py | 9f781f31ec2a34aa32ea3297042d2da66535c389 | [
"BSD-2-Clause"
] | permissive | zhujiang73/pytorch_mingw | 64973a4ef29cc10b96e5d3f8d294ad2a721ccacb | b0134a0acc937f875b7c4b5f3cef6529711ad336 | refs/heads/master | 2022-11-05T12:10:59.045925 | 2020-08-22T12:10:32 | 2020-08-22T12:10:32 | 123,688,924 | 8 | 4 | NOASSERTION | 2022-10-17T12:30:52 | 2018-03-03T12:15:16 | C++ | UTF-8 | Python | false | false | 26,790 | py | ## @package hypothesis_test_util
# Module caffe2.python.hypothesis_test_util
"""
The Hypothesis library uses *property-based testing* to check
invariants about the code under test under a variety of random inputs.
The key idea here is to express properties of the code under test
(e.g. that it passes a gradient check,... | [
"zhujiangmail@hotmail.com"
] | zhujiangmail@hotmail.com |
e0724bf922fa0a4f3d07873e4c17f9e177696819 | 9c1b2dbf57ab12eaf3dfa4bc9b525248dbb10176 | /setup.py | 1a7b5cde882ba442700cae1367c9c693ebeed3a2 | [
"Apache-2.0"
] | permissive | Annakan/RxPY | 9fc25e3ed66b60079d118e9e33e4fbc5aae52e53 | f1584fd4c49d37630732a75212d42604cd5a0362 | refs/heads/master | 2021-01-15T09:23:44.804316 | 2015-05-17T08:45:34 | 2015-05-17T08:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='Rx',
version='1.2.0',
description='Reactive Extensions (Rx) for Python',
long_description=("is a library for composing asynchronous and "
... | [
"dag@brattli.net"
] | dag@brattli.net |
3c3c605d9e0c063634be60c97c002d0c2a4fdd54 | 9ccda1194d47312ad0d6615a47795a1b9faccd62 | /nicoletbank/items.py | 54441b5fe99785d22e1f0abe42ad319b62919654 | [] | no_license | hristo-grudev/nicoletbank | 4e26bd1b302fc16bc1402b590ee86a0a20c73bc1 | 8cb081789f3dbcc4e869f284a15752b506296f03 | refs/heads/main | 2023-03-24T16:51:58.237633 | 2021-03-25T07:51:10 | 2021-03-25T07:51:10 | 351,351,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import scrapy
class NicoletbankItem(scrapy.Item):
title = scrapy.Field()
description = scrapy.Field()
date = scrapy.Field()
| [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
57bcd1578353fd9b2f9db778d1810cd96fc2e16e | da687718aa8ce62974090af63d25e057262e9dfe | /cap08-numeros/extras/1_numbers.py | 904a8a050962569958ab4265178beea065c40fcd | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #!/usr/bin/env python3
print(3, -1, 3.14159, -2.8) # imprimindo numeros simples
# identificando os tipos de numeros, usando a funcao 'type'
print(type(3)) # int
print(type(-1)) # int
print(type(3.14159)) # float
print(type(-2.8)) # float
print(type(301j)) # complex
# fazendo a conversao entre os tipos
print(int... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
ce48a878eb115e83e603067c6028d9fc849e3a37 | bf3a266294c62cafc9508f7d85102c1d318c9bde | /project/spiders/pro8/pro8/middlewares.py | e3b1dfe13c842616ba3b5725ee009a678acf6b9e | [] | no_license | stonegithubs/spiders | 417442c94d2531b4b7e58990c5611de8dd9c1789 | eeafe77fc8ab816e946522e99f02ba53b5350484 | refs/heads/master | 2020-07-15T09:17:03.305808 | 2019-08-30T08:40:30 | 2019-08-30T08:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class Pro8SpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"31926990@qq.com"
] | 31926990@qq.com |
d295363fd5e1152e3c45c8540e7406f80748a9af | fd7406dcf3f898bd5b82a0ee4306e02c1d1b4970 | /backup/testcase/search_testcase/testWebBranchOrderSearch.py | 44fe3aab4b52c891fc50e5a875a1bd6a049edab2 | [] | no_license | 18786262315/zidonghuaapi | e5f979fc599f8bca08e7e5cfbd58943fe36b75d3 | 28145f13231e9df76a33894b82c0e552afb485fc | refs/heads/master | 2020-03-26T01:48:13.018859 | 2018-08-11T12:32:51 | 2018-08-11T12:32:51 | 144,383,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # -*- coding: utf8 -*-
import unittest
from AthenaTest.common.loadDatas import *
import sys
import importlib
importlib.reload(sys)
class TestWebBranchOrderSearch(unittest.TestCase):
def setUp(self):
self.datafile = '../../datacase/search_datacase/web_branch_order_search.xls'
def test_orderAppointSea... | [
"843092012@qq.com"
] | 843092012@qq.com |
726f4b1eafa84d1ecd7544743499d506a9adfa9c | f62ff90d7850af458d8f12386fc9ee9134dbe7c1 | /Plots/Paperplots/Model_7/Exchange_Current.py | d9322159ecc480e8fcefee3b975f46ef16814401 | [] | no_license | AlexSchmid22191/EIS_R_Sim | 51b431f078cb455fc38637c192436c0523449565 | 851b061e60811e1e58a5b2fd4e393e529c3f86ac | refs/heads/master | 2023-06-27T17:40:59.177270 | 2021-07-22T11:50:27 | 2021-07-22T11:50:27 | 380,768,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from matplotlib.pyplot import subplots, show
from matplotlib.style import use
from numpy import load, log10
from mpltools.annotation import slope_marker
from matplotlib.ticker import LogLocator, NullFormatter
use('../Paper.mplstyle')
data = load('../../../Currents_Resistances_Model_7/Current_Data_Model_7.npy')
fig, ... | [
"Alex.Schmid91@gmail.com"
] | Alex.Schmid91@gmail.com |
ba000ad3f5d9aacd7427c5066a649d2ee74d8fc1 | 7e266469a84e06e3551a7ba0dca25e894f2f3111 | /Bloomy_Core-LeadToQuotation_TestCase1-2021_06_30_10_46/Bloomy_Core_LeadToQuotation_TestCase1/subtests/test_logout.py | b8a6c4c3df61986b9e58b22d2dd481c633c423da | [] | no_license | Bloomstack-Test-Automation/Bloomstack-Test-Automation | 43862b6761951effee5f17d7428f5be0c34b4499 | 2450df2018715cf6f0ec080ca1dc0751a230d969 | refs/heads/main | 2023-06-06T10:52:57.695175 | 2021-06-30T11:33:30 | 2021-06-30T11:33:30 | 368,438,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | from selenium.webdriver.common.by import By
from src.testproject.decorator import report_assertion_errors
"""
This pytest test was automatically generated by TestProject
Project: Bloomy_Core
Package: TestProject.Generated.Tests.BloomyCore
Test: Logout
Generated by: Meenal Kardale (meenal.kardale@extra... | [
"noreply@github.com"
] | Bloomstack-Test-Automation.noreply@github.com |
56026e1c69f497969c0342fa0e69ed8a2476846b | 9806c35c4acfa16e56535970dbe5f84271b67664 | /eod_aps/job/reset_mktdtctr_cfg_file_job.py | 39e0df5630b45268a2aa1f6788b9bc5b4d11a026 | [] | no_license | dsjmhjs/python_eod | a8e3513c77a37cfebf2f21a55bfb19449b8a013b | 48207dd15e7079ef5fd2cf999367c429087197ea | refs/heads/master | 2020-06-25T23:22:30.874309 | 2019-07-29T10:26:02 | 2019-07-29T10:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,300 | py | # -*- coding: utf-8 -*-
# 重新生成行情中心配置文件
import os
from itertools import islice
from eod_aps.model.schema_common import Instrument
from eod_aps.job.upload_to_server_job import upload_mkt_cfg_file_job
from eod_aps.job import *
group_number = 3
cfg_file_title = 'TICKER,EXCHANGE_ID,TYPE_ID,'
mg1_file_title = 'TICKER,EXCHAN... | [
"123456789"
] | 123456789 |
9a0bae71e37986b27e3262b41651be7a640faae2 | cadf64df978069aff38052fdd66a604a7b01ce3a | /fenix-stability.py | 26732cd983750c2580fceadc920078544a2de9d2 | [] | no_license | st3fan/mozilla-mobile-scripts | bff1ea664259288f3a445a0b34e8ee1a784c0ae5 | 9c86f08810c98abbd46aaa9914fb06b65bdb1632 | refs/heads/master | 2023-03-06T23:21:57.395714 | 2021-02-16T18:06:52 | 2021-02-16T18:06:52 | 294,152,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | #!/usr/bin/env python3
import os
import requests
if __name__ == "__main__":
# Collect available releases
r = requests.get("https://product-details.mozilla.org/1.0/mobile_android.json")
r.raise_for_status()
products = r.json()
versions = ""
for key, release in products['releases'].items():... | [
"stefan@arentz.ca"
] | stefan@arentz.ca |
d8afc93f65570aae02dfe524c260d227a7df4a1b | 8bf8ab29cb25de00c6a799d1f58610528b810592 | /SW 문제해결 기본/1218. [SW 문제해결 기본] 4일차 - 괄호 짝짓기/main.py | b9e16bb11edb36995fd8b35683872f7918d11335 | [] | no_license | mgh3326/sw_expert_academy_algorithm | fa93fb68862cabeba8f9f5fff00a87f26a014afc | 97cbd2a1845e42f142d189e9121c3cd5822fc8d8 | refs/heads/master | 2020-07-03T21:40:29.948233 | 2019-11-23T07:26:15 | 2019-11-23T07:26:15 | 202,058,567 | 0 | 0 | null | 2019-11-30T06:11:34 | 2019-08-13T03:40:18 | Python | UTF-8 | Python | false | false | 709 | py | my_dict = {"}": "{",
")": "(",
"]": "[",
">": "<",
}
test_case_num = 10
for test_case_index in range(10):
str_length = int(input())
input_str = input()
str_list = list(input_str)
temp_list = []
current_count = 1
for _str in str_list:
if _str ==... | [
"mgh3326@naver.com"
] | mgh3326@naver.com |
764d1f8cac22a6c413d0d829dd84bc532c1e0011 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/webdriver/tests/bidi/browsing_context/close/close.py | a263011137307b86abebf55543dc2640dc466d50 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 617 | py | import pytest
pytestmark = pytest.mark.asyncio
@pytest.mark.parametrize("type_hint", ["window", "tab"])
async def test_top_level_context(bidi_session, type_hint):
top_level_context = await bidi_session.browsing_context.create(
type_hint=type_hint
)
contexts = await bidi_session.browsing_context.... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
c65eef5ac9c6656a3b2f9b145f34c0e20e16fd3d | 11301b586c69aa6c9cbbaa79b51c72e25e9e7820 | /tasks/ner.py | 07fb7e23f667b482a36831cdd7b936badb326de9 | [] | no_license | sduchh/nlp_research | 1d1a321280cab678f9d0b95b5aa86697f89d3811 | 9237d2b8ba85254016bd0386e819666f73286d58 | refs/heads/master | 2020-05-24T15:08:13.300994 | 2019-05-17T10:43:09 | 2019-05-17T10:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,849 | py | import sys,os
import yaml
import time
import copy
import logging
import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell
from tensorflow.contrib.crf import crf_log_likelihood
from tensorflow.contrib.crf import viterbi_decode
from tensorflow.python.platform import gfile
from sklearn.model_selection import tr... | [
"zfz@zfzdeMacBook-Pro.local"
] | zfz@zfzdeMacBook-Pro.local |
c5fef9c7c8fb5ebca501252a603d4eec48515f13 | 27f2fef4dcb7221062d0777d646b6fae92ea9ddb | /eamod_api/serializers.py | 27cd48c75e7452e3606d1ad3b1e1d923acd89e0e | [
"MIT"
] | permissive | kubixservice/ragnarok | 6036fa9460b006efce8642fa807b07cc34c04b7c | dd70b9cd6e8047cc672b673209cd7dcf5c7e42e0 | refs/heads/master | 2023-08-18T14:05:46.614770 | 2020-06-06T23:54:22 | 2020-06-06T23:54:22 | 144,258,841 | 6 | 5 | MIT | 2023-09-05T14:11:31 | 2018-08-10T08:24:07 | Python | UTF-8 | Python | false | false | 2,784 | py | from rest_framework import serializers
from . import models
from main_api import serializers as main_serializers
class CharWoeSkillCountSerializer(serializers.ModelSerializer):
class Meta:
model = models.SkillCount
fields = ('char_id', 'skill_id', 'count', 'woe_date')
class CharBattlegroundsSk... | [
"inspectahdeck227@gmail.com"
] | inspectahdeck227@gmail.com |
dc6629cca60c18469591db4799a17dcdf4a39be6 | 2ea252c5bb71261a04840d76820474f3c153a054 | /apps/note/mixins.py | 4a793351e1b60d9f9d0f29cfbdc76b1d96864a81 | [] | no_license | artrey/notes | c79cdec4a1c9a4d47923d491d55dce73dc603db7 | 27acdf05abef12d59b2157b0c94581565539346e | refs/heads/master | 2023-06-04T01:34:35.682521 | 2021-06-26T21:21:52 | 2021-06-26T21:21:52 | 352,204,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django.contrib.auth.mixins import UserPassesTestMixin
class OwnerOrAdminRequiredMixin(UserPassesTestMixin):
def test_func(self) -> bool:
user = self.request.user
note = self.get_object()
return user.is_superuser or user.is_staff or user == note.author
class OwnerOrAdminOrPublicRequi... | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
8c7cf59b20f303da3ae24a6c3871c45f471dd035 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1720.py | cd2dcd8f9a113c7fb1618b8d84d5bcc63e05fe72 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import re
def lawn(f):
with open(f,'r') as ifile:
case = int(ifile.readline())
rlt = []
for i in range(case):
line = ifile.readline()
n,m = [z for z in map(int,line.split())]
klist = []
for j in range(n):
line = ifile.readline... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f6390d96be759f9ecbfb71a96b8e118bd8bb383a | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/formatter/multilineIfConditionInParenthesesHangingIndent.py | a09103cdfa5b3b7c83fa1d4966a5282538def9a6 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 132 | py | if (
1 < 2
and 3 == 3
and 4 != 6
):
print('True')
if (
1 < 2 and
3 == 3 and
4 != 6
):
print('True') | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
c10341048ce44809f22c3b1dcee0fd3a0f36d838 | cb115678833e5009006e724f03e3baf56806b344 | /python-3-mundo-2/ex066.py | 7002e199492e32e3b5e43a2fc5a1dc213bf87317 | [] | no_license | BrenoNovais/curso-em-video-python | 0c619ce9072b3bad6414f3f1b00df19c9604d919 | 77da041fc6058281f7b56e53117f24134148cc0e | refs/heads/master | 2022-12-02T10:57:56.054739 | 2020-08-15T00:45:38 | 2020-08-15T00:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | soma = cont = 0
while True:
num = int(input('Digite numeros: '))
if num == 999: break
soma += num
cont += 1
print(f'Você digitou {cont} números, a somas deles é: {soma}')
| [
"breno.novais@hotmail.com"
] | breno.novais@hotmail.com |
8d1cf0e70f9e044f070bf5a6676f87dc2a91d2ad | ec50df3cc084e08fe6e007f85197d77f9d869819 | /matrix.py | 7d83408217fa99d906e987647f417a8e7d63151b | [] | no_license | strstrstr97/3d-fixes | 32fcfb93d9f2a882b41914f6c9ed1b3bc5948e4b | bada7c5c32bc4086c56080ecc2fa2f8f8fc329a0 | refs/heads/master | 2021-07-02T22:50:11.870784 | 2017-09-23T05:41:43 | 2017-09-23T05:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,789 | py | #!/usr/bin/env python3
import numpy as np
from math import *
import pyasm
# Suppress scientific notation of small floating point values to make matrices
# easier to read:
np.set_printoptions(suppress=True)
def translate(x, y, z, verbose=False):
if verbose:
print('''TRANSLATE: %-8f %-8f %-8f''' % (x,... | [
"darkstarsword@gmail.com"
] | darkstarsword@gmail.com |
1baba573bf5f82765710ca2c470a19e362a4eb27 | 1bfb4df83565da98e0b7a2d25915370732b94b6a | /atcoder/abc175/a.py | 30e2b519f24d101c5a94a4d2ce85f53ee270ff3f | [
"MIT"
] | permissive | sugitanishi/competitive-programming | e8067090fc5a2a519ef091496d78d3154be98a2b | 51af65fdce514ece12f8afbf142b809d63eefb5d | refs/heads/main | 2023-08-11T02:48:38.404901 | 2021-10-14T14:57:21 | 2021-10-14T14:57:21 | 324,516,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | s=input()
print(0 if 'R' not in s else 3 if 'RRR' in s else 2 if 'RR' in s else 1) | [
"keita.abi.114@gmail.com"
] | keita.abi.114@gmail.com |
c8973b16f295533573c8010a42c52adce6d24a56 | a4d250ce393012dc251cb955096cb8f284c57439 | /proto/herostar_pb2.py | 067710bcd7a5597b8371dc1127a55bbb40f2ab65 | [] | no_license | daxingyou/test-2 | b02af312784d06a46e29acd42e756e92afee6ed9 | a16c872ba781855a8c891eff41e8e651cd565ebf | refs/heads/master | 2023-03-16T04:21:23.704482 | 2018-09-28T00:51:23 | 2018-09-28T00:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,108 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: herostar.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refl... | [
"luhongwei1@ice-time.cn"
] | luhongwei1@ice-time.cn |
a83a631bf54aa13dc35ab6d2fcf659874e43da94 | 729ac731cc69ffb331e1ad86ec09946f6e210da3 | /Global_Variable.py | 777c7a95e1135e7e8f40d5705ea680cf33f984ca | [] | no_license | sadiqulislam/Python-Practice-All- | 1fb31095653137ea954ddf3d7173261b8e86a872 | f4a0305c0c4363ada6459bf55ee3ef267dcea53f | refs/heads/master | 2020-07-26T12:39:50.437859 | 2020-02-10T15:41:12 | 2020-02-10T15:41:12 | 208,645,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | restaurent_name = "Chillox"
restaurent_owner = "Shishir"
def restaurent_details():
print("The Restaurent Name Is :",restaurent_name)
print("Owner Is: ",restaurent_owner)
restaurent_details() | [
"sishishir2015@gmail.com"
] | sishishir2015@gmail.com |
4d743dab238269cc2b3074e870f7e4de4e6ecbe0 | 6298b86479fa0c32a7627587d02ee94f2119b634 | /rapidsmsrw1000/apps/ubuzima/handlers/red.py | 76ed7130f46771b005101a1212a413f6e5fa6580 | [] | no_license | timkaboya/rapidsmsrw1000 | 99b2b158c3a73087b232b912b69f526f0b1cfd4e | 54655ea1c7a8f5399ff3c1276fcfbd0a6d391c19 | refs/heads/master | 2021-01-18T12:12:13.202580 | 2013-12-06T14:51:47 | 2013-12-06T14:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
##DJANGO LIBRARY
from django.utils.translation import ugettext as _
from django.utils.translation import activate, get_language
from decimal import *
from exceptions import Exception
import traceback
from datetime import *
from time import *
from django.db.models imp... | [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
593d7361918845b1bd5268e62c1026965706a78a | 9d5636d6a93a10412594b67b76d5334e421eda91 | /madminer/analysis.py | 14dc6c94b328f7dd719fadf9df3635509c1a9e3e | [
"MIT"
] | permissive | yuanfangtardis/madminer | d525547671ede08a7298aea490fc160ae83aab44 | 1dc42059e7d3705e27023cf88cf2dc3c9f0a9d44 | refs/heads/master | 2020-06-24T09:24:00.228109 | 2019-07-26T00:25:23 | 2019-07-26T00:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,796 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import logging
import numpy as np
import six
from madminer.utils.interfaces.madminer_hdf5 import load_madminer_settings, madminer_event_loader
from madminer.utils.morphing import PhysicsMorpher, NuisanceMorpher
from madminer.utils.vari... | [
"mail@johannbrehmer.de"
] | mail@johannbrehmer.de |
5fdd8c64592a1c5ac3027542c26ee03fb9bf243f | 1c751c001357d23fe10e7a42490e3b76434dfa18 | /tools/py/s3upload.py | 9156e2631127905dbbfb3f0cb70c045d4f4bd645 | [] | no_license | pie-crust/etl | 995925199a71b299544bfac1ed8f504f16fbadc2 | 14b19b542eaa69b8679ce7df4d9a5d2720b3c5c7 | refs/heads/master | 2022-12-12T18:40:31.866907 | 2019-10-14T15:46:16 | 2019-10-14T15:46:16 | 215,082,544 | 0 | 0 | null | 2022-12-08T05:22:54 | 2019-10-14T15:43:04 | Python | UTF-8 | Python | false | false | 520 | py | import boto3
some_binary_data = b'Here we have some data'
more_binary_data = b'Here we have some more data'
transfer_file='dump/CIGActgH/spTimeSeriesPL_WRAPPER/1k.csv'
if 0:
# Method 1: Object.put()
s3 = boto3.resource('s3')
object = s3.Object('home-pmt-datamart-dev', transfer_file)
object.put(Body=some_binary_dat... | [
"olek.buzu@gmail.com"
] | olek.buzu@gmail.com |
32c3ec7a2b499fb374778047bfa5144cc35f28bd | 4c8f6ed10990fd2f86c6a00d0f36653940dfc50c | /leaderboard.py | 5d6e3992c0ced13731629f9cf8bd3de3e9c93046 | [] | no_license | riley-csp-2019-20/1-2-2-catch-a-turtle-leaderboard-DiamondGear | 86ef69cbe52299339ea60dbef2bdc9433af67932 | 572a78a43fccf9a9216ab40ed23fbc7e2a2cf86c | refs/heads/master | 2020-08-30T08:13:50.195824 | 2019-11-07T16:21:37 | 2019-11-07T16:21:37 | 218,315,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,688 | py | # leaderboard.py
# The leaderboard module to be used in a122 solution.
# set the levels of scoring
bronze_score = 35
silver_score = 45
gold_score = 50
# load leaderboard from file
def load_leaderboard(file_name, leader_names, leader_scores):
leaderboard_file = open(file_name, "r") # need to create th... | [
"noreply@github.com"
] | riley-csp-2019-20.noreply@github.com |
2dbf47f8e73c251faa4dfbb736f5304fc8cebbd7 | 19d03d646fcee318cca8078af27636732290d77b | /parlai/mturk/core/test/test_full_system.py | 7db43207be466bd10f200b362e5a26437f6adc31 | [
"MIT"
] | permissive | yongkyung-oh/CMU-Studio-Project | 2d6fe6ef6fa30fda1a4f2d1fc45c5b85d6143775 | 448492f342e8157df2e736aa52825b66b1d66fd7 | refs/heads/master | 2022-10-24T16:56:46.763865 | 2020-07-01T10:03:00 | 2020-07-01T10:03:00 | 252,878,283 | 2 | 5 | MIT | 2021-03-25T23:50:27 | 2020-04-04T01:02:44 | Python | UTF-8 | Python | false | false | 37,169 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import time
import uuid
import os
from unittest import mock
from parlai.mturk.core.socket_manager import... | [
"yongkyung-oh@outlook.com"
] | yongkyung-oh@outlook.com |
da19267c46ae53307ab21cdb05b303e02e2f79b3 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/lobby/wgnc/wgncpollwindow.py | 0f0b1bd7a31901da13f94ae61540b1886703fc61 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,802 | py | # 2015.11.18 11:54:46 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/wgnc/WGNCPollWindow.py
from adisp import process
from gui import DialogsInterface
from gui.shared import events, EVENT_BUS_SCOPE
from gui.wgnc import g_wgncProvider
from gui.Scaleform.daapi.view.dialogs ... | [
"info@webium.sk"
] | info@webium.sk |
aba6951733bf59dfe296cb7fbede64264f48a092 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_0/Python/shangjingbo/A.py | 4196730a30f572126631a3576ae061c75b3c2a1e | [] | 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 | 289 | py | import math
test_count = input()
for test in xrange(test_count):
R, total = map(int, raw_input().split())
l = 0
r = total;
while l + 1 < r:
n = (l + r) / 2
if (2 * n * R + n + (n - 1) * 2 * n) <= total:
l = n
else:
r = n
print 'Case #%d: %d' %(test + 1, l)
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
56ede7d0f06a9c122fdec9f354331ada512a4dbd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_203/ch20_2019_08_21_19_19_31_921688.py | 28121bba0a3a3672abc015e07deabce11b16b941 | [] | 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 | 152 | py | nome = input('Qual é seu nome? ')
if nome == 'Chris' :
print ('Todo mundo odeia o Chris')
else :
print ('Olá,{0}!'.format(nome))
| [
"you@example.com"
] | you@example.com |
2243b1370fc09d793ac2c18657492a967ec84a3a | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/b_14696.py | 160f1de2a7249317a942299887c5cc0831cda193 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | N = int(input())
def play():
for i in range(min(li_a_len, li_b_len)):
if li_a[i] > li_b[i]:
return 'A'
elif li_a[i] < li_b[i]:
return 'B'
if li_a_len > li_b_len:
return 'A'
elif li_a_len < li_b_len:
return 'B'
return 'D'
for i in range(N):
... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
337b6d59f10e92eacc703ddc2b6ecd3262f5ad74 | aca4f00c884e1d0e6b2978512e4e08e52eebd6e9 | /greed/SRM 757/CentipedeSocks.py | b5afce91aae7275c5ab583fcd0bbaa212544e59d | [] | no_license | jki14/competitive-programming | 2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4 | ba80bee7827521520eb16a2d151fc0c3ca1f7454 | refs/heads/master | 2023-08-07T19:07:22.894480 | 2023-07-30T12:18:36 | 2023-07-30T12:18:36 | 166,743,930 | 2 | 0 | null | 2021-09-04T09:25:40 | 2019-01-21T03:40:47 | C++ | UTF-8 | Python | false | false | 3,816 | py | # -*- coding: utf-8 -*-
import array
import bisect
import collections
import fractions
import heapq
import itertools
import math
import re
import string
def check(k, n, m, a):
foo = 0
c = len(a)
b = sorted([[a[i] % m + 1, a[i]] for i in xrange(c)])
d = sum(a) - k
for i in xrange(c):
if b[i][0] <= d:
... | [
"jki14wz@gmail.com"
] | jki14wz@gmail.com |
f89bebc093ed3bf4d60766366816e5db6a8bd2f9 | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/Py删除字符串中出现次数最少的字符2.py | 773efaffe76cd9f6d070f515b14fa06fbfd9eb4c | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py |
from collections import defaultdict
while True:
try:
a = input()
dd = defaultdict(int)
for i in a:
dd[i] += 1
for i in dd:
if dd[i] == min(dd.values()):
a = a.replace(i, "")
print(a)
except:
break
| [
"2901429479@qq.com"
] | 2901429479@qq.com |
dcb77a2a968b58612d2ccfb57ea1354296799af5 | 1720aa75167aa0837a727e16761e3b65acadcba7 | /python/ray/serve/tests/test_serve_ha.py | 5dbf6887ebdf9a4aff55e279c1477f2b1ec1dc84 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pcmoritz/ray-1 | 3fd0dbf300cb4c1ce791555f4691e1101c1edbee | c5e78dc0c8a3e2c099451f37e54ab6b6fe8a004a | refs/heads/master | 2023-08-17T05:36:11.528122 | 2023-07-25T21:39:48 | 2023-07-25T21:39:48 | 77,173,450 | 0 | 1 | Apache-2.0 | 2023-03-04T08:57:43 | 2016-12-22T20:21:46 | Python | UTF-8 | Python | false | false | 4,630 | py | import pytest
import sys
import threading
from time import sleep
from ray.tests.conftest_docker import * # noqa
from ray._private.test_utils import wait_for_condition
from ray._private.resource_spec import HEAD_NODE_RESOURCE_NAME
scripts = """
import ray
import json
from fastapi import FastAPI
app = FastAPI()
from ra... | [
"noreply@github.com"
] | pcmoritz.noreply@github.com |
81e4237884c99c647d0a425ffd19c26436e7d422 | 8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc | /toontown/estate/GardenGlobals.py | 043aa84749ac6a0b3f356a5e6d566a63c4967807 | [] | no_license | RegDogg/ttr-2014-dev | eb0d9da3e91b9504b83804c27e1a00d87a0b7220 | 8a392ea4697cf15bd83accd01dcf26d0f87557eb | refs/heads/master | 2023-07-13T02:40:56.171517 | 2021-07-12T00:31:28 | 2021-07-12T00:31:28 | 372,103,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,975 | py | from toontown.toonbase import TTLocalizer
from direct.directnotify import DirectNotifyGlobal
import random
FLOWERS_PER_BONUS = 10
ACCELERATOR_USED_FROM_SHTIKER_BOOK = True
COLLECT_NO_UPDATE = 0
COLLECT_NEW_ENTRY = 1
gardenNotify = DirectNotifyGlobal.directNotify.newCategory('GardenGlobals')
FlowerItem = 2
FlowerItemNew... | [
"regdogg.acr@gmail.com"
] | regdogg.acr@gmail.com |
961aa64b9bb8f477ed6bb3ac0e939f03e92d7b71 | 8ae55aa410a9f00eb7c1ceee96a89335360c1dba | /odps/pai/algorithms/algorithm_nodes.py | 2b9964f5a79a4467eb553ee61bb9ecd1f8722e2a | [
"Apache-2.0"
] | permissive | ifedora/aliyun-odps-python-sdk | 05edbb9d0d9a7ddbf14efd1d5dfd20131cbc25a1 | d8c6f0d1e94576387f4c7a439ae607a08d7c640d | refs/heads/master | 2021-01-21T15:23:00.086425 | 2015-12-16T08:39:47 | 2015-12-16T08:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,486 | py | # encoding: utf-8
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Licens... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
f9c2f535d5cd8f2acab0096a8b2a46902037cfed | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/spaCy/2015/4/prepare_vecs.py | a8c774052041b8dc38ee3134d731f06362f6447e | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 286 | py | """Read a vector file, and prepare it as binary data, for easy consumption"""
import bz2
import plac
import struct
from spacy.vocab import write_binary_vectors
def main(in_loc, out_loc):
write_binary_vectors(in_loc, out_loc)
if __name__ == '__main__':
plac.call(main)
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
aa7511a1809dca85ec719f4618ad10910e0c651d | 88ce3ae8f2e3797baa67108a85a47722b6c961b7 | /exercicio_py/ex0010_fatorial/fatorial_test.py | eb4abd5cb945c49022e60556c1ffb4eeaa1237c3 | [
"MIT"
] | permissive | danielle8farias-zz/hello-world-python3 | dda24fe4c125f762d6512589b288f633f00c94d2 | f2fe9b6ca63536df1d83fd10162cfc04de36b830 | refs/heads/main | 2023-08-10T11:26:58.975017 | 2021-09-02T19:48:45 | 2021-09-02T19:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | ########
# autora: danielle8farias@gmail.com
# repositório: https://github.com/danielle8farias
# Descrição: função que recebe um número inteiro e retorna o seu fatorial.
########
def fat(n):
fat = 1
if n == 1 or n == 0:
return fat
else:
for i in range(n, 0, -1):
fat *= i
... | [
"danielle8farias@gmail.com"
] | danielle8farias@gmail.com |
07c6d1df5b243e6c6b712b32af1c6f7a8aa08d67 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /tests/pyre/descriptors/floats.py | d6064cd20b41c7cffc1d7b75ee90b8839e0b119f | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
"""
Check that float conversions work as expected
"""
def test():
import pyre.descriptors
# create a descriptor
descriptor = pyre.descriptors.float()
# casts
# successful
... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
622959aaa429762b80708982a88b4c7f55bb593e | 6c2ddf52efccdfa15ce073da0e74d3352d5108c4 | /scripts/testing_setup/__init__.py | 0f677206d35a18e71112285a00b4d32fd2226b65 | [
"MIT"
] | permissive | intdata-bsc/idact | 4bff248e644629b7ec634b282d790c305fc6703d | 54cb65a711c145351e205970c27c83e6393cccf5 | refs/heads/develop | 2020-05-17T20:33:52.890970 | 2019-12-26T00:03:58 | 2019-12-26T00:03:58 | 183,949,088 | 0 | 0 | MIT | 2019-12-26T00:03:59 | 2019-04-28T19:18:58 | Python | UTF-8 | Python | false | false | 101 | py | """
testing_setup package
=====================
Scripts for setting up the testing environment.
"""
| [
"matt.garstka@gmail.com"
] | matt.garstka@gmail.com |
470227a2e013d70321818f74ea2b06d0fcd588d3 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/api/test_api.py | 65413312a3663eada278f869a01fad644903a210 | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 190,453 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import re # noqa: F401
# pytho... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
78f20f6586ac76d9e2894bd8940e9ffa057a7c39 | e8c891a7c8d0993a2d93c2e256b12796af404408 | /connect.py | 6ccc3fff9b9b4bb73f118fd1652cd52e20711d02 | [] | no_license | robertnishihara/cluster | 841d8ea3af10012727140f1aba84adcdca483512 | 4aeb4cfca468f3c83fba3cefdbd7e52a36fc928e | refs/heads/master | 2021-04-27T01:46:40.203428 | 2018-02-23T22:59:15 | 2018-02-23T22:59:15 | 122,682,162 | 0 | 0 | null | 2018-02-23T23:09:40 | 2018-02-23T23:09:40 | null | UTF-8 | Python | false | false | 3,455 | py | #!/usr/bin/env python
"""
Script to connect to most recent instance whose id or name has substring
Usage:
To connect to most recently launched instance:
connect
To connect to most recently launched instance containing 5i3 either in instance id or in instance name:
connect 5i3
To connect to most recent instance ... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
c3c1dc6b5d17f5dbd4b6f95f87115fe48d7bd3c3 | 6daaf3cecb19f95265188adc9afc97e640ede23c | /python_design/pythonprogram_design/Ch3/3-4-E59.py | 4f52fff0863617dc1e6a65fb12409fe266758f6f | [] | no_license | guoweifeng216/python | 723f1b29610d9f536a061243a64cf68e28a249be | 658de396ba13f80d7cb3ebd3785d32dabe4b611d | refs/heads/master | 2021-01-20T13:11:47.393514 | 2019-12-04T02:23:36 | 2019-12-04T02:23:36 | 90,457,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | ## Calculate a person's lifetime earnings.
name = input("Enter name: ")
age = int(input("Enter age: "))
salary = float(input("Enter starting salary: "))
earnings = 0
for i in range(age, 65):
earnings += salary
salary += .05 * salary
print("{0} will earn about ${1:,.0f}.".format(name, earnings))
| [
"weifeng.guo@cnexlabs.com"
] | weifeng.guo@cnexlabs.com |
c19b011251ca0261968cd054b74f0398d82ad258 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sHl.py | dbf6df2d6148b3d21b9a3b4faeeb311627628ac7 | [] | 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 |
44942095ae80dc8ce08acf7d9e687de4dff212d1 | 9b9d1a64a932ddad2e3f20797c5c725512c4a4c5 | /usuarios/models.py | acaf6987553b4017e578151e6b1c882f34f78dc8 | [] | no_license | andrebola/rsa | 38d71bbabe5dcde0e45165215e6ded3201b16ed0 | de9529b7fe3f870caa678e07448075bbb319a3fe | refs/heads/master | 2021-01-20T04:29:41.174541 | 2013-07-29T22:53:12 | 2013-07-29T22:53:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | from django.db.models import (Model, CharField, TextField, ForeignKey,
ManyToManyField, URLField, EmailField,
BooleanField, OneToOneField, FloatField,IntegerField,
DateTimeField,DateField,DecimalField,ImageField,FileField,Positive... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7c7176b2faeaf99a5934f452dfe080663d33ff2f | b1c38b9d68a6c5abc07deb566305005956da1c1f | /utils/torch/__init__.py | cf136e540999141bc05c8236a9809706c93a45f9 | [] | no_license | jgc128/mednli | efd837a30d7e9b5429944145c3973f20c9c9fecb | e1fe2531a9e97ca49203f4d3ef22c5cbf96f0d71 | refs/heads/master | 2023-02-19T04:34:31.702323 | 2022-04-08T20:53:22 | 2022-04-08T20:53:22 | 145,300,422 | 121 | 31 | null | 2023-02-15T17:53:05 | 2018-08-19T12:17:40 | Python | UTF-8 | Python | false | false | 36 | py | from .nli_dataset import NLIDataset
| [
"jgc128@outlook.com"
] | jgc128@outlook.com |
da946f13703625d92411c8915c7bba97446eafe4 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j182058+370707/sdB_o11_j182058+370707_lc.py | 9849f3d27cb81ba2d1e2fb5bf45469e5438200c5 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[275.241667,37.118611], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_o11_j182058+370707/sdB_o11_j182058+370707_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
840d40e56be99800c42e91fe3ac6e1ef03470aff | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gkeonprem/v1/gkeonprem_v1_messages.py | 70c9a3bc98e650823431284faa28936188d4dd69 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 103,455 | py | """Generated message classes for gkeonprem version v1.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_types
package ... | [
"gcloud@google.com"
] | gcloud@google.com |
d9b69ab8f15a6f07677c7cebba8687de124e71fc | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /test/test_csgo_stats_season.py | 8044e2734508de4adbc2b0daa9fe326f811045cb | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # coding: utf-8
"""
CS:GO v3 Stats
CS:GO v3 Stats # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import sportsdata.csgo_stats
from sportsdata.csgo_stats.models.csgo_stats_seaso... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
28e527712f4bef86bb00654ffd8b9954a6f7d76f | e0731ac7bd6a9fcb386d9c5d4181c9d549ab1d02 | /desafio66.py | 7634caa34afc55450edeeb8c66b79b99c284378a | [] | no_license | lportinari/Desafios-Python-Curso-em-Video | 3ab98b87a2178448b3e53031b86522558c31c099 | cd7662ddfe371e48e5aabc6e86e23dc6337405fb | refs/heads/master | 2020-04-29T11:09:25.689901 | 2019-06-23T23:58:06 | 2019-06-23T23:58:06 | 176,087,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | """
Crie um programa que leia vários números inteiros pelo teclado. O programa só vai parar quando o usuário digitar
999, que é a condição de parada. No final, mostre quantos números foram digitados e qual a soma entre eles.
(Desconsiderando o flag)
"""
print('-=' * 12)
print('SOMADOR DE NÚMEROS')
print('-=' *... | [
"noreply@github.com"
] | lportinari.noreply@github.com |
a6600b00c49f4a99bbcb212d711e8a19045342e9 | 350bc8bcd2de906383ac1978f90346c17f4be0e3 | /colorado_river.py | d3c0e25e17c443782752390c97adfcf0efe35692 | [] | no_license | tytechortz/environmental-data-dashboard | 41a204ba57a9a071acde14de62aded5b56eee3ad | 727b7a37fade7d215018a3d5e5c3997b4613591c | refs/heads/master | 2022-12-22T15:41:40.165304 | 2021-03-16T19:51:43 | 2021-03-16T19:51:43 | 241,425,868 | 1 | 0 | null | 2022-12-08T03:39:31 | 2020-02-18T17:36:46 | Python | UTF-8 | Python | false | false | 6,219 | py | import dash
import dash_html_components as html
import dash_core_components as dcc
import pandas as pd
import time
import json
import requests
from datetime import datetime, date
# from lake_connect import flaminggorge, powell_latest, powell
app = dash.Dash(__name__)
app.config['suppress_callback_exceptions']=True
... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
59d3e6e426b5ff968b33c01a2ec795f2bd08620f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_blogs.py | bf90fa347e0995943c14d0c63323c201818bd5b1 | [
"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._blog import _BLOG
#calss header
class _BLOGS(_BLOG, ):
def __init__(self,):
_BLOG.__init__(self)
self.name = "BLOGS"
self.specie = 'nouns'
self.basic = "blog"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0619d0804a1182b5d04a67e3cfc279da81f49922 | 456433ac78b70cb8ae076ae166a85e349f181d7f | /systems/ENGINE/UPDATENEWS/updatenews.py | d8ced355e875781b3b574c35479e55ecaaf1e8b3 | [] | no_license | shybkoi/WMS-Demo | 854c1679b121c68323445b60f3992959f922be8d | 2525559c4f56654acfbc21b41b3f5e40387b89e0 | refs/heads/master | 2021-01-23T01:51:20.074825 | 2017-03-23T11:51:18 | 2017-03-23T11:51:18 | 85,937,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | # -*- coding: cp1251 -*-
import db
import py_utils as pu
from base import BasePage
from systems.ENGINE.UPDATENEWS.templates.updatenews_tmpl import updatenews_tmpl
import conf.engine_conf as cfg
class UpdateNews(BasePage): #, TCommon):
def index(self, id_system=None):
BasePage.index(self, id_system)
... | [
"s.shybkoi@gmail.com"
] | s.shybkoi@gmail.com |
a1ab733b86023d0870c9b1126dd920be97d3728d | 555f255a00a1fe88cf4207329308a769d16b836d | /eventex/urls.py | 95ec5ef55f6be778001c8982dbb350fcd2db57a8 | [] | no_license | olivx/eventex | 67212622e6c648f4abd0213e059266b7510157d9 | 5e9f26ca56157799ac821481dc4f28dc896052be | refs/heads/master | 2021-12-14T02:45:32.623541 | 2021-11-30T22:00:30 | 2021-11-30T22:00:30 | 49,175,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from django.conf.urls import url, include
from django.contrib import admin
from eventex.core.views import home, speaker_detail, talk_list
urlpatterns = [
url(r'^$', home, name='home'),
url(r'^admin/', admin.site.urls),
url(r'^talklist', talk_list, name='talk_list'),
url(r'^inscricao/', include('event... | [
"oliveiravicente.net@gmail.com"
] | oliveiravicente.net@gmail.com |
ccea6cdf07adc645292054a3f62e018ea7ef21e0 | 9160bfb7e863c4a5273625ebd0c484f6173061ba | /Leetcode/105 Construct Binary Tree from Preorder and Inorder Traversal.py | 6d63bd5c3a24339e520760b2f4880df6e890589f | [] | no_license | ShengYg/algorithms | 500a4aeb7c98217958c1ca38dfa185015dce46f9 | f66343674087a078578e0d29a95dcc13087a57e3 | refs/heads/master | 2020-05-21T23:51:09.471817 | 2017-10-17T07:50:28 | 2017-10-17T07:50:28 | 56,570,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def buildTree(self, preorder, inorder):
"""
:type preorder: List[int]
:type inorder: List[int]
... | [
"shengy0726@gmail.com"
] | shengy0726@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.