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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67ba18de8b17d67faffd64a5afd04856b98e6c0d | bc441bb06b8948288f110af63feda4e798f30225 | /ucpro_sdk/model/health_assessment/health_assessment_rule_version_pb2.pyi | 3de5696ab7a554eefb649dc9537b2c6cb892ea96 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,966 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
10fbc12a77ba54c7c19c575ac1527da5a1d0d379 | 2aa039510a78049da05a8dbafea3a6b102983c49 | /self_training_0719/app/1118_style.py | 09bf1491afcd685de71621883f74493a37d18874 | [] | no_license | hsiang0107/python | 62a13c3a33a4f413d4c0707ae24cc58113637250 | 9606deae620114e8c34ee43b2725365339222a2b | refs/heads/master | 2020-03-19T04:59:01.071035 | 2018-06-03T08:51:33 | 2018-06-03T08:51:33 | 135,888,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | __author__ = 'twlhgs'
arguments | [
"hsiang0107@hotmail.com"
] | hsiang0107@hotmail.com |
17eb208b521694589b1bd6668235726f105fcd58 | 37a1da8a69b692264b83722ed365369329e53171 | /tensorflow/python/keras/layers/preprocessing/normalization_v1.py | 2acb0d0f3aa35f3dd1805f4a03b74e96d75cdbc4 | [
"Apache-2.0"
] | permissive | Harsh188/tensorflow | 8e26a5ddfc2cdbdc00bd28195ae563cda7ef6c01 | fec612b5243f9093aec4437a5f3fcb8d3a92c06d | refs/heads/master | 2023-02-20T08:01:04.252450 | 2021-01-21T18:08:03 | 2021-01-21T18:08:03 | 287,893,121 | 2 | 0 | Apache-2.0 | 2020-08-16T07:11:10 | 2020-08-16T07:11:09 | null | UTF-8 | Python | false | false | 1,512 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2696a717cd25be4095a94b1e1eb180842bc5d720 | 19b72ce60f9ebb15f16fe19decacf6ae57df96d9 | /tests/core/test_ElasticConstants.py | 6f829408083ba6fa9b38ceff64d46009f5c05496 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | samk07/atomman | 6c3d975e78819b990aeb79d570836d560de66cec | 343aabf6776744b7a38f0070fab4606f607b63d4 | refs/heads/master | 2020-06-03T12:11:53.318551 | 2019-06-06T16:16:22 | 2019-06-06T16:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # coding: utf-8
# Standard Python libraries
from __future__ import (absolute_import, print_function,
division, unicode_literals)
# https://docs.pytest.org/en/latest/
import pytest
# http://www.numpy.org/
import numpy as np
import atomman as am
import atomman.unitconvert as uc
class Test_Ela... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
d7cb6cece88c1cdb07a6f30239f313c6702c2707 | 614e929c6631dbaed76852f45debd7482c1c6c5b | /gcloud/bigtable/test_table.py | d6c66b220d400db50943b3883a5e2f07f2f3993c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tbetbetbe/gcloud-python | 2f57d74c7c228c02c36f656fef2f1f96505e0d7a | 0c74a599b6aa0a16e21575998e1770182c05e12c | refs/heads/master | 2021-01-21T09:02:54.979211 | 2016-01-08T22:34:33 | 2016-01-08T22:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,989 | py | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
a3b6dd34bfb2b8199b963514a716b9c135ce7071 | 3f2838fd52b621cd73befcb05a9611e3302726a8 | /non_thread.py | d3a1f76549bc60d2f191f35d29be9b1fe221945f | [] | no_license | mpdevilleres/anomaly-detector | 21d3fe5258b3aa083bbd21f879b8811201ac1718 | 4cdcb16effcbe43849a36b1badab2169865aea3a | refs/heads/master | 2020-05-16T11:28:10.256724 | 2019-04-24T04:49:35 | 2019-04-24T04:49:35 | 183,017,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | """
This is a single thread execution
"""
import argparse
import logging
from utils import init_logger, get_packet_files, parse_packet, \
build_lookup_dictionary, check_anomaly
def worker(fn, lookups):
res = parse_packet(fn)
is_anomaly, message = check_anomaly(lookups[res['domain']], res)
if is_anom... | [
"mpdevilleres@gmail.com"
] | mpdevilleres@gmail.com |
8071717d72efd685311864e379447a20e9c0be9a | ac0f68822ba301023c978b67f659110170a15233 | /pygrot/client/input/joystick.py | 9baad0adf3136b0d769523fb6d7391854557055e | [] | no_license | ChrisLR/pygrot | 7c3390b2c493c9684d0ff5de5538c10e8c40751b | a3cc4dab8d72d9a8bbf7f902b1f60bb11cfbdf24 | refs/heads/master | 2020-03-27T03:42:51.003205 | 2018-09-04T17:07:48 | 2018-09-04T17:07:48 | 145,883,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import copy
class JoystickMotion(object):
THRESHOLD = 0.2
MAX_SPEED_PER_TICK = 20
def __init__(self, joystick):
self.last_motions = 0, 0, 0, 0
self.joystick = joystick
def update(self, dt):
motion = [self.joystick.x, self.joystick.y, self.joystick.rx, self.joystick.ry]
... | [
"arzhul@gmail.com"
] | arzhul@gmail.com |
696fe590d942ec7e457b837385a48b7a9e8d69d5 | 7bead245354e233f76fff4608938bf956abb84cf | /cloudmersive_convert_api_client/models/get_docx_sections_request.py | ac50eb54b7b06625c79f0164b091bca2176ee5ed | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,123 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GetDocxSectionsRequest(object):... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
deeebf171f5af362c953520458efd0e8af3d3339 | d5b48163d236ca770be8e687f92192e2971397e8 | /basicFunction7.py | 7cbb532b511d5a014b0ec997029d08644d3b1003 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def sum(x,y):
print("sum =",x+y)
def sub(x,y):
print("sub =",x-y)
def mul(x,y):
print("mul =",x*y)
def div(x,y):
print("div =",x//y)
sum(10,5)
sub(10,5)
mul(10,5)
div(10,5)
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
3d34db37fe31d39da4411668b34b9d8398e8c48a | 64cbac01a9d9d5ab166bfff0ac5d07ebc6453962 | /cards/views.py | f0f7b8f4cdee778030d7cdd96873097adcab68cb | [] | no_license | Jamie-Cheon/drf_advanced | 0c8ee9cb92470a27f68eb7066a8a11ca64be2915 | 7fe0d6327b65bd7281e1de30d8698f24e08304c6 | refs/heads/master | 2022-10-11T23:13:15.955939 | 2020-06-14T13:33:45 | 2020-06-14T13:33:45 | 272,204,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from rest_framework import viewsets
from rest_framework.permissions import IsAuthenticated, AllowAny
from .models import Card
from .serializers import CardSerializer
from core.permissions import IsOwnerOrReadOnly
... | [
"jamiecheon55@gmail.com"
] | jamiecheon55@gmail.com |
aec9c69795ec05a360f53c99e36edf3327464b15 | cba9b4a801d6cca01b42bcba0277ed27ab8d7773 | /Question14.py | db8da75fae7a7b6cb79e9e040a63c5fc6406ad6c | [] | no_license | krishnabojha/Insight_workshop_Assignment3 | 8527cdb4cc09691effb636e7b0b101218bf7b806 | 2f03257229208ff7ee64ee2df2bd02a764726deb | refs/heads/master | 2022-11-16T08:54:21.094679 | 2020-06-28T10:19:56 | 2020-06-28T10:19:56 | 275,558,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | ######### Displaying HTML tag
a=input('Enter html Tag : ')
b=input('Enter html Word : ')
def add_tags(tag,word):
return "<%s>%s</%s>" % (tag, word,tag)
print(add_tags(a,b)) | [
"ojhakrishna010@gmail.com"
] | ojhakrishna010@gmail.com |
5b319f436aa779bb62e6a26c9d2d7eae31a58f59 | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/views_20190225165011.py | 763c788776e8faa24c1d0d4995f1783668d45c3a | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | from django.shortcuts import redirect, render
from .forms import UserForm, ProfileForm
from .models import JobPost
from django.contrib import messages
from django.db.models import Q
from .forms import JobPostForm
def home(request):
post = JobPost.objects.all()
return render(request, 'basic/index.html', {'post... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
9b8acdf8b7394da3b40b345fc72650af46333134 | eee69cb83e6ec8f10ed7361c3e6c29c7fdf24881 | /examples/HelloAPI/app/api/authentication.py | 4f9cd805b0a7902e26be5c00a9f5a43a6d861243 | [
"MIT"
] | permissive | Muxi-Studio/rest | 38fb0fef3a2c765b370a7952152cedf92fed353b | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | refs/heads/master | 2021-01-20T02:53:07.518052 | 2016-02-01T13:51:19 | 2016-02-01T13:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # coding: utf-8
from flask import g, jsonify
from flask_httpauth import HTTPBasicAuth
from . import api
from ..models import User, AnonymousUser
auth = HTTPBasicAuth()
@auth.verify_password
def verify_password(email_or_token, password):
if email_or_token == '':
g.current_user = AnonymousUser()
... | [
"neo1218@yeah.net"
] | neo1218@yeah.net |
c729e6a223f2d84338dd99cd1ffe4ee476bd9072 | e39a97dfa4ed744c219a76f4dbee66617f3a7082 | /profile_app/urls.py | c94fdf6c819f46044d73bc2815d8b09032cf3815 | [] | no_license | nova-sangeeth/inventory_system | eea185a546377062dd33e50ec5ad5999fa5a8e6a | f5aac03b958294ee9eaf601ca1c43ae8c1b3ce11 | refs/heads/master | 2022-12-10T20:24:46.831378 | 2021-09-22T19:14:28 | 2021-09-22T19:14:28 | 237,218,745 | 0 | 0 | null | 2022-12-08T04:20:33 | 2020-01-30T13:27:46 | JavaScript | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url
from .views import profile, register, edit_profile
urlpatterns = [
url(r"^profile/$", profile, name="profile"),
url(r"^register/$", register, name="register"),
url(r"^edit_profile/$", edit_profile, name="edit_profile"),
]
| [
"novasangeeth@outlook.com"
] | novasangeeth@outlook.com |
c6183558af7a73b46245a8886d01ab0f4abe8fbe | 19333aed645a4721108a67ba4d90292d2383314e | /dp/0find_target_subsets.py | 9bf6953a1773d41752b75e61b953f502494b02ad | [] | no_license | qinzhouhit/leetcode | f39f8720a19259310293c1eb2975ce459f7cf702 | 502e121cc25fcd81afe3d029145aeee56db794f0 | refs/heads/master | 2023-06-24T09:18:25.715450 | 2021-07-21T07:21:42 | 2021-07-21T07:21:42 | 189,679,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | '''
keys:
Solutions:
Similar:
T:
S:
'''
from typing import List
'''
Target Sum (hard) #
You are given a set of positive numbers and a target sum ‘S’. Each
number should be assigned either a ‘+’ or ‘-’ sign. We need to find
the total ways to assign symbols to make the sum of the numbers equal
to the target ‘S’.
... | [
"qinzhouhit@gmail.com"
] | qinzhouhit@gmail.com |
3fd0be03697843c1d5a2d9d1a09e5fc2d2daddf6 | a07bd66f90e2fc23d9f4cd8831f5bc51e3e49e2b | /ReImpl-Weakly_Supervised_Instance_Segmentation_using_Class_Peak_Response/main/main.py | 4d0caca6eeb4e2fe834de109e168eed55c2c33df | [] | no_license | rainingDesert/Research | 197c5ddc334f2538ddc4bb026b1d0df9a4059a44 | d9b24392836e015da007acfed0ae32259674ef18 | refs/heads/master | 2020-04-17T09:37:26.924277 | 2019-01-21T00:00:52 | 2019-01-21T00:00:52 | 166,465,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | import sys
sys.path.append('../')
from data.customDataSet import VOC, image_transform, DataLoader
from model.peak_response_map import peak_response_mapping
from model.resnet_50 import fc_resnet50
from model.linear_transform import function_linear_transform
from torch.nn import MultiLabelSoftMarginLoss
import torch
im... | [
"602052254@qq.com"
] | 602052254@qq.com |
02b2850822813a9b4b0c4ee55b3367d2cc7376f0 | 7a91181861f896bdf7526ec93b0f18322f4c2407 | /ql_test2/catkin_generated/generate_cached_setup.py | 3218e526913a57b016e20a8cb3c70a209ad39924 | [] | no_license | aoyan27/ql_sample | bf2bb2fbdc94b008ae009ab651ce1a45785c24e7 | d4e85e5975b75f5d1b9e5f089a08abd531c3306d | refs/heads/master | 2021-04-15T11:47:53.268432 | 2018-03-24T04:38:49 | 2018-03-24T04:38:49 | 126,566,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"ce62001@meiji.ac.jp"
] | ce62001@meiji.ac.jp |
49ec125d4328083973d90920b47679a6fe67ed50 | cb417260d5e022dd60854580f3d81cc46ddb753f | /security_monkey/task_scheduler/beat.py | d24140d3c6e15e41703df5b7b58cedba23cb7658 | [
"Apache-2.0"
] | permissive | drewgallis/security_monkey | 2fc2ef745cab791853ff5f51684922537adcb121 | ba1ceb3ec1e98924e17625016d826caf80c89144 | refs/heads/develop | 2020-03-19T06:58:58.402554 | 2018-06-13T18:58:07 | 2018-06-13T18:58:07 | 136,073,298 | 0 | 1 | Apache-2.0 | 2018-06-13T18:12:12 | 2018-06-04T19:31:35 | Python | UTF-8 | Python | false | false | 5,157 | py | """
.. module: security_monkey.task_scheduler.beat
:platform: Unix
:synopsis: Sets up the Celery task scheduling for watching, auditing, and reporting changes in the environment.
.. version:: $$VERSION$$
.. moduleauthor:: Mike Grima <mgrima@netflix.com>
"""
import traceback
from security_monkey.reporter impor... | [
"mgrima@netflix.com"
] | mgrima@netflix.com |
686ec235c7ceaf873ec83a026a26687403925770 | c2ee4ae2f22dbdb5a4038a3308a14c28e82bdcad | /benchmarks/pbench/wrk.py | ff08ac3191109e12a4541767be3070aa1baf9539 | [] | no_license | quantmind/pulsar-bench | 29f1e0a085306f570603a8146aae3c9e5cf2c26a | 29ca7d6d569765904eba68dea5c637d2326109af | refs/heads/master | 2021-01-13T16:42:19.639608 | 2017-11-23T20:49:12 | 2017-11-23T20:49:12 | 78,094,138 | 6 | 1 | null | 2017-12-29T19:10:38 | 2017-01-05T08:24:10 | Python | UTF-8 | Python | false | false | 2,205 | py | #!/usr/bin/env python3
"""Python utility for benchmarking HTTP servers via wrk
https://github.com/wg/wrk
"""
import argparse
import os
import subprocess
import json
import textwrap
LUA_SCRIPT = os.path.join(os.path.dirname(__file__), 'wrk.lua')
def options(args=None):
parser = argparse.ArgumentParser(
'... | [
"luca@quantmind.com"
] | luca@quantmind.com |
4307b24f05885f918ce534a49f47c324364698aa | a140b1c2cfcc4d9fe7d4a9fcd51f86bf8d89e41c | /2020.03.21-saarCTF_2020/SchlossbergCaves/function-type-confusion/schlossberg_main2.py | 73817597d2225cdf2c2fe2f9ec1f71e838ae6dfd | [] | no_license | xcode2010/ctf | 6f0e6f76e7cdbe44842576ec49dbbffe0de91a49 | 2c121f1e1171ff0f42a4edfb7a17261cc673adb5 | refs/heads/master | 2023-03-28T07:34:33.695719 | 2021-03-21T17:38:55 | 2021-03-21T18:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | #!/usr/bin/env python3
import random
import logging
import re
import requests
import struct
import uuid
import sys
import time
deadline = time.time() + 55
logging.basicConfig(level=logging.INFO)
logging.info('argv = %s', sys.argv)
host = sys.argv[1]
port = '9080'
hh = host.split(':')
if len(hh) == 2:
host, port =... | [
"mephi42@gmail.com"
] | mephi42@gmail.com |
89bc5b1b8521914581b897b51c3a542ff69dac7e | 76d3ec49d75ca5cef755e612a97ddcbc34f62bf3 | /data_integration/incremental_processing/reset.py | f9f65069d9b70b8df91c798a63dbe66178dff96b | [
"MIT"
] | permissive | ierosodin/data-integration | 8f7e9500bda03c8316061452bc502d68cfcd33da | f3ee414e8b8994e5b740a374c0594e40862ff6e9 | refs/heads/master | 2021-01-02T14:58:10.752745 | 2020-02-13T00:58:58 | 2020-02-13T00:58:58 | 239,665,119 | 0 | 0 | MIT | 2020-02-11T03:11:37 | 2020-02-11T03:11:36 | null | UTF-8 | Python | false | false | 1,280 | py | """Resetting incremental copy status"""
import mara_db.config
import mara_db.postgresql
def reset_incremental_processing(node_path: [str]):
"""
Recursively resets all incremental processing status information that is stored in the mara db
Args:
node_path: The path of the node to reset
"""
... | [
"martin.loetzsch@gmail.com"
] | martin.loetzsch@gmail.com |
2b7a8ddda225bc3c1194216cabca625738a87421 | 1e52734399907d12395c01d558cd80c15d824c95 | /TEST/ally_alert.py | 4da18dbc1d8934ebe3046c1750ee297efe77c586 | [
"MIT"
] | permissive | faetos/allybot | 123543185aa1e322d4ff548fd107be378d727cce | e15132a35cc108dd9da1055fdcae1d0621a92124 | refs/heads/master | 2022-11-17T00:32:30.462908 | 2020-07-14T20:51:18 | 2020-07-14T20:51:18 | 260,506,074 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | #!/usr/bin/python3
import pymongo,datetime
#from twilio.rest import TwilioRestClient
### DB stuffs
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["ally"]
myalert = mydb["alert"]
allypairs = mydb["pairs"]
allyprice = mydb["price"]
weather = mydb["weather"]
allyweatherhist = mydb["weather... | [
"faetos@yahoo.com"
] | faetos@yahoo.com |
4267f195ba66f84cb669350e1cac574c78bbe5f7 | a1615563bb9b124e16f4163f660d677f3224553c | /LI/lib/python3.8/site-packages/astropy/table/row.py | 6e36d2269f5f5e6eab479305e35428ec1bfac819 | [
"MIT"
] | permissive | honeybhardwaj/Language_Identification | 2a247d98095bd56c1194a34a556ddfadf6f001e5 | 1b74f898be5402b0c1a13debf595736a3f57d7e7 | refs/heads/main | 2023-04-19T16:22:05.231818 | 2021-05-15T18:59:45 | 2021-05-15T18:59:45 | 351,470,447 | 5 | 4 | MIT | 2021-05-15T18:59:46 | 2021-03-25T14:42:26 | Python | UTF-8 | Python | false | false | 6,611 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import collections
from collections import OrderedDict
from operator import index as operator_index
import numpy as np
class Row:
"""A class to represent one row of a Table object.
A Row object is returned when a Table object is indexed with a... | [
"honey.bhardwaj.18cse@bmu.edu.in"
] | honey.bhardwaj.18cse@bmu.edu.in |
8cca7435fa88bd1a7b1b310de7d2e731226f2f84 | c92e2f083df4cc8b5478071d0c2f261290c54ecf | /openbudgets/apps/interactions/tests.py | 1ab4e2b62f817b5996dd3d1f9a11bf419db0bcdc | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | hasadna/openmuni-budgets | a66222e743d2207e365eece7316eee42fc36973d | f4364156e83e0328285731d266b97f016d539df9 | refs/heads/develop | 2021-01-16T20:47:44.875966 | 2014-12-10T10:43:18 | 2014-12-10T10:43:18 | 7,721,234 | 3 | 3 | null | 2014-12-03T13:42:39 | 2013-01-20T20:11:20 | JavaScript | UTF-8 | Python | false | false | 3,312 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
from openbudgets.apps.accounts.factories import Account
from openbudgets.apps.entities.factories import Entity
from openbudgets.apps.contexts.factories import Context
from openbudgets.apps.sheets.factories import Sheet
class InteractionTest... | [
"paulywalsh@gmail.com"
] | paulywalsh@gmail.com |
98ac98be2eab33de118b067844b8b31cd9fe2797 | 6aab2d11b3ab7619ee26319886dcfc771cbcaba5 | /0x11-python-network_1/10-my_github.py | 48ca812ebd6afbc6db49ddcf0dad0584be1f2b96 | [] | no_license | IhebChatti/holbertonschool-higher_level_programming | ef592f25eb077e182a0295cb5f2f7d69c7a8ab67 | ca58262c6f82f98b2022344818e20d382cf82592 | refs/heads/master | 2022-12-18T10:06:30.443550 | 2020-09-24T17:31:30 | 2020-09-24T17:31:30 | 259,174,423 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/python3
"""[Python script that takes your Github credentials (username
and password) and uses the Github API to display your id]
"""
import requests
from sys import argv
if __name__ == "__main__":
session = requests.Session()
session.auth = (argv[1], argv[2])
req = requests.get("https://api.g... | [
"iheb.chatti@holbertonschool.com"
] | iheb.chatti@holbertonschool.com |
70975059e5af762acd31911605fbfd63bd3ae669 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03209/s684402468.py | b5b13b1d5a1a06743d1af2ff0c34090f092ac6d9 | [] | 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 | 452 | py | import sys
sys.setrecursionlimit(10 ** 6)
N, X = map(int, input().split())
h = [1]
p = [1]
for _ in range(50):
h.append(h[-1] * 2 + 3)
p.append(p[-1] * 2 + 1)
def bug(l, y):
if l == 0:
return 0 if y <= 0 else 1
mid = (h[l] + 1) // 2
if y < mid:
return bug(l - 1, y - 1)
e... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f6ec3118459c220ff29743f1f94fe19edaeea0d | f10980074d5d749e06d4b29da0cb205744403eac | /Django_Blog(DjangoGirls)/dgirls/urls.py | 8a67f36ab5900c3ec486807efc2aa77838bbae0e | [] | no_license | ccsreenidhin/Django_Girls_Blog-APP-_Tutorial | 99d32faaeddbc8d5b0e3b588481192678dad7bc7 | 45aeb0b46e9e463d2f29340499b553b1cb833d0d | refs/heads/master | 2022-10-20T18:43:57.583901 | 2017-07-29T14:25:02 | 2020-06-11T14:16:19 | 271,564,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """dgirls URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"ccsreenidhin@gmail.com"
] | ccsreenidhin@gmail.com |
ba26134413d7a3cf775ef0fc12b54ffa25a1e45c | 1cab02a729ec729ea6bc10d50337d95efa032d4b | /production/config.py | f62d1182a4065ea84b2269e0774d88528dc7bec9 | [] | no_license | tomr-stargazer/dendrogal | 21a01abf518c3317e86d9dec26d87647ab4dd611 | 9cd287f16b53257fb0df00c3ca7732709a12ee25 | refs/heads/master | 2021-01-23T05:39:17.462258 | 2016-02-09T22:01:20 | 2016-02-09T22:01:20 | 16,552,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | """ Contains path-name strings and other needed information. """
import os.path
data_path = os.path.expanduser("~/Dropbox/College/Astro99/DATA/")
idl_code_path = os.path.expanduser("~/Documents/Code/idl-low-sky/eroslib/")
idl_executable = "/Applications/exelis/idl83/bin/idl"
paper_path = os.path.expanduser("~/Dropbox... | [
"t.rice90@gmail.com"
] | t.rice90@gmail.com |
15bdcfb02df95b5f9546b26e4f4345d31082caef | 0b672e0ccd709eacf33cbe237815ce8a548c5fb3 | /build | 50832b8ac3f7146ca338dd14c1fe36e1c0e06231 | [
"MIT"
] | permissive | liquidinvestigations/docker-arm | f0c4bfe5466b31115999071458d1c7e7e0d94e57 | 2e6677e4fc4f43dd5cec3f3b6ae627a39da6b474 | refs/heads/master | 2021-09-02T00:07:55.104833 | 2017-12-29T09:58:31 | 2017-12-29T09:58:31 | 105,024,179 | 0 | 0 | null | 2017-10-17T19:08:03 | 2017-09-27T13:50:40 | null | UTF-8 | Python | false | false | 1,087 | #!/usr/bin/env python3
import json
import sys
import subprocess
from pathlib import Path
here = Path(__file__).resolve().parent
def run(args, cwd=None, **kwargs):
args = [str(a) for a in args]
if cwd:
kwargs['cwd'] = str(cwd)
print('+', ' '.join(args))
return subprocess.run(args, check=True, *... | [
"alex@grep.ro"
] | alex@grep.ro | |
9e524adb0277268f143c256f990f381dfda9b8de | 6a7707a659484930f96c75e7e43e1e20ca5fc133 | /examples/pointnet.py | dcac416d1dcd785eba5ab90a6aac834f1ff577dc | [
"MIT"
] | permissive | euivmar/MinkowskiEngine | b03b4e16d9afa43e26c3e58f6e40610c367fb365 | 123f12de1158fe554e41a3dfe96bb2c211cda8e4 | refs/heads/master | 2020-06-25T21:57:17.760607 | 2019-11-04T15:11:37 | 2019-11-04T15:11:37 | 199,432,712 | 0 | 0 | MIT | 2019-11-04T15:11:38 | 2019-07-29T10:37:54 | C++ | UTF-8 | Python | false | false | 9,529 | py | # Copyright (c) Chris Choy (chrischoy@ai.stanford.edu).
#
# 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, ... | [
"chrischoy@ai.stanford.edu"
] | chrischoy@ai.stanford.edu |
091054da4901c90ef98ee5c9769cc3b3798780cc | 407900f38dad62b417248453b850362f7d81c261 | /tests/test_vertex_cover.py | 47b38eee64157d6cfb1ea5303a758a3e1972d009 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apurvamulay/grinpy | 2a01a21894c283b0ef0d701ac8775eb48060ab27 | 597f9109b84f1c1aa8c8dd2ac5b572a05ba474de | refs/heads/master | 2022-01-06T03:57:05.601359 | 2019-07-07T18:01:49 | 2019-07-07T18:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import grinpy as gp
def test_min_vertex_cover():
G = gp.empty_graph()
assert isinstance(gp.min_vertex_cover(G, method="ilp"), set)
def test_vertex_cover_of_null_graph():
G = gp.empty_graph()
assert gp.min_vertex_cover(G, method="ilp") == set()
assert gp.vertex_cover_number(G) == 0
def test_ver... | [
"somacdivad@gmail.com"
] | somacdivad@gmail.com |
2e9521bf6c4afbbfd87e73364d759f636cc8c42a | 4677a7f46bd2899ee16246b898fefea4d4a2214c | /tests/values.py | 81af94f9b5c8716326b0218e7013d1f1387ed580 | [] | no_license | Tinkerforge/gas-bricklet | c53d88f454b7c59ba85606d62a6096b7342739f0 | 0d443b3f633f11da71643f4895293c7985ba6e05 | refs/heads/master | 2022-07-09T18:39:24.256763 | 2022-07-06T12:42:12 | 2022-07-06T12:42:12 | 169,401,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
HOST = "localhost"
PORT = 4223
UID = "XYZ"
from tinkerforge.ip_connection import IPConnection
from tinkerforge.bricklet_gas import BrickletGas
if __name__ == "__main__":
ipcon = IPConnection() # Create IP connection
gas = BrickletGas(UID, ipcon) # Create device ... | [
"olaf@tinkerforge.com"
] | olaf@tinkerforge.com |
b4de9ce396b64c954fe21c3d54b07361b902eee0 | d3dc1d50f683566c9d71722f218afc9340ed6ab5 | /mio.ltm/mio/ltm/lexer.py | 460cd038bfbc0dcb44d731afc45caff5a44db1f9 | [] | no_license | heuer/mappa | b20ec8a61979a75802af19803c54ee339e65807c | fc89cf32560d2e9ea6b380127b77fb3587bbd06c | refs/heads/master | 2021-01-23T15:31:54.242393 | 2015-03-16T17:17:35 | 2015-03-16T17:17:35 | 32,339,134 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2007 - 2014 -- Lars Heuer - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# BSD license.
#
"""\
Linear Topic Maps Notation (LTM) 1.3 lexer.
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - http://www.semagia.com/
:license: BSD licens... | [
"Lars@localhost"
] | Lars@localhost |
c835a18a4c6278f43f7bf0fb4aafaa4871ccaeb4 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startPyquil148.py | 58adf5c030ac41ebb2d0ab31c6f6eb5006652e70 | [
"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 | 1,124 | py | # qubit number=2
# total number=10
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
8c309081700a5bedc924a3f906836b8bcb249b91 | 02f73ffa51cc859ebb0f0bf3d68b9e013f7f6b2a | /TVGL/PaperCode/snapvxScalability.py | 4e32e59a9ee0296b1725a51271de67d3baf9794d | [] | no_license | lucasant10/Twitter | 41ef24f39865d43d09123cdd0963c2d874249b11 | f853b5ebb4ec266c3ab87ecc31c1702e2a6071dd | refs/heads/master | 2020-12-15T10:28:36.513083 | 2020-04-22T02:53:34 | 2020-04-22T02:53:34 | 55,746,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,686 | py | # Copyright (c) 2015, Stanford University. All rights reserved.
#
# 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... | [
"lucasant@gmail.com"
] | lucasant@gmail.com |
8c11bd815c01e3118924638589e4f9f758b2db02 | 49657035c6cccce77b8439f65fd11994acbab5c1 | /CiTest/common/TestLog.py | 367dcbed73806127c6a0decb0749d82688c08450 | [] | no_license | mpp100579/test_case1 | 37b1d496ed406f9f8ae0fed20b2164031c131486 | b599a3c652ecc542d9fb5c944301a962f0e686ac | refs/heads/master | 2020-04-14T19:33:04.162362 | 2019-03-28T07:08:12 | 2019-03-28T07:08:12 | 164,062,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | # coding=UTF-8
# FileName : Log.py
# Author : Adil
# DateTime : 2017/12/7 18:22
# SoftWare : PyCharm
import logging
from datetime import datetime
import threading
from CiTest import readConfig as RC
import os
class TestLog(object):
'''定义Log类'''
def __init__(self,name):
'重构__init__方法,传入logger的参数,n... | [
"2906211933@qq.com"
] | 2906211933@qq.com |
85d9638cdc762222e46e1226638e450ea163f628 | 0d71a71bdc6ca41da46836da9ba530cab4b14b80 | /etk/unit_tests/test_extractions_using_dictionary.py | d35d59eff2be9b9ae41f6ff3e2f5d0b0b59c3e21 | [
"MIT"
] | permissive | vinayraod/etk | a5a1a33c1547a9287f213796a016a8640129ce64 | 086634358693945e347bff8f391305ec2db0f773 | refs/heads/master | 2021-01-19T21:35:52.872744 | 2017-04-18T18:45:15 | 2017-04-18T18:45:15 | 88,672,261 | 0 | 0 | null | 2017-04-18T21:29:58 | 2017-04-18T21:29:58 | null | UTF-8 | Python | false | false | 5,574 | py | # -*- coding: utf-8 -*-
import unittest
import sys, os
sys.path.append('../../')
from etk.core import Core
import json
import codecs
class TestExtractionsUsingDictionaries(unittest.TestCase):
def setUp(self):
file_path = os.path.join(os.path.dirname(__file__), "ground_truth/1_content_extracted.jl")
... | [
"amandeep.s.saggu@gmail.com"
] | amandeep.s.saggu@gmail.com |
56db19ab3dd174f7b099b504315da4616cdc97af | da2b970b98b5ff384b5dd0efca89cfba709ab585 | /ens-RMSD_random_pool.py | 7b5062b8f8da4e35aec7ff5e0e9bd29cab8e02fe | [] | no_license | minghao2016/ens-dRMS | 55f681217e5d8e6da48a12f2556c08e8b4ad9772 | 2789997923969a75fc814c1e914ca6fd95f0cacb | refs/heads/master | 2020-12-01T22:27:14.026550 | 2019-10-03T07:40:54 | 2019-10-03T07:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,696 | py | #
#
import scipy.stats as stat
import numpy as np
'''
for n in range(1,100):#100
for m in range(n+1, 101):#101
ensemble = "PED6AAC-k18_pool-"+str(n)
ensemble2 = "PED6AAC-k18_pool-"+str(m)
first_res = 1
last_res = 130
myhash = {}
infile = open("PED6AAC-k18_pool_files/"+ensemble+"_distance_distributions.txt... | [
"noreply@github.com"
] | minghao2016.noreply@github.com |
fec7c388006575582b1cd05466f355fff26d35f4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/454/usersdata/302/106305/submittedfiles/programa.py | 568b34d477f88d158b29a10f7cb9b230de94c234 | [] | 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 | 191 | py | # -*- coding: utf-8 -*-
c = int(input())
lista =[]
for i in range(c):
lista.append(int(input())
lista2 =[]
lista2 = (list(set(lista)))
a = len(lista2)*2
print(a)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
039a62702a3ebbbd8d1abca67a454a50ab1889de | 056976068dc7d4006709adf507e187624567f30a | /report.py | 8e1c189415857b84df62f7be5d12b83f04225430 | [] | no_license | Auzzy/pyinq-staging | 819a95c8d9d0d78b523213165356fc12ec95306e | 2db14593c361e3a841ec99bb6699a074310b96f3 | refs/heads/master | 2021-01-19T23:08:25.874618 | 2017-04-21T02:16:54 | 2017-04-21T02:16:54 | 88,929,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from pyinq.writers.mixins import ResultMixin
from pyinq.writers.cli import CliReportWriter
class CustomResultMixin(ResultMixin):
def assert_result(self, *args, **kwargs):
print "OVER"
class CustomReportWriter(CliReportWriter, CustomResultMixin):
pass
| [
"metalnut4@netscape.net"
] | metalnut4@netscape.net |
9525a3b9f97ce376f905cf611dd82fa462ef43d5 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/BIANCA-BRICK-QOS-MIB.py | cb36a103fb679671d7446d67a906fc62b4d9959e | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 19,424 | py | #
# PySNMP MIB module BIANCA-BRICK-QOS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-QOS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:38:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d9b6a5cd65bb559f112238940d57e3e16a613c64 | d3fae9b1afa22c5559339373e37d6b8c4a959422 | /filename_hash.py | cd038f8ad49fe60029e421c6340fbf51dbdab855 | [] | no_license | NobuyukiInoue/Project_filenameHash | a3d0dcfd31d81bdfbfe0a359271647a0fd18256c | 43ca8582267c279488d8c221aa5abe4453de9869 | refs/heads/master | 2020-04-20T16:29:00.467728 | 2019-02-05T14:27:14 | 2019-02-05T14:27:14 | 168,960,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | import glob
import hashlib
from msvcrt import getch
import os
import sys
import time
def main():
argv = sys.argv
argc = len(argv)
if argc < 3:
print("Usage: python %s [hash | unhash] [target_path/target_filename] [output list filename]" %(argv[0]))
exit(0)
'''argv check
for i in r... | [
"gx3n-inue@asahi-net.or.jp"
] | gx3n-inue@asahi-net.or.jp |
1e3e490aaad132d288d6ff4351f1c5b02169dddb | 5ca3e3b9b6b7a143f995c4f745d899039e053d6e | /apace/TrajectoriesClasses.py | 96fadb6cc7d57836511e15da1e98e09e32f0ab77 | [] | no_license | yaesoubilab/APACEVisualization | a9bf00735d9cc4f9b509f65bd0091e675bd7fecb | 470079cefbdc26eaf956692ec4b5a16a744e5aea | refs/heads/master | 2023-07-10T18:12:11.702048 | 2021-08-25T16:26:31 | 2021-08-25T16:26:31 | 148,334,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,563 | py | import matplotlib.pyplot as plt
from enum import Enum
from apace import Support
import csv
import matplotlib.ticker as ticker
import SimPy.InOutFunctions as IO
import SimPy.Statistics as Stat
from SimPy.Plots.FigSupport import *
import string
import numpy as np
plt.rcParams['svg.fonttype'] = 'none'
class OutType(Enum... | [
"reza.yaesoubi@yale.edu"
] | reza.yaesoubi@yale.edu |
7e5e8f16407487c55e9262c246569cc6413efebd | 6a0591333c8f3f82c21409547144b7b75bb44c8b | /Python Scripts/2016_09_06_come_on_horn.py | f5b46280abdf48a1e245fce33700d1df8d9f021c | [] | no_license | LyingCortex/HFSS | b6bf3092828966f89d37df553b664d3f9924d8d7 | bf32721106679216d26676062073c9c82360da56 | refs/heads/master | 2020-12-24T08:00:08.014218 | 2019-03-20T08:27:36 | 2019-03-20T08:27:36 | 55,970,647 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 6 08:52:49 2016
@author: LY
"""
import math
f0 = 27
er = 3.66
lambda0 = 300 / f0
lambda_g = lambda0 / er**0.5
print ('===================================================')
print(' ')
print(' ')
print ('*****Parameters********')
print(' ')
print ('lambda0 = ' + st... | [
"liuyangxtp@gmail.com"
] | liuyangxtp@gmail.com |
aa8b3b8ab4de2a3d24176fabe7f8b0e1d65322d5 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Athena/training/demo/demo/multiprocessing/queue_basic.py | 79d8f0031134173ea792defdf033c0d02dfed786 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 329 | py | import multiprocessing as mp
def worker(q):
v = q.get() # blocking!
print "got '{}' from parent".format(v)
if __name__ == '__main__':
q = mp.Queue()
p = mp.Process(target=worker, args=(q,))
p.start() # blocks at q.get()
v = 'parent'
print "putting '{}' on queue".format(v)
q.put(v)
... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
5a7773c8c9e0382b3c2b3843290807612e1d8f1f | 04319bd822f25d52595e1f48f231ad24c2cb96df | /B84.py | bfe1eff0d131c3d2882769bb949afbc866b4ba96 | [] | no_license | EsaikaniL/python-2 | 1efd56c066acd1bff377b7a17e8b1f1c4f089768 | 0acdf327a118e38012da4970b7f23e91c4ce9cee | refs/heads/master | 2020-04-18T17:20:23.117923 | 2018-05-25T09:30:37 | 2018-05-25T09:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | c = input("Enter a character: ")
print("The ASCII value of '" + c + "' is",ord(c))
| [
"noreply@github.com"
] | EsaikaniL.noreply@github.com |
b9ff332b0f5b3ab44e536614a8b0eb015093d043 | 869f59d5ea72562cec1527fbf70715035dfcc8e4 | /src/accounts/api/serializers.py | a0a00bdce9e72291b87658b7a57bb91a4b0aa93c | [] | no_license | SheraramPrajapat1998/Django-DRF-BlogAPI | 09221a064aa6130d3ee74fadcf3aa4bdc7d2047c | 694cc4bc911bd8c9684c85b5baa7bfe288bfc14a | refs/heads/master | 2023-08-16T02:23:30.718772 | 2021-10-04T14:39:00 | 2021-10-04T14:39:00 | 410,608,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.utils import timezone
from rest_framework import serializers
from django.contrib.auth import get_user_model
User = get_user_model()
class UserSerializer(serializers.HyperlinkedModelSerializer):
full_name = serializers.SerializerMethodField()
days_since_joined = serializers.SerializerMethodField()... | [
"sheraramprajapat1998@gmail.com"
] | sheraramprajapat1998@gmail.com |
5a13b3cf42cb00e5ce0ede665d8df270cff0d58f | 65cc6a8877896ef69dd03d7b5eee5bed56e5371f | /CSDN/Django第一季/Project/Dj010703/Dj010703/settings.py | 821d00f389963a209290e1ec145ebb9151c08af2 | [] | no_license | wuhongyi/DjangoNote | 34bdb9e82fc379e19b1df0bd7c90e504fa70a40d | 81ad949ff895feda8131d8bdf5fa1439f962ae37 | refs/heads/master | 2020-05-02T17:54:12.270297 | 2019-05-22T14:37:32 | 2019-05-22T14:37:32 | 178,112,720 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for Dj010703 project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
i... | [
"wuhongyi@pku.edu.cn"
] | wuhongyi@pku.edu.cn |
829632e96ce6043e3b709dfb6d706b2a85db5aae | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Cookbook/NumPy Cookbook 2nd Edition_CodeBundle/Final Code/0945OS_09_Final Code/ch9code/factorial/setup.py | 80d8b0df02f72d5fb62b1c448b4a683fb316eb8c | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 351 | py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
ext_modules = [Extension("factorial", ["factorial.pyx"], include_dirs = [numpy.get_include()])]
setup(
name = 'Factorial app',
cmdclass = {'build_ext': build_ext},
ex... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
bddc66121b5dbbe4b013d853e45244728e4296e3 | 0aa834d73b467a2a59647a0ad9ea67ffe8262f7c | /telethon_generator/tl_generator.py | 3116003a52ca8b64469ae90565edaa44cf3e1dbe | [
"MIT"
] | permissive | ncovercash/Telethon | f0d8a397d99c700f32938b1e3a5c152da7b93351 | d4d47d40e9d25d18380f68cee0af7c76756bffff | refs/heads/master | 2023-04-23T12:01:28.656424 | 2018-01-12T03:18:32 | 2018-01-12T03:18:32 | 116,685,436 | 1 | 0 | MIT | 2023-03-24T13:27:55 | 2018-01-08T14:15:55 | Python | UTF-8 | Python | false | false | 28,667 | py | import os
import re
import shutil
import struct
from zlib import crc32
from collections import defaultdict
from .parser import SourceBuilder, TLParser, TLObject
AUTO_GEN_NOTICE = \
'"""File generated by TLObjects\' generator. All changes will be ERASED"""'
class TLGenerator:
def __init__(self, output_dir):
... | [
"totufals@hotmail.com"
] | totufals@hotmail.com |
3e9b251b3bd58f74c47b996defd661aa7e337d7c | ae8a1631f1b0da3cbe7a61cc6ad8c4839d3017e2 | /tests/code/test_nmtf_np.py | b1e7bf14d8152c437b6647dcbd9753968df83d0e | [
"Apache-2.0"
] | permissive | hansaimlim/BNMTF | ce3a5734feed209d284d98b5db508f944781c880 | 9cf8ad6475dac5dc7ece9d6dffb7f6f59a71ac18 | refs/heads/master | 2021-01-19T18:47:41.870310 | 2017-02-08T16:26:39 | 2017-02-08T16:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,927 | py | """
Unit tests for the methods in the NMTF class (/code/nmtf_np.py).
"""
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
import numpy, math, pytest, itertools, random
from BNMTF.code.models.nmtf_np import NMTF
""" Test the initialisation of Omega ... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
5f5ce5b141e7ec902f89beb091932f9bf572ffbc | ea876be0e8657b1882b02a32cfdf129f1b841c5b | /book/migrations/0001_initial.py | f867f41fce346ec27574629c0185ef382a243ce3 | [] | no_license | PHONGLEX/djangorestframework_bookapi | 87533ccf3bd575e3504a500c74a3329a1e91936a | ad24649aa2ff5f1105561e2b292022aa276af4f0 | refs/heads/master | 2023-08-14T10:55:27.798833 | 2021-09-23T13:33:07 | 2021-09-23T13:33:07 | 409,395,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # Generated by Django 3.2.7 on 2021-09-22 10:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"fonglex@gmail.com"
] | fonglex@gmail.com |
fe2e583beed0b6adce0c5499ad48f8f6bd092f96 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/NISS/shamil_v3/stock_archive/stock_archive.py | 3027564996c93909c7471b95d493d02ada736716 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,146 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2017 NCTR (<http://www.nctr.sd>).
#
##############################################################################
import time
from datetime im... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
c35e1f126bfab43395d53fededfba9b8647b660e | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/GAE/server_test/m/fn.py | 38c70281895216ae46897ff38823980c2c93212a | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 1,409 | py | import logging
from decimal import Decimal
from google.appengine.api import memcache
from google.appengine.ext import ndb
from models import Result
# MemCache and arithmetics inside
def quremo(a, b):
"""Primitive ariphmetic calculations"""
qu = Decimal(b) / Decimal(a)
re = int(qu)
mo = Decimal(b) % De... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
066b7fade8789b9f0948525a957d498afa01dce5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02891/s917868617.py | a752efd2a92b4d0dc39b8278ea7d0a6a8b70bbb9 | [] | 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 | 514 | py | S = input()
K = int(input())
N = len(S)
m= 1
for m in range(1, N):
if S[m] != S[m-1]:break
else: m += 1
def calc(s):
ans = 0
pre = s[0]
for ss in s[1:]:
if ss == pre:
ans += 1
pre = '0'
else: pre = ss
return ans
if m == N:
print((N * K) // 2)
else:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
09facfb8e5fa670449ba69105bea899e92081621 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/31/31-48_MD_NVT_rerun/set_3.py | d299d5cce90d73fc416063c3992cab0a93f36024 | [] | 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 | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L31/MD_NVT_rerun/ti_one-step/31_48/'
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 lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
1e53ef3c9f954c1bad930a3863818aa4e1d8ddfd | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /instagram_api/response/on_board_catalog.py | e9420b0de5c67aa9a4875f8055caae995e1d938c | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from .mapper import ApiResponse, ApiResponseInterface
from .mapper.types import Timestamp, AnyType
__all__ = ['OnBoardCatalogResponse']
class OnBoardCatalogResponseInterface(ApiResponseInterface):
shopping_onboarding_state: str
current_catalog_id: str
is_business_targeted_for_shopping: bool
class OnBoa... | [
"root@proscript.ru"
] | root@proscript.ru |
c8a7fb7a28d7bbae52c67371b961ee99b43279c2 | 49faaf0b85426a32c55c8c878bf23bdca4b16956 | /sentence_similarity/zhcnSegment.py | b06800c3c83d7a34c1f8df3915e99842d6057458 | [
"MIT"
] | permissive | xiaopangxia/kuakua_robot | 3eb4cf96372b14252846be736defb38063759df6 | 626490d99f1d071373182dc33856280d983f2b85 | refs/heads/master | 2021-12-24T01:08:14.527201 | 2021-12-23T10:23:08 | 2021-12-23T10:23:08 | 179,235,611 | 19 | 5 | MIT | 2021-12-23T10:21:53 | 2019-04-03T07:35:00 | Python | UTF-8 | Python | false | false | 1,113 | py | #encoding=utf-8
import jieba
import codecs
import os
class zhcnSeg(object):
stopwords = []
current_path = os.path.dirname(__file__)
stopword_filepath = current_path+"/stopword.txt"
def __init__(self):
self.read_in_stopword()
def read_in_stopword(self):
file_obj = codecs.open(se... | [
"nankaizhl@gmail.com"
] | nankaizhl@gmail.com |
7cbd4d613845ac78d805890573bc7937a9050921 | df18e9fcb6292cc72adf925f2331b8541fa8ee4e | /auto_posting/auto_posting/asgi.py | 5adabd3aba6747c705f6e49e9df04188893a7515 | [] | no_license | feryleeton/scheduled-posting-bot | ff51c16e7fa29e3dc9005bafe6fed9860777b5b5 | ef8761f995ab356edbfdfe573af9224f781b1ea0 | refs/heads/main | 2023-06-25T13:56:12.444177 | 2021-07-21T11:39:12 | 2021-07-21T11:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for auto_posting project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"you@example.com"
] | you@example.com |
1acf3ab6f94c290a71234a5ac8acf9d0ec6364df | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/notebooks/outputs.py | 4b798f16b7f6b9d3d8ce435a18efa9684232ef4b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
a29042e3cce9b388db10a3b9760007bbb36e6ea8 | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Net/__init___parts/HttpStatusCode.py | 29918acb0ad9b3de2c2c31625c4ec49bc7f774f6 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 2,861 | py | class HttpStatusCode(Enum,IComparable,IFormattable,IConvertible):
"""
Contains the values of status codes defined for HTTP.
enum HttpStatusCode,values: Accepted (202),Ambiguous (300),BadGateway (502),BadRequest (400),Conflict (409),Continue (100),Created (201),ExpectationFailed (417),Forbidden (403),Found ... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
0a3c4125a90bf6b674d91b42fb9296c02313fd83 | b6d3ff62c8baa193226414e0a4ee7e8c242340cc | /crf-seq/sets/sets_2/8/seq_detect_1i.py | aa69a4a6cc584768ee81120f96ccb50a7b6749e3 | [
"Apache-2.0"
] | permissive | roma-patel/seq | a0c8025c6629f06157d7530f1f21ca6d9c9c146f | 25012b1218b60090f467fe5ed5a15d7a28b3134c | refs/heads/master | 2021-09-16T15:21:53.842958 | 2018-06-21T20:21:16 | 2018-06-21T20:21:16 | 110,298,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,321 | py | import pycrfsuite
import sklearn
from itertools import chain
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.preprocessing import LabelBinarizer
import re
import json
annotypes = ['Participants', 'Intervention', 'Outcome']
annotype = annotypes[1]
path = '/nlp/data/romap/crf/'
#path = '... | [
"romapatel996@gmail.com"
] | romapatel996@gmail.com |
a53a27027519317d0b4c4310727099fb1f1bec33 | 13d1b1a20dc83800278d5872da2ad794ef80c255 | /Floyd.py | 41f5fefbff5a02af111c01842a24149fd44e2188 | [] | no_license | Chenzf2018/pythonDataStructure | 4dbb4498b1de2f0b7717268e57305dd4c588e44b | 9c29cceceeda8d768ee6f63979ea9357bcdefa07 | refs/heads/master | 2020-07-26T06:27:07.239183 | 2018-06-11T10:58:58 | 2018-06-11T10:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'Floyd'
__author__ = 'lxp'
#《大话数据结构》247页,基于邻接矩阵的最短路径Floyd算法
import numpy as np
import adjacencyMatrix
def shortestPath_Floyd(G):
D = np.zeros([G.numVertexes, G.numVertexes])
P = np.zeros([G.numVertexes, G.numVertexes])
for v in range(G.numVertexes):
for w in rang... | [
"LiuXPeng@users.noreply.github.com"
] | LiuXPeng@users.noreply.github.com |
d526b4f838751d83607d9372b01cb12ffe32e4ac | 3ce712238b37ce4f95f149dd54d9afaab0cd28cb | /test/multi_label_class/predict_multi.py | ce5297c6b58c4dcd6c7ec338eb4d16bd883e0f75 | [
"MIT"
] | permissive | ForestLee/Keras-TextClassification | ca2b3f235e9ccb98387f3994e9212382a713ae02 | 258f7294287a78d93f89addc08d2568f21b7a8e2 | refs/heads/master | 2023-02-01T19:01:53.235254 | 2020-12-19T16:40:30 | 2020-12-19T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/8/14 17:40
# @author :Mo
# @function :
# 适配linux
import pathlib
import sys
import os
project_path = str(pathlib.Path(os.path.abspath(__file__)).parent.parent.parent)
sys.path.append(project_path)
# 地址
from keras_textclassification.conf.path_config import ... | [
"2714618994@qq.com"
] | 2714618994@qq.com |
1478846b2f36fbaaf2c1dd8074a1d3f68798648f | 0e0f90024d09ff67bcc1b6608a52b0f9ea11fcc4 | /1st_100_questions/divisorGame.py | 04de582ad1249681c4b20c518d1f58c94bb97b9c | [] | no_license | newbieeashish/LeetCode_Algo | ffd7122018ad38b890bf96ceb40c75506fb3d3e1 | 3afaaec3c54787e4646d1472d3f6e7188fb6aec5 | refs/heads/master | 2022-12-14T22:38:04.433700 | 2020-09-17T16:42:03 | 2020-09-17T16:42:03 | 288,243,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | '''
Alice and Bob take turns playing a game, with Alice starting first.
Initially, there is a number N on the chalkboard. On each player's turn,
that player makes a move consisting of:
Choosing any x with 0 < x < N and N % x == 0.
Replacing the number N on the chalkboard with N - x.
Also, if a player cannot... | [
"noreply@github.com"
] | newbieeashish.noreply@github.com |
6f3e300cbc70294690a5be775ecffc91ac54f165 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2186/60772/249140.py | 16b038aa8b515c83687638029a9bcb4444144886 | [] | 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 | 441 | py | import sys
def sum(n):
count = 0
for i in range(1,n+1):
count += i
return count
def execute(n):
res = 0
for i in range(1,n+1):
res += sum(i)
return res
Input = []
for line in sys.stdin:
if line.strip() == '':
break
Input.append(line)
test = Input[0]
begin = 1... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1796761bc5d319039a756de8fbf0c6e7c3275744 | d5be74d2de6fa0ded61d6c3ee7c91a403c0f90db | /quantarhei/spectroscopy/twod22.py | fe4460b86ec2e0ff35895ebfda8e603f565cf0d0 | [
"MIT"
] | permissive | tmancal74/quantarhei | 43cf9d4be857b8e6db1274ebb8a384f1545cd9ad | fa3042d809005d47106e53609e6a63aa780c477c | refs/heads/master | 2023-05-11T06:57:36.368595 | 2023-05-02T13:10:18 | 2023-05-02T13:10:18 | 63,804,925 | 20 | 22 | MIT | 2022-12-21T14:10:00 | 2016-07-20T18:30:25 | Python | UTF-8 | Python | false | false | 45,557 | py | # -*- coding: utf-8 -*-
"""Two-dimensional Fourier Transform Spectrum and its calculation
"""
#import h5py
import matplotlib.pyplot as plt
import numpy
from ..core.time import TimeAxis
from ..core.frequency import FrequencyAxis
from ..builders.aggregates import Aggregate
from ..builders.molecules import Molecule
f... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
462d1f4cceb27bb66c468c0671b8ac87c7edfbb2 | 2cc49e11c404a364d79721a5361c62cd1d9f05f5 | /chp0_numpy/a3_scipy.py | 08d530dbd62d48e48ca3791b65a8521d852036ff | [] | no_license | Freshield/LEARN_CS231n17 | 422854a73d647f5cca6deb286f043dfd0a657add | 19076c129b525825a2ff0037f33d0532b522ab64 | refs/heads/master | 2022-12-12T07:05:52.808978 | 2019-10-24T07:48:21 | 2019-10-24T07:48:21 | 194,971,616 | 0 | 0 | null | 2022-12-08T05:18:35 | 2019-07-03T03:17:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,861 | py | #coding=utf-8
"""
@Author: Freshield
@License: (C) Copyright 2018, BEIJING LINKING MEDICAL TECHNOLOGY CO., LTD.
@Contact: yangyufresh@163.com
@File: a3_scipy.py
@Time: 2019-05-14 14:31
@Last_update: 2019-05-14 14:31
@Desc: None
@==============================================@
@ _____ _ _ _ _ ... | [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
643e1c902f1d1a69339c94ca1a59e9bbf97712e8 | 814a896307bc2b99ec20d0800cb106280fb1b303 | /venv/bin/rst2html.py | be0383929155583be07a9b83139a499466c6209e | [] | no_license | mahagala/HecHms | ae0d4bedfcba33bc7e70eeefadcbd5361a00bd73 | 47521f9cd8dc0f2a51bb6e2660f67a81b3634b16 | refs/heads/master | 2021-09-20T04:16:23.691577 | 2018-08-03T12:46:38 | 2018-08-03T12:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/home/hasitha/PycharmProjects/hec_server/venv/bin/python
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.
"""
try:
import locale
... | [
"hasithadkr7@gmail.com"
] | hasithadkr7@gmail.com |
a1b853b058c08468821f35154a48d5fd9848a40c | aefcbee06667be208155fc23df784633bfa1096b | /5.function/function.py | 4c3d36e5660be745e67e1bd7278a868012298fa0 | [] | no_license | haedalprogramming/2021KNUPythonStep1 | c9d7b1018960be34b8109f432a227839a1da85cf | 7ad27a28f2c683d957de07fa8284688a1ccc6e61 | refs/heads/master | 2023-06-29T15:00:07.699492 | 2021-08-03T06:21:30 | 2021-08-03T06:21:30 | 385,428,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # 함수 정의
# def 함수명(매개변수):
# """
# 함수 설명
# """
# 명령어 1
# 명령어 2
# ...
# return 결과
# docstring을 알아보자
def hello_docstring():
'''
여기는 함수의 문서화 내용입니다
'''
print("Hello Docstring")
# 함수의 공식 설명을 출력해보자
# help(hello_docstring)
# print(hello_docstring.__doc__)
# hello_docstring()
# print(print.__doc__)
# print(inpu... | [
"choikm3847@gmail.com"
] | choikm3847@gmail.com |
7613b51eb62f231659a26abadeca48f2953ca691 | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyun/api/rest/ess/EssExecuteScalingRuleRequest.py | 74139d7175aab3ebe03378093ac442d275038bee | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | '''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class EssExecuteScalingRuleRequest(RestApi):
def __init__(self,domain='ess.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.ClientToken = None
self.ScalingRuleAri = None
def getapiname(self):
return 'ess.aliyuncs.co... | [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
8de6d1d8e1cea8f298dfc02303a6778439ae45fa | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0056_auto_20200419_0355.py | e4c91feb9e65e36c616e761a71b8c2dc6e41f13e | [] | no_license | QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | JavaScript | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.0.5 on 2020-04-19 03:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0055_auto_20200419_0353'),
]
operations = [
migrations.AlterField(
model_name='tissuesample',
name='smts... | [
"marouen.b.guebila@gmail.com"
] | marouen.b.guebila@gmail.com |
62b97ee92388477444e6fe9ad1e41d3982e0ef7c | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/telemetry/telemetry/internal/actions/scroll_bounce.py | 4eb0b6cc7559601cf0aec8830ce5a997f8e60e78 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 4,036 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.internal.actions import page_action
from telemetry.internal.actions import utils
class ScrollBounceAction(page_action.PageAction):
def __i... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
9e6e13cc17d808ca14a98f4735f2525bf7fb066d | 59afd4e7c4a16838afb11f69ba2f908695c17794 | /atcoder012/a.py | 6aea05ffe1a267f4de06f47bba0612276721559f | [] | no_license | mugenen/AtCoder-Solution | ca29437abdcb90177eca6ff59f499235cb046bfc | a25c54a365f41e7a61abc9d4f7a90657c39fdd46 | refs/heads/master | 2021-01-01T17:57:49.228749 | 2013-10-12T15:25:10 | 2013-10-12T15:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
import sys
import collections
day = raw_input().strip()
days = ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
i = days.index(day)
if i > 1:
print (7 - days.index(day)) % 7
else:
print 0
| [
"8monkey.theorem@gmail.com"
] | 8monkey.theorem@gmail.com |
257a17df20f3bbf3ca986ff256618c73586adcbf | f474d500b7da4f4069e24fddcde97783a4f3664b | /vagrantEnv/lib/python3.5/encodings/aliases.py | b735d9eb2db256092872ec689ba7288256350a37 | [
"Apache-2.0"
] | permissive | Thanh-Lai/chat-bot | 220a0fd6383181f0cdaf732b5c02f645bd960a28 | e3007fa6e034d3cccff4615a7eccf0e75bbc1708 | refs/heads/master | 2020-04-23T09:39:04.509356 | 2019-02-18T04:56:25 | 2019-02-18T04:56:25 | 171,075,880 | 0 | 0 | Apache-2.0 | 2019-02-18T04:56:26 | 2019-02-17T03:00:39 | Python | UTF-8 | Python | false | false | 39 | py | /usr/lib/python3.5/encodings/aliases.py | [
"tlai1122@gmail.com"
] | tlai1122@gmail.com |
9636b5fbb6b57d28e86259cc7e2864b12caeab2f | 997406d6088686fffa7354bcc0f123b92fdfe321 | /Chap_2/demo/sldaModel.py | 759d6dfee68cf9c17043cbbd0e976b81256b9c88 | [] | no_license | WUT-IDEA/Y2019_LY_GraduationDesignCode | d1521b1e13498a1fdcbdcb927ad782b1753ee726 | 9e1670e460bde943336cfcc63f1f51a7d4e09e3a | refs/heads/master | 2020-05-27T14:10:29.879081 | 2019-05-26T09:07:25 | 2019-05-26T09:07:25 | 188,646,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: UTF-8 -*-
# author: liuyang
# date: 2018/5/18
# time: 下午8:47
from __future__ import print_function
import os
data = "train-data.dat"
label = "train-label.dat"
settings = "./demo/profile/settings.txt"
model_path = "./model"
def sldaModel(alpha, clusterNum):
os.system(r'./demo/profile/slda '
... | [
"zhengyunpei@zhengyunpeideMacBook-Pro.local"
] | zhengyunpei@zhengyunpeideMacBook-Pro.local |
aeb6b99951fafa9a4233ccd875926c5e94f39225 | ec164c8b16fdca016c03ef24aaa9ac623e873fa6 | /tests/osquery/test_osquery_compliance_probe.py | 71de8ada776cf26d01ed6ae19961f8a926812cd7 | [
"Apache-2.0"
] | permissive | coreservice/zentral | a67c2139e7aaadb7bce14938a3e668e867373cd2 | 24a00b0ff15aee531027c2d0ff39931a318eff9e | refs/heads/master | 2021-06-17T12:35:20.260526 | 2017-05-15T17:57:44 | 2017-05-15T17:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,155 | py | import hashlib
import re
from django.test import TestCase
from zentral.core.events import event_types
from zentral.core.events.base import EventMetadata
from zentral.core.probes.conf import all_probes
from zentral.core.probes.models import ProbeSource
from zentral.contrib.osquery.conf import INVENTORY_QUERY_NAME, build... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
7e10be1de0399ece290d8f5dc2b3384118967d78 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/recommender/insights/describe.py | 5fdef9063ecf5180bb50514606d163a96a694077 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,456 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
624b013bf019ff49e0ea1c33535b95f60da36c04 | 80052e0cbfe0214e4878d28eb52009ff3054fe58 | /e2yun_addons/odoo12/srm_scheduling/__manifest__.py | a5abc5a2898db5120623299722f64fcfc5478cca | [] | no_license | xAlphaOmega/filelib | b022c86f9035106c24ba806e6ece5ea6e14f0e3a | af4d4b079041f279a74e786c1540ea8df2d6b2ac | refs/heads/master | 2021-01-26T06:40:06.218774 | 2020-02-26T14:25:11 | 2020-02-26T14:25:11 | 243,349,887 | 0 | 2 | null | 2020-02-26T19:39:32 | 2020-02-26T19:39:31 | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
{
'name': "SRM scheduling",
'summary': """
srm scheduling""",
'description': """
srm scheduling
""",
"version": "12.0.1.0.0",
"license": "LGPL-3",
"author": "chuqiu.xu",
'depends': ['base','web','srm_demand_publish'],
'data': [
'views/q... | [
"qiang.li3@pactera.com"
] | qiang.li3@pactera.com |
28b4574d66cbf8f6c5744c7b75c374a1f59ffec3 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /CMDB/day92/auto_server/test.py | 773dbf0d2a6434e7ae58ea6e94e1067b73ac20d6 | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/env python3
l = [1, 2, 3, 4, 5, 6, 6, 7, 8, 9]
def fun(l, num, start=0, end=None):
end = len(l) - 1 if end is None else end
if end < start: return None
mid = (end - start) // 2 + start
if l[mid] > num:
return fun(l, num, start, mid - 1)
elif l[mid] < num:
return fun(l, ... | [
"214031230@qq.com"
] | 214031230@qq.com |
91e86c2b8867b6d97399890dc77e81fcc2dcb3c1 | 8a9f0a0924706ded24ab4214aa42ab07f201e38b | /LeetCode_Python/Tree/Path_Sum_II.py | 8b2f86c9ed59d67938977c49182548301e11ab58 | [] | no_license | gitzx/Data-Structure-Algorithm | 687162565729b12551cb660aa55a94f1d382014c | d6af7dfdc4d3d139fd939687a45dd36e327c914c | refs/heads/master | 2021-06-03T21:27:17.750464 | 2019-06-27T10:50:48 | 2019-06-27T10:50:48 | 14,443,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | '''
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13 4
/ \ / \
7 2 5 1
return
[
[5,4,11,2... | [
"emailzhx@126.com"
] | emailzhx@126.com |
5dc8582d882c7c18a168f9fc1b89f18379be95ce | e27eebd9cacba56eb0e161cf9584b856db4543b5 | /code/version-demo/demo/api/urls.py | 3f8e5a909344e31e5a9287b8ae351f9ec6c795d7 | [] | no_license | Dosimz/django-rest-framework-notes | fd374f9793057f9fbfe85c072912a019ef26b73a | 1d0cf0e9cd9042e432f883cd9c3fa2504e5b9a22 | refs/heads/master | 2020-06-25T15:36:33.700321 | 2019-08-03T04:26:40 | 2019-08-03T04:26:40 | 199,354,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
# path('users/', views.UsersView.as_view()),
url(r'^(?P<version>[v1|v2]+)/users/$',views.UsersView.as_view()),
url(r'^(?P<version>[v1|v2]+)/parser/$', views.ParserView.as_view()),
url(r'^(?P<version>[v1|v2... | [
"Vhzix24@gmail.com"
] | Vhzix24@gmail.com |
49eea35a37c00a686a419e8a8a778126c05c0d51 | 4b9871eee37563f9d61648c57b8a86f0532e5b34 | /percolation/utils/tableHelpers.py | 9795b7a2ca50ac900c253ecad79f6e37e25d77bb | [
"MIT"
] | permissive | ttm/percolationlegacy | fb55b85fe812317dcc63cf3884298fe98ca91f02 | cfdf5380c8d155424ab97bdab85edde8b6f0ec9f | refs/heads/master | 2020-12-24T08:56:39.190744 | 2016-01-19T16:18:01 | 2016-01-19T16:18:01 | 33,022,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,676 | py | import numpy as n, string, re, builtins as B, langid
def doubleColumn(tablefname):
with open(tablefname,"r") as f:
lines=f.read()
l=lines.replace("\\begin{table}","\\begin{table*}").replace("\\end{table}","\\end{table*}")
writeTex(l,tablefname)
def fSize(tablefname,ftag="scriptsize",write=False):
... | [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
dadb12fa676329363fc1bddccff15ec9ea3c927b | 4296cb5b97a69382d1fe6b73753a2ffcd1d154c5 | /abc/D/211-1.py | efaaf973b3162d5487ff75eb48358460cbe69558 | [] | no_license | tokuD/atcoder | a199a5fe92be54d0b66ceaf6158116984f52cd01 | a95a0380af129109fcf48eb1d4994bbb52925320 | refs/heads/master | 2023-08-28T10:28:55.763895 | 2021-11-13T15:49:38 | 2021-11-13T15:49:38 | 371,675,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from collections import deque
N,M = map(int, input().split())
G = [[] for _ in range(M)]
for _ in range(M):
a,b = map(lambda x:int(x)-1, input().split())
G[a].append(b)
G[b].append(a)
#* 都市0からの距離ごとにグループ分け
#* distance[i]:都市0からの距離が0のグループ
distance = [[] for _ in range(N)]
Q = deque()
Q.append([0,0])
visited ... | [
"megumu112851@gmail.com"
] | megumu112851@gmail.com |
cdf3014b01471293aa440eb1179e5a05cc4a6713 | 707afa88f15e7bbf7d0d1c89b5076a9d6d17547e | /Python-Selenium unittest/ClaustrophobicTC_ConfinedSpaces.py | 16ea140e10cff813aca8b9f2b7f3143b24314326 | [] | no_license | Longmann94/DFI_testing | 769f7211313b6303271b556b97e1038992d927a9 | a42430a25bdea98c5551f51003078a547335f7c6 | refs/heads/master | 2020-03-15T19:11:51.965865 | 2018-06-07T15:40:27 | 2018-06-07T15:40:27 | 132,302,477 | 3 | 0 | null | 2018-05-27T15:04:44 | 2018-05-06T03:11:25 | Python | UTF-8 | Python | false | false | 10,807 | py | import unittest
import time
import HtmlTestRunner
import os
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
cwd = os.getcwd()+'/results'
print("Please do not use t... | [
"noreply@github.com"
] | Longmann94.noreply@github.com |
a511761c1e4c79e180ac8b1b141be80d2d23a5d7 | 44d068ae83e200adbc435725df5f5bcdc7b0504f | /hm_python核心编程_python高级编程/hm_15_装饰器对有不定长参数函数进行装饰.py | eb6e5e37ff2aeb138f089c49032fccbb836d9d07 | [] | no_license | MeirongZhangzz/Base1 | 5dc018c021f34218c808a9298e71e768815a9795 | 178dd52fc34e72a99669aa824ed7646a14f8a129 | refs/heads/master | 2020-03-28T15:06:15.063099 | 2018-09-12T23:58:54 | 2018-09-12T23:58:54 | 148,556,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | def func(functionName):
print("---func---1----")
def func_in(*args, **kwargs): # 如果a,b没有定义,会导致20行的调用失败
print("---func_in---1---")
functionName(*args, **kwargs) # 如果没有把a,b当作实参进行传递,那么会导致调用13行的函数失败
print("---func_in---2---")
print("---func---2---")
return func_in
@func
def dte... | [
"l"
] | l |
7e699501a3435aeb617cfd67f44c8e2f7f6c7083 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/reason_business/room/car/business/friend/name/house_power_thing_city.py | 593a60a1aac7f3723fc7100cd4eb24ea8cdd9e42 | [] | 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 | 6,699 | py | # Luis Translator Bot Sample
This sample shows how to translate incoming and outgoing text using a custom middleware and the [Microsoft Translator Text API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/). This bot example uses [`restify`](https://www.npmjs.com/package/restify) and [`dotenv`](ht... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
706b2665b77c5d03c5a6e67ce13fdd1e7f9b37c5 | 1e8ce3e65803c044967dbf0800e73b772efa3a03 | /scripts/AddUniqueGeneIDs.py | b6329b6aed3970f0cdd0c1b6591340393875dac7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mrvollger/minimiro | 600073aa9cb999c7ff571896e72c6fdb656c6c7c | 8a77b2505fa97cecf841eb76e3c73317a2162fec | refs/heads/master | 2023-01-23T02:17:48.778511 | 2023-01-18T21:27:02 | 2023-01-18T21:27:02 | 241,394,145 | 5 | 3 | null | 2023-01-18T21:27:04 | 2020-02-18T15:17:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,573 | py | #!/usr/bin/env python
import argparse
import os
import sys
import re
# global var for inputs
args=None
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("infile", help="positional input")
parser.add_arg... | [
"mrvollger@gmail.com"
] | mrvollger@gmail.com |
5e2b8465fbcb346134ec4960552984e89450f7e3 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_source_url_top5_response.py | b42d9c4f794888e9768daff3a47ed6cf38560ce3 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListSourceUrlTop5Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fe46335a7f7e016d3186050d5c81744d0973ae35 | aea7b59d10a72ccac35a06e6d31a508771efc5a0 | /Day 12/StringValidators.py | 24cee1c11eddc397f4d83ea6a6ffd9c82bfc0ad6 | [] | no_license | divyatejakotteti/100DaysOfCode | d52871b27146cd1b1ef2b997e93b9a96ca8ac5a9 | 3c8555b021482565f56d7fb86fa5dacb304dfd3c | refs/heads/master | 2023-02-01T10:48:19.082268 | 2020-12-21T06:34:02 | 2020-12-21T06:34:02 | 294,888,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | '''Python has built-in string validation methods for basic data. It can check if a string is composed of alphabetical characters, alphanumeric characters, digits, etc.
str.isalnum()
This method checks if all the characters of a string are alphanumeric (a-z, A-Z and 0-9).
>>> print 'ab123'.isalnum()
True
>>> pr... | [
"noreply@github.com"
] | divyatejakotteti.noreply@github.com |
a77095397bfa56e2340ef8cce4a6ab13008ec9d6 | ee48a610616138a177d4634bbed0c73c9cd1e110 | /stratosphere/http-forward-shell/webshell.py | 1126dc865c539c43911a885415065865a4a46092 | [] | no_license | caminante99/htb-1 | 937d37f7351026fd669acb2e2514fe380dbd9972 | f743b629d8f23a2283a533354a897b9fbd4938c5 | refs/heads/master | 2023-05-01T17:31:45.357474 | 2021-05-22T09:34:26 | 2021-05-22T09:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,302 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Base64 used to encode our commands in case there are special chracters that the webserver can't process
# Would maybe need to urlencode
import base64
# Random used to generate seessions so we don't step on ourselves when we create other sessions
import random
# For http re... | [
"user@localhost.localdomain"
] | user@localhost.localdomain |
f8dbdcb67e90d7d36255a437a00639acd9d05fd4 | 568d5820e3aa7f99e8833cd5bbe33fe1203be29c | /demo/conf.py | aeff0d79cdfebb3b4c38a85d869d7aaa76371a5c | [] | no_license | rebeccaframework/rebecca.sphinxweb | 208c7c2bdf5d5a2e45efcf05f79fd56e15774ca6 | b820cd9c5177e2eb4f59079a2569c883c9e51c59 | refs/heads/master | 2021-01-23T08:52:38.845957 | 2012-01-07T06:43:33 | 2012-01-07T07:18:19 | 3,123,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,679 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# demo documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 6 22:44:13 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogen... | [
"aodagx@gmail.com"
] | aodagx@gmail.com |
d067091bac6b5cf240c707427b90c0b83732a077 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/pandas/tests/internals/test_internals.py | 26e46e9f38b9bb773bcda728a751c282b9050f56 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 48,653 | py | from datetime import (
date,
datetime,
)
import itertools
import re
import numpy as np
import pytest
from pandas._libs.internals import BlockPlacement
import pandas.util._test_decorators as td
from pandas.core.dtypes.common import is_scalar
import pandas as pd
from pandas import (
Categorical,
DataF... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
79917d5f998e8f23b518237283b9cbf2cc430ce4 | 32cf9c3099c36a46804e393dd1491a8954f50263 | /1학기 cloud9 총정리/django_intro/workspace/.c9/metadata/workspace/PROJECT01/home/views.py | 346e71ed812bb40698e3a886645aecad7d72df04 | [] | no_license | ash92kr/s_code | ce3bda6a403600892750e181dca5ed8c4caebcb1 | 92eace551d132b91ee91db6c0afd38b93f9b647b | refs/heads/master | 2020-04-12T00:27:07.043091 | 2019-05-21T08:17:39 | 2019-05-21T08:17:39 | 162,200,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | {"filter":false,"title":"views.py","tooltip":"/PROJECT01/home/views.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":120,"scrollleft":0,"selection":{"start":{"row":11,"column":42},"end":{"row":11,"column":42},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wr... | [
"ash92kr@gmail.com"
] | ash92kr@gmail.com |
93a809d50fed1d25e275c3cfc5621b70c89465ad | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/49/usersdata/92/17437/submittedfiles/pico.py | 82be7f145ce85cf4f339a70bf5d6928637443d8f | [] | 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 | 678 | py | # -*- coding: utf-8 -*-
from __future__ import division
def pico(lista):
posicao=0
for i in range(0, len(lista), 1):
if lista[i]<(lista[i+1]):
posicao= i
break
if posicao!=0:
cont=0
for i in range(posicao, len(lista)-1, 1):
if li... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
435b6b853894ee1c42a25e1223562276bb711a08 | 3ca6302ebdc0e47d5d462435ad24a2886cfa5063 | /49.py | 1dcc9f473e53caee545ae76fd3eda5deb94fc853 | [] | no_license | Sem31/PythonBasics | 3859276820d484025d6c3d8f9efaf131b8626da8 | d9bfd520b67056a3cbb747f7a4b71fe55871c082 | refs/heads/master | 2020-04-24T19:09:48.608293 | 2019-02-23T10:56:26 | 2019-02-23T10:56:26 | 172,203,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | a = 2
b = 3
print("exponetial = ",a ** b)
print("a is : ",a," b is : ",b)
a = int(input("enter the no . : "))
b = int(input("second no : "))
print(a+b)
#user input
x = input("x :")
y = input("y :")
print("Concatination are : ",x+y) # Concatination are there now
c = int(x)+int(y)
print("Sum is : ",c) | [
"semprajapat31@gmail.com"
] | semprajapat31@gmail.com |
d23f494193980c4456459ca9748f4f935120f696 | 3691259d4be62b60d8d52f38b36d6a24e5fd4536 | /libcloud/test/loadbalancer/test_ninefold.py | 2aba1b09d9ddcbb7194f492f26e71dc5a97fcf6d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chenjiang1985/libcloud | f385fac278777c2bbfedaf440d353c9ad9eb5c69 | 587212da626dfe0e2936737108bcc49d666cf4b4 | refs/heads/master | 2021-07-16T14:29:21.821490 | 2019-11-27T02:20:43 | 2019-11-27T02:20:43 | 222,844,781 | 1 | 2 | Apache-2.0 | 2020-10-27T22:06:36 | 2019-11-20T03:41:31 | Python | UTF-8 | Python | false | false | 1,136 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"jacob.cj@alibaba-inc.com"
] | jacob.cj@alibaba-inc.com |
2dcdf4fd572f6581e22fa90f847380469e9a6f49 | 7d6d02495eaf0ba2bcca322134dccf95cc18bee5 | /0x01-python_async_function/2-measure_runtime.py | 1b657d62bfe79a59348a0d21d805c974cedf5fab | [] | no_license | dgquintero/holbertonschool-web_back_end | 1b055556b78adc091a0bfe19159083cdc3bc41c5 | 251d28c9b555096c61a7112ada43dc65576d03c5 | refs/heads/main | 2023-06-29T07:44:46.567751 | 2021-08-02T03:31:08 | 2021-08-02T03:31:08 | 361,882,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/env python3
"""
function measure_time with asyncio
protip: time.perf_counter() is other
alternative.
"""
import asyncio
import time
wait_n = __import__('1-concurrent_coroutines').wait_n
def measure_time(n: int, max_delay: int) -> float:
""" Measures total execution time for wait_n """
... | [
"dgquintero02@hotmail.com"
] | dgquintero02@hotmail.com |
ab8d9b40e8940f2b0ef8cda0c01a5fa819ac0766 | ab8ac0c7c60b6ad4e8ef252b1cbc6fa9311204f7 | /fluentpy/ch19_dyn_attr_prop/__init__.py | d9450d997a8f2d084aa0f21ecaf928743d8cc471 | [] | no_license | xiaoaxe/xiao-fluent-python | 05228dc104bc1aa977b81771d1336fc05df638e4 | 41becbebc90d4c6096b8f01b2856d1b02dde34ce | refs/heads/master | 2021-06-19T07:36:39.540867 | 2017-06-27T04:02:49 | 2017-06-27T04:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@description:
@author: BaoQiang
@time: 2017/6/21 17:05
"""
| [
"mailbaoqiang@gmail.com"
] | mailbaoqiang@gmail.com |
a13f94f125a09614eb98afc7085ab47838f7f337 | 74a448da9a91cd3564b293b78e7b3127ace65a95 | /datasets/v2_synth_connectomics_baseline_200.py | 18e2aee65bab60d5059e4763cdb9eb9b1dfa3d3a | [] | no_license | drewlinsley/htdfgru_disentangling | 946c92384dc165cd1a73a1e3093e10ee7fb35776 | f9937119815157047a92a3a60f620d00f41681e1 | refs/heads/master | 2023-08-22T18:11:13.396886 | 2020-12-15T16:33:04 | 2020-12-15T16:33:04 | 266,172,327 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | py | import os
import numpy as np
import tensorflow as tf
from config import Config
from ops import tf_fun
class data_processing(object):
def __init__(self):
self.name = 'shape_connectome_baseline_200'
self.output_name = 'shape_connectome_baseline_200'
self.data_name = 'baseline'
self.i... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.