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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9dd418e88b4feef3c0a136c42c15bd3d73d52c9 | 0309bd25cdd8e89297f507be202634b07f5f6e85 | /LeetCode/Easy/Python3/tests/test_longestuncommonsubsequencei.py | cb5150abb748e1a5134781a8ef1fd36956eb3615 | [] | no_license | AmyShackles/algo-practice | 10fc4a5c5926232ff2b0aed6183cec9f21bf15f3 | 876e3be57357651348465f70ab312d4ac98d667a | refs/heads/main | 2023-04-03T08:29:33.725236 | 2021-04-13T19:20:18 | 2021-04-13T19:20:18 | 338,672,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import unittest
from Python3.longestuncommonsubsequencei import Solution
class TestfindLUSlength(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_1(self):
# For sanity checking:
# Input: a = "aba", b = "cdc"
# Output: 3
self.as... | [
"amyshackles@gmail.com"
] | amyshackles@gmail.com |
4f822fd322243a4b318e391561e07b0443f484a5 | 30867fa220859bb5291627e2a219dd25aa4ddfdc | /chapter6/heap_sort.py | 1c9df5a7bcbaa2949dcc4187489bea17749507d8 | [] | no_license | ANDYsGUITAR/IntroduceToAlgorithm | 4c0c1b110b85c5e19811138c1cab0268d41385e5 | e86bb48047e08337d11b036b412b211f67f54eaf | refs/heads/master | 2020-07-25T11:53:46.710330 | 2019-09-27T15:40:48 | 2019-09-27T15:40:48 | 208,280,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | def left(i):
return i * 2
def right(i):
return i * 2 + 1
def parent(i):
return i // 2
def max_heapify(A, i, heap_size):
l = left(i)
r = right(i)
if l <= heap_size - 1 and A[l] > A[i]:
largest = l
else:
largest = i
if r <= heap_size - 1 and A[r] > A[largest]:
... | [
"andyandwei@163.com"
] | andyandwei@163.com |
2577b32165abb593756c8e8427c8c59a9de32fb0 | 3a093f6a40e8fb24957d277ad8f4b097d08c6d04 | /result/tools/remaplabelsincards/remaphistograms_sig_only.py | b28edd68b6f626f213764ba39a35c3d909b9a651 | [] | no_license | dlont/FourTops2016 | ab9e953760e93b0e777b23478938efd30d640286 | 88c929bf98625735a92a31210f7233f799c5a10c | refs/heads/master | 2021-01-18T22:23:52.796080 | 2019-07-31T12:34:03 | 2019-07-31T12:34:03 | 72,439,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/python
import sys, getopt, json, re
from ROOT import gROOT
from ROOT import TKey, TClass
from ROOT import TFile, TObject, TList, TIter
from ROOT import TH1
def parseArgs(argv):
"""
Parse commandline arguments
"""
scriptName = "remaphistograms.py"
rootfile = ''
dic = {}
try:
... | [
"denys.lontkovskyi@cern.ch"
] | denys.lontkovskyi@cern.ch |
f14cff4951f929b4bb2934cb376743983b718784 | 6d051f9348d547fa9e49d63f53afd7967b4f8043 | /djangobmf/contrib/quotation/migrations/0004_optional_quotation_customer.py | 462093dbebb53e0761c004b779395902817960b8 | [
"BSD-3-Clause"
] | permissive | caputomarcos/django-bmf | 39d7f1284ebf58e12e914f0a217368f8a664ef6b | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | refs/heads/develop | 2022-02-09T08:23:52.983948 | 2015-11-16T01:48:22 | 2015-11-16T01:48:22 | 46,672,438 | 0 | 0 | NOASSERTION | 2022-02-02T10:46:15 | 2015-11-22T17:57:11 | Python | UTF-8 | Python | false | false | 673 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('djangobmf_quotation', '0003_optional_quotation_employee'),
migrations... | [
"sebastian@elmnt.de"
] | sebastian@elmnt.de |
76b221415354349ee78355c384fd34d3022f9069 | 4b00a2fd9f926bab452ede4319ee948dddc84215 | /wechatApp/application.py | dc68c146ea7c48e124aeeca5a4ea0b74113265d5 | [] | no_license | maketubu7/make_python3 | 64c00b37600f90d6543f919446cfe7479e883841 | 70405be146cfb83250c51d7211c06a4b6db6db93 | refs/heads/master | 2020-11-29T17:15:46.312929 | 2020-07-27T09:45:29 | 2020-07-27T09:45:29 | 230,176,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # -*- coding: utf-8 -*-
# @Time : 2020/2/10 22:54
# @Author : Deng Wenxing
# @Email : dengwenxingae86@163.com
# @File : application.py.py
# @Software: PyCharm
import sys
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask import Flask
class Application(Flask):
def __init__(... | [
"601176930@qq.com"
] | 601176930@qq.com |
04835ada0c213e3afdd480c774caeb0e6334a3b1 | 3cdb4faf34d8375d6aee08bcc523adadcb0c46e2 | /web/env/lib/python3.6/site-packages/django/core/management/commands/runserver.py | 0e0fd1ca2c0dc9eadbce38fabd6f392fbb06e452 | [
"MIT",
"GPL-3.0-only"
] | permissive | rizwansoaib/face-attendence | bc185d4de627ce5adab1cda7da466cb7a5fddcbe | 59300441b52d32f3ecb5095085ef9d448aef63af | refs/heads/master | 2020-04-25T23:47:47.303642 | 2019-09-12T14:26:17 | 2019-09-12T14:26:17 | 173,157,284 | 45 | 12 | MIT | 2020-02-11T23:47:55 | 2019-02-28T17:33:14 | Python | UTF-8 | Python | false | false | 6,274 | py | import errno
import os
import re
import socket
import sys
from datetime import datetime
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.servers.basehttp import (
WSGIServer, get_internal_wsgi_application, run,
)
from django.utils import autoreload... | [
"rizwansoaib@gmail.com"
] | rizwansoaib@gmail.com |
422ade437e3e4afc6cab2ea04be5ae59d5d4d2ff | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jedi/third_party/typeshed/stdlib/2and3/token.pyi | a806a466b8eaa65b05e25b80d76118f18ddb69f4 | [
"MIT",
"Apache-2.0"
] | 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 | 1,468 | pyi | import sys
from typing import Dict
ENDMARKER: int
NAME: int
NUMBER: int
STRING: int
NEWLINE: int
INDENT: int
DEDENT: int
LPAR: int
RPAR: int
LSQB: int
RSQB: int
COLON: int
COMMA: int
SEMI: int
PLUS: int
MINUS: int
STAR: int
SLASH: int
VBAR: int
AMPER: int
LESS: int
GREATER: int
EQUAL: int
DOT: int
PERCENT: int
if sys.... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
f48b5176aa76b1545ac19b4b842a6d837687cc1b | 5c19d0cd1ad792d7e4dc619d4a359a9b73187f85 | /exile/exile/celery.py | 856d204484f0dcd442921e9a2754499e98208463 | [
"MIT"
] | permissive | wahello/Exile-Web | c6545b41472c5da7368d0194918cd853f426eb34 | f8d8dc18e44c65d12a45e0821002f26ca07cf516 | refs/heads/master | 2020-03-29T01:51:29.393527 | 2018-09-19T03:53:27 | 2018-09-19T03:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
from celery.decorators import task
from celery import schedules
import datetime
import os
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_... | [
"luismiguel.mopa@gmail.com"
] | luismiguel.mopa@gmail.com |
416b91d86239b21827ade38d832cf48c85d4b70d | d57fe8c5e9fd91091999c293f17a35e310a7b56d | /testblock.py | 2f942ce55336fcc921dad329b6f8b3ca8b2bfb48 | [] | no_license | barrystyle/dcrypt_hash | 814d9d15079a9c895ce57ddafb9aba2f6b62156d | f75ae2e74f9dee2257d9509b67d14e3a71120e4e | refs/heads/master | 2020-03-19T00:08:36.920197 | 2018-05-30T14:43:06 | 2018-05-30T14:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | import dcrypt_hash
import binascii
import os, sys, time, datetime, random
def send(cmd):
sys.stdout.write(cmd)
sys.stdout.flush()
def pos(line, column):
send('\033[%s;%sf' % (line, column))
def hexifynonce(nonce):
hexnonce=''
hexnonce = hex(nonce).replace('0x','')
while(len(hexnonce)<8):
... | [
"barrystyle@westnet.com.au"
] | barrystyle@westnet.com.au |
6592281fb24a2149ff5343af27e9394d9e210a1b | f0f9d9b384e13c69700a9dfaa4163b272828eca4 | /lambda_tiler/ogc.py | fffcf6484478b799c0428229837334328ed0e776 | [
"BSD-3-Clause"
] | permissive | mwengren/lambda-tiler | 739ebade32182aef26cc70d8da1d170ca382e14c | adbf119ee0289bfe6ad7fa9e88a2968aa22a65f2 | refs/heads/master | 2021-02-04T07:27:45.504403 | 2020-01-29T17:45:12 | 2020-01-29T17:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,411 | py | """OCG wmts template."""
from typing import Tuple
def wmts_template(
endpoint: str,
layer_name: str,
query_string: str = "",
minzoom: int = 0,
maxzoom: int = 25,
bounds: Tuple = [-180, -85.051129, 85.051129, 180],
tile_scale: int = 1,
tile_format: str = "png",
title: str = "Cloud ... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
a9c2854fbabe62e833ebb36095fe9dd126dc6fdf | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/run_mypy.py | 6be424bda8a3a84b0a2f8e8d1e9d238a72d67068 | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,893 | py | #!/usr/bin/env python
import os
import sys
import subprocess
# A quick Python implementation of unix 'where' command.
def where(exe_name: str, search_path: str = os.getenv("PATH")) -> str:
if search_path is None:
search_path = ""
paths = search_path.split(os.pathsep)
result = ""
print(" -> s... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
9981fe4f38e89a388281ac15a1fb30d420655380 | 5bdd9c4eccf7e43f7766cfd64fe847eb3f62ad99 | /devel/.private/camera_calibration_parsers/lib/python2.7/dist-packages/camera_calibration_parsers/__init__.py | 0cba4d6f187c250c65f80e6dc22bf6777a4b24de | [] | no_license | UAVMasterLabs/vision_ws | 3467a223ec0d7012207978f803e3cd4b554c9ef6 | d0a6052b9f60d0ecc52033fd1caa5e1de5606b35 | refs/heads/master | 2021-04-29T03:59:57.903441 | 2017-01-04T17:13:31 | 2017-01-04T17:13:31 | 78,033,751 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/uav_master/vision_ws/src/image_common/cam... | [
"sputnick1124@comcast.net"
] | sputnick1124@comcast.net |
cda00c7141b39975d7776a233880dd653bc965dd | 8fa938eddcc75eb7dff1f2055c49cb3817a00c63 | /Basic - Part1/ex103.py | 761d67ac4c07d80674c52d517a2e7bba681011cc | [] | no_license | jayhebe/w3resource_exercises | f27109759d112b0611574aa70eb378ace447c2a0 | b29aa7c806f6021a8988e83bb9f674522a41380d | refs/heads/master | 2020-05-07T09:23:24.039271 | 2020-01-30T15:05:06 | 2020-01-30T15:05:06 | 180,374,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import os
def get_filenname(path):
return os.path.basename(path)
if __name__ == '__main__':
print(get_filenname(r"C:/Study/Programming/Python/w3resource_exercises/Basic - Part1/ex102.py"))
| [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
1a86d8e204b5968a4983f1b99e3e0f617047c089 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/machinelearningservices/v20200601/get_private_endpoint_connection.py | 44e976b4acafd06471374d33c9291151ea432b91 | [
"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 | 6,477 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
193d277299210bfaf8367349dfbc2e841745a28c | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /keras/keras20_boston_keras2.py | 31b6dc77e79773729c7cda8127ecb3db118a9c2e | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | # 2개의 파일을 만드시오.
# 1. EarlyStopping을 적용하지 않은 최고의 모델
# 2. EarlyStopping을 적용한 최고의 모델
import numpy as np
from tensorflow.keras.datasets import boston_housing
(x_train, y_train), (x_test, y_test) = boston_housing.load_data()
from sklearn.model_selection import train_test_split
x_train, x_val, y_train, y_val = train_test_sp... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
cc49651177ddaf4f27d72fbd15c45825d0a9aaad | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/track/management/tracked_command.py | 36f725a3e5e70bc307bce4534ec945c707c19579 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 2,220 | py | """Provides management command calling info to tracking context."""
from django.core.management.base import BaseCommand
from eventtracking import tracker
class TrackedCommand(BaseCommand): # lint-amnesty, pylint: disable=abstract-method
"""
Provides management command calling info to tracking context.
... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
1673ced94afb1eea71c1e0a25c40e309d7ddaafe | 9c337ea179ce44d1570219647b60b78c84ed54a7 | /ad_donation/admin.py | 118cd343ec30421963b3eb931adf643d0abcf2c7 | [] | no_license | timshin43/donaddcom | aa9cb5616907f145b388f290429dd9d1fd61f73b | d372b6677a15d699abc634f8f49581b8aa23f9a0 | refs/heads/master | 2022-12-10T10:10:26.494884 | 2020-12-08T02:10:48 | 2020-12-08T02:10:48 | 180,018,996 | 0 | 0 | null | 2022-12-08T02:31:05 | 2019-04-07T20:20:16 | Python | UTF-8 | Python | false | false | 636 | py | from django.contrib import admin
from .models import Total_donation, Video, Donations, Project_for_donations
from embed_video.admin import AdminVideoMixin
from modeltranslation.admin import TranslationAdmin, TranslationTabularInline, TranslationGenericStackedInline
# Register your models here.
# this video class is ... | [
"timshin.sergei@gmail.com"
] | timshin.sergei@gmail.com |
801e2e1987071a7ff34f924cc7f2f8111ed54324 | e4bb415dbdf69325b129dac01f3caf0a403fc00f | /fb_post_v2/interactors/add_comment_interactor.py | 72e591a20400c70609c7fd15dcbe28a765832418 | [] | no_license | bharatmudragada/fb_post_data | d67d7cd4be6eabc76091fc9ff86daebb7101ce5e | 58ee0b3581851b8ca1a963ee1aa1d1dd263c8e03 | refs/heads/master | 2022-05-11T16:10:20.220419 | 2019-07-29T05:37:17 | 2019-07-29T05:37:17 | 197,405,858 | 0 | 0 | null | 2022-04-22T21:56:53 | 2019-07-17T14:30:23 | Python | UTF-8 | Python | false | false | 1,178 | py | from fb_post_v2.interactors.presenters.json_presenter import JsonPresenter
from fb_post_v2.interactors.storages.post_storage import PostStorage
class AddCommentInteractor:
def __init__(self, post_storage: PostStorage, presenter: JsonPresenter):
self.post_storage = post_storage
self.presenter = pr... | [
"bharathmudragada123@gmail.com"
] | bharathmudragada123@gmail.com |
a221119c934898812823905d08bbfc4e752cd7be | 92d8bf41165e5e19c165af12715a5fed9ee5599e | /rpc_rabbitmq_caesarlinsa/config.py | fa3e04f83892c3d797bd8f7a3a4cf59eaf9a8ca2 | [] | no_license | CaesarLinsa/rpc_rabbitmq_caesarlinsa | 40e436445d9160c02c06298f9c0fce5195e43ad6 | 100b8606486eb71537ac48ab98b6b78ba76d0d86 | refs/heads/master | 2022-12-13T07:24:06.887750 | 2020-09-18T06:18:25 | 2020-09-18T06:18:25 | 287,790,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from rpc_rabbitmq_caesarlinsa.options import define, options
define(name="connection_pool_size", default=100, type=int)
define(name="rabbit_user", default="guest", type=str)
define(name="rabbit_password", default="guest", type=str)
define(name="rabbit_host", default="localhost", type=str)
define(name="rabbit_port", de... | [
"Caesar_Linsa@163.com"
] | Caesar_Linsa@163.com |
4704d8ec3de4a73dc42240a747eb6728b5dc9979 | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_alldataset/config_GMM_256_fold4.py | a02894381fb036048231cc18763890d4e42ebcfe | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/all_dataset/GMM/256/fold_4/temp/'
result_directory = './results/... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
93ecddb61429984b724d60a3b07287aab5abfee7 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/InitFaceVerifyRequest.py | b1177a3d4b6c4a11a33d80c494634a736c3486c5 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 4,540 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
f5aca996f408f570a42e2439bd7d2000942fe68a | 660e35c822423685aea19d038daa8356722dc744 | /ldap_authentication/__init__.py | 90d1804c171db1b34d0a654f8f9f8d6d8d2e308e | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from . import res
def register():
Pool.register(
res.User,
module='ldap_authentication', type_='model')
| [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
cea9b5cfb24276d6803124aa50bdb466cefde694 | 3fccfdc82e5150f99708794eba07f51467f9ecaa | /mysite/settings.py | c2bc1e85fa007401c819c7815a9c1250a4a31028 | [] | no_license | tanveerahmad1517/blogchapter2 | c1a23b5533982933fe8cd58b3b09109f795b6288 | 374711eef4ba624c935fabccd59f2d03610c2eda | refs/heads/master | 2020-03-23T20:19:39.004218 | 2018-07-23T15:42:23 | 2018-07-23T15:42:23 | 142,035,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
# Bu... | [
"tanveerobjects@gmail.com"
] | tanveerobjects@gmail.com |
fb99997e8135db71490449bab0d57e5898d525fe | ed5629376d293b7dbda9f53ef1b57e38cd52d655 | /lstelementcheck.py | 419b728fb7f185706eecc650ca0ff15dca273659 | [] | no_license | sabariks/pythonpgm | eb46172b8ffd17b945f6ccd8241015c9874e37e7 | 1bb9264b6f219b69b9a782591d526fc7adb891cd | refs/heads/master | 2021-01-08T23:22:15.891688 | 2020-02-27T17:37:34 | 2020-02-27T17:37:34 | 242,174,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n=int(input())
a=list(map(int,input().strip().split()))[:n]
b=list(map(int,input().strip().split()))[:n]
lst=[]
ans = []
for i in range(0,n):
if a[i] in b:
lst.append(a[i])
if len(lst) == 0:
print(-1)
else:
for i in lst:
if i not in ans:
ans.append(i)
print(*... | [
"noreply@github.com"
] | sabariks.noreply@github.com |
5203b5a3a174a6ec97dbfd71224c43900e1d12cc | 3bbbdf87b52c49dc9dcf5d91b9ed58e3e1d161cb | /my_electric_car.py | 61b5b5d433770ae4743a0bb26f06929c395cf0aa | [] | no_license | Weeeendi/Python | 2d5348c5aee48b8e24c12b392f1f8061d9107351 | 9dfd014b0606a9ba82cfc8d02a1bf51be43e7129 | refs/heads/master | 2020-04-20T14:32:53.927902 | 2019-03-05T15:34:06 | 2019-03-05T15:34:06 | 168,901,906 | 2 | 0 | null | 2019-03-05T15:34:09 | 2019-02-03T02:36:19 | HTML | UTF-8 | Python | false | false | 2,327 | py | #!/usr/bin/env python
# coding: utf-8
class Car():
"""一次模拟汽车的简单测试"""
def __init__(self,make,model,year):
"""初始化描述汽车的属性"""
self.make = make
self.model = model
self.year = year
self.odometer_reading = 0
def get_desciptive_name(self):
"""... | [
"wendi1078771091@gmail.com"
] | wendi1078771091@gmail.com |
544e1d3e53703b21219ea08608d86dc5c507b3a6 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/talent/v4beta1/talent-v4beta1-py/google/cloud/talent_v4beta1/services/tenant_service/transports/__init__.py | bdfa62764038823c5990cbe7a72f795db70bb258 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
2ac83f3869109cbe8e35999dfbe0d94f3ade12c1 | 92c516858c6cff00365555782d3037ff028ec28f | /build/robotika_x2_sensor_config_1/catkin_generated/generate_cached_setup.py | 013c3965f56c34f105cb83a11d27f2fd585bb9de | [] | no_license | bobusfil/aloam_ws | 8a9bdedbcc2fa54155950761772e671ff48f3ea3 | 43b5fc6d0086cb79df688a771f26b972696cf5c4 | refs/heads/master | 2023-03-29T13:33:02.677422 | 2021-03-24T17:35:44 | 2021-03-24T17:35:44 | 351,167,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
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/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"bobusfil@fel.cvut.cz"
] | bobusfil@fel.cvut.cz |
da8a2f5c35da076ac327193b2efc9d17d613163f | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/mongo_db_database_create_update_parameters.py | b0fce2563681071b835401427c6454f3f0ecd9a9 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,557 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c965ada61d36d3b6df57e862c30ed3558819a500 | ab4f552d894678542eb9ad772955088868be61d6 | /tests/vi/test_find_paragraph_text_object.py | 21f661e4d74c6d666bf638708d888c0e6109c571 | [
"MIT"
] | permissive | kemiller/Vintageous | edf6e080cd75621f09583a42376911993e66e760 | 7961b435163117609269866199b765e396799721 | refs/heads/master | 2021-01-22T02:39:58.565311 | 2014-03-26T18:21:41 | 2014-03-26T18:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | import unittest
from Vintageous.vi.constants import MODE_NORMAL
from Vintageous.vi.constants import _MODE_INTERNAL_NORMAL
from Vintageous.tests import BufferTest
from Vintageous.tests import set_text
from Vintageous.tests import add_sel
from Vintageous.vi.text_objects import find_paragraph_text_object
... | [
"guillermo.lopez@outlook.com"
] | guillermo.lopez@outlook.com |
e1c119237af11cc410ea14a8cfaeee5ba13bb0d6 | f1961c86e6da14f35c21d7235f4fc8a89fabdcad | /DailyProgrammer/DP20150909B.py | adb016baa3e8625282dbf878a5baf0903e126cad | [
"MIT"
] | permissive | DayGitH/Python-Challenges | d4930bdd85cd1a977d8f6192775ca956a375fcde | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | refs/heads/master | 2021-01-17T13:01:03.784523 | 2018-06-29T23:49:04 | 2018-06-29T23:49:04 | 58,497,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | """
[2015-09-09] Challenge #231 [Intermediate] Set Game Solver
https://www.reddit.com/r/dailyprogrammer/comments/3ke4l6/20150909_challenge_231_intermediate_set_game/
Our apologies for the delay in getting this posted, there was some technical difficulties behind the scenes.
# Description
Set is a card game where eac... | [
"akber91@gmail.com"
] | akber91@gmail.com |
fb5a1c9efd1ca790261ba44636b050b5497a04a2 | 1bf48ef7e7e2bff6f9f7d629282f50281579051e | /compute/wps/tests/test_user_views.py | 962d296c9d3b5128d6e9a6449161e09ef62a2e4d | [] | no_license | maheshguru/esgf-compute-wps | 4316b5f3a0f11912e97d7d4624100d39331675e9 | f1aeaaaacb31f4d1956aef671e22f56862015004 | refs/heads/master | 2021-07-15T06:00:36.283521 | 2017-10-20T11:43:22 | 2017-10-20T11:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,498 | py | import random
from wps import models
from .common import CommonTestCase
class UserViewsTestCase(CommonTestCase):
def setUp(self):
self.update = models.User.objects.create_user('update', 'update@gmail.com', 'update')
models.Auth.objects.create(user=self.update)
for _ in xrange(10):
... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
b608ee5c5b21148d68d3abba45f8fa9430dbe861 | bbd18b9e0c68db1c83b2586b16fa5b06fa5eec03 | /.history/login_20201029004936.py | 14f19ea54c8eff8f4341d81cbcd8b02829c4d39b | [] | no_license | tasnimsamin/Game-Develepment-Project | f6fa0057e0e1a48d7cb86e1b57b3f5c4cd4346f5 | b55b2c4599f94c3241e67d45f860eb044a086afc | refs/heads/main | 2023-09-01T15:25:32.383163 | 2021-10-23T07:32:12 | 2021-10-23T07:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py |
import mysql.connector
import cgi
form = cgi.FieldStorage()
first_name=form.getvalue("name")
last_name = form.getvalue("emailid")
email = form.getvalue("password")
new_pass
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="",
database="login"
)
mycursor = mydb.cursor()
sql =... | [
"somiyatasnim1086@gmail.com"
] | somiyatasnim1086@gmail.com |
752bd647c99ad94b28ec4f50fb8526f82cda9f88 | a6cba5b8b36f3f4ef80d7351725da0bc8ddbfad4 | /DA/lab6/bench.py | 17f8bcd3fb64be2c7be556c76a309d35a5911e73 | [] | no_license | tutkarma/mai_study | 7de61a406c7c5701ea9bbea7da687cc147653e53 | 39359eb8b5701c752d1f4e8e0b26911e50df12ab | refs/heads/master | 2023-03-15T18:28:05.814809 | 2022-01-18T08:40:39 | 2022-01-18T08:40:39 | 103,191,526 | 38 | 99 | null | 2023-03-04T02:20:21 | 2017-09-11T21:46:56 | Jupyter Notebook | UTF-8 | Python | false | false | 966 | py | import time
class Profiler(object):
def __enter__(self):
self._startTime = time.time()
def __exit__(self, type, value, traceback):
print("Python time: {:.6f} sec.".format(time.time() - self._startTime))
with Profiler() as p:
while True:
try:
x = int(raw_input())
... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
059f3dd54481fe72ad1bbce8a7d5f44dd19cae0f | cc3f0afc1e2be41a98bddf97dae155e41c705ed8 | /src/model.py | 1cbe554215a689e5c5924a562d49521ea9622488 | [] | no_license | afcarl/LabelPropagation | 5983b0315a15f6187b63dc3002788355051a9c27 | e40b92793d6366f6d491dae2916da5d1d10a6ef1 | refs/heads/master | 2020-03-22T11:59:22.757170 | 2018-07-02T21:23:20 | 2018-07-02T21:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | import networkx as nx
import random
from tqdm import tqdm
from community import modularity
import pandas as pd
from calculation_helper import overlap, unit, min_norm, normalized_overlap, overlap_generator
from print_and_read import json_dumper
class LabelPropagator:
def __init__(self, graph, args):
"""
... | [
"noreply@github.com"
] | afcarl.noreply@github.com |
3fb4a9c6b3d63579316a3dc2ff6249b694e620aa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_360/ch14_2020_03_09_19_11_33_027171.py | a3c691ebb90846fb15c2fdedd68439cc5160589a | [] | 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 | 206 | py | import math
def calcula_distancia_do_projetil(v,teta,y0):
a= (v**2)/(2*9.8)
b= 2*9.8*y0
c= v**2*(math.sin(2*teta)**2)
d= math.sqrt(1+ (b/c))
e= a*(1+d) * math.sin(2*teta)
return e
| [
"you@example.com"
] | you@example.com |
315870e1acad9706b43b5c1d2b964e5822245fc0 | 99c7690c57a1f7f2da620f1be0efef3e63d27ebd | /collective/bibliotheek/utils/views.py | e8962f8574bca0f7d2f36d9e2aeac6f5afd9ee37 | [] | no_license | andreesg/collective.bibliotheek | 1e21e1601a709b26055fe45a99548462d12390a5 | edef14463cc6330a457e957aab4b4daeb1081894 | refs/heads/master | 2021-01-19T07:54:22.696171 | 2015-11-17T11:03:32 | 2015-11-17T11:03:32 | 37,079,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from Products.Five import BrowserView
from plone.dexterity.browser.view import DefaultView
from zope.component import getMultiAdapter
from Products.CMFCore.utils import getToolByName
from collective.bibliotheek import MessageFactory as _
from AccessControl import getSecurityM... | [
"andreslb1@gmail.com"
] | andreslb1@gmail.com |
1d0cb9faeda11d5e86f331fc416452076f45ff65 | 4b1939ca7ceef7d227b90cd41af709552f3ad913 | /apps/costreport/migrations/0006_auto_20180509_1104.py | 5fbdea3c3a660a19ded5e5a52d3655513ffe599b | [] | no_license | zhuoxiaojian/xadminTest | 45cfa2d4fd5c658b29fc598f342a199695a1adc5 | 76abc02224bcd8526f4f6a41d569a315681e6e6e | refs/heads/master | 2020-03-18T06:24:47.459085 | 2018-05-22T09:40:32 | 2018-05-22T09:40:43 | 134,393,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Generated by Django 2.0.4 on 2018-05-09 11:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('costreport', '0005_auto_20180509_0945'),
]
operations = [
migrations.RemoveField(
model_name='costdailyreport',
name='exchan... | [
"1933860854@qq.com"
] | 1933860854@qq.com |
598d348e8a67d2740cd995ebc384ec7e16e08d62 | 3f46af2da32d9f02d1ebbdef6784ece1d64aace3 | /Production/python/PrivateSamples/EMJ_2016_mMed-1500_mDark-20_ctau-500_unflavored-down_cff.py | 6543d851a9367c4a8547408af96fcfa7b6caa887 | [] | no_license | cms-svj/TreeMaker | 53bf4b1e35d2e2a4fa99c13c2c8b60a207676b6d | 0ded877bcac801a2a394ad90ed987a20caa72a4c | refs/heads/Run2_2017 | 2023-07-19T07:14:39.175712 | 2020-10-06T21:10:26 | 2020-10-06T21:10:26 | 305,753,513 | 0 | 0 | null | 2021-01-26T18:58:54 | 2020-10-20T15:32:19 | null | UTF-8 | Python | false | false | 1,892 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'gsiftp://hepcms-gridftp.u... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
e3e71fda673200e5b97537a293cf75b13f19ecc9 | e322d01555aebbcf9f23a68fa9160e75d4397969 | /YouCompleteMe/python/ycm/base.py | 1fb73dba383222def2a0e5022f086041dd323b95 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | liqiang0330/i3ForDebian9 | 3b2bb5ce104f25cadab7a57cdc7096fadeb4a9ef | 37a63bdaf18dab847e57d328cdcb678668ab6207 | refs/heads/master | 2022-10-25T13:30:26.723690 | 2018-03-17T05:22:55 | 2018-03-17T05:22:55 | 162,018,419 | 1 | 1 | Apache-2.0 | 2022-10-08T20:30:23 | 2018-12-16T16:11:57 | Python | UTF-8 | Python | false | false | 5,591 | py | # Copyright (C) 2011, 2012 Google Inc.
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | [
"yuan705791627@gmail.com"
] | yuan705791627@gmail.com |
71f55533202ebe5e7c0a835950498b96cae0052f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/11/usersdata/82/5672/submittedfiles/jogo.py | 49f1ee265f4324d776bb35c4ca3c9c71e3a2c437 | [] | 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 | 256 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#ENTRADA
Cv = input ('Digite Cv:')
Ce = input ('Digite Ce:')
Cs = input ('Digite Cs:')
Fv = input ('Digite Fv:')
Fe = input ('Digite Fe:')
Fs = input ('Digite Fs:')
#PROCESSAMENTO E SAIDA | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
877ea68bb77143b94b967841ee6f41341972cde4 | 855501a4cb8a54e0c977d53e6f5d76d8938f99cb | /Constructing a Number.py | b26ef9d2c3ab95b24b1ca05134ede9f326fbeb80 | [] | no_license | Beowulfdgo/HackerRank | 3d7713f68a595af76d857ac9955ae55565b8391f | e4384253f27eee296e0cad39a402cadf47c90164 | refs/heads/master | 2023-05-31T05:30:21.425792 | 2021-06-29T08:47:11 | 2021-06-29T08:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import math
import os
import random
import re
import sys
def canConstruct(a):
if(sum(a)%3==0):
return "Yes"
else:
return "No"
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
t = int(input())
for t_itr in range(t):
n = int(input())
a = list(map(... | [
"54479676+CormacKrum@users.noreply.github.com"
] | 54479676+CormacKrum@users.noreply.github.com |
aa03d7ec1a53a7b3d047d38856a9896dafd2b159 | 3a9924e0e2f8e68cfed2e70bac79ccb904eac245 | /libertybank/pipelines.py | fdd0d80ea4c95e1d8e9854a06699ebdab809f369 | [] | no_license | daniel-kanchev/libertybank | d3b6909f81187c881f044e009ed9e5baacc4f158 | 446987e29cb4cf3c26e192b6a5bd395d4b965dab | refs/heads/main | 2023-03-27T06:55:06.704287 | 2021-03-12T13:05:48 | 2021-03-12T13:05:48 | 347,069,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | from itemadapter import ItemAdapter
import sqlite3
class DatabasePipeline:
# Database setup
conn = sqlite3.connect('libertybank.db')
c = conn.cursor()
def open_spider(self, spider):
self.c.execute(""" CREATE TABLE IF NOT EXISTS articles (
title text,
date text,
link ... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
0411315a72c4aa485a3042e68566ba52f4cf54f7 | ef0ce2f2dd9ddafa45ec583d23e6a099976e633d | /DataManage.py | 48277ed0b481adb2a4fcf8f27dc264fc54b702b1 | [] | no_license | wystephen/satellite_data_process | 86b718d735f23f9092e6e75b126810531e7b853b | 1ad511be37fe26963904d448ac4035b245dbb22f | refs/heads/master | 2020-05-22T01:43:23.746795 | 2016-10-01T12:56:21 | 2016-10-01T12:56:21 | 65,731,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | # -*- coding:utf-8 -*-
# carete by steve at 2016 / 08 / 15 20:10
import scipy as sp
import numpy as np
#import theano
#import theano.tensor as T
#import theano.configdefaults
# __float__ = 'float32'
class DataManage:
def __init__(self):
self.x = np.loadtxt("outX.txt")
self.y = np.loadtxt("outY... | [
"551619855@qq.com"
] | 551619855@qq.com |
bb23fb974538fb9d267c05480d0a82d809f3929a | 314245750f897949bc7867883d22b8ff1465fbe1 | /union_find/topolgy_sort.py | dbbd21482663a383caf2f2d6d85eeab285c67a3b | [] | no_license | dongho108/CodingTestByPython | e608d70235cc6c6a27c71eea86ee28d1271d4d1d | 475b3665377a8f74944d7698e894ad3eafc49ad4 | refs/heads/master | 2023-05-24T15:01:56.563359 | 2021-07-01T14:23:20 | 2021-07-01T14:23:20 | 330,833,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from collections import deque
def topolgy_sort():
result = []
q = deque()
for i in range(1, v+1):
if indegree[i] == 0:
q.append(i)
while q:
now = q.popleft()
result.append(now)
for i in graph[now]:
indegree[i] -= 1
if indegree[i] =... | [
"dongho108@naver.com"
] | dongho108@naver.com |
ce014188d3bcd0609073e20ec8af2a585bd49521 | b121b4135f0edf0e39c1ae7343c7df19f56a077f | /prototypes/ModelsAsScriptsWithSpecialVarNames/Deprecated/MvarsAndComputer.py | c95027ea729445dd88271eef8c82d8fc20f12ed0 | [] | no_license | MPIBGC-TEE/bgc-md | 25379c03d2333481bd385211f49aff6351e5dd05 | 8912a26d1b7e404ed3ebee4d4799a3518f507756 | refs/heads/master | 2021-05-08T19:07:46.930394 | 2020-10-21T12:08:53 | 2020-10-21T12:08:53 | 119,548,100 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | from sympy import Symbol,Number
from typing import List
from CompartmentalSystems.smooth_reservoir_model import SmoothReservoirModel
from CompartmentalSystems.smooth_model_run import SmoothModelRun
#from CompartmentalSystems import smooth_reservoir_model
from testinfrastructure.helpers import pe
from .Classes import M... | [
"markus.mueller.1.g@googlemail.com"
] | markus.mueller.1.g@googlemail.com |
4ffd358e3f78a61fd87db9fcb576cc6e32cd8315 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_MovingMedian/cycle_5/ar_/test_artificial_128_Quantization_MovingMedian_5__0.py | 184a722c83d9481caea039d4a9560b8a736445d0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
de6c0324f453aab5c78a021a5f58767b145614da | dffb316df646b2d1c4739e30f9547a6860867ccf | /leetcode/_853_CarFleet.py | 672b2e2fbdba11caaeb07d5856fa42d7bd4ca8c1 | [] | no_license | scolphew/leetcode_python | 50051f78085e3dd13a39e51bf50c40db9abb8295 | 86352d3f51ab030afdb7b472a80bc8cab7260c08 | refs/heads/master | 2022-09-13T02:47:05.900375 | 2022-09-07T06:17:14 | 2022-09-07T06:17:14 | 68,989,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from typing import List
class Solution:
def carFleet(self, target: int, position: List[int], speed: List[int]) -> int: # noqa
cats = zip(position, speed)
cats = sorted(cats)
pre_time = 0
ans = 0
for cat_p, car_s in cats[::-1]:
target_time = (target - cat_p) / c... | [
"scolphew@pku.edu.cn"
] | scolphew@pku.edu.cn |
fb0d492e806bef8d22a974b02db14162177a5ec3 | 512a1d6495869dcec5cb0f92483e4740c349b9ef | /revscoring/languages/space_delimited/__init__.py | ff2ae17ae49e1e9c19d82c4a9f86ec11d904a9fe | [
"MIT"
] | permissive | ewulczyn/revscoring | d294b0c86b4e85f210a1f1a00e107893adcb3d4e | 3a7e3cc5ba27fe0cec62c061c08489550ba8096e | refs/heads/master | 2020-12-30T21:42:08.197156 | 2015-12-23T04:18:58 | 2015-12-23T04:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | """
.. autoclass:: revscoring.languages.space_delimited.SpaceDelimited
"""
from .space_delimited import SpaceDelimited
__all__ = [SpaceDelimited]
| [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
2ad5a64103371327b62d06ade1b00e360ec34b63 | 4f510470b3093ab2c60f929221af82c79b121ca7 | /ML/SCIENCE/day07/filter.py | ad62eb2b1306ef010b3846a1ef4d4f35f2804748 | [] | no_license | q737645224/python3 | ce98926c701214f0fc7da964af45ba0baf8edacf | 4bfabe3f4bf5ba4133a16102c51bf079d500e4eb | refs/heads/master | 2020-03-30T07:11:17.202996 | 2018-10-30T06:14:51 | 2018-10-30T06:14:51 | 150,921,088 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import numpy as np
import numpy.fft as nf
import scipy.io.wavfile as wf # 用来读取wav文件
import matplotlib.pyplot as mp
sample_rate, noised_sigs = wf.read(
'../data/noised.wav')
print(sample_rate)
print(noised_sigs.shape)
print(noised_sigs.dtyp... | [
"764375224@qq.com"
] | 764375224@qq.com |
7b7a9594bde8fd27a8f977cd70136286c78d2279 | 9f5ec0afcd24b8e22b82c912ad7e6d4d9a4afc7c | /scripts/anagram.py | bd9a3f2b88812ec8eb04c65f8e515721a6293b65 | [] | no_license | Angelica137/AnagramPython | 6a51672f71961fbdf873b861eb522627e4c514a5 | 4bafcac2f60b0652320561088d21577e58bf233d | refs/heads/main | 2023-06-11T23:59:45.430464 | 2021-07-09T21:37:50 | 2021-07-09T21:37:50 | 380,818,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | def findAnagram(str, arr):
anagrams = []
for item in range(len(arr)):
if len(arr[item]) == len(str):
sorted_item = sorted(arr[item])
sorted_str = sorted(str)
if sorted_item == sorted_str:
anagrams.append(arr[item])
return anagrams
| [
"Angelica137@users.noreply.github.com"
] | Angelica137@users.noreply.github.com |
4bccc69ad21ca874c6040662089e9b4790183327 | d9955a186b627105e4f606350a942c4fc7ae1fc4 | /inference/InferenceEngine.py | f0ed785c167f9c90dc619f6ac7f86be20a3a3360 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Statici/quantum-fog | ddbf5ea0d982866693f29afd2986ad989be052a5 | 92e1d2a38de92422642545623341ecd9cfb7a39f | refs/heads/master | 2021-01-20T00:46:49.969745 | 2016-08-22T23:50:27 | 2016-08-22T23:50:27 | 64,971,623 | 2 | 0 | null | 2016-08-22T20:36:16 | 2016-08-04T22:35:52 | C++ | UTF-8 | Python | false | false | 1,264 | py | # Most of the code in this file comes from PBNT by Elliot Cohen. See
# separate file in this project with PBNT license.
# from BayesNet import *
class InferenceEngine:
"""
This is the parent class of all inference engines.
Attributes
----------
bnet : BayesNet
do_print : bool
is_quantum ... | [
"tucci@ar-tiste.com"
] | tucci@ar-tiste.com |
b109cbb3b59ba24f923465bbc7ca9f7804513284 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/test/test_v1_self_subject_rules_review_spec.py | 19847b247308a28c7283a7ff6b81087ee9af682a | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
b98a1b34a7ad00f4597be6d2f690523fdcb9a5cb | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/enabled/_1020_overview_physical_monitor.py | 952cafdc5166fc655ad0ff6d441507a9a0639d70 | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # 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, software
# distributed under the... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
cf68174ebbfb082a395c8ad1f2109ffa4b39f19c | 99aa3c8b292849013200c1af38b6b8e8accd6a27 | /backend/lib/qn.py | c0914a01fc383a051b509547d89bfe1f52392915 | [
"Zlib"
] | permissive | LiangTang1993/Icarus | 368e38bcd2cde72b0a3b546648de0a8896685d88 | c3a4af0f98693a08b850b47ff01091c4e884cc18 | refs/heads/master | 2023-02-23T07:58:44.288959 | 2021-01-23T12:01:05 | 2021-01-23T12:01:05 | 257,802,623 | 1 | 0 | Zlib | 2021-01-23T12:01:06 | 2020-04-22T05:39:00 | null | UTF-8 | Python | false | false | 2,105 | py | import json
import time
import qiniu
import config
q = None
def init():
global q
q = qiniu.Auth(config.UPLOAD_QINIU_ACCESS_KEY, config.UPLOAD_QINIU_SECRET_KEY)
def get_token(user_id=None, type_name=None):
"""
:param user_id:
:param type_name: None, avatar
:return:
"""
if not config... | [
"fy0@qq.com"
] | fy0@qq.com |
8e375c6bc87cb68b0d562ea945ee7f399c35ad21 | d224a781d02a24a2594c7bb9c1c9bb990735f8a8 | /MuMu/test/escale/scaleFitMcTrue.py | 3157b6c28a8843c3e7609acceef8c0fc3f443a96 | [] | no_license | janveverka/JPsi | 0d5cd36f9410aa651d6143cb527e4bce13c48d2b | 14efc5a6f18f36f4eb46f4f1dad748a0fb480aa9 | refs/heads/master | 2021-01-18T17:25:04.545379 | 2014-03-06T15:11:14 | 2014-03-06T15:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | import copy
import os
import re
import JPsi.MuMu.common.dataset as dataset
import JPsi.MuMu.common.energyScaleChains as esChains
from JPsi.MuMu.common.basicRoot import *
from JPsi.MuMu.common.roofit import *
from JPsi.MuMu.common.plotData import PlotData
from JPsi.MuMu.common.binedges import BinEdges
from JPsi.MuMu.sc... | [
"jan.veverka@gmail.com"
] | jan.veverka@gmail.com |
384fa5a003ab2be5f14e03715733dc363b158e38 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/atag/sensor.py | 88ccbdc899ff29505cb1a5b11adef88814af021f | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 2,145 | py | """Initialization of ATAG One sensor platform."""
from homeassistant.components.sensor import SensorEntity
from homeassistant.const import (
DEVICE_CLASS_PRESSURE,
DEVICE_CLASS_TEMPERATURE,
PERCENTAGE,
PRESSURE_BAR,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
TIME_HOURS,
)
from . import DOMAIN, AtagEnti... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
26a7005a6374506fcbe9be9f99e524001f7e608b | 5ada3fcf4dea8f38765529f2c8e73afcdf912a0e | /realestate/realestate/doctype/realestate_partner/realestate_partner.py | df469c2d0b32f28e927b257210bbc0dcb3fc80bc | [
"MIT"
] | permissive | Sysanaung/realestate | 7177ce8d58c3840030f791638e890624d92bac79 | 1533bade2e9ba66925da0688c8e6a511b80b4806 | refs/heads/master | 2022-11-07T04:29:28.999987 | 2019-07-17T11:39:45 | 2019-07-17T11:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Jigar Tarpara and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class RealEstatePartner(Document):
def validate(self):
if not self.shareholder:
self.cre... | [
"jigartarpara68@gmail.com"
] | jigartarpara68@gmail.com |
a9d4da40f962bdf1b01c3cab68f4e776d07fc0ce | d67de89260ea46ed62546b657d2087da3aa04b1d | /hr37_pagecount.py | 6fd22ea5b6ad1b480424b785dfd6783c33269ea7 | [] | no_license | jefinagilbert/problemSolving | 534455fd2df56e8a12744571ab24a0254d85d336 | 9f3d165866dd82a9b08119e65f2eeb66bae3c434 | refs/heads/main | 2023-06-14T15:17:58.938962 | 2021-07-10T18:02:30 | 2021-07-10T18:02:30 | 366,144,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def pageCount(n, p):
llist = []
f = 0
l = 0
for i in range(n+1):
if i%2 == 0:
llist.append([i,i+1])
print(llist)
for i in range(len(llist)):
for j in range(2):
if llist[i][j] == p:
break
if llist[i][j] == p:
break
f += 1
for i in reversed(range(len(llist))):
for j in range(... | [
"noreply@github.com"
] | jefinagilbert.noreply@github.com |
51b7ac64c13348c0d1e6d7792b7a763459c523dd | 8fd28b248511f42ad8732ca1e574aada33908376 | /tools/data/activitynet/activitynet_feature_extraction.py | ca49030b1f8d61e83d791f720f00c7f9bf64018e | [
"Apache-2.0"
] | permissive | vt-vl-lab/video-data-aug | 28bd175535cab1444055502389c8f5d7d75e4bd2 | 01667cdbd1b952f2510af3422beeeb76e0d9e15a | refs/heads/main | 2023-09-01T02:36:40.034893 | 2021-07-21T01:31:42 | 2021-07-21T01:31:42 | 352,920,339 | 29 | 6 | Apache-2.0 | 2021-07-21T01:29:36 | 2021-03-30T08:06:54 | Jupyter Notebook | UTF-8 | Python | false | false | 3,172 | py | import argparse
import multiprocessing
import os
import os.path as osp
import numpy as np
import scipy.interpolate
from mmcv import dump, load
args = None
def parse_args():
parser = argparse.ArgumentParser(description='ANet Feature Prepare')
parser.add_argument('--rgb', default='', help='rgb feature root')
... | [
"zouyuliang123@gmail.com"
] | zouyuliang123@gmail.com |
6308edbe3499a2f7e3f32b7d47e39e54a060541c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_354/ch121_2020_09_30_20_23_29_250621.py | 8e65d0644cab5e9c5511ffdf2df2daca2d613729 | [] | 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 | 168 | py | def subtracao_de_listas(lista,lista_2):
x=[]
i=0
while i<len(lista):
if lista[i] not in lista_2:
x.append(lista[i])
i+=1 | [
"you@example.com"
] | you@example.com |
94993e2f199013b9d5171162aca032c3c92318b2 | 2c32cf726e111b8625265c458feeaea436652e83 | /Dequeue SlidingWindow 2Pointers/longest-substring-ditct.py | 188b786a14f2aa4233bebf7de7800d27e83f7a6e | [] | no_license | minhthe/practice-algorithms-and-data-structures | 6fa3bf98e8e2fe98f4e32419fb797b1df4400364 | 488a82dd3a0c797859a6c9e1195d6d579d676073 | refs/heads/master | 2021-05-16T23:01:20.026475 | 2020-09-23T04:17:13 | 2020-09-23T04:17:13 | 250,505,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | '''
https://leetcode.com/problems/longest-substring-without-repeating-characters/
'''
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
n= len(s)
i, j = 0, 0
mp= {}
rst = 0
while j < n :
if s[j] in mp :
if mp[s[j]] >= i:
... | [
"minhthe.007@gmail.com"
] | minhthe.007@gmail.com |
4d4138236173a28fb7ee5d33f4886b2c6e65e352 | 8f61d6ae3a80eb6c6d45aab55d9e73df402446fe | /kate3/tick/views/pages.py | e21cbce516d4c67768652b2a9fae0717fcc254a7 | [
"MIT"
] | permissive | katemsu/kate_website | 2047314598e215b0e8b3d3d71b21b4c70df36213 | 9e6912156fe7ce07a13f54009ff1823b3558784d | refs/heads/master | 2021-01-16T20:25:16.264407 | 2013-11-02T20:14:40 | 2013-11-02T20:14:40 | 14,073,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import locale
from django.shortcuts import render_to_response
from django.template import RequestContext
from tick.forms.search import FullSearchForm
from tick.models import Announcement, Notice, Resource
def index(request):
if request.GET.has_key('keyword'):
form = FullSearchForm(request.GET)
else:
... | [
"smizell@gmail.com"
] | smizell@gmail.com |
181f0fbc190ed9f3ca1a01fc34fb4a24065c5c74 | 9dfb3372a1e4516d970a6e9d0a9fd8360580eae7 | /python pySerial/recod_data.py | 8115b2f04ac3935e59eb5c92a1782fec05d6cf85 | [] | no_license | clambering-goat/cameron_pyton | d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c | df0b0365b86e75cfcfc2c1fc21608f1536a3b79f | refs/heads/master | 2021-07-14T20:37:37.021401 | 2019-02-28T07:52:11 | 2019-02-28T07:52:11 | 137,251,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import serial
fire=open("data_logg pot","w")
with serial.Serial('COM5', 115200, timeout=2) as ser:
while 1 :
line =ser.readline()
try:
print(line)
x=line.decode("utf-8")
print(x)
#number= int(x[0])
#print(number+5)
fire.writ... | [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
753834b7599898d89d18a2e02d6f483fe8286888 | db891dc74972e7ccf2ad1a8dabe8de5cbb93c024 | /honduras_invoices/models/financial_res_percent.py | da2a07095fdf493a5335862d707b2a9b50ff3eed | [] | no_license | LuisMalave2001/GarryTesting | 2a439b1ad6d1216f64e3e766028750a0bc9e4db0 | f83efeb54e22313e8b533036ff4a5befa5d3a59b | refs/heads/main | 2023-05-04T06:54:17.069804 | 2021-05-25T13:41:22 | 2021-05-25T13:41:22 | 336,295,640 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class FinacialResponsabilityPercent(models.Model):
_name = "honduras_invoices.financial.res.percent"
_description = "Realted model to finance responsabilty"
partner_id = fields.Many2one("res.partner", string="Customer", domain=[("is_family", "=... | [
"LuisAngelMalaveMora@gmail.com"
] | LuisAngelMalaveMora@gmail.com |
70910c24b69d0d292914de5bafbc50249e53430a | 6268a19db5d7806b3a91d6350ec2777b3e13cee6 | /old_stuff/code/mlcv_exp_04/setup/list_eyth_bbox.py | d1e638d1397bd41847958a02070ca19a967950e5 | [] | no_license | aaronlws95/phd_2019 | 3ae48b4936f039f369be3a40404292182768cf3f | 22ab0f5029b7d67d32421d06caaf3e8097a57772 | refs/heads/master | 2023-03-22T14:38:18.275184 | 2021-03-21T11:39:29 | 2021-03-21T11:39:29 | 186,387,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import sys
import numpy as np
from pathlib import Path
from tqdm import tqdm
sys.path.append(str(Path(Path(__file__).resolve()).parents[1]))
from src import ROOT
from src.utils import *
def list_eyth_bbox():
img_root = Path(ROOT)/'datasets'/'eyth_dataset'
train_bbox_list = []
val_bbox_list = []
t... | [
"aaronlws95@gmail.com"
] | aaronlws95@gmail.com |
2b76ff04dbf7f5cecbc35d380272ebd9d4a8c375 | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_metadata_service_query_artifact_lineage_subgraph_sync.py | e703c3aca28bc9594604c0ddde2ea92e49a58f6a | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
182f3d3394c13b1ca271c3d46b89c5c1a8924f4e | 22bcb68759d516eea70d18116cd434fcd0a9d842 | /scrap/indiaplaza_mobiles_scrap.py | aae94f98723536b182ea318ce9c69b0a404817ab | [] | no_license | lovesh/abhiabhi-web-scrapper | 1f5da38c873fea74870d59f61c3c4f52b50f1886 | b66fcadc56377276f625530bdf8e739a01cbe16b | refs/heads/master | 2021-01-01T17:16:51.577914 | 2014-10-18T15:56:42 | 2014-10-18T15:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,880 | py | import downloader
import dom
import re
import urllib2
import math
import datetime
import pymongo
import requests
import sys
siteurl='http://www.indiaplaza.com'
dl=downloader.Downloader()
dl.addHeaders({'Origin':siteurl,'Referer':siteurl})
if len(sys.argv)>1:
proxy={'http':sys.argv[1]}
else:
proxy={'http':'92.6... | [
"lovesh.bond@gmail.com"
] | lovesh.bond@gmail.com |
e141c74f463c7c6d63d3321d328ca9745c3e4756 | aabd50c4ee53c97d33daaf6240f3a26a5e4f61c5 | /src/274.h-index.py | 47ae94d8cfdb198f71a236073076867e3e088435 | [
"MIT"
] | permissive | wisesky/LeetCode-Practice | 6d955086803c9dffa536c867f9e889af12bbcca5 | 65549f72c565d9f11641c86d6cef9c7988805817 | refs/heads/master | 2021-12-15T22:33:14.140804 | 2021-12-06T09:26:42 | 2021-12-06T09:26:42 | 188,990,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | #
# @lc app=leetcode id=274 lang=python3
#
# [274] H-Index
#
# https://leetcode.com/problems/h-index/description/
#
# algorithms
# Medium (36.63%)
# Likes: 978
# Dislikes: 1578
# Total Accepted: 209.1K
# Total Submissions: 569.5K
# Testcase Example: '[3,0,6,1,5]'
#
# Given an array of integers citations where ci... | [
"wisesky1988@gmail.com"
] | wisesky1988@gmail.com |
2eb91786a782bff5522dde86e862095d33a68bcf | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1719708/homework01/program01.py | 0da1cb303e2e24f07abf1255c1a5385a203cdcf3 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from math import sqrt
def modi(ls, k):
numeri_primi = []
for i in range(len(ls)-1, -1, -1):
if ls[i]%2:
divisori = dividi_dispari(ls, ls[i], k)
else:
divisori = dividi(ls, ls[i], k)
numeri_primi = primi(divisori, numeri_primi, ls[i])
delete(divisori, k, ls, i)
return numeri_primi
def dividi(ls, i... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
c3a739e44490170fa9fa12ee27486ee8cd5250c9 | e6c0683afc2a3d48ada10ffa9f7d257e7c64589e | /purity_fb/purity_fb_1dot6/models/alert_watcher_response.py | aed12f53706b8c1cc4220336ba9c68a9a3ac03c6 | [
"Apache-2.0"
] | permissive | unixtreme/purity_fb_python_client | 9a5a0375f4505421974aadc674ed04982c2bf84f | e836afe9804ffa99f74bf4b5202f181c3c04d9df | refs/heads/master | 2020-04-24T14:53:56.977344 | 2019-02-22T12:37:45 | 2019-02-22T12:37:45 | 172,042,713 | 0 | 0 | NOASSERTION | 2019-02-22T10:05:44 | 2019-02-22T10:05:44 | null | UTF-8 | Python | false | false | 4,206 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.6), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.6
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
7a437e033fa374701948c46eed2ab67e87f8d419 | bc0c3598eb9d78962a67b3c15f930c24919f4277 | /pykalman/tests/test_unscented.py | 2dae7841b2046c0b4e0795198f8fbafc3b447c06 | [
"BSD-3-Clause"
] | permissive | gtfierro/pykalman | 3515ce78e1e4a753442225923c8c614ff4647c43 | 6208109585eb3d7a68ef0cf4d524c9c60c8a0c9b | refs/heads/master | 2020-12-25T08:38:26.821391 | 2012-10-28T23:55:26 | 2012-10-29T00:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,563 | py | import inspect
import numpy as np
from numpy import ma
from numpy.testing import assert_array_almost_equal
from nose.tools import assert_true
from pykalman import AdditiveUnscentedKalmanFilter, UnscentedKalmanFilter
from pykalman.datasets import load_robot
data = load_robot()
def build_unscented_filter(cls):
... | [
"duckworthd@gmail.com"
] | duckworthd@gmail.com |
e61fdb0f57c7b67676b9c5468a45e6b8c5f7dea7 | fa76868608739eb514c7bf9cb3be6ca1a0283409 | /l6-threading+mulitprocessing/lesson/examples/03_queue_proc.py | 2c7d0c4e5bd56bcdef0e6333fc0767299c0fa076 | [] | no_license | k1r91/course2 | efa4b200f19798275251d1b737613cf4560e3f47 | a4b0413030e17d37406feb8f58314356e3ab15e3 | refs/heads/master | 2021-08-16T04:04:26.796036 | 2018-10-23T17:04:54 | 2018-10-23T17:04:54 | 135,111,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py |
# ----------------- Пример работы с очередью в процессах -----------------------
# Модуль multiprocessing поддерживает два основных способа взаимодействия процессов:
# каналы и очереди. Оба способа реализованы на основе механизма передачи сообщений.
# Интерфейс очередей очень близко имитирует интерфейс очередей ... | [
"cherkasov.kirill@gmail.com"
] | cherkasov.kirill@gmail.com |
dfe036a346baca08e61fdadb0ecfc8241c735f87 | 71946cf7e285a74b087f316170fe1f3dbb8d0247 | /nscms/contrib/block/migrations/0001_initial.py | c357dda7b5a0328f0079af222cced4826e2ccd87 | [] | no_license | mauler/nscms | 8964e8113351676dc5ebf1d7ecb0622c5c434640 | 5795f568880c7b11f12291d7d9e2581f0d1cd46d | refs/heads/master | 2020-06-06T09:19:16.946139 | 2015-02-27T01:21:12 | 2015-02-27T01:21:12 | 2,143,897 | 7 | 1 | null | 2018-03-05T17:25:23 | 2011-08-02T17:20:10 | Python | UTF-8 | Python | false | false | 2,538 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Block'
db.create_table(u'block_block', (
(u'id', self.gf('django.db.models.field... | [
"proberto.macedo@gmail.com"
] | proberto.macedo@gmail.com |
2033278f83428fd33d99bcde8ccdb8499a3de1a7 | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/2178. Maximum Split of Positive Even Integers/Solution.py | 1a44f60aa79a70660a191dfec9b2b6491ab1eb45 | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | class Solution:
def maximumEvenSplit(self, finalSum: int) -> List[int]:
# Time and Space Complexity: O(Q)
# Where Q is the size of the answer set
# we have: 1 + 2 + ... + Q < N
# Q(Q + 1) / 2 < N
# So Q = O(sqrt(N))
# Greedy proof: use exchange argument
if ... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
6b0a838181c5dcde7650fc4f985f44642c95a368 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03045/s270042593.py | a238e994b0b00351659646b271892c76285cdedc | [] | 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 | 817 | py | class UnionFind():
def __init__(self, n):
self.n = n
self.parents = [-1]*n
def find(self, x):
if self.parents[x] < 0:
return x
else:
self.parents[x] = self.find(self.parents[x])
return self.parents[x]
def union(self, x, y):
x ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
487e3f8a3d1c94d9bd44e46c17e6fb0a73e57dc9 | 4684afb5a2fc22e9a08681c11618aaadc1332ac7 | /scrape.py | f1ffe4f2f73519e2a952506a4a6ff7697c39b782 | [] | no_license | cinger007/scraperwikiscraper | 602df42fbe56937adbba94723ea4eb3e6eef6983 | 167de4ba8c2d966540f5ab3c02a92b9b744802df | refs/heads/master | 2020-06-05T17:31:39.553411 | 2012-03-13T03:33:25 | 2012-03-13T03:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | import scraperwiki
try:
swutils = scraperwiki.utils
except AttributeError:
import gasp_helper
else:
swutils.swimport("gasp_helper")
API_KEY = '' # sunlight api key here
BIOGUIDE_ID = '' # bioguide id here
gasp = gasp_helper.GaspHelper(API_KEY, BIOGUIDE_ID)
| [
"twneale@gmail.com"
] | twneale@gmail.com |
106014fbf30bb841dfd2f73b0e88623015aa5a57 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /czLhTsGjScMTDtZxJ_17.py | f64a6b297b19b1ee24ac164ac7d57b03bf080afa | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py |
def primorial(n):
L = []
i =2;
while len(L) != n:
if isPrime(i):
L.append(i);
i+=1;
else:
i+=1;
res = 1;
for i in L:
res *= i;
return res;
def isPrime(X):
if X<=1:
return False
C=0;
n = 1;
while n<X+1:
if X % n ==0:
C+... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c706787b3533642049b19e4f9b489e4ce9a45563 | 401f8b9b137f5f99cfeff3d63eb5a1fb619df2b4 | /tests.py | c8dddb4a3c57716dc71024eba93f25b3e8c771dd | [] | no_license | goodtune/pypin | bacfe14033bc16bf9aa69a0861330ed14e960b78 | 93cc447f929c5bc4e5fa375022426b8c4bbaa2b8 | refs/heads/master | 2023-04-10T17:50:13.640735 | 2013-06-29T01:02:02 | 2013-06-29T01:02:02 | 11,039,863 | 0 | 0 | null | 2023-03-16T12:48:18 | 2013-06-28T22:32:51 | Python | UTF-8 | Python | false | false | 478 | py | import os
import pypin
import unittest2 as unittest
class SimpleTest(unittest.TestCase):
def setUp(self):
api_key = os.environ.get('API_KEY', '')
self.api = pypin.API(api_key=api_key, debug=True)
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
""... | [
"gary@touch.asn.au"
] | gary@touch.asn.au |
28d133235f6c9ecf29f44cb0390a5b2b9cf713a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02813/s470897253.py | 09dcaa047890a2daf5941bee75dd3d46acc8c6e7 | [] | 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 | 718 | py | import itertools # accumulate, compress, permutations(nPr), combinations(nCr)
# import bisect # bisect_left(insert位置), bisect_right(slice用)
import math # factorical(階乗) # hypot(距離)
# import heapq
# from fractions import gcd # Python3.5以前 # lcm(最小公倍数) = (a*b)//gcd(a,b)
# from fractions import Fraction
# fr... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c01ef0275c9f1c8ff27ea3988bf8ef973424588e | 0afd765c0a3c06e6c893782fc8bd9d5bd4eac20d | /synchronized_ppo_cnn_ubuntu/action_group.py | 0c15e88118153b1db11c6d6573da07659fbff266 | [] | no_license | chagmgang/synch_pysc2 | fdcb2bbb36c81af6ac2c31183b02f26aee33d739 | 57ca1e533446b1ed61c4d3d432d47d293148b6be | refs/heads/master | 2020-03-19T15:40:24.573995 | 2018-07-02T05:36:35 | 2018-07-02T05:36:35 | 136,680,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import sys
from absl import flags
from pysc2.env import sc2_env
from pysc2.lib import actions, features
import matplotlib.pyplot as plt
import numpy as np
# Define the constant
_PLAYER_RELATIVE = features.SCREEN_FEATURES.player_relative.index
_UNIT_TYPE = features.SCREEN_FEATURES.unit_type.index
friendly =... | [
"chagmgang@gmail.com"
] | chagmgang@gmail.com |
46f2f310fbc0c07fadacd6eba2c75cad0fb40d84 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/classicchars/DistributedWitchMinnieAI.py | 4c22d30c5313eefaf317368a95e2b72b7fc9b58e | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from direct.directnotify import DirectNotifyGlobal
from toontown.classicchars.DistributedMickeyAI import DistributedMickeyAI
class DistributedWitchMinnieAI(DistributedMickeyAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedWitchMinnieAI') | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
0a210420d6cd53cbe71c9fa1b58c31264153cd56 | f3b233e5053e28fa95c549017bd75a30456eb50c | /jnk1_input/U24/24-34_wat_20Abox/set_3.py | 48123a4bd5e0dbd1a508f8cf4cec9332df7af81c | [] | 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 | 739 | py | import os
dir = '/mnt/scratch/songlin3/run/jnkl/L124/wat_20Abox/ti_one-step/24_34/'
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 lamb... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
353d08b11d2294b2637451f68d6092ee7a1dfa06 | 40e7f2734676250b985cd18b344329cea8a7c42b | /smoke-tests/images/servlet/src/main/docker/websphere/changePort.py | 4f71d65c355072fc4a1cc8f3ffebdb1ad070ecde | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-java-instrumentation | d6f375148715f8ddb2d4a987c0b042cb6badbfa2 | b0a8bd4f47e55624fb3942e34b7a7051d075f2a5 | refs/heads/main | 2023-09-01T15:10:10.287883 | 2023-09-01T08:07:11 | 2023-09-01T08:07:11 | 210,933,087 | 1,349 | 689 | Apache-2.0 | 2023-09-14T18:42:00 | 2019-09-25T20:19:14 | Java | UTF-8 | Python | false | false | 391 | py | # change port from 9080 to 8080
AdminTask.modifyServerPort('server1', '[-nodeName ' + AdminControl.getNode() + ' -endPointName WC_defaulthost -host * -port 8080 -modifyShared true]')
# add new port to default virtual host
AdminConfig.create('HostAlias', AdminConfig.getid('/Cell:' + AdminControl.getCell() + '/VirtualHos... | [
"noreply@github.com"
] | open-telemetry.noreply@github.com |
aabdfe6aa6b3e2795f6bcab7b42f5b3edcb31599 | 7c79c8caee77d08aa05cdc59eb68e569abf54a7e | /ics 33/solutions/ile2 solutions/Lab 6/ReidShaun/poly.py | c6142207221e50a778d34680fa7347d392ca47ab | [] | no_license | solomc1/python | 2e4715cc24e7b23d91c879fc95954f615a615982 | 119e388fb6f4ab42f581e48393919d4052a08ef6 | refs/heads/master | 2021-01-17T16:48:02.671810 | 2016-07-29T05:27:50 | 2016-07-29T05:27:50 | 64,452,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | class Poly:
def __init__(self,*terms):
# __str__ uses the name self.terms for the dictionary of terms
# So __init__ should build this dictionary from terms
self.terms = {}
for v,k in terms:
assert type(v) in [int, float],"Poly.__init__: Coefficient must be an ... | [
"solomc1@uci.edu"
] | solomc1@uci.edu |
a6cabcb9ea1e73f3bab049fdcd298ff5eb732bd9 | ef2cb8b5296f560e0fa23250235513c7c4880f20 | /generate/oogenerateDetectors.py | 84028662fc1ec0b13d49725f54dfcc35c0c6a7e6 | [] | no_license | yetkinyilmaz/TrackML2D | d34a22d63c8ba9af13a12074163155458db84913 | 9ae81faa25a5f3d8f1413cb01611674cbb421f49 | refs/heads/master | 2021-06-10T07:49:43.309911 | 2017-01-20T15:52:51 | 2017-01-20T15:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | #!/usr/bin/env python2.7
# oogenerateDetectors.py
# Thomas Boser
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from sympy.geometry import Circle, Point
class Detector:
""" detector constructor """
def __init__(self, radius):
... | [
"yetkin.yilmaz@cern.ch"
] | yetkin.yilmaz@cern.ch |
82edb1c36c41bd2877809c3495a9a0871547f5e0 | 56af421807d628ef95736cf2fff28157d5e380fe | /backend/urls.py | 1fb986d395fb35a29f0048245be54337cd7ae42f | [] | no_license | ramesharun/docker-django-react-postgres | 9d80a06ad47b9d095717bab65c880cab04f775a1 | ae363e6e0bd769bd9ea5b4e5842497fef6c913cb | refs/heads/master | 2022-12-25T23:12:28.025637 | 2020-10-15T11:57:43 | 2020-10-15T11:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django.urls import path, include
from rest_framework import routers
from . import views
# create router for backend api
apiRouter = routers.DefaultRouter()
apiRouter.register(r'users', views.UserViewSet)
apiRouter.register(r'groups', views.GroupViewSet)
# urls provided by the backend
urlpatterns = [
path('a... | [
"bharathjinka09@gmail.com"
] | bharathjinka09@gmail.com |
e87cab3914d1e206d7e9ea8d3424146277a31569 | ea727658bb22df6dd0a4d8aaff5d13beec8ec8b5 | /examples/大數據資料分析/範例程式/第06章/program6-1.py | adae6ac9820afd93a006db32a3581de23611daca | [] | no_license | kelvinchoiwc/DataScience_1082 | f8e31c230776f45d70f6b96ef81d16881118e453 | 199f915540afe6c9a9ec7055aac5911420d783be | refs/heads/master | 2023-07-24T04:29:01.763893 | 2021-09-01T12:33:21 | 2021-09-01T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import random
def rand(n):
for i in range(1, n+1):
rn = random.randint(1, 100)
if i % 10 == 0:
print('%4d'%(rn))
else:
print('%4d'%(rn), end = ' ')
def main():
num = eval(input('Enter num: '))
rand(num)
main() | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
929e3e0b42ff91c77e3e0b8035ac87c503ce9a0f | 2a1059be149fb2eb01e0d12a98752ecccada20a6 | /A_closure_decorator/05_装饰器引入.py | fbd786b2c8d868b33d2b37b74a604ccf2a664ab0 | [] | no_license | Jhon-Chen/Code_Practice | 0796c0eb4f3e4ba82e6da9cd5dd19afb5ccec51d | e4bfa900b95764880e2ca2fcfb0389113f570147 | refs/heads/master | 2022-12-11T10:02:14.895722 | 2019-09-08T01:46:32 | 2019-09-08T01:46:32 | 186,768,893 | 0 | 1 | null | 2022-12-08T02:34:33 | 2019-05-15T07:06:10 | Python | UTF-8 | Python | false | false | 264 | py | # 第一波
def foo():
print("foo")
foo()
# 第二波
def fool():
print("fool")
fool = lambda x: x + 1
# 这一句只会执行lambda表达式,而不再是原来的fool函数了,因为fool已经被重新指向了一个匿名的函数
print(fool(5))
| [
"17368089403@163.com"
] | 17368089403@163.com |
a71c8b2923712f909b66fffb0f36142d25d52f6d | 4cdde9df324e1e528d4440a34f5e6bbcdf4b8ed2 | /PythonAssignments/p14/p14p3.py | 282c15b07c0e795a4e726a953f66a7af955181f4 | [] | no_license | enxicui/Python | e2254c2f941bb51b402df852668777ad174878e2 | 3ea8251cd61b995e6f08ff5a906181ca7dc4f1ce | refs/heads/master | 2020-12-09T09:29:59.369488 | 2020-01-11T16:48:47 | 2020-01-11T16:48:47 | 233,263,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | '''
pseudocode
for number between 2 to 20:
for i in between 2 to number::
if number % i = 0:
output number, 'equals', i, '*', number//i
break
endif
else:
print(number, 'is a prime number')
end for
endfor
output 'Finished!'
'''
#
# Program to illustrate the us... | [
"noreply@github.com"
] | enxicui.noreply@github.com |
1abb33a3fd4ed487a225db01117f7757070b52dc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /zoJeCZCgmA8pS2iAi_14.py | 64eb36321ba9c4dd18e151696f676657959d34f4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | """
Create a function that takes a list of functions and sorts them in ascending
order based on how many calls are needed for them to return a non-function.
### Examples
f1 = lambda: "hello"
# f1() ➞ "hello"
f2 = lambda: lambda: "edabit"
# f2()() ➞ "edabit"
f3 = lambda: lambda: lambda... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1e25413c147f801ab769e704fd331e6a52fd67bc | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/shared/tooltips/marathon.py | 55d7280f7102b6a13164c7e410b77940e427563f | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 4,655 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/tooltips/marathon.py
from CurrentVehicle import g_currentVehicle
from gui import makeHtmlString
from gui.marathon.marathon_constants import MARATHON_STATE, MARATHON_WARNING
from gui.shared.formatters import text_styles, i... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
078a35e55329cd7252f81fd90c8499201bd61398 | 7f6348437a68aef1035824e3c2ac7476e81cf5f0 | /Linked List/remove-nth-node-from-list-end.py | 3c285594d35466a935fd2c69b950ea9f1e8fae53 | [] | no_license | wilfredarin/Interviewbit | eff18ce504a2178dbed0441f9b43df51f0a34dd1 | a13de501db6e0af9d58936ffa9abdd9eebc7578d | refs/heads/master | 2023-01-27T15:36:11.726563 | 2020-12-10T15:09:14 | 2020-12-10T15:09:14 | 233,567,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | def removeNthFromEnd(self, A, B):
temp = A
c = 0
prev = None
Next = None
while temp:
temp = temp.next
c+=1
if c==1:
return None
if c<=B :
temp = A
Next = temp.next
temp = None
ret... | [
"noreply@github.com"
] | wilfredarin.noreply@github.com |
d6a9ebc28418cacc04b94912ffdc61dcd9a95643 | 2b776f6420af6400120bf08c801159870dbd1ec6 | /astra4.py | fb7b08866d8ca0b3264a36bd9810f6182b4a5462 | [] | no_license | ManojDjs/wescraping | b7dcd0423fa5ba44f38b332afc4540e49d309b75 | fa3ae90f35e07b0ff06037673c50e47e42633900 | refs/heads/master | 2022-01-31T23:19:53.311009 | 2019-07-22T14:51:13 | 2019-07-22T14:51:13 | 191,214,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | import time
from selenium import webdriver
import pymongo
from selenium.webdriver.common.keys import Keys
from pymongo import MongoClient, DESCENDING
from flask import Flask, jsonify
import requests
from pymongo import MongoClient
app = Flask(__name__)
@app.route('/')
def success():
client = MongoClient(... | [
"noreply@github.com"
] | ManojDjs.noreply@github.com |
8bf2e084ba8374c5757eab9c5e6fb265259933f2 | f9e72443eb81e33b47afc32b025ac5fbec914aa0 | /Code/Visualization/TheNatureOfCode/noc_1_3_vectormath.py | bdb39ffbced9e6b2352d5e9e8499674e06c430be | [
"MIT"
] | permissive | samsanket/TeachingDataScience | 568c2a468dff575eed71a80d62156c092cc2aa48 | 2ddf18ff7d0657e0571cab8f43175b23c5e6fd87 | refs/heads/master | 2023-06-04T18:58:19.762306 | 2021-06-20T02:04:47 | 2021-06-20T02:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | # The Nature of Code - Daniel Shiffman http://natureofcode.com
# Example 1-3: Vector Math
# PyP5 port by: Yogesh Kulkarni
# Adpoted from processing.py based implementation at:
# https://github.com/nature-of-code/noc-examples-python/blob/master/chp01_vectors/NOC_1_3_vector_subtraction
# https://github.com/nature-of-code... | [
"yogeshkulkarni@yahoo.com"
] | yogeshkulkarni@yahoo.com |
863d79f9526beea090b0d748cb2dc8f654157221 | a88664c77a606a6d2fcf47999805c226c514d111 | /test/integration/elastic_db_repo/disk_usage.py | 6ce82a8ea832165fe9868f80aa3c46057b44a91d | [
"MIT"
] | permissive | deepcoder42/elastic-repo | f10316aa41b927085935ee9d07ff491286d04f20 | 052a7041e45aec2fd2b6ff31a597c47edf2b3fec | refs/heads/master | 2023-03-21T03:03:24.916324 | 2021-03-14T21:19:29 | 2021-03-14T21:19:29 | 347,756,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | #!/usr/bin/python
# Classification (U)
"""Program: disk_usage.py
Description: Integration testing of disk_usage in elastic_db_repo.py.
Usage:
test/integration/elastic_db_repo/disk_usage.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
import shutil
import t... | [
"deepcoder42@gmail.com"
] | deepcoder42@gmail.com |
f4ba95db8bc42bc20b617620aa2acc8788c55a23 | d61183674ed7de0de626490cfba77d67c298d1be | /py_scripts/plot_nca_illustration.py | 121c1976856946c3c69e9d52d1aac36e257859f1 | [] | no_license | Giannos-G/python_dataset | bc670a53143d92cf781e88dee608da38b0e63886 | 18e24cbef16ada1003a3e15a2ed2a3f995f25e46 | refs/heads/main | 2023-07-25T20:24:31.988271 | 2021-09-09T10:31:41 | 2021-09-09T10:31:41 | 363,489,911 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | """
=============================================
Neighborhood Components Analysis Illustration
=============================================
This example illustrates a learned distance metric that maximizes
the nearest neighbors classification accuracy. It provides a visual
representation of this metric compared to t... | [
"giannos.gavrielides@gmail.com"
] | giannos.gavrielides@gmail.com |
4d116e9f48c01c916108f6b25030e48995c015ed | 51605d344bdf22070ab546144660caba3ecb1186 | /124alexus.py | f80c19cd59a73d41b1b19e1589aa139b703abf88 | [] | no_license | riley-csp-2019-20/1-2-4-turtle-escape-alexus83142 | 5f962f0761ec7b6c6dd57f1ff09b812bd0a35bd0 | 37cb6af6691b2c61cca520b17e52cc66f2d94ae1 | refs/heads/master | 2020-10-01T23:47:53.203098 | 2019-12-13T15:57:27 | 2019-12-13T15:57:27 | 227,650,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import turtle as trtl
drawBot = trtl.Turtle()
drawBot.ht()
amount = 15
wall_width = 10
for i in range(25):
drawBot.forward(amount/3)
drawBot.penup()
drawBot.forward(wall_width+5)
drawBot.pendown()
drawBot.forward(amount/5)
if i > 4:
drawBot.left(90)
drawBot.f... | [
"noreply@github.com"
] | riley-csp-2019-20.noreply@github.com |
9885b1468a9955b2abebf766246b43363943cfde | 6e507e231d37d0b61d70d6694ffc928c1c638973 | /pie.py | bbe0882646f06c73f4ab0246d7779c76f3280bce | [] | no_license | pjz987/pdx_code_intro_class | 7a4998be23b90883aad55664ceb97baffe3fcf92 | e85c2e01718e75124b956b924af01e87cdd95ee1 | refs/heads/master | 2020-09-12T21:25:50.152682 | 2019-11-18T23:10:38 | 2019-11-18T23:10:38 | 222,561,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | '''
filename : pie.py
#if #
'''
import random
#through import in at the top if you need it
pie_list = ['pumpkin', 'keylime']
ingredient_list = ['pumpkins', 'keylimes']
while True:
user_pie = input("What pie would you like to make? ").lower()
if user_pie in ['pumpkin', 'keylime']:
break
#.lower() makes... | [
"pwj2012@gmail.com"
] | pwj2012@gmail.com |
c998f6bbb7480d8a244e757af0f08e32e02a7dc4 | fbf84df5f400af88e010bba7978eeba7953bd9eb | /test.py | 830709b6be683d9dede2eef4d77e2e9aa0885a17 | [] | no_license | dheeraj7596/covid-analysis | f9e695908b6a867528aa610de71abab7b31a8375 | b7e3cae177797bdf5da552fc2f93f750ac888f7c | refs/heads/master | 2022-04-10T01:20:32.016964 | 2020-03-27T14:52:14 | 2020-03-27T14:52:14 | 250,349,378 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import pickle
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
import matplotlib.pyplot as plt
if __name__ == "__main__":
data_path = "./data/"
phrase_freq_map = pickle.load(open(data_path + "phrase_freq_map.pkl", "rb"))
multi_word_phrase_freq_map = {}
for p in phrase_freq_map:
... | [
"dheeraj7596.dm@gmail.com"
] | dheeraj7596.dm@gmail.com |
6d853b88dbe6c22ce940287ce2034466c474b9ac | 19d03d646fcee318cca8078af27636732290d77b | /parlai/agents/image_seq2seq/image_seq2seq.py | 19692a9676a2d4e6d2f7e5b09b24973abbe39bd4 | [
"MIT"
] | permissive | yongkyung-oh/CMU-Studio-Project | 2d6fe6ef6fa30fda1a4f2d1fc45c5b85d6143775 | 448492f342e8157df2e736aa52825b66b1d66fd7 | refs/heads/master | 2022-10-24T16:56:46.763865 | 2020-07-01T10:03:00 | 2020-07-01T10:03:00 | 252,878,283 | 2 | 5 | MIT | 2021-03-25T23:50:27 | 2020-04-04T01:02:44 | Python | UTF-8 | Python | false | false | 7,246 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Image+Seq2Seq Agent.
"""
from typing import Dict, List, Tuple
import torch
from .modules import ImageSeq2seqModel
... | [
"yongkyung-oh@outlook.com"
] | yongkyung-oh@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.