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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb781d9d988c44c11a77c73ac37e5299553ac34a | c74b29b68211a51d7283d57b24d7cf83422a8ceb | /classertest.py | ffa1e7ece13d8dbad8941e217e8ee1bf19fb8681 | [] | no_license | proycon/nlpsandbox | 63359e7cdd709dd81d66aed9bf1437f8ecf706a0 | 22e5f85852b7b2a658c6b94c3dedd425a5d6396f | refs/heads/master | 2020-12-09T19:37:10.040962 | 2019-04-23T17:17:15 | 2019-04-23T17:17:15 | 2,347,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from pynlpl.statistics import FrequencyList
from pynlpl.textprocessors import crude_tokenizer, Classer
import sys
import codecs
import asizeof
freqlist = FrequencyList()
f = codecs.open(sys.argv[1], 'r','utf-8')
for line in f:
line = crude_tokenizer(line.strip())
f... | [
"proycon@anaproy.nl"
] | proycon@anaproy.nl |
b152b59d05c3e3d5cdabcc403e4d35db597bceab | 235fb362b5af1f7dbd90dc3819fe63f18e074e9d | /learn_pyqt/pyqt5-cv2-multithreaded-master/SharedImageBuffer.py | faf4fedcd3df098ddfccf082c84eb6906e8874fe | [] | no_license | cener-1999/learn_about_python | 74c9b8c6a546224261d5577183a946a78ca7e84f | 86cfc0a5621f86fc8a1885a39847d40b33137c49 | refs/heads/master | 2023-04-30T06:38:34.459506 | 2021-05-18T14:20:29 | 2021-05-18T14:20:29 | 368,473,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | from PyQt5.QtCore import QMutexLocker, QMutex, QWaitCondition
class SharedImageBuffer(object):
def __init__(self):
# Initialize variables(s)
self.nArrived = 0
self.doSync = False
self.syncSet = set()
self.wc = QWaitCondition()
self.imageBufferDict = dict()
s... | [
"1065802928@qq.com"
] | 1065802928@qq.com |
18da7de4cc349c8c1d2580cadf1d38fed8ba6dfc | 1800155dcdb48bf956fa423858a8cc20ed27e6cb | /two-sum-iii-data-structure-design.py | 24185cd468ecda7dacfaaced0516ae3647362d6b | [] | no_license | gitprouser/LeetCode-3 | 1cc2d1dbbf439af4b3768da388dafd514cc5432b | 530ea79f0377e1fc3fbfb5c5cfe7768159144e57 | refs/heads/master | 2021-06-06T16:30:14.795093 | 2016-08-22T21:40:01 | 2016-08-22T21:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | class TwoSum(object):
def __init__(self):
"""
initialize your data structure here
"""
self.table = {}
def add(self, number):
"""
Add the number to an internal data structure.
:rtype: nothing
"""
self.table[number] = self.table.get(number,... | [
"tohaowu@gmail.com"
] | tohaowu@gmail.com |
e35651f899532537e810f36a9aa113eb399a5eaa | 382034646e9d3e32c8e63e8d83d2dd7da5be4ef3 | /workery/shared_foundation/tests/models/test_opening_hours_specification.py | ee5abb18bc973e46a7b73620b7db5b912280e1f9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wahello/workery-django | 80c88ecb7968951719af6857711891ec3787cf46 | 289318b0333d830c089f4492716c38d409c365ed | refs/heads/master | 2020-03-30T04:21:48.642659 | 2018-09-28T01:30:22 | 2018-09-28T01:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | # -*- coding: utf-8 -*-
from django.core.management import call_command
from starterkit.utils import get_unique_username_from_email
from django_tenants.test.cases import TenantTestCase
from django_tenants.test.client import TenantClient
from django.urls import reverse
from shared_foundation.models import *
TEST_USER_... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
27139caa2ff73ba9f0c5c0772b1633c315e9aa52 | a939e018333a9ecd26ddc618f99835b7eb381686 | /deploy/vertical_crawler_youtube/le_crawler/common/page_local_writer.py | 3a63fce7ba2cc572e552cac20ddeef9e74c0b3e1 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | #!/usr/bin/python
#
# Copyright 2014 LeTV Inc. All Rights Reserved.
__author__ = 'guoxiaohe@letv.com'
import time
import os
import Queue
import threading
from scrapy import log
from scrapy.utils.project import get_project_settings
from ..core.page_writer import PageWriterBase
"""
for json format data writer
"""
clas... | [
"zjc0516@126.com"
] | zjc0516@126.com |
21a34dcd8837c42f9ea42b7bc1e4e5db25cfe7a5 | f485dff7fcb036868d6e4053a7a6ccd7f95214bf | /week09/employee_091.py | 62e4238ccb5f78116cc7d56777ee671bba48bdc0 | [] | no_license | jamesfallon99/CA117 | aa4f851365aafe8a4888c85e1b8b2f571e2c9b2a | 0055ccbbd710453c9574930b361c26fcde2b9036 | refs/heads/master | 2020-06-28T14:26:06.829418 | 2019-08-02T16:41:38 | 2019-08-02T16:41:38 | 200,254,591 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/env python3
class Employee(object):
def __init__(self, name, number):
self.name = name
self.number = number
def wages(self):
return 0
def __str__(self):
l = []
l.append("Name: {}".format(self.name))
l.append("Number: {}".format(self.number))
... | [
"noreply@github.com"
] | jamesfallon99.noreply@github.com |
52be7e9c34bece4e6db3c03156d40c378d72b6ca | a1684facd42cba1cd8af003ccffb530f56582e9a | /backend/pet/admin.py | 94b98dc921d660340f7a676c08544c25cf98bd86 | [] | no_license | dunderlabs/siteong7vidas | e13749863a8f5d64d469b735765044893cc38536 | fb3c529025e05adcc9aab17e1eeada909a193e56 | refs/heads/master | 2021-04-26T21:47:58.638150 | 2018-10-30T15:37:19 | 2018-10-30T15:37:19 | 124,160,847 | 6 | 1 | null | 2018-11-28T02:05:10 | 2018-03-07T01:28:12 | Python | UTF-8 | Python | false | false | 464 | py | from django.contrib import admin
from .models import Pet, PetBreed, PetPelage
class PetAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
class PetBreedAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
class PetPelageAdmin(admin.ModelAdmin):
prepopulated_fields = {"slu... | [
"luizrodrigo46@hotmail.com"
] | luizrodrigo46@hotmail.com |
c30f230f2e18f35e186cf375fa987efcef0c253c | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python数据分析机器学习部分/机器学习/day08/kpca.py | 3ccd0a9d11baf3e0fd08e50a8ae07ade3578adfb | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sklearn.datasets as sd
import sklearn.decomposition as dc
import matplotlib.pyplot as mp
x, y = sd.make_circles(n_samples=500, factor=0.2,
noise=0.04)
model = dc.KernelPCA(kernel='rbf',
fit_inverse_transfo... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
82893714841e99045c7d0a2c1bbfa4dc32f9deac | 3d1a8ccef4153b6154c0aa0232787b73f45137ba | /services/customer/server.py | 02bd6b68c181a44732e11ad2a8e09a2eb503637c | [] | no_license | jan25/hotrod-python | a0527930b2afc33ca3589c1cf7ae07814148535a | dbce7df1bc2d764351dd2ba1122078fc525caed7 | refs/heads/master | 2020-06-03T14:59:35.627093 | 2019-06-22T16:52:19 | 2019-06-22T16:52:19 | 191,616,546 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from flask import Flask, request, jsonify
from uwsgidecorators import postfork
import services.common.middleware as middleware
import services.config.settings as config
import services.common.serializer as serializer
from . import db
app = Flask(__name__)
@postfork
def postfork():
middleware.init_tracer('custome... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
1552ae664ea965da697ab12f85e1cc327fb30124 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /DP/Problem19.py | 07c8de548b63717ec4070b31545cf9ef5c3e6a61 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # https://www.acmicpc.net/problem/11049
import sys
read = sys.stdin.readline
n = int(read().strip())
arr = [tuple(map(int, read().strip().split())) for _ in range(n)]
dp = [[-1 for _ in range(n)] for _ in range(n)]
def mul(a, b):
if dp[a][b] != -1:
return dp[a][b]
if a == b:
return 0
ret... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
f269f66869c2a17070ed2079a79139e33939efe5 | 377b908723f157ab30733fa5ff15db90c0be9693 | /build/celex4/catkin_generated/pkg.installspace.context.pc.py | f861cb62d3e2dc6d77d7eb7eb7bef0ed002c193b | [] | no_license | eleboss/celex4_ros | af0b28ec0ba79016ae80e90e0cd3d270a8865fa1 | 28500367e8e28e6e5384036b6f9bd8981a7b932e | refs/heads/master | 2020-04-30T14:03:43.823980 | 2019-03-21T05:59:05 | 2019-03-21T05:59:05 | 176,877,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "cv_bridge;dvs_msgs;image_transport;roscpp;roslib;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" e... | [
"you@example.com"
] | you@example.com |
2eee67dfdbd5f09719f524851ce744a41a9b3f32 | ce18877752c43eb66f03bdc169e3ef45a1720d15 | /src/apps_common/mailerlite/__init__.py | 2ab0448f4bb1aa6cdcd84a17a2a573dbbf178cb1 | [] | no_license | ajlexgit/robin | 26e8682ae09795acf0f3fc1297d20044285b83df | 25ac1c3455838fc26656cfa16d05b2943d0cbba6 | refs/heads/master | 2021-07-13T22:49:09.177207 | 2017-10-13T07:44:42 | 2017-10-13T07:44:42 | 103,655,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | """
Модуль подписки на рассылку.
Зависит от:
premailer
libs.associative_request
libs.color_field
libs.pipeline
libs.templatetags
Установка:
# settings.py:
INSTALLED_APPS = (
...
'mailerlite',
...
... | [
"pix666@ya.ru"
] | pix666@ya.ru |
ae241182ad08298d4046ba796efca16ca15a0257 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc028/A/4640482.py | 31948a2b01b51da02f93d6230fbd993758c38420 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | n,a,b = map(int,input().split())
turn = 1
while True:
if turn == 1:
if n > a:
n -= a
turn *= -1
else:
print("Ant")
exit()
else:
if n > b:
n -= b
turn *= -1
else:
print("Bug")
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
cf526d0998ec05ba8a704de0e3067c5e2d706869 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /AutomateTheBoringStuffWithPython/chapter12/spreadsheet_to_text_files.py | 40698e57cc6c206b11f50b49c18978d9f96df97b | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 602 | py | #!/usr/bin/env python3
import openpyxl
def main():
spreadsheet = "text_to_spreadsheet.xlsx"
wb = openpyxl.load_workbook(spreadsheet)
sheet = wb.active
nrows = sheet.max_row
ncols = sheet.max_column
for col in range(1, ncols+1):
text_file = "spreadsheet_" + str(col) + ".txt"
... | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
4b17c0924e25f282c9da1e9945670cf8ad43f50d | 10b205507a3598da489bfcfa10bea769b3700b07 | /snaffle/snaffle.py | cd4fe50b80793721a82cfb75e639e8c4f18464c9 | [] | no_license | yattom/snaffle | fd65b4aebdb2ad9083ff6bc9be96b366399974f5 | fce2cec664c569a584925dd4d89f1eb7a2acd9a0 | refs/heads/master | 2021-01-10T01:22:49.387838 | 2016-02-10T01:01:17 | 2016-02-10T01:01:17 | 51,367,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # coding: utf-8
import time
import logging
import webbrowser
logger = logging.getLogger(__name__)
handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)
import snaffle.ws_server
class Snaffle:
def __init__(self, start=True):
if start:
... | [
"tsutomu.yasui@gmail.com"
] | tsutomu.yasui@gmail.com |
1ca7985800be5d1b8bc8cec044cb5e460feeb211 | 74ed8d533e86d57c7db9eca879a9fb5b979b8eaf | /stanford_corenlp_demo/common.py | 35504554c6705b83898f4a7c6159a7f78dc7a351 | [
"MIT"
] | permissive | GyxChen/AmusingPythonCodes | 97c5a2080d47399080df005a0643eddb56bceb25 | 388e90c78c67b79c23b4a8fc1ebe29f26394a54b | refs/heads/master | 2020-06-23T12:03:56.708448 | 2019-05-15T05:19:57 | 2019-05-15T05:19:57 | 198,617,528 | 0 | 1 | null | 2019-07-24T10:57:29 | 2019-07-24T10:57:29 | null | UTF-8 | Python | false | false | 1,857 | py | # encoding: utf-8
import xml.etree.ElementTree as ETree
import requests
import re
def dataset_xml_iterator(filename):
"""An iterator to convert xml-format dataset to more readable text format"""
instances = ETree.parse(filename).getroot()
for instance in instances:
paragraph = instance.find('text'... | [
"isaac.changhau@gmail.com"
] | isaac.changhau@gmail.com |
c6e68b46d7b871e2b7567e4b2422530a93f57df6 | 3dc3bbe607ab7b583eb52dbaae86636eb642960a | /configs/skeleton/posec3d/rgbpose_conv3d/pose_only.py | ad413da6a64196514be0bf0a8fef32008dad7d92 | [
"Apache-2.0"
] | permissive | open-mmlab/mmaction2 | 659c36c6083fd3d9d072e074a8d4b3a50342b9bd | 582b78fd6c3240500d5cacd292339d7d1ddbb056 | refs/heads/main | 2023-08-28T18:14:50.423980 | 2023-08-10T09:20:06 | 2023-08-10T09:20:06 | 278,810,244 | 3,498 | 1,028 | Apache-2.0 | 2023-09-07T06:50:44 | 2020-07-11T07:19:10 | Python | UTF-8 | Python | false | false | 3,987 | py | _base_ = '../../../_base_/default_runtime.py'
model = dict(
type='Recognizer3D',
backbone=dict(
type='ResNet3dSlowOnly',
in_channels=17,
base_channels=32,
num_stages=3,
out_indices=(2, ),
stage_blocks=(4, 6, 3),
conv1_stride_s=1,
pool1_stride_s=1,... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
16f19364595328e4296082867545a96c7427556e | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Sequence+algorithms/Binary+search+algorithm/palindromes.py | 72730563f8e9eb671891b4dc6258d98dc0c977f9 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #!python
"""STARTER CODE FROM NEPTUNIUS"""
import string
import re
# Hint: Use these string constants to ignore capitalization and/or punctuation
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# string.ascii_letters is ascii_lowercase + ascii_uppercase
... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
c9de463f2a5670eae402bcb6f8934038fef09461 | b5550fc728b23cb5890fd58ccc5e1668548dc4e3 | /virt/imagecache.py | 182e8745ec9ade92d2338ff13e8e74b23e599763 | [] | no_license | bopopescu/nova-24 | 0de13f078cf7a2b845cf01e613aaca2d3ae6104c | 3247a7199932abf9718fb3260db23e9e40013731 | refs/heads/master | 2022-11-20T00:48:53.224075 | 2016-12-22T09:09:57 | 2016-12-22T09:09:57 | 282,140,423 | 0 | 0 | null | 2020-07-24T06:24:14 | 2020-07-24T06:24:13 | null | UTF-8 | Python | false | false | 5,230 | py | #coding:utf-8
# Copyright 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | [
"719184289@qq.com"
] | 719184289@qq.com |
42b9566db4361ab8b254d2a2264e24c1714fe831 | 1285703d35b5a37734e40121cd660e9c1a73b076 | /leetcode/trees/979_distribute_coins_in_binary_tree.py | bcc55f5a0967dd5c383882f927dcf475948b6d2e | [] | no_license | takin6/algorithm-practice | 21826c711f57131108168775f08e4e13d07a3b38 | f4098bea2085a77d11c29e1593b3cc3f579c24aa | refs/heads/master | 2022-11-30T09:40:58.083766 | 2020-08-07T22:07:46 | 2020-08-07T22:07:46 | 283,609,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def distributeCoins(self, root: TreeNode) -> int:
self.res = 0
def dfs(root):
if root is None: return 0
... | [
"takayukiinoue116@gmail.com"
] | takayukiinoue116@gmail.com |
b66c5203b859c841cc828a61e62cc99f9eb553fa | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0001_0500/0494_target-sum.py | 7deeae6aad4be02d4582bbd2b5c096fd901b4cfb | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-05-07 08:00:00
# @Last Modified : 2020-05-07 08:00:00
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 给定一个非负整数数组,a1, a2, ..., an, 和一个目标数,S。现在你有两个符号 + 和 -。对于数组中的任意一个整数,你都可以从 + 或 -中选
# 择一个符号添加在... | [
"rock@get.com.mm"
] | rock@get.com.mm |
43f91e28b0ab99020b437977fe568b429178b0b3 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day10/homework/FTP/server/core/server_common.py | 18fad1a82f4d7f6fccba1a4c2bf4fd51ff3efa68 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 5,055 | py | # -*- coding: utf-8 -*-
__author__ = 'caiqinxiong_cai'
# 2019/9/3 14:35
import struct
import json
import os
import sys
import hashlib
from core.server_auth import ServerAuth as sa
from core.log import Log as log
from conf import settings as ss
class Common:
'''公共类'''
@staticmethod
def mySend(conn, msgb, ... | [
"13269469526@163.com"
] | 13269469526@163.com |
bd232b3367effd7cfbda818926e79471f68ef3ce | 5b4fe473179b5fadaf59ec96d55b2ec4cb326f65 | /test/runtime/frontend_test/chainer_test/pow_var_var_test.py | 608f866af8cbbd74d77544442bc55e0e6a2adf6b | [
"Zlib",
"MIT"
] | permissive | TarrySingh/webdnn | 13d3f1ec4936916abacfb67e270f48571e2fcff2 | b31b19de0798d8ca198b78d19cb06e4fce1bc260 | refs/heads/master | 2021-05-07T02:24:47.500746 | 2017-11-13T13:00:24 | 2017-11-13T13:00:24 | 110,582,816 | 0 | 1 | null | 2017-11-13T18:03:46 | 2017-11-13T18:03:46 | null | UTF-8 | Python | false | false | 1,044 | py | import chainer
import numpy as np
from test.util import generate_kernel_test_case
from webdnn.frontend.chainer.converter import ChainerConverter
def test():
vx1 = chainer.Variable(np.random.rand(2, 4, 6, 8).astype(np.float32))
vx2 = chainer.Variable(np.random.rand(2, 4, 6, 8).astype(np.float32))
vy = vx1... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
0f36fc3d21dc7041777d4a12b840417a029e470f | 9929ba720faf432a5bf3f5cc51dc9f429c24cb84 | /QUANTTOOLS/QAStockETL/QASU/save_usstock_alpha.py | a924c44ce2d05151a07caabb07f54d287cf3f1c4 | [] | no_license | chaopaoo12/QuantTools | 45fb344fc085bd7a40d94f646d0982d6b93db1a8 | 2bb1c5ad6aab3d454cfe32b6e6c86107992bed0c | refs/heads/master | 2023-08-18T04:03:11.944128 | 2023-08-13T10:58:49 | 2023-08-13T10:58:49 | 174,860,433 | 9 | 11 | null | null | null | null | UTF-8 | Python | false | false | 8,002 | py | from QUANTAXIS.QAUtil import (DATABASE, QA_util_log_info,QA_util_to_json_from_pandas,QA_util_today_str)
from QUANTTOOLS.QAStockETL.QAUtil import (QA_util_get_trade_range, QA_util_if_trade)
from QUANTTOOLS.QAStockETL.QAFetch import QA_fetch_usstock_list
from QUANTTOOLS.QAStockETL.QAFetch import (QA_fetch_get_usstock_al... | [
"chaopaoo12@hotmail.com"
] | chaopaoo12@hotmail.com |
312a8e05f383be3790e403f2863f1c553e88a5c0 | 6f56cf11d2d7750edb193831f368c8c7d156b974 | /test/mitmproxy/test_flow_export/locust_get.py | 72d5932aa5bef794e7caeda7833a2d335e7cbb34 | [
"MIT"
] | permissive | lifeNrun/mitmproxy | 000ad22e7262948ee6d4835c96d49b4a96ae1597 | a7b9e3033db29a27344c9f5d968c2af25d4a9ac0 | refs/heads/master | 2021-01-12T21:36:59.985896 | 2016-05-19T05:51:27 | 2016-05-19T05:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
''' on_start is called when a Locust start before any task is scheduled '''
self.path()
@task()
def path(self):
url = self.locust.host + '/path'
headers = {
'header': ... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
d52d3f946f64395395f21a74aa35b9864124e73b | 0df0bd96bea3e3f8ed8d339f0180c1a9fe529471 | /shipments/migrations/0012_auto_20141029_1158.py | 26fb7a1bdffad5cebdf7f0e74d184a1b6a505803 | [
"BSD-3-Clause"
] | permissive | theirc/CTS | d04141c4a7db1c32e915d65369e286c9c04ab9b9 | 43eb3e3b78c19f9e1dc02158ca12fc0c5d6bb270 | refs/heads/develop | 2020-12-03T05:26:07.564049 | 2018-03-21T14:47:53 | 2018-03-21T14:47:53 | 35,951,007 | 25 | 9 | BSD-3-Clause | 2018-03-21T14:47:54 | 2015-05-20T13:52:48 | JavaScript | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('shipments', '0011_auto_20141023_1542'),
]
operations = [
migrations.AlterField(
model_name='location',
... | [
"dpoirier@caktusgroup.com"
] | dpoirier@caktusgroup.com |
fc7808e28aefa7f89ef9a9bd7a27c3525fb6ef52 | 71e838612daddbfc9bda01d9ba0ca76fab48c3bd | /full-stack-web-app/api/DjangoAPI/EmployeeApp/serializers.py | 712aa9a1fbbb1256c71c9576bc81feb251dcd9c1 | [] | no_license | Nourreddine1920/full-stack-web-app | d77e23955f3f11f853af51fbf02504e6237458a1 | 11a793c371d29ee592ee38c1ccfc83fb9b0401ce | refs/heads/main | 2023-06-29T21:38:57.416787 | 2021-08-06T12:50:15 | 2021-08-06T12:50:15 | 393,375,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from rest_framework import serializers
from EmployeeApp.models import Departments,Employees
class DepartmentSerializer(serializers.ModelSerializer):
class Meta:
model=Departments
fields=('DepartmentId','DepartmentName')
class EmployeeSerializer(serializers.ModelSerializer):
class Met... | [
"Vous@exemple.com"
] | Vous@exemple.com |
34a752ae52ae267613e3396371a6eb4159ae908f | 4520f56d4952c788e198ee7eee39911c9a76c60f | /03_Bigdata/02_Standardization_Analysis/2. Excel/7pandas_column_by_index.py | 3ca0166f2800315d790994cafc78d6cdd7fced1e | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
import pandas as pd
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_excel(input_file, 'january_2013', index_col=None)
data_frame_column_by_index = data_frame.iloc[:, [1, 4]]
writer = pd.ExcelWriter(output_file)
data_frame_column_by_index.to_excel(writer, sheet_name='jan_13_output',... | [
"galma94815@naver.com"
] | galma94815@naver.com |
0e4c3531a57387a683f6035ab1f6f0d2d72d85ed | e90a772733e73e45b4cdbb5f240ef3b4a9e71de1 | /18. 4Sum.py | 1bf91d01a1717a31da740d4bb0ec68e689638928 | [] | no_license | jiewu-stanford/leetcode | 102829fcbcace17909e4de49c01c3d705b6e6e3a | cbd47f713d3307f900daf55c8f27301c70542fc4 | refs/heads/master | 2022-05-28T18:25:00.885047 | 2022-05-18T05:16:22 | 2022-05-18T05:16:22 | 214,486,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | '''
Title : 18. 4Sum
Problem : https://leetcode.com/problems/4sum/
'''
''' pair up to convert to the 2-sum problem '''
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
pair_nums = {}
for i in range(len(nums)-1):
for j in range(i+1, len(nums)):
... | [
"bayernscience@hotmail.com"
] | bayernscience@hotmail.com |
6d2b146447d9c996712e4fcf47c58fe6cf589442 | 8e127527301ef9439960725784d5522af824bc9b | /account_flujo_caja_it/__manifest__.py | cee213aea2a18577408ba87507f6b8fbdac513ff | [] | no_license | Makelator/heleo | b8fcf2beef7359ec91c20ef8930753bd0f6f4670 | a5a04203f1f19f813f495a484e590cd22886edf7 | refs/heads/master | 2020-07-30T15:09:27.224489 | 2019-09-23T05:43:10 | 2019-09-23T05:43:10 | 210,272,436 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # -*- encoding: utf-8 -*-
{
'name': 'Saldos Comprobantes Analisis IT Extended',
'category': 'account',
'author': 'ITGRUPO-COMPATIBLE-BO',
'depends': ['analisis_saldos_comprobantes_periodo_it','account_sheet_work','account_multipayment_invoices_it','account_multipayment_invoices_it_advance'],
'version': '1.0',
'de... | [
"angel_afla@hotmail.com"
] | angel_afla@hotmail.com |
ff7c384224d512d1d88787ac98df6f64a52eb2ab | ca6e4edfc31439aeaed4b8e9e75ea9c8b679c44f | /autofill_users.py | ace539b5d555e832bdd4a7310c5b2ed3644d450a | [
"MIT"
] | permissive | prateekchandan/pickup-server | b74f949c5d3b0471d7318fd72417b3bd0b1ccfc2 | 9132c3ef9c0e95ba34a69d9ed2a9fb980356372a | refs/heads/master | 2021-01-22T15:58:43.838560 | 2015-10-07T15:41:23 | 2015-10-07T15:41:23 | 33,261,955 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import requests
import os
import json
loginURL = "http://pickup.prateekchandan.me/add_user"
HTTPSession = requests.session()
start_locations=['Larsen+Tourbo+Powai','IIT+Bombay+Hostel+9','Hiranandani+Hospital','Hiranandani','Kanjur+Marg+Station',
'Chandivali','Raheja+Vihar','Supreme+Powai','Galleria+Hiranandani','Powai+... | [
"kalpeshk2011@gmail.com"
] | kalpeshk2011@gmail.com |
92cdb2d2c042b5c2f5c428f0f9f04b40d75ffe1f | 772a82205af92d2f2d2b490ac6bc23fdb7456124 | /hadoop-python/TopPopularLinksMapper.py | e761e3029501002bdccab3db35d35e3963e3d614 | [] | no_license | atashi/LLL | 4f777b3a06c6ed38eab4323d2072dbbec22eee92 | 857b8c7fccfe8216da59228c1cf3675444855673 | refs/heads/master | 2021-05-17T10:11:28.946779 | 2019-11-25T15:56:14 | 2019-11-25T15:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
import sys
from collections import Counter
counter = Counter()
for line in sys.stdin:
line = line.strip()
k, v = line.split('\t')
try:
v = int(v)
except ValueError:
continue
counter.update({k: v})
counter_list = counter.items()
sort_counter = sorted(counter... | [
"rebornwwp@gmail.com"
] | rebornwwp@gmail.com |
540660b234ff1db182a1e336b27f5d1fc440103d | fac96b4c97150e02f1405f7430c89b115e4c27f7 | /ch03/ex3-9.motorcycles.py | f1492ae35d421f4f18f5f5c3779654508b24f7b5 | [] | no_license | gustavonvp/PYTHON-CRASH-COURSE | 37478990ff3c3c368da505eb9e5a35dee5d1960b | 8033e2eb84cf6d85fd4ff42ae0550f38dcd23f62 | refs/heads/master | 2023-04-03T00:42:20.333183 | 2017-10-24T05:47:01 | 2017-10-24T05:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # Appending Elements to the End of a List
motorcycles = []
motorcycles.append('honda')
motorcycles.append('yamaha')
motorcycles.append('suzuki')
print(motorcycles)
| [
"freebz@hananet.net"
] | freebz@hananet.net |
50f391a8148e8c120e820f8f5d3e3228e7e44471 | a88afb87020530b8736841f3570fc125b5ded163 | /Python_Scripts/model_numbers.py | a5a6cc938421db752e5e93130f08208165847e52 | [
"MIT"
] | permissive | ICB-DCM/solverstudy | efb915189b63fb2ca005097b9d27054fbfbfb2c1 | 0aea105c115bbf92d13cc19d88ab554438abdd38 | refs/heads/master | 2023-01-19T17:36:08.394305 | 2020-11-23T22:53:03 | 2020-11-23T22:53:03 | 307,409,328 | 0 | 0 | MIT | 2020-11-23T22:53:05 | 2020-10-26T14:59:53 | Python | UTF-8 | Python | false | false | 824 | py | """Extract some basic information on model numbers."""
import os
import pandas as pd
from C import DIR_MODELS
df = pd.read_csv(os.path.join(DIR_MODELS, 'model_summary.tsv'), sep='\t')
print("Column names", df.columns)
print("Number of models:", df.shape[0])
print("Number of model groups:", len(df.short_id.unique()... | [
"noreply@github.com"
] | ICB-DCM.noreply@github.com |
9a6db226d7bcbf0cc22bb1d38a97777b59a02fb7 | d3afd01b844f314a25e231d49eb18419b38de40b | /NotMnist/make_datasets.py | f3bd5286b969e7137ed08ebede391fdd13bdef7d | [] | no_license | nanigasi-san/Chainer_DL | 35cb6f58ef05ce45f371990af5f7ebc675ee2472 | ee8fb1faec9e5aad67a5d366681acc3979946c4b | refs/heads/master | 2020-04-29T14:40:00.004462 | 2019-06-20T08:16:51 | 2019-06-20T08:16:51 | 176,203,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | from skimage import io
import glob
import numpy as np
from chainer.datasets import TupleDataset
from random import randint
#Tuple_Datasetを作る
def make_tupledata_set_train(size=100):
alphabet_list = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
image_list = []
answer_list = []
def make_image_set():
image_pa... | [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
c7256651b31945c3782d5e628fbc0571bb324f0e | a1da48c4376c8676cda8872443461e84fff6dc13 | /torchblocks/processor/sequence_labeling_processor.py | d57f31eb8b14683380853117be282ddb9580c728 | [
"MIT"
] | permissive | topDreamer/TorchBlocks | 6f9b2dc3be1dae143f0aeaa07057a53071ac841a | a5baecb9a2470ff175087475630f2b7db3f7ef51 | refs/heads/master | 2022-12-29T15:13:42.779220 | 2020-10-18T02:18:11 | 2020-10-18T02:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,137 | py | import logging
from .base import DataProcessor
from .utils import InputFeatures
logger = logging.getLogger(__name__)
class SequenceLabelingProcessor(DataProcessor):
'''
special_token_label: [CLS]和[SEP]对应的标签, defalult: 'O'
pad_label_id: padding对应的标签id, 默认使用'X',即default: 0
'''
... | [
"1436496575@qq.com"
] | 1436496575@qq.com |
d3f68f0ea82a4d0dbaf2ae04832775a6e8124729 | 92db89aaa332d2a0ea0318932c635c27e2ac5ff7 | /chap04_Classification/lecture_1x/step05_softmax_classifier.py | b2a0c2b0c34af50a17fb6d5bf97458f396355a39 | [] | no_license | DominKim/Tensorflow_DNN_CNN_RNN_Basic | daf40100c777a9d154996e4a02c8e19c35daa5fb | 1de11219800169b3bc0c95872d5952e76cbc3227 | refs/heads/master | 2022-11-09T11:16:06.576660 | 2020-06-30T05:50:04 | 2020-06-30T05:50:04 | 275,949,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | # -*- coding: utf-8 -*-
"""
step05_softmax_classifier
- 활성함수 : Softmax(model)
- 손실함수 : Cross Entropy
"""
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
from sklearn.metrics import accuracy_score
# 1. x, y 공급 data
# [털, 날개]
x_data = np.array([[0, 0], [1, 0], [1, 1], [0, 0], [0, 1], [... | [
"hyungm3@gmail.com"
] | hyungm3@gmail.com |
5dda0c6d02518f56ac74730f1e83e27e23506133 | 4d718292ec9f90444eeda13d18febb10757da894 | /Exercices/6/Q Sauvegarde.py | a8020c51bbc6b578e78ff326e200ba24eb36fbe6 | [] | no_license | rverschuren/Info | b40fb04a6260dacfc95d12e63c99abd82b140e06 | c9aa0bdc1b026c8ba8134b878b5fae7d49d75e19 | refs/heads/master | 2020-04-16T07:29:49.847812 | 2019-01-14T14:50:18 | 2019-01-14T14:50:18 | 165,389,281 | 1 | 2 | null | 2019-01-12T18:56:01 | 2019-01-12T13:12:46 | Python | UTF-8 | Python | false | false | 389 | py | #Wiaux Bastien
def save_data(filename, life, mana, position_x, position_y):
with open(filename,"w") as fichier:
fichier.write("{}\n{}\n{}\n{}".format(life, mana, position_x, position_y))
def load_data(filename):
with open(filename,'r') as fichier:
data = [int(i) for i in fichier.read()... | [
"bastien.wiaux@gmail.com"
] | bastien.wiaux@gmail.com |
e9fe621b0279a36d6e766bad4eb8aebbfc560b6d | 3f01eb21ce140e6e8d6e9f6c037a0ed3acfd0e1b | /home/context_processors.py | fa9f1a4cf3ebef508c48420baf109b26c74ba6b1 | [
"MIT"
] | permissive | manushah17/Capstone_2019 | 01d45e3d8f925dac88c1911d853ec1b8762d5b1f | 381094fc778906810e13d7611bfdb2c74cac326e | refs/heads/master | 2022-12-16T21:08:29.385969 | 2019-09-07T15:08:42 | 2019-09-07T15:08:42 | 206,984,224 | 0 | 0 | MIT | 2022-12-08T01:22:56 | 2019-09-07T15:04:22 | HTML | UTF-8 | Python | false | false | 142 | py | from django.conf import settings
def global_settings(request):
return {
'GOOGLE_MAPS_API_KEY': settings.GOOGLE_MAPS_API_KEY
} | [
"manushah@unomaha.edu"
] | manushah@unomaha.edu |
f413f0f6bb08ff5c76498ec2113b6004d38abe5c | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/recent/FromPropertyDescriptor.spec | 900befebba85c916d2b96653e1366f4b02b2d2c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 1,107 | spec | 1. If _Desc_ is *undefined*, return *undefined*.
1. Let _obj_ be ! OrdinaryObjectCreate(%Object.prototype%).
1. Assert: _obj_ is an extensible ordinary object with no own properties.
1. If _Desc_ has a [[Value]] field, then
1. Perform ! CreateDataPropertyOrThrow(_obj_... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
cefbf59aba6168247c1a7dd09e5d28cd50a6b679 | 941cbcc815da9927c16291fd0cf341fdf26d4b4b | /Web網頁框架/框架(Django)/200502_cookie&session/mysite/app01/views.py | bea45499ae8ecefde206c362d44a68fecc8ee90c | [] | no_license | narru888/PythonWork-py37- | 27de004157efdf42972f66b20872e17de8bc676c | f9cb1670fb84b9eb8aaaf7cd5cf9139ab4ef4053 | refs/heads/master | 2022-12-09T04:58:06.068302 | 2020-09-23T09:47:40 | 2020-09-23T09:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | from django.shortcuts import render, redirect
def login(request):
print('COOKIES', request.COOKIES)
print('SESSION', request.session)
if request.method == 'POST':
name = request.POST.get('user')
pwd = request.POST.get('pwd')
if name == 'sb' and pwd == '123':
# 純COOKIE(不... | [
"as124122323@gmail.com"
] | as124122323@gmail.com |
53efc7d0e74f2edd93a30082008734d0a0524e74 | 72c6e91223602b29ae34499f2813d5197dcf5f00 | /p15_three_sum.py | 59dc6ae80fd912eef3f7c89fe42a18ff5dacc7e2 | [] | no_license | koyo922/leetcode | d730d6aab6ee368b75ca59bce8492c548e7e2d6d | e8e561adea5e92cd00e374b613ea52a64be4e766 | refs/heads/master | 2020-08-02T17:32:59.512106 | 2019-12-02T11:04:53 | 2019-12-02T11:04:53 | 211,447,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 expandtab number
"""
给定一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?找出所有满足条件且不重复的三元组。
注意:答案中不可以包含重复的三元组。
例如, 给定数组 nums = [-1, 0, 1, 2, -1, -4],
满足要求的三元组集合为:
[
[-1, 0, 1],
[-1, -1, 2]
]
来源:力扣(LeetCode)
链接:https://leetcod... | [
"koyo922@qq.com"
] | koyo922@qq.com |
f26e81267ca6aa0a3f6dce527dfefd1185dacee0 | 3da6b8a0c049a403374e787149d9523012a1f0fc | /Coder_Old/pycharm_daima/爬虫大师班/10-关系型数据库/数据库操作.py | 8d6f74f0337cf0e51be57211571c88b065331126 | [] | no_license | AndersonHJB/PyCharm_Coder | d65250d943e84b523f022f65ef74b13e7c5bc348 | 32f2866f68cc3a391795247d6aba69a7156e6196 | refs/heads/master | 2022-07-25T11:43:58.057376 | 2021-08-03T02:50:01 | 2021-08-03T02:50:01 | 348,922,058 | 3 | 3 | null | 2021-09-05T02:20:10 | 2021-03-18T02:57:16 | Python | UTF-8 | Python | false | false | 7,139 | py | # !/usr/bin/python3
# -*- coding: utf-8 -*-
# @Author:AI悦创 @DateTime :2020/2/16 16:02 @Function :功能 Development_tool :PyCharm
# code is far away from bugs with the god animal protecting
# I love animals. They taste delicious.
from sqlalchemy import create_engine
from sqlalchemy import Table,Column,String,... | [
"1432803776@qq.com"
] | 1432803776@qq.com |
5fa70f6b2467740079445fbd4bd24d17e263db56 | e7bb432a333c74f90f7bd95f6cd6c3647552d8ff | /uniq.py | 1b6a247631f40f107df89ecf6b7f86667c2e3097 | [] | no_license | ponyatov/world | 6e44dcd7f0aa3821232eaf5c00f543f2430d80eb | 7705422a444419d04a9a6c13826f4fda09dcfc37 | refs/heads/master | 2021-01-13T06:55:54.261074 | 2017-02-08T15:13:23 | 2017-02-08T15:13:23 | 81,317,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | registry = {}
class Data:
def __repr__(self): return str(self.val)
def __init__(self,V):
# lookup for existant object
if V in registry: self = registry[V]
else:
self.val = V
registry[V] = self # register created object
print registry,Data(0)
print re... | [
"dponyatov@gmail.com"
] | dponyatov@gmail.com |
7dd104b89946246aa48bfd8fc5c1cdb54c5b4ff1 | ee441564d68e45fa8df6828d6fc724dce4216028 | /test_R.py | da5c16d5ead939b36d0bbd69e14ae17ca4beae1f | [] | no_license | abandonsea/Revisiting-Feature-Fusion-for-RGB-T-Salient-Object-Detection | 3bfe78cbb181d17e177404c30d65f15b0d675098 | 79f6c2234c87b8a6a0237a8d98aeb4f2be1fc0fe | refs/heads/master | 2023-08-27T08:33:06.882790 | 2021-10-21T15:41:34 | 2021-10-21T15:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | import cv2
import numpy as np
import T_train
import os
import sys
import tensorflow as tf
import time
import vgg16
import math
os.environ["CUDA_VISIBLE_DEVICES"] = "2"
#img_t_mean=[101.515, 78.315, 140.606]
#img_t_mean=[85.971, 56.608, 151.944]
#img_t_mean=[127.493, 126.314, 127.453] #small
def load_im... | [
"noreply@github.com"
] | abandonsea.noreply@github.com |
9eb9671c3137c3bce0ad495c24dce9f83e498907 | 270f1b82d494c474df0bf02f60d106f30e6d3fa3 | /src/drivers/driver.py | 08d668314e1d6ade5820de9c60810ecb3994b599 | [
"MIT"
] | permissive | KDahlgren/nyctea | cbb0f7c1023d13f600e90c864c070592c3240d74 | 725940d46a63ca4189283bcc716ad0c96aab48ec | refs/heads/master | 2021-05-11T02:28:24.086022 | 2018-02-03T07:42:03 | 2018-02-03T07:42:03 | 118,362,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python
'''
driver.py
'''
# **************************************** #
#############
# IMPORTS #
#############
# standard python packages
import inspect, itertools, logging, os, sqlite3, string, sys, time
# ------------------------------------------------------ #
# import sibling packages HERE!!!
i... | [
"kdahlgren15@gmail.com"
] | kdahlgren15@gmail.com |
3fcc00faa020fb3330f1af7af5b154afb0be26ce | 51d0377511a5da902033fb9d80184db0e096fe2c | /31-customer-analytics-and-ab-testing-in-python/4-analyzing-ab-testing-results/05-understanding-confidence-intervals.py | 7cdaf7e13d6506a7916e804755c8cd0d7ad97aa8 | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | '''
Understanding confidence intervals
In this exercise, you'll develop your intuition for how various parameter values impact confidence intervals. Specifically, you will explore through the get_ci() function how changes widen or tighten the confidence interval. This is the function signature, where cl is the confide... | [
"a@skrasnov.com"
] | a@skrasnov.com |
b29bffcc2e7d2e3616ff332e06f3397623fdd0ed | 132787c692753ce56cc87abce863af61367e4c41 | /tests/test_flexmaxpool.py | 8c82d49dc0c9325e94e1e659e7ba73da72d85bae | [
"Apache-2.0"
] | permissive | LMescheder/torch_flexconvs | 4cff0b2195e9c0db4bdfbfe4b59d6bf6fdddebae | 72a6aa4eb7dd029b6c446def6031ce56b9fb8bfd | refs/heads/master | 2022-11-16T04:32:53.550675 | 2019-02-21T16:08:21 | 2019-02-21T16:08:21 | 173,277,013 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import torch
from torch.autograd import gradcheck
from scipy.spatial import cKDTree
from torch_flexconv import FlexMaxPool, flex_maxpool
def test_flexmaxpool():
B = 16
p = torch.rand(B, 3, 1000)
p_np = p.squeeze().numpy()
idx_nn = []
for i in range(B):
idx = cKDTree(p_np[i].T).query(p_np[i... | [
"lars.mescheder@tuebingen.mpg.de"
] | lars.mescheder@tuebingen.mpg.de |
1fc85c384cbc924fac454a4c31e5b8c74a901880 | 600a398c5bfebd8bb7aa8dd8349c710bee719d3a | /PRL/genK.py | e89375f819ca451210803b2a60591e3f7a5f8941 | [
"MIT"
] | permissive | balasbk/game-theory | 00f57f206736953a44a7f5a23edc2a82a29474c0 | 958e093e64799e2dd445d18bd9966251270f81e7 | refs/heads/master | 2022-04-26T01:01:26.363820 | 2020-04-28T16:11:48 | 2020-04-28T16:11:48 | 259,680,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import numpy as np
import random
import math
#TODO documentation
def apply2prefs(k_fun, p1, p2):
(x1p, y1p), (x1n, y1n) = p1
(x2p, y2p), (x2n, y2n) = p2
res = 0.
if y1p == y2p:
res += k_fun(x1p, x2p)
if y1n == y2n:
res += k_fun(x1n, x2n)
if y1p == y2n:
res -= k_fun(x1p,... | [
"you@example.com"
] | you@example.com |
59df0dab074bd06ac5b02c4d0e64f12409454b00 | 5ac30246e65c6640ef71c737cdb5514b90ce5818 | /audit_shell.py | 878a782b17de9d90a895f913e99c7feb4ab59c99 | [] | no_license | yanlingsishao/lijump | bb03357797a5784849b35a7ab85f84a645d9bae7 | c31e10d6b113e04fa5da77aac7a68a76cd2e34a1 | refs/heads/master | 2020-03-27T04:17:09.894332 | 2018-08-24T02:28:11 | 2018-08-24T02:28:11 | 145,927,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018-6-14 17:02
# @Author : Jerry Wang
# @Site :
# @File : audit_shell.py
# @Software: PyCharm
import sys,os
if __name__ == '__main__':
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "LuffyAudit.settings")
import django
django.setup() # ... | [
"1209394579@qq.com"
] | 1209394579@qq.com |
e530aaa767d12ea93c377b257ea84936bbd7066a | 7cbc0963d88a5fb4eb241e2a55fd791098dd5f16 | /capp/admin.py | 5a5a374ca6b9cac630382226b588b284e51c8475 | [] | no_license | Kipngetich33/test-repo | a7a4ebeb4eff117db5cff90f40a2b34ed3a3fa66 | e08e1a8a12196dcf806e2270f8efe930405a5379 | refs/heads/master | 2022-12-12T15:54:56.401732 | 2018-05-27T08:54:13 | 2018-05-27T08:54:13 | 134,891,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from django.contrib import admin
from .models import Profile, Question, Comment, Session, Record, Doctor, Inpatient
# Register your models here.
admin.site.register(Inpatient)
admin.site.register(Profile)
admin.site.register(Comment)
admin.site.register(Question)
admin.site.register(Session)
admin.site.register(Recor... | [
"kephaokari@gmail.com"
] | kephaokari@gmail.com |
7cf617b5c56a3f2ea11220ca71f5a197cb36b863 | 050fc5ca698dfd7612dee42aa980fc7b5eee40a2 | /skywalking/agent/protocol/interceptors_aio.py | 1ade5fb7ffa878a86eac085cdaa32514df038639 | [
"Apache-2.0"
] | permissive | apache/skywalking-python | 8ac6ce06630c519f9984a45e74c1fcc88cf5b9d6 | 1a360228c63cd246dd4c5dd8e1f09bdd5556ad7d | refs/heads/master | 2023-09-05T02:45:56.225937 | 2023-08-28T22:19:24 | 2023-08-28T22:19:24 | 261,456,329 | 178 | 122 | Apache-2.0 | 2023-08-28T22:19:26 | 2020-05-05T12:13:49 | Python | UTF-8 | Python | false | false | 3,420 | 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 us... | [
"noreply@github.com"
] | apache.noreply@github.com |
ae7d7e80d8d08994ebaba9368bfbeb41259cdf19 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_exchange_operations.py | 00a323e5f5ee98c8fe3be36a18fe084e24a20aee | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 7,503 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
3b9cdeea125b0d4b04ff8151a9af1f622e9f31b8 | 0388e6159a676944a26ffd10e413980120e2c338 | /extra_foam/gui/ctrl_widgets/scan_button_set.py | 70da587b8f8e5c72b49bde8e857ce1c7d6f2127a | [
"BSD-3-Clause"
] | permissive | scottwedge/EXtra-foam | 0bb3689ec11df7253ce407b9c5c53f68a405200f | 578c6035af023575a5c026b0391d15884ca1df60 | refs/heads/master | 2021-02-07T20:06:18.266595 | 2020-02-24T14:08:50 | 2020-02-24T14:08:50 | 244,071,447 | 0 | 0 | BSD-3-Clause | 2020-03-01T02:05:39 | 2020-03-01T02:05:38 | null | UTF-8 | Python | false | false | 1,489 | py | """
Distributed under the terms of the BSD 3-Clause License.
The full license is in the file LICENSE, distributed with this software.
Author: Jun Zhu <jun.zhu@xfel.eu>
Copyright (C) European X-Ray Free-Electron Laser Facility GmbH.
All rights reserved.
"""
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets impo... | [
"zhujun981661@gmail.com"
] | zhujun981661@gmail.com |
a40d7e98cb98dcaf66ed024dcd8b9b94752de86f | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /imooc/celery_learning/celery_app/celeryconfig.py | bfd26a86904e2b5b0b64ae6339b240819533c0c4 | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '18/12/4 09:14'
from datetime import timedelta
from celery.schedules import crontab
# broker_url消息中间件
BROKER_URL = 'amqp://guest:guestpwd@localhost:port/vhost_name' # with passwd, e.g. guestpwd is your password
# BROKER_URL = 'redis://127.0... | [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
93e02e28357482f45b11b6504bb548bf8ffb0bd3 | 7759122052337252217fff9d51ec6d125ef370e0 | /iq/engine/gtk/gtkbox_manager.py | 1428ab5c17caecb85a7e8a492c21f26fc90f3528 | [] | no_license | XHermitOne/iq_framework | 3325670c74233d99e599921fad4bd41e5d8104f3 | 7550e242746cb2fb1219474463f8db21f8e3e114 | refs/heads/master | 2023-09-03T21:07:58.107750 | 2023-09-01T07:30:13 | 2023-09-01T07:30:13 | 195,210,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
GtkBox manager.
"""
import gi
gi.require_version('Gtk', '3.0')
import gi.repository.Gtk
from ...util import log_func
# from ...util import spc_func
# from ...util import id_func
from . import base_manager
__version__ = (0, 0, 0, 1)
class iqGtkBoxManager(base_man... | [
"xhermitone@gmail.com"
] | xhermitone@gmail.com |
41f45ca9f01ea667729fbcb4f7f1ad0903e8186f | 9f9c0861a392d26c1ec0c317b2cba85515ddc627 | /torch/nn/quantized/modules/rnn.py | 7e523ba830d22bd85be26b8bb793722a0e45d7f2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | zhuhaozhe/pytorch | be09e6aed6b2b229f4d1126fc170542e2aa02016 | ba556961a7de900c0ad6f10ceba094b9f5a2a61e | refs/heads/master | 2023-08-10T10:35:28.573545 | 2023-08-01T07:05:50 | 2023-08-01T07:05:50 | 205,321,942 | 0 | 1 | NOASSERTION | 2022-09-08T08:00:41 | 2019-08-30T06:46:46 | C++ | UTF-8 | Python | false | false | 1,719 | py | import torch
class LSTM(torch.nn.quantizable.LSTM):
r"""A quantized long short-term memory (LSTM).
For the description and the argument types, please, refer to :class:`~torch.nn.LSTM`
Attributes:
layers : instances of the `_LSTMLayer`
.. note::
To access the weights and biases, you n... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
911c9e93d8d43ad832b767d37f5c312e13acad79 | 55628a9a08a6b6646b4a8aa74bedbf2e3fd7d850 | /.history/master_20200119185018.py | 7381a67978262b1e6f18702e2d351e7181371d37 | [] | no_license | StRobertCHSCS/final-project-team | c115dc11b318f7ac782c94860a8801bb558bd107 | 48907e72813c4dd3b48ff36f794f6fce04533219 | refs/heads/master | 2020-12-03T22:35:37.833893 | 2020-01-31T04:05:38 | 2020-01-31T04:05:38 | 231,506,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | '''
-**make snake longer when eaten
- FIGURE OUT HOW TO KNOW WHERE TO ADD THE NEXT BLOCK (MOVE LAST LOCATION TO BACK)
-fix player_location lists, so that the list only has the location of the current snake location, not infinite list (done)
- fix apple so disappers when you go over it (done)
'''
import arcade
imp... | [
"clementina1023@gmail.com"
] | clementina1023@gmail.com |
7abb383871da68acca8803c033a6cda606057eae | 4ecb332ba2edd08d4a0a0021db675b41c3790dbd | /bc19-scaffold/bots/34.TacticsImprovedBot/pilgrims.py | f180cd4981648d302407dcd2442b86e3dd0796e0 | [] | no_license | Nischay-Pro/BattleCode2019 | fdffdd235e8db60189e90e48c3f47f23bb32b30f | 92193daf631687acca00176c1fa6a9255d7d4381 | refs/heads/master | 2020-04-16T10:15:39.875870 | 2019-01-27T21:08:52 | 2019-01-27T21:08:52 | 165,497,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,853 | py | import constants
import utility
import pilgrims_utility
import movement
import check
def pilgrim(robot):
if robot.pilgrim_mine_ownership == None:
robot.steps_to_mine += 1
# communications.self_communicate_loop(robot)
# robot.log("Pilgrims current move destination is " + robot.current_move_destinat... | [
"f2015845@hyderabad.bits-pilani.ac.in"
] | f2015845@hyderabad.bits-pilani.ac.in |
0c722d822e98d521f2af77ed2e6f29002c65e0a8 | 93ba28a7808ed5a406753748fedbdbaea5f3c8b2 | /KSTest.py | 92e5fb7c859a739fb20a3a6166aaad182051e025 | [] | no_license | zaixingmao/samples-plots | 7a55005abab1e7644296d1eb2e76f603d160a37b | bb2371c7f664a84c454189ec648bb55630cb7565 | refs/heads/master | 2020-05-21T23:27:34.390427 | 2017-07-14T14:59:52 | 2017-07-14T14:59:52 | 24,139,867 | 0 | 0 | null | 2015-10-23T16:00:22 | 2014-09-17T10:17:08 | Python | UTF-8 | Python | false | false | 4,000 | py | #!/usr/bin/env python
import ROOT as r
import optparse
import tool
r.gROOT.SetBatch(True) # to suppress canvas pop-outs
def KSTest(ifile, ofile, name):
f = r.TFile(ifile)
testTree = f.Get("TestTree")
trainTree = f.Get("TrainTree")
nBins = 20
nBins2 = 100000
xMin = -1.0
xMax = 1.0
... | [
"zaixing.mao@cern.ch"
] | zaixing.mao@cern.ch |
b5559016125f4ba359d3ccc395429165da594707 | 4ba32be96850894f8c94597899a401b3b19f216e | /uotp/packet/time.py | b4e31801d2f99580fc5de05750169d19a2106202 | [
"Unlicense"
] | permissive | dlunch/uotp | 2e204cf036f5a735d1f8fe3149d0dd08d96cbedf | bfa52a5aae4c7b40c10aebaaa4667c26d40b5ff7 | refs/heads/master | 2021-08-31T23:15:52.285195 | 2017-12-23T11:21:42 | 2017-12-23T11:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from struct import unpack
from .base import Packet, Opcode
class TimeRequest(Packet):
OPCODE = Opcode.Time
SIMPLE = True
@classmethod
def _encode_payload(cls, data: dict) -> bytes:
return b''
@classmethod
def _decode_payload(cls, payload: bytes) -> dict:
time, = unpack("!I",... | [
"devunt@gmail.com"
] | devunt@gmail.com |
d2c98cb9d7f276f7a2cc3774ca7207c9c874da3a | dbce70b3685e04fe7b52687bfc4bc9d1c3325486 | /src/filingcabinet/migrations/0019_auto_20210323_1404.py | 30f74a4c0f93ad21c2ea0d031a18c8e6eefb9001 | [] | no_license | okfde/django-filingcabinet | d0fd8ea1deb7e990dcfe510df548bd497e96fe5e | 5d5ff8f9f6573614d61def654b3e22805bf84934 | refs/heads/main | 2023-09-02T10:53:28.789501 | 2023-08-02T15:34:57 | 2023-08-02T15:34:57 | 144,304,373 | 7 | 4 | null | 2023-09-14T16:21:49 | 2018-08-10T15:37:53 | Python | UTF-8 | Python | false | false | 1,210 | py | # Generated by Django 3.1.6 on 2021-03-23 13:04
import uuid
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.FILINGCABINET_DOCUMENT_MODEL),
... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
49aeb6dcb89830cd7a6f3a7ffabb101c58b2a116 | 77ada1a21fd1086b00fe5e0f2a7e568bca8562c5 | /visualization_data.py | 9f0c9c5000ea270576f852d41355864e40b59c74 | [] | no_license | Tulin2010/LSTM_GoogleClusterTraceData | 584f8d38395ffd159f30496487ad5c8161b4c331 | a999b3a609bb1907b6fbe85c5783b0365078f53e | refs/heads/master | 2023-03-17T13:06:17.392797 | 2017-11-21T15:18:02 | 2017-11-21T15:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import pandas as pd
import matplotlib.pyplot as plt
from pandas import read_csv
dataset = read_csv('/home/nguyen/learnRNNs/international-airline-passengers.csv', usecols=[1], engine='python', skipfooter=3)
plt.plot(dataset)
plt.show()
# print a | [
"thangbk2209@gmail.com"
] | thangbk2209@gmail.com |
ed419545953e68ef8416ac79e6c96d621fb18c94 | 4dc5aa4f1a99b5a8ca20413640094149e025b49e | /project-addons/l10n_es_facturae_ph/models/__init__.py | ad2302ae21a5303ac4d03e0bea984332125d7098 | [] | no_license | digitalsatori/PXGO_00064_2014_PHA | 469dd86e595a125a5ca1f24c51756182638a0847 | fe27d2f456deb750f9fba528feaa075dcf4a1b02 | refs/heads/master | 2023-07-19T18:32:17.178115 | 2023-07-15T13:20:05 | 2023-07-15T13:20:05 | 62,711,911 | 0 | 0 | null | 2023-08-28T21:36:39 | 2016-07-06T10:14:56 | Python | UTF-8 | Python | false | false | 168 | py | # -*- coding: utf-8 -*-
# © 2022 Pharmadus Botanicals
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import account_invoice, facturae_invoice
| [
"oscar.salvador@pharmadus.com"
] | oscar.salvador@pharmadus.com |
91b7938f4809073bba962f3a9dfd05892a57cfa0 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_url_path_map_py3.py | cc013f10ac410d7745b713e261396fb447cd6378 | [
"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 | 3,457 | 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 ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
fdc9507613f0c24c6bf4372dcdc2f935907300f4 | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/Clients/Clients_POST/test_TC_43120_Clients_POST_Height_Gt.py | c91858daec38cff468e6ba12818cf956996a8beb | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Clients.
* TC-43120 - Clients POST:
Verify that user is able to add source constraint rule with specific rule for parameter 'Height>GT(Greater Than) using request POST '/clients/'.
Equivalent test CURL command:
curl -H "Host: <client_host>" -H "Authorization: B... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
1ab116b1625ef9856f2198a6637bb253a87c266b | 25f4e894beced05eb15708ac2314d72e679fa069 | /google/google/spiders/GoogleSpider.py | 7358c7cbfd2aefd2703b5e751cd026ebcac532c8 | [] | no_license | pyscrape/web-scraping-projects | 4e6059daaa2f1092e2c8f1ee4a4ad1e422b21096 | f1e77b151de256e1a5e83099859635edc2f5826a | refs/heads/master | 2021-06-01T15:02:42.548264 | 2016-08-24T07:27:11 | 2016-08-24T07:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.lxmlhtml import LxmlLinkExtractor
from google.items import GoogleItem
from scrapy.conf import settings
def parsing_rating(line):
if len(line)>0:
return line[0][line[0].find("alt"):]
else:
return ""
class Googl... | [
"mymamyma@gmail.com"
] | mymamyma@gmail.com |
9e15da608c57204097c2be6bfac95cf84b72f297 | 8b71fdd80be5f22659cfb135019f5fd968a3cb77 | /supervised_learning/0x01-classification/19-deep_neural_network.py | 5e9cf4bd693450e09c970d9f96ab70baf7c24890 | [] | no_license | KamalTaleb/holbertonschool-machine_learning | 357e1c6bfcffa6672e12a3d518846b2a96747148 | 242b449b3a7a4051270ca32a22866a884754d141 | refs/heads/master | 2023-03-29T07:24:44.113412 | 2021-04-08T15:45:16 | 2021-04-08T15:45:16 | 320,596,666 | 0 | 0 | null | 2020-12-11T14:41:48 | 2020-12-11T14:29:03 | Python | UTF-8 | Python | false | false | 3,177 | py | #!/usr/bin/env python3
"""Contains the DeepNeuralNetwork class"""
import numpy as np
class DeepNeuralNetwork:
"""
DeepNeuralNetwork class
defines a deep neural network
performing binary classification:
"""
def __init__(self, nx, layers):
"""
Class constructor
:param n... | [
"kamal.talebb@gmail.com"
] | kamal.talebb@gmail.com |
b94058827cb1372d534468bbbd322a04a99f959b | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/leetcode/dfs/dfs.py | 73df417ba9abc9d12885a4e0fbd4b12e54d6ba30 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 920 | py | import sys
# stack을 이용한 구현
# def dfs(g, start):
# for key in g.keys():
# g[key] = sorted(g[key], reverse=True)
# stack = []
# stack.append(start)
#
# visited = set()
# while stack:
# cur = stack.pop()
# if cur in visited:
# continue
# # 방문 처리 및 출력
# ... | [
"galid1@naver.com"
] | galid1@naver.com |
d508c9134e55dfefde90ff6147e63c22f1ef4da6 | 817c58b0d73d20638ea410512aa61b6b8837cf62 | /backend/backend/api_urls.py | 9a86a93b978ca7dfe66526f69f4c88b62bccf19d | [
"MIT"
] | permissive | ProjetoALES/ales-website | d64eaef437ba6da1df7d810b8f495ad141d41464 | 9dc5b460f5e780a1221d0ed5071043f088082395 | refs/heads/master | 2022-01-25T04:15:59.302899 | 2020-02-25T05:15:10 | 2020-02-25T05:15:10 | 242,913,529 | 0 | 0 | MIT | 2022-01-06T22:42:46 | 2020-02-25T04:57:07 | Vue | UTF-8 | Python | false | false | 403 | py | from django.urls import include, path
from .views import CurrentUserViewset
from student import api_urls as student_urls
from .router import base_router
base_router.register("me", CurrentUserViewset, basename="me")
app_name = "api"
urlpatterns = [
path(
"",
include((student_urls.urlpatterns, stu... | [
"gustavomaronato@gmail.com"
] | gustavomaronato@gmail.com |
95293ca379d2cc6ee06bbdf758e30368f3d7f4e6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /zDei9LFWkX9d7wXyb_17.py | 4d91f8876a0ba580b6c2e2347c216c95b10964bd | [] | 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 | 197 | py |
def malthusian(food_growth, pop_mult):
year=0
pop=100
food_prod = 100
while True:
food_prod+=food_growth
pop*=pop_mult
year+=1
if pop>food_prod:
break
return year
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
15dc7407da6affbb37c0dd12b9349f1ca91bba81 | b2edef9270dfe69986c1f268d4bad7c4b1a54315 | /329.longest-increasing-path-in-a-matrix.py | cf326f9a2ae3e6f0ab5d2ed9fd1dbb47b1428f78 | [] | no_license | mrgrant/LeetCode | 9167f29462a072df4932201834073043cba99366 | 82132065ae1b4964a1e0ef913912f382471f4eb5 | refs/heads/master | 2021-12-03T00:16:42.070167 | 2021-11-30T15:02:29 | 2021-11-30T15:02:29 | 143,361,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | #
# @lc app=leetcode id=329 lang=python
#
# [329] Longest Increasing Path in a Matrix
#
# @lc code=start
import collections
class Solution(object):
def longestIncreasingPath(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: int
"""
# dfs solution
# m = len(mat... | [
"mrgrantcy@gmail.com"
] | mrgrantcy@gmail.com |
fc65a1a0c364aa804a4aa0ff883d6b6e9a1b0133 | 2279568acd5c7182ea4d287d20cd208b10c945a2 | /django/django_intro/form_submission/POST_form_submission/views.py | 6e7bdc0b8c7af63776f3aafbe8e7e54a0eb7dcd8 | [] | no_license | quangnguyen17/Python | fbc5cec0eb51e48c964022e1bd45fb585d2b60ec | 1920f757c5381480fc42f90946651aa0363fcaff | refs/heads/master | 2020-12-27T08:58:51.058504 | 2020-02-10T21:42:45 | 2020-02-10T21:43:12 | 237,815,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.shortcuts import render, redirect
# Create your views here.
def index(request):
return render(request, "index.html")
def create_user(request):
request.session['name'] = request.POST['name']
request.session['email'] = request.POST['email']
return redirect("/success")
def success(reques... | [
"wan15112001@gmail.com"
] | wan15112001@gmail.com |
3fa906d66b83757fe642d3e423f6b479a7ee5ff3 | 796344a0ecccb0c979348baef8b80a5146ba5ddd | /mysite/settings.py | bf17080ab7a8e8652cc8a877fd0148fa785c140d | [] | no_license | emantovanelli/my-first-blog | d5f2d2af6373196172acbefbbf090f80296b5d99 | 6c87da8db54576111976dc57109ca096fd694363 | refs/heads/master | 2021-01-10T12:36:48.237270 | 2016-01-04T13:52:34 | 2016-01-04T13:52:34 | 48,194,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"you@example.com"
] | you@example.com |
e21df57f20a42deffed822307c1bf7b5614cf75f | 0274f2c465f110598456624581f569331221068b | /impl/gps/gps_operations.py | 64a7a924c36f2bd4394f6ff191375c071b57d962 | [] | no_license | bluecube/thesis | 63e745076c86a3122e9c3d7ff42ff22e32921860 | 588db206e64de9b681372fea9a70d3fa2aa598df | refs/heads/master | 2016-09-06T00:01:03.840006 | 2013-05-27T09:36:51 | 2013-05-27T09:36:51 | 1,376,241 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | from __future__ import unicode_literals
import collections
import logging
from . import sirf
from . import sirf_messages
if bytes == str:
# This branch is here for python 2.x and to avoid
# the cost of calls to sirf.bytes_to_message_id
# This whole business is a little ugly :-)
_message_id_filter = c... | [
"blue.cube@seznam.cz"
] | blue.cube@seznam.cz |
7c38e135fbe87c2b8a76e963211c110dcae4f12e | 9bac4cd580ecd3152b828d3bb421e648f2156361 | /_admin_panel/apuzzles/forms.py | c6fc0066f8a3ab00f8123e3fdbbcb435b61c62ae | [] | no_license | sharingsimplethoughts/mygame2 | 2d3b5febfc950faeec535347fbdaff39191a4805 | d0432bdbf74b03fb7244ff8911f04b485aff016f | refs/heads/master | 2023-05-29T04:01:04.104641 | 2020-07-07T14:38:07 | 2020-07-07T14:38:07 | 276,071,526 | 0 | 0 | null | 2021-06-11T18:12:15 | 2020-06-30T10:45:33 | HTML | UTF-8 | Python | false | false | 2,626 | py | from django import forms
from puzzles.models import *
class PuzzlesAddEditForm(forms.Form):
def clean(self):
les_name = self.data['les_name']
les_cat = self.data['les_cat']
les_desc = self.data['les_desc']
les_hint = self.data['les_hint']
les_exp = self.data['les_exp']
... | [
"sukamal.sinha@fluper.in"
] | sukamal.sinha@fluper.in |
d2139d040c78dcd1ac92ed08ba7de06fe9427ce8 | 60962534e8f0fbbe87732ff38f613a3f5fc5342f | /largestRectangleHistogram/main.py | 8977284fc74c5d2d742e622f35fdafa1e1048086 | [] | no_license | publicbull/leetcode | 4ebde395814e8ed9ce8bc8576d3c15d224ee3722 | 73fb5c1d77002cc24a2ea2db58e679cf2bd1c767 | refs/heads/master | 2020-12-24T15:22:12.457530 | 2013-07-03T22:03:15 | 2013-07-03T22:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | '''
Created on May 15, 2013
@author: Administrator
'''
def largestRectangle(data):
def _largestRectangle(left, right, maxRect):
if left > right:
return
currMin = data[left]
currMinPos = left
for i in range(left, right + 1):
if currMin > data[i]:
... | [
"baiyubin@gmail.com"
] | baiyubin@gmail.com |
c884e21d21ea76207943ee8ca33e776e8a9ee7e0 | 2d58c1351ab970eb55f4832b09582592e96468d5 | /p31.py | 4a9857e0b2d677a5a819dd859be186c88da7b955 | [] | no_license | 0x0400/LeetCode | 832bc971c2cae9eecb55f5b14e8c34eaec0d9e26 | 94bb9fedc908490cc52d87def317c057fadaeceb | refs/heads/master | 2023-02-24T20:13:11.345873 | 2023-02-10T16:46:31 | 2023-02-10T16:46:31 | 84,653,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # https://leetcode.com/problems/next-permutation/
class Solution(object):
def nextPermutation(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
idx = len(nums) - 2
while idx >= 0:
if nums[idx] >=... | [
"0x0400@users.noreply.github.com"
] | 0x0400@users.noreply.github.com |
25510828bc0661930551ad3acd71ac4f3ed9447b | 5eca88bd5e2d9f5bb92d0a5cdeb39032015c4b92 | /python/batch_uninstall.py | 448a61a5d18cfc0162b9ddc2f57929bf58a6b571 | [] | no_license | cet4meiguo/AndroidTestPyScripts | 09e105cc40389ec530af99aa3ce9be43378ea756 | ae6864a3cca2f8c1486e67faf069c9c137deedb4 | refs/heads/master | 2021-06-18T03:24:24.750998 | 2017-03-04T14:16:27 | 2017-03-04T14:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
#批量卸载设备上的第三方应用
def uninstall():
os.popen("adb wait-for-device")
print "start uninstall..."
for packages in os.popen("adb shell pm list packages -3").readlines():
packageName = packages.split(":")[-1].splitlines()[0]
os.popen("adb uni... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
eb86ed1da548c5ada25cc1aa23969fe16b9b6d66 | cc7ad1a2aa5d691c15ff7838d1e5126ab2c2bee0 | /basic_ranking/urls.py | 7691f1ea08646018399e25f6c2c1ded7e23ba8f9 | [] | no_license | demirantay/lingooapp | 9632be8a7d3dd00e7a4ac13618f32975da389729 | c842bb032668ef1bd5e7f4282acd4990843c8640 | refs/heads/master | 2023-03-14T08:00:37.681334 | 2021-01-09T09:36:48 | 2021-01-09T09:36:48 | 285,181,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.urls import path
from . import views
urlpatterns = [
# Ranking Overview
path(
"ranking/overview/<int:page>/",
views.ranking_overview,
name="ranking_overview"
),
# Category Ranking Page
path(
"ranking/<str:language>/<int:page>/",
views.category_ran... | [
"demir99antay@gmail.com"
] | demir99antay@gmail.com |
43edad709ef0ed6de4ca2dcc842527c0a49c651b | db4c1703bee4e79e0a275434b7491c6dfe7a8602 | /backend/rush_19600/wsgi.py | 3761f5a1382397ef0ff7f2d1d384d21c0f1a9ca3 | [] | no_license | crowdbotics-apps/rush-19600 | 6baf41e83f15b7d48d3a04d2b83a29c8a4cfa781 | 8ecff341418f153c1a82b6492eaef662253b3254 | refs/heads/master | 2022-12-01T09:00:15.372702 | 2020-08-18T05:48:32 | 2020-08-18T05:48:32 | 288,006,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for rush_19600 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ade89183eb307e372486d8f1a1c6c63400af1e0f | c3e75ab16954f7dffdf68983237df98fae832b43 | /conf_matrix.py | adf29a6d56121b97b080b9403749eec2825a1afa | [] | no_license | satojkovic/ml-algorithms-simple | 713c6f57c23030a79db7500dff32f30858ebeee6 | a2bd09544b82a96dcf41b5a650fee4fe21b99934 | refs/heads/master | 2021-06-04T15:22:06.421941 | 2021-05-11T12:50:51 | 2021-05-11T12:50:51 | 3,835,836 | 13 | 12 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sklearn.datasets import load_digits
from sklearn.cross_validation import train_test_split
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import SVC
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
def main(... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
9a79938a1d99004ccdaf6accc35ec65df0ca6e7c | abbc11abfabb0d3976789a9ec073b28892c78778 | /machine_program/data_ready.py | c1616d0e234e88c9fe2e2d22875178636457ef3f | [] | no_license | sunxhap/machine_learning | b06b28b3aba5b39704d8a3ae282f366dad6af406 | ef1d80a16fd35f03e428ac27b9b0f771f6f1edbb | refs/heads/master | 2022-05-01T15:22:07.314221 | 2017-11-12T09:12:30 | 2017-11-12T09:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | # -*- coding: utf-8 -*-
"""
@Time: 2017/11/8 11:24
@Author: sunxiang
"""
import numpy as np
filename = "data.csv"
def data_ready():
"""
数据读入 已有分类标签
"""
data = []
labels = []
with open("data.txt") as ifile:
for line in ifile:
try:
tokens = line.strip().spl... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
bf5774cfced892e0f81372fb0b659c3deb8a2cc0 | 97c5fe6a54636de9b056719ea62ac1de4e76ebdc | /src/matches/utils.py | 75c3ec2bd03ff40320434f900d8ef59465c9cf50 | [
"MIT"
] | permissive | EdwardBetts/matchmaker | 937ece7acbfd1fcb57ab59cd13b16c3cd67d54f3 | ec56d18c6af8ca904325deca3be56484d3415c70 | refs/heads/master | 2020-12-11T01:50:10.773983 | 2016-01-26T16:53:29 | 2016-01-26T16:53:29 | 56,478,725 | 0 | 0 | null | 2016-04-18T05:11:12 | 2016-04-18T05:11:12 | null | UTF-8 | Python | false | false | 1,382 | py |
from decimal import Decimal
def get_match(user_a, user_b):
a = user_a.useranswer_set.all().values_list("question")
b = user_b.useranswer_set.all().values_list("question")
matches_b = user_b.useranswer_set.filter(question=a).order_by("question")
matches_a = user_a.useranswer_set.filter(question=b).ord... | [
"eddie.valv@gmail.com"
] | eddie.valv@gmail.com |
6f759c661b592a52caaf1452caae33339900454b | 5f364b328d0e7df6f292dbbec266995f495b2ed4 | /src/python/txtai/pipeline/translation.py | b93b6d7c6fbacb0d01bcd3ab7561c52c463746d7 | [
"Apache-2.0"
] | permissive | binglinchengxiash/txtai | a17553f57ddd857ff39a7d0b38e24930f5c71596 | 1513eb8390f01848742e67690b6e4bc6452101ee | refs/heads/master | 2023-04-03T18:59:35.845281 | 2021-04-05T22:05:15 | 2021-04-05T22:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,895 | py | """
Translation module
"""
import fasttext
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer, MarianMTModel, MarianTokenizer
from transformers.file_utils import cached_path
from transformers.hf_api import HfApi
from .hfmodel import HFModel
class Translation(HFModel):
"""
Translates t... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
1aeafea4c287d40f71a3a955dbca59e856894d98 | ed0e1f62c637cee6c120f77ffc0d8db4a0b218c2 | /test8.py | c9834f9ec424f9870f678bc7c5c69763054d726a | [] | no_license | bcrafton/weight-mirror | 1d386fe68f88eea3b67ddcef70450a37331871d7 | d2e35e7378fc261de397c54a6db76b3f8a1e0281 | refs/heads/master | 2020-05-15T18:45:57.488229 | 2019-04-23T20:44:17 | 2019-04-23T20:44:17 | 182,438,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,428 | py |
import numpy as np
import argparse
import keras
import matplotlib.pyplot as plt
from whiten import whiten
#######################################
parser = argparse.ArgumentParser()
parser.add_argument('--epochs', type=int, default=100)
parser.add_argument('--lr', type=float, default=1e-2)
parser.add_argument('--l2',... | [
"crafton.b@husky.neu.edu"
] | crafton.b@husky.neu.edu |
8f633e9e029f949e14bea3ec4d3701110965256d | 21ae28849f391b58cbc5a6d3d586af68e20e3954 | /bin/update_node_allowed_ips.py | add0aec3c64275b2c578baca75cfc829f189d714 | [
"MIT"
] | permissive | OriHoch/knesset-data-k8s | f6fa12abdde9d7f929769938a3e82ea8fa364e3d | 0a9de5ecd1fc50f3607936500833e15de2ae8f80 | refs/heads/master | 2023-08-17T12:28:05.208947 | 2023-08-14T18:04:57 | 2023-08-14T18:04:57 | 116,827,286 | 0 | 0 | MIT | 2018-03-28T10:58:49 | 2018-01-09T14:35:09 | Shell | UTF-8 | Python | false | false | 838 | py | #!/usr/bin/env python3
import json
import subprocess
ALLOWED_IPS="""
212.80.204.81
5.100.254.253
194.36.91.251
212.199.115.150
212.80.204.206
194.36.91.165
5.100.248.220
195.28.181.207
212.115.111.44
212.115.111.199
83.229.74.79
83.229.74.80
194.36.90.155
"""
def main():
allowed_ips = [ip.strip() for ip in ALLO... | [
"ori@uumpa.com"
] | ori@uumpa.com |
b02560b0defdd18eb23f539beec3bddce578c929 | 4382c60f18aba351a2e7cdab7ce2793c2d27717c | /Algorithm 190902/N-Queen.py | 8cb26ea9eb6c4917e91ef390623b09c6de2f3091 | [] | no_license | vxda7/pycharm | e550b1db4cabe1a0fa03e140f33b028ef08bd4cb | ce29f682a923875b62a8c7c0102790eef11ab156 | refs/heads/master | 2020-07-03T11:27:27.807096 | 2019-11-15T08:50:32 | 2019-11-15T08:50:32 | 201,891,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | def find(N):
stack = []
stack.append([0,0])
# place.append([0,0])
cnt = 0
res = 0
ok = False
next = 0
while stack != []:
get = stack.pop()
col, row = get[0], get[1]
for i in stack: # 확인하는 곳
if i[0] != col and i[1] != row and i[0]+i[1] != col+row an... | [
"vxda77@gmail.com"
] | vxda77@gmail.com |
45febe6de65dd3e8d1ad838f075d14c9a9588b72 | baa6ba7246fb214c32451126d521919d5f9f40c5 | /pbrx/cmd/main.py | 22a43cea35cd05e4957e80f794fb70c5a554052d | [
"Apache-2.0"
] | permissive | emonty/shiny-octo-computing-machine | 52838f025fb60c69df78e8f6165d76780ef3c676 | 7fa0dab928196e4f9ef0a5110459e350059e2493 | refs/heads/master | 2020-03-08T12:21:51.197849 | 2018-04-04T19:52:12 | 2018-04-27T21:17:33 | 128,124,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | py | # Copyright 2018 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
74bdee5b7b4f80809a44c39f4990a698827c4318 | 85d380bc1fa9b5d091caab98951fec2bf7ae0407 | /hog_von_mises.py | ead3541b58e1645770d071fb461c792f1a2fddc4 | [] | no_license | bbbales2/faehrmann_hogs | 6b0469351d6a1e749fe00399474ee0466ab94fcb | 622ec582501041ff5e6dd50526d0e3d91de29f53 | refs/heads/master | 2020-02-26T13:39:05.916838 | 2016-06-23T23:20:30 | 2016-06-23T23:20:30 | 61,756,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | #%%
import pystan
import matplotlib.pyplot as plt
import numpy
import os
import itertools
import math
import scipy.integrate
import mahotas
import collections
import skimage.measure, skimage.io, skimage.feature, skimage.util, skimage.filters
import seaborn
import random
#
#,,
# '/home/bbales2/microhog/raf... | [
"bbbales2@gmail.com"
] | bbbales2@gmail.com |
c22f182daa3f1e38aa9cc338dd18a375ab6e398c | 13d0ad57a2f5deb83593e73843be7cbeeaad8d3d | /medium/longest_palindromic_substring.py | 50d56789db9b059cf53561ba450b02bb4226062c | [] | no_license | mwong33/leet-code-practice | b21f277d73b30df9e681499733baad07979480a1 | 9c0e6294bf3b3614b185f0760906abad60f8d9b6 | refs/heads/main | 2023-03-29T20:35:43.841662 | 2021-03-31T22:05:44 | 2021-03-31T22:05:44 | 317,382,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | class Solution:
# O(n^2) time O(1) space
def longestPalindrome(self, s: str) -> str:
if len(s) <= 1:
return s[0]
start = 0
end = 0
for i in range(len(s)):
length_1 = self.middleOut(s, i, i)
length_2 = self.middleOut(s, i, i+1)... | [
"noreply@github.com"
] | mwong33.noreply@github.com |
1ad003672fb2b8b55a75c3dcdb098c88cb9ebd98 | 4ace4d5a94ab0db79562f1b23edd6011a89148c6 | /src/airflow-stubs/contrib/task_runner/cgroup_task_runner.pyi | 4414ee2cae524c1466ecef790cd589d60586a9be | [
"MIT"
] | permissive | viewthespace/mypy-stubs | 9abebc2eab2b46b2230842f06114673e1a4de052 | 182fa275c4a7011eb5345694b88229adbddcc999 | refs/heads/master | 2023-06-07T18:52:46.739560 | 2023-06-01T22:05:27 | 2023-06-01T22:05:45 | 236,780,299 | 0 | 0 | MIT | 2022-01-11T20:53:55 | 2020-01-28T16:23:07 | Python | UTF-8 | Python | false | false | 551 | pyi | from airflow.task.task_runner.base_task_runner import BaseTaskRunner as BaseTaskRunner
from airflow.utils.helpers import reap_process_group as reap_process_group
from airflow.utils.operator_resources import Resources as Resources
from typing import Any
class CgroupTaskRunner(BaseTaskRunner):
process: Any
def _... | [
"andrew.marshall@vts.com"
] | andrew.marshall@vts.com |
507ee908ce5b75fda95f6fe95550269860a2ecbb | 1ce26dbce1da7dabb87e275ff9f49a6988a34b0b | /shops/models.py | 8789cd51b1e8525aad8d6eec6c3013595214bf11 | [] | no_license | eyobofficial/clothing-shop-app | 38d48ae12fb24265aac7ecbad650c41c785daf1c | 5bfc35f765b4ebf6916c306341597d217be60a1d | refs/heads/master | 2020-03-18T01:15:46.482548 | 2018-05-20T09:02:14 | 2018-05-20T09:02:14 | 134,135,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,624 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.contrib.auth import get_user_model
from django.conf import settings
from django.urls import reverse
def get_deleted_user():
return get_user_model().objects.get_or_create(username='Deleted')[0]
class CustomUser(AbstractU... | [
"eyobtariku@gmail.com"
] | eyobtariku@gmail.com |
91231887766eacf8e685b57bd6b7f460b361dead | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/798.py | 443a65047771e9eece0a19b643b46c7730fc197c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import sys
def read_case(l):
au = l.strip().split()[1]
return [int(x) for x in au]
def cant(c):
inv = [i - sum(c[:i]) for i in range(len(c))]
return max(0, max(inv))
def rint():
return int(rline())
def rline():
global linenr
linenr += 1
return stdin[linenr - 1]
global stdin
global l... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e745c490084e729003b83b40f597a6e997348317 | bc2df7e370e70aa3ccdab80bcecd5379d8ca222c | /bin/base/stuydy_recover.py | 257f038f1c7b201773df4497d9b1f00ca1704412 | [] | no_license | windyStreet/el-OAMP | 092fe39e938ff2bf499ea5790e3914e359ec2069 | 9a986629daab6b24722a7e18ea0e6593a77d451d | refs/heads/master | 2023-05-05T06:27:49.595082 | 2019-10-15T03:46:53 | 2019-10-15T03:46:53 | 371,572,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | #!/usr/bin/env python
# !-*- coding:utf-8 -*-
from bin.base.tool import RabbitMQ
from pymongo import MongoClient
from bin import init
if __name__ == '__main__':
conn = MongoClient('211.154.149.99', 27017)
db = conn.BBT_TrainRecord
record_set = db.processRecord
ds = {
"toolUser": "longrise",
... | [
"yq904276384@foxmail.com"
] | yq904276384@foxmail.com |
1c4dc3f363cf67370ac7a4c684739dccada90fdc | f6db8d85a3b41eed543959314d65927353a8229c | /W5/geolocation/migrations/0005_auto_20201207_1442.py | 687464ec4b4eab5b7af85f1f1b57254ccd0985cc | [] | no_license | NFEL/DjangoPaeez99 | d573cc8e36500f08bc104d76f7a2628062d86c2f | 621636bfb47d71f2a4f45037b7264dd5ebc7cdd7 | refs/heads/main | 2023-01-27T22:05:57.788049 | 2020-12-08T10:08:28 | 2020-12-08T10:08:28 | 304,553,353 | 1 | 2 | null | 2020-10-16T07:33:04 | 2020-10-16T07:33:03 | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.1.2 on 2020-12-07 14:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geolocation', '0004_address_lo'),
]
operations = [
migrations.RenameField(
model_name='address',
old_name='lo',
... | [
"nfilsaraee@gmail.com"
] | nfilsaraee@gmail.com |
f86ee34060570d42f42a0bd9f70543ce71859a55 | 5fd658211a0951e287742973618012b7d9f89e43 | /tennisblock/webapp/management/commands/local_host_entries.py | e9a7e7ac422add274661f5b80c3b0b1c2b7e0986 | [] | no_license | sharpertool/tennisblock | 6d14000d3d709ec339124e893ffc8a7cdfe73d8d | 82bec4179a5c487a588ff10d910c6c7a9c1014d6 | refs/heads/master | 2022-03-05T13:03:43.728596 | 2021-02-15T06:37:53 | 2021-02-15T06:37:53 | 148,848,726 | 1 | 0 | null | 2022-02-10T14:00:37 | 2018-09-14T22:43:16 | JavaScript | UTF-8 | Python | false | false | 1,340 | py | from os.path import exists
import re
from shutil import copy
from django.core.management.base import BaseCommand
from wagtail.core.models import Site
class Command(BaseCommand):
help = 'Generate output to be added to /etc/hosts file'
def add_arguments(self, parser):
parser.add_argument('--env', help... | [
"ed@sharpertool.com"
] | ed@sharpertool.com |
b5478f5ad21fcd76d7703d0c8a466721f17e07d0 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/stringReduction_20200722190200.py | ef338e3e8ae2885556338eaa1ee2321358b4f04a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | def string(str):
st = list(str)
count = 0
while count < 20:
for i in range(0,len(st)-1,2):
pair = st[i] + st[i+1]
if pair == 'ab' or pair == 'ba':
st.pop(i)
st.pop(i)
st.insert(i,'c')
break
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f55287dd1de797ed3a0460fd54cdcb062360a5f4 | 99a4817f852115f2f14d50cc6a99abbdb62c4218 | /Modulos/Modulo 02 - Deep Learning Frameworks/03 - Passoa a Passo/tensorcode08.py | 7071ad1ac1236324ed48246ed099bb9c60c6f37b | [] | no_license | eduardodimperio/formacao-inteligencia-artificial | cac290e1385a9770a7b492ef3e695124b0ac5499 | c5b50bad4908e8423fe384d90929a772f01787c3 | refs/heads/master | 2023-07-03T21:02:17.107564 | 2021-08-07T13:33:34 | 2021-08-07T13:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # Criando Tensores
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
print("\n")
# Criando um tensor preenchido com zeros.
tensor = tf.zeros(shape = [3, 4], dtype = tf.int32)
print(('Tensor preenchido com zeros como int32, 3 linhas e 4 colunas:\n{0}').format(tensor.numpy()))
print("\n")... | [
"angelicogfa@gmail.com"
] | angelicogfa@gmail.com |
97aba7f61ee1a790a8f6bc2b427fe23430b50d04 | f40cc44ebfc337326577c91cd88d0c1dd845b098 | /LuminarPythonPrograms/PythonToDatabase/SelectFromDBS.py | abfd684fd180b6d5bd3d4b9d24f0cf1e4182d452 | [] | no_license | Aswin2289/LuminarPython | 6e07d6f9bf6c8727b59f38f97f5779a33b2fab0d | ba633a276dd79bbf214cfceac2413c894eaa1875 | refs/heads/master | 2023-01-01T07:52:41.598110 | 2020-10-13T04:34:49 | 2020-10-13T04:34:49 | 290,109,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import mysql.connector
db=mysql.connector.connect(
host="localhost",
port=3307,
user="root",
password="Password@123",
database="luminarpython" ,
auth_plugin='mysql_native_password'
)
cursor=db.cursor()
try:
sql="SELECT * FROM EMPLOYEE"
cursor.execute(sql)
myresult=cursor.fetcha... | [
"aswinabraham4@gmail.com"
] | aswinabraham4@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.