blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
4c6cd8fa2c76f07442cc03436bacac23835e402e
52b5773617a1b972a905de4d692540d26ff74926
/.history/robort_20200727105954.py
bf79f5392d4aaf3cefaba3da6918f708fb08598f
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
def uniquePaths(m,n): # use dynamic programming and answer is at arr[m][n] # let's create and empty grid with 0's grid = [[0 for x in range(m)] for y in range(n)] print(grid) # then using the top down uproach we shall prefill all the # i,j i = 0 and j+1 # then i +1 ,j = 0 for i in r...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
53761b003841d9f17b9bd786b1199e029573d183
ff23900a911e099595c392a7efab1d268b4f5f7d
/python_modules/libraries/dagster-snowflake-pandas/dagster_snowflake_pandas_tests/test_snowflake_pandas_type_handler.py
045f02682b567ae7c7cbb3a15986b9b2d4dfdf84
[ "Apache-2.0" ]
permissive
zkan/dagster
bbf2da091bdc7fca028c569db72b9c68ddf55e98
b2b19edb71fc8985f505b116927350dd23b4a7d9
refs/heads/master
2022-08-24T03:20:12.583577
2022-08-16T00:01:23
2022-08-16T00:01:23
244,012,061
0
0
Apache-2.0
2020-02-29T17:33:24
2020-02-29T17:33:24
null
UTF-8
Python
false
false
7,662
py
import logging import os import uuid from contextlib import contextmanager from typing import Iterator from unittest.mock import patch import pandas import pytest from dagster_snowflake import build_snowflake_io_manager from dagster_snowflake.resources import SnowflakeConnection from dagster_snowflake.snowflake_io_man...
[ "noreply@github.com" ]
zkan.noreply@github.com
71ba1fab1dc153bbad617aeb8002714868377f16
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/19100101/qiming09/d5_exercise_stats_text.py
9123ccf331de4f4c95e8ba80583a8abffaa4e99a
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
1,456
py
# this is d5 excercise_2 for text # date : 2019.3.22 # author by : qiming # 原始文本 text = ''' The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Reada...
[ "6396023+realcaiying@users.noreply.github.com" ]
6396023+realcaiying@users.noreply.github.com
ebccb5939007fff56633866cd7d1b87aa282bfec
f2411753c4eb2dd04ee9136c594784c073d1de02
/graphene/contrib/django/debug/sql/tracking.py
47f7a30c5d9283dbb046f20617a21cb2349d971f
[ "MIT" ]
permissive
AdrielVelazquez/graphene
9a5dbcfa02102cbf4c7463476fd1c51dcdefb107
4d15bc4f796db403e1ed4877665b80422b516eca
refs/heads/master
2020-12-28T23:50:29.035822
2016-05-20T19:20:10
2016-05-20T19:20:10
59,317,384
0
0
null
2016-05-20T18:29:37
2016-05-20T18:29:37
null
UTF-8
Python
false
false
4,857
py
# Code obtained from django-debug-toolbar sql panel tracking from __future__ import absolute_import, unicode_literals import json from threading import local from time import time from django.utils import six from django.utils.encoding import force_text class SQLQueryTriggered(Exception): """Thrown when templat...
[ "me@syrusakbary.com" ]
me@syrusakbary.com
f73a5a5a3e638c2d9e725a8cc34c709f5d3794e8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2327/60621/239684.py
40d8b72fef8bfd3b2b5a04ac9e8fd343edc92093
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
381
py
a=input() I=a.count("I") D=a.count("D") b=[0] for i in range(len(a)): b.append(i+1) b1=[i for i in b[0:I]] b2=[j for j in b[I:]] b2.sort(reverse=True) c=[];cu1,cu2=0,0 for i in a: if i=="I": c.append(b1[cu1]) cu1+=1 else: c.append(b2[cu2]) cu2+=1 if(cu1!=len(b1)): c.app...
[ "1069583789@qq.com" ]
1069583789@qq.com
74c1927ddec50a5fd6abea8524720bce578f3c39
da052c0bbf811dc4c29a83d1b1bffffd41becaab
/core/stock_count_link_inv_adjust/models/stock_count.py
320955c28c49a62f0247469c7f96181c6750588d
[]
no_license
Muhammad-SF/Test
ef76a45ad28ac8054a4844f5b3826040a222fb6e
46e15330b5d642053da61754247f3fbf9d02717e
refs/heads/main
2023-03-13T10:03:50.146152
2021-03-07T20:28:36
2021-03-07T20:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
from odoo import fields, models, api class StockCountInherit(models.Model): _inherit = "stock.count" def action_done(self): self.action_inventory_adjustment() self.inv_id.action_done() print("inv id=====1111111=======", self.inv_id) self.inv_id.write({'state': 'confirm'}) ...
[ "jbalu2801@gmail.com" ]
jbalu2801@gmail.com
45f034a56235052cb6039c6ce0f0280c9bfbc65c
1533e34bec5adac39a27d42971c39f7cf610dc00
/migrations/versions/77190eba98d9_vamo.py
706a1baee8e798abbe085b43f9244e70f67af49d
[]
no_license
apocalipsys/florabot
3d8c510d88ca20260471ae0916f406c8715beb4a
ff181430e20cd5739b1f3e6f872d4506002f9a7f
refs/heads/rama-desert
2022-12-10T04:07:17.181809
2020-02-25T06:04:12
2020-02-25T06:04:12
241,262,587
2
0
null
2022-12-08T03:39:03
2020-02-18T03:22:14
Python
UTF-8
Python
false
false
842
py
"""vamo Revision ID: 77190eba98d9 Revises: Create Date: 2019-08-11 03:10:10.235839 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '77190eba98d9' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by ...
[ "martinvargas82@gmail.com" ]
martinvargas82@gmail.com
11266b5585922b736d205d227e1d6801bc5a9630
cfd2df2e798d85805970ab9f355ee33ff20f0d6e
/array_find_repeat.py
f19559e5d4e105dc9c934943b234dc804e5dd3aa
[]
no_license
chaichai1997/python-algorithm
483691ec4e3f386acac26412edaaae328cce3fae
3b4815f3cc27eaceb9ad0b15b5e45077a9cd62a5
refs/heads/master
2022-11-15T22:37:28.035141
2020-07-13T13:01:35
2020-07-13T13:01:35
261,659,330
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
# -*- coding: utf-8 -*- # author = "chaichai" """ 找到数组中的唯一重复元素 """ """ 借助字典实现,以空间换时间 """ def find(array): if array is None: return -1 lens = len(array) hash_table = dict() for i in range(lens): hash_table[array[i]] = 0 j = 0 for j in range(lens): if hash_table[array[...
[ "1224816105@qq.com" ]
1224816105@qq.com
43add3d270a3864bc374264f663d6631bb82c1bc
f60b964dc39ba54bb84f1c4949be3b91a92b8346
/track_order/forms.py
07a601aa7dea5764b5b5fcc4168a15febb3a3310
[ "Apache-2.0" ]
permissive
jiejiang/courier
4b0b4fc56c5510228ffcc4de51b074c7aff9502f
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
refs/heads/master
2022-11-30T14:24:53.950502
2019-12-06T16:42:00
2019-12-06T16:42:00
195,387,643
0
0
Apache-2.0
2022-11-22T01:22:33
2019-07-05T10:08:19
Python
UTF-8
Python
false
false
5,108
py
# *- coding: utf-8 -* from django.core.validators import RegexValidator import re from django.shortcuts import get_object_or_404 from django import forms from django.db.models.manager import Manager from django.utils.translation import ugettext as _ from mezzanine.accounts.forms import LoginForm, PasswordResetForm, Pr...
[ "mail.jie.jiang@gmail.com" ]
mail.jie.jiang@gmail.com
f405684acdf758881166e153094be05f1bd7e74f
0191140830e827ddfde9300d5cc5962018a7bac1
/stats/repository/profile_repository.py
e5cb1f59a579dc58327fccc72662973f10bf9cc2
[]
no_license
NicolleLouis/LouisNicolle
d816a60f30d92a9c2bc1b6ef6443c477505bf1bc
b99ae034d58afce5670d0b2fb0e5f3ce57bf1449
refs/heads/master
2023-08-17T20:37:29.024430
2021-09-13T14:26:02
2021-09-13T14:26:02
291,709,252
0
1
null
null
null
null
UTF-8
Python
false
false
253
py
from stats.models.profile import Profile class ProfileRepository: @staticmethod def get_queryset(): return Profile.objects.all() @staticmethod def get_by_id(profile_id): return Profile.objects.get(user__id=profile_id)
[ "louisxnicolle@gmail.com" ]
louisxnicolle@gmail.com
15a5b9f4edafc0425bbc71ad0fadb13380abbce3
8dcd3ee098b4f5b80879c37a62292f42f6b2ae17
/venv/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py
46531f04cc5ac47ca4ff16d82187736d37233b04
[]
no_license
GregVargas1999/InfinityAreaInfo
53fdfefc11c4af8f5d2b8f511f7461d11a3f7533
2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a
refs/heads/master
2022-12-01T20:26:05.388878
2020-08-11T18:37:05
2020-08-11T18:37:05
286,821,452
0
0
null
null
null
null
UTF-8
Python
false
false
7,609
py
# basictimerapp - a really simple timer application. # This should be run using the command line: # pythonwin /app demos\basictimerapp.py import string import sys import time import timer import win32api import win32con import win32ui from pywin.framework import app, cmdline, dlgappcore, cmdline class TimerAppDialog...
[ "44142880+GregVargas1999@users.noreply.github.com" ]
44142880+GregVargas1999@users.noreply.github.com
3ea816954b53404bf8485c9a0d61ec4f52b95ec5
ea3e35eb82436bfa1e544346267b126bd80888e6
/verb_filter.py
6f71b4c06076e8329e81faadebc86f830d37683a
[]
no_license
amazingguni/commits-dataset
5800ed7c9624d036c0e286b7e6e14887ed6d261e
688eea9b1906859e2538cd8eda50dac82b006738
refs/heads/master
2022-11-29T18:14:43.623696
2020-08-04T08:03:54
2020-08-04T08:03:54
261,342,299
0
0
null
null
null
null
UTF-8
Python
false
false
2,425
py
import sys from pathlib import Path from utils import tokenize, overlap_two_seq, starts_with_verb, remove_tag_issue_number,\ remove_http_urls, remove_redundant_white_space, remove_last_special_char, starts_with_verb2, remove_no_english_str import random def main(path): preprocessed_dir = Path(path) f_all_inde...
[ "amazingguni@gmail.com" ]
amazingguni@gmail.com
23c84214c30992885af2c6f196c75971c9b62e9f
e88a8bb96ee85d52fdd21613356a1b48a0aba18e
/src/analyse/run.py
2dcf1d51eec94f97723cefce71980c8ca2528fdd
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
timtroendle/money-land
b5c3f527e7a30eaa25dd47cf2f1082c5dbb6bb29
fe3ed6e531cfe91156886d4fa685a14840749f36
refs/heads/master
2023-06-28T16:42:27.982087
2021-08-04T15:07:51
2021-08-04T15:07:51
229,407,310
0
0
null
null
null
null
UTF-8
Python
false
false
6,718
py
import calliope from calliope.core.util.logging import set_log_verbosity import calliope.backend.run import calliope.backend.pyomo import calliope.core.attrdict import calliope.exceptions from calliope.analysis import postprocess import pyomo.core as po ROOFTOP_TECH_NAME1 = "roof_mounted_pv_n" ROOFTOP_TECH_NAME2 = "ro...
[ "tim.troendle@usys.ethz.ch" ]
tim.troendle@usys.ethz.ch
8aa2163b58f7138a4de76912ea66304b7649d175
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_327/ch178_2020_08_14_14_01_59_028335.py
7badb3c3c79c26e0d310b79dcaf29de895cd1704
[]
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
214
py
def junta_nomes(l0,l1,l2): result = [] for i in l0: for e in l2: result.append(i + " " + e) for a in l1: for b in l2: result.append(a + " " + b) return result
[ "you@example.com" ]
you@example.com
f9d3a990ff56d875f011dbad5ee2666d88489f69
d6b7b16b6e9c3287ffcac3869d11b4c4286f4b89
/pmg/models/posts.py
8f1926e2c73c2377ec6ccd75b099b8ed739e0bc9
[ "Apache-2.0" ]
permissive
havanhuy1997/pmg-cms-2
39e3e66f2b9f57a347e56b93d963c87554983fa7
21571235cf3d9552013bca29ab9af288b08e00d6
refs/heads/master
2020-06-27T20:05:05.776667
2019-08-01T07:46:47
2019-08-01T07:46:47
200,036,932
0
0
Apache-2.0
2019-08-01T11:21:00
2019-08-01T11:20:59
null
UTF-8
Python
false
false
1,502
py
from sqlalchemy import func, sql from sqlalchemy.orm import validates from .base import FileLinkMixin from pmg import db class Post(db.Model): __tablename__ = 'post' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String, nullable=False) slug = db.Column(db.String, nullable=False,...
[ "jbothma@gmail.com" ]
jbothma@gmail.com
6bf6394e69ea92fd3ce0755abb504a5cbf668f18
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons/io_mesh_raw/export_raw.py
b5c5ef36fea3b28cc3b7d5627738ef87e4a9815a
[ "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", "GPL-2.0-or-lat...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
2,896
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "admin@irradiate.net" ]
admin@irradiate.net
3e6f3db8997dc8059f9c74f10b8bd93d869af08e
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons/presets/operator/mesh.primitive_xyz_function_surface/catalan.py
8c8767584bda51ce6cf33a934249ef20f9c3c6f2
[ "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", "GPL-2.0-or-lat...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
446
py
import bpy op = bpy.context.active_operator op.x_eq = 'u-sin(u)*cosh(v)' op.y_eq = '4*sin(1/2*u)*sinh(v/2)' op.z_eq = '1-cos(u)*cosh(v)' op.range_u_min = -3.1415927410125732 op.range_u_max = 9.42477798461914 op.range_u_step = 32 op.wrap_u = False op.range_v_min = -2.0 op.range_v_max = 2.0 op.range_v_step = 128 op.wrap...
[ "admin@irradiate.net" ]
admin@irradiate.net
bfae4fb55b4f57600152cc8d3cb55d720b812077
b9959cb19e518674b722e2a6fb879056c0f1ba83
/kozmic/builds/views.py
73a8d199b00b7c502aeff64b890e322d89a53943
[]
no_license
bazilio91/kozmic-ci
d186d7c5b61081ea5eec972d36091c17ecfdf4be
f3ddc9145e4eb93803caae1511e1bcb4a9b18c7a
refs/heads/master
2021-01-16T01:07:50.770776
2014-12-24T06:59:28
2014-12-24T07:40:16
31,765,700
0
0
null
2015-03-06T11:05:36
2015-03-06T11:05:35
null
UTF-8
Python
false
false
3,379
py
import json import github3 import sqlalchemy from flask import request, redirect, url_for from kozmic import db, csrf from kozmic.models import Project, Build, Hook, HookCall from . import bp, tasks def get_ref_and_sha(payload): action = payload.get('action') if action is None: # See `tests.func_fi...
[ "anthony.romanovich@gmail.com" ]
anthony.romanovich@gmail.com
64060e6e7e281f5870da0bd130d6b4b05662328c
e2ca3205bb5240a1e4c87de0bdb13faa70241f16
/src/verify/image/alpine/proxy/setup.py
f3dc277e61ded0dff9250e7536da94e2549aecb9
[ "Apache-2.0" ]
permissive
random-python/nspawn
67da4d96d54dcbf537adaf3421a03020ea5c1769
25f53aa565c0685842a89d48d949b0459b1de0a6
refs/heads/master
2023-05-11T21:27:44.557577
2023-05-07T17:00:18
2023-05-07T17:00:18
184,904,641
21
2
null
null
null
null
UTF-8
Python
false
false
1,760
py
#!/usr/bin/env python # import os, runpy # this_dir = os.path.dirname(os.path.abspath(__file__)) # runpy.run_path(f"{this_dir}/a.py") from nspawn.setup import * import platform epoch = "3.10" release = f"{epoch}.3" hardware = platform.machine() machine_name = "alpa-proxy" network_face = TOOL.select_interface() IM...
[ "andrei.pozolotin@gmail.com" ]
andrei.pozolotin@gmail.com
865c1a19719a5537fde1e8a41f62e258ab016386
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_3/mtsmol017/question3.py
c1a527c00cceea2444895527ffa725ec32f0b7c3
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
x=input("Enter the message:\n") y=eval(input("Enter the message repeat count:\n")) b=eval(input("Enter the frame thickness:\n")) v=b-1 u=len(x) p=u+2 c=p+2*v e=0 space=0 for i in range(v): print("|"*e,"+","-"*c,"+","|"*e,sep="") c=c-2 space=space+1 e=e+1 if b>0: print("|"*v,"+",p*"-",...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
b687da01dd8d2a85a8e6edf65dbb440abe5934a3
5a5b109bb29b21d3e2805a1cdac72261d862e2ae
/loop/ForElse.py
2ad6e235650d27e97659178806759d836ac3da80
[]
no_license
3454833326/geek
428030f7f780e9cd6b6f775b4518f295c6b6bb2d
39214ff8c68e60b065f636da6dcb04c52e2a787a
refs/heads/master
2021-05-27T04:20:16.035334
2020-04-08T23:27:25
2020-04-08T23:27:25
254,203,089
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
for i in range(1,10): for j in range(1,i+1): print(f'{i}*{j}={i*j}',end=' ') print() for i in range(1,6): for j in range(1,i+1):#控制 print('*',end=' ') print()
[ "you@example.com" ]
you@example.com
d12a52f71e3698240804934cd88872171f43888d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/79/usersdata/247/43511/submittedfiles/serie1.py
90e784d791ec3951343a353ba1a25c5d7cf6ffee
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# -*- coding: utf-8 -*- import math n=int(input('digite n: ')) d=1 c=1 soma=0 t=1 while t<=n: d=d+1 c=d**2 t=t+1 if t%2==0: soma=soma-(d//c) else: soma=soma+(d//c) print(c)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3219371d6d9064ce91bbce562de29eee8403174a
4da55187c399730f13c5705686f4b9af5d957a3f
/resources/sumo_exporter/crossroad.py
066119d5b50767c46efb4945edfc1ac6845750d0
[ "Apache-2.0" ]
permissive
Ewenwan/webots
7111c5587100cf35a9993ab923b39b9e364e680a
6b7b773d20359a4bcf29ad07384c5cf4698d86d3
refs/heads/master
2020-04-17T00:23:54.404153
2019-01-16T13:58:12
2019-01-16T13:58:12
166,048,591
2
0
Apache-2.0
2019-01-16T13:53:50
2019-01-16T13:53:50
null
UTF-8
Python
false
false
3,345
py
"""Road class container.""" import math import re from re_definitions import floatRE, intRE from data_structures import grouper from lxml import etree as ET class Crossroad(object): """Class matching with a Webots Crossroad, containing facilities to export to SUMO junctions.""" crossroads = [] def __i...
[ "David.Mansolino@cyberbotics.com" ]
David.Mansolino@cyberbotics.com
d7f490aa2885aa9e485209b26c0ef98369f6b933
6bfda75657070e177fa620a43c917096cbd3c550
/kubernetes/client/models/v1beta1_daemon_set.py
60bc14e1d3b94368a23f36ef626edc220da4a1ff
[ "Apache-2.0" ]
permissive
don41382/client-python
8e7e747a62f9f4fc0402eea1a877eab1bb80ab36
e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe
refs/heads/master
2021-01-19T23:15:50.172933
2017-04-18T18:00:48
2017-04-18T18:00:48
88,943,866
0
0
null
2017-04-21T05:19:52
2017-04-21T05:19:52
null
UTF-8
Python
false
false
7,290
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
85b2df707765c4c88c8d8c146a13f60e046de768
460b244bbec6b389628eeb764b5e0b7e867e02cb
/optimization/core/util_data.py
55284667810af9c0a148fac5e10e8db3e6ceaed7
[]
no_license
chrisgarcia001/Synchronized-Multi-Assignment-Orienteering
e570af8fbc43d8731bf02b2abcd24a2c092aae23
70479c06d621086b7f9f2f675176aea5032bbdd3
refs/heads/master
2023-04-13T11:25:16.588814
2022-11-01T04:08:21
2022-11-01T04:08:21
427,838,276
0
0
null
null
null
null
UTF-8
Python
false
false
4,931
py
#----------------------------------------------------------------------------------------------------- # Author: cgarcia@umw.edu # Created: 2/20/2020 # About: This file contains some utility functions for generating data. # # Revision History: # Date Author Change Description # 2/20/2020 cgarcia ...
[ "chrisgarcia001@gmail.com" ]
chrisgarcia001@gmail.com
03af5da735bc880fd6176f87063e0985480a8d6a
af82475dc7eb45c478414372c222e7b6016359d4
/python书籍/Python For Finance Code/Code of Python For Finance/4375OS_09_Code/4375_09_21_binomial_Su_Sd.py
c2af289baf7f964e56e4f84512260d98c35b921b
[]
no_license
enfangzhong/PythonBaseCode
8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433
9ab4a578b2692fdbb6aeeacb310251d51f72e953
refs/heads/master
2020-05-17T16:26:02.598344
2019-04-27T20:49:40
2019-04-27T20:49:40
183,817,172
4
1
null
null
null
null
UTF-8
Python
false
false
585
py
""" Name : 4375OS_09_21_binomial_Su_Sd.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/26/2013 email : yany@canisius.edu paulyxy@hotmail.com """ import matplotlib.pyplot as plt xlim(0,1) plt.figtext(0.18,0.5,'S') plt.figtext(0.6,0....
[ "944727327@qq.com" ]
944727327@qq.com
0dd4858585bb91807053895813bd9c5cfe6a5169
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/warmheartli_ChatBotCourse/ChatBotCourse-master/subtitle/preprocess/mv_zip.py
abd02f4f9029aae4f962d508e75b310134b61ee9
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
481
py
import glob import os import fnmatch import shutil import sys def iterfindfiles(path, fnexp): for root, dirs, files in os.walk(path): for filename in fnmatch.filter(files, fnexp): yield os.path.join(root, filename) i=0 for filename in iterfindfiles(r"./input/", "*.ZIP"): i=i+1 newfil...
[ "659338505@qq.com" ]
659338505@qq.com
ccfcc740765b86fd30656349bd302d96acc5b0ac
2194b6c17f3153c5976d6ac4a9ab78211027adab
/otoroshi_admin_api_client/models/otoroshiutilsmailer_generic_mailer_settings.py
a92d1005941524a407022b597ec668261a6a32e8
[]
no_license
krezreb/otoroshi-admin-api-client
7fab5e873c9c5950d77fffce6bcf80d3fdf4c319
9b3156c11eac227024cfe4a26c0129618deb2c4d
refs/heads/master
2023-05-08T08:32:00.982987
2021-05-27T09:55:00
2021-05-27T09:55:00
371,324,636
0
0
null
null
null
null
UTF-8
Python
false
false
3,673
py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.otoroshiutilsmailer_email_location import OtoroshiutilsmailerEmailLocation from ..models.otoroshiutilsmailer_generic_mailer_settings_headers import OtoroshiutilsmailerGenericMailerSettingsHeaders from ..models.otoroshiutilsmailer_gener...
[ "josephbeeson@gmail.com" ]
josephbeeson@gmail.com
84255a0dd811e56d25d5f188a90e82f3cde0ebfd
f360c6fe06fb9859039a5d39fad5815fd4aff372
/community/community/settings.py
03c23fe8c6938d3fa32e191fc23503d3ce85174c
[]
no_license
gwjczwy/Django-CMS
d6297055957548997e86d383d54ae051062c8854
f1a00d637c65809d606df3d4b96bcc594af09bd8
refs/heads/master
2020-04-24T21:57:44.818864
2019-03-03T08:41:50
2019-03-03T08:41:50
172,295,715
0
0
null
null
null
null
UTF-8
Python
false
false
3,206
py
""" Django settings for community project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
[ "zwy053@163.com" ]
zwy053@163.com
0f78b322495fcc4b94ab7128cbaa72bd339f862a
b8bbdfc593b6d816e67a344f720f90ec05236778
/dev/mypy/plugin/decorators.py
1957b59996576d5742ee2d4702404edfd4a247c8
[ "Apache-2.0", "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
2,942
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
apache.noreply@github.com
db7d202b86ebe4b5f5f44e2c932195e11dc2d9d3
2a157b0378fb3b59ffea8160de942b780e433bac
/surf.py
4209986097b2a2ce431fe7d24d3a078c7d6202cf
[]
no_license
WeixinGithubJiang/imgret
bb05a5b4c71a5e023882f474007df468070264bd
28ac6461de815e37539f1893c29d4af6d1c1647d
refs/heads/master
2021-10-09T01:03:43.443255
2018-12-19T14:08:18
2018-12-19T14:08:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
import cv2 from local_feature import LocalFeature class SURF(LocalFeature): def __init__(self, image_size, keypoint_image_border_size, max_keypoint_count, ldescriptor_length, hessian_threshold, extended, ...
[ "osemery@gmail.com" ]
osemery@gmail.com
82e74179866ad9243cd200fd873cdcc54082b43c
eabf9d677b9ccd59f42e5359e46720899bf8cf10
/PyFunceble/status/reputation/domain_and_ip.py
6e54eed6e74d4487e4bbead828c16010eb4cac60
[ "Apache-2.0" ]
permissive
Phyleas/PyFunceble
26263c55f7cf1f282348660cdadcb6c9c3989d70
1f6fb58e1afc29fc4418ffc84d1e066cbd836125
refs/heads/master
2023-08-21T22:27:14.448059
2021-06-13T08:50:33
2021-06-13T08:50:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,178
py
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
[ "contact@funilrys.com" ]
contact@funilrys.com
b63576e0ab27f1712ffce71a6a7894c4cfe75dca
6b19ed8845f7cb020ad49da57a0c0fe85314a274
/zerver/migrations/0154_fix_invalid_bot_owner.py
831dd1298d504d5f67ce28e23ff86f7dfc463cd7
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
jahau/zulip
eb4da13858892065591caced88fc9a086fa0e0d2
51a8873579b9d4bb95219cd4a5c859fa972fa06b
refs/heads/master
2021-05-18T03:44:32.003307
2020-03-27T22:29:55
2020-03-28T19:04:36
251,087,399
1
0
Apache-2.0
2020-03-29T17:11:42
2020-03-29T17:11:42
null
UTF-8
Python
false
false
890
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-04-03 01:52 from __future__ import unicode_literals from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def migrate_fix_invalid_bot_owner_values(ap...
[ "tabbott@zulipchat.com" ]
tabbott@zulipchat.com
b73696b3d2790af9f065fd9f7d86caf8d4ac6135
812045c3ec6587827aeb18bde666237dfffc21ae
/tf_quant_finance/models/heston/approximations/__init__.py
5432abd6f5a8def3d371ed7293d0a56b73ae16a4
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
google/tf-quant-finance
2062082c85e8679b71e69bbeb579fe338c1b0288
0d3a2193c0f2d320b65e602cf01d7a617da484df
refs/heads/master
2023-08-31T01:58:15.415811
2023-08-15T07:37:46
2023-08-15T07:38:22
198,669,252
4,165
557
Apache-2.0
2023-08-04T19:25:55
2019-07-24T16:09:50
Python
UTF-8
Python
false
false
1,143
py
# Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "tf-quant-finance-robot@google.com" ]
tf-quant-finance-robot@google.com
e71034657c2ddde1dd53e31bbc3a037549103ec6
433a24663b73fa3550069fafe3a8af24c61a864c
/pyscreenshot/plugins/pyside2_grabwindow.py
39b0cd494cb67bc94d84ddb506b22f64c38cc2d1
[ "BSD-2-Clause" ]
permissive
robocorp/rpaframework-screenshot
472c9f73237df27266e68ff43dd96e2402eb6325
7cf03b23f4bdf1e4a2e3df1893de598e852dd346
refs/heads/master
2021-06-13T21:31:47.342026
2020-04-12T18:16:34
2020-04-12T18:16:34
254,451,568
1
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
import logging from PIL import Image from pyscreenshot.plugins.backend import CBackend from pyscreenshot.util import py2 if py2(): import StringIO BytesIO = StringIO.StringIO else: import io BytesIO = io.BytesIO log = logging.getLogger(__name__) # TODO:PY2 error: # TypeError: 'PySide2.QtGu...
[ "ponty@home" ]
ponty@home
dbf9838d8a0fe09396539ff90c7f896781279b36
d489eadec9d4499ed066223f8e4881f14c3cc777
/.ci/prep_azure.py
5199a87e0ef8d5042c35777013a9fdcd20065a68
[ "BSD-3-Clause" ]
permissive
lumatijev/mitogen
d0121faa8c3aa87a08b09bbe5967d6c0a3ac1263
b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14
refs/heads/master
2020-04-28T15:48:12.177452
2019-03-13T16:59:48
2019-03-13T16:59:48
175,389,282
0
0
BSD-3-Clause
2019-03-13T09:34:01
2019-03-13T09:34:00
null
UTF-8
Python
false
false
616
py
#!/usr/bin/env python import os import sys import ci_lib batches = [] if ci_lib.have_apt(): batches.append([ 'echo force-unsafe-io | sudo tee /etc/dpkg/dpkg.cfg.d/nosync', 'sudo add-apt-repository ppa:deadsnakes/ppa', 'sudo apt-get update', 'sudo apt-get -y install python2.6 pyth...
[ "dw@botanicus.net" ]
dw@botanicus.net
33863f605bfdb090461483e022ae5109bdf4aec5
41a008ceea2ae75b94cf2110a1370af1f789ff3f
/lava/helper/tests/test_dispatcher.py
1eb1b3a512256d244782fd34e41b11f1e0982a9f
[]
no_license
guanhe0/lava_v1
937916a0009c0a3f801e61f7580b96e324da64b1
c49e753ce55104e3eadb0126088b7580a39446fe
refs/heads/master
2022-10-28T02:33:52.924608
2017-01-04T07:24:59
2017-01-04T08:43:37
78,068,030
0
1
null
2022-10-07T02:00:16
2017-01-05T01:36:27
Python
UTF-8
Python
false
false
2,855
py
# Copyright (C) 2013 Linaro Limited # # Author: Milo Casagrande <milo.casagrande@linaro.org> # # This file is part of lava-tool. # # lava-tool is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # as published by the Free Software Foundation # ...
[ "fanghuangcai@163.com" ]
fanghuangcai@163.com
06409b3f8d41206942c65aa5d15f4a9c29d20919
351175b725ac71e28b5e2811b3ad47052a352923
/onnx/backend/test/case/node/sequenceinsert.py
619043d45a333758b8fe047670bfb5f3327c6f6f
[ "Apache-2.0" ]
permissive
take-cheeze/onnx
99bf73cdde80da357a7eb3e18d542c2d58ec084d
ee7d2cdfa34b8b3c7e0b68b70daf72aaa48c23ac
refs/heads/master
2023-08-24T05:36:45.737517
2022-12-15T17:24:47
2022-12-15T17:24:47
189,348,215
0
0
MIT
2019-05-30T04:58:40
2019-05-30T04:58:40
null
UTF-8
Python
false
false
2,470
py
# SPDX-License-Identifier: Apache-2.0 from typing import Any, List import numpy as np import onnx from ..base import Base from . import expect def sequence_insert_reference_implementation( sequence: List[Any], tensor: np.ndarray, position: np.ndarray = None ) -> List[Any]: # make a copy of input sequence ...
[ "noreply@github.com" ]
take-cheeze.noreply@github.com
3a26364f1b038b02eb40aad2454fd6fb3cb36c07
7f52724110a12d7721f3bbb7a0fce0c4b1c3dd97
/gameserver/ResPrice.py
6e09ece6c606661689b5cf79c23b24e13872cfe9
[ "MIT" ]
permissive
cssp1/assignment1
896cb69e8ff43e26658c65ea16b079f87eebef9a
0839fc589cb52e7384c446593db79e0c2ea737d5
refs/heads/master
2023-03-10T08:03:56.954064
2022-07-20T04:02:15
2022-07-20T04:02:15
29,496,198
0
2
null
2023-02-17T17:56:53
2015-01-19T20:52:53
JavaScript
UTF-8
Python
false
false
3,885
py
#!/usr/bin/env python # Copyright (c) 2015 Battlehouse Inc. All rights reserved. # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file. # this is a library for use by the game server and analytics code to calculate # the price for a bundle of fungible resources. # When...
[ "dmaas@spinpunch.com" ]
dmaas@spinpunch.com
9569faaeef0944b297f019a3868299475553cfa7
3468fe20cd1128eb8e18354c30490421e504e4af
/portal/apps/videologue/templatetags/videologue_tags.py
3b8b0d5eac75b16567487b0cda7de58bf28361bb
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
djpeluca/utopia-cms
7da45422ffc4f1f397f385ea37243f2745a758de
1e444afea565fdc734abf449b8ebe9b7c2c47d80
refs/heads/main
2023-08-19T23:04:44.666527
2021-10-27T01:55:11
2021-10-27T01:55:11
387,323,009
0
0
BSD-3-Clause
2021-07-19T03:03:48
2021-07-19T03:03:48
null
UTF-8
Python
false
false
1,663
py
# -*- coding: utf-8 -*- from videologue.models import YouTubeVideo from django.template import (Context, Library, loader, Node, TemplateSyntaxError) from string import lower register = Library() TPL_DIR = 'videologue/templates/' class RenderLatestVideoNode(Node): def __init__(self, kwcontext): self.kw ...
[ "apacheco@ladiaria.com.uy" ]
apacheco@ladiaria.com.uy
d4acfecc03cbaee58f18dace5a929be206713d9f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_248/ch76_2020_04_12_20_47_41_177110.py
048734f0d57c078395eafd03c2ef252a0ed91c86
[]
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
189
py
def aniversariantes_de_setembro(dicionario): dicionario2={} for i in dicionario: if dicionario[i][2:4]=='09': dicionario2[i]=dicionario[i] return dicionario2
[ "you@example.com" ]
you@example.com
1fec1f837a84009fd62bc40d7396ed04597bd931
76b7eb861bdaf84dc5cb7e8945de95c7605ae4bf
/campfin/efilings/management/commands/process_skede_lines.py
815f82f0150ea0446563f6152d1ada3d1e64e1c2
[]
no_license
jsfenfen/paper_fec
60e4587d41b183be9a2a714d326bbcbe69657aa0
f05d37ef78a22e2f0c071408914e6667f4d4b988
refs/heads/master
2018-12-28T04:20:16.589236
2015-09-01T06:28:07
2015-09-01T06:28:07
27,084,007
5
1
null
2015-08-19T16:19:43
2014-11-24T16:27:23
Python
UTF-8
Python
false
false
4,917
py
from django.core.management.base import BaseCommand, CommandError from datetime import date from fec_alerts.models import new_filing from formdata.models import SkedE from summary_data.models import Candidate_Overlay from reconciliation.fec_reconciler import match_by_name, run_fec_query from add_committees_to_skede im...
[ "jfenton@sunlightfoundation.com" ]
jfenton@sunlightfoundation.com
2ed31607d5a3eb7e3e91fa0eba51db90b0af3268
a81c1492783e7cafcaf7da5f0402d2d283b7ce37
/google/ads/google_ads/v6/services/transports/campaign_bid_modifier_service_grpc_transport.py
9c627ba77a44921e7a3dd9698c767432afb6e484
[ "Apache-2.0" ]
permissive
VincentFritzsche/google-ads-python
6650cf426b34392d1f58fb912cb3fc25b848e766
969eff5b6c3cec59d21191fa178cffb6270074c3
refs/heads/master
2023-03-19T17:23:26.959021
2021-03-18T18:18:38
2021-03-18T18:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,322
py
# -*- coding: utf-8 -*- # # Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "noreply@github.com" ]
VincentFritzsche.noreply@github.com
db3f0149082015ad2e316bc5ffa3e4203d75ed58
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/tram_submode_enumeration.py
21e98e1f17bfaf27cc43a6cf15270a4c5b5075be
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
355
py
from enum import Enum __NAMESPACE__ = "http://www.netex.org.uk/netex" class TramSubmodeEnumeration(Enum): UNKNOWN = "unknown" UNDEFINED = "undefined" CITY_TRAM = "cityTram" LOCAL_TRAM = "localTram" REGIONAL_TRAM = "regionalTram" SIGHTSEEING_TRAM = "sightseeingTram" SHUTTLE_TRAM = "shuttle...
[ "chris@komposta.net" ]
chris@komposta.net
47cc84638073c784a1f807c048912002bf7587f6
780b01976dad99c7c2ed948b8473aa4e2d0404ba
/scripts/alphas_archive/zs_callspread/alpha_ichimokucloud_long_bullish_dec13.py
61e52350abd7d1776b0b7786ea4b29869a6c59b1
[]
no_license
trendmanagement/tmqrexo_alexveden
a8ad699c2c3df4ce283346d287aff4364059a351
4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4
refs/heads/master
2021-03-16T08:38:00.518593
2019-01-23T08:30:18
2019-01-23T08:30:18
56,336,692
1
1
null
2019-01-22T14:21:03
2016-04-15T17:05:53
Python
UTF-8
Python
false
false
1,425
py
# # # Automatically generated file # Created at: 2016-12-16 11:13:41.634827 # from backtester.strategy import OptParam from backtester.swarms.rebalancing import SwarmRebalance from backtester.strategy import OptParamArray from backtester.swarms.rankingclasses import RankerBestWithCorrel from backtester.costs i...
[ "i@alexveden.com" ]
i@alexveden.com
c3259cc6b10289095af347d864f6e9ffaaad2ed2
c3feebac5afce89b0261168286cc5052c20a89b7
/gui/imageViewWidget.py
6a4a745cec118d0a796e5de7fd5846cca2c62e7f
[]
no_license
iHaD/meShaderEd
6252337ba8d152f89854186b468ff3ce226a254e
f305ae7aaf669317eb0470af18ee82b4b62a3e7d
refs/heads/master
2021-01-18T02:31:06.974282
2014-07-14T11:05:52
2014-07-14T11:05:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,902
py
#=============================================================================== # imageViewWidget.py # # # #=============================================================================== import os, sys from PyQt4 import QtCore, QtGui from PyQt4.QtCore import QDir, QString, QModelIndex from PyQt4.QtGui import QFile...
[ "Yuri.Meshalkin@gmail.com" ]
Yuri.Meshalkin@gmail.com
bb775d1214a866c4b577069f0c4dc8e59ea5672e
90386753276ced3360e76f5551d25f6618613a23
/Python 100例/44.py
4a489a499ad6870560b2f7f32b7732f19f290c0b
[]
no_license
yflfly/funny-python
5d69dbcafd1c98c5e4046b85f8678e4bcf53870c
ff42b84b46152234e3bc824ae8016f354af450c4
refs/heads/master
2023-03-09T16:58:27.116227
2021-03-01T14:07:46
2021-03-01T14:07:46
280,602,099
1
0
null
null
null
null
UTF-8
Python
false
false
731
py
#!/usr/bin/python # -*- coding: UTF-8 -*- ''' 两个 3 行 3 列的矩阵,实现其对应位置的数据相加,并返回一个新矩阵: X = [[12,7,3], [4 ,5,6], [7 ,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] 程序分析:创建一个新的 3 行 3 列的矩阵,使用 for 迭代并取出 X 和 Y 矩阵中对应位置的值,相加后放到新矩阵的对应位置中。 ''' X = [[12, 7, 3], [4, 5, 6], [7, 8, 9]] Y = [[5, 8, 1], [6, 7, ...
[ "yangfengling@inttech.cn" ]
yangfengling@inttech.cn
7aff24db643aa477df397dca2c7229896579646e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03032/s079897721.py
f427a2d0ce6513e4da77d12dc104cf67a5636e74
[]
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
625
py
import sys input = sys.stdin.readline def main(): N, K = map(int, input().split()) V = list(map(int, input().split())) ans = -float("inf") for t in range(min(N, K) + 1): s = K - t for l in range(t + 1): r = t - l gem = V[:l] gem += V[-r:] if r != 0...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3a96c3ae0d08fa37f2a0225887bc6118277e5fdc
4eee7b0e53818bd21ca009d742ac8391202620ba
/home/three/num_nd.py
e73b8254580d1b8166605ff2b113fb765d64cf50
[]
no_license
mysqlf/python
e7c44bafee5abefc1356da9fb123fe3d6b3d2e7c
e8aacf30e046d71681a93a5f333de72e48410ebf
refs/heads/master
2020-05-21T13:33:28.289668
2017-11-09T02:13:48
2017-11-09T02:13:48
61,173,293
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author Greedywolf print(round(1.23, 1)) # 1.2 print(round(11.27, -1)) # 10.0 print(round(16.27, -1)) # 20.0 print(round(-1.27, -1)) #-0.0 tmpr = round(1.25361, 3) print(tmpr) # 1.254 tmp = 1.25361 tmpf = format(tmp, '0.3f') print(tmpf) print(tmp) a = 1627731 # 传给 ...
[ "1154505909@qq.com" ]
1154505909@qq.com
342c27c478778c9c198081a0a88745f5c731d310
c61b87703a2e385815cf4abc7cf62221fe6f0d70
/build/lib/tugalinhas/util.py
139f04d0127d749bd90670555bc2e5a9db0d1052
[]
no_license
griselgrisel/pytuga
39f89c24826e46685da34ec912e56c735d4b786e
e9596ac81a0c563130462ac71bfe96dd01120001
refs/heads/master
2020-12-28T20:41:48.815642
2015-11-11T20:15:30
2015-11-11T20:15:30
45,982,808
0
0
null
2015-11-11T13:17:41
2015-11-11T13:17:41
null
UTF-8
Python
false
false
7,838
py
'''A random collection of utility functions''' import os import math from random import randrange from math import copysign from PyQt4 import QtSvg, QtGui, QtCore from tugalinhas import SHARED_ART_PATH, NODEFAULT # # Custom errors # class TooManyPens(RuntimeError): pass # # Custom functions # def as_qpoint(pt)...
[ "fabiomacedomendes@gmail.com" ]
fabiomacedomendes@gmail.com
2ee0e724dff3317c1dfc707c560983a8e24f7cb5
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/communication/azure-communication-administration/samples/phone_number_capabilities_sample.py
44b9dcb1a8796731fbe8b24846fef0450db96aee
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
2,811
py
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
yunhaoling.noreply@github.com
22623047d1de9e48c8ead3eabedeac514d5c8f48
f4c4e131ce63ce795822d1ff27c9294e4b00887d
/modules/common.py
6acd27d318860603203386fe30940b0eaa62dcb4
[]
no_license
shundev/ruscorpora_tagging
d77196b75808743a41f5ecfb3ee5ef204db72c44
b6d41d1a33ad25cf6a1f24e6fe94c0816e378fa0
refs/heads/master
2021-05-30T17:18:37.065460
2015-10-20T13:41:37
2015-10-20T13:41:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
# All rights belong to Non-commercial Partnership "Russian National Corpus" # http://ruscorpora.ru # editor marks inside a word editor_brackets = ur'\[\]\<\>' def quotetext(s): if not s: return u"" return s.replace(u'&', u'&amp;').replace(u'<', u'&lt;').replace(u'>', u'&gt;') def quoteattr(s): return quote...
[ "ishalyminov@gmail.com" ]
ishalyminov@gmail.com
5852301d44f5755d54598d0a6b389ab9759a8f16
636ba2700eaf3a151b73144b510f38c75ab1919d
/Kaggle2/02_image.py
6fbe71238c67a7659f02cd543a3d79a6841ab069
[]
no_license
Taerimmm/ML
17997f388e18c28dfd9de83af98a6d4bebe7e1f0
6147cede81ebcc95f21adebf75731fbbb11edfab
refs/heads/master
2023-06-10T14:26:45.335219
2021-07-05T15:30:47
2021-07-05T15:30:47
324,874,959
3
0
null
null
null
null
UTF-8
Python
false
false
199
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from PIL import Image import tifffile as tiff import cv2 import os from tqdm.notebook import tqdm import zipfile import rasterio
[ "xofla7560@naver.com" ]
xofla7560@naver.com
7095b4a9a2e2976486cba6762f2b417aa67ed27e
910d4dd8e56e9437cf09dd8b9c61167673140a1f
/0521/경로찾기.py
812e5313e58abf8a17e66ba6912e44000ace33d7
[]
no_license
nopasanadamindy/Algorithms
10825b212395680401b200a37ab4fde9085bc61f
44b82d2f129c4cc6e811b651c0202a18719689cb
refs/heads/master
2022-09-28T11:39:54.630487
2020-05-29T09:49:56
2020-05-29T09:49:56
237,923,602
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
import sys sys.stdin = open('경로찾기.txt') def dfs(v): stack = [] visited = [0 for _ in range(N)] while 1 : for w in range(len(G)): if G[v][w] == 1 and visited[w] == 0: stack.append(w) visited[w] = 1 if len(stack) == 0: return visited ...
[ "iuui21@snu.ac.kr" ]
iuui21@snu.ac.kr
9738d62381adf8b93b9b3f7c29b65d7326b5ba7e
312dc11233a147e01b01ad42166eca7e8ebf3c66
/testing/parabolic.py
a0ecc42c218bbf69486a64e488db627605a33d55
[]
no_license
byronwasti/GuitarTuner
622f64f21f913f537fffe8c0fd04970fac99af75
1a748c436b01b399cc57d24070bddfb61d2f61f8
refs/heads/master
2016-09-05T12:24:45.663439
2015-04-21T17:50:45
2015-04-21T17:50:45
32,682,388
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
# -*- coding: utf-8 -*- # from __future__ import division from numpy import polyfit, arange def parabolic(f, x): """Quadratic interpolation for estimating the true position of an inter-sample maximum when nearby samples are known. f is a vector and x is an index for that vector. Returns (...
[ "byron.wasti@gmail.com" ]
byron.wasti@gmail.com
8adf40e302cbe5a0093ac6c8e47055eef1a47754
2d445c21e58e80841b0ac99cc678137812f0a670
/lib/python/adjacency_matrix_graph_bfs.py
8b98b321ead9a21fae4e993e7057258d2c35ff22
[]
no_license
kajyuuen/programming_contest
65c9bc7b7101d7b5fb35cd0cf3fdc6b4213fd0f6
d2b29edf655f64d018947773a29c9a7e3c4a3456
refs/heads/master
2020-04-23T09:51:04.554152
2020-03-06T08:09:29
2020-03-06T08:09:29
171,083,409
2
1
null
null
null
null
UTF-8
Python
false
false
1,074
py
from collections import deque INF = float("inf") def bfs(G, i, visited = []): if len(visited) == 0: visited.append(i) queue = deque() queue.append(i) while queue: i = queue.popleft() for j in range(len(G)): if (G[i][j] != INF) and (G[i][j] != 0) and (j not in visite...
[ "kajyuuen@gmail.com" ]
kajyuuen@gmail.com
c2dba4555aa853c5706f495c56459e3efea80e93
799a0af9c05deabe5d5250a10e480ec15ae0216e
/Xpath_test/xpath_test_2.py
a097fbf67eebc5c9494a6c7e014742b599bcfbbe
[ "MIT" ]
permissive
waws520waws/waws_spider
9b2be28834c08166463fe265e0f5c37a874369c8
c6a5988121f32619a5c5134c09fdfd556c696fe7
refs/heads/master
2021-03-20T06:01:22.041937
2020-03-28T02:49:16
2020-03-28T02:49:16
247,183,308
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
# encoding:utf-8 import lxml """ lxml.etree.HTML() 处理文本字符串 lxml.etree.parse() 处理的是文件内容 """ import lxml.etree html = lxml.etree.parse("1.html") # 处理文件 print(html) print(type(html)) print(lxml.etree.tostring(html)) """ 报错: lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 4 and head, line 6...
[ "16601203140@163.com" ]
16601203140@163.com
9623ef12cdf511e3619a20585d60b7650ee1a19b
7a1b08c64b29522d4bbb913475275c1bc8ad61a4
/diag/doc_diag4/diag_read.py
a8fe6e0e0eca9a9bd598badc98c0dfb99f4dd8a9
[ "MIT" ]
permissive
erichilarysmithsr/time-track
8f84d4cc92cebaedce550b3741982d204e734a6c
dc0a7b63c937d561309f9b1c84af65fb581a8e18
refs/heads/master
2023-03-27T08:07:46.717221
2021-03-30T16:45:50
2021-03-30T16:45:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,214
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- from tkinter import * from tkinter import messagebox import os import subprocess fen=Tk() fen.title("Diagnostics and ATCD") fen.configure(background='cyan') # To place side by side labelo + entrylab top = Frame(fen, bg='cyan') bottom = Frame(fen, bg='cyan') top.pack(side=...
[ "philogenie@protonmail.com" ]
philogenie@protonmail.com
82b7d1c5796f6c1174bf3088591602482f1c4054
fd21d6384ba36aa83d0c9f05f889bdbf8912551a
/a10sdk/core/network/network_vlan_global.py
0777512fc463e065ad6d609790980c39208eecad
[ "Apache-2.0" ]
permissive
0xtobit/a10sdk-python
32a364684d98c1d56538aaa4ccb0e3a5a87ecd00
1ea4886eea3a1609b2ac1f81e7326758d3124dba
refs/heads/master
2021-01-18T03:08:58.576707
2014-12-10T00:31:52
2014-12-10T00:31:52
34,410,031
0
0
null
2015-04-22T19:05:12
2015-04-22T19:05:12
null
UTF-8
Python
false
false
1,242
py
from a10sdk.common.A10BaseClass import A10BaseClass class VlanGlobal(A10BaseClass): """Class Description:: Configure global options for vlan. Class vlan-global supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param l3_vl...
[ "doug@parksidesoftware.com" ]
doug@parksidesoftware.com
c3798284253165b3bbdb13b0f739fe26d1a2a201
495cbf24ca6db5702b023d5476de91f881f477bf
/bulletin_board/bboard/views.py
833e6fa25452d5b70d450d57bc2b891a16c6cb8e
[]
no_license
Nikola1001/bulletin_board_django
29b08368848137628534c3c305c8890632708021
32a6e89cc2257329aa314deec58e05531c52c9a0
refs/heads/master
2022-12-10T13:18:28.205733
2020-09-13T09:46:57
2020-09-13T09:46:57
295,108,347
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
from django.shortcuts import render from django.http import HttpResponse from django.views.generic.edit import CreateView from .models import Bb, Rubric from .forms import BbForm def index(request): bbs = Bb.objects.all() rubrics = Rubric.objects.all() context = {'bbs': bbs, 'rubrics': rubrics} return ...
[ "you@example.com" ]
you@example.com
0c28571a296e24bae9794871056eb8085fb3f316
f8ac0d9c2954ee131bb7358441974a6809c7a323
/tests/compute/lorentz/test_Mt2.py
140237939a75b259c2d2c83a8923653d292139bf
[ "BSD-3-Clause" ]
permissive
scikit-hep/vector
38d285deae1ef9b9cae14eec3cf38e9b5c8d35ae
a79ccfb9574421870029506895dcb9c2162ac59d
refs/heads/main
2023-08-31T10:49:57.311014
2023-08-29T17:55:09
2023-08-29T17:55:09
217,698,030
64
25
BSD-3-Clause
2023-09-12T05:13:17
2019-10-26T11:20:23
Python
UTF-8
Python
false
false
4,032
py
# Copyright (c) 2019-2023, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/vector for details. from __future__ import annotations import pytest import vector.backends.object def test...
[ "noreply@github.com" ]
scikit-hep.noreply@github.com
89a56284bc3930a3a7e104fbbcddb3349ebd68bb
4c601eaa346e660c296e270cc2d79aea9a3721fe
/homeassistant/components/monoprice/__init__.py
9bceff1531c142933a839999f0e1fedc053c9141
[ "Apache-2.0" ]
permissive
basnijholt/home-assistant
f55110af9ff602274c0a929c7298ef97a0ef282f
ba55b4b8338a2dc0ba3f1d750efea49d86571291
refs/heads/dev
2023-01-21T11:53:52.621353
2020-08-08T15:03:06
2020-08-08T15:03:06
220,313,680
5
1
Apache-2.0
2023-01-13T06:04:49
2019-11-07T19:29:54
Python
UTF-8
Python
false
false
2,378
py
"""The Monoprice 6-Zone Amplifier integration.""" import asyncio import logging from pymonoprice import get_monoprice from serial import SerialException from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PORT from homeassistant.core import HomeAssistant from homeassistant.except...
[ "noreply@github.com" ]
basnijholt.noreply@github.com
3b75be4e050249e7eaafd24415499319c3bce4d2
c236fd1f3d54fa79ac79d5154d31f220cfd63ace
/setup.py
87bb3b45e3d99a7461e84cc32ae233928061cfd2
[ "MIT" ]
permissive
mmmika/fcn
46b6e7959d39f68280ca00626dfb1c6ca44ebcd1
876ce009d37ca36f65a3c2128102ac04fca47898
refs/heads/master
2020-06-10T05:38:16.261089
2016-11-27T16:46:13
2016-11-27T16:46:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
#!/usr/bin/env python import shlex import subprocess import sys from setuptools import find_packages from setuptools import setup version = '5.3.0' if sys.argv[-1] == 'release': commands = [ 'python setup.py sdist', 'twine upload dist/fcn-{0}.tar.gz'.format(version), 'git tag v{0}'.for...
[ "www.kentaro.wada@gmail.com" ]
www.kentaro.wada@gmail.com
2e495fb99b1432842a9429eca1429da37cf0ff2a
1e65ca80032b1b5a4ab3631044c3d41a9f3dd035
/01_Jump_to_Python/Chapter07/321.py
2c4c9f6ab079a7f22ee78e41b397caec449e2e37
[]
no_license
bj730612/Bigdata
cdd398c56023c67a2e56c36151e9f2bca067a40a
9bb38e30bb3728b4a4e75bc763fa858029414d4e
refs/heads/master
2020-03-15T09:27:23.995217
2018-10-02T00:07:38
2018-10-02T00:07:38
132,075,198
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import re p = re.compile('.+:') m = p.search('http://google.com') print(m.group()) p = re.compile('.+(?=:)') m = p.search('http://google.com') print(m.group())
[ "USER@test.com" ]
USER@test.com
65656cd0f8cace0bcc0fb1f5113f197aa36b12b7
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_benefactions.py
d23b224a84c6e58631f4000da88b4c70a68ff6df
[ "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
242
py
#calss header class _BENEFACTIONS(): def __init__(self,): self.name = "BENEFACTIONS" self.definitions = benefaction self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['benefaction']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e91ddeb3e191e0e42abe3dff6ea872f61d02497f
a17bb550574747585f36ba159c4415d5e42835e7
/handle/class_list_handle.py
8c583d55aa8194a70a6d4b3be5275f6174fc0efc
[]
no_license
z1069867141/sjh
36895969bc472c9608c14fee84f800adf6ff4af3
197b3a7fab135f7a277ba4260dcf3ca10bb7c53e
refs/heads/master
2022-11-15T19:32:16.934370
2020-07-09T10:01:49
2020-07-09T10:01:49
261,260,925
0
0
null
null
null
null
UTF-8
Python
false
false
1,673
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__),"..")) from base.FindElement import FindElement from selenium import webdriver import time class class_list(object): def __init__(self,driver): self.driver = driver self.file_path = os.path.join(os.getcwd()+"/config/"+"clas...
[ "919824370@qq.com" ]
919824370@qq.com
bc28a05454e5f28444f62d7d5ce5b39db48ee9f3
cb9f816c672a55d0e6b0109f368358a6276a11d9
/noseapp/core/suite/performers/gevent.py
59ee046682d668d64df451c72af4d48ec6386a7f
[]
no_license
noseapp/noseapp
ef3d361f6a7505d822b05c2dc6d40c662b3ba285
7c3e2e38b6b9fe027847a466615f7d72ed4ea334
refs/heads/master
2020-05-17T20:12:14.213873
2015-10-06T14:47:30
2015-10-06T14:47:30
30,531,499
3
2
null
2015-10-01T13:44:16
2015-02-09T10:54:26
Python
UTF-8
Python
false
false
872
py
# -*- coding: utf8 -*- from __future__ import absolute_import from multiprocessing import cpu_count from gevent.pool import Pool from noseapp.core.suite.base import BaseSuite from noseapp.core.suite.base import SuitePerformer class GeventSuitePerformer(SuitePerformer): """ Run tests with gevent pool "...
[ "mikhail.trifonov@corp.mail.ru" ]
mikhail.trifonov@corp.mail.ru
49ce32e81a63bc46de29e7eb1cd17f6fe3f229f6
2ffd079c34cb07c738f7e5f703764fed68f2c8c0
/Solutions/Evaluate_Reverse_Polish_Notation.py
708a3f4dc84222f8e3a3a9ac462cf0dc57d6c3db
[]
no_license
WuIFan/LeetCode
bc96355022c875bdffb39c89a2088457b97d30ab
689a100ada757bc20334d5f0084587af3039ca7b
refs/heads/master
2022-05-24T07:13:01.023733
2022-04-03T15:26:23
2022-04-03T15:26:23
202,471,960
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
from typing import List class Solution: def evalRPN(self, tokens: List[str]) -> int: nums = [] for t in tokens: if t.lstrip('-').isnumeric(): nums.append(int(t)) else: second = nums.pop() first = nums.pop() if t ...
[ "denny91002@gmail.com" ]
denny91002@gmail.com
14a313d6bc063b870815b658c0cc5045efd8eae0
038e6e13ad4a81cee5dbbd6ccc322d48330d15d7
/AnswerCode/083RemoveDuplicatesfromSortedList.py
6ebe8ac3b56ba15d5779fcf189dd251a77daac8c
[]
no_license
aistoume/Leetcode
ad69dae6d9f41a03c883fc2582d0afd6997f83d6
d8dc574b611d0e3d42367ccd47a44fd8443b0b27
refs/heads/master
2021-01-12T14:27:18.245818
2018-11-09T00:21:04
2018-11-09T00:21:04
70,066,007
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
# 83. Remove Duplicates from Sorted List # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def deleteDuplicates(self, head): if not head: return None curr = head while curr.next: if curr.val==curr.next.val: curr...
[ "ais.yb.mo@gmail.com" ]
ais.yb.mo@gmail.com
51938e7c55f9356b7ec6b93bcda53735d7801af7
4cc75836f13b9829afd59eb9b2ac3a5f6b85c543
/models/final_experiment_scripts/tpc.py
4caf041f1b06ce575758e8d7cf03393137faa64a
[ "MIT" ]
permissive
TanmDL/eICU-LoS-prediction
71316bf072b3bd47e61e22df71631f6d7996e583
eb19fc84c5702595b052f436408570af314418a2
refs/heads/master
2022-11-29T04:14:11.929595
2020-08-15T10:33:46
2020-08-15T10:33:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
from eICU_preprocessing.split_train_test import create_folder from models.run_tpc import TPC from models.initialise_arguments import initialise_tpc_arguments if __name__=='__main__': c = initialise_tpc_arguments() c['mode'] = 'test' c['exp_name'] = 'TPC' c['model_type'] = 'tpc' log_folder_path =...
[ "ecr38@cam.ac.uk" ]
ecr38@cam.ac.uk
ab9caac8043a3d31ccc062a0bc33b43c65f5d2e0
d4e219c07379a08f37dff8ed9b889a1c75531e90
/pasahero/commuters/migrations/0002_allowed_routes.py
39780cec580f66546b71b54c3365d415dbe520f7
[]
no_license
SanCampos/anti-covid
c9d306f584d61b9a1e1e1bc5cda4ac7497acee55
4f4ae5f63abfb1c59e29ad4bfc8a16a4e88ff6ad
refs/heads/master
2021-05-22T16:30:55.933727
2020-04-01T14:55:14
2020-04-01T14:55:14
253,004,388
1
1
null
2020-04-04T14:38:33
2020-04-04T13:30:27
null
UTF-8
Python
false
false
850
py
# Generated by Django 2.2.5 on 2020-03-20 10:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('transportations', '0015_auto_20200320_0644'), ('commuters', '0001_initial'), ] operations = [ migra...
[ "benvillabroza1999@gmail.com" ]
benvillabroza1999@gmail.com
1a3283004646eabd4e8de4243225147a2f252f8c
e5d83ede8521027b05d9b91c43be8cab168610e6
/0x0A-python-inheritance/2-is_same_class.py
21c3ccee88f486cb44c6c4084c015a32a21f6fc8
[]
no_license
Danielo814/holbertonschool-higher_level_programming
8918c3a6a9c136137761d47c5162b650708dd5cd
832b692529198bbee44d2733464aedfe650bff7e
refs/heads/master
2020-03-28T11:09:00.343055
2019-02-22T03:33:54
2019-02-22T03:33:54
148,181,433
1
0
null
null
null
null
UTF-8
Python
false
false
307
py
#!/usr/bin/python3 """ 2-is_same_class module that tests if an object is an instance of the specified class """ def is_same_class(obj, a_class): """ returns True if obj is instance of a_class, False otherwise """ if type(obj) != a_class: return False else: return True
[ "211@holbertonschool.com" ]
211@holbertonschool.com
8a9223c0a0896e8c858df8c838ce1237053174f0
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2951/60714/272996.py
9cd79dd531efc7ba42812797b13c7e90adcf7421
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
480
py
a = input() b = input() ans1 = 0 for i in range(len(a) - 1, -1, -1): ans1 += int(a[i]) * pow(2, len(a) - i - 1) ans2 = 0 for i in range(len(b) - 1, -1, -1): ans2 += int(b[i]) * pow(3, len(b) - i - 1) flag = True if ans1 > ans2: temp = ans1 - ans2 else: temp = ans2 - ans1 flag = False while True: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
4706b93e3604fba7a00dd32cb2c085a8d838a2bd
f03155acea2660fb04576e3ed60f248b57f43d68
/migrations/versions/2e1382ecc795_.py
3c15acd95cf280dafae28d698527e449f60c6cc3
[]
no_license
hreeder/SlackInSpace
22ecb413fd31dad8707afd7ae968f895b425e452
cc44ad0834343f0616f9d5bd5f6820546b105d77
refs/heads/master
2020-04-01T23:02:27.078901
2015-05-07T13:58:26
2015-05-07T13:58:26
33,796,690
1
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
"""empty message Revision ID: 2e1382ecc795 Revises: 21ca2aa72535 Create Date: 2015-04-12 13:34:58.152000 """ # revision identifiers, used by Alembic. revision = '2e1382ecc795' down_revision = '21ca2aa72535' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
[ "harry@harryreeder.co.uk" ]
harry@harryreeder.co.uk
3da62f1e1a192e84a4f600ef64a2e48ec708cb18
fee9bae88bf4ed22b93e3e9df7806f8c897f5f25
/manage/cli_utils.py
af579c32d5dec42317b115e3f7262a4a77f93dd8
[]
no_license
fake-name/xA-Scraper
4123378c5ed87896fc389a90dfd8836cca7a5923
9eae8d1220fd0c7cabc97cef9378e4efe3361061
refs/heads/master
2023-01-27T15:33:05.349679
2023-01-22T11:39:57
2023-01-22T11:39:57
23,865,307
76
12
null
2019-06-11T12:38:27
2014-09-10T07:39:43
Python
UTF-8
Python
false
false
3,271
py
#pylint: disable-msg=F0401, W0142 import logging import psycopg2 import urllib.parse import traceback from xascraper import db from xascraper import database from settings import settings from plugins import JOBS from plugins import JOBS_DISABLED from plugins import JOBS_NO_CONF PLUGINS = { key : (cls_def, cls...
[ "something@fake-url.com" ]
something@fake-url.com
648ef60602eb9eba9c4caeb8a2ac8a960cb43412
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=10/sched.py
6b1fdcf3ee82164a4757179b8107b4b603c7ba07
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
-X FMLP -Q 0 -L 5 119 400 -X FMLP -Q 0 -L 5 86 400 -X FMLP -Q 0 -L 5 86 400 -X FMLP -Q 1 -L 2 59 175 -X FMLP -Q 1 -L 2 44 150 -X FMLP -Q 2 -L 1 38 200 -X FMLP -Q 2 -L 1 31 200 -X FMLP -Q 3 -L 1 30 125 -X FMLP -Q 3 -L 1 30 125 29 150 25 100 24 175 18 125 17 175 14 100 12 100 12 100 11 100
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
4ddae7c4756405d61f6100fe0848351c7b1e0d1b
7426522061b222e8d3336b18ff941bb98ff9626c
/qtoggleserver/core/api/funcs/backup.py
bf69f7ad08788ba2632330bd4b703b90bcaa9ddb
[ "Apache-2.0" ]
permissive
DigitEgal/qtoggleserver
82833aaeb6f0bdad5f28243f132a639f4b406001
54b6ac53742af9529fd349d4fc207b0dc8a38d3b
refs/heads/dev
2023-05-07T14:49:11.273023
2021-04-30T20:40:08
2021-04-30T20:40:08
360,039,836
0
0
Apache-2.0
2021-04-21T05:18:08
2021-04-21T05:13:07
null
UTF-8
Python
false
false
862
py
import logging from qtoggleserver.conf import settings from qtoggleserver.core import api as core_api from qtoggleserver.core.typing import GenericJSONList from qtoggleserver.system import conf as system_conf logger = logging.getLogger(__name__) @core_api.api_call(core_api.ACCESS_LEVEL_ADMIN) async def get_backup...
[ "ccrisan@gmail.com" ]
ccrisan@gmail.com
fc19c1f114424cc9ab63e7e87a0966cc3ab775aa
4a48593a04284ef997f377abee8db61d6332c322
/python/graph_and_tree/tree_structure/iterative_dfs_left_right_tree_traversal.py
56f0871fee7900fab3ae3d614ed12845a1c9b031
[ "MIT" ]
permissive
jeremiedecock/snippets
8feaed5a8d873d67932ef798e16cb6d2c47609f0
b90a444041c42d176d096fed14852d20d19adaa7
refs/heads/master
2023-08-31T04:28:09.302968
2023-08-21T07:22:38
2023-08-21T07:22:38
36,926,494
26
9
MIT
2023-06-06T02:17:44
2015-06-05T10:19:09
Python
UTF-8
Python
false
false
2,119
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2014 Jérémie DECOCK (http://www.jdhp.org) # 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 witho...
[ "jd.jdhp@gmail.com" ]
jd.jdhp@gmail.com
b9908c2801383dd89cbb0c3a1b75c7acaeba368a
e4cae3759a053ca88a936e87e3329aec203608db
/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py
0dafc2b5b76c122df008680dc360e1d5e5d4f9fd
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
a-santamaria/azure-sdk-for-python
c9413858747ccfcec2fbbefd50922c515cb4f634
9dec418ad621ac75f217e56e901f15b6624800b0
refs/heads/master
2022-05-19T00:01:07.604118
2021-02-01T22:52:25
2021-02-01T22:52:25
202,599,021
0
0
MIT
2019-08-15T19:22:33
2019-08-15T19:22:32
null
UTF-8
Python
false
false
6,215
py
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
[ "noreply@github.com" ]
a-santamaria.noreply@github.com
702475d5c06c0afe6130323ed6491fb661057ae9
8d472f9facb895dda9e1df81f3bb6c2f81b9c357
/master/bt5/slapos_wechat/SkinTemplateItem/portal_skins/slapos_wechat/PaymentTransaction_updateWechatPaymentStatus.py
faad8b2197c8500892082735e31629a8166b80c4
[]
no_license
SlapOS/slapos.core
852485eed9382685f3df6ba8532f8192bb1389c4
369e8d56636e1c59a745e68dc68154abfc5b7840
refs/heads/master
2023-08-31T04:42:34.722241
2023-08-30T15:13:08
2023-08-30T15:13:08
1,825,920
11
4
null
null
null
null
UTF-8
Python
false
false
368
py
state = context.getSimulationState() if (state != 'started') or (context.getPaymentMode() != 'wechat'): return "state not started (%s)" % state else: # ??? _, transaction_id = context.PaymentTransaction_getWechatId() if transaction_id is not None: # so the payment is registered in wechat context.Paymen...
[ "rafael@nexedi.com" ]
rafael@nexedi.com
57a5992e8ab69bc124ae719a7a981da9a13774a3
8b3bc4efea5663b356acbabec231d1d647891805
/214/Solution.py
cd011e9d4d6cb6afbfd0f914ff3c954c02a9140e
[]
no_license
FawneLu/leetcode
9a982b97122074d3a8488adec2039b67e709af08
03020fb9b721a1c345e32bbe04f9b2189bfc3ac7
refs/heads/master
2021-06-18T20:13:34.108057
2021-03-03T05:14:13
2021-03-03T05:14:13
177,454,524
2
1
null
null
null
null
UTF-8
Python
false
false
268
py
class Solution: def shortestPalindrome(self, s: str) -> str: n = len(s) t =s[::-1] if n == 0: return "" for i in range(n, 0 ,-1): if s[:i] == t[n-i:]: break return t[:n-i] + s
[ "tracylu1996@gmail.com" ]
tracylu1996@gmail.com
b86f3709de8bb3479af18ab8d8a462010242978a
4038af23324241fe74ef0604af395cac6da68b26
/Hackerrank/minimum_time_required/min_time.py
a746548f3b8f028071988d16ee4c7389c30ffae3
[]
no_license
narnat/algorithms_and_datastructures
4fd5b0fa401d3f441c522f61eceecd4f8f17010d
f319f64f1774c92ce2a94cc6106eec68215f573b
refs/heads/master
2020-09-29T05:38:41.099526
2019-12-22T21:12:53
2019-12-22T21:12:53
226,966,112
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
#!/usr/bin/python3 import math """ Minimum time required problem """ def minTime(machines, goal): l_bound = math.ceil(min(machines) * goal / len(machines)) r_bound = math.ceil(max(machines) * goal / len(machines)) while l_bound < r_bound: mid = (l_bound + r_bound) // 2 s = sum(mid // i fo...
[ "farruh1996@gmail.com" ]
farruh1996@gmail.com
1924cf501b9069a7dcfd9aa0c4af61bae2945b6d
6093dca86097633d337a8a8d13c0f7513dd33db6
/defining_classes_lecture1/LAB/02. Scope Mess.py
0afb2155d65faddf8ed0ef0538a74e99e8c08802
[]
no_license
tony-andreev94/Python-OOP
7b1e862f793193aae7be5a759314b214eef7a8c6
26c2143da12ae93f515d9e2823c0e46e0fffbaad
refs/heads/master
2023-01-28T10:18:25.901244
2020-12-10T19:40:43
2020-12-10T19:40:43
254,870,076
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# https://judge.softuni.bg/Contests/Practice/Index/1934#1 x = "global" def outer(): x = "local" def inner(): nonlocal x x = "nonlocal" print("inner:", x) return x def change_global(): global x x = "global: changed!" print("outer:", x) inner() ...
[ "tony.andreev94@outlook.com" ]
tony.andreev94@outlook.com
590af1c251015ae9d7f6be2d779f44f1e6addb1c
3fc4cac282465350d9b2983527140fc735a0d273
/0903/12_updowntest.py
3621b0dc8af94837fbda6ae7399450f1efa3502e
[]
no_license
Orderlee/SBA_STUDY
2cfeea54d4a9cbfd0c425e1de56324afcc547b81
4642546e7546f896fc8b06e9daba25d27c29e154
refs/heads/master
2022-12-25T01:08:05.168970
2020-09-27T14:57:23
2020-09-27T14:57:23
299,050,168
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# 모듈을 사용하고자 할때 import 키워드 사용 import random # random 모듈 : 랜덤한 데이터를 추출하고자 할 때 사용하는 모듈 # for idx in range(1,11): # answer = random.randint(1,100); # print(answer) # answer = 컴퓨터가 기억한 값 answer = random.randint(1,100) print('정답: %d' % answer) cnt=0 #시도 횟수 while True: # su 우리가: 입력한 숫 su = int(input('1부터 10...
[ "61268230+Orderlee@users.noreply.github.com" ]
61268230+Orderlee@users.noreply.github.com
a4e78b137f746516856f31f699789563c337e5e2
444a9480bce2035565332d4d4654244c0b5cd47b
/official/recommend/Wide_and_Deep_Multitable/src/config.py
7c268bc3ca56e954a9f8d298c9e674960db089b2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
4,013
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "chenhaozhe1@huawei.com" ]
chenhaozhe1@huawei.com
f078e52815b8d620a3bc948a26f081c1548b83be
20c4868b88fd20402ef4a6d589d7382122e48e26
/python/L1PFProducer_cff.py
315177ef15fdbf97b3a0fecf3b94d7cd6060f38f
[]
no_license
isobelojalvo/phase2Demonstrator
7134c526da7e47c67b5a32c70fe76e561b66276c
64c07512c01593d9e324fea33c61957d8e5fe6fd
refs/heads/master
2021-01-20T09:27:09.928037
2018-07-12T12:51:16
2018-07-12T12:51:16
90,258,126
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
import FWCore.ParameterSet.Config as cms L1PFProducer = cms.EDProducer("PFObjectProducer", debug = cms.untracked.bool(False), EoH_cut = cms.untracked.int32(50), HoE_cut = cms.untracked.int32(2), ...
[ "ojalvo@wisc.edu" ]
ojalvo@wisc.edu
3c3e9c924344cc2a78174033eb88efdd0652695c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03665/s598490894.py
27c1418aa65f1383e6daecca8d1c52215b4074ec
[]
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
222
py
n, p = map(int, input().split()) A = list(map(int, input().split())) U = n*100 dp = [0]*(U+1) dp[0] = 1 for a in A: for j in reversed(range(U+1)): if 0 <= j-a: dp[j] += dp[j-a] print(sum(dp[p::2]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ad70f7d8ca908f1273ae019f830e9ac792c4f170
1b30905742e50f8e45494c847c2bacdd43da21e7
/src/test50_02.py
cc5f2ee905dd75bc496c56fcdfcb1f880495e42a
[]
no_license
choijaehoon1/baekjoon_workbook
e57e30f84fafa3ffcd8da9a2238260eab29f7d9f
26966e9fc814c2099408a6b96906522f432aa602
refs/heads/main
2023-07-20T18:54:36.727559
2021-08-20T14:39:54
2021-08-20T14:39:54
352,350,916
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
from collections import deque import sys def island(x,y,cnt): visit[x][y] = 1 q = deque() q.append([x,y]) new_board[x][y] = cnt while q: x,y = q.popleft() for k in range(4): nx = x + dx[k] ny = y + dy[k] if 0<=nx<N and 0<=ny<N: if...
[ "wogns_20@naver.com" ]
wogns_20@naver.com
e548e0467e9821fefcefe8959ce76648d0c8d5b6
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/sms/migrations/0034_auto_20191007_0756_noop.py
2022476a223562183c944ac937d5515939d06c95
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
3,062
py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sms', '0033_starfishbackend'), ] operations = [ migrations.AlterField( model_name='messagingevent', name='content_type', field=models.CharField(choices=[...
[ "skelly@dimagi.com" ]
skelly@dimagi.com
d74903f5c33364fcf7a60715f24a8920190c6ec7
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/SjShObligationPut/YW_GGQQ_YWFSJHA_GU_082.py
3a8a856158287639128a7453120a01d573d4397e
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys import json sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/option/service") from OptMainService import * from OptQueryStkPriceQty import * sys.path.append("/home/yhl2/workspace/xt...
[ "418033945@qq.com" ]
418033945@qq.com
6b9fc9a69050a9b0c6db9f8b90649613a52e8654
077c91b9d5cb1a6a724da47067483c622ce64be6
/fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs/interreplay_53_l_6/openflow_replay_config.py
451f2b5836e94a2683df01ee2a01405c012fc4bd
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import OpenFlowReplayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd...
[ "cs@cs.berkeley.edu" ]
cs@cs.berkeley.edu
f697f4f21e50a268bb9b96f4632268b6cd769f87
a36eb4685fd050c8e1ecb4a333470724bd76df60
/Leetcode/Jul20/260720/q3/q3.py
1f406db0251d7cdda7716651a8d622110954fbbd
[]
no_license
phibzy/Contests
c9cff976909234cfafc51db9d9dde01c26123168
24aac4c81f34916945be03ed0b7c916dae4dbbb4
refs/heads/master
2023-01-20T06:23:06.837937
2020-11-30T06:54:58
2020-11-30T06:54:58
265,750,701
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
#!/usr/bin/python3 """ @author : Chris Phibbs @created : Sunday Jul 26, 2020 13:14:31 AEST @file : q3 """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = rig...
[ "phibzy@gmail.com" ]
phibzy@gmail.com
1d71e6128516fc6148c21ca11b9959d94edff31c
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py
fa09dc67deb019afa1bced230916cbee2dc65c51
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
3,389
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import re...
[ "noreply@github.com" ]
manoj0806.noreply@github.com
5bcf0dda20970a9d1a8e0b883d785cd389b0b7f1
b853c16efafa74a9e1cb076008a17c9d85389fca
/HOME/笔记/待整理笔记/线程/12.23-t/alarm.py
f1cf5c62caf9f6032bd2f21d19cba926cd7085c8
[]
no_license
Jason0221/backup
14c48f1adb871b915d6f0ba49a26396e7cf0cd64
dfd54cbcf7c27b0df6249104747e9a7ceffcb392
refs/heads/master
2020-06-03T13:14:39.751679
2017-05-15T08:50:38
2017-05-15T08:50:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
#!/usr/bin/python import signal import time signal.alarm(5) time.sleep(3) num = signal.alarm(4) print num #signal.pause() while True: time.sleep(1) print "wait....."
[ "jasonlearning@outlook.com" ]
jasonlearning@outlook.com
566258060889cb72a0fb1766a1d2280c6a668f14
3f1ba75a78568754f221988e69c17df20d69aa8d
/day07/03-函数嵌套.py
2ebe517f1f2fe89e1c2c4612d6eee9c92c05275e
[]
no_license
itkasumy/LNHPython
8d2a961c6446923cebc4e4bb99ed4631a90cf3d5
4a5c0e7991e167b0406c1e56bae73899dd90390b
refs/heads/master
2020-04-15T10:16:51.981833
2019-01-25T08:34:07
2019-01-25T08:34:07
164,589,222
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
def father(name): print('from father %s' %name) def son(): print('from son') def grandson(): print('from grandson...') grandson() son() father('ksm')
[ "18500682038@163.com" ]
18500682038@163.com
74de8906c049b86432a83972f2d2a1cd447e69ad
835db5ec0fc127df1de58a9a3af4a869a1a7cd84
/assignments/functions/every_other_chr.py
5720eb6ef06ff3a5f6025e13d3a57aff21b84fc7
[]
no_license
thorhilduranna/2020-3-T-111-PROG
3ba097e1b54d68bdd6efbf1d7f90911a9336fa5a
c9758b61256aa6e39a3308e576c8ad0bf2b6d027
refs/heads/master
2023-02-09T23:39:22.879653
2021-01-07T12:59:19
2021-01-07T12:59:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
def every_other_chr(a_str): '''Returns a new string containing every other character in a_str.''' return a_str[::2] input_str = input("Enter a string: ") print("Every other character:", every_other_chr(input_str))
[ "hrafnl@gmail.com" ]
hrafnl@gmail.com
37f2ba7809ae2039b8567f6cd6be0f8f8ebe2447
88eeba6df8382687f36a4765bb298f76465c8e81
/general/chainerrl/chainerrl/chainerrl/q_function.py
b47c78e34912c52abd9195222df91db7c7c75e7c
[ "MIT" ]
permissive
daniellawson9999/quick_start
db0b6e382efd640754ca1e7800753c94e668423a
947d61f118433dcd4cb845f27649ebfbc8062ecc
refs/heads/master
2022-02-23T21:54:16.273530
2019-09-27T01:46:41
2019-09-27T01:46:41
197,873,032
0
0
null
2019-07-20T03:12:34
2019-07-20T03:12:31
null
UTF-8
Python
false
false
673
py
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import * # NOQA from future import standard_library standard_library.install_aliases() # NOQA from abc import ABCMeta from abc import abstractmet...
[ "daniellawson9999@gmail.com" ]
daniellawson9999@gmail.com
73f8720174f8e6518ef3716c337664d59c628864
82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8
/solutions/Ambiguous Coordinates/solution.py
309717524e6eb2befded94b0bafc3907f4e2069b
[ "MIT" ]
permissive
nilax97/leetcode-solutions
ca0f9545ce70975617738f053e0935fac00b04d4
d3c12f2b289662d199510e0431e177bbf3cda121
refs/heads/master
2023-05-14T02:21:48.893716
2021-06-08T13:16:53
2021-06-08T13:16:53
374,466,870
3
0
null
null
null
null
UTF-8
Python
false
false
597
py
class Solution: def ambiguousCoordinates(self, S: str) -> List[str]: def make(frag): N = len(frag) for d in range(1, N+1): left = frag[:d] right = frag[d:] if ((not left.startswith('0') or left == '0') and (not r...
[ "agarwal.nilaksh@gmail.com" ]
agarwal.nilaksh@gmail.com
4291ea8563309410ba811f227c3159ae6c856f88
cc0e381fde5cc6870770396d990d2bad66a3186c
/PythonExercicios/ex006.py
653eff93c4c8ecd980c2238d4ae97cf870bd2c40
[]
no_license
jnthmota/Python-PySpark-Cursos
2c7fac79867059e0dfe4f0c4b6b6e1d32260530f
680a4c422e14a26036379f49f0de6b5e73d7e431
refs/heads/main
2023-08-15T00:22:59.189649
2021-09-12T23:00:39
2021-09-12T23:00:39
373,610,471
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
#06)CRIE UM ALGORITMO QUE LEIA UM NÚMERO E MOSTRE O SEU DOBRO, TRIPLO E RAIZ QUADRADA a = int(input('Digite um valor: ')) d = a * 2 t = a * 3 #rq = a ** (1/2) #OU rq = pow(a, (1/2)) #POW BASE EXPONENCIAL ** print('O seu dobro de {} é: {} \n O seu triplo de {} é: {} \n A raiz Quadrada de {} é: {:.4}'.format(a, d, a, t,...
[ "jonathan.mota@outlook.com" ]
jonathan.mota@outlook.com
21e359d18b7e8e9f78fb251a5fb993843cc4ce54
762bd83dd4c96a6a5890e21b14252104fcfdc51f
/hw_2/code/conftest.py
24d17a5bcb26cb484469f373c9bd8b63c1ad7deb
[]
no_license
Batroff/2021-1-MAILRU-SDET-Python-S-Savranskii
1c1207bd9b22e9f2bd99af40767d6507e63c7380
133efd2960ddacc51ec7cba29bd7fce5e29223d9
refs/heads/main
2023-06-02T18:06:05.752307
2021-06-16T15:23:03
2021-06-16T15:23:03
349,384,217
0
0
null
2021-06-11T13:14:27
2021-03-19T10:28:47
Python
UTF-8
Python
false
false
1,976
py
import logging import os import shutil import allure from ui.fixtures import * def pytest_addoption(parser): parser.addoption('--url', default='http://www.target.my.com') parser.addoption('--browser', default='chrome') parser.addoption('--debug_log', action='store_true') def pytest_configure(config): ...
[ "savran46@mail.ru" ]
savran46@mail.ru