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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
153a2abf95317cbfdbaff09cb732d1139fce1afd | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/PySide2/QtGui/QDragEnterEvent.py | a634a52e9fba94b691a4b78863c0fc0ac7fbe1bd | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # encoding: utf-8
# module PySide2.QtGui
# from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import Shiboken as __Shiboken
from QDragMoveEvent import QDragMoveEvent
class QDragEnterEvent(Q... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
2050a038e33eb631c49642d8edfdcb7111af5526 | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2and3/werkzeug/utils.pyi | 92465efdf0b9b8e68b300a84864abb2b57cd528c | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 1,942 | pyi | from typing import Any, Optional, overload, Type, TypeVar
from werkzeug._internal import _DictAccessorProperty
from werkzeug.wrappers import Response
class cached_property(property):
__name__: Any
__module__: Any
__doc__: Any
func: Any
def __init__(self, func, name: Optional[Any] = ..., doc: Option... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
31c662028e657343e89997d95fe1316b2b232f26 | b3b066a566618f49ae83c81e963543a9b956a00a | /Introduction to Data Visualization with Seaborn/04_Customizing Seaborn Plots/09_Bar plot with subgroups and subplots.py | d1ce96bbbd1e35ea3a4f850eb130d713d7d56456 | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,313 | py | """Bar plot with subgroups and subplots
In this exercise, we'll return to our young people survey dataset and investigate whether the proportion of people who like techno music ("Likes Techno") varies by their gender ("Gender") or where they live ("Village - town"). This exercise will give us an opportunity to practice... | [
"Your-Email"
] | Your-Email |
90915d4053a949c2481e265a7c1029671bb950ec | 107fdd20682510440fc002c5b26ce6d51227d23d | /p42_new_driving_ak/p42_fft_test_2.py | c0992d27d5b13782696fa3d8f8923ce65fa09b1f | [] | no_license | dcollins4096/ytscripts | bddb1a82b30d533e5789a16109dca9226713c76d | 52d8337dbbcba5d004663ec2cd1d2a15503c952d | refs/heads/master | 2022-07-29T07:44:18.847626 | 2022-07-18T13:17:11 | 2022-07-18T13:17:11 | 185,677,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,768 | py | import taxi
aq24 = taxi.taxi(dir='/Users/dcollins/scratch/Paper42_NewForcing/aq24_sto_b',name='p42_aq24',frames=[20])
aq22 = taxi.taxi(dir='/Users/dcollins/scratch/Paper42_NewForcing/aq22_solenoidal_test',name='p42_aq22',frames=[0])
oober = aq24
field = 'acceleration'
frame = 20
ef('p42_helmholtz.py')
debug = 0
dtype =... | [
"none@none"
] | none@none |
792e1474e763328f4bf2212b492161e83b4672ca | 79e1a5ad019b261034bc6338e894679d3f5d54d9 | /Lowest Common Ancestor of a Binary Tree.py | b4d6565fc2cd781571da09043218fa7424dd3a80 | [
"MIT"
] | permissive | ngdeva99/Fulcrum | c615f457ec34c563199cc1dab243ecc62e23ad0b | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | refs/heads/master | 2022-12-15T19:35:46.508701 | 2020-09-09T06:47:48 | 2020-09-09T06:48:08 | 294,027,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode':
# Stack for tree t... | [
"31466229+ngdeva99@users.noreply.github.com"
] | 31466229+ngdeva99@users.noreply.github.com |
9d3f21008f79a7f16662108446b8f9925ba02dbb | 2d4bfa79fab94decbd3468af5b041a8998c232aa | /python/paddle_fl/mpc/layers/basic.py | a61a7d72b6621a526c1482091533369089e947a0 | [] | no_license | XDUXK/PaddleFL | baa06e4d6f41afdddd83c9a8f1831b41496ae712 | 5302307d7165e3ddb13e0ace35ee2d244cb3bd0b | refs/heads/master | 2022-08-26T03:30:16.801134 | 2020-05-14T05:28:36 | 2020-05-14T05:28:36 | 264,178,158 | 0 | 0 | null | 2020-05-15T11:39:15 | 2020-05-15T11:39:14 | null | UTF-8 | Python | false | false | 4,270 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jingqinghe@baidu.com"
] | jingqinghe@baidu.com |
cdc3d4c144ce81e210a54538510707a7487135ee | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/securityinsights/get_scheduled_alert_rule.py | ebf83ae4156ca6b39e0abd0d94a7cd76e41eef32 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 11,543 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
dcb827493ab7ad67ec2931c69950d5f96963a241 | 662716f16f28996df18c65ee8f3c7b5f10404fcb | /Quanlse/Utils/Benchmark.py | 9b625d793fa78b76d4848423e691e84412e91723 | [
"Apache-2.0"
] | permissive | smartmzl/Quanlse | 50995aa7102f36c3a4e1d703670f5f0a438dc0d5 | 7d5d00d5401d801aeb7cbcee381ccdd07331e8a7 | refs/heads/main | 2023-02-27T13:06:27.776490 | 2021-01-28T07:12:13 | 2021-01-28T07:12:13 | 332,613,663 | 0 | 0 | NOASSERTION | 2021-01-25T02:56:06 | 2021-01-25T02:56:06 | null | UTF-8 | Python | false | false | 4,526 | py | #!/usr/bin/python3
# -*- coding: utf8 -*-
# Copyright (c) 2021 Baidu, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | [
"quantum@baidu.com"
] | quantum@baidu.com |
2a9d7ba15659fba5c204166d0ca76a3a3280e608 | 6a8820a235272ac6e481ae5e7939eab058ed0bca | /data/migrations/0010_auto_20180104_1409.py | eb8bfbf7954ff5cd09dca9ce1bdb0300a5eef969 | [
"MIT"
] | permissive | peachman05/Pwcrew | 79fea6b92b7584751c8594b8cd687998e04905a5 | 6aa340a92ed5833c34f7d3d5c27b132ab413aebb | refs/heads/master | 2023-05-15T11:19:01.605840 | 2019-10-06T13:44:36 | 2019-10-06T13:44:36 | 123,320,466 | 0 | 0 | MIT | 2021-06-10T19:59:17 | 2018-02-28T17:45:58 | CSS | UTF-8 | Python | false | false | 1,448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-04 07:09
from __future__ import unicode_literals
import data.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0009_auto_20180102_1810'),
]
operations = [
migr... | [
"you@example.com"
] | you@example.com |
e0fe35c184a1e2259ece4916c08e4c3d8ae2cb14 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/HOps/ui_popup.py | 5abce0fe2c0d6c3c13c698c6394737c45f4ff65b | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | import bpy
from bpy.props import *
from . icons import icons
from . ui.addon_checker import draw_addon_diagnostics
from . utils.addons import addon_exists
from . preferences import get_preferences
class HOPS_OT_LearningPopup(bpy.types.Operator):
"""
Learn more about Hard Ops / Boxcutter and how to u... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
8758211ba89c54c22b05f5e77bde3c3f6a65efb6 | b78a0536c9286877318ab46b3427f8c42b6f4b89 | /auto_updater.py | 8953445ae8fc1dbd595320be5459b1976c6f5268 | [] | no_license | k63528878/djc_helper | 82daadfdc75b3e53c45f087e4bca82cab64ae1db | 9f8bdf20e53c2e8faccbaf235de530ed1b31804e | refs/heads/master | 2023-05-31T16:10:05.492264 | 2021-06-26T07:34:30 | 2021-06-26T07:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,058 | py | # 更新器不启用文件日志
from log import logger, fileHandler, new_file_handler, color
from version import now_version
logger.name = "auto_updater"
logger.removeHandler(fileHandler)
logger.addHandler(new_file_handler())
import argparse
import os
import subprocess
from distutils import dir_util
from upload_lanzouyun import Uploade... | [
"fzls.zju@gmail.com"
] | fzls.zju@gmail.com |
1a2e83373568001e4722c8343b1cf284a780c2a1 | 0ee9b76436f68987799551cbfcee7d37c78bdab8 | /plugin.video.balandro/channels/seriesdanko.py | 15776d6086b9269c6985fcdaae298f4560138813 | [] | no_license | gacj22/WizardGacj22 | 69f83b04c09b255525ba4247272fb5931b80b5e7 | ed4d80d1e6f09634c12c0c3096e39667c6642b95 | refs/heads/master | 2020-07-26T01:05:50.007884 | 2019-09-14T17:59:28 | 2019-09-14T17:59:28 | 208,479,686 | 4 | 3 | null | 2022-09-12T18:27:37 | 2019-09-14T17:47:12 | Python | UTF-8 | Python | false | false | 11,701 | py | # -*- coding: utf-8 -*-
import re, urlparse
from platformcode import config, logger
from core.item import Item
from core import httptools, scrapertools, servertools, tmdb
HOST = 'http://seriesdanko.to/'
IDIOMAS = {'es': 'Esp', 'la': 'Lat', 'vos': 'VOSE', 'vo': 'VO', 'ca': 'Cat'}
def configurar_proxie... | [
"gacj22@gmail.com"
] | gacj22@gmail.com |
56469f3135cce4a8eebcef01518ccb65a151dd04 | fdb3809b9048281ebe696dce861f8003eb06fa23 | /print_and_input/printfun.py | 25170771e9e96f7010ab210fa3531f92737d4cc0 | [] | no_license | GParolini/python_ab | 629f60681033997172740f5e01e9296c4962fbdb | b7683cb515f2fec24ece5ccdd7b698837b962be1 | refs/heads/master | 2020-07-21T09:37:26.116662 | 2019-11-18T15:44:31 | 2019-11-18T15:44:31 | 206,818,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 22 10:07:37 2019
@author: giudittaparolini
"""
print()
print("Hello " *3)
print("All the power is within you")
print("All the power \n is within you")
a,b=10,20
print(a,b)
print(a,b,sep=",")
print(a,b,sep="++++")
name="john"
marks="94.5"
print... | [
"giudittaparolini@gmail.com"
] | giudittaparolini@gmail.com |
d997108cd30424dd15994e39f4354d7e1e28732d | b96039c84c71270d25d0480a9e7636de05126e2f | /cadastros/migrations/0001_initial.py | 5cfbb6338755351a0deb12bf7ff69d44c212acb7 | [] | no_license | eduardokt-maker/blog | dc14cb47f223f6cca7568e766b07150ff1b4f753 | 4144e1de10a51bd60b1c592ea8e5bbad5c68d7c6 | refs/heads/master | 2021-05-18T20:16:02.309225 | 2020-05-20T22:20:46 | 2020-05-20T22:20:46 | 251,399,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # Generated by Django 3.0.4 on 2020-04-16 19:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Pessoas',
fields=[
('codigo', models.CharFi... | [
"you@example.com"
] | you@example.com |
bc1ae6cd04e8d48c0c043623cef1dde62e02245b | 56b47728ffe36878096fac0d8fb0deb94a8a9b7c | /SQLMetadata.py | d634d4554234e42f6886dca087667e9f8557047c | [] | no_license | CaMeLCa5e/dailyspring2015 | 1a930fc74930bb7d286956f17fcf36ec48802b4e | 1b2039b9908407a31e951e44f66bafebf3d7422b | refs/heads/master | 2016-09-05T19:54:44.918992 | 2015-05-24T23:51:39 | 2015-05-24T23:51:39 | 33,795,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #! usr/bin/env python
# -*- coding: utf-8 -*-
import sqlite3 as lite
import sys
con = lite.connect('test.db')
with con:
cur = con.cursor()
cur.execute('PRAGMA table_info(Cars)')
data = cur.fetchall()
for d in data:
print d[0], d[1], d[2] | [
"JM273606@gmail.com"
] | JM273606@gmail.com |
04d601d4363f58001b359b01b47fde1ced0af2ba | ce498e1b0fd9c2ae9ebd04c5834f4052a9a46219 | /refresher/dictionaries/dictexercise3.py | 31d5f6ec79191e4e20fdb3025e0c4b50417c0c49 | [] | no_license | wechuli/python | b32e84bb44646810f3f03f9fcfb67e7d8f54ebb6 | 40cc1782724179567128f6da202f166a0c9a0ea1 | refs/heads/master | 2022-02-20T19:18:03.578752 | 2019-09-24T17:19:27 | 2019-09-24T17:19:27 | 117,241,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | vowels = 'eauoi'
answer = {vowels[pos]: pos for pos in range(0, len(vowels))}
print(answer)
answer2 = {vowel: 0 for vowel in ''.join(sorted(vowels))}
print(answer2)
| [
"wechulipaul@yahoo.com"
] | wechulipaul@yahoo.com |
a02fef08a2070aec0097cc85047c6d7b6fcebede | 3a385dd244f710339322fe9849c4934e29c679b0 | /src2D/test/script2D.py | 83415898e21af65efe2d91a2193f4dfd425b6a7d | [
"MIT"
] | permissive | Naman-ntc/3D-HourGlass-Network | b0303568e79930224c92bca0566e015bf658baa0 | e58b7b6a78d35bc14fe4c0bc611f80022b2f409b | refs/heads/master | 2020-03-07T05:45:15.656132 | 2018-10-28T19:34:41 | 2018-10-28T19:34:41 | 127,304,719 | 56 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | import ref
import cv2
import torch
import numpy as np
from utils.img import Crop, DrawGaussian, Transform3D
c = np.ones(2) * ref.h36mImgSize / 2
s = ref.h36mImgSize * 1.0
img = cv2.imread('../data/h36m/s_01_act_02_subact_01_ca_03/s_01_act_02_subact_01_ca_03_000111.jpg')
img = Crop(img, c, s, 0, ref.inputRes) / 256.... | [
"naman1205jain@gmail.com"
] | naman1205jain@gmail.com |
fcb2d59da0a0dff036f6af3fc958118ea64a7dec | ceacd03ee9bd048b25fe6ae5d2bdadd76673d993 | /raissyon/raissyon/doctype/any_other_topics/any_other_topics.py | e84353c90819c47a35ce94c8fbaba047c8ec107a | [
"MIT"
] | permissive | mhbu50/raissyon | 5800a6144ca924b8be60d0ee0ce4ca669ef0161d | 73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce | refs/heads/main | 2023-02-25T09:51:52.547560 | 2021-02-01T22:02:52 | 2021-02-01T22:02:52 | 325,885,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Accurate Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class AnyOtherTopics(Document):
pass
| [
"mhbu50@gmail.com"
] | mhbu50@gmail.com |
82aff00affe8d3ba0cbbe54e176494b450ff2b75 | 886b90b608bd2146ca1afb44c79a8994c4c82f21 | /gbvision/utils/shapes/__init__.py | 264c0e6936a22e85ccc07c99f1b70fdeabae158d | [
"Apache-2.0"
] | permissive | GreenBlitz/GBVision | 864e8c85426210d467160e7b8d46415fbeea9c01 | 3b861f5a4ffe8c3d20cb59f135d7c2c96c496b6f | refs/heads/master | 2022-11-11T09:49:58.513858 | 2022-10-17T10:20:18 | 2022-10-17T10:20:18 | 181,342,485 | 16 | 5 | Apache-2.0 | 2022-10-17T10:20:19 | 2019-04-14T17:10:10 | Python | UTF-8 | Python | false | false | 395 | py | from .base_shape import BaseShape, BaseShapeType
from .base_circle import BaseCircle
from .base_rect import BaseRect
from .base_convex_polygon import BaseConvexPolygon
from .base_contour import BaseContour
from .base_rotated_rect import BaseRotatedRect
from .base_polygon import BasePolygon
from .base_ellipse import Bas... | [
"idohaineman@gmail.com"
] | idohaineman@gmail.com |
c757721318af83df1c3491770a4b2e2f0a5bbe76 | 9427fa36416d835e28faa8e52a11140b6512e9c7 | /dæmatímaverk/dæmatími_more_func/more_func_5.py | 749915295e5bd2559b9cbf401aae3cdac05df021 | [] | 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 | 581 | py | #game_of_eights() function goes here
def game_of_eights(list1):
check = False
for i in range(len(list1)):
if list1[i] == "8" and list1[i-1] == "8":
check = True
return check
def is_number(a_list):
try:
str1 = ''.join(str(i) for i in a_list)
int1 = int(str1)
p... | [
"fannarleo95@hotmail.com"
] | fannarleo95@hotmail.com |
d50fee6f82131a47f774b7037b64a2f0e74e3666 | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/wagtail_hooks_20201030120503.py | ec515c14d7c8c22abbb9cec8c657c4a427043462 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | """ Kategoria zostanie dodana w pasku bocznym u admina"""
import ModelAdmin, decorator
class MenuAdmin(ModelAd) | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
0c048794b842e71c5546a5792cd06a7879b75230 | 55896eb569d0c2d11d5ea2d64901abd2dc739467 | /model/decode_np.py | d1b59a0c273697bd962844965047683e8c4846c7 | [] | no_license | littleserendipity/Pytorch-PPYOLO | 80fb4cf616633c34000e41ff70c58841727bb555 | 5309dc5952bdc00a3f1a26e1d16f6c9dae077641 | refs/heads/master | 2023-02-04T11:19:22.586012 | 2020-12-26T03:36:35 | 2020-12-26T03:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,984 | py | #! /usr/bin/env python
# coding=utf-8
# ================================================================
#
# Author : miemie2013
# Created date: 2020-10-15 14:50:03
# Description : pytorch_ppyolo
#
# ================================================================
import random
import colorsys
import cv2
imp... | [
"53960695+miemie2013@users.noreply.github.com"
] | 53960695+miemie2013@users.noreply.github.com |
642d891ca8591a39180867d2af163129e074de6a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s612407132.py | 12a319cd7cbbf7fe251a7c0bfe21303c4f3aa036 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | def solve():
INF = float('inf')
def Dijkstra(adjList, vSt):
numV = len(adjList)
useds = [False] * numV
numUsed = 0
costs = [INF] * numV
costs[vSt] = 0
while True:
cNow, vNow = INF, -1
for v in range(numV):
if useds[v]: cont... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
44e74345d769b815c7b9b92a70454c0cff0e8734 | 4915e589fb13abda2e6baa924f58663535e9d9db | /zinnia/feeds.py | 7523c53ed6e4b9165494623abf99283a00085e0a | [] | no_license | redsolution/django-blog-zinnia | db3b9cc3e256773e8bb7e1135fefc633a825d432 | 572b521201420f0a4023674737d3b3d8ffa09972 | refs/heads/master | 2020-04-03T09:12:09.772006 | 2010-07-18T21:17:12 | 2010-07-18T21:17:12 | 783,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | """Feeds for Zinnia"""
from datetime import datetime
from sgmllib import SGMLParser
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.contrib.comments.models import Comment
from django.core.urlresolvers import reverse
from django.utils.feedgenerator import Atom1Feed
f... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
f00fe05e489109773ea17235f2ff1ad61e7fa728 | dfa9b66861dfdf2802c17df06e49d993809d1d6c | /corus/sources/wiki.py | 8a4327d50910d60397841599c2960b5a0868ac69 | [
"MIT"
] | permissive | natasha/corus | c0b8830b75eb17f35479eefd47236cb6d866e328 | de8041f8578eccee3c88c7461d08d57254fc29a8 | refs/heads/master | 2023-08-03T05:46:40.875275 | 2023-07-24T08:53:26 | 2023-07-24T08:53:26 | 183,585,035 | 267 | 23 | MIT | 2021-03-07T20:00:13 | 2019-04-26T08:00:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,095 | py |
from io import StringIO
import json
from corus.record import Record
from corus.io import load_bz2_lines
from corus.third.WikiExtractor import (
options,
pages_from,
Extractor
)
options.write_json = True
class WikiRecord(Record):
__attributes__ = ['id', 'url', 'title', 'text']
def __init__(sel... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
1462804f32fd112c550e613714813f75ed24fedc | 6f1ae6561d63f3d081807c1cd3eda79035c6cd5f | /第四周/8-17/1212.py | db648353be785263e545e85e9232799c40a1e86f | [] | no_license | qq1295334725/zheng | 3ee0d70fdbaf42e86d5a9a65772209fd24d8c10a | 0d884b69feb4c9c4babec6c467697697337c4ca3 | refs/heads/master | 2020-03-25T11:27:28.952808 | 2018-08-28T11:10:08 | 2018-08-28T11:10:08 | 143,733,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | """
座右铭:将来的你一定会感激现在拼命的自己
@project:正课
@author:Mr.Chen
@file:1212.PY
@ide:PyCharm
@time:2018-08-17 14:35:05
"""
import requests
import random
import re
import json
class GuaZiSpider(object):
user_agent_list = [
'Mozilla/5.0(Windows;U;WindowsNT6.1;en-us)AppleWebKit/534.50(KHTML,likeGecko)Version/5.1Safari/534.... | [
"1295334725@qq.com"
] | 1295334725@qq.com |
055431cad0ac6439cf46bc75e56fd4d55b86191c | e3840576e475c42160e914487ba91c1defc0b42f | /Educational_DP_c.py | e5f09bf5c7edc919f9387adaa1824408dd03ed95 | [] | no_license | Kuroboo100/atcoder | 35f92e1a6001430bd96535799594573add78f5db | 280562ef3f963b24f79b56204ba5a1b35ce84b69 | refs/heads/master | 2022-11-25T13:17:02.280672 | 2020-08-03T13:36:40 | 2020-08-03T13:36:40 | 269,625,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | N=int(input())
l=[]
for n in range(N):
l.append(list(map(int,input().strip().split())))
dp=[[0,0,0] for n in range(N)]
dp[0]=l[0]
for n in range(1,N):
for i in range(3):
for j in range(3):
if i!=j:
dp[n][i]=max(dp[n][i],dp[n-1][j]+l[n][i])
print(max(dp[N-1]))
| [
"yuki.kubota.0223@gmail.com"
] | yuki.kubota.0223@gmail.com |
1123246581dea03c1677b5d41b1c711623f6e9cb | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/staticlag.py | 9673e276de6f0f5a24295fb47228bc5b0251171e | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 13,343 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
fef144d1da4ccb1aba3882c41ee0265324cd378b | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thucphamchucnangtotcom.py | 759f0a1d49b91da0a733de83f970c8d93cb04016 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='summary entry-summary']/h1[@class='product_title entry-title']",
'price' : "//p[@class='price']/ins/span[@class='amount'... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
56ede2745b1edd9e2c32dcc8f451234d3db87d44 | 24a50b59aa9d35167c4d3cd1f4d52cd1d432bb41 | /ques3.py | cac2e13acbea31a0c80d05e3ca5491f2f65d9b8f | [] | no_license | Nehanavgurukul/function_ques | 1d47aa25f857a823063afc4728c19489fbabbfc7 | 1efd5791af9ba852b3e9682203fd74a98cc64ade | refs/heads/main | 2023-01-02T01:21:21.851655 | 2020-10-29T16:14:44 | 2020-10-29T16:14:44 | 308,382,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | def students(*list_of_students_name):
for name in list_of_students_name:
print("this is student",name)
students("rinki","neha","rani","pooj") | [
"nehay19@navgurukul.org"
] | nehay19@navgurukul.org |
af6b4287ad7a2a0a5014c6e425f5eff58ce3c7f4 | 005444ae85776e2644c3312a2c86f6c0d27d1e5d | /Py_leetcode/077_combination.py | 0818ae3d137770f5a346e03b92ee1ecaec18abf8 | [] | no_license | Yobretaw/AlgorithmProblems | ae16e431ba04cd331d06c05eba55231415118f99 | 696ee312038f4a2b068dbd008b188605eec0d8a3 | refs/heads/master | 2021-03-27T13:12:56.019778 | 2016-11-09T00:05:44 | 2016-11-09T00:05:44 | 21,365,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import sys
import os
import math
from collections import defaultdict
import copy
"""
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4]... | [
"youkeshen@gmail.com"
] | youkeshen@gmail.com |
03e26abf1efe322c850b84d77001695f48196d43 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Data Processing with python/5.py | b5e95f96079e93685b309f1d3f30cb770ea4b878 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from ftplib import FTP
import os
def ftp_Downloader(filename, host = "ftp.pyclass.com", user = "student@pyclass.com", pas
= "student123"):
ftp = FTP(host)
ftp.login(user, pas)
ftp.cwd("Data")
os.chdir("F:\CODE\Python\Data processing with python")
with open(filename, "wb") a... | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
c58cac5fd042f1c7312dcd8ae4164eaf8c271afb | 0326f06f68fb0d919f8467f4744dfd60a654836a | /eggs/Django-1.6.5-py2.7.egg/django/contrib/sites/tests.py | 20a78e7e4b5539ae1a2a0489827b0c27be9046f8 | [] | no_license | ethirajit/onlinepos | 67de6023241339ae08c3b88a9e7b62b837ec17a3 | 186ba6585d0b29f96a5c210462764515cccb3b47 | refs/heads/master | 2021-01-17T13:23:36.490727 | 2014-07-01T10:30:17 | 2014-07-01T10:30:17 | 34,388,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | from __future__ import unicode_literals
from django.conf import settings
from django.contrib.sites.models import Site, RequestSite, get_current_site
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.http import HttpRequest
from django.test import TestCase
from django.test.utils ... | [
"root@server.onlinepos.co.in"
] | root@server.onlinepos.co.in |
b49b9797b276438a59f2f793c55849a2c3544d00 | 1d23c51bd24fc168df14fa10b30180bd928d1ea4 | /Lib/site-packages/pyasn1_modules/rfc5913.py | 556a21c4ff116161676085f7cb11203bc3636f3b | [] | no_license | BeaverInc/covid19CityMontreal | 62dac14840dadcdf20985663bc2527c90bab926c | 1b283589f6885977a179effce20212a9311a2ac0 | refs/heads/master | 2021-05-22T20:01:22.443897 | 2020-06-21T08:00:57 | 2020-06-21T08:00:57 | 253,067,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# Authority Clearance Constraints Certificate Extension
#
# ASN.1 source from:
# https://www.rfc-editor.org... | [
"36340780+lanyutian88@users.noreply.github.com"
] | 36340780+lanyutian88@users.noreply.github.com |
0786508a8e367732e001bec80ff07b8097705b48 | db98aeb4883d2aa9969970d353b9d6212c7dbde2 | /lectures/13-python-pipelines/examples/hello_parallel/run_hello.py | c16308080a18b8be1d95ad58b0831eaf5f785c47 | [
"MIT"
] | permissive | qianwenluo/biosys-analytics | cec7e84477e01f9aa17e30c1fd8286710deed617 | f936095931fa8f237de8bdf058b960db86effa49 | refs/heads/master | 2020-04-15T20:19:25.669143 | 2019-05-07T17:52:17 | 2019-05-07T17:52:17 | 164,988,099 | 0 | 1 | MIT | 2019-01-10T04:12:20 | 2019-01-10T04:12:20 | null | UTF-8 | Python | false | false | 3,554 | py | #!/usr/bin/env python3
"""
Author : kyclark
Date : 2019-03-28
Purpose: Run "hello.sh" in parallel
"""
import argparse
import os
import tempfile
import sys
import subprocess
from shutil import which
# --------------------------------------------------
def get_args():
"""get command-line arguments"""
parser ... | [
"kyclark@gmail.com"
] | kyclark@gmail.com |
dfd5943331c25fb82a3845306c4f056201d95b85 | ee00ebe5e71c36b05fbff993b19e9723b963313f | /83_remove_duplicates_from_sorted_list.py | adc100ed2a67cc12d2bb371b6f9af57b2dae930e | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
pre = head
it = head.next
while it:
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
b14621bd8b60516b8c4d9a300763606f0f707a5b | ae79aa8458230fe2331b267308a29adff215bbfe | /armi/reactor/__init__.py | 4025f9ed008a783f67f5d1085b6fce9ac827c838 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | paulromano/armi | 3727cf3c52de5e412e8db4d5bf5d9998a720616c | 6c4fea1ca9d256a2599efd52af5e5ebe9860d192 | refs/heads/master | 2023-01-10T05:43:27.691791 | 2020-08-07T00:33:35 | 2020-08-07T00:33:35 | 285,824,692 | 1 | 0 | Apache-2.0 | 2020-08-07T12:32:54 | 2020-08-07T12:32:53 | null | UTF-8 | Python | false | false | 2,325 | py | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"ntouran@terrapower.com"
] | ntouran@terrapower.com |
d79f8ce5da7c4be983804a6e2e79a94743408870 | b2a3fd35c6e99a39217451c68c2c8d2dd029877b | /models/style.py | 6f176f06d0463af08d8f0d4e8dfa86b0b0d067a7 | [
"MIT"
] | permissive | nazarblch/style-based-gan-pytorch | 18d1d6b543ffe0375b8fd4a300e400e88c68f092 | 5ed7fa114904501d77b414921cd9f439773ba24c | refs/heads/master | 2020-09-11T02:05:04.603693 | 2019-12-03T13:52:11 | 2019-12-03T13:52:11 | 221,904,586 | 0 | 0 | MIT | 2019-11-15T10:51:38 | 2019-11-15T10:51:37 | null | UTF-8 | Python | false | false | 1,599 | py | from torch import nn
import random
from model import PixelNorm, EqualLinear
class StyleNoise(nn.Module):
def __init__(self, code_dim=512, n_mlp=8):
super().__init__()
layers = [PixelNorm()]
for i in range(n_mlp):
layers.append(EqualLinear(code_dim, code_dim))
laye... | [
"you@example.com"
] | you@example.com |
6fc5125db2976b2b6ce32df3cae6edd92e72100b | eb5259edf8de7d6836e4a65fda914c349a72f5aa | /ax/models/torch/tests/test_acquisition.py | 6778dd8a4207cb14308771544c60e0833068a78c | [
"MIT"
] | permissive | IamthatIam777/Ax | e70ec578036d11f0fa2a7637238ef8baf3f6bc6e | ff84e254e1f669a8c796a26390a475d9d48e2ce3 | refs/heads/master | 2023-03-23T07:37:30.203152 | 2021-03-13T14:39:22 | 2021-03-13T14:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,267 | 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.
from typing import Any
from unittest.mock import patch
import torch
from ax.models.torch.botorch_modular.acquisition i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d63cf3496c342296be063c038df8f82d7414149c | 4a1ad93a16fc05ee39936035fc641f446ec0ed91 | /leetcode solution in python/LeafSimilarTrees.py | 5bfb34383c1821d02f4220e0abea45abca40560a | [] | no_license | shengchaohua/leetcode-solution | f9b2c1a96fe95c488d1d9e4f57bc82d1e6f98d82 | 5674024fd179120134ab0588e499a5bace2469e2 | refs/heads/master | 2021-06-02T19:30:00.061613 | 2020-10-29T03:13:03 | 2020-10-29T03:13:03 | 122,748,999 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 29 19:32:12 2018
@problem: leetcode No.872 Leaf-Similar Trees
@author: shengchaohua
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
... | [
"shengchaohua163@163.com"
] | shengchaohua163@163.com |
e94a4ba1dfab851fbb7e0f0ba983ef8ef54a3860 | 084c3246c44c2e5ae5a0dd38522cb19ac993fe35 | /magic.py | 7af2f54a1973445324ef7d91e349746909d80514 | [] | no_license | archivest/PythonWars-1996 | 5bafaca65764ca0d0999b063a5411c53cdbbb0eb | b2b301233d72334cfd9b4404b32a45ac22f0b248 | refs/heads/master | 2023-02-06T09:53:32.464771 | 2020-12-30T07:37:03 | 2020-12-30T07:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # PythonWars copyright © 2020 by Paul Penner. All rights reserved. In order to
# use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyright © 1... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
f5c9b9f42605e41a277ca734b21c1e1ca328184e | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/tutorial/data/hints.py | ca0f7a0267467e4a6cc0a4378e08714c8021a8c1 | [] | 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 | 1,220 | py | # 2015.11.18 11:58:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/data/hints.py
from collections import namedtuple
HintProps = namedtuple('HintProps', ('uniqueID', 'hintID', 'itemID', 'text', 'hasBox', 'arrow', 'padding'))
class HintsData(object):
def __init__(self):
super(Hin... | [
"info@webium.sk"
] | info@webium.sk |
7f2c1838a2887bbdfe1a9c524aa2cdeb4a6a22eb | abfa631a97c1741c693bcf3e3780fcb30dc46003 | /project/project/settings.py | 525525ded646443e297267e78c9d1224dec10ca4 | [] | no_license | python-1901-class-five/Team-Five | b08f1860f3da0165838a5dc375bc7cb12b81125e | 66d23dd9b0d57f2a77271d7cc4ab1d122b16e7ee | refs/heads/master | 2020-05-09T20:19:55.591049 | 2019-06-13T09:04:09 | 2019-06-13T09:04:09 | 181,403,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"hcy@qq.com"
] | hcy@qq.com |
f2fd3fd0505ed4bd63d78273517df7c5a3a4aa2d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02691/s475064805.py | 45c24a39187d187be5b8ebcb3abb59e0cb11fd9b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from collections import Counter
N = int(input())
A = list(map(int, input().split()))
p = [i+Ai for i, Ai in zip(range(1, N+1), A)]
q = [j-Aj for j, Aj in zip(range(1, N+1), A)]
pc = Counter(p)
qc = Counter(q)
r = sum(pc[k]*qc[k] for k in pc.keys() & qc.keys())
print(r) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f320e2fc62d9ca8b55d9332d7e0200ccd515303 | 7ac369197442a1292d1209854e6469de782aa607 | /website/migrations/0002_auto_20201107_0336.py | f0f2cad4f217a90b3f91e79b6fd0861b71d98ed1 | [] | no_license | cypher-ravi/sbtpro | 1bb94e7c06e91ca1310147df6d3bfa5bef09386d | 8524098378e04d5fc9d06e79d98c11bbb916530f | refs/heads/main | 2023-04-15T14:42:02.772405 | 2021-04-08T05:27:25 | 2021-04-08T05:27:25 | 310,828,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | # Generated by Django 3.1 on 2020-11-07 03:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='contactviacategory',
name='registrant_m... | [
"ronniloreo@gmail.com"
] | ronniloreo@gmail.com |
cf497050ff41d86119aad793f7ef249876000550 | 676615a0183c9fb55b7a984e309c2122288fb71e | /hsds/util/azureBlobClient.py | 77ea74b209f52732e2f45885fea5337ad6cd1153 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | t20100/hsds | 16a6b1c0252849b2312755492b640d2385fc6d64 | 853972d500628df33b66d4d25f44e6890793f11c | refs/heads/master | 2021-02-10T13:24:47.763654 | 2020-02-26T23:36:00 | 2020-02-26T23:36:00 | 244,385,999 | 0 | 0 | null | 2020-03-02T14:05:11 | 2020-03-02T14:05:10 | null | UTF-8 | Python | false | false | 13,459 | py | from inspect import iscoroutinefunction
from asyncio import CancelledError
import datetime
import time
import hsds_logger as log
try:
from azure.storage.blob.aio import BlobServiceClient
from azure.core.exceptions import AzureError
except ImportError:
log.warning("unable to import Azure blob packages")
fro... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
021700856f5eac2e6be6bdc9e2a525bc9f16db4e | adbf09a31415e6cf692ff349bd908ea25ded42a8 | /widgets/boilerplate.py | 2368dac503aa7122e98603a6beaf40725c70826f | [] | no_license | cmulliss/gui_python | 53a569f301cc82b58880c3c0b2b415fad1ecc3f8 | 6c83d8c2e834464b99024ffd8cf46ac4e734e7a4 | refs/heads/main | 2023-08-12T22:33:01.596005 | 2021-10-11T12:35:41 | 2021-10-11T12:35:41 | 408,176,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.geometry("600x400")
root.resizable(False, False)
root.title("Widget Examples")
root.mainloop()
| [
"cmulliss@gmail.com"
] | cmulliss@gmail.com |
6471a838911cd2ff34db53dde7d3f1ee0c288af2 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - Homework1/WILLIAM GRAY III_2217_assignsubmission_file_Homework 1/Homework 1/sin2_plus_cos2.py | 3e5e542cbd9556062b4ff95e4feca923c39cab9e | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py |
from math import*
x=pi/4
val_1=sin(x)**2+cos(x)**2
print (val_1)
| [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
4ed8fa8a9cd865085dad63d9901f968122e828ba | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_eri_gpw1.py | 3efc8b0e5cad14e0f31dc95a98593e69ecdfb8da | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | from xcp2k.inputsection import InputSection
class _eri_gpw1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Eps_grid = None
self.Cutoff = None
self.Rel_cutoff = None
self.Store_wfn = None
self.Print_level = None
self._name = "ERI_GPW"
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
593bf3d8756ec49a252f1461adea0f0633957127 | d79bbf3ddeb0cce97ef5bbff53bf6ec4dcba0a99 | /pipeline.py | f518a80801f8bb817df659dc7d8dda66e3b9c019 | [
"Unlicense"
] | permissive | ArchiveTeam/blip-grab | 7ba7b5e5c61b20ba953e7a0b6ada1d6a7e30baa2 | 3a4b360951bebe8b4f7cd4c15f0db1a18b80d01a | refs/heads/master | 2016-09-15T15:23:58.574447 | 2015-08-26T09:52:47 | 2015-08-26T09:52:47 | 39,525,062 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | # encoding=utf8
import datetime
from distutils.version import StrictVersion
import hashlib
import os.path
import random
from seesaw.config import realize, NumberConfigValue
from seesaw.item import ItemInterpolation, ItemValue
from seesaw.task import SimpleTask, LimitConcurrent
from seesaw.tracker import GetItemFromTrac... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
54a8cef7202b6a7bcc7ef0890231db5f256de598 | cfea207a97937495e4ae0af7b146c96f71b2c67a | /第二章 性价比之王的宽度优先搜索/4_拓扑排序/定义.py | 0edc7d2d474a208a92265454369fdf858bad0485 | [] | no_license | Waynexia888/Leetcode-Python | b0927385120459c2d77dd2c3dd371823ef55be49 | 6e87b281ba5e817189b3e8b932f1dc6f158fa0a1 | refs/heads/master | 2021-01-16T02:48:50.433839 | 2020-06-28T04:32:15 | 2020-06-28T04:32:15 | 242,950,625 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # 定义
# 在图论中,由一个有向无环图的顶点组成的序列,当且仅当满足下列条件时,称为该图的一个拓扑排序(英语:Topological sorting)。
# 每个顶点出现且只出现一次;
# 若A在序列中排在B的前面,则在图中不存在从B到A的路径。
# 也可以定义为:拓扑排序是对有向无环图的顶点的一种排序,它使得如果存在一条从顶点A到顶点B的路径,那么在排序中B出现在A的后面。
# (来自 Wiki)
# 实际运用
# 拓扑排序 Topological Sorting 是一个经典的图论问题。他实际的运用中,拓扑排序可以做如下的一些事情:
# 检测编译时的循环依赖
# 制定有依赖关系的任务的执行顺序
# 拓扑排序不是一种排序算... | [
"qiwuwaynexia@gmail.com"
] | qiwuwaynexia@gmail.com |
f3f078580d8c6e56ca59c9a62261591013d46fe9 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/OneLogin/Roles/ShowRole.py | 0faac39fb8716631fa44634bcb15b31acd1985de | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# ShowRole
# Retrieves information for a single role.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
fro... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
c6f21e12dd74bef3dcab645ce0b2270165e15607 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D95B/PRPAIDD95BUN.py | 037de5339217966f274a9eccd539934a0d3a2c0f | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,380 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD95BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 0, MAX: 1},
{ID: 'GIS', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 1, MAX: 9},
{ID: 'DTM'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
b660227495a0e2880790b7174562c85d1ae7fe03 | 42fa1862effc3e494859904b76c43ce2bcd623a0 | /analyse_socat_old.py | 938b00c791cc5423913c18ac3c9537400966f848 | [] | no_license | PaulHalloran/desktop_python_scripts | 3e83aedf3e232da610b5f7477e4d7e8fb0253f99 | 325e923527278a5c3e9ab8c978f29b2816dab087 | refs/heads/master | 2021-01-01T19:52:06.828997 | 2015-06-27T21:14:10 | 2015-06-27T21:14:10 | 38,155,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,020 | py | import iris
import iris.quickplot as qplt
import matplotlib.pyplot as plt
import numpy as np
import iris.coord_categorisation
import iris.analysis
import iris.analysis.cartography
import statsmodels.api as sm
from matplotlib.ticker import MaxNLocator
import running_mean
def model_names2(directory):
models = []
files... | [
"paul.halloran@gmail.com"
] | paul.halloran@gmail.com |
83d850cb8f59589ed98f87368ebb726f9dfa6bf7 | bfe69de1c5724ca61e8347edc37e3fd7a6248e30 | /viberio/types/requests/message_request.py | db69d26ef53d84d63ae7ab05ae9d2cc7edf63322 | [
"MIT"
] | permissive | aiogram/viberio | 3248113bf27bc3d3f2279c05c92c625073e6ef55 | 8bea3bb4f39f68e9b83f1d1876d293b641ee6a06 | refs/heads/master | 2022-02-22T03:52:10.706502 | 2019-11-26T19:52:25 | 2019-11-26T19:52:25 | 171,695,899 | 18 | 11 | null | 2022-02-03T00:38:56 | 2019-02-20T15:14:25 | Python | UTF-8 | Python | false | false | 618 | py | import attr
from viberio.utils.safe import ensure_cls, ensure_factory
from viberio.types.messages.message import TypedMessage
from viberio.types.messages.message_type import parse_message
from viberio.types.user_profile import UserProfile
from .base import ViberReqestObject
@attr.s
class ViberMessageRequest(ViberReq... | [
"jroot.junior@gmail.com"
] | jroot.junior@gmail.com |
234a57934d945d6c3179dedaa3ead951a60618b1 | 0c41031269497790425702d4ad882423dc443a6a | /nnetworks/nn__10.py | 1a966e9d7e5fa70938d1e74d9a33f2ed5f9189e6 | [] | no_license | diegoami/datacamp-courses-PY | 4c546e69241ca429adefdd459db92d617cfa0e9f | bab3082929fa6f1cf2fc2f2efb46d16374715b4b | refs/heads/master | 2023-07-20T06:42:29.776349 | 2018-10-28T22:57:21 | 2018-10-28T22:57:21 | 92,448,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # Import necessary modules
import keras
import matplotlib.pyplot as plt
from keras.layers import Dense
from keras.models import Sequential
from keras.utils import to_categorical
import pandas as pd
from keras.callbacks import EarlyStopping
from nnetworks.nn_t import pred_data,predictors
n_cols = predictors.shape[1]
df ... | [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
a301671aff7d5ccaf8dc0f982f2b58cb7f7bc0f2 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/pip/_internal/commands/help.py | 098334969e31cae86c34f4e99c40fc7c4b491e5c | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8ed58a48c20e10d6b0077a0b7c713cd20f49c69b331af617c400d48ae0588e41
size 1127
| [
"Nqk180998!"
] | Nqk180998! |
7d9fc42dc2e8b5e81250f51fbe0d501d6b1adb15 | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao06/exercicio51.py | 5014abfeed228691c77dc340b6f8d5a4c04d7bd2 | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | ano_atual = int(input('Informe o ano atual: '))
salario = 2000.00
aumento = 1.5
for i in range(1996, ano_atual + 1):
salario = salario * (1 + aumento / 100)
aumento = aumento * 2
print(f'Salário atual: {salario}')
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
562306e546d9f9f83ff348b557bad64fb16403c9 | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res/scripts/client/account.py | 7cc57e5bf61fa660839bffe40ba058b779c42ebb | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 51,951 | py | # 2016.10.11 22:08:25 Střední Evropa (letní čas)
# Embedded file name: scripts/client/Account.py
import cPickle
import zlib
import copy
from collections import namedtuple
import Event
import AccountCommands
import ClientPrebattle
from account_helpers import AccountSyncData, Inventory, DossierCache, Shop, Stats, QuestPr... | [
"info@webium.sk"
] | info@webium.sk |
8c549658328267d874cbfbeb60a1586863e08dc0 | 737335e1f53df9e7e068df9ffbd1419a2b3d1a58 | /find_similar_episode.py | 66fd292312c1eccab9e111648fe360378e659375 | [] | no_license | ujiuji1259/drink | 768276b48e4e233f1dd75ceb8cbc7fd518044b05 | f7623b012ac75d34a65b5fe7c5dfb4cdeb7b2175 | refs/heads/master | 2023-01-01T22:39:22.133218 | 2020-11-01T12:51:41 | 2020-11-01T12:51:41 | 294,043,528 | 0 | 1 | null | 2020-09-16T10:00:14 | 2020-09-09T07:59:29 | JavaScript | UTF-8 | Python | false | false | 2,125 | py | import MeCab
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
import pickle
def space_split(s):
return s.split(' ')
class Episodes(object):
def __init__(self, all_episodes, model):
self.parser = MeCab.Tagger('-Owakat... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
8cf368d6b8f086a3ce57ccb3eb3e97e4f63aa9c7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03860/s469278283.py | dfc6d858c546ccfe6061318f68dd7172f084251a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | S = input().split()
print(S[0][0]+S[1][0]+S[2][0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2e905dc3ec82012a1d54f5b484189e8e75f00745 | bb9cefd49e2b5a72b89a6a01d902e5de89f458bd | /frame_2D_alg/utils.py | 2d910f278b60451c1b76dd31deb80c81c685676f | [
"MIT"
] | permissive | IronOnet/CogAlg | ca3f00529184a2daf4c6ad6e295d5ee8a9e40b5a | abd032485810015c79d9e1556146a567e302910e | refs/heads/master | 2023-06-25T19:01:50.410348 | 2021-08-02T01:22:41 | 2021-08-02T01:22:41 | 392,085,542 | 2 | 0 | MIT | 2021-08-02T20:28:54 | 2021-08-02T20:28:53 | null | UTF-8 | Python | false | false | 9,884 | py | from itertools import (repeat, accumulate, chain, starmap, tee)
import numbers
import numpy as np
import cv2
# ----------------------------------------------------------------------------
# Constants
# colors
WHITE = 255
BLACK = 0
GREY = 128
DGREY = 64
LGREY = 192
masking_val = 128 # Pixel at this value can be ove... | [
"boris.kz@gmail.com"
] | boris.kz@gmail.com |
1473064dc4f5ef84de65f5c574c97938a073d1e4 | 1a17167c38dc9a12c1f72dd0f3ae7288f5cd7da0 | /Source/ThirdParty/angle/third_party/jsoncpp/source/doxybuild.py | 862c1f43ff4b0d634921da4f7903ab3c2202d871 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Zlib",
"LicenseRef-scancode-khronos",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | elix22/Urho3D | c57c7ecb58975f51fabb95bcc4330bc5b0812de7 | 99902ae2a867be0d6dbe4c575f9c8c318805ec64 | refs/heads/master | 2023-06-01T01:19:57.155566 | 2021-12-07T16:47:20 | 2021-12-07T17:46:58 | 165,504,739 | 21 | 4 | MIT | 2021-11-05T01:02:08 | 2019-01-13T12:51:17 | C++ | UTF-8 | Python | false | false | 7,416 | py | """Script to generate doxygen documentation.
"""
from __future__ import print_function
from __future__ import unicode_literals
from devtools import tarball
from contextlib import contextmanager
import subprocess
import traceback
import re
import os
import sys
import shutil
@contextmanager
def cd(newdir):
"""
h... | [
"elix22@gmail.com"
] | elix22@gmail.com |
b50ffaf112b2968fc6a9e4e461040b0db469c6b4 | 0d2c2ffe431b159a87bcd78c97147422dce8d778 | /GUI学习/01PyQt5快速开发与实战/ch04基本窗口控件/_410lineEdit.py | bc7cb25a1712b033221e9cea40372e93002f9535 | [] | no_license | YuanXianguo/Python-Project-ITC | 9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c | afd14cbe501147ec66b4aa0c1c7907b3ae41d148 | refs/heads/master | 2020-04-16T13:54:33.727825 | 2019-12-20T02:16:52 | 2019-12-20T02:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLineEdit, QFormLayout
class LineEditDemo(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("QLineEdit例子")
# 初始化
layout = QFormLayout()
normal_line_edit = QLineEdit()
no_echo_line_edit ... | [
"736913978@qq.com"
] | 736913978@qq.com |
22cbe671efbf8f043eaae720aea9722ca58e4044 | 60290cb3fdb4d4a97a38f921b7de2160c2af70de | /utest/resources/robotdata/resources/more_resources/even_more_varz.py | 9fd73f3d9b50f05ec81c7f4bfcd2c2892346d319 | [
"Apache-2.0"
] | permissive | crylearner/RIDE3X | 231431222dc679b38831bd75db5a81062327e91c | 767f45b0c908f18ecc7473208def8dc7489f43b0 | refs/heads/master | 2021-01-19T12:22:59.553847 | 2017-08-23T15:11:17 | 2017-08-23T15:11:17 | 100,781,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | var_in_resource2 = "Foo"
| [
"sunshyran@gmail.com"
] | sunshyran@gmail.com |
13515d4e9d51e9dc044511a5b23befeae8f52845 | 1fdda7257958001fcd64541643aefa63d8cdc8c6 | /test/user/asymptotic.py | 7a85507f41e30bdfcaca06312189c7a2749cbe3e | [] | no_license | bradbell/dismod_at | a37e2799728c060e929d0e4eb4e11e9c1f25782e | 5dd99ebf98f24c6afb6bfdf9f8c2e5b4da6065ec | refs/heads/master | 2023-08-17T09:25:42.825527 | 2023-08-10T12:45:25 | 2023-08-10T12:45:25 | 113,868,210 | 4 | 5 | null | 2023-07-18T18:22:52 | 2017-12-11T14:23:10 | Python | UTF-8 | Python | false | false | 12,732 | py | # SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: University of Washington <https://www.washington.edu>
# SPDX-FileContributor: 2014-23 Bradley M. Bell
# ----------------------------------------------------------------------------
# $section A Simulate Data Speed Test$$
#
# $head random_seed$$
# is... | [
"bradbell@seanet.com"
] | bradbell@seanet.com |
fe99cae35395811d88de6d2226dc720cb4889e55 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Aw2QK8vHY7Xk8Keto_12.py | 433596fb7ffd9297686e421b2a8cf2ca60688c3e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | """
Write a function that finds the **longest word** in a sentence. If two or more
words are found, return the first longest word. Characters such as apostophe,
comma, period (and the like) count as part of the word (e.g. _O'Connor_ is 8
characters long).
### Examples
longest_word("Margaret's toy is a pretty d... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
82d3bdbfc3b8d2fdb0cacf81196c3cd7e11104a0 | c4123a394aad23543020787b227a9a41bcff8d34 | /setup.py | 6a1c452892d488779ba13bb2df26a2dc3ae12417 | [
"MIT"
] | permissive | Sonictherocketman/metapipe | 1fb1d2d5f9177d94d77570dbb0231087479bc2d0 | ff731679d2c5111df174174ac6f8f5d907c66888 | refs/heads/master | 2020-12-26T04:04:25.853832 | 2017-09-22T21:08:03 | 2017-09-22T21:08:03 | 45,272,104 | 0 | 1 | null | 2015-11-03T22:57:00 | 2015-10-30T19:24:12 | null | UTF-8 | Python | false | false | 506 | py | import re
from setuptools import setup, find_packages
setup(
name='metapipe',
version='1.3-2',
packages=find_packages(),
description='A pipeline for building analysis pipelines.',
url='https://github.com/TorkamaniLab/metapipe',
entry_points = {
"console_scripts": ['metapipe = metapipe.... | [
"brian@brianschrader.com"
] | brian@brianschrader.com |
07f39780534a8808ff118d5467a0140047c905ab | 4b4d21f6a2aaf8cb0ece595e4aaf9cb705ffdd49 | /st_dynamic_list/__openerp__.py | cd1b3d50506f244680f94ae57390f8bda5199536 | [] | no_license | sc4you/odoo-project-10.0 | e8c82b4cd42c0672e996561e75e0f9d0717821fa | bca7e400b6316bcbcefe6f0d088cb97a28f644bb | refs/heads/master | 2020-03-21T13:41:08.042847 | 2018-05-15T07:41:58 | 2018-05-15T07:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py |
{
'name': 'Dynamic List',
'version': '1.1',
'author': 'Surekha Technologies',
'category': 'Dynamic ListView',
'website': 'https://www.surekhatech.com',
'summary': 'Dynamic List',
'description': """
Dynamic List
============
Dynamic List module is made to sho... | [
"guwenfengvip@163.com"
] | guwenfengvip@163.com |
7974cf4644c970639f5fe1f7f1250dba0ad807de | dd51b27dc2447c24326362d06ac0159d779d2bbc | /smile_detector/train_model.py | 3671e160e203ab7287be6f40a6626dd49dc6972a | [] | no_license | xuannianc/spinach | 2729753a1460f49054f83684786fdfce3ad8b137 | b342635c7499d7ff507c630e84faa0621e8cd10a | refs/heads/master | 2020-03-22T08:42:28.774614 | 2018-11-14T01:55:16 | 2018-11-14T01:55:16 | 139,785,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | # import the necessary packages
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from keras.preprocessing.image import img_to_array
from keras.utils import np_utils
from nn.cnn.lenet import LeNet
from imutils import pat... | [
"chenxuannian@gmail.com"
] | chenxuannian@gmail.com |
95b8297c0cba5e029e425c92e0795a35bbcedabb | 5864e86954a221d52d4fa83a607c71bacf201c5a | /brennivin/itertoolsext.py | 59432c1a17eea32a514eb3edfc425007e2f72670 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,748 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\brennivin\itertoolsext.py
import datetime as _datetime
import copy
from itertools import *
import random as _random
from . import compat as _compat
from .dochelpers import identity as _identity, default as _unsupplied
if _compa... | [
"le02005@163.com"
] | le02005@163.com |
e9c1a27da5cd6863d16aea4fcff10bf00b81c12f | 304033f60097c489cbc60aab639be45ccdbef1a5 | /algorithms/boj/6087.py | bd47a1c175e696eed99b60faa91fb454e782ccff | [] | no_license | pgw928/TIL | 3d0c47c07bd1f5c73826daf8579a2b0e3f93cb95 | 765906f1e6eecad4ad8ec9bf704041433d7eb304 | refs/heads/master | 2023-06-29T05:46:30.039815 | 2021-08-10T17:38:11 | 2021-08-10T17:38:11 | 288,923,095 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import sys; input = sys.stdin.readline
from collections import deque
m, n = map(int, input().split())
graph = [list(input().rstrip()) for _ in range(n)]
s2e = []
for i in range(n):
for j in range(m):
if graph[i][j]=='C':
s2e.append((i, j))
# 북 남 서 동
dy, dx = [-1, 1, 0, 0], [0 ,0, -1, 1]
visite... | [
"pku928@naver.com"
] | pku928@naver.com |
48ac0ed245c8e918d231cbe01dcb94f14a15fd50 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/win32com/server/dispatcher.py | f6d58b9ac2ffd56036030ef4ff0b0fc114073ee7 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 9,962 | py | """Dispatcher
Please see policy.py for a discussion on dispatchers and policies
"""
import pythoncom, traceback, win32api
from sys import exc_info
#
from win32com.server.exception import IsCOMServerException
from win32com.util import IIDToInterfaceName
import win32com
class DispatcherBase:
"""The base class for... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
9b7ffbaa54b85390427e1f71331f5890651beac9 | 297f7976432fdd0f85d23b35d8fea7049537f4dd | /backend/mobile_1_dev_2086/urls.py | 2f2e184bf063b3df8b6cc70dcf6906a80526755c | [] | no_license | crowdbotics-apps/mobile-1-dev-2086 | 7555b5c3bdeb00e3126e259a54c30845084f3798 | 6b31856a7b6d1ea4a46a693485e9be6e317668dc | refs/heads/master | 2022-04-11T19:30:06.137866 | 2020-03-20T20:05:28 | 2020-03-20T20:05:28 | 248,842,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | """mobile_1_dev_2086 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3a104945862e92b0b30509db25d63f88587d4b14 | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/branches/qeinput-0.1/tests/testcard.py | af75d3d6c4390fecbe1d2ffb6f32eeba70c92c02 | [] | 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 | 1,835 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Alex Dementsov
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"dexity@gmail.com"
] | dexity@gmail.com |
73084f5f1a5d7d31b8f9e9432b38386b0baeb9e4 | 9d5c2a7c05602d478fe0981f910dbf0b7bb2abf0 | /devel/lib/python2.7/dist-packages/robotino_msgs/msg/_GrapplerReadings.py | 9fd0182d9cbce4371d1df334e3e0150f6c49c5cc | [] | no_license | baidu31/catkin_wp | f440fcbf70cefe43e735bcc322fd3f6cb849aa54 | 5cf0f5e3d4c1346835bb56f7903798c7c7f242d9 | refs/heads/master | 2021-09-09T23:59:53.030955 | 2018-03-20T08:59:12 | 2018-03-20T08:59:12 | 125,989,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,939 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from robotino_msgs/GrapplerReadings.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
class GrapplerReadings(genpy.Message):
_md5sum = "53d1f6c81df9b52423202... | [
"934962995@qq.com"
] | 934962995@qq.com |
390b995a4066b16d1ecd5a621368ac842ad8d244 | 7879c47da4cfa94ad676dc4f0a5aea308b6a05b9 | /solotodo/models/number_format.py | dcaf0ae3c1039d2586b6fe646ba294cc42a05f46 | [] | no_license | SoloTodo/solotodo_core | 9bc51fb276a22d25d3d894552a20f07403eb1555 | 72d8e21512b8a358335c347c3cc9b39fc8789c9b | refs/heads/develop | 2023-08-13T04:21:03.957429 | 2023-08-10T16:14:44 | 2023-08-10T16:14:44 | 96,940,737 | 15 | 5 | null | 2023-07-25T15:46:18 | 2017-07-11T21:59:06 | Python | UTF-8 | Python | false | false | 347 | py | from django.db import models
class NumberFormat(models.Model):
name = models.CharField(max_length=10)
thousands_separator = models.CharField(max_length=3)
decimal_separator = models.CharField(max_length=3)
def __str__(self):
return self.name
class Meta:
app_label = 'solotodo'
... | [
"vkhemlan@gmail.com"
] | vkhemlan@gmail.com |
6f6c0e77ca2cedaf8520bac8963b62f27f2be206 | a02e8857128bcd0fa972b2458f338b405eff443a | /examples/adwords/v201802/remarketing/upload_offline_call_conversions.py | 4321e8951628942521e5ca1e0d001c38795c8681 | [
"Apache-2.0"
] | permissive | ikishanj/googleads-python-lib | 765ddbf1ca87606d262febd2be272bada81c0c93 | 20abf4d034f0557958ecd70db5a4bb41b7ade30b | refs/heads/master | 2020-04-15T18:54:12.880930 | 2019-01-09T15:23:47 | 2019-01-09T15:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | #!/usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"msaniscalchi@users.noreply.github.com"
] | msaniscalchi@users.noreply.github.com |
913b02018cf089f517da4c3c9b252d4c7d5dee85 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/triggersmanager.py | 7a1fcd68833eedbe4689f78e5d08b89c8a91a52e | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 8,712 | py | # 2016.05.01 15:19:31 Střední Evropa (letní čas)
# Embedded file name: scripts/client/TriggersManager.py
import BigWorld
import Math
import math
import PlayerEvents
from debug_utils import *
from constants import ARENA_PERIOD
from helpers import isPlayerAvatar
class TRIGGER_TYPE():
AIM = 0
AREA = 1
AIM_AT_... | [
"info@webium.sk"
] | info@webium.sk |
226b50764fbebee95b9e13f59c119d05c64d6d11 | 1862d2942ccbba00788fcf999494a3a9521591f1 | /jacquard/odm/utils.py | 44cfd924c87ab931d3fd50e414e2cc1de7e77915 | [
"MIT"
] | permissive | prophile/jacquard | 6b8aecc3e5ac226d42720c3a5cf4a2bbbba0ab46 | a06b781a81139ed578bcbef3fb521b8f712ab77d | refs/heads/master | 2021-01-13T09:15:26.794307 | 2019-05-03T12:48:11 | 2019-05-03T12:48:11 | 72,368,989 | 8 | 3 | MIT | 2020-05-30T11:36:46 | 2016-10-30T19:01:07 | Python | UTF-8 | Python | false | false | 704 | py | """Misc utils for ODM use."""
import functools
def method_dispatch(fn):
"""
Version of `functools.singledispatch` suitable for use in methods.
Essentially identical to `singledispatch` but switching on the type of the
second argument rather than the first since the first will be `self`.
"""
... | [
"arplynn@gmail.com"
] | arplynn@gmail.com |
ddfda0ca8b14269683e15e6612a98ed03cbd5cf8 | e512404c98c9d2a3261abc8e3cda601dc88bb631 | /utils/generate_config.py | 10b59b55c4e21634380d7e5150abf249e95ec62d | [] | no_license | RecreateMyself/Detection | 886d9dd8f788bce3dbdc3b2a753cdfb3cca7fa8f | 0b3e3468dd4258e50c5e0caa93573d6d674868f9 | refs/heads/master | 2020-07-29T21:04:07.973878 | 2019-07-27T09:20:15 | 2019-07-27T09:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,267 | py | # -*- coding: utf-8 -*-
# SWITCH that you only should care about
DATASET_TYPE = 'mono_3d_kitti'
# DATASET_TYPE = 'cityscape'
# DATASET_TYPE = 'keypoint_kitti'
# DATASET_TYPE = 'nuscenes'
# DATASET_TYPE = 'bdd'
# NET_TYPE = 'fpn_corners_2d'
# NET_TYPE = 'fpn_corners_stable'
# NET_TYPE = 'fpn_mono_3d_better'
# NET_TYPE ... | [
"liangxiong@deepmotion.ai"
] | liangxiong@deepmotion.ai |
d8f2232f77c2dc572a2335cdc294ff3c3e6077c2 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ZH3l/STXS_nanoAOD/v5/Full2016nano_STXS_1p1/aliases.py | fdfc5cbd427ff227d7249998ae4665de1ad31ade | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,820 | py | #Aliases (mostly btag)
mc = [skey for skey in samples if skey not in ('Fake', 'DATA')]
#bWP = '0.2217' #Loose
bWP = '0.6321'
aliases['bVeto'] = {
'expr': '(Sum$( CleanJet_pt > 20.0 && abs(CleanJet_eta) < 2.5 && Jet_btagDeepB[CleanJet_jetIdx] > '+bWP+' ) == 0)'
}
# Temporary patch for BTV postprocessor bug (no S... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
02e5103d59c773e20cf65e9be0277e2836fff1a0 | cc3c805284cb435486832e7efbf608f9b93c224f | /mysite/mysite/urls.py | dd8ef90cdd880af8948204795f7723f9e468ec11 | [] | no_license | Lemmah/djangoIntroduction | 6639beee538ca7b2ca28dc16a192525849f96d08 | 138739cd3b14677eb550f70259bd1335e01e1d8e | refs/heads/master | 2021-01-22T05:54:41.855605 | 2017-05-26T12:06:12 | 2017-05-26T12:06:12 | 92,506,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"lemayiannakolah@gmail.com"
] | lemayiannakolah@gmail.com |
c78c2cbbb8ff57b1eda1f8f592cece2900a0dbe1 | e5b9faa2d9ed39fb8c1adb946da73e03680282d0 | /calculating machine.py | 524a4a3f3c7e5a2ba4494b17e17416558af0ec74 | [] | no_license | chenchao1990/Calculator | 9b1d1aca83c732f2d3bb1af35b793a637a6e9c45 | 97faee3c8c4e8f2c2d6e30d9c2e84c0f7e62229f | refs/heads/master | 2021-01-01T05:12:14.675385 | 2016-05-11T09:27:56 | 2016-05-11T09:27:56 | 58,346,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | #!/usr/bin/env python
# _*_coding:utf-8 _*_
import re
def process_mul_div(arg):
'''处理乘除'''
val = arg[0] #匹配带乘除的表达式 如果没有,直接结束处理
ret = re.search('\d+\.*\d*[\*\/]+[\+\-]?\d+\.*\d*',val)
if not ret:
return
content = re.search('\d+\.*\d*[\*\/]+[\+\-]?\d+\.*\d*',val).group()
... | [
"465234371@qq.com"
] | 465234371@qq.com |
4de0d49e79e0d3e5828df2995a4c68f57a0cb12c | 2dc11314770aec1f9f1bee7e99fec1130dc2535d | /pytglib/api/functions/search_chats.py | 2af0e97e564aaf9f106d911d5297ca5d6f8164f6 | [
"MIT"
] | permissive | grx7/pytglib | db0c14e7f24512b7200cfc61a2879f35adb753eb | 1bdb304b853fa6f26e1be5ff95213853a34d004e | refs/heads/master | 2020-09-24T15:07:11.698803 | 2019-08-31T22:23:02 | 2019-08-31T22:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py |
from ..utils import Object
class SearchChats(Object):
"""
Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the chat list
Attributes:
ID (:obj:`str`): ``SearchChats``
Args:
query (:obj:... | [
"me@amirh.co"
] | me@amirh.co |
e1aeb9eade6bd11ba010ac18297fa7bce0f2bfe2 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/distributions/python/ops/quantized_distribution.py | 7a8e83e79d510fb8f39f84a02f9c04b8e030494c | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 21,254 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
fcbb72b65a467912f52582e1c2041b3dfb2532cb | 41973cd57fd51e9eab7aff454e37b3fc7df97d5e | /config/settings/production.py | 19c6f668b0e4de6959fd5ab6ca7cb4a010907740 | [] | no_license | vladimirmyshkovski/joshuabtc | 6cd363309b2de2e287f1c4b24afdbc4643b8e6aa | 8571e9ce5480e1c36611d0b801a0d452fd1f777a | refs/heads/master | 2021-07-16T06:19:03.424119 | 2017-10-23T18:20:56 | 2017-10-23T18:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | """
Production Configurations
- Use WhiteNoise for serving static files
- Use Amazon's S3 for storing uploaded media
- Use mailgun to send emails
- Use Redis for cache
- Use sentry for error logging
- Use opbeat for error reporting
"""
import logging
from .base import * # noqa
# SECRET CONFIGURATION
# ------... | [
"narnikgamarnikus@gmail.com"
] | narnikgamarnikus@gmail.com |
0d6d040d865892538a570591b922c87935c723a4 | c267cb5e4ec48c4c34965134da523454ebbc829a | /wrapi/time_rules.py | 00f80f9b4427295fa4b6ff8faf813baa32ed2578 | [] | no_license | shmyhero/waverider | 1fd3c120918109d1e9490fe07277202cc19ca99d | 34a2644ce76fccbb9c254da4f680fbcec8f3eeb9 | refs/heads/master | 2021-03-22T03:34:30.301399 | 2018-09-17T08:04:11 | 2018-09-17T08:04:11 | 110,925,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | from abc import abstractmethod, ABCMeta
from common.tradetime import TradeTime
class TimeRule(object):
@abstractmethod
def validate(self, dt):
pass
@staticmethod
def check_parameters(hours, minutes):
if hours * 60 + minutes >= 6 * 60 + 30:
raise Exception('Invalid paramet... | [
"elwin.luo@tradehero.mobi"
] | elwin.luo@tradehero.mobi |
fb35c730c42f36f65c1bfa81c83fa92308992736 | 2452624c3347835109f438d8af3a878efcf6ba3c | /py_the_hard_way/ex6.py | c89df0a6fa3ec6c4edf99a51e939938203e74f10 | [] | no_license | rudietuesdays/practice | 3b50ec3069beb82ced7de24c514db4e6b30c809a | e8a7f7b8cb4d14fe68e7ff31c5c506524f5e9346 | refs/heads/master | 2020-12-02T19:41:44.511088 | 2017-07-28T05:24:31 | 2017-07-28T05:24:31 | 96,376,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | x = "There are %d types of people." % 10 # uses a formatter for integers
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary, do_not) # uses the formatter for strings
print x
print y
print "I said: %r" % x # %r uses a raw formatter; best for debugging
print "I also said: '%s'" % y
... | [
"amanda.gaines@gmail.com"
] | amanda.gaines@gmail.com |
727141190715086f360b79c9c488759723c6bcb1 | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/telemetry/telemetry/page/actions/all_page_actions.py | 9c9a4a2ffb03256426b3bae153bfec850a6790db | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 1,287 | py | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from telemetry.core import discover
from telemetry.core import util
from telemetry.page.actions import page_action
# pylint: disable=W0611
# TODO(... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
53c8b32c38a5b32e2a16c34a7c66af6a056ef748 | 7e2159ce19685039e56bf58a81c07442e7fbcf9f | /third_party/2.7/sqlalchemy/pool.pyi | 702b8ef5de15be0abeb6ecc192767e19fa662e58 | [
"MIT",
"Apache-2.0"
] | permissive | howardzlee/typeshed | 14ab9fd5df0ddfe799831c62ccb95849dff660da | 4f4c6ff786d956ff574c034c8ffc09fa2f7ce6d0 | refs/heads/master | 2021-01-23T07:43:57.402222 | 2016-01-27T19:43:45 | 2016-01-27T19:43:45 | 50,541,174 | 0 | 0 | null | 2016-01-27T22:04:41 | 2016-01-27T22:04:40 | null | UTF-8 | Python | false | false | 3,197 | pyi | # Stubs for sqlalchemy.pool (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import log
from . import util
threading = util.threading
memoized_property = util.memoized_property
chop_traceback = util.chop_traceback
proxies = ... # type: Any
def manage(mo... | [
"kramm@google.com"
] | kramm@google.com |
595e3d684eb6b3bc189bd8e6c89b6302d4aeb945 | da8f8f943f19e5ffc03a6cc420365cee2ccb9b43 | /bin/fastestimator_train | 39b15d42f824a39d928e7615f5e8173ee98b89de | [
"Apache-2.0"
] | permissive | varunkashyapks/fastestimator | 4e313c9cf11cfea3ba0b6e3c402d048ea001992b | 7f891a998ee73c1113758423aa057c339179304f | refs/heads/master | 2020-06-06T20:23:33.739479 | 2019-06-20T00:43:24 | 2019-06-20T00:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | #!/usr/bin/env python
import sys
import json
import os
import argparse
from pyfiglet import Figlet
class CLI:
def __init__(self):
self.input_path = None
self.entry_point = None
self.num_process = None
def draw(self):
print(Figlet(font="slant").renderText("FastEstimator"))
... | [
"shawnmengdong@gmail.com"
] | shawnmengdong@gmail.com | |
58b6110ce20128c6793c3fc952951d273b6906c1 | d75fc0ae459066bfb15187d1c902e22000153dc4 | /TestScript/registersupplier.py | c6889757649410b31521d4bd15628466b53111f0 | [] | no_license | sureshkumarkadi/Project | 875a05a752164ff9620286ab8261c7774acc4f27 | 4652edfa6ac47d6f44bd41e03314d96753e09d92 | refs/heads/master | 2020-03-25T19:52:23.124215 | 2018-08-09T05:28:08 | 2018-08-09T05:28:08 | 144,104,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,882 | py | #-------------------------------------------------------------------------------
# Name: module2
# Purpose:
#
# Author: suresh.kumar
#
# Created: 25/08/2016
# Copyright: (c) suresh.kumar 2016
# Licence: <your licence>
#-------------------------------------------------------------------------------... | [
"Suresh.Kumar@causeway.com"
] | Suresh.Kumar@causeway.com |
a43479d9d93b461713eac3c958e4ddfc0d280b8c | bef93432b7745ba5492f11e709e47a5a372590f0 | /modules/dxtbx/format/FormatSMVRigakuPilatus.py | 9a48fcc02458e69b0b27ee5401c1aea64d7c5c17 | [
"BSD-3-Clause"
] | permissive | BlenderCN-Org/dials-dev20190819 | 939378744d546692e3de33d106a1b5218a584c2a | 1b719b88a1642c13a5a8d488addbb215d0fa290c | refs/heads/master | 2020-07-19T17:00:06.944870 | 2019-08-19T21:36:25 | 2019-08-19T21:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,209 | py | #!/usr/bin/env python
# FormatSMVRigakuPilatus.py
# Copyright (C) 2013 Diamond Light Source, Graeme Winter
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# An implementation of the SMV image reader for Rigaku Pilatus images.
# Inherits fr... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
79c6f2c32ba342f52d1dbd95ed17aaf349f062ce | 212686682d0c3ac53adaff37c4f23930f88d89e5 | /tables.py | 54dc453470001075a7c833681739d276941bbb36 | [] | no_license | Nyagah-Tech/PyQt5-python-Gui-Classes. | f717477b927ec4a0bdf9b5939a761586172f40ed | b359fb42ea87ee8ddae019b62a26610f94fb0275 | refs/heads/master | 2022-10-05T02:31:56.008236 | 2020-06-01T14:00:49 | 2020-06-01T14:00:49 | 268,537,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import sys
from PyQt5 import QtGui
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QTableWidget, QTableWidgetItem,QVBoxLayout
from PyQt5.QtCore import QCoreApplication
class Window(QWidget ):
def __init__(self):
super().__init__()
self.title = 'PyQt5 Tables'
self.left = 100
... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
6f9391b9d1c6d3654f79bbe4761f63ab272d72b2 | c87325f44c6dc0debaa12670a5b76bbbe258a578 | /qed/entry_points.py | 199c75ee447f3467a83af90310b4b12916b6268d | [
"MIT"
] | permissive | rodluger/qed | f42cc61c73feae98049453ecc664db3e898d0798 | 36c9cd37c5f29398e36b6a35790c678cd099535c | refs/heads/main | 2023-03-28T13:45:37.677183 | 2021-03-26T20:19:24 | 2021-03-26T20:19:24 | 345,414,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from . import parse_equations
from .constants import QEDDIRS, QEDFILES
import sys
import os
import shutil
import glob
def qed():
"""
This is the entry point for the command-line script `qed`.
"""
assert len(sys.argv) == 1, "Invalid option."
parse_equations()
def qed_setup():
"""
This is... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
e190e2eff0a2e94a66d564f719ff67e970160b32 | abd3941e52aa22de291a1af83faf46dee6eb54d8 | /create_slurm_scripts.py | dd63016090e58eb08d515e82d939f226bf4b47c2 | [
"MIT"
] | permissive | stjordanis/design-baselines | 95c7d665515bf7b1fb752b875d7be33b9a4b6e2f | d46ff40d8b665953afb64a3332ddf1953b8a0766 | refs/heads/master | 2023-08-31T06:04:22.898425 | 2021-10-26T23:48:58 | 2021-10-26T23:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | import argparse as ap
import os
if __name__ == "__main__":
parser = ap.ArgumentParser("Generate MBO Scripts")
parser.add_argument("--image-dir", type=str,
default='/global/scratch/btrabucco/mbo.img')
parser.add_argument("--scripts-dir", type=str,
... | [
"brandon@btrabucco.com"
] | brandon@btrabucco.com |
bab0060e84375a6a8d1e8c332616822519f84d4d | 8e479cfeb4108ed1cbf91d886c7c43c26bea8917 | /setup.py | 94cbf1baeb0e372acfec45bb19b1be3dac30fea8 | [] | no_license | anderson89marques/codetcc | 53f9cc4451f6107a963b0ca47fb3ee3ace7bbe97 | dd9a1bae63d7d00745619fe1d62c13071004a491 | refs/heads/master | 2020-12-25T17:03:29.102281 | 2017-01-23T02:03:44 | 2017-01-23T02:03:44 | 59,502,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_j... | [
"andersonoanjo18@gmail.com"
] | andersonoanjo18@gmail.com |
7d20b7eecb166f9fd4db3983dc3205c4c5557905 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_221/ch4_2020_03_09_13_47_47_380419.py | bb0845e3eded44df282eb5a9f7b6be726dd9b335 | [] | 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 | 173 | py | def classifica_idade(idade):
if idade<=11:
return 'crianca'
if idade >=12 and <=17:
return 'adolescente'
if idade >=18:
return 'adulto'
| [
"you@example.com"
] | you@example.com |
3cd60ce68ed9ea47ff98fecd78da19380f6cbfd7 | cc6aeaec3b393281c6fb9125dfa1a3e9a7b5cd08 | /vendor/migrations/0003_auto_20210204_1154.py | a6970e3c1e751b3773b5fe5731fca6c812d5250f | [] | no_license | adnankattekaden/thatsmestoreofficial | c9d8dd03a4b90faec6c5b39526913f1b8273907f | 4e5ec8e87e5a00a72c8adba1b9efe038a3c11113 | refs/heads/main | 2023-04-12T06:34:28.694234 | 2021-04-23T11:20:52 | 2021-04-23T11:20:52 | 341,257,808 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.1.6 on 2021-02-04 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendor', '0002_product_image'),
]
operations = [
migrations.AddField(
model_name='shippingaddress',
name='country',
... | [
"adnankattekaden2020@gmail.com"
] | adnankattekaden2020@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.