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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
552b996cc76cd62cf2dd0b73ebf1972aec0af841 | 988176bcdae841e08106b0fe5cf07aabbc210c83 | /minimum sum of the maximum elements obtained by considering all consecutive pairs of adjacent elements after rearranging the array suitably.py | c871699196e8fd15530261a7480607de06e2522f | [] | no_license | gopiprasad008/GUVI_CODEKATA_PYTHON_CODE | ce1a63c7eea2a099c01748162c1deb47172dcd0a | 78f374e344df25aab181408d8f41b3ebe03b34ef | refs/heads/master | 2023-03-16T00:27:31.539524 | 2020-05-16T11:46:08 | 2020-05-16T11:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from itertools import permutations
n = int(input())
l = [int(x) for x in input().split()]
n = len(l)
m = list(permutations(l,len(l)))
a = 0
for i in range(len(m)):
b = 0
for j in range(len(m[i])-1):
b += max(m[i][j], m[i][j+1])
if b > a:
a = b
print(a)
| [
"[email protected]"
] | |
087a01950facd0b6e12f0c2c3ec8eeef6135feb5 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/KoubeiTradeOrderEnterpriseQueryResponse.py | d46129cc828bcc061ec6d475c1359df544675c21 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 4,551 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiTradeOrderEnterpriseQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiTradeOrderEnterpriseQueryResponse, self).__init__()
self._buyer_user_id = Non... | [
"[email protected]"
] | |
55a28b610c9796ee5d9f9724c9a0bfe4eb09061c | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4M/4M-4J_wat_20Abox/set_3.py | 4e1279d74cc1ddc180be8d4b21bde67aa12bb920 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4M/wat_20Abox/ti_one-step/4M_4J/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_3.in'
temp_pbs = filesdir + 'temp_3.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"[email protected]"
] | |
b84e8238b02903cb56003a86f49f4d732686de63 | 2ec26d004a653c0576594e48ac13dd71f539b30a | /gist_dump/sine_destruction.py | 48a1342ece579d42dc108367e41efe8f91e1bd2b | [] | no_license | kastnerkyle/research_megarepo | 6aca5b2c3b2413e0def1093b23f2826e3e7e5e97 | ab182667650fd59b99f75d4b599d7ace77a3f30b | refs/heads/master | 2021-01-17T20:31:52.250050 | 2016-12-27T01:28:54 | 2016-12-27T01:28:54 | 68,341,074 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Author: Kyle Kastner
# License: BSD 3-clause
import matplotlib.pyplot as plt
import numpy as np
fs = 100 # sample rate of 100 samples / sec, with max f 50
f = 5 # 5 Hz frequency
samples = 25 # .25 seconds of samples @ 100 samples / sec
x = np.arange(samples)
y1 = np.sin(2 * np.pi * f * x / fs + .5 * np.pi)
y2 = ... | [
"[email protected]"
] | |
cf9c444fa59eb0b67c60813865bf38503df80ad9 | e728a7b5447c4ca03ba799bec61459528f30fd88 | /esvi/model.py | 6effe6136b1881fe62efa747a7f8180ffab43f4b | [] | no_license | reritom/Esvi | deb75c0ca4b17494ed80adc3b735be008e0b3352 | 1e3242c61ec86af7b7479cd71f12a8677fcbde1f | refs/heads/master | 2020-03-20T02:08:01.695643 | 2018-11-04T18:35:52 | 2018-11-04T18:35:52 | 137,100,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | from esvi import fields
from esvi.query import Query
from esvi.model_instance import ModelInstance
from esvi.query_executor import QueryExecutor
from esvi.model_set import ModelSet
from typing import Optional
class Model():
"""
This class is to be inherited by child models. The static methods for interacting w... | [
"[email protected]"
] | |
18cb063d140ca52402076ae16b83ac2bbdaa92cb | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /third_party/pyasn1_modules/pyasn1_modules/rfc3779.py | aaf856e822b6d15286373124b860200a0e6768d6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 2,750 | py | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# X.509 Extensions for IP Addresses and AS Identifiers
#
# ASN.1 source from:
# https://www.rfc-editor.org/... | [
"[email protected]"
] | |
4eb2f293067b5f57a370ad4125140d766cdc0ad6 | 4374b25bd4d7ea4a8d890b08b68ae52ed93c5eaf | /neural_sp/bin/model_name.py | 2121447c1841b0f00c16ed8c596d9bf4f95d6c89 | [
"Apache-2.0"
] | permissive | smilelite/neural_sp | 61833dc20f6ddd36b21e55663f539929c69a9399 | 86fee124982f7483656aa6b8d5db3715fda12460 | refs/heads/master | 2023-04-06T23:31:19.258575 | 2021-04-06T16:02:11 | 2021-04-06T16:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | # Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Set model name."""
import os
from neural_sp.bin.train_utils import load_config
def _define_encoder_name(dir_name, args):
if args.enc_type == 'tds':
from neural_sp.models.seq2seq.encoders.... | [
"[email protected]"
] | |
4a94d4e0f476fcbb73a0a653a656166d0438ab10 | 2be678ddc49b9ce9c2f7bd198d12b6be94374ddd | /precise/scripts/graph.py | 14cf83e4ec816dd3eabc2a3e18c0d72b66f281b2 | [
"Apache-2.0"
] | permissive | andreselizondo-adestech/mycroft-precise | 2a7f08c7d74d39a1455ea1c15ded47fdedc89096 | 0e0ac5b8b14ff6a6ecffd300c40049131990e8c9 | refs/heads/dev | 2021-05-21T01:21:30.066505 | 2020-08-19T19:37:05 | 2020-08-19T19:37:05 | 252,484,092 | 3 | 1 | Apache-2.0 | 2020-08-19T19:32:00 | 2020-04-02T14:49:40 | Python | UTF-8 | Python | false | false | 5,814 | py | #!/usr/bin/env python3
# Copyright 2019 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"[email protected]"
] | |
f6835052381793f2c861225e2220abd09398454e | 61dd3524e904ee055a761815239da55db26f03eb | /PYTHON-SALA DE AULA/Exercicios condicionais/exe-37.py | 42797fee163339669239668fce6cbf3207f3a018 | [
"Apache-2.0"
] | permissive | JaumVitor/HOMEWORK-PYTHON | 149e4cb6d10421d1e980dd5b75a92f87355582f8 | 7be3299f36af3a924fc5c6f4a63aeed0fd8fb38e | refs/heads/master | 2022-09-15T11:00:55.019562 | 2022-08-26T18:46:06 | 2022-08-26T18:46:06 | 256,103,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | print ('- salários até R$ 280,00 (incluindo) : aumento de 20%')
print ('- salários entre R$ 280,00 e R$ 700,00 : aumento de 15%')
print ('- salários entre R$ 700,00 e R$ 1500,00 : aumento de 10%')
print ('-salários de R$ 1.500,00 em diante : aumento de 5%')
print ('='*43)
sal = float ( input ('Qual valor do salario ? '... | [
"[email protected]"
] | |
dde80391d1a289f17f39b3d1db3696e9b50a41ec | 530797702626216b6aebc8fa5b55fc0cb494ad3e | /cryptid/cryptid_maps_generator.py | 684018146052a3fe0e77e6788d3135746871f012 | [] | no_license | trung-hn/fun-stuffs | fbe3951bad6a12a5c703892268f0422640aa2232 | afadd2788e8eeff256e47a2c6a23ee6089bd2595 | refs/heads/master | 2023-08-31T20:55:28.662905 | 2023-08-29T20:38:54 | 2023-08-29T20:38:54 | 203,461,969 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,782 | py | #%%
import base64
import json
from selenium import webdriver
from pathlib import Path
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
import time
DRIVER_PATH = "D:\Workspace\sandbox\chromedriver.exe"
driver = webdriver.Chrome(executable_path=DRIVER_PATH)
driver.get("https... | [
"[email protected]"
] | |
0f43d2c8b893f082d38427beb7a50cfa5047b97d | f60eb7d15ce3ca06e2db1dc0af8b3b87bed08c37 | /home/migrations/0026_auto_20170613_1726.py | c701f4e2b1b402be2ac5c422cd43ebada3d8feb6 | [] | no_license | wlminimal/epc | 96136f0c5f2b4ddc04fbc7e7b76d6a41c631ea26 | 2127a4e273a69a3ca0d5711fd1452c1bc5ab7590 | refs/heads/master | 2022-12-12T11:33:57.711869 | 2019-04-12T16:33:58 | 2019-04-12T16:33:58 | 92,700,181 | 0 | 0 | null | 2022-12-07T23:58:05 | 2017-05-29T02:20:33 | Python | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-13 17:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0025_auto_20170613_1721'),
]
operations = [
migrations.AlterField(
... | [
"[email protected]"
] | |
d35824f9c7bc1d9b5bdf9ab1821580ea4c94cc6e | 3d9640bf3fb1da00f2739424723fbf6d74b574c0 | /project/accounts/migrations/0002_auto_20200809_1536.py | 9bb3a316cc8f71e82a6646748c93e6a9df7fbec6 | [] | no_license | brahim024/django-user-auth | 265df0de18bdce4756c53c616ba097755175b519 | 41339d449f6d2abb07ab30e087234915ada59186 | refs/heads/master | 2022-12-22T06:13:02.973405 | 2020-09-26T00:08:58 | 2020-09-26T00:08:58 | 279,684,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.1 on 2020-08-09 13:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='phone',
fi... | [
"[email protected]"
] | |
bba7005497f25a02a0b5b5133051bdc931a6245d | 64327166debec734cdbdceed673affc7ef806901 | /backend/test_expo_app_23831/settings.py | 267df1ccc5565082c44b00a4f948a140ec41ff5d | [] | no_license | crowdbotics-apps/test-expo-app-23831 | 85aa164045a6d6988b4507ecb316d72a1482db74 | 67c0d3990ecc85359f9897676d58dad00bcdd3e7 | refs/heads/master | 2023-02-16T00:18:19.859203 | 2021-01-14T00:33:41 | 2021-01-14T00:33:41 | 329,466,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | """
Django settings for test_expo_app_23831 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"[email protected]"
] | |
431e0d44cfd2d2914eee2be9382d559ed9d7fc01 | 4daff90cfce1f253a3d8b14583dc0a038d553ca5 | /PyMess/MAG/SaveAllDip.py | 0e4e30b2180fcae15b7a47f17ab897311e2a895b | [
"MIT"
] | permissive | mattkjames7/PyMess | 42d0119a91d130649b3c601889ef132e38facb4f | f2c68285a7845a24d98284e20ed4292ed5e58138 | refs/heads/master | 2021-06-28T14:43:32.748427 | 2020-10-27T10:27:52 | 2020-10-27T10:27:52 | 174,409,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import numpy as np
from ._SaveDip import _SaveDip
from .DataAvailability import DataAvailability
def SaveAllDip(Minute=False,StartI=0,EndI=None):
'''
This procedure should save all magnetometer data rotated into
a coordinate system useful for studying waves, with components in
the poloidal, toroidal and paralle... | [
"[email protected]"
] | |
6a244720c1ec569ef5ad9d6d031558d08080eddc | 87f574548a321a668f325bc3d120a45366b0b76b | /booking/migrations/0029_auto_20151020_1527.py | a7ae5a2639c51692d05636dbc2675c9b1f1421d8 | [] | no_license | judy2k/pipsevents | 1d19fb4c07e4a94d285e6b633e6ae013da0d1efd | 88b6ca7bb64b0bbbbc66d85d2fa9e975b1bd3081 | refs/heads/master | 2021-01-14T11:11:26.616532 | 2016-10-07T20:47:39 | 2016-10-07T20:55:13 | 36,600,721 | 0 | 0 | null | 2015-05-31T11:51:14 | 2015-05-31T11:51:14 | null | UTF-8 | Python | false | false | 5,457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import django_extensions.db.fields
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"[email protected]"
] | |
3f0fffecb61d68c200b0497141ba08152cbf23ab | 77b3ef4cae52a60181dfdf34ee594afc7a948925 | /mediation/dags/cm_sub_dag_import_huawei_2g_files.py | 65d0e712174d52e4a419c52213345d1decc65dd8 | [
"Apache-2.0"
] | permissive | chandusekhar/bts-ce | 4cb6d1734efbda3503cb5fe75f0680c03e4cda15 | ad546dd06ca3c89d0c96ac8242302f4678ca3ee3 | refs/heads/master | 2021-07-15T02:44:27.646683 | 2020-07-26T08:32:33 | 2020-07-26T08:32:33 | 183,961,877 | 0 | 0 | Apache-2.0 | 2020-07-26T08:32:34 | 2019-04-28T21:42:29 | Python | UTF-8 | Python | false | false | 2,517 | py | import sys
import os
from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.python_operator import BranchPythonOperator
from airflow.operators.dummy_operator import DummyOperator
# sys.path.append('/me... | [
"[email protected]"
] | |
7f1d778988aaa8410b69aaff2a859853bb5d7817 | 97eac4a05c77e1b6898b84c9606afa13428e45df | /024_Lexicographic_permutations.py | 80fe8dd1ef24fad7bc08caf50d061bf609d82710 | [] | no_license | ryanmcg86/Euler_Answers | 8f71b93ea15fceeeeb6b661d7401e40b760a38e6 | 28374025448b16aab9ed1dd801aafc3d602f7da8 | refs/heads/master | 2022-08-11T13:31:11.038918 | 2022-07-28T00:35:11 | 2022-07-28T00:35:11 | 190,278,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | '''A permutation is an ordered arrangement of objects.
For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4.
If all of the permutations are listed numerically or alphabetically, we call it lexicographic order.
The lexicographic permutations of 0, 1 and 2 are:
012 021 102 120 201 210
... | [
"[email protected]"
] | |
a725d5a7921317bce3d96785f012f2976cfb7fb9 | 8b69984781bffb117f4adb5fbff2a75c0b31294f | /userinfo/migrations/0001_initial.py | 00ca6e3e7e58e40c8ac5de8eb3367407d2448966 | [] | no_license | kkamagwi/childOfChange | 899c5ee035090f9ab2d176a9d39cd58a48f01d39 | 8041cbfbda75e74ef1ae2470586abf45d4d431e9 | refs/heads/main | 2023-07-14T10:21:49.981455 | 2021-08-13T13:44:32 | 2021-08-13T13:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 3.2.5 on 2021-07-05 08:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserContacts',
fields=[
('id', models.BigAu... | [
"[email protected]"
] | |
986e36d2846558b181df26b7503d003c0c9797cc | f02fe8cd0506695e56570ecbb5be6e28cda55a2e | /course_tracker/hu_authz_handler/views.py | dadcfb04f4361a45d7dc7c4b3fd37b406983f917 | [] | no_license | raprasad/Course-Tracker | 71ec045024d3adc7ef061857696b3751452ce8c6 | dc5107b923c73fb73bea84dfc2df4c989c7fe231 | refs/heads/master | 2021-01-25T08:28:18.743834 | 2014-11-11T15:51:02 | 2014-11-11T15:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.core.urlresolvers import reverse
from django.contrib.auth import authenticate, login
from django.contrib.auth import logout
from django.core.mail im... | [
"[email protected]"
] | |
6da90b055be7beefd62289bc89d91a7ab8de662d | 53c157cca69d6ae719cb71d4917ee2f53a10b8e6 | /mobile_balance/mts.py | 515a21723e044c6650f8cf528223bc05c1027c56 | [] | no_license | Ksardos/mobile-balance | 03fdb072a364dee7f0c470f7069672c7b64ffa61 | 0f13d6be36c58abf401cb382fc85a75542adcdd5 | refs/heads/master | 2021-01-15T10:50:47.417407 | 2016-06-07T12:12:13 | 2016-06-07T12:12:13 | 78,822,827 | 0 | 0 | null | 2017-01-13T06:40:07 | 2017-01-13T06:40:07 | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/env python
import requests
import re
from .exceptions import BadResponse
from .utils import check_status_code
def get_balance(number, password):
session = requests.Session()
response = session.get('https://login.mts.ru/amserver/UI/Login')
check_status_code(response, 401)
csrf_token = re... | [
"[email protected]"
] | |
a465a6c6bfb2e0461cae260d9295a33bb90d79f2 | d974256fed39a5583012b17fd9c371121271814b | /charpter_04/test/client.py | 7bf183d5b1b86c1fceee40195c7030cf02fc7bf8 | [] | no_license | gbkuce/spider-courses | 18ce88beb120641eae19c01f331ddd53adc4105a | 3364b651149da600c51ed8d0d93a7e0cb4bc5211 | refs/heads/master | 2021-01-20T13:56:31.879419 | 2017-04-08T03:38:35 | 2017-04-08T03:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import socket
import sys
sock = socket.create_connection(('localhost', 20012))
sock.send('Client Request')
data = sock.recv(1024)
print 'data received: ' + data
sock.close() | [
"[email protected]"
] | |
b7c5b0a0bd0c73406067db7c8d978a348d299ee3 | 5b188a06f9b615b8a4541074fc50eeb1bfac5d97 | /链表/reverseKGroup.py | 82d64ffbfca37579083481a2d75302347af73f4c | [] | no_license | yinyinyin123/algorithm | 3a8cf48a48bd2758c1e156c8f46161fe3697342f | b53f030ea3a4e2f6451c18d43336ff9c5d7433af | refs/heads/master | 2021-01-07T20:07:12.544539 | 2020-08-31T05:16:44 | 2020-08-31T05:16:44 | 241,807,608 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py |
### 2020/06/01
### leetcode 25 K个一组翻转链表
### one code one day
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def reverseKGroup(self, head: ListNode, k: int) -> ListNode:
### 反转链表
def reverse(star... | [
"[email protected]"
] | |
276efbcd6b20cba653bfd60fa8fb2c22d660d55c | 48f7750776fbd4ba7e71dd3832cf1159222f759e | /tests/trailing_whitespace_fixer_test.py | 1c57b10ee1cf8c58b4da84c30418537434bdfa6e | [
"MIT"
] | permissive | exKAZUu/pre-commit-hooks | 9718bd44aa84ba7a4ab21c34d9f33b628c0b7807 | b85d7ac38f392a8f8b98732c61005d55c892577b | refs/heads/master | 2021-01-20T10:51:20.996895 | 2014-12-22T00:52:16 | 2014-12-22T03:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from plumbum import local
from pre_commit_hooks.trailing_whitespace_fixer import fix_trailing_whitespace
def test_fixes_trailing_whitespace(tmpdir):
with local.cwd(tmpdir.strpath):
for filename, contents in (
('foo.py', 'foo \nbar \n'),
('bar.py', 'bar\t\nbaz\t\n'),
... | [
"[email protected]"
] | |
116b0018982e3810edfd8a850cd43d84bac97cff | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/Examples/ch5/E_5_11.py | 1ef351797adac178ddaba4e92fb9cfee5488d852 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # E_5_11 功能:重覆產生亂數(0至9的整數)直到產生的值是零時結束。
import random as rd
num=rd.randint(0,9)
count=1
while num!=0:
print(num)
count+=1
num=rd.randint(0,9)
print(num)
print('%s%d%s' %('共產生亂數',count,'次')) | [
"[email protected]"
] | |
e73cbc2e1ed90e881b52a090b01e5ab3a5a0d057 | 54156856a1822a4cd6a7e9305369b5fa33b503ac | /python/machine-learning/recommendation/collaborative_filter.py | c3be7244ae6f685fe36a376371e9018e7cc9fb31 | [] | no_license | takasashi/sandbox | cafd903e7e376485c7fec05f0b4293078147c09f | a23d85258b5525498b57672993b25d54fa08f189 | refs/heads/master | 2023-07-09T04:37:28.532448 | 2021-08-09T06:11:30 | 2021-08-09T06:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,978 | py | from recommendation_data import dataset
from math import sqrt
print(("山田さんのカレーの評価 : {}".format(
dataset['山田']['カレー'])))
print(("山田さんのうどんの評価 : {}\n".format(
dataset['山田']['うどん'])))
print(("佐藤さんのカレーの評価: {}".format(
dataset['佐藤']['カレー'])))
print(("佐藤さんのうどんの評価: {}\n".format(
dataset['佐藤']['うどん'])))
print(... | [
"[email protected]"
] | |
987121413b17f4207dd02018f8528d8c260df6d6 | e15e3bba52180f86d7769a0b5ffd97f2b640777e | /tests/api-with-examples/api_with_examples/common/types.py | c15e02213215c2af34bb781b04b5fb4c5e3c2adb | [
"MIT"
] | permissive | stjordanis/openapi-client-generator | 06237ab4489c296aec0c3c5d3c811f8c2a310023 | a058af4ec28a1e53809273a662fb8cba0157695e | refs/heads/master | 2023-03-16T10:04:38.122121 | 2021-02-27T22:36:18 | 2021-02-27T22:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from enum import Enum
from typing import Optional, Sequence, Any, NamedTuple, Mapping, Union, Tuple, Type
import inflection
from typeit import TypeConstructor, flags
generate_constructor_and_serializer = TypeConstructor
class AttrStyle(Enum):
CAMELIZED = "camelized"
DASHERIZED = "dasherized"
UNDERSCORE... | [
"[email protected]"
] | |
58a7b1b4074ce5b68a3fb001fdc46c305921fcfd | 04e26128954d47f4937168d569f800f12cef686d | /gnuradio/python/bitErrorRate.py | 744934e74420d9dd4e07ffc434c01ffb83ae4e8f | [] | no_license | franchenstein/tcc | 02ed9f2666823610c0d025c4b64960813a227bc3 | b2ec6c2206628672edf004f09c09b68d115bf436 | refs/heads/master | 2021-01-13T12:56:30.315840 | 2015-02-10T10:22:34 | 2015-02-10T10:22:34 | 18,018,315 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | #!/usr/bin/env python
##################################################
# Gnuradio Python Flow Graph
# Title: Bit Error Rate
# Author: Daniel Franch
# Description: Calculates the BER based on the known original message and the final received message.
# Generated: Fri Aug 1 12:30:06 2014
##############################... | [
"ubuntu@ubuntu.(none)"
] | ubuntu@ubuntu.(none) |
86ffd25edee54a08e13df6afc30a3a3348a9b725 | 6bd3ad4389995d6acd5870a8a010d657d5a91b4c | /src/adminactions/templatetags/aa_compat.py | e3f6ace17242bea3bf45ce0154899e8a7fa1961b | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | timgates42/django-adminactions | aa0fa47812c8518ad0a996cac1b52eecc8e47ffb | af19dc557811e148b8f74d2a6effcf64afc8e0df | refs/heads/master | 2023-03-16T12:03:40.024049 | 2022-06-26T16:35:03 | 2022-06-26T16:35:03 | 249,811,327 | 0 | 0 | NOASSERTION | 2020-03-24T20:31:02 | 2020-03-24T20:31:01 | null | UTF-8 | Python | false | false | 185 | py | from django.template import Library
register = Library()
@register.tag
def url(parser, token):
from django.template.defaulttags import url as _url
return _url(parser, token)
| [
"[email protected]"
] | |
d853928d83b1bb7774836966374126863002bfec | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/tierras_20200222162818.py | 074ccb95c2262981a0f5e2bffc88e7ea5bad045c | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | import os
import pylab as pl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
os.system("clear")
fig = pl.figure()
axx = Axes3D(fig)
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 1)
Y ... | [
"[email protected]"
] | |
56af12c570c20f68f2ed9f868404b19006bdf490 | 70e970ce9ec131449b0888388f65f0bb55f098cd | /ClosureTests/test/localConfig_2016DEFGH_Tau.py | cbb6b9333a4223c9dcec00481c778ed32476b89d | [] | no_license | OSU-CMS/DisappTrks | 53b790cc05cc8fe3a9f7fbd097284c5663e1421d | 1d1c076863a9f8dbd3f0c077d5821a8333fc5196 | refs/heads/master | 2023-09-03T15:10:16.269126 | 2023-05-25T18:37:40 | 2023-05-25T18:37:40 | 13,272,469 | 5 | 12 | null | 2023-09-13T12:15:49 | 2013-10-02T13:58:51 | Python | UTF-8 | Python | false | false | 503 | py | from DisappTrks.StandardAnalysis.localConfig import *
config_file = "config_2016DEFGH_cfg.py"
intLumi = lumi["HLT_LooseIsoPFTau50_Trk30_eta2p1_v*"]["Tau_2016DEFGH"]
datasetsData = [
'Tau_2016D',
'Tau_2016E',
'Tau_2016F',
'Tau_2016G',
'Tau_2016H',
]
datasets = datasetsBkgd + datasetsData + datase... | [
"[email protected]"
] | |
956f70049baed530b16840b562c15c44f1075815 | 619f28995e61afc6277c6b1ad8a19d08f948bbd9 | /CrashCourseInPython/test_name_function.py | c1e18007364f282be06666ff19699ae17252873e | [] | no_license | danhagg/python_bits | cb407624d48a52d4fceacd2c4fca762abe3dd1ef | c5844fe464c6e896b1597d95f5a89b2cf66dc605 | refs/heads/master | 2020-03-18T13:16:53.014910 | 2018-09-17T16:26:06 | 2018-09-17T16:26:06 | 134,773,305 | 1 | 0 | null | 2018-07-11T22:23:09 | 2018-05-24T22:03:08 | Python | UTF-8 | Python | false | false | 774 | py | import unittest
from name_function import get_formatted_name
# following class inherits from class unittest.TestCase
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py'."""
# method to verify names with 1st and last formatted correctly
# method must start with "test"
def test_first_last_n... | [
"[email protected]"
] | |
c5d84ee44df35183938e7658a8aebaef5e4731ad | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/AVEO.py | 2c70d486a632cd0540110768b8144b09fb08d86a | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://investor.aveooncology.com/press-releases'
... | [
"[email protected]"
] | |
0f189006b7427ff0c47c6218323a7613f0be1eea | 6aee8ef9efcc43a611d1f6d8ebc9ba5c9234d0c7 | /xml/sample1.py | 7f3bb35ab48bcab97514ea1ba485832420509784 | [] | no_license | huython/python_tutorialspoint | 276bbaba341229d4c2f1b71a4865b8bd7e50b72b | dff9e0e53c68403af034a98ba299d75588481293 | refs/heads/master | 2020-03-29T15:35:29.202894 | 2018-09-24T08:02:43 | 2018-09-24T08:02:43 | 150,071,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | #!/usr/bin/python
import xml.sax
class MovieHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
... | [
"[email protected]"
] | |
43524050673b775d0d91efafd58f41dfb3e062a8 | b6d8570a6ad4891858f475481bd2b7faa9db3df6 | /avg bg.py | da5c282b8c462e864eea2da5d1d0b73d43ed4f82 | [] | no_license | Mayank-Bhatt-450/mpl-can-jump-bot | 9c0738f4a9395ecdc3cf61960cac586141ced723 | 1d13bf1fd49e7455c15dbf97d2f28b3882ea5660 | refs/heads/main | 2022-12-26T01:47:40.504723 | 2020-10-07T14:44:41 | 2020-10-07T14:44:41 | 302,066,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import pyautogui,time
from PIL import Image
import math,PIL
'''
img = pyautogui.screenshot()
img.save('new.jpg')
k=time.time()'''
#8 100
u=[0,0,0]
l=[112,194,127]
def dis(pt1,pt2=(2,35,47)):
#pt1=[170,10,154]
#pt2=(145,35,43)#(145,144,143)#(145,35,43)
distance=math.sqrt(((pt1[0]-pt2[0])**2)+((pt1[1]-pt2[1])... | [
"[email protected]"
] | |
ee65724f760436a1ddd06deee521690fd06da96f | 906579c9bb9330d0b35644f2cd45f7cd53881234 | /test.py | 968e828b5fcb6089889c756cd9cf3e2128580fb9 | [] | no_license | albert100121/Stereo-LiDAR-CCVNorm | cda767518684ff769c2c4507bed58fe5431ad152 | c40b09e08c6416ad9f7959aec8ed1160ca216bec | refs/heads/master | 2020-09-05T19:50:33.806036 | 2019-06-21T20:49:33 | 2019-06-21T20:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,615 | py | """
Testing process.
Usage:
# For KITTI Depth Completion
>> python test.py --model_cfg exp/test/test_options.py --model_path exp/test/ckpt/\[ep-00\]giter-0.ckpt \
--dataset kitti2017 --rgb_dir ./data/kitti2017/rgb --depth_dir ./data/kitti2015/depth
# For KITTI Stereo
>> python test.py --model_cfg exp... | [
"[email protected]"
] | |
73b312b68b541356d85fb0d14bea0e3ef11466ee | d7c9e5b45128c06997358987c8563fba1387c483 | /Modules/SortingLists.py | bbae23b5e4c47d487e64d78f3928e61214747808 | [] | no_license | Shadow073180/pythonPractice | 1ed389d448d82c91e796951f15c5ce81fbedb73e | 52d4f77109b0ffdaf8eab8094fe90b0dbab5a595 | refs/heads/main | 2023-03-28T06:01:00.090517 | 2021-03-17T19:56:58 | 2021-03-17T19:56:58 | 348,491,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py |
# Given a list with pairs, sort on the first element.
def sort_list_with_pairs_on_first_element(collection):
collection.sort(key=lambda x:x[0])
print(collection)
# Now sort on the second element
def sort_list_with_pairs_on_second_element(collection):
collection.sort(key=lambda x: x[1])
print(collect... | [
"[email protected]"
] | |
8519415c25b3fb42b6fabb878d849032a11561a9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/131/usersdata/260/38306/submittedfiles/al10.py | cf5bced616d8a83beddc4f52cebb3f6fea0b85b8 | [] | 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 | 278 | py | # -*- coding: utf-8 -*-
#NÃO APAGUE A LINHA ACIMA. COMECE ABAIXO DESTA LINHA
n=int(input("digite o número de termos desejado:"))
produto=1
for i in range (1,n+1,2):
if n%2 == 0
produto=produto*((i)/(i+1))
else
produto=produto*((i+1)/(i))
print(produto) | [
"[email protected]"
] | |
b422f5580abaf8f49648efea46f5591864331eb3 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pyexcel_20201111161453.py | 9ea777441d71ece291b7eaecf8bd2f954d7a1fdc | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from openpyxl import Workbook
from openpyxl.utils import get_column_letter
wb = Workbook()
dest_filename = 'empty_book.xlsx'
ws1 = wb.active
ws1.title = "range names"
for row in range(1, 40):
ws1.append(range(600))
ws2 = wb.create_sheet(title="Pi")
ws2['F5'] = 3.14
ws3 = wb.create_sheet(title="Data")
for row ... | [
"[email protected]"
] | |
ab888ea5d10530619540dd87dcd6a094a9ab20c1 | 8b957ec62991c367dfc6c9247ada90860077b457 | /test/functional/p2p_invalid_block.py | 5d51372d2d6595212073953a66767b2570a5c199 | [
"MIT"
] | permissive | valuero-org/valuero | 113f29046bd63c8b93160604452a99ed51367942 | c0a8d40d377c39792e5a79d4a67f00bc592aef87 | refs/heads/master | 2020-05-24T17:44:46.409378 | 2019-09-09T10:18:59 | 2019-09-09T10:18:59 | 187,392,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Copyright (c) 2018-2019 The Rito Core developers
# Copyright (c) 2019 The Valuero developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.... | [
"[email protected]"
] | |
a817828844765fa43ba5993b23bb82b037a2711f | b4fd46f1f9c7b7d3f78df723d8aa34c8a65edb1a | /src/hupper/watchman.py | 00b923fe217e9791afe2f80e24cfb82858ff3c69 | [
"MIT"
] | permissive | ProstoMaxim/hupper | b0bf6123c58b96eb6d97b5797fc57e390efbf513 | 46a46af2c459fb82884b205a47211b587aa05749 | refs/heads/master | 2020-03-29T19:50:51.316020 | 2018-09-25T15:14:43 | 2018-09-25T15:14:43 | 150,283,612 | 0 | 0 | MIT | 2018-09-25T14:57:55 | 2018-09-25T14:57:55 | null | UTF-8 | Python | false | false | 4,130 | py | # check ``hupper.utils.is_watchman_supported`` before using this module
import json
import os
import socket
import threading
import time
from .compat import PY2
from .interfaces import IFileMonitor
from .utils import get_watchman_sockpath
class WatchmanFileMonitor(threading.Thread, IFileMonitor):
"""
An :cla... | [
"[email protected]"
] | |
17fe14c4e6fa06e9f9f2562f8672e56c946a0ac6 | 5ca85847885c6fd6f9728b0b2dffb66e96a81a1d | /hemlock/app/routes/base_routing.py | c31895ffe2bf37417fd7aa109647fcf91a13ebb4 | [] | no_license | syfreed/hemlock_test2 | 682d843636883a6a2b883932cd7282e9b865ebcd | 61933fd17630ddd1bb46d8f2090b1b039a3b4e99 | refs/heads/master | 2020-08-03T11:21:18.460905 | 2019-09-29T22:36:36 | 2019-09-29T22:36:36 | 211,733,895 | 0 | 0 | null | 2019-10-22T14:21:27 | 2019-09-29T22:25:30 | Python | UTF-8 | Python | false | false | 1,489 | py | """Base routing functions"""
from hemlock.app.factory import bp, db, login_manager
from hemlock.database.models import Participant, Navbar, Brand, Navitem, Dropdownitem
from hemlock.database.private import DataStore
from flask import current_app, url_for
@login_manager.user_loader
def load_user(id):
return Parti... | [
"[email protected]"
] | |
80d23caed9eb691e211165bc984de9bfe7b6c3d1 | da9ce50833e5292d27e14d31ee90c5bcc410d71b | /survol/sources_types/CIM_Process/wbem_process_info.py | a51c26e47d53d0bdf1863f69b2a7c8f529808775 | [] | no_license | Tiancheng-Luo/survol | 10367b6b923f7095574436bb44fd5189b1e49160 | 30c7f771010462cd865480986abfe1045429f021 | refs/heads/master | 2022-11-26T16:02:46.852058 | 2020-07-25T07:28:34 | 2020-07-25T07:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #!/usr/bin/env python
"""
WBEM CIM_Process information.
"""
import sys
import lib_util
import lib_common
import lib_wbem
from lib_properties import pc
Usable = lib_util.UsableLinux
CanProcessRemote = True
def Main():
# TODO: can_process_remote should be suppressed because it duplicates CanProcessRemote
cgi... | [
"[email protected]"
] | |
6ce9270ac0a7bc5542a7cd5fc4ade24fab776cb6 | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/usr/tmp/pip-build-nyxh8e0k/google-cloud-vision/google/cloud/vision/likelihood.py | 6239efe18251f74ee337f3573ab128b3df84470d | [] | no_license | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 1,000 | py | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"[email protected]"
] | |
4dd509a2a70827664579c9c6793d408263d2abd3 | 2c5101623d0e12e66afac57a5599e9b45c0e65f9 | /groupchat/venv/lib/python3.5/site-packages/django_eventstream/utils.py | ba6393f92d586c4bd344bd993ef41d2e8409420c | [] | no_license | shushantkumar/chatapp-django-channels | bc40aa600a6a59c379d6f5b987ddfae71abb5dad | 6ec71d87134615769025ec9cc18da9d614d1d499 | refs/heads/master | 2020-03-17T23:10:36.280696 | 2018-05-24T05:08:06 | 2018-05-24T05:08:06 | 134,034,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,775 | py | import json
import threading
import importlib
import six
from werkzeug.http import parse_options_header
from django.conf import settings
from django.http import HttpResponse
from django.core.serializers.json import DjangoJSONEncoder
from gripcontrol import HttpStreamFormat
from django_grip import publish
try:
from ur... | [
"[email protected]"
] | |
bb92a4fbe5cfa6ba62e826caf72954a732bb9e22 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_emasculates.py | a1b9e9f4cad8bf9f0e90f0b93fdf68dd57c412e6 | [
"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 | 238 | py |
#calss header
class _EMASCULATES():
def __init__(self,):
self.name = "EMASCULATES"
self.definitions = emasculate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['emasculate']
| [
"[email protected]"
] | |
af77c1523d4d9b222680e0262c87780f066ae5fe | cabdd862b94cb37924c9b73bdab3a7a6f72f3506 | /bin/annex-passport | 369183ab4d99e6308eb46bf51615549b2ce55766 | [
"Unlicense"
] | permissive | umeboshi2/dotfiles | 313114284e300f552a5e77b1ef8c9bb34833caae | 8aa56f93bd4efc1beaa56762d286450a453a9e58 | refs/heads/master | 2023-01-14T03:51:51.055141 | 2021-02-17T23:40:37 | 2021-02-17T23:40:37 | 18,471,913 | 0 | 2 | Unlicense | 2022-12-26T21:34:27 | 2014-04-05T17:18:31 | Emacs Lisp | UTF-8 | Python | false | false | 1,421 | #!/usr/bin/env python
import os, sys
import subprocess
import argparse
# a simple script to mount and unmount removable passport
# drive in annex chroot.
passport_mediapath = 'media/umeboshi/passport'
annex_chroot = '/var/lib/schroot/mount/annex'
main_mntpt = os.path.join('/', passport_mediapath)
annex_passport = o... | [
"[email protected]"
] | ||
efff35648033dc2420b00bdc78193848dab512cb | fb5a99b06d2525c46ff24b97cff37ea0a14cc0ca | /opencv/convert_to_grayscale.py | ec6e28a4a805bdda7a25e24d23ae9c7066a73d97 | [] | no_license | khx0/image-processing | efac3d1e39a2ce67701a534633ce8f9af2ba35fe | 9d173b6b298d511583237011b0ffbcd01f3a1fda | refs/heads/master | 2020-03-23T09:48:34.657459 | 2018-08-29T11:15:08 | 2018-08-29T11:15:08 | 141,408,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | ##########################################################################################
# author: Nikolas Schnellbaecher
# contact: [email protected]
# date: 2018-08-28
# file: convert_to_grayscale.py
# requires: OpenCV
# https://opencv.org
# Tested with Python 3.7.0 and OpenCV versio... | [
"[email protected]"
] | |
c886e1c66c831d014b2619c235b6c78fbff842fb | 0874ecce812388593a34014cad26d3b4959d07ac | /awards/views.py | bc491a3653604b8ff42c8c15273d84fadf3688b1 | [
"MIT"
] | permissive | melissa-koi/awwardsclone | d990f82eb9d1354a54af68d7fa61fe5856bfd2c1 | b82447cea82672038ea9fa9d9ca9867bff3c35f0 | refs/heads/main | 2023-06-01T12:20:05.315928 | 2021-06-03T15:31:21 | 2021-06-03T15:31:21 | 372,236,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | from django.db.models import Avg, F, Sum
from django.shortcuts import render, redirect
from .forms import RegisterForm, RateForm, UploadWeb, CreateProfileForm, UserUpdateForm, ProfileUpdateForm
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from dja... | [
"[email protected]"
] | |
8824696e2db2d6a34fb6fc5a99c2eac887d2018b | 20e9106fd6398691dcfe95c18d75bf1e09d28369 | /runtime/Python2/src/antlr4/ParserRuleContext.py | f0eb4995f6079786342c04a78b4764390c69a617 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | alvarogarcia7/antlr4 | 4eb30d1e79adc31fe1901129acc2b4f91a1c0657 | 82372aae2ce73abe5e087a159a517a0890224fb7 | refs/heads/master | 2021-01-04T02:41:55.596897 | 2016-12-10T00:05:11 | 2016-12-10T00:05:11 | 76,113,547 | 0 | 0 | null | 2016-12-10T13:15:45 | 2016-12-10T13:15:45 | null | UTF-8 | Python | false | false | 5,715 | py | # Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
# Use of this file is governed by the BSD 3-clause license that
# can be found in the LICENSE.txt file in the project root.
#* A rule invocation record for parsing.
#
# Contains all of the information about the current rule not stored in the
# RuleCon... | [
"[email protected]"
] | |
2115b468d4bc223050b6dcdf147277fe1a3ae7cf | 7252d86a55e5e388d9e7c81c3390679116a41958 | /pages/mipagina/urls.py | b79f832ad575b90c9fbfbd83f5b10ee435653d0b | [] | no_license | IvanPuentes/Proyecto_U4_Regula | f979f2a15fbd6dd722a707dd5bf412e5cbfaee70 | 811edd72ceea450f6392d5d228e67406bf1c0371 | refs/heads/master | 2023-06-04T04:42:18.334554 | 2021-06-22T00:51:43 | 2021-06-22T00:51:43 | 379,051,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | from django.urls import path,include
from .views import HomePageView,TecView,RegistrarView,CreateViajesView,CreateVuelosView,VueloPageView,CreateHospedajeView,HospedajePageView,UpdatePageView,UpdateVueloPageView,UpdateHospedajePageView,DescripViajesPageView,DescripVuelosPageView,DescripHospPageView,ViajeDeleteView,Abou... | [
"[email protected]"
] | |
845d79dde7ac418ae4ca8388a71edea4e4bcbc80 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/zhaw_neural_style/neural_style-master/texturenet/make_image.py | 1b842a5854b20a9d13e4427dda47c367a03a74e6 | [] | 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 | 3,007 | py | import os
import time
import mxnet as mx
import numpy as np
import symbol
import cPickle as pickle
from skimage import io, transform
def crop_img(im, size):
im = io.imread(im)
if im.shape[0]*size[1] > im.shape[1]*size[0]:
c = (im.shape[0]-1.*im.shape[1]/size[1]*size[0]) / 2
c = int(c)
... | [
"[email protected]"
] | |
ce4f7f8a6237434ae7a29315408556d8fbc515a1 | 4db61d3e2b36d11aff43be060f8bab6fef3a6c63 | /flask/index.py | 2b6e8fb05982a31b2f54f967d6233860b58f71f7 | [] | no_license | ramalho/microfinder | 1d59daa3cbb741d80f759ab3a4dd8c189aeed80b | 0be75d9ff0003e570668db5bcd51e6e5e72821c4 | refs/heads/master | 2020-03-24T18:17:37.355736 | 2018-10-10T15:02:22 | 2018-10-10T15:02:22 | 142,888,420 | 0 | 0 | null | 2018-07-30T14:39:53 | 2018-07-30T14:39:52 | null | UTF-8 | Python | false | false | 781 | py |
import sys, unicodedata
import flask
def add_entry(index, char, name):
for word in name.split():
index.setdefault(word, []).append(char)
def index():
entries = {}
for code in range(sys.maxunicode):
char = chr(code)
try:
name = unicodedata.name(char)
except Val... | [
"[email protected]"
] | |
b118cd2999cf826b059834c59cf36cb1395e6d13 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/element/titanic-simple-xgboost-model/titanic-simple-xgboost-model.py | c62cce354181f28a6563da15d0f966cfde7f6e46 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | #!/usr/bin/env python
# coding: utf-8
# # Basic modeling
# This notebook presents simple and quick way to implement a XGBoost classifier on the Titanic dataset. It doesn't come to data visualization and feature engineering. This is kind of a first approach.
# In[ ]:
import numpy as np # linear algebra
import pand... | [
"[email protected]"
] | |
901f1bc9d292c42147ff6373749f92023a60771d | f77028577e88d228e9ce8252cc8e294505f7a61b | /web_backend/nvlserver/module/user/specification/create_user_specification.py | 01c30c0f0202bb9a1c221340e3632c081cd325eb | [] | no_license | Sud-26/Arkally | e82cebb7f907a3869443b714de43a1948d42519e | edf519067d0ac4c204c12450b6f19a446afc327e | refs/heads/master | 2023-07-07T02:14:28.012545 | 2021-08-06T10:29:42 | 2021-08-06T10:29:42 | 392,945,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = '1.0.1'
create_user_element_query = """
INSERT INTO public."user" AS usr
(email, password, fullname, locked, language_id, meta_information,
account_type_id, active, deleted)
VALUES
($1, $2, $3, $4, $5, $6, $7, $8, FALSE) RETURNING *;
"""
create_user_elem... | [
"[email protected]"
] | |
9da0eadc5fc439cbbbfa4f8b4d71be538501e928 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03423/s386141222.py | 32ef67cadf9e12133fae837a4a87668df41844e1 | [] | 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 | 133 | py | def main():
import sys
input = sys.stdin.readline
N = int(input())
print(N//3)
if __name__ == '__main__':
main() | [
"[email protected]"
] | |
6a02c8fb4d49934aaaa161755b66b6468067b274 | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/services/__init__.py | 163504bbf5b01997c49c4e80a164a9d41b3fcac5 | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | [
"[email protected]"
] | |
39a8dc422113338f86c9a52b0309b38e0cc34c95 | 3b88c7805cf6b8fb9a1e00470c7c6faebd7efa80 | /src/outpost/django/geo/migrations/0022_auto_20221219_1728.py | 92841f8165ec5c82eb8781f15ea220c83c9d0db0 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost.django.geo | e84abc7a550b2d0e82f6bb58611039762543be67 | 04424d97c992b3d6f3ca16e9109df9c530a4ba2a | refs/heads/master | 2023-07-24T03:37:50.531723 | 2022-12-19T19:29:14 | 2022-12-19T19:29:14 | 183,224,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # Generated by Django 2.2.28 on 2022-12-19 16:28
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geo', '0021_auto_20200805_1403'),
]
operations = [
migrations.AlterModelOptions(
nam... | [
"[email protected]"
] | |
6ff07d0ed47b6d34994d78317a0abf2e183bcc46 | 99fca8eaa3fb5e93ed4ed857b439293bc0952c79 | /Data Visualization Pandas/plot_1.py | e37cba6e99ff3c2c68fea4f574dddd99d7c01ca1 | [] | no_license | Ebyy/python_projects | 7adb377f4e8eec94613e4e348f02c2ded306efac | 0cacfab443d3eeeb274836b7be4b7205585f7758 | refs/heads/master | 2020-05-19T22:28:17.672051 | 2019-05-19T19:32:19 | 2019-05-19T19:32:19 | 185,240,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
style.use('ggplot')
web_stats = {'Day': [1,2,3,4,5,6],
'Visitors': [43,53,34,45,64,34],
'Bounce_Rate': [65,72,62,64,54,66]}
df = pd.DataFrame(web_stats)
#print(df)
#print(df.head())
#print(d... | [
"[email protected]"
] | |
d6f6f38657b6972b2a4266a44848d7eeb98c00b3 | ba977400c6f7e23dd2934476d70db38f8d83c2e5 | /visualization/92_plot_training.py | e155069e7bd9d7bd6c01606041bffd35fa3e54a9 | [] | no_license | jasonwei20/adaptable-image-classification | 9b53396e7db84e4e025f7686bc6936b7b64fa5e1 | 4762d1a8a6a8151bfec0306d07525dc43048aba6 | refs/heads/master | 2021-02-11T08:36:21.327647 | 2020-04-05T16:53:20 | 2020-04-05T16:53:20 | 244,473,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
from pathlib import Path
from typing import (Dict, List)
checkpoint_folder_dict = { Path("/home/brenta/scratch/jason/checkpoints/voc/vanilla/exp_92a"): "Random (Baseline)",
Path("/home/brenta/scratc... | [
"[email protected]"
] | |
7fd36cfa7f03dce19df244b78377d20894673f87 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /41_2.py | f343d466c7476a09c8c0fa86b2be1400e2016843 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | class Solution(object):
def firstMissingPositive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
#哈希表的思路,但是哈希表又不能新开辟内存,所以直接使用nums的内存,
for i in range(len(nums)):
j=i
# print(j)
# while nums[j]>0 and nums[j]<=len(nums) and nums... | [
"[email protected]"
] | |
8fd706f7e60376636515b21a0251659fca0ba11a | f16c091a4a5eacbf4baa4d9a5bd747de7e43c9fd | /webfeet.py | a1584157608c132d8d3b6f92699212dffebab86d | [
"BSD-3-Clause"
] | permissive | tdsmithCapU/pymarc-ebooks-scripts | 28c2e2040510cce2b28a12f098bf702f3b3fcc15 | 61cba8e4d83ea6621d2a004294c9cf29d6cdfff8 | refs/heads/master | 2021-05-28T16:53:23.540185 | 2014-11-07T20:25:09 | 2014-11-07T20:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | #!/usr/bin/env python
"""
outputs number of these terrible "Web Feet" records we had in our catalog
because we wanted to delete them all
"""
from pymarc import MARCReader
reader = MARCReader(open('ebooks.MRC'))
numWF = 0
op = ''
for record in reader:
op = ''
if record['245'] is not None:
if record['24... | [
"[email protected]"
] | |
1efba9bbb51a11c2017e78de5abfebea16dc6fd2 | 0afdfbe3f5b16ef9662d69968a3675a0b51766a7 | /bin/svn-release | 537c25a62d21dd59bb75a98bb9517ac4fd36cc7a | [] | no_license | tumb1er/bamboo-build-tools | 3fd5b54f28d037ef67d86e2d8c5f74b2400a28a6 | c10f31850bfcd8fd3e5ba075740c4138482e541c | refs/heads/master | 2021-01-02T08:39:32.697471 | 2019-01-22T06:35:32 | 2019-01-22T06:35:32 | 10,936,292 | 14 | 13 | null | 2015-12-24T15:47:00 | 2013-06-25T11:18:40 | Python | UTF-8 | Python | false | false | 1,200 | #!/usr/bin/env python
from optparse import OptionParser
import re
import sys
from bamboo.helpers import cerr
from bamboo.svn import SVNHelper
parser = OptionParser(
usage='%prog [options] <integration-task-key> <stable>',
epilog='if not task_key supplied, will take them from STDIN')
parser.add_option("-c", ... | [
"[email protected]"
] | ||
4da67f7240f871ec3438e461842e4d016a41d031 | 9da6036e7448a30d1b30fa054f0c8019215343f7 | /epaper7in5b.py | 60eec18a29920c0228b2d6d5ea7e89fa4cd224a6 | [
"MIT"
] | permissive | Markus-Be/micropython-waveshare-epaper | 4e24a3535bade98d030b4259a089d9521b83f372 | 54e44f5eb1f58185f6ee4c3bf698a5b270584c8a | refs/heads/master | 2020-03-17T23:25:02.684134 | 2018-02-25T22:02:23 | 2018-02-25T22:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,906 | py | # MicroPython library for Waveshare 7.5" B/W/R e-paper display GDEW075Z09
from micropython import const
from time import sleep_ms
import ustruct
# Display resolution
EPD_WIDTH = const(640)
EPD_HEIGHT = const(384)
# Display commands
PANEL_SETTING = const(0x00)
POWER_SETTING ... | [
"[email protected]"
] | |
d00852eda6279d4ffe2238dc7824a7afd39520d7 | 3151fabc3eb907d6cd1bb17739c215a8e95a6370 | /storagetest/pkgs/pts/aio/__init__.py | d65ddb2e7f4c7fe45271498226071e84ce8e9a13 | [
"MIT"
] | permissive | txu2k8/storage-test | a3afe96dc206392603f4aa000a7df428d885454b | 62a16ec57d619f724c46939bf85c4c0df82ef47c | refs/heads/master | 2023-03-25T11:00:54.346476 | 2021-03-15T01:40:53 | 2021-03-15T01:40:53 | 307,604,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@file : __init__.py.py
@Time : 2020/11/12 17:17
@Author: Tao.Xu
@Email : [email protected]
"""
from .aio_stress import *
__all__ = ['AioStress']
"""
DBENCH
==============
https://dbench.samba.org/web/index.html
https://openbenchmarking.org/test/pts/dbench-1.0.0
DB... | [
"[email protected]"
] | |
39dc4db957a259186b8dda8fdafdf81bdf7c08aa | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_statistics_response.py | 37f0f31bc7acb2df13f6c9f35c68b04e2742fea8 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListStatisticsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"[email protected]"
] | |
98add982addaab600ecf76da05cada48297224f9 | 53181572c4b22df4b569a9901bcd5347a3459499 | /tuit_190315_songyuda/demo0322/integer.py | 199c22c41f1d87f7184e01b623c85f7d1d6bf3de | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # data types
# number (integer, float)
# string
# decimal, hex, oct, bin
d1 = 11
h1 = 0xF
o1 = 0o10
b1 = 0b1100
# hex(), oct(), bin()
print(h1) | [
"[email protected]"
] | |
d5dc3e2fbf8dccb285ca1d21ad9ffb8564f280a0 | b92b9f089ace00f8b301abca3d2871faf33f11af | /rrdpic/update.py | faf2f1214e0ed9382ff0f39eb1f193e972cfac4b | [] | no_license | zhouyu37/study | c3453613d8b446478af61bf4df7910ec4649b536 | a8b2702fc94e6abd6a15f21b833bb885ee011fa9 | refs/heads/master | 2021-03-17T22:15:25.924902 | 2020-03-13T08:32:55 | 2020-03-13T08:32:55 | 247,022,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # -*- coding: utf-8 -*-
import rrdtool
import time,psutil
total_input_traffic=psutil.net_io_counters()[1]
total_ouput_traffic=psutil.net_io_counters()[0]
starttime=int(time.time())
update=rrdtool.updatev('Flow.rrd','%s:%s:%s'%(str(total_input_traffic),str(total_ouput_traffic),str(starttime)))
print(update)
| [
"[email protected]"
] | |
7b44072c08d20cbfaf773b21a7025382966bb70b | 0f7496520832831a6ae89481fa994fb540882efd | /feedback/views.py | 315627663293e3ce54660bf14f1b12cac40a1678 | [
"ISC"
] | permissive | pmaigutyak/mp-feedback | f88287f6aa7e5812e24f51f3ea14c1a8b2d98cb3 | a5bcf5e67aeced62f048466b9e1354f5183f8eeb | refs/heads/master | 2022-04-19T12:02:18.729823 | 2020-04-20T17:55:07 | 2020-04-20T17:55:07 | 257,354,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py |
from django.conf import settings
from django.apps import apps
from django.shortcuts import render
from django.http.response import HttpResponse
from django.views.generic import FormView
from django.core.mail import send_mail
from django.template.loader import render_to_string
from feedback.forms import FeedbackForm
... | [
"[email protected]"
] | |
238e9f37d5e366d3845c2409f3db92ee35db09c2 | 1e90f2e153c9040c4e0ff417e009bf929ddfa1a4 | /preprocess.py | 13ebed8963e1c6314cfb23827dd8f2b107d65d85 | [] | no_license | hkxIron/SlotGated-SLU | d83b786b3f9243fd04bffe6c13d451c435b15679 | dc17780cc37f79ed9c4c3854af1c076020742a2f | refs/heads/master | 2020-04-11T12:19:19.724026 | 2019-03-10T16:35:51 | 2019-03-10T16:35:51 | 161,776,548 | 0 | 0 | null | 2018-12-14T11:37:22 | 2018-12-14T11:37:21 | null | UTF-8 | Python | false | false | 2,007 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/10/28 下午 08:55
# @Author : Aaron Chou
# @Site : https://github.com/InsaneLife
import gensim
import numpy as np
data_root = 'E:\project_data\word_vector/'
model_path = data_root + 'GoogleNews-vectors-negative300.bin.gz'
# 导入模型
model = gens... | [
"[email protected]"
] | |
b06d8c40c0056f651b15c192c20b92aa0e21e03f | 84e661d5d293ec0c544fedab7727767f01e7ddcf | /gallery/migrations-old/0009_photograph_featured.py | 6408790716972e18b35daf2e444fa702b7aff740 | [
"BSD-3-Clause"
] | permissive | groundupnews/gu | ea6734fcb9509efc407061e35724dfe8ba056044 | 4c036e79fd735dcb1e5a4f15322cdf87dc015a42 | refs/heads/master | 2023-08-31T13:13:47.178119 | 2023-08-18T11:42:58 | 2023-08-18T11:42:58 | 48,944,009 | 21 | 23 | BSD-3-Clause | 2023-09-14T13:06:42 | 2016-01-03T11:56:48 | JavaScript | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-11-17 11:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0008_auto_20161104_1658'),
]
operations = [
migrations.AddField(
... | [
"[email protected]"
] | |
29fcf5c22c1c7225a673988eb942de70924f71d7 | 0db19410e9751790af8ce4a0a9332293e379c02f | /tests/test_datasets/test_datasets/test_animal_datasets/test_animalkingdom_dataset.py | cc5e42ffbbdc7b17adaeaedc41fc52bc0cc6667a | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 5,276 | py | # Copyright (c) OpenMMLab. All rights reserved.
from unittest import TestCase
import numpy as np
from mmpose.datasets.datasets.animal import AnimalKingdomDataset
class TestAnimalKingdomDataset(TestCase):
def build_ak_dataset(self, **kwargs):
cfg = dict(
ann_file='test_animalkingdom.json',
... | [
"[email protected]"
] | |
3a2e785791e7462bb3a02e89809ac03e184ec239 | 188d5160cbc54d36d76110ad75478db951b525ac | /consumer/models.py | 1fb2eb82e6b5ee5d1a14be3358cf9295f3ccb39e | [] | no_license | adnankattekaden/hackathon | 660d71e11d00e6f8cce8c1b994ed2c8ab0a76bd1 | 329447d1a461a96a919d90be37dce1fb386f75db | refs/heads/master | 2023-02-27T08:58:32.903279 | 2021-01-25T07:00:29 | 2021-01-25T07:00:29 | 332,652,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from django.db import models
from django.contrib.auth.models import User,auth
# Create your models here.
class UserDetails(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
mobile_number = models.BigIntegerField(null=True,blank=True)
| [
"[email protected]"
] | |
e5c3a7732b89ca410005224d0909b9aae4783c99 | 385ce240ae264a1449079c21bd0c4cbe7c0fe3b8 | /GUI/rovan.py | a86c206a7737e0fefdd6181a8e91f57041743956 | [] | no_license | Maxcousin123/Python-workspace | 3ed60ae80d790b5c055bf47872ff0fdd39f4ec58 | 326b023190a12e082dcb35ae5ab8ef644c32159b | refs/heads/master | 2022-11-24T11:05:08.707003 | 2020-07-29T06:32:08 | 2020-07-29T06:32:08 | 283,415,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | import mysql.connector
x,y,z,v='color: ','size: ','price: ','Enter the code: '
mydb = mysql.connector.connect(
host='localhost',
user='maxcousin',
password='secret :)',
database='testdb' #to request a specific database
)
mycursor = mydb.cursor()
def newdata(b,c,d,e):
"""to insert the code and d... | [
"[email protected]"
] | |
527b0be34e8054db78151a98fa3d6f2997ac2bb7 | 1f067fe2e85ccf2c11b6cbece41028273fa6dcd6 | /tests/test_user.py | c454a18cb82b75f46a56653019a313078cd507e1 | [
"MIT"
] | permissive | mireille1999/Pitches | f02d76396c69ed36dd4b019dda9e588c7a52b291 | 425d996404569b23f63fe5217867adc0ac2f3afc | refs/heads/main | 2023-03-31T08:56:52.953314 | 2021-03-31T10:45:13 | 2021-03-31T10:45:13 | 353,043,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import unittest
from app.models import User
from os import urandom
class UserModelTest(unittest.TestCase):
"""
Test class to test the behaviour of the user class
"""
def setUp(self):
"""
Set up method that will run before every Test
"""
self.new_user = User(username='m... | [
"[email protected]"
] | |
d2d1d9574f9531a0aa9afcb6fcad627939cbaf98 | b685c82024360588ccff3db9004c01ba8292fd62 | /tools/zoom/templates/apps/basic/index.py | b174f07c7cfe7786142add35e6ffd4f627d2621a | [
"MIT"
] | permissive | sean-hayes/zoom | 2a9662d568e9ca04f0bed99c63275af5680b7e9f | eda69c64ceb69dd87d2f7a5dfdaeea52ef65c581 | refs/heads/master | 2021-01-19T10:39:10.274324 | 2017-12-20T22:44:26 | 2017-12-20T22:44:26 | 87,887,573 | 1 | 1 | null | 2017-04-11T04:16:47 | 2017-04-11T04:16:47 | null | UTF-8 | Python | false | false | 467 | py | """
basic index
"""
import zoom
class MyView(zoom.View):
"""Index View"""
def index(self):
"""Index page"""
return zoom.page('Content goes here', title='Overview')
def about(self):
"""About page"""
content = '{app.description}'
return zoom.page(
... | [
"[email protected]"
] | |
ff47bf42bf696623df4bb9b6b23f46bb1c872804 | f50fca4275b43ed0fc7411e5d4a79c75ef1c1ed7 | /maximalsum.py | 8d4c8efc5e2963e16a5b14766fcbb4da2fa59600 | [] | no_license | swang2000/DP | 2169a85eec05d9be13cbcee1dcaf417ee4c4d70f | 6d9523398a9f4e802213b1184166a90530bfc26b | refs/heads/master | 2020-04-05T09:55:02.004433 | 2018-11-08T23:10:01 | 2018-11-08T23:10:01 | 156,780,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | '''
Dynamic Programming | Set 31 (Optimal Strategy for a Game)
4.1
Problem statement: Consider a row of n coins of values v1 . . . vn, where n is even. We play a game against an opponent
by alternating turns. In each turn, a player selects either the first or last coin from the row, removes it from the
row permanently,... | [
"[email protected]"
] | |
c6ce4a8d43a2a3b900beb1f0c64bc4d7f9912bf0 | 5fd96aaeebcf137b46c611ad992de307861639a1 | /recollection/apps/support/forms.py | 74fbfd9abc5d92361edb2d02a1b7053380ee87f9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-secret-labs-2011",
"CC-BY-2.5",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | tfmorris/recollection | f91800c569ee9d05334e085c8dd050bc65ae23ca | 9e818f91b30b43b392ad9ca608e0068f868a51c1 | refs/heads/master | 2021-01-18T03:58:20.393406 | 2012-04-15T22:08:39 | 2012-04-15T22:08:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,770 | py | from django import forms
from django.forms import widgets
from django.utils.translation import ugettext_lazy as _
from django.utils import simplejson as json
from . import models
class SupportIssueForm(forms.Form):
"""
Base form for recollection support
>>> f = SupportIssueForm({'contact_type':'email', 'c... | [
"[email protected]"
] | |
bc6753a7cd0f2642d7b4b8c2e587b1fdbd850bd8 | 33ce95a46bad431fb9acde07f10f472c43533824 | /functions_advanced_lab/absolute_values.py | 0e7d743dc7d8b0c0dd460d48eb7f661c1730c4b7 | [] | no_license | ivan-yosifov88/python_advanced | 91dead1a44771a46e85cecdfc6b02e11c0cb4d91 | 21830aabc87eb28eb32bf3c070bf202b4740f628 | refs/heads/main | 2023-06-29T21:31:30.285019 | 2021-06-23T20:31:36 | 2021-06-23T20:31:36 | 342,571,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | def read_input():
list_of_numbers = [float(num) for num in input().split()]
return list_of_numbers
def print_result(numbers_list):
print([abs(num) for num in numbers_list])
numbers = read_input()
print_result(numbers) | [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
93a13f5c7aae90aafc40f7680b9fdc982234540b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch73_2020_04_22_12_07_59_451590.py | 7d390abc9a0f7b282992c69a56b50822905358f1 | [] | 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 | 273 | py | def remove_vogais(palavra):
i = 0
while i < len(palavra):
if palavra[i] == 'a' or palavra[i] == 'e' or palavra[i] == 'i' or palavra[i] == 'o' or palavra[i] == 'u':
del palavra[i]
i+=1
else:
i+=1
return palavra | [
"[email protected]"
] | |
7cf703c9e6a3e84f639e61fbb79d305d183c1026 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2006/devops/day02/dingtalk.py | f09a620f5c3c08dd4c56aa692938ff3c8368b2ce | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | import requests
import json
url = ''
headers = {'Content-Type': 'application/json; charset=UTF-8'}
# data = {
# "msgtype": "text",
# "text": {
# "content": "我就是我, 是不一样的烟火 好好学习天天向上"
# },
# "at": { # @哪些电话号码
# "atMobiles": [
# # "156xxxx8827",
# # "189xxxx8325"
# ... | [
"[email protected]"
] | |
4f1d9ab5863aa6c57561c239f1fac7c3dcaad503 | 4b7b46a6d0f8ebeb544ff4b213a9c710e4db59c1 | /src/make_select_occultation_times_table.py | 37167b9a48f724cf579391caca8ae2f839332f1f | [] | no_license | lgbouma/WASP-4b_anomaly | 7eb44a54af553298075c69a3e4f7d9ea607bb762 | 124b0bb9912e43d47d98f6dfc390be7ef9823095 | refs/heads/master | 2021-08-19T20:28:18.577334 | 2020-04-11T17:49:09 | 2020-04-11T17:49:09 | 160,554,122 | 0 | 0 | null | 2020-02-09T14:13:21 | 2018-12-05T17:27:01 | TeX | UTF-8 | Python | false | false | 2,054 | py | # -*- coding: utf-8 -*-
'''
make table of selected transit times
'''
from __future__ import division, print_function
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt, pandas as pd, numpy as np
from glob import glob
import os, pickle
def get_data(
datacsv='../data/WASP-18b_literature_and_TE... | [
"[email protected]"
] | |
335248f2dc979c968e6eebcf946bc83489b010b2 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/FilterDoubleRule.py | 27c4478ffdcdb2e5d8a367b3b2f1c85017c412ed | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 1,749 | py | class FilterDoubleRule(FilterNumericValueRule,IDisposable):
"""
A filter rule that operates on double-precision numeric values in a Revit project.
FilterDoubleRule(valueProvider: FilterableValueProvider,evaluator: FilterNumericRuleEvaluator,ruleValue: float,epsilon: float)
"""
def Dispose(self):
"""... | [
"[email protected]"
] | |
5be03d61a8e343b861e064451418f9530ddfa6e1 | 28a3860f80ff80ae3ce0650f99a7b8e00fbfdb4f | /compredospequenos/viviremediavenv/bin/futurize | e5e7466a0a3f40107a8ec3ef9ac5ee6fc7c3dd59 | [] | no_license | ladislauadri/compredospequenos | 3a47f9433c2a6c389c2b02c04b587e70c5fb1168 | 639d44c0488700b0bb359e83c16ee9c6302aad17 | refs/heads/main | 2023-03-08T07:27:12.970315 | 2021-02-18T10:56:49 | 2021-02-18T10:56:49 | 339,982,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | #!/var/django/compredospequenos/viviremediavenv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"[email protected]"
] | ||
48bffe0c9f300459f379cdb715aa7d5b13343fa1 | 9e401071eb220b299df1fec0be5a6da0976d6a9b | /wordlioud.py | 1c478e796e64b6dca0635812380a1582a769f39b | [] | no_license | skyshu/WordCloudExample | 543ccc4eeacf5a4962cefee3f9cf9912f5b5dc2b | f44311bcdc4e05af7eab2700833436698ff27964 | refs/heads/master | 2021-01-21T17:57:30.420006 | 2017-05-22T04:08:41 | 2017-05-22T04:08:41 | 92,003,767 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #coding:utf-8
from os import path
from scipy.misc import imread
import matplotlib.pyplot as plt
import jieba
import codecs
from wordcloud import WordCloud, ImageColorGenerator
# 获取当前文件路径
# __file__ 为当前文件, 在ide中运行此行会报错,可改为
# d = path.dirname('.')
d = path.dirname(__file__)
# 读取文本 alice.txt 在包文件的example目录下
text = open(p... | [
"="
] | = |
cbe4a683f083cefc8d159895afa7eb75d352e5c8 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Ramsundar18TensorFlow/D_Chapter3/D_Review/index.py | ee8d6792fe9cd217a56ecbb6f3b415dcf80f3fc2 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.ImageBlock import ImageBlock as ibk
from modules.node.block.MarkdownB... | [
"[email protected]"
] | |
ad8a8be88f337d0531bf7228029cf49b62dfd7ff | 59a688e68421794af64bfe69a74f64b2c80cd79d | /math_numbers/number_relations.py | 54380ae099fc73542c01e7baa6c84156986a75ef | [] | no_license | hearues-zueke-github/python_programs | f23469b306e057512aadecad0ca0a02705667a15 | d24f04ca143aa93f172210a4b9dfdd9bf1b79a15 | refs/heads/master | 2023-07-26T00:36:56.512635 | 2023-07-17T12:35:16 | 2023-07-17T12:35:16 | 117,093,746 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | #! /usr/bin/python3.5
import decimal
import math
import numpy as np
import matplotlib.pyplot as plt
from decimal import Decimal as D
from functools import reduce
decimal.getcontext().prec = 2000
def to_digit_list(n):
return list(map(int, list(str(n))))
''' Number manipulation functions '''
def digit_sum(n):
... | [
"[email protected]"
] | |
68d0876c783e333bac7aede80bfc8173d2d38b21 | ee2181511a6e4165c348d3c20d01f81673650e33 | /dask_xgboost/core.py | ca3b8309a75d1b557d7f0d7882ded76248b83891 | [] | no_license | sunyoubo/dask-xgboost | bf7f7ef20b39203145591911f44739748ae8debf | 7cedc4fad9b82ce07bb90a9dd91f8a9cda84659e | refs/heads/master | 2021-05-08T05:56:52.429563 | 2017-10-04T18:17:08 | 2017-10-04T18:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,518 | py | from collections import defaultdict
import logging
from threading import Thread
import dask.dataframe as dd
import dask.array as da
import numpy as np
import pandas as pd
from toolz import first, assoc
from tornado import gen
from dask import delayed
from distributed.client import _wait
from distributed.utils import s... | [
"[email protected]"
] | |
8a98a0654fc13703c66153234d7ba4d3b9c49692 | 4a7b5b3c2819dbf9b2bdfafcdf31745f88cf98b6 | /jaraco/financial/paychex.py | 40affd8d58d470882c7deae625312c3975f07cd9 | [
"MIT"
] | permissive | jaraco/jaraco.financial | 7eb37fddc37e029ac38e162aaaf1a3bd1767a921 | a5d0f996b2ee6bf9051d94d2a5656a1ca3f8b607 | refs/heads/main | 2023-09-01T15:12:26.069574 | 2023-08-06T23:45:05 | 2023-08-06T23:45:05 | 53,203,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | """
Paychex, when they generate OFX downloads of their 401k account
data, their routine crashes and terminates output when it
encounters a Gain/Loss entry.
This routine takes instead the CSV output and generates a
proper OFX file suitable for importing into your favorite
accounting system.
"""
import itertools
import... | [
"[email protected]"
] | |
efbf8677c2ce4ad6ed0ecb013edc7f601f9907bf | 978248bf0f275ae688f194593aa32c267832b2b6 | /xlsxwriter/test/styles/test_write_cell_style.py | e348931f5c8422daa52141da17985d77bc95e182 | [
"BSD-2-Clause-Views"
] | permissive | satish1337/XlsxWriter | b0c216b91be1b74d6cac017a152023aa1d581de2 | 0ab9bdded4f750246c41a439f6a6cecaf9179030 | refs/heads/master | 2021-01-22T02:35:13.158752 | 2015-03-31T20:32:28 | 2015-03-31T20:32:28 | 33,300,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, [email protected]
#
import unittest
from ...compatibility import StringIO
from ...styles import Styles
class TestWriteCellStyle(unittest.TestCase):
"""
Test ... | [
"[email protected]"
] | |
f02305cf4e2591a356cae884abd638de7a8fa9fc | cbf9f600374d7510988632d7dba145c8ff0cd1f0 | /abc/190/c.py | 07fa190a978955b4555478224dd795a4394b14cf | [] | no_license | sakakazu2468/AtCoder_py | d0945d03ad562474e40e413abcec39ded61e6855 | 34bdf39ee9647e7aee17e48c928ce5288a1bfaa5 | refs/heads/master | 2022-04-27T18:32:28.825004 | 2022-04-21T07:27:00 | 2022-04-21T07:27:00 | 225,844,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | n, m = map(int, input().split())
condition = []
for i in range(m):
a, b = map(int, input().split())
condition.append([a, b])
k = int(input())
ball = []
for i in range(k):
c, d = map(int, input().split())
ball.append([c, d])
decision = []
for intnum in range(2**k):
binnum = bin(intnum)[2:]
binnu... | [
"[email protected]"
] | |
69c3575e4bc800259603a29d1a2a5811c432892c | bd3b4a3403ad0476d287eb555bbe4211134b093e | /nuitka/codegen/templates/CodeTemplatesIterators.py | 720c515a35f61ab167035473f612312da61f9a33 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | suryansh2020/Nuitka | 7ecff5bd0199a6510e446be13569c829ba165be5 | 3dd382e91884a77c28aeee6b0bd44a0fc58beee8 | refs/heads/master | 2021-01-19T14:28:47.154859 | 2014-12-21T07:34:12 | 2014-12-21T07:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | # Copyright 2014, Kay Hayen, mailto:[email protected]
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"[email protected]"
] | |
0bdf3e816ff9ec54f042fc647c0bff60a6dfa776 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/kuv_16078+1916/sdB_kuv_16078+1916_lc.py | e2e7da47b7b2cee664f35675ccc1dfa277b97a7f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[242.511208,19.132844], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_kuv_16078+1916/sdB_kuv_16078+1916_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if _... | [
"[email protected]"
] | |
5f3d93adb6e1b349c18fda1d3b4c003973388250 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /00-BofVar/cuctf19_bof1/verified-exploit-BofVar-1.py | c2f027d3b604c21593fd4310b04ec142c6764730 | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # +------------------------------------------------+
# | Atack: Overwrite Variables |
# +------------------------------------------------+
#
# For more info checkout: https://github.com/guyinatuxedo/nightmare/tree/master/modules/04-bof_variable
from pwn import *
import time
import sf
target = proc... | [
"[email protected]"
] | |
f430a0ac37b1b88571218138a666585365a31784 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2022_04_30_preview/_iot_hub_client.py | 47230c84ab3900aa522476f57ff1fb01a0045485 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,158 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
25e7256a2278380559a276d1b3e444401d66c3f7 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py | ed95df565c96d745a54209552e5348bb1e35de08 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,791 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"[email protected]"
] | |
71335d29712b442c9ce5d95ca32fd48dad3c6e99 | 0567fcd808397a7024b5009cc290de1c414eff06 | /src/1470.shuffle-the-array.py | 7f9045ee0e7612652fc26cad85239700fb747fbe | [] | no_license | tientheshy/leetcode-solutions | d3897035a7fd453b9f47647e95f0f92a03bff4f3 | 218a8a97e3926788bb6320dda889bd379083570a | refs/heads/master | 2023-08-23T17:06:52.538337 | 2021-10-03T01:47:50 | 2021-10-03T01:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | #
# @lc app=leetcode id=1470 lang=python3
#
# [1470] Shuffle the Array
#
# @lc code=start
class Solution:
# 80 ms, 50.80%. Time: O(N). Space: O(N). Could be better using Bit manipulation to make it O(1) Space
# More here: https://leetcode.com/problems/shuffle-the-array/discuss/675956/In-Place-O(n)-Time-O(1)-Sp... | [
"[email protected]"
] | |
d0a9e939c12148512e62d5cb50faeaf448f9dc4a | 489d0c9b861e22dbb781c87c6e509bd2d04e783d | /codes/Feature Extraction/FeatureExtraction(3 features).py | d53977ab65b673c802b375f3f72da2e1d21612b3 | [] | no_license | sameesayeed007/Prediction-of-Epileptic-Seizures-using-SVM-and-DSP | 24af3755b4c2bd4646d05df52f4f306ed2902ab0 | cdd972551f9cea1a90cc957f33ac656a09e48c9f | refs/heads/master | 2022-06-19T00:10:38.822712 | 2020-05-10T16:59:23 | 2020-05-10T16:59:23 | 262,826,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | import numpy as np
import scipy as sp
import scipy.fftpack
import pandas as pd
from scipy.fftpack import fft, fftfreq, fftshift
import statistics
import scipy.fftpack
thesis_final_files = ['chb01_21Final.csv','chb01_26Final.csv']
iterator = 0
while(iterator < len(thesis_final_files)) :
file_name = thesis_fin... | [
"[email protected]"
] | |
a65d1a542c88c350b4f72b6ab7ca1593bca262a2 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/labeled_tensor/python/ops/sugar.py | a80c8809882161ab99456117a0e3bd46222439f1 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bd2f92e1bb5733974c243de95a2275942d5c2567b858a4babde5074896e254c0
size 4821
| [
"[email protected]"
] | |
310d466c5d33bc5941084acae385c83ac0b33b25 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/fc224d30443944ccb7072df9ef1a4e3b.py | e0bfc8d46549b897dc275dd321beb33d587074e7 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 222 | py | __author__ = 'shandr'
def to_rna(dna):
rna_list = []
dna_rna_map = {'G':'C','C':'G','T':'A','A':'U'}
for letter in dna:
rna_list.append(dna_rna_map[letter])
rna = ''.join(rna_list)
return rna
| [
"[email protected]"
] | |
258f78e6084bfc82db551b44bb0c9ecd4317def7 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/514-tideGauge.py | 93ddf87ea463c8e4498d9c7309742f95dda401cf | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.