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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7eada46e184e56ffe1faad35d8e3ba614acbbfa3 | bb31c0062354bbb0df70692e904c949a00973503 | /21_list_pop.py | 0426fabad056ce4b67e15136066a60f3c05bd401 | [] | no_license | millanmilu/Learn-Python-with-Milu- | c42df5aa7832fba75015b7af29d6009489e00ec5 | 3b4714b849dff0a0ef3cc91fd102840fbcf00e43 | refs/heads/master | 2022-04-26T03:29:38.990189 | 2020-04-28T13:17:28 | 2020-04-28T13:17:28 | 259,634,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | names = ['milu', 'Misan', 'millan', 'Babloo', 'anil']
print("It delete items from end of the list ")
names.pop()
print(names)
print("pop(0) returns the head (start), pop() or pop(-1) returns the tail(end)")
print(names.pop(0))
print(" LIFO -LAST IN ,FIRST OUT ;FIFO - FIRST IN ,FIRST OUT")
"""It’s computing jar... | [
"noreply@github.com"
] | millanmilu.noreply@github.com |
5d02854a055be280f4890d03f09c82e468df1e6f | f25d477be296a63aac156c8dd907397dc156024c | /vse/handlers/test.py | 421833f5a7e1c7a36c32d33ccd95e6f2e490ca40 | [] | no_license | cbaxter1988/validation_scripting_engine | f4e0a834632b5499c4d7a13b18d9208b27296325 | 86a8bd5061016f838747ea045bf3e32c0dd98e94 | refs/heads/master | 2022-11-23T05:23:05.343104 | 2020-07-22T06:55:47 | 2020-07-22T06:55:47 | 275,946,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from vse.handlers import Handler, HandlerResult
class TestHandler(Handler):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def execute(self, **kwargs) -> HandlerResult:
poked = self.params.get("poked", False)
if poked:
self.result.status = True
sel... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
2a6703236f533adc6ad37da1e13ce782b2c31505 | cc0da95420131620ab5d49c48b38d038f1b67833 | /scripts/update_reddit_cache.py | 2a4e92028b31bb97d2afa82e4882bff9491f28f0 | [
"MIT"
] | permissive | madeyoga/Nano-Bot | 4daee9a74351ca64329ec33ee7b565bba4cf3616 | 3966957d229aa2e3ea9945b2d9a96fb3353b910c | refs/heads/master | 2022-06-25T17:36:41.610957 | 2022-06-13T04:03:05 | 2022-06-13T04:03:05 | 140,231,221 | 13 | 10 | MIT | 2021-09-27T11:11:19 | 2018-07-09T04:28:35 | Python | UTF-8 | Python | false | false | 1,053 | py | import os
import praw
class Subreddits:
MEMES = "memes"
DANKMEMES = "dankmemes"
WTF = "wtf"
GRANDORDER = "grandorder"
WAIFU = "Waifu"
SCATHACH = "scathach"
FGOFANART = "FGOfanart"
ANIME = "anime"
ANIMEMES = "Animemes"
AWWNIME = "awwnime"
AZURELANE = "AzureLane"
TSUNDERES... | [
"vngla21@gmail.com"
] | vngla21@gmail.com |
0c03f297ce168a7e9f0f9498333600c01a37b205 | 2c78b0b78f57dda018fe382a4ddda964eb3e68fd | /基础练习/jisuanji.py | f3732c06954f05def4711a8b00ef2dbfd787d19d | [] | no_license | Cola1995/s3 | 3a4621035928dcaa42c3117d25e88cf46a5f0721 | d5612d63dac415f861d379b20ba6a165faf213ae | refs/heads/master | 2020-04-13T14:14:38.753238 | 2019-03-22T01:36:46 | 2019-03-22T01:36:46 | 163,255,923 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import re
suan='1+(9+3*1-4+(1+4+(2+1*2+4/2)+(1+1))+(2*4))'
f=re.search('\([^()]*\)',suan).group()
print(f)
s='(2+1*2+1*3+3*3+9/3)'
s_t=''
if '*'or '/' in s:
for i in s:
if i=='*':
jie=int(s[s.index(i)-1])*int(s[s.index(i)+1])
s=s.replace(s[s.index(i)-1:s.index(i)+2],str(jie... | [
"991571566@qq.com"
] | 991571566@qq.com |
40f03b4a47d7607f7ead87b54fbca5de90f106d2 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/study/others_program.py | eaf139b4920f4137f30074773b3a1a6c7017c4b9 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | const request = require('request');
const uuidv4 = require('uuid/v4');
/* Checks to see if the subscription key is available
as an environment variable. If you are setting your subscription key as a
string, then comment these lines out.
If you want to set your subscription key as a string, replace the value for
the O... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
19338b9bbddbf1b84311569fecdfa9bf70ae8287 | d5552cda58e251e6a5983876681be8f641dea86f | /src/transformers/models/resnet/configuration_resnet.py | 2d0dbc3b0fdb409f4150d985484321766f1fcd44 | [
"Apache-2.0"
] | permissive | patrickvonplaten/transformers | feb121e1ee82c317ac7561836b8f95a7de25fc1f | f738502979f6787609dcf0180e6606f464692e27 | refs/heads/master | 2022-12-08T10:15:34.743198 | 2022-11-22T11:00:20 | 2022-11-22T11:00:20 | 226,201,271 | 6 | 1 | Apache-2.0 | 2019-12-05T22:39:46 | 2019-12-05T22:39:45 | null | UTF-8 | Python | false | false | 5,262 | py | # coding=utf-8
# Copyright 2022 Microsoft Research, Inc. and The HuggingFace Inc. team. 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/lice... | [
"noreply@github.com"
] | patrickvonplaten.noreply@github.com |
d64428aa8ab4edc892e4df136959e62393a5edc2 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/datashare/v20201001preview/get_blob_data_set.py | 79ae160c76b7217e3429731faca4a1ab166ad90b | [
"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 | 7,209 | 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
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
567fe246643d90abf4f7c5c8def3e5303b8e0179 | 76aa894988b3123306030240512c1e5039b2bc75 | /scripts/0123456789abcdef/scripts/test.py | a00e67ecd316ddd7fcd81238dbdad019b22636b8 | [] | no_license | puppycodes/powny | 4c2a554ed63c2f3a80a77ccefb491d00f951d877 | a5f20ff667c2f93b72b63865f70e25b26e6d4b30 | refs/heads/master | 2021-01-23T06:29:19.506593 | 2016-06-07T16:26:48 | 2016-06-07T16:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import urllib.request
from powny.core import (
expose,
save_job_state,
get_cas_storage,
)
# =====
@expose
def empty_method(**event):
pass
@expose
def do_urlopen(url, **_):
for _ in range(3):
urllib.request.build_opener().open(url)
save_job_state()
@expose
def failed_once(url):... | [
"mdevaev@gmail.com"
] | mdevaev@gmail.com |
32d3b8ebb43363cbb91b951fbc4078445b9f7fb5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03284/s003568973.py | 45c2a69f388a3afddf0d39105674a680865408b9 | [] | 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 | 81 | py | a,b=map(int,input().split())
N = a / b
if N > int(N):
print(1)
else:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e25ef155d81ca596891f43af8a1402d173ee151a | 3d705ec48c94373817e5f61d3f839988910431e3 | /lib/platform/dataprocess/spark_compute/makedata/peer_info.py | 3f6afbe05e41f38830ab26399afc5b95bae3bef5 | [] | no_license | namesuqi/zeus | 937d3a6849523ae931162cd02c5a09b7e37ebdd8 | 3445b59b29854b70f25da2950016f135aa2a5204 | refs/heads/master | 2022-07-24T14:42:28.600288 | 2018-03-29T08:03:09 | 2018-03-29T08:03:09 | 127,256,973 | 0 | 0 | null | 2022-07-07T22:57:57 | 2018-03-29T07:53:16 | Python | UTF-8 | Python | false | false | 3,470 | py | from lib.platform.dataprocess.spark_compute.test_data import *
from lib.platform.dataprocess.spark_compute.commontool.timestamp_conversion import *
import random
import os
class PeerInfo(object):
def make_data(self, hour=''):
data_format = '%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x1f%s\x... | [
"suqi_name@163.com"
] | suqi_name@163.com |
a402dc5d1b9114362a3f2e00c3684052fdeaf84f | 814176f8e051575b7ab7a98ae5c72b7885273fcd | /APS/NXsas/create_nexus_data.py | 4798c7751bf1b18a5545572ffbda896908fedda8 | [] | no_license | nexusformat/exampledata | af21f0beb17b60c6375a14e982ac06e274639ada | eae516807ef7e27d1c45aab3af3a64a679154677 | refs/heads/master | 2022-12-23T18:06:46.916518 | 2022-12-16T15:50:38 | 2022-12-16T15:50:38 | 20,968,421 | 7 | 6 | null | 2022-06-15T08:04:58 | 2014-06-18T15:59:54 | Python | UTF-8 | Python | false | false | 20,635 | py | #!/usr/bin/env python
'''
create NeXus data file with the image data from these area detector data files
stores data according to the **NXsas** application definition
:deviation: **NXsas** describes a single frame raw 2-D SAS data image.
We store a set of 2-D SAS images as a 3-D array.
:deviation: **NXsas** sto... | [
"prjemian@gmail.com"
] | prjemian@gmail.com |
073851a943ecfbba860f359ce7670d7e63e858a9 | 73bba8f2c52f53739d899c7580affc4ec926c65e | /trax/tf_numpy/jax_tests/lax_numpy_test.py | 3923655f7e7687552ce7f9645c7be7791a908511 | [
"Apache-2.0"
] | permissive | weiddeng/trax | 2a46e603a2e8b7fd1d31d80d87ca28b755b94b6f | 084c5159235da4d32a0116bf3fa13f71a09e10d3 | refs/heads/master | 2022-12-26T01:15:18.556592 | 2020-10-09T02:17:45 | 2020-10-09T02:17:45 | 298,895,884 | 0 | 0 | Apache-2.0 | 2020-09-26T20:38:29 | 2020-09-26T20:38:29 | null | UTF-8 | Python | false | false | 135,944 | py | # coding=utf-8
# Copyright 2020 The Trax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
124b6b6f688fe6ce26cff3df5a495cc90d430f4d | 556403cb93b2fdd464c3aef4cba4f1c3dc42e9d7 | /Python/ForLoop.py | 4e886ca3f9f96d620db34733d62e1450effea765 | [] | no_license | msivakumarm/PycharmProjects | 4d90a0105f334f2393d30fe46dc650808002b4fd | 7d84194a576f9ec8356ff272642d07dbddc48d42 | refs/heads/master | 2020-09-06T14:42:12.945424 | 2019-11-08T11:42:14 | 2019-11-08T11:42:14 | 219,989,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #print 0 to 9 numbers
for i in range(10): #bydefault starting value is 0
print(i) # 0 1 2 3 4 5 6 7 8 9
#print 1 to 10
for i in range(1,11):
print(i)
#print even numbers
for i in range(2,10,2): #initial value , max value , increment/decrement
print(i) # 2,4 ,6 ,8
#print odd numbers
for i in range(1,1... | [
"sivakumarm.mamillapalli@gmail.com"
] | sivakumarm.mamillapalli@gmail.com |
8b9167feeea3cb86a5059b7693f5777d6917802b | 8ed80561e1b3c0bcdb6201cae8af845d5da23edc | /guppe/exercicios_secao_4/ex_52.py | 03b73be3042b8d029004922244ad7e3f88b9bf58 | [] | no_license | Fulvio7/curso-python-guppe | 42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb | 98966963f698eb33e65ed58a84f96e28f675848a | refs/heads/main | 2023-08-28T13:31:12.916407 | 2021-10-09T19:03:17 | 2021-10-09T19:03:17 | 415,393,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | """
52- Três amigos jogaram na loteria. Caso eles ganhem, o prêmio deve
ser repartido proporcionalmente ao valor que cada um deu para a
realização da aposta. Faça um programa que leia quanto cada um investiu,
o valor do prêmio, e imprima quanto cada um ganharia do prêmio com base
no valor investido.
"""
print('===== LO... | [
"fulvio.barichello@gmail.com"
] | fulvio.barichello@gmail.com |
21131ff81ef9cdc75d8619c4d34ef8e46db5e505 | e000db56febfc79ee1586804265d11fca4adfe59 | /venv/Session10C.py | a2e284ab8113fcbc461a2760a8314be4f2161fd1 | [] | no_license | ishantk/PythonSep72018 | 2210bb1747752309eb5ef431988e2197e393cf2d | 5413c0061dd644166eeb3539d75b7404c6ea12d9 | refs/heads/master | 2020-03-28T06:11:41.991398 | 2018-11-19T12:08:55 | 2018-11-19T12:08:55 | 147,819,901 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # import Session10B
# from Session10B import Employee
from Session10B import executeCode as ec
from Session10B import Employee as Emp
e = Emp()
print(e.sayHello())
# executeCode()
print("------")
ec()
print(e)
# print(e.__str__())
# print(e.__repr__()) | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
56e8bde9ffb7f935eb6133525959ad0da3b83ac1 | 41a4eeaf62a36d7c57ad55393996787bb55ba6b7 | /venv/lib/python3.7/site-packages/pykube/objects.py | 41eeca2a760b4314d9abfbe86a7308a455a3c581 | [] | no_license | jicowan/group-operator | c7a20ff03584da9ace19489bc3d27b9fb22a066c | bac6e51aef0d9836679621e3ce7e55f4c1ead402 | refs/heads/master | 2021-07-14T11:45:30.062219 | 2019-09-26T15:26:52 | 2019-09-26T15:26:52 | 209,454,861 | 10 | 4 | null | 2021-07-01T17:23:07 | 2019-09-19T03:29:54 | Python | UTF-8 | Python | false | false | 14,826 | py | import copy
import json
import os.path as op
from inspect import getmro
from typing import Type
from urllib.parse import urlencode
from .exceptions import ObjectDoesNotExist
from .mixins import ReplicatedMixin, ScalableMixin
from .query import Query
from .utils import obj_merge
class ObjectManager:
def __call__(... | [
"jicowan@f0189801a302.ant.amazon.com"
] | jicowan@f0189801a302.ant.amazon.com |
0883e9291c134db423f5c47f4e0a3a398efa6b87 | eccbb87eefe632a1aa4eafb1e5581420ccf2224a | /July-kaggle/avazu-ctr-prediction/model_bak.py | 2002edbf0f47c4ffe558c3a8a29057ba79a16674 | [] | no_license | jianjunyue/python-learn-ml | 4191fc675d79830308fd06a62f16a23295a48d32 | 195df28b0b8b8b7dc78c57dd1a6a4505e48e499f | refs/heads/master | 2018-11-09T15:31:50.360084 | 2018-08-25T07:47:20 | 2018-08-25T07:47:20 | 102,184,768 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,404 | py | import numpy as np
import pandas as pd
# data precession
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import KFold
# model
from xgboost import XGBRegressor
# from lightgbm import LGBMRegressor
from sklearn.svm import SVR
from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegre... | [
"409494312@qq.com"
] | 409494312@qq.com |
55b52bf6e5b94c9f78ec06e048d71bd52b96f552 | d1aa7e50a50e6a3e44749644d164e19a6f8485f7 | /UpDn_vqa/train.py | 5afd5848bfd1d604f3b37fae3f4ca81d92b932fa | [] | no_license | qwjaskzxl/VQA | 12461f30780893ff8514bb6a17fcef1aba5ae224 | 705edeb0b80a7e301add2268d87470a02f3ab258 | refs/heads/master | 2020-12-10T13:07:19.112014 | 2020-03-03T12:20:02 | 2020-03-03T12:20:02 | 233,603,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | import os
import time
import torch
import torch.nn as nn
import utils
from torch.autograd import Variable
def instance_bce_with_logits(logits, labels):
assert logits.dim() == 2
loss = nn.functional.binary_cross_entropy_with_logits(logits, labels)
loss *= labels.size(1)
return loss
def compute_score... | [
"870384605@qq.com"
] | 870384605@qq.com |
94e32b511c5aa4abadb9aca7547688252e7e2540 | 82205ef1622ef3bb3bd4982f6ddc52509686af8c | /numba2/compiler/typing/inference.py | 1482ffd594d9b48c5ccf89a3aff8b46f4f2e8059 | [] | no_license | cooperliu101/numba-lang | 22f1567e17cd7cf831f254bf64bc7e3192c973c3 | 37abfcbb516175153e73474dababb2d89cba7a8b | refs/heads/master | 2021-07-21T14:35:23.943243 | 2013-11-15T12:07:53 | 2013-11-15T12:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,509 | py | # -*- coding: utf-8 -*-
"""
Cartesian Product Algorithm. We consider types as sets of classes (Sum) and
infer using the cartesian product of the argument sets/types.
Note that promotion is handled through overloading, e.g.:
@overload('α -> β -> γ')
def __add__(self, other):
return other.__radd__(self... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
e7706c9c880387da59ac49f8aa30a68916b0a45d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /T3p8AkyXcE9ALkWbA_9.py | 064d3b2bb82263a46190b538dd1a0cef90d0e288 | [] | 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 | 702 | py | """
Given a sandwich (as a _list_ ), return a list of fillings inside the
sandwich. This involves **ignoring** the first and last elements.
### Examples
get_fillings(["bread", "ham", "cheese", "ham", "bread"]) ➞ ["ham", "cheese", "ham"]
get_fillings(["bread", "sausage", "tomato", "bread"]) ➞ ["sausage... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
86cd3845af903809196a1520a7ec45b2e8b97071 | 66eb164d6db38c7e25949179025b0f9afc8887c8 | /midterm/task1/main/views.py | 0fc78fcab702bf3363f45bb1808c62641d6e8ab8 | [] | no_license | akbota123/BFDjango | 89c273c68464768ddbc1fbd7253fad59e071feb0 | 0209486f3fe74158f5768933b583bc328f578186 | refs/heads/master | 2020-03-28T02:50:45.374114 | 2018-11-25T08:11:59 | 2018-11-25T08:11:59 | 147,601,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from datetime import datetime, timedelta
from .models import User, Restaurant, Review, Dish, RestaurantReview, DishReview
from .forms import UserForm, RestaurantForm, DishForm, ReviewForm
from django.contrib.auth.decorators import login_... | [
"akbota.mamadyarova98@gmail.com"
] | akbota.mamadyarova98@gmail.com |
e47fed16f9926c78b145bcf701a21250ca615ad4 | 1e9c67785cd2a07fbd12b63bd93a2eba2272f237 | /image_task_classif/batch_util_classif.py | 61b5d4ffde0b566ae90f6a25bd11e0afa531f23c | [] | no_license | monisha-jega/mmd | 2975d0f77bce4db38795fa201f515f35498f0eb3 | d4f9d2c94409c2877ff5a5a2242e7e7ed2f87921 | refs/heads/master | 2022-07-20T17:01:39.043859 | 2020-05-16T23:31:35 | 2020-05-16T23:31:35 | 264,543,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,717 | py | import numpy as np
from parameters_classif import *
import pickle
from annoy import AnnoyIndex
if use_images == True:
#Load annoy file for image representations
url_to_index = pickle.load(open(annoy_dir+"ImageUrlToIndex.pkl", 'rb'))
#print(type(url_to_index))
#print(url_to_index)
a = AnnoyIndex(ima... | [
"monishaj@Monishas-MacBook-Pro.local"
] | monishaj@Monishas-MacBook-Pro.local |
34055a4fe950c03e9b14fbf71245f7018cd9a95f | 07bae7671cac165fb91554343396ee1343c6363d | /function1/function11.py | 6270f172902973c8623b78a4b6be14ec8266b9d7 | [] | no_license | quyixiao/python_lesson | 7869dfd3aec8f5b6500ae955ae5c50a956f7b4c3 | 81684d06e6f054049fa79b0e63ab528bdc46581f | refs/heads/master | 2021-06-28T08:01:02.937679 | 2021-03-11T10:29:57 | 2021-03-11T10:29:57 | 221,687,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | def foo(xyz=None,u = 'abc',z = 123):
if xyz is None:
xyz = []
xyz.append(1)
print(xyz)
return xyz
foo()
print(1,foo.__defaults__)
foo()
print(2,foo.__defaults__)
foo([10])
print(3,foo.__defaults__)
foo([10,5])
print(4,foo.__defaults__)
lst = [5]
lst = foo(lst)
print(lst)
print(5,foo.__default... | [
"2621048238@qq.com"
] | 2621048238@qq.com |
5f032aa8c9470c0b7a0d2698e0f484ed42feb7cc | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/35_v5/top_n.py | fc535d7af4fae5ca8aea70499c63cf182862e79f | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,234 | py | # ____ d__ _______ d__
# _______ h__
# ____ o.. _______ attrgetter
#
# numbers [0, -1, 1, -2, 2, -3, 3, -4, 4, -5, 5, -6, 6]
# dates d__(2018, 1, 23, 0, 0),
# d__(2017, 12, 19, 0, 0),
# d__(2017, 10, 15, 0, 0),
# d__(2019, 2, 27, 0, 0),
# d__(2017, 3, 29, 0, 0),
# d__(2018, ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
38d947232299ad04c89673960d4d7fc528235c35 | bc82de9237a6aa28fd7623a27b35c02ae8416702 | /allennlp/tests/commands/find_learning_rate_test.py | fa5455329127956fbabfd92e198daeec932fcf4a | [
"Apache-2.0"
] | permissive | Snnzhao/GrailQA | 78190a8a5bae934c07f4035786f658ef4764c510 | e89e66380402e51bac56f59c7d24d4400bcd11b6 | refs/heads/main | 2023-04-26T19:49:21.683922 | 2021-04-11T09:40:34 | 2021-04-11T09:40:34 | 370,937,323 | 1 | 0 | Apache-2.0 | 2021-05-26T07:00:21 | 2021-05-26T07:00:20 | null | UTF-8 | Python | false | false | 9,155 | py | # pylint: disable=invalid-name,no-self-use,bad-continuation
import argparse
import os
import pytest
import torch
from allennlp.common import Params
from allennlp.data import Vocabulary, DataIterator
from allennlp.models import Model
from allennlp.common.checks import ConfigurationError
from allennlp.common.testing im... | [
"gu.826@cse-cnc196739s.coeit.osu.edu"
] | gu.826@cse-cnc196739s.coeit.osu.edu |
559cc23ee0088ba255f51cac038b41d9882f11cc | 2eab4a6fa0b525dc49fe06fd3c8f4e56dabe2ad2 | /python/Calculate Fibonacci return count of digit occurrences.py | f7180023010e239d0de95d1cb3b45a34f5c8b4ea | [] | no_license | bthowe/codewars | 6563aa2c49bb876d3945620a27f95940f75130c6 | fea2593c24b9e7f89ee33d1afb31581364e6f567 | refs/heads/master | 2020-07-01T02:59:35.113100 | 2017-02-06T19:57:34 | 2017-02-06T19:57:34 | 74,102,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from collections import Counter
def fib(n):
n0 = 0
n1 = 1
count = 1
while count<n:
n2 = n0 + n1
n0 = n1
n1 = n2
count+=1
if n==0:
return 0
elif n==1:
return 1
else:
return n2
def fib_digits(n):
fib_num = fib(n)
return sorted... | [
"b.travis.howe@gmail.com"
] | b.travis.howe@gmail.com |
c288c47b0ee58b847eafd53a54b97c0dbe7b513b | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /SWEA/5202_화물 도크.py | b568642b10f3da83d05c58573e217c3b11c3bb77 | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # 문제
# SWEA 5202 - [파이썬 S/W 문제해결 구현 3일차] 탐욕 알고리즘 - 화물 도크
# 나의 코드
T = int(input())
for tc in range(T):
N = int(input())
time = []
Lorry = []
for i in range(N):
time.append(list(map(int, input().split())))
time.sort(key = lambda i:i[1])
Lorry.append(time[0])
for k in ran... | [
"shjang113@gmail.com"
] | shjang113@gmail.com |
b37de288b6b30b48e14d7fb169d4d8fe6c4bbccd | dac12c9178b13d60f401c4febff5569af8aa2719 | /cvat/apps/engine/migrations/0050_auto_20220211_1425.py | 67322fca1254fb9f2986368a567e10d4f4876a05 | [
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | opencv/cvat | 39dc66ca20f972ba40b79c44d7ce43590dc0b0b5 | 899c9fd75146744def061efd7ab1b1c6c9f6942f | refs/heads/develop | 2023-08-19T04:27:56.974498 | 2023-08-18T09:58:25 | 2023-08-18T09:58:25 | 139,156,354 | 6,558 | 1,887 | MIT | 2023-09-14T12:44:39 | 2018-06-29T14:02:45 | TypeScript | UTF-8 | Python | false | false | 822 | py | # Generated by Django 3.2.12 on 2022-02-11 14:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('engine', '0049_auto_20220202_0710'),
]
operations = [
migrations.RemoveField(
model_name='trainingprojectimage',
name='task... | [
"noreply@github.com"
] | opencv.noreply@github.com |
ff48941968979ef0668d6935a7cf5d692a04351b | dfeeb6f8a691c104898eee7b9ecefe8015d40f7c | /Pyhton tutorial /132Advanced_Python_Iterators_for_Dictionaries.py | 022a96ddd6c7fba038120681284d26abfe48c699 | [] | no_license | narendra-ism/Python_tutorial_basic_ | 9277926dbfc707a761abe2ddebafb0855249fb68 | 29c2ebd5e7095bfda02d8c03d0afb65a85efe05d | refs/heads/master | 2021-03-30T20:46:17.444715 | 2018-03-12T05:29:16 | 2018-03-12T05:29:16 | 124,831,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 11 18:02:08 2018
@author: narendra
"""
my_dict = {
'name': 'Nick',
'age': 31,
'occupation': 'Dentist',
}
for key in my_dict:
print(key, my_dict[key]) | [
"narendra11d@gmail.com"
] | narendra11d@gmail.com |
233968b08a8860b9777fb772c495dd55648ccf25 | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/PackedFile.py | d99de4c183bf5223a17fa706010d5076230aea26 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 25 | py | PackedFile.size = None
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
3f52a9fa1febbb8892a9673e2e7cb36cd16cbc1f | 6ad41d9b76360c8007b494616374e9e0474f4da8 | /mitogen/debug.py | 8cb1a3675469ddfbcbaf2b70875a73d0235d6d62 | [
"BSD-3-Clause"
] | permissive | danielcompton/mitogen | a1f46aec5766a1309a4a0fb89aac6fcb72d1ee89 | 2813d1a968d6f694514a0053d094c0da9ea4863b | refs/heads/master | 2021-04-17T20:48:30.103447 | 2018-03-25T09:13:20 | 2018-03-25T09:13:20 | 126,739,845 | 0 | 0 | BSD-3-Clause | 2018-03-25T21:00:54 | 2018-03-25T21:00:54 | null | UTF-8 | Python | false | false | 3,279 | py | # Copyright 2017, David Wilson
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2.... | [
"dw@botanicus.net"
] | dw@botanicus.net |
b6c563a3591bfe9763c33179bd4e387dea5f53bf | d73409535734a788af83a9b2b2e32dd1b979d5d2 | /proxySTAR_V3/certbot/acme/acme/jws.py | f9b81749ab1db42de1e3654eef04f98432698ff3 | [
"Apache-2.0",
"MIT"
] | permissive | mami-project/lurk | adff1fb86cb3e478fe1ded4cbafa6a1e0b93bfdd | 98c293251e9b1e9c9a4b02789486c5ddaf46ba3c | refs/heads/master | 2022-11-02T07:28:22.708152 | 2019-08-24T19:28:58 | 2019-08-24T19:28:58 | 88,050,138 | 2 | 2 | NOASSERTION | 2022-10-22T15:46:11 | 2017-04-12T12:38:33 | Python | UTF-8 | Python | false | false | 2,145 | py | """ACME-specific JWS.
The JWS implementation in acme.jose only implements the base JOSE standard. In
order to support the new header fields defined in ACME, this module defines some
ACME-specific classes that layer on top of acme.jose.
"""
from acme import jose
class Header(jose.Header):
"""ACME-specific JOSE He... | [
"diego.deaguilarcanellas@telefonica.com"
] | diego.deaguilarcanellas@telefonica.com |
fb9e77575fffbd38ca11b3a18550c06b11795d67 | 98d2f9be98e5720cce5cb8da1f21b82c08b2f0ec | /src/transformers/models/barthez/tokenization_barthez.py | 428f6fec654661edb0a5d8b3bc73135477561e47 | [
"Apache-2.0"
] | permissive | MANISH007700/transformers-1 | 80dd47a47e481e26d7d3bd208f7efa4c6df4d10b | 5bf5d50c8dae2e54327a754aa476f13a0308f844 | refs/heads/master | 2023-04-02T23:40:39.871802 | 2021-04-08T12:22:58 | 2021-04-08T12:22:58 | 355,976,918 | 1 | 0 | Apache-2.0 | 2021-04-08T16:22:45 | 2021-04-08T16:22:44 | null | UTF-8 | Python | false | false | 11,446 | py | # coding=utf-8
# Copyright 2020 Ecole Polytechnique and the HuggingFace Inc. team.
#
# 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
#
# Unles... | [
"noreply@github.com"
] | MANISH007700.noreply@github.com |
e29d8f2fff001a00232b614fc5f9ef322f588e70 | b9eb496c4551fd091954675a61382636fc68e715 | /src/ABC1xx/ABC14x/ABC145/ABC145A.py | d67371adc8709b9e59bd885084578a459b075261 | [] | no_license | kttaroha/AtCoder | af4c5783d89a61bc6a40f59be5e0992980cc8467 | dc65ce640954da8c2ad0d1b97580da50fba98a55 | refs/heads/master | 2021-04-17T16:52:09.508706 | 2020-11-22T05:45:08 | 2020-11-22T05:45:08 | 249,460,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | def main():
print(int(input())**2)
if __name__ == "__main__":
main()
| [
"kthamano1994@gmail.com"
] | kthamano1994@gmail.com |
b598f0eb2b805c60cbd9476ff493934ffdf9de4e | b129c9b11e9d2c06114f45ce03a94f4f2a177119 | /hugin/haproxy/configuration.py | a0d3263efdc2cedcdfab838f248cfbc7c2003847 | [] | no_license | pyfidelity/hugin.haproxy | a9e48e345b03ed9d361c0d6c8617135378f5c311 | 444e30350936883e7749c2371f394fa82c1644fe | refs/heads/master | 2016-09-01T17:29:48.210244 | 2014-11-24T12:34:51 | 2014-11-24T12:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from ConfigParser import RawConfigParser
import re
from paste.util.multidict import MultiDict
class FilterConfig(RawConfigParser, object):
def __init__(self):
RawConfigParser.__init__(self, dict_type=MultiDict)
def urls(self):
output = self._dict()
for key, value in self._sec... | [
"git@matthewwilkes.name"
] | git@matthewwilkes.name |
a760406307209396651413a877d753828833f2df | b2ba88eb56e1f08b823a8865d69a69c395754011 | /PycharmProjects/PythonSeleniumAutoAugSep/12Oct2019/dictWithselenium.py | 6eb730986c1523b8f07b69242fef45e683ad0ad5 | [] | no_license | aravindanath/TeslaEV | 90d4577f4e2e2d0df9d5799acf9263895eb4a98c | a5a4b071da1187fec65f80481bf05a9469d38202 | refs/heads/master | 2020-12-06T12:07:52.074500 | 2020-03-18T15:25:21 | 2020-03-18T15:25:21 | 223,544,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from selenium import webdriver
import time
td = {"url":"https://www.google.com/",'browser':"ff"}
if td['browser']=="chrome":
driver = webdriver.Chrome("/Users/aravindanathdm/PycharmProjects/PythonSeleniumProject/driver/chromedriver")
elif td['browser']=="ff":
driver = webdriver.Firefox(executable_path="/Use... | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
58018bce47bab170230d6e3048ec82dde7848ead | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005027.py | 27f26130e6844d40cbd135f283b24ee2697dcba2 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
ee8221f7212eb222c79b8dcfb88d513aad2ddf15 | adf4f40bc899775e4f87b40036d8b9ed8be7e847 | /chapter_03/exercises/greeting.py | 5e43278a36b84cd0b47ab44fdc81c5b049187846 | [] | no_license | ltsuda/python-crash-course | 7473ff150214fc7d7370fa7cebfd009d1a2746e7 | d153929229c071ce4733a68410220f621719983f | refs/heads/master | 2020-06-23T19:14:07.967109 | 2019-09-03T01:00:14 | 2019-09-03T01:12:53 | 198,728,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | names = ['chris', 'maka', 'leandro']
print(f'The first name in the list is {names[0]}')
print(f'The last name in the list is {names[-1]}')
| [
"leonardo.tsuda@icloud.com"
] | leonardo.tsuda@icloud.com |
4a77df5b8c2b09a7a235b60d8d7a36c558c4f1d0 | 1df82fa8ef888b74fb9095c9ade89e16895366b1 | /14.Lambdas and Buit In Functions - Exercise/03. Multiplication.py | c04346d3cb290fa33e44cdde67bdb53e43bbb9cc | [] | no_license | filipov73/python_advanced_january_2020 | 868eb4bc365f7774c373183760e7ac584e1bd20c | a5e24190ee08bd1a0534dc04f91a5ba1927d1b19 | refs/heads/master | 2020-11-26T14:07:12.423309 | 2020-02-23T15:20:13 | 2020-02-23T15:20:13 | 229,097,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
num = int(input())
list_ = [int(x) for x in input().split()]
result = map(lambda x: x * num, list_)
print(" ".join(map(str, result)))
| [
"m_filipov@yahoo.com"
] | m_filipov@yahoo.com |
86ff63b94e72ffb5a1207a33fb869f5c5fbe46f7 | 3bb8b4e9d9b3f38ec4ec8f049c2bb58fce5850ea | /setup.py | 352fcb364ae9a12ec1549006b19b704d46994a12 | [
"Apache-2.0"
] | permissive | klmitch/vapi | 8ae87d1c4032e1b5ae54b50b7bc09e18f3f4e8de | 3b8607d15723a6258ede96f607b32bb1ecf885be | refs/heads/master | 2021-01-21T23:03:45.998643 | 2014-09-24T23:02:34 | 2014-09-24T23:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# Copyright 2014 Rackspace
# 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
#
# ... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
85492e471a02ef450052f0f42fe3d28ff42058fb | 7e69c60c23fce92463c78774b5968d3320c715c9 | /python_net/web_cgi/cgi-bin/botengine.py | 76b1f2b939236d3afc24d011cef7790c81f06c16 | [] | no_license | hwet-j/Python | 5128d114cf7257067f68cfb1db502e4f762ac8cc | 3e6f36be665932588a576f44ebb0107a4f350613 | refs/heads/master | 2023-04-08T17:52:31.607225 | 2021-04-17T05:25:02 | 2021-04-17T05:25:02 | 353,336,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | import codecs
from bs4 import BeautifulSoup
import urllib.request
from konlpy.tag import Okt
import os, re, json, random
dict_file = "chatbot-data.json"
dic = {}
twitter = Okt()
# 딕셔너리에 단어 등록하기 ---
def register_dic(words):
global dic
if len(words) == 0: return
tmp = ["@"]
for i in word... | [
"ghlckd5424@gmail.com"
] | ghlckd5424@gmail.com |
b62879c41444d90c6c81d3e6f4d4455793c8acc1 | 57106b3c8aab1f8a635806c8c15ffdde3f5d6fc2 | /22data-mining/frequent_patterns/main.py | 939e3a6744ea47a42464c91572bb4ab60bbe4c8c | [
"Apache-2.0"
] | permissive | CoryVegan/python-tutorial | 85e6b824d1f6a39b54d1fa84cd57def192f34e20 | a7c51593d779f0fc9751c2d6093f80878c4ba5c3 | refs/heads/master | 2020-03-22T03:22:43.774009 | 2018-06-28T02:52:14 | 2018-06-28T02:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,092 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import time
from eclat import eclat_zc
from freq_utils import loadDblpData, loadData, loadUnixData
from apriori import apriori_zc
from fp_growth import fp_growth
def test_fp_growth(minSup, dataSetDict, dataSet):
freqItems = fp_growth(dataSetDict,... | [
"507153809@qq.com"
] | 507153809@qq.com |
84666edef17c1b5cba6573aa7211aaf13565b74d | d930697cc16f69187c0918524e655ab8259b9806 | /src/aux/parsing.py | 811773ccfb4605251941ca7c528dd8eb8454f7fc | [] | no_license | tkusmierczyk/badges2 | 7ff6c6edd8f21f90ec2981ede569c4a7c018a765 | 7738483c2a732a062007b14286ca2fce6684965a | refs/heads/master | 2021-09-22T09:51:08.296245 | 2018-09-07T15:59:33 | 2018-09-07T15:59:33 | 111,401,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
def str2value(s):
original = s
s = s.lower()
if s=="t" or s=="true": return True
if s=="f" or s=="false": return False
try:
if int(s)==float(s): return int(s)
except: pass
try: return float(s)
except: pass
return original... | [
"you@example.com"
] | you@example.com |
c68ef51105c5285f6a7602dbe1e424ed80366edb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03061/s017722263.py | daf6b30e11b69ac96f03b0ad16f9930e404f4415 | [] | 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 | 283 | py | import math
n = int(input())
a = list(map(int,input().split()))
L = [0]*(n+1)
R = [0]*(n+1)
for i in range(n):
L[i+1] = math.gcd(L[i], a[i])
R[-2-i] = math.gcd(R[-1-i], a[-1-i])
ans = 0
for i in range(n):
G = math.gcd(L[i], R[i+1])
ans = max(ans, G)
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
51070f08059bac4f36859b19228d0f0ac977d60c | a80b8d4276140c5d702a651ef1fd4540201ae8eb | /homeworks/hw7/views.py | 5b5e8c3e23ff6047fa17d906c1d693c89d25386f | [] | no_license | laky55555/application_security | cc15c7abf8e472634e37ea56fe1b0eb01b6ee060 | a81299f2dfbe93e5785720eb7ccb25b9c5c11b18 | refs/heads/master | 2021-01-23T02:22:51.536155 | 2017-08-19T16:12:02 | 2017-08-19T16:12:02 | 85,986,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | from django.shortcuts import render
from social_django.admin import UserSocialAuth
import requests
# Create your views here.
def index(request):
page_title = "Seventh homework"
content = "Using OAuth2 from popular social networks"# + '/home/ivan/Dropbox/Faks/5_godina/application_security/homeworks'
proble... | [
"laky55555@gmail.com"
] | laky55555@gmail.com |
3d9654063e7ca4dd1188f7023431c014a679a192 | f3b023931812ca0f37bb9fcaf930b8fda4b8609c | /natsr/dataloader.py | cea9d73ac58ad2f2d8f51d3587cd416908036a94 | [
"MIT"
] | permissive | kozistr/NatSR-pytorch | 91bbdc31f94f6a32886f922e9825f1a947509886 | 51b2b5ce9b1fdc0864a299243798a0f78eb7eedc | refs/heads/master | 2022-12-07T23:41:59.485090 | 2022-11-22T09:54:49 | 2022-11-22T09:54:49 | 251,505,048 | 7 | 3 | MIT | 2022-11-22T09:54:08 | 2020-03-31T05:02:47 | Python | UTF-8 | Python | false | false | 4,792 | py | import os
import random
from glob import glob
from math import sqrt
from typing import List, Optional, Tuple
import numpy as np
import torch
from PIL import Image
from torch import cat
from torch.utils.data import DataLoader, Dataset
from torchvision.transforms import (
Compose,
RandomCrop,
Resize,
ToP... | [
"kozistr@gmail.com"
] | kozistr@gmail.com |
54fa847db262c80c74df746853501b408ac95069 | bbf9b9a382a427dbf90980f609f7ab14dd0511bc | /day9/ByLinkText.py | 2e03bc2356c78fc357be528bc44d57c0c424b807 | [] | no_license | aravindanath/MarvelAutomation | b916a73467ec479ecad67be8c268743feea98816 | 91ae916de90cf0f407eb83ff08ddfb477d8cbea2 | refs/heads/master | 2021-05-18T07:14:15.533717 | 2020-06-07T05:52:06 | 2020-06-07T05:52:06 | 251,174,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from day8 import LaunchBrowser as lp
import time
from selenium.webdriver.common.keys import Keys
data = "iphone SE2"
lp.driver.get("https://www.google.com")
lp.driver.find_element_by_link_text("తెలుగు").click()
time.sleep(4)
lp.driver.find_element_by_name('q').send_keys("news",Keys.ENTER)
time.sleep(4)
lp.driver.quit(... | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
1ed435bb36804248b862257ae25e0672980fa2c3 | 8f836e3c4add1af6311abd8c71d517847d29e8f9 | /python_learning/python_book_projectsPractice/web_application/homeworks/pizzeria_18_4/pizzas/migrations/0001_initial.py | ff016843b41af2ca9ca7f2800dc4638d5a34dd86 | [] | no_license | DanilWH/Python | f6282d5aff5d4fa79c1fd0f0108e6c0c3777a485 | b87319409a94e26faf084c22b1eb6a1d55458282 | refs/heads/master | 2021-01-03T21:23:02.305101 | 2020-03-11T16:20:27 | 2020-03-11T16:20:27 | 240,238,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 2.2.3 on 2019-07-23 12:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Pizza',
fields=[
('id', mod... | [
"danil-lomakin-02@mail.ru"
] | danil-lomakin-02@mail.ru |
a98c17ccd06a2ab20d73dde4cff5f5119ea749a8 | 43cdb5fc4202346394272926b37a0671b0862d42 | /winremote/modules/devices.py | 27d7e15aff7e6c2ca24ce6a1c3e3ab48d3706dcc | [] | no_license | machacekondra/winremote | 2d2b9f9bf94cb8340dbcc49a744d74d37a770a2c | 3e79f0f4b37e1a358b45eb22602f44da9068bfee | refs/heads/master | 2021-01-10T07:45:16.907796 | 2016-08-16T10:48:50 | 2016-08-16T10:48:50 | 43,779,439 | 6 | 3 | null | 2016-12-02T11:52:45 | 2015-10-06T21:20:24 | Python | UTF-8 | Python | false | false | 1,767 | py | """
This module implements work with devices via WMI.
"""
def list(session, attributes='Name,ConfigManagerErrorCode'):
"""
Description: return list of all devices on windows machine
:param session: instance of Windows, which hold session to win machine
:type session: winremote.Windows
:param attr... | [
"omachace@redhat.com"
] | omachace@redhat.com |
233cf17b20db9e8da29c2d67bd65024db0765681 | d0533b0574494b13606a557620f38f5a2c74ce16 | /venv/lib/python3.7/site-packages/sympy/matrices/tests/test_normalforms.py | 24475e4b219f83f5338425d08dd3529f0f06a589 | [
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | CatTiger/vnpy | af889666464ab661fb30fdb0e8f71f94ba2d1e41 | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | refs/heads/master | 2020-09-26T00:37:54.123877 | 2020-07-13T10:15:46 | 2020-07-13T10:15:46 | 226,124,078 | 0 | 0 | MIT | 2020-04-21T03:02:20 | 2019-12-05T14:44:55 | C++ | UTF-8 | Python | false | false | 843 | py | from sympy import Symbol, Poly
from sympy.polys.solvers import RawMatrix as Matrix
from sympy.matrices.normalforms import invariant_factors, smith_normal_form
from sympy.polys.domains import ZZ, QQ
def test_smith_normal():
m = Matrix([[12, 6, 4,8],[3,9,6,12],[2,16,14,28],[20,10,10,20]])
setattr(m, 'ring', ZZ)
... | [
"guozc@133.com"
] | guozc@133.com |
64ec78804a0e924b0fa62b824725c884cdeffb29 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /start1/1240_단순2진암호코드.py | 30d4af020c267c1134e39d99f98595abe3ab4d21 | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | # def check(N, M):
# code = ['0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011']
# code = {code[x]: x for x in range(len(code))}
# passwords = [0] * 8
# # 암호가 존재하는 위치 저장
# ys, ye = 0, 0 # 암호 시작, 암호 끝 행 위치
# for i in range(N):
# i... | [
"jjgk91@naver.com"
] | jjgk91@naver.com |
464fd54ef836816d3e9af6de1a8449fd7e305d75 | c6053ad14e9a9161128ab43ced5604d801ba616d | /Lemon/Python_Base/Lesson10_object_20181117/homework_04.py | 376628267c6c40688877c51fce0c9b6091931be0 | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # -*- coding: utf-8 -*-
# @Time : 2018/11/17/13:35
# @Author : Hester Xu
# Email : xuruizhu@yeah.net
# @File : homework_04.py
# @Software : PyCharm
'''
4:按照以下要求定义一个游乐园门票类,并创建实例调用函数,
完成儿童和大人的总票价统计(人数不定,由你输入的人数个数来决定)
1)平日票价100元
2)周末票价为平日票价120%
3)儿童半价
'''
class Ticket:
def __init__(self,time,adult_numbe... | [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
a1afa2fac8e405059e85a2618a7878c4182aab03 | 45b644af6d0204ff337bf348c007fd036b0fd113 | /0x0B-python-input_output/11-student.py | 925d2a83ec4d8aa2b22e33509ed50e7ff56a1261 | [] | no_license | jaycer95/holbertonschool-higher_level_programming | b5e7f2e72a9da8242befa0945b2935ceea3a086e | 47882b8a4d8b78e09cb372a8b2b85440de2b2d5b | refs/heads/master | 2022-12-20T22:31:35.675364 | 2020-09-24T18:33:21 | 2020-09-24T18:33:21 | 259,335,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/python3
""" create a student class"""
class Student:
""" defines a student """
def __init__(self, first_name, last_name, age):
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self):
return self.__dict__
| [
"jacer.dabbabi95@gmail.com"
] | jacer.dabbabi95@gmail.com |
1052569c6dac29bb7f48040506d0dd1b7b089514 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/benison.py | c62b8efc78821e7a30cbaf33bb71d01fad388ac4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 83 | py | ii = [('RoscTTI3.py', 1), ('AinsWRR3.py', 1), ('BailJD1.py', 1), ('TalfTIT.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
399a3d37af431b0d4b7205c68bef93e1a1222c45 | edccc564bf3699d7bab9a6b26c369ac85cd32555 | /misc/add_func.py | bba74174e82b95aac6210ab30759e4be88be0ecd | [
"LicenseRef-scancode-public-domain"
] | permissive | NAL-i5K/genomics-workspace | 7bb609b651b6118d3ce8aa49868d7372f5562956 | 013f44dd02980d34a00e4e9b667fa8fea6e824c5 | refs/heads/master | 2023-01-27T20:36:09.871710 | 2021-02-10T13:48:25 | 2021-02-10T13:48:25 | 72,758,632 | 14 | 6 | NOASSERTION | 2023-01-13T22:38:11 | 2016-11-03T15:20:11 | JavaScript | UTF-8 | Python | false | false | 4,539 | py | from blast.models import SequenceType
#from blast.models import BlastDb
from app.models import Organism
import os
import sys
import requests
#from hmmer.models import HmmerDB
def display_name(options):
try:
base_organism = options['Genus_Species'][0].lower().capitalize() + ' ' + options['Genus_Species'][1... | [
"vagrant@localhost.localdomain"
] | vagrant@localhost.localdomain |
4f0f69ccaea1e69b949c44d78167b885c304c83b | f125a883dbcc1912dacb3bf13e0f9263a42e57fe | /tsis5/part1/3.py | db2049f558022d1fc5fdf786334b167dba610d5e | [] | no_license | AruzhanBazarbai/pp2 | 1f28b9439d1b55499dec4158e8906954b507f04a | 9d7f1203b6735b27bb54dfda73b3d2c6b90524c3 | refs/heads/master | 2023-07-13T05:26:02.154105 | 2021-08-27T10:20:34 | 2021-08-27T10:20:34 | 335,332,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | # Write a Python program to append text to a file and display the text
def f_write(fname):
with open(fname,"w") as f:
f.write("11111111\n")
f.write("22222222\n")
txt=open(fname,"r")
print(txt.read())
f_write("abs.txt")
| [
"aruzhanart2003@mail.ru"
] | aruzhanart2003@mail.ru |
06e40101df06c9ccf95a7737360d1f5dd8b2a557 | 229e1e103bc24dda4d8fef54b762009e19045a45 | /configs/nowd/abl/convbn/res101_nl_gc_nowd_innostd_ws1e0.py | 0da33195f3bb6184f370e936c48482241eb57950 | [
"MIT"
] | permissive | yinmh17/CCNet | c0be71919877c0d44c51cd8fd8ad8f644ef618a6 | d5e90fe5ccfa16389fd25bdd3e2160ffe2dfbd22 | refs/heads/master | 2020-06-18T13:03:46.781284 | 2019-11-12T06:26:59 | 2019-11-12T06:26:59 | 196,311,075 | 1 | 1 | MIT | 2019-07-21T19:48:39 | 2019-07-11T03:10:01 | Python | UTF-8 | Python | false | false | 1,135 | py | model = dict(
type='basenet',
pretrained='',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
block_num=[3, 4, 23, 3],
),
att=dict(
with_att=False,
type='glore',
att_stage=[False,False,True,False],
att_pos='after_add',
at... | [
"yaozhuliang13@gmail.com"
] | yaozhuliang13@gmail.com |
2c2b9eaa06d37224c0965868d3a8b2f6902e69ab | ce32e0e1b9568c710a3168abc3c638d6f9f6c31b | /prod/jobs/refill_binance_spot_bars.py | 066b8b16d8c33677259b33a48a960e20cf5c9842 | [
"MIT"
] | permissive | msincenselee/vnpy | 55ae76ca32cae47369a66bd2d6589c13d7a0bdd4 | 7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7 | refs/heads/vnpy2 | 2022-05-19T10:06:55.504408 | 2022-03-19T15:26:01 | 2022-03-19T15:26:01 | 38,525,806 | 359 | 158 | MIT | 2020-09-09T00:09:12 | 2015-07-04T07:27:46 | C++ | UTF-8 | Python | false | false | 4,703 | py | # flake8: noqa
import os
import sys
import csv
import pandas as pd
# 将repostory的目录i,作为根目录,添加到系统环境中。
ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
if ROOT_PATH not in sys.path:
sys.path.append(ROOT_PATH)
print(f'append {ROOT_PATH} into sys.path')
from datetime import dateti... | [
"incenselee@hotmail.com"
] | incenselee@hotmail.com |
1c81443f8040a981a2cd339ee5c2b2fc3b1d83e5 | d5fe9d0c7c93c3250b9e212435b02d8373dec091 | /code/4.py | c0fa8bcde47e7a15e9b48e556ecb2f2379c6f9e1 | [] | no_license | HarshaaArunachalam/GUV | 6937adb84f0928f08c9fbc519310abc06ef3541a | c047887bf6c19a4950c5f634111e1c02966367e5 | refs/heads/master | 2020-05-31T10:52:23.280052 | 2019-08-10T20:23:11 | 2019-08-10T20:23:11 | 190,249,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | ids=input()
print(ids+".")
| [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
20c7fddfa77a6b8ef7a7fb0847dedd60f878899d | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_ui/ui_android_xjb_2_0/credit_card_reserved_pay_page.py | d67aea16c10dd49cdf86b6503a14c6c650015002 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | # coding=utf-8
import time
from _common.page_object import PageObject
from _common.xjb_decorator import robot_log
import huaxin_ui.ui_android_xjb_2_0.credit_card_repay_page
RESERVED_PAY="xpath_//android.widget.TextView[@text='信用卡还款']"
TRADE_PASSWORD = "xpath_//android.widget.EditText[@resource-id='com.shhxzq.xjb:id/... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
3c3c3a52869314e48ca1ff01f62c307cf14d182f | 0f5cccdf84bb02eafd7e18fbea2f1342bfd48185 | /arch/config/cmsis.py | 9f2345e3b38598ea5959fb283d3d0cccf0b8bba7 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | fb321/csp | c56632611a041d391c241d0ed5f0dc32c7387bed | 4963c6933e873073ac4db1837896f5ca087bcd94 | refs/heads/master | 2020-06-27T13:21:00.675587 | 2019-06-29T06:04:40 | 2019-07-02T13:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,879 | py | """*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibilit... | [
"http://support.microchip.com"
] | http://support.microchip.com |
94b209e024d003ffb3534976b6821966ef68c231 | 3eee3ee3b0dd5b5f50b0c40390fc0dfda36ccf90 | /examples/textrnn_classification_demo.py | 539ea657a33c75470aa2410ed235370a400b7393 | [
"Apache-2.0",
"Python-2.0"
] | permissive | shibing624/pytextclassifier | d36f514dee0a01c64a2e57d069344d8505cf2140 | daebd31cfbe92606da92f007ffba390475e73b16 | refs/heads/master | 2023-09-01T05:54:11.775314 | 2023-08-22T11:23:37 | 2023-08-22T11:23:37 | 89,688,656 | 263 | 31 | Apache-2.0 | 2023-09-11T12:46:43 | 2017-04-28T09:04:14 | Python | UTF-8 | Python | false | false | 1,502 | py | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description:
"""
import sys
sys.path.append('..')
from pytextclassifier import TextRNNClassifier
if __name__ == '__main__':
m = TextRNNClassifier(output_dir='models/textrnn-toy')
data = [
('education', '名师指导托福语法技巧:名词的复数形式'),
('educ... | [
"shibing624@126.com"
] | shibing624@126.com |
9b1471a8abc70f359d9fa154e922f6b368d53732 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2904/60641/301110.py | 1c0cdc02566ddb95f235e917e0595acde8b346c7 | [] | 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 | 169 | py | def main():
num = input()
if num[0] == "-":
print(int("-" + num[:0:-1]))
else:
print(int(num[::-1]))
if __name__ == '__main__':
main()
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
fbdedf4bbdf5e1fff6af26c44e1308075f620afb | 1989c958e197c782f025e45554d39a3e302b1523 | /contact/forms.py | c55d183e7d08116ce3e976f071a435ac4529798d | [] | no_license | Levalife/django_lessons | 27f400ddc515102c62de39456b58b364c3ebfb80 | 0b313089741eb5ba8e6dead105240447585749e3 | refs/heads/master | 2021-01-13T01:40:05.965881 | 2013-07-02T10:08:07 | 2013-07-02T10:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from django import forms
class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
email = forms.EmailField(required = False, label='Your e-mail address')
message = forms.CharField(widget=forms.Textarea)
def clean_message(self):
message = self.cleaned_data['message']
num_words = len(message.spl... | [
"levushka14@gmail.com"
] | levushka14@gmail.com |
7f5cdeff83e1e295b6b20393714452880925c6b7 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Siddhesh/Python/Mar19/Array4.py | 826bf25ff6300f430b57b88d40ae55e6c0e19e92 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 577 | py | #Changing and Adding Elements
#Arrays are mutable; their elements can be changed in a similar way as lists.
import array as arr
numbers = arr.array('i',[1, 2, 3, 4, 5, 6 ,10])
#changing first element
numbers[0]=0
print (numbers)
#changing 3rd to 5th element
numbers[2:5] = arr.array('i',[4 ,8 ,9])
print(numbers)
... | [
"shindesiddhesh07@gmail.com"
] | shindesiddhesh07@gmail.com |
42ddc05f74f30db5709aaa0150e361b4652d8df3 | 51363872687318ac54e815b51d16d44d214974a2 | /catkin/build/turtlebot_simulator/turtlebot_gazebo/catkin_generated/pkg.installspace.context.pc.py | 974cad3cda2a1d7ba2eac148b2cf27ccfa3acbef | [] | no_license | pirmou/catkin_ws | 2acee80a43f17841326d1b917931866d561648c3 | abaac27209016a944bd3520d84e4dc3aab1abf2e | refs/heads/main | 2023-02-17T04:44:03.927127 | 2021-01-10T17:40:02 | 2021-01-10T17:40:02 | 328,440,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_gazebo"
PROJECT_SPACE_DIR =... | [
"pierre.moussa18@me.com"
] | pierre.moussa18@me.com |
4cef778c67f1af2bbf43a834f84a4ad272c1d7c0 | 3d90c79a7337bff78eb663ef8120e8279498155b | /30 Days of Code/Day 28 RegEx, Patterns, and Intro to Databases.py | 9b4f935dcfaa5d170c590032372d9ee8ae19e8f3 | [] | no_license | ikaushikpal/Hacker_Rank_Problems | b460f7c1d4bf331102239d13a9096ee5cd479d21 | 72e2f2168e1bcfdd267c9daec6da71d5aa44de52 | refs/heads/master | 2022-11-18T00:24:28.529594 | 2020-07-22T11:50:22 | 2020-07-22T11:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import math
import os
import random
import re
import sys
if __name__ == '__main__':
N = int(input())
id = []
for N_itr in range(N):
firstNameEmailID = input().split()
firstName = firstNameEmailID[0]
emailID = firstNameEmailID[1]
if '@gmail' in emailID:
id.appen... | [
"iamkaushik2014@desktop.com"
] | iamkaushik2014@desktop.com |
5bafd0e38072c72e33f2894a208b8ac1c46f7594 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /swea/D3/SWEA_5201_컨테이너운반_구진범.py | 0c1b095c642a35ad82382f12e82dd9555f1aa8cc | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | for T in range(int(input())):
n,m=map(int,input().split());ret=0
w=sorted([*map(int,input().split())],reverse=True)
t=sorted([*map(int,input().split())],reverse=True)
for i in t:
for j in w:
if i>=j:ret+=j;w.remove(j);break
print(f'#{T+1}',ret) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
53882e755a639044d51f4ef49f066bb78922a0b9 | 7eebbfaee45fdc57c4fc6ba32c87c35be1e62b14 | /airbyte-integrations/connector-templates/destination-python/integration_tests/integration_test.py | 836df2c8d66ef056068217bc8f8e89be3882e0fb | [
"MIT",
"Elastic-2.0"
] | permissive | Velocity-Engineering/airbyte | b6e1fcead5b9fd7c74d50b9f27118654604dc8e0 | 802a8184cdd11c1eb905a54ed07c8732b0c0b807 | refs/heads/master | 2023-07-31T15:16:27.644737 | 2021-09-28T08:43:51 | 2021-09-28T08:43:51 | 370,730,633 | 0 | 1 | MIT | 2021-06-08T05:58:44 | 2021-05-25T14:55:43 | Java | UTF-8 | Python | false | false | 1,171 | py | # MIT License
#
# Copyright (c) 2020 Airbyte
#
# 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, merge, publ... | [
"noreply@github.com"
] | Velocity-Engineering.noreply@github.com |
d0e9940d5b58451bb8468f501adf11de55dca199 | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v2beta1_resource_metric_status.pyi | 37f745aeb5fbb9ef0d7d17bc2065e18e6af5f79a | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 600 | pyi | import datetime
import typing
import kubernetes.client
class V2beta1ResourceMetricStatus:
current_average_utilization: typing.Optional[int]
current_average_value: str
name: str
def __init__(
self,
*,
current_average_utilization: typing.Optional[int] = ...,
current_avera... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
933f509f45c0fd0a83dfdb92b9c39cf33d4e37f7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC2595.py | 5a64c80e92f317a9578fed16757ba858da82bd83 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | # qubit number=4
# total number=30
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a636a08716e18c4d09c625704f0d0e10db999f25 | ed4910769a51691f222a3e311215b014dc64ae3a | /wagtail/api/v2/filters.py | 42411f3c32464a76b5947023760b645c5fef406d | [
"BSD-3-Clause"
] | permissive | mr-const/wagtail | cba2db26a5b370aef2fc5dd41ca0f0ba95bf6536 | 091e26adfb9e4dc9bdf70be3572c104c356c664d | refs/heads/master | 2021-01-13T06:28:51.819517 | 2016-03-10T15:29:30 | 2016-03-10T15:29:30 | 53,587,500 | 0 | 0 | null | 2016-03-10T13:43:50 | 2016-03-10T13:43:50 | null | UTF-8 | Python | false | false | 7,094 | py | from django.conf import settings
from rest_framework.filters import BaseFilterBackend
from taggit.managers import _TaggableManager
from wagtail.wagtailcore.models import Page
from wagtail.wagtailsearch.backends import get_search_backend
from .utils import BadRequestError, pages_for_site
class FieldsFilter(BaseFil... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
a9f7c3d75ffd672e277c27e70adee3e33c3e9510 | 8076de02ad53ea7b6328f819ae23e212f3a7d47c | /DXCTraining/Examples/4OOP/Inheritence/first.py | ada7ce1d8a65e48bcc5d991006dd997c7906d4cc | [] | no_license | rhitik26/python | f6013d978cbfc83c211b0e4e9aa92ee43a1b488f | b667c6502c6a1cb58b79ddd9d30a752f92da1f94 | refs/heads/master | 2020-09-21T12:34:03.869549 | 2019-11-29T06:28:33 | 2019-11-29T06:28:33 | 224,790,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def y():
pass
class A:
sam='test'
class Person:
count=0
def __init__(self,name):
Person.count+=1
self.name=name
def sayHi(self):
print('Hi '+self.name)
class Emp(Person,A):
def __init__(self,name,id):
super().__init__(name)
self.id=id
def sayHi(self):
super().sayHi()
print('Hello '+self.name)
... | [
"rkhanna36@dxc.com"
] | rkhanna36@dxc.com |
c2ac269526081ba4c09e510388a319650a8b9b24 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Basecamp/CompleteItem.py | 14b5086953de1a5f7782bc7413760851d2d6ada6 | [
"Apache-2.0",
"MIT"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CompleteItem
# Marks a single, specified item in a To-do list as complete.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# ... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
f8feb419c39656afeff8e906cb8a45211147ee2b | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/webapp/modules/cms/models.py | 4e7ad86001019d94d76bc9f0a091acc07944b931 | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from hashlib import md5
from django.db import models
from django.contrib.auth.models import Group, User
from django.db.models import signals
from django.conf import settings
from django.db.models import F
from core import dateutil
##############################... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
5955abba13969d2e6dbf080aa32f43a83df0882d | cd257631f442d24d2e4902cfb60d05095e7c49ad | /week-03/day-03/centered_square.py | 718aa19f4966f147193973ccae71489f2fde4ccd | [] | no_license | green-fox-academy/Chiflado | 62e6fc1244f4b4f2169555af625b6bfdda41a975 | 008893c63a97f4c28ff63cab269b4895ed9b8cf1 | refs/heads/master | 2021-09-04T03:25:25.656921 | 2018-01-15T09:02:47 | 2018-01-15T09:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from tkinter import *
root = Tk()
canvas = Canvas(root, width='300', height='300')
canvas.pack()
# draw a green 10x10 square to the center of the canvas.
canvas_width = 300
canvas_height = 300
edge_length = 10
starting_x = canvas_width / 2 - edge_length / 2
starting_y = canvas_height / 2 - edge_length / 2
ending_x... | [
"prjevarabalazs@gmail.com"
] | prjevarabalazs@gmail.com |
705a6c711907b2fa6d7884a850e39de847ea32db | d750fb953abda6a965c4f307266b2405ad8c11b1 | /programers algorithm/LEVEL2/주식가격.py | 3c0fee793a8d39bb540a3b9695a7381a3d96d493 | [] | no_license | heaven324/Python | dbe8e57fa7741ab963af239474d108ff9dbdc0c7 | 065663fe1e5f86c9d08ec645e24b5fde2045fee1 | refs/heads/master | 2023-05-25T02:06:01.728138 | 2023-05-17T15:12:08 | 2023-05-17T15:12:08 | 188,010,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | # solution
prices = [1, 2, 3, 2, 3]
def solution(prices):
result = []
for i in range(len(prices)-1):
cnt = 1
for j in range(i+1, len(prices)-1):
if prices[i] <= prices[j]:
cnt += 1
else:
break
result.append(cnt)
result.append... | [
"wjdtjdgh2005@gmail.com"
] | wjdtjdgh2005@gmail.com |
b2b77cda68bc763a8f080a5688d500e6503eeee5 | 58c8838461101f2252d17824e924ece7e93212d7 | /tests/cloudcli/test_server_history.py | 6b50c457b3b890abce3ed7070e178294fb14528b | [
"MIT"
] | permissive | imcvampire/kamateratoolbox | 9b03ac703c1dd996de3faad5520220d4e7db91f2 | 372853059c584bb6b80c59efca125e08352def0e | refs/heads/master | 2023-02-03T17:23:00.052904 | 2020-12-22T07:19:17 | 2020-12-22T07:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | import datetime
from ..common import assert_only_one_server_cloudcli, assert_no_matching_servers_cloudcli, get_server_id
def test_server_history_only_one_server(cloudcli, session_server_powered_on, session_server_powered_off):
assert_only_one_server_cloudcli([session_server_powered_on, session_server_powered_off]... | [
"ori@uumpa.com"
] | ori@uumpa.com |
bbf8b5718568d7b9ef2974b393b8ce361eeefe1f | 898f547bbeb7d1da27bc40e2d594a363c0d1a75a | /Leetcode Problems/lc1389e.py | bd96f9c3e848960611d528be93d5b379427f98f2 | [] | no_license | TerryLun/Code-Playground | 4e069e28c457309329f003ea249be83d7578a4a3 | 708ad69594cf5b9edc9ff1189716cad70916574c | refs/heads/master | 2023-06-20T14:03:43.924472 | 2021-07-23T05:27:48 | 2021-07-23T05:27:48 | 237,375,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
1389. Create Target Array in the Given Order
Given two arrays of integers nums and index. Your task is to create target array under the following rules:
Initially target array is empty.
From left to right read nums[i] and index[i], insert at index index[i] the value nums[i] in target array.
Repeat the previous st... | [
"tianweilun@yahoo.com"
] | tianweilun@yahoo.com |
1936160e12db29ad137d1f6effb6db365bd0ad5f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_0/Python/MReni/RevengeOfThePancakes.py | f0bd9154a41a9e82d73ac0ce8564e51703f16a39 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | import math
import collections
HAPPY_PANCAKE = '+'
UNHAPPY_PANCAKE = '-'
# pancake_min_flips = None
# pancake_map = {} # {pancake: {value: value, parents}}
pancake_value_map = {} #{pancake: steps to final}
pancake_parent_map = {} #{pancake: [parent1, parent2]}
super_parent = ""
def all_happy(pancakes):
return (UNHA... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
aba1814fbd4b650bf347f3f9336a1f8bc4df1fea | a7146e71459408498cc6b735935ba508a2e43c90 | /examples/long_running_with_tm/long_running_with_tm/models.py | 262843b6b4672b04747ee8cce37579b9fca74d95 | [
"MIT"
] | permissive | timgates42/pyramid_celery | 8ae5ed583696a35c35ddb1589a77444bec6362f6 | cf8aa80980e42f7235ad361874d3c35e19963b60 | refs/heads/master | 2023-03-15T23:17:01.816146 | 2021-02-24T02:40:04 | 2021-02-24T02:40:04 | 251,593,921 | 0 | 0 | NOASSERTION | 2020-03-31T12:18:55 | 2020-03-31T12:18:55 | null | UTF-8 | Python | false | false | 390 | py | from sqlalchemy import (
Column,
Integer,
Text,
)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import (
scoped_session,
sessionmaker,
)
DBSession = scoped_session(sessionmaker())
Base = declarative_base()
class TaskItem(Base):
__tablename__ = 'tasks'
id = C... | [
"sontek@gmail.com"
] | sontek@gmail.com |
81ba2c6e03bcba6e513148f7db39f61d030b176b | 5e0ea2e0fff8a9e38606da6c73a51df3f92604ea | /assortment.py | 8a3ddb0a8c9ed8a4955654465286a3cf83e1c01c | [] | no_license | Trafire/f2_auto_complete | c6419a96b5324bb697681adc9e0a72c91d1681e5 | 3c6da1977b139889f0af7d60a431fef8580cd720 | refs/heads/master | 2022-11-26T09:40:18.860721 | 2020-03-12T20:37:16 | 2020-03-12T20:37:16 | 224,901,668 | 0 | 0 | null | 2022-11-22T04:52:05 | 2019-11-29T18:06:28 | Python | UTF-8 | Python | false | false | 36 | py | from navigation import traverse
| [
"antoinewood@gmail.com"
] | antoinewood@gmail.com |
4801e77162a0826fde15f393eaf0aec9babf0d6f | ac45b55915e634815922329195c203b1e810458c | /astro169_5.py | fcdb267807d1eb2ec556c9b469293b02a33b81e8 | [] | no_license | mj1e16lsst/iridisPeriodicNew | 96a8bfef0d09f13e18adb81b89e25ae885e30bd9 | dc0214b1e702b454e0cca67d4208b2113e1fbcea | refs/heads/master | 2020-03-23T15:01:23.583944 | 2018-07-23T18:58:59 | 2018-07-23T18:58:59 | 141,715,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,053 | py | from operator import add
#from astropy import units as u
#from astropy.coordinates import SkyCoord
#from astropy.stats import LombScargle
#from gatspy.periodic import LombScargleFast
from functools import partial
#from gatspy import periodic
#import matplotlib.pyplot as plt
#from matplotlib.font_manager import FontProp... | [
"mj1e16@soton.ac.uk"
] | mj1e16@soton.ac.uk |
6661c970ed8204123d5f74af8add6e78011ed805 | 75275e1cd5ef1a5dddd5fdcb82db03fdf1b609d3 | /lib/ansible/modules/cloud/alicloud/alicloud_slb_vsg_facts.py | f191838ff20a57f9e843348e165ea5a4860f141c | [
"Apache-2.0"
] | permissive | jumping/ansible-provider | bc8b2bc51aa422de89d255ba1208ba8e8ae8f0be | 067ce1aa4277720bc481c2ba08e3d1b408b8f13c | refs/heads/master | 2020-03-13T21:30:50.287049 | 2018-04-27T13:12:23 | 2018-04-27T13:12:23 | 131,297,789 | 0 | 0 | Apache-2.0 | 2018-04-27T13:12:24 | 2018-04-27T13:07:37 | Python | UTF-8 | Python | false | false | 7,586 | py | #!/usr/bin/python
# Copyright (c) 2017 Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
800eb0325b5ed7eb9f9f40151ce5297efa61fbbd | bab4f301ff7b7cf0143d82d1052f49e8632a210e | /98. Validate Binary Search Tree.py | bc811609d234bd06fd090df9f688e7930a212199 | [] | no_license | ashish-c-naik/leetcode_submission | 7da91e720b14fde660450674d6ce94c78b1150fb | 9f5dcd8e04920d07beaf6aa234b9804339f58770 | refs/heads/master | 2020-04-05T05:12:03.656621 | 2019-06-08T17:30:22 | 2019-06-08T17:30:22 | 156,585,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def isValidBST(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
def valid(r... | [
"ashishnaik121@gmail.com"
] | ashishnaik121@gmail.com |
113c34036bdd75f8bbe1c612e9eac312ecd2ef53 | 9751b5d99cf2bd4d969c9168e449b8bb1314d500 | /admin/dashboard/.venv/lib/python2.7/site-packages/oslo_concurrency/tests/unit/test_processutils.py | 0fd8045b6ac7b0ef5ccccf42a7cfa05ea87ebf10 | [
"Apache-2.0"
] | permissive | rajagopalx/product | 79ff8cd6ed52f13613b0ffb11ce14587e101eb40 | 18ff22bc0c5440ebb37809ee7b9140083dec5cb4 | refs/heads/master | 2021-01-13T04:58:50.733190 | 2016-04-28T04:15:55 | 2016-04-28T04:15:55 | 57,262,088 | 0 | 0 | null | 2016-04-28T01:55:44 | 2016-04-28T01:55:44 | null | UTF-8 | Python | false | false | 33,129 | py | # Copyright 2011 OpenStack Foundation.
# 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 req... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
23d4e5aa40696d6550bcbaa74f288227bb8f13b0 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/ir/inference/test_groupnorm_act_pass_fuse_pass.py | c9f821b21d4e93fb3e366f54c555278279cf2643 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,554 | py | # Copyright (c) 2023 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... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
24938ce3102a1751f11d20fb9b6e5597d6e0b1d8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2627/60593/271403.py | 5ab202a296dfd60d401bede606a6b59da9d7601c | [] | 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 | 101 | py | t=int(input())
for _ in range(t):
p,s=map(int,input().split())
print(min(p/12,(s/6)**0.5)**3) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5d2f65939d336b320d6390d414834f0d5e24b0be | 2ce3ef971a6d3e14db6615aa4da747474d87cc5d | /练习/CMB/02_03 string_test/string_test_lyh.py | 153d9a8d0141a302596cb45801712394292ac494 | [] | no_license | JarvanIV4/pytest_hogwarts | 40604245807a4da5dbec2cb189b57d5f76f5ede3 | 37d4bae23c030480620897583f9f5dd69463a60c | refs/heads/master | 2023-01-07T09:56:33.472233 | 2020-11-10T15:06:13 | 2020-11-10T15:06:13 | 304,325,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import re
string1="LiuYongHua"
def reverse_string(str):
revers_str=str[::-1]
revers_list=[]
for i in range(len(revers_str)):
if revers_str[i]==revers_str[i].upper():
revers_list.append(revers_str[i].lower())
else:
revers_list.append(revers_str[i].upper())
return '... | [
"2268035948@qq.com"
] | 2268035948@qq.com |
a64e8f763cd6929ea0b1e9186137a9d92946b7df | a2ac73af04a07bb070cd85c88778608b561dd3e4 | /addons/event/res_partner.py | 0b7ae0a759890d669d141d4bc67c1dd621df039f | [] | no_license | sannareddy/openerp-heimai | c849586d6099cc7548dec8b3f1cc7ba8be49594a | 58255ecbcea7bf9780948287cf4551ed6494832a | refs/heads/master | 2021-01-15T21:34:46.162550 | 2014-05-13T09:20:37 | 2014-05-13T09:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | /usr/share/pyshared/openerp/addons/event/res_partner.py | [
"549636719@qq.com"
] | 549636719@qq.com |
d7940c263c8c7fce2ebf9d1c8ed5e39bc97d882e | 931f818c937df10d0b601b559d5a340dde4b04d1 | /flexx/event/_js.py | 8411919bdafdcbb1722e5d711290ed1f5f16ab66 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vault-the/flexx | 7f06a6c7f9c4bfa35d65b523f376be0c5873a862 | 15fe205f4239e44c2911f9fe72c86077893b6209 | refs/heads/master | 2021-09-06T05:06:57.326378 | 2018-02-02T16:02:17 | 2018-02-02T16:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,137 | py | """
Implementation of flexx.event in JS via PyScript.
In this module we compile the flexx event system to JavaScript. Most
code is generated by transpiling methods from the Python classes. This
module implements a JS variant of some classes to overload certain
behavior in JS. E.g. the JS implementation of the Componen... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
42b65f1d1f9cc2d93d1e76c4b9d4e9c9f6f48bba | 22956a21b0b3ffe69c5618a7ef53683e4f73b483 | /busstopped-gae/lib/wtforms/__init__.py | 954ff22aba94d1172ff9785c67c417f1fb682cc4 | [] | no_license | humitos/bus-stopped | b397c3c47d8bd4b0b713389b3a0f47b7aa573762 | e49e6ce0b20ebc5f19fb7374216c082b0b12a962 | refs/heads/master | 2021-01-17T05:53:51.795324 | 2011-03-28T15:11:27 | 2011-03-28T15:11:27 | 1,435,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WTForms
=======
WTForms is a flexible forms validation and rendering library for python web
development.
:copyright: Copyright (c) 2010 by Thomas Johansson, James Crasta and others.
:license: BSD, see LICENSE.txt for details.
"""
from wtforms import validators, widgets
from wtforms.fields import *
from wtforms.fo... | [
"humitos@gmail.com"
] | humitos@gmail.com |
380f5cd110c93d9c0100e713830642b815bad83d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/51/usersdata/82/21229/submittedfiles/listas.py | 9397d4c26e6dfec440597fe791ca4bf0c5754c4b | [] | 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 | 427 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
def maiorDegrau(a):
for i in range (0,len(a)-1,1):
degrau = math.fabs(a[i]-a[i+1])
if degrau>maiorDegrau:
maior=maiorDegrau
return
a=[]
n = input ('Digite o valor de n:')
for i in range (0,n,1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d0087db78a7bc3a955916ca6d7840764df89d2e4 | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/yahtzee/43.py | d64a07e55e549fa6d710248f28ee87831f6d9bf7 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | def histogram(stenen):
histogram={}
stenen.sort()
for element in stenen:
aantal=stenen.count(element)
histogram[element]=aantal
return histogram
def max_gelijk(stenen):
max=0
for element in stenen:
aantal=stenen.count(element)
if aantal>max:
max=aanta... | [
"bertverstraete22@gmail.com"
] | bertverstraete22@gmail.com |
5c3c7c56558b2a063516442c59fdfda684584660 | f8eefef177c4794392ddbad008a67b10e14cb357 | /common/python/ax/kubernetes/swagger_client/models/v1_config_map_volume_source.py | fd67a4624e8f6be40321995d40eca7c9cc399a89 | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 6,776 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1Config... | [
"elee@applatix.com"
] | elee@applatix.com |
72ce1228b9b03247bee7a76ad11a95be51de9ce3 | 3e358fa6f824e3923878c2200ffa685948281824 | /FlightPlannerTask/FlightPlanner/RnavTolerance/RnavGnssTolerance.py | 9d4a56cc587a9fb8cf48b4676c53f287e6a420a0 | [] | no_license | developer124320/FlightPO | 28825a4c2c0b2c4d9095296e785f0123eb5d7560 | a5f4c583d01104d7c379e7cf677b898f407ab565 | refs/heads/master | 2021-06-16T16:55:27.203361 | 2017-04-10T13:14:39 | 2017-04-10T13:14:39 | 87,812,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,520 | py | # -*- coding: UTF-8 -*-
'''
Created on 30 Jun 2015
@author: Administrator
'''
from FlightPlanner.types import DistanceUnits, RnavSpecification, RnavDmeDmeFlightPhase, \
RnavDmeDmeCriteria, RnavGnssFlightPhase, RnavFlightPhase, AircraftSpeedCategory
from FlightPlanner.helpers impor... | [
"kwangyingjin@outlook.com"
] | kwangyingjin@outlook.com |
60c9c060f101e760e8b9acf844231a85212ed025 | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/working_with_datasets/polygons2.py | 5f0987ea17d5e5bedab0c3c064af72fa075101de | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 4,514 | py | """Polygonal Finite-element Data Creation (Part 2)
This script creates a quad of two triangles just as in Part 1, however they are
placed into two different zones. Boundary connections are then made to stitch
the two triangles together.
The data created looks like this::
Node positions (x,y,z):
... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
be9b797e8c84eb118ee2d5bd847543beea765636 | 548f9594d6634b4f814d8ee3fa9ea6fb8c612bda | /examples/simple/config/config_local.py | 51dcfb603619572c6ab622b9334849a25034ad28 | [] | no_license | wp-fei/algorithm-base | 994a10a94c11a2ccc0e076fc76d5d12612832349 | a54d8a192e364b02514cf1119761d0cb41790d9b | refs/heads/master | 2023-08-19T06:36:59.142576 | 2021-10-14T03:48:31 | 2021-10-14T03:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """
本地环境配置
"""
enable_calllimit = False
PORT = 8000
workers = 2
# max_requests = 2
# max_requests_jitter = 1
# preload_app = False
# keepalive = 2
timeout = 100
# 固定日志位置,不要修改日志目录
# accesslog='logs/access.log'
# errorlog='logs/error.log'
# accesslog='logs/faccess.log'
# errorlog='logs/ferror.log'
APP_NAME = 'simp... | [
"pengxu.hpx@alibaba-inc.com"
] | pengxu.hpx@alibaba-inc.com |
335ef4cdde8d85825c1c527334f631a489ffa8db | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/pipenv_test_results/conflicts/1_test_project_expected.py | d299260e39f9888bddc99b106636343d37d0a55c | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,834 | py | # -*- coding=utf-8 -*-
import io
import pytest
import os
from pipenv.project import Project
from pipenv.utils import temp_environ
from pipenv.patched import pipfile
@pytest.mark.project
@pytest.mark.sources
@pytest.mark.environ
def test_pipfile_envvar_expansion(PipenvInstance):
with PipenvInstance(chdir=True) as ... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
bb4982fbff64c4005c1bd748e6ca93e826ddc357 | c04acaa6ee9c6a7c365e217bc78039fa9c77833e | /my_apps/web/migrations/0002_auto_20160913_0025.py | d61f89d3bc2746ac0e88efdd2c9d5907f5c0832d | [] | no_license | danielhuamani/django-la-cuzquena | 0386800d640b224d94b0fac2d83f999b60d7da85 | a6f4aaf44775b27328d073a65f1d0f50eff51fad | refs/heads/master | 2020-12-05T04:51:01.077860 | 2016-09-17T13:56:58 | 2016-09-17T13:56:58 | 67,900,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,232 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-13 05:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import filebrowser.fields
class Migration(migrations.Migration):
dependencies = [
('web', '0001_initial'),
]
... | [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.