blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
79cee0eb377abf4334aa24cfa9d979838ccb273e | b3b88d3ad0e23b4712059bdfd56fa89b0801faf3 | /neutron_plugin_contrail/plugins/opencontrail/loadbalancer/v2/loadbalancer_pool.py | 727c45cd819355edd8184956b8f947364a63b38f | [
"Apache-2.0"
] | permissive | tungstenfabric/tf-neutron-plugin | 3630c52db005c7efbc713cbdcc16064d7ca53f1b | 890e65d0091f81c8b55fb65fc574b257f813cea4 | refs/heads/master | 2023-08-17T14:24:14.134426 | 2023-08-13T18:00:50 | 2023-08-13T18:01:48 | 237,743,263 | 4 | 8 | Apache-2.0 | 2022-09-20T05:22:42 | 2020-02-02T08:51:02 | Python | UTF-8 | Python | false | false | 8,849 | py | #
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
import uuid
from neutron_lbaas.extensions import loadbalancerv2
try:
from neutron.api.v2.attributes import ATTR_NOT_SPECIFIED
except Exception:
from neutron_lib.constants import ATTR_NOT_SPECIFIED
try:
from neutron.common.exceptions impo... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
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 |
218116f516a12b14cfa3aac8e28571b20389bf31 | 019b885fb971359524943730af2d6b67e6d322d5 | /build/lib/presalytics_story/api/default_api.py | 945c5dc3a25429f711f782303f7797e3bc6ad453 | [
"MIT"
] | permissive | presalytics/story-python-client | ab9ce85e680dad2ceb70832935cc03318b6f0b3f | 48ac7830b85d65b94a9f6bbfc0c7ee8344327084 | refs/heads/master | 2020-08-04T23:22:34.877485 | 2019-12-27T22:54:30 | 2019-12-27T22:54:30 | 212,312,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81,410 | py | # coding: utf-8
"""
Communcations
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # n... | [
"kevin@chart-a-lot.com"
] | kevin@chart-a-lot.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 |
493df5864714a188c03125eef52ecfc3145f1d99 | 0fb6f0faa7e6d9b557ec43201f0edb2056ac08d6 | /python/baekJoon/arithOper/theFourFundamentalArithOper.py | 52544072db4d8ed931a9f2381ec886fe55a3c231 | [] | no_license | macoto35/Algorithms_Kata | a0bb167668aa4e8b678f9c5f47fc9142ade67553 | f92aec5674dc67be024f4ad04d40a85d09ef7b1e | refs/heads/master | 2021-07-07T13:21:16.805125 | 2020-07-21T01:25:34 | 2020-07-21T01:25:34 | 138,005,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | a, b = map(int, input().split()); print(a+b, a-b, a*b, a//b, a%b, sep='\n')
| [
"sohee.um@mercer.com"
] | sohee.um@mercer.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 |
87fa53c091769800a069ce7ec1fbf0d80f7b3b39 | 0a83fcb80e0eaa4ff44bb8d9d14668d04a10164c | /collective/easyform/browser/actions.py | 99af8b22ba6a1aa6466a99d204ca42c662983210 | [] | no_license | quintagroup/collective.easyform | 97b268ca16512094979bcb88bdbbe053c521c908 | e2ef62451eae750310656725787068425ba6b3f4 | refs/heads/master | 2023-01-10T14:14:15.020818 | 2016-06-09T19:23:45 | 2016-06-09T19:23:45 | 17,138,883 | 2 | 15 | null | 2022-12-27T14:53:37 | 2014-02-24T14:36:28 | Python | UTF-8 | Python | false | false | 11,034 | py | # -*- coding: utf-8 -*-
from Acquisition import aq_inner
from Acquisition import aq_parent
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from ZPublisher.BaseRequest import DefaultPublishTraverse
from collective.easyform import easyformMessageFactory as _
... | [
"krzroman@gmail.com"
] | krzroman@gmail.com |
a63262e1c0f892e91fd74142a07a6b0b86a245a3 | 524591f2c4f760bc01c12fea3061833847a4ff9a | /arm/usr/lib/python2.7/dist-packages/rosdep2/main.py | 86d5d764afde106c322a2bd226ff82c6f7fead2e | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | Roboy/roboy_plexus | 6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e | 1f3039edd24c059459563cb81d194326fe824905 | refs/heads/roboy3 | 2023-03-10T15:01:34.703853 | 2021-08-16T13:42:54 | 2021-08-16T13:42:54 | 101,666,005 | 2 | 4 | BSD-3-Clause | 2022-10-22T13:43:45 | 2017-08-28T16:53:52 | C++ | UTF-8 | Python | false | false | 34,688 | py | #!/usr/bin/env python
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# n... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
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 |
2b42981cb3c3c7962f733ce338ebbd731734a2f4 | f7499803d5b95b3fc076a8873100317ce6bc639d | /purity_fb/purity_fb_1dot4/apis/file_systems_api.py | 27b518256c0e69cd7f534c279390e3daf28ac800 | [
"Apache-2.0"
] | permissive | yongjianmu/purity_fb_python_client | 23ca2cf6880be836bfd411502678e9647e438637 | 9dd1afd5cd5c63324f8c0e0f8f31912667886091 | refs/heads/master | 2020-03-28T15:04:16.396302 | 2018-10-01T23:10:35 | 2018-10-01T23:14:14 | 148,552,355 | 0 | 0 | null | 2018-09-12T23:01:22 | 2018-09-12T23:01:22 | null | UTF-8 | Python | false | false | 21,116 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API, 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.4
Contact: info@purestorage.com
Generated ... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.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 |
049abc3f07bd8f1d11c09f59c92e3042d20a79cb | 4b6d5a775f9c1a0da28136dc10652390d0c5a6ba | /build/lib/xbos_services_getter/xbos_services_getter.py | 727822388f3d36beda9fd2a4a5e250de42ef0df8 | [] | no_license | daniellengyel/xbos_services_getter | c78aa6c66ec3a9be93551b62ae3d44b1e63b9492 | f7ca68b6c17bf72a79b9cd3e7f4eeb9d76631592 | refs/heads/master | 2023-07-22T14:19:53.916522 | 2019-08-19T18:16:37 | 2019-08-19T18:16:37 | 174,210,512 | 0 | 5 | null | 2023-07-05T20:53:11 | 2019-03-06T19:50:35 | Python | UTF-8 | Python | false | false | 47,124 | py | import grpc
from xbos_services_getter.lib import building_zone_names_pb2
from xbos_services_getter.lib import building_zone_names_pb2_grpc
from xbos_services_getter.lib import hvac_consumption_pb2
from xbos_services_getter.lib import hvac_consumption_pb2_grpc
from xbos_services_getter.lib import indoor_data_historical_... | [
"daniel.lengyel@berkeley.edu"
] | daniel.lengyel@berkeley.edu |
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 |
d95f09504e067973a8c951b1f9de6a4dfbc7f241 | 9dcd4f0b95f084e7a1c44d74ce812f5f9464a9d6 | /backend/manage.py | 5093d9c48a4bc5eaa2d3e5f3d7fd853cea0a9db5 | [] | no_license | crowdbotics-apps/plan-20540 | 42337154cad80e9f4256cded340bf1036189e285 | 8c5f6b8bca65be82e216ae2c8b256a64e2ab9f42 | refs/heads/master | 2022-12-18T04:06:37.124514 | 2020-09-21T23:15:19 | 2020-09-21T23:15:19 | 297,482,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plan_20540.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.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 |
ab9d0e899156ce165308ad2bee71b1107e9548ab | ea819acfd7486c0cb613acc89dba6be48502e65c | /test/test_bson.py | 5f068916fc9eee41fe9459e82d842934ada12313 | [
"Apache-2.0"
] | permissive | drg/mongo-python-driver | 5138b8ea0133b3a4a950a9312db42dc0ab81535c | f0382a3ef003b0c97fba0808bc5d22249085304e | refs/heads/master | 2021-01-24T04:21:03.739445 | 2009-09-23T15:26:53 | 2009-09-23T19:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,487 | py | # Copyright 2009 10gen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | [
"mike@10gen.com"
] | mike@10gen.com |
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 |
bb7445c4b8823d18bbfa187d22777592411f70d1 | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/seasons/client/challengetaskentry.py | 40bd3616f7d69a72a50f4485d485bf15326d58d2 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,563 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\seasons\client\challengetaskentry.py
import carbonui.const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.containerAutoSize import... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
640bb5c14c09f8ec02c9dacad2871708e2458f5d | 36da783434c28e605fa8ad71764e5173568f6d9a | /include/TestHydrusServer.py | b7ecf6d0c846e5c78b065841b29f8eeafe997f4f | [
"WTFPL"
] | permissive | wlerin/hydrus | 238550af37815a8eac727870f36b2ea3f616b817 | dab4e0131aa6d8e79da5753dd14c8c1b6cd9c169 | refs/heads/master | 2021-01-22T17:28:01.583906 | 2016-05-18T20:07:14 | 2016-05-18T20:07:14 | 59,448,048 | 0 | 0 | null | 2016-05-23T03:00:37 | 2016-05-23T03:00:37 | null | UTF-8 | Python | false | false | 28,930 | py | import ClientConstants as CC
import ClientData
import ClientFiles
import ClientLocalServer
import ClientMedia
import hashlib
import httplib
import HydrusConstants as HC
import HydrusServer
import HydrusServerResources
import HydrusSerialisable
import itertools
import os
import ServerFiles
import ServerServer
import shu... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
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 |
c961cee021b74de7528f7c6bf4dd84a756d25224 | 7b5c2eeae723cfda08a29d60845ba45c0eda54d7 | /demo/condition.py | 84be2d6db93b226c145988ec653f9abd28ff3f9e | [] | no_license | sankarmanoj/CTE-Python | 90b0cadd84442bf4678648536f29aadb66b86449 | 127f7fe3123c58975c1ed06e5e74fb0da4517b77 | refs/heads/master | 2020-01-27T09:58:42.168546 | 2016-11-11T13:38:06 | 2016-11-11T13:38:06 | 67,203,144 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | for x in range(100):
if x%3==0:
print x
| [
"me@sankar-manoj.com"
] | me@sankar-manoj.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 |
b6332d0f705af38d75004144447d9437b6cc3a1a | c6b5725f1317a5b16d8025365826acb3560cb9a6 | /HLTrigger/Configuration/python/HLTrigger_Datasets_PRef_cff.py | 8c499ed574c5d0d92b7ecb9aeb2ff4a542243aa5 | [
"Apache-2.0"
] | permissive | cms-patatrack/cmssw | d9f090b937225545911aa8d4ae8495ca230b50ee | 0a92cc7e09ca63a2cf505e99d6d890703ffe75dc | refs/heads/CMSSW_11_3_X_Patatrack | 2023-08-17T02:22:06.066802 | 2021-04-06T10:59:15 | 2021-04-06T10:59:15 | 113,325,755 | 4 | 7 | Apache-2.0 | 2021-09-01T21:23:46 | 2017-12-06T14:20:07 | C++ | UTF-8 | Python | false | false | 8,283 | py | # /dev/CMSSW_11_3_0/PRef
import FWCore.ParameterSet.Config as cms
# stream PhysicsCommissioning
from HLTrigger.HLTfilters.triggerResultsFilter_cfi import triggerResultsFilter as streamPhysicsCommissioning_datasetHLTPhysics_selector
streamPhysicsCommissioning_datasetHLTPhysics_selector.hltResults = cms.InputTag('Tri... | [
"Martin.Grunewald@cern.ch"
] | Martin.Grunewald@cern.ch |
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 |
3eaa3f58fe481870dbf16431a9e71d5aa1952112 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.2/fdtd3d/util/common.py | 0cdb6d40a03475f495280bd9770af503cbc10707 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,030 | py | import doctest
import unittest
def check_type(arg_name, arg, arg_type, element_type=None):
"""
Check the type of the argument
If the type is mismatch, the TypeError exception is raised.
When the 'arg's type is a list or a tuple,
each element's type is also checked.
>>> check_type('arg_name'... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
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 |
28373c3f1d49ddd45b27342982bd5c545849ae0f | d9fa8fee100b4a944009826f181896ba35985892 | /venv/lib/python3.7/site-packages/django/core/management/__init__.py | 503cd67ca8c35035b13d5770f988f988ac6c20cf | [] | no_license | Garima2505/swe1_app | 753fe53599e6535955f47305dc3336b48d97c047 | 56060792675af8946f4fb31d4ddeacb47586185f | refs/heads/master | 2022-12-23T03:55:10.667290 | 2019-10-16T20:58:07 | 2019-10-16T20:58:07 | 212,366,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,152 | py | import functools
import os
import pkgutil
import sys
from collections import OrderedDict, defaultdict
from difflib import get_close_matches
from importlib import import_module
import django
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django... | [
"gc2505@nyu.edu"
] | gc2505@nyu.edu |
7b1f943d3c5619b79aee733252222c093017888e | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_31938.py | 017da36e216e36f1227fb158380e0eaca4d4cd1f | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.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 |
a3d79b4cb2607b2a2b3e3d33d8952b975e6821a2 | 943449a56a53edce7a873b4023df9859bd931363 | /sdk/lusid/models/allocation_request.py | 73c628c34b434313ef323a824d1996daa6b674f4 | [
"MIT"
] | permissive | entityoneuk/lusid-sdk-python-preview | 47e1e6c38ba443ea5ce03b5e50bd89e70cc4b9ee | 4a78765bb1a55cd9a8fc258a2072b7a978e2a250 | refs/heads/master | 2022-04-23T04:31:00.775056 | 2020-04-24T11:15:32 | 2020-04-24T11:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,852 | py | # coding: utf-8
"""
LUSID API
# Introduction This page documents the [LUSID APIs](https://api.lusid.com/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://github.c... | [
"concourse@finbourne.com"
] | concourse@finbourne.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 |
ef51eee9d65771338c539f401afc3b2486178d7d | eb676eb94cd3d21d684108d25249f1d1437ccf50 | /tools/data/dota/split/img_split.py | f535652f073e4a6216d3b60327800a4f0005e600 | [
"Apache-2.0"
] | permissive | Ixiaohuihuihui/AO2-DETR | c11d5f2115180712907976b6a76d1526ba02f134 | bb9ae812c804260900b101f417e58d247eaa8ad7 | refs/heads/master | 2023-05-23T21:36:04.978670 | 2023-03-16T03:25:03 | 2023-03-16T03:25:03 | 496,444,703 | 62 | 9 | null | null | null | null | UTF-8 | Python | false | false | 19,534 | py | # Copyright (c) OpenMMLab. All rights reserved.
# Written by jbwang1997
# Reference: https://github.com/jbwang1997/BboxToolkit
import argparse
import codecs
import datetime
import itertools
import json
import logging
import os
import os.path as osp
import time
from functools import partial, reduce
from math import cei... | [
"1577884743@qq.com"
] | 1577884743@qq.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 |
b90fc66f5687bd6a65b348920111d97be910d581 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_instance_long_term_retention_policies_operations.py | 7360ed2e31356432ffc3fcbe52b5dc8c530e3b68 | [
"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 | 17,947 | 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 |
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 |
07177574b87754a20802a44993ef7080f3706469 | c058f51b99f91faebf27183b2b579e9f96e0d8f5 | /test/optim/utils/test_acquisition_utils.py | f494ef4e7ec3e22cb71b51768ac05bb8d26606d3 | [
"MIT"
] | permissive | pytorch/botorch | 255d62f698cc615c750e9343c278a63c7e96a586 | 4cc5ed59b2e8a9c780f786830c548e05cc74d53c | refs/heads/main | 2023-08-22T15:23:51.071048 | 2023-08-22T05:30:38 | 2023-08-22T05:30:38 | 142,940,093 | 2,891 | 373 | MIT | 2023-09-13T00:16:13 | 2018-07-30T23:59:57 | Jupyter Notebook | UTF-8 | Python | false | false | 10,735 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
import warnings
import torch
from botorch import settings
from botorch.acquisiti... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.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 |
439738cd92bfa58d3bde1f4adeada16f33045fbc | 41c824ce983c2a400ca6484b365d6f7ee077c8a3 | /tools/office_db/declarant_group_stat_data.py | 320cd51f82a57beffb7bd779eae0f925dfc285af | [] | no_license | TI-Russia/smart_parser | 2c84c12906e308229037c2bc75299a4b227e795e | 7428904975b2cf88cb329b8da11017cdebe8fa03 | refs/heads/master | 2022-12-10T06:40:43.852974 | 2022-08-05T11:06:18 | 2022-08-05T11:06:18 | 129,266,366 | 16 | 4 | null | 2022-12-08T11:18:29 | 2018-04-12T14:44:23 | HTML | UTF-8 | Python | false | false | 9,600 | py | from office_db.year_income import TYearIncome
from office_db.rubrics import get_russian_rubric_str
import json
import os
from collections import defaultdict
class TGroupYearSnapshot:
def __init__(self, median_income=None, incomes_count=None, declarants_count=None):
self.median_year_income = median_income... | [
"sokirko@yandex.ru"
] | sokirko@yandex.ru |
2f1128b354fee139b1e3aef954db438043fa9ef2 | 6c00681f86e22e137c9f0f5381f2f78552fb6d1e | /preprocess/build_graph.py | f8dec70676ce945112981f2a2b1a31ddf9de11db | [] | no_license | FoxerLee/TGCN | f967344ae79e5bc7924b2854465d86393d89406a | ffb48c154aaeaebaca5ad618aff9731cb7117409 | refs/heads/master | 2023-01-31T04:33:31.088815 | 2020-12-16T05:31:54 | 2020-12-16T05:31:54 | 312,063,455 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 12,963 | py | import os
import random
import numpy as np
import pickle as pkl
# import networkx as nx
import scipy.sparse as sp
from math import log
from sklearn import svm
from nltk.corpus import wordnet as wn
from sklearn.feature_extraction.text import TfidfVectorizer
from scipy.spatial.distance import cosine
import sys
sys.path.... | [
"foxerlee1@gmail.com"
] | foxerlee1@gmail.com |
78f8b5c22b9ff3f3ef52fe996a14a3184da876c5 | bd1b1fda138e6687dadc57317c3e312bc8872600 | /mycode/lintcode/Binary Tree & Divide Conquer/69 Binary Tree Level Order Traversal.py | 773f44f7eaff2c8f8e55118bc84c3419688ff279 | [] | no_license | dundunmao/lint_leet | fc185038f57e0c5cbb82a74cebd4fe00422416cb | 5788bd7b154649d2f787bbc4feb717ff2f4b4c59 | refs/heads/master | 2020-11-30T04:56:25.553327 | 2017-10-22T07:11:01 | 2017-10-22T07:11:01 | 96,705,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # -*- encoding: utf-8 -*-
# 给出一棵二叉树,返回其节点值的层次遍历(逐层从左往右访问)
#
# 您在真实的面试中是否遇到过这个题? Yes
# 样例
# 给一棵二叉树 {3,9,20,#,#,15,7} :
#
# 3
# / \
# 9 20
# / \
# 15 7
# 返回他的分层遍历结果:
#
# [
# [3],
# [9,20],
# [15,7]
# ]
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None... | [
"dundunmao@gmail.com"
] | dundunmao@gmail.com |
e0d1bccb62af7b5c0d1f98c92f261a00027045ca | 4095ac8b38a295ecdb12ab7c61c5a347f48ceac0 | /src/LightweightGAN.py | 13790b8f8f24cb98bb23972e9e13d109f4632411 | [
"MIT"
] | permissive | inoue0406/adversarial-nowcasting | 51b04cb4b3111bd8491c7d33c269eeee04e6a63e | 431f6bc4b7d731e85ca52f1bf81638b31c4be17e | refs/heads/main | 2023-02-08T20:11:41.930204 | 2021-01-05T09:43:57 | 2021-01-05T09:43:57 | 319,322,983 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,412 | py | import math
from math import log2, floor
import torch
from torch.optim import Adam
from torch import nn, einsum
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
from torch.autograd import grad as torch_grad
from einops import rearrange
from kornia import filter2D
from gsa_pytorch imp... | [
"inoue0406@gmail.com"
] | inoue0406@gmail.com |
ce047380b982dcab9cf772b0ee014ca21ac67c17 | 774353c913eb170ec15ca881cd2bae43121b99e1 | /58135918-give-grayscale-image-color/give_grayscale_image_color.py | d81a90bd165f1d11361546301466835bf984d0f2 | [
"MIT"
] | permissive | nathancy/stackoverflow | b83bdca4f44fd523259b551301a7371e03fb8493 | ed5a00319ad3a2c7631825e17963c392aee5a103 | refs/heads/master | 2022-05-19T15:09:37.883623 | 2022-05-14T20:21:19 | 2022-05-14T20:21:19 | 175,527,064 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import cv2
import numpy as np
before = cv2.imread('2.png')
b, g, r = cv2.split(before)
np.multiply(b, 1.5, out=b, casting="unsafe")
np.multiply(g, .75, out=g, casting="unsafe")
np.multiply(r, 1.25, out=r, casting="unsafe")
after = cv2.merge([b, g, r])
cv2.imshow('before', before)
cv2.imshow('after', after)
cv2.wait... | [
"nathancy@hawaii.edu"
] | nathancy@hawaii.edu |
026fccd199ba8df764511f787fe16bf0d38b5c75 | 9068f861ce5ee8908866b0da94dc375fbec1bfa3 | /manage.py | 93e1e652793e954f073805e16f5b57d0a01cd0e8 | [] | no_license | nanfengpo/flask_flasky7 | b1e421e4a64284aabf42a1f6c559863068a13e45 | 170a19b3bd0bdb59a7ddaee62f49a74fa19c1657 | refs/heads/master | 2021-01-02T08:11:27.315798 | 2017-08-03T09:13:35 | 2017-08-03T09:13:35 | 98,955,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | #!/usr/bin/env python
from app import create_app, db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = create_app('default')
manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run() | [
"lsxxxxxx@126.com"
] | lsxxxxxx@126.com |
5aa485fdb364c75c6362321c665b13828904d5fc | 328afd873e3e4fe213c0fb4ce6621cb1a450f33d | /GeeksforGeeks/insertionsort.py | 0bbde62db8c7da07f2e9b7c847cde885a6d3d3e5 | [] | no_license | TorpidCoder/Python | 810371d1bf33c137c025344b8d736044bea0e9f5 | 9c46e1de1a2926e872eee570e6d49f07dd533956 | refs/heads/master | 2021-07-04T08:21:43.950665 | 2020-08-19T18:14:09 | 2020-08-19T18:14:09 | 148,430,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def insertion(arr):
for vals in arr:
values = arr.index(vals)
while(values>0):
if(arr[values-1]>arr[values]):
arr[values-1] , arr[values] = arr[values] , arr[values-1]
else:
break
values-=1
return arr
arr = [1,12,3,14,6,... | [
"sahilexemplary@gmail.com"
] | sahilexemplary@gmail.com |
9214fcf06416f698b932ed0b9d0c76ea4f1e7d85 | 64643d3f814c2eb30dd2f86850980f48ac1486ba | /spektral/layers/convolutional/gin.py | 79a988972dc60a5c0d95f8e8b989a4d19b6a29c7 | [
"MIT"
] | permissive | Prashant118/spektral | 275e550baf08a2bd5354e8fefdf60a6a686d0af0 | dbf769b0ad47318f354a2de40a87ed8893d9b2fe | refs/heads/master | 2022-04-23T10:37:58.084038 | 2020-04-21T10:05:53 | 2020-04-21T10:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,466 | py | import tensorflow as tf
from tensorflow.keras import activations, backend as K
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
from spektral.layers import ops
from spektral.layers.convolutional.gcn import GraphConv
class GINConv(GraphConv):
r"""
A Graph Isomorphism Ne... | [
"daniele.grattarola@gmail.com"
] | daniele.grattarola@gmail.com |
16b09f8ce664b418c75168ef19854b8ba981583b | 6ef3fc3ffa5f33e6403cb7cb0c30a35623a52d0d | /samples/snippets/product_search/import_product_sets.py | e2937509d632f68848329098d09d96a678ee704e | [
"Apache-2.0"
] | permissive | vam-google/python-vision | 61405506e3992ab89e6a454e4dda9b05fe2571f2 | 09e969fa30514d8a6bb95b576c1a2ae2c1e11d54 | refs/heads/master | 2022-08-15T08:40:35.999002 | 2022-07-18T16:04:35 | 2022-07-18T16:04:35 | 254,789,106 | 0 | 0 | Apache-2.0 | 2020-04-11T03:59:02 | 2020-04-11T03:59:01 | null | UTF-8 | Python | false | false | 3,472 | py | #!/usr/bin/env python
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | [
"noreply@github.com"
] | vam-google.noreply@github.com |
84f9a4867be76726bae44972eac88cfb0c3d2da4 | e61e0558b459b9880b3bc103a0c4035c1fc52be5 | /azure-cognitiveservices-language-textanalytics/azure/cognitiveservices/language/textanalytics/models/error_response.py | a522682d06949f555050322c4624ccb2bc321960 | [
"MIT"
] | permissive | OnlyAGhost/azure-sdk-for-python | 67f713702fe573d14dde3590ca634a4a36130721 | 6bbab4181bbabf5db1c278dda870598acc9f0021 | refs/heads/master | 2021-05-13T13:55:53.118773 | 2018-01-05T02:17:19 | 2018-01-05T02:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
cc6e729c10f0317cca13583dd97f7ab225bbe522 | c6760258b3ad3dd912f0842b8ae03cbea188a8c4 | /fsleyes/gl/gl21/glmip_funcs.py | eec134d2181a654a6a1d2bbcdeaf389801c27998 | [
"BSD-3-Clause",
"CC-BY-3.0",
"Apache-2.0"
] | permissive | sanjayankur31/fsleyes | aa822f627cde38ec766180fb591c9af7d18d2126 | 46ccb4fe2b2346eb57576247f49714032b61307a | refs/heads/master | 2020-04-09T08:41:18.380424 | 2018-12-03T11:44:51 | 2018-12-03T11:44:51 | 160,204,259 | 1 | 0 | null | 2018-12-03T14:31:31 | 2018-12-03T14:31:31 | null | UTF-8 | Python | false | false | 3,501 | py | #!/usr/bin/env python
#
# glmip_funcs.py - Functions used by GLMIP for rendering in an OpenGL 2.1
# environment.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module contains functions used by the :class:`.GLMIP` class for
rendering in an OpenGL 2.1 environment.
"""
import numpy as np
import fsl.utils... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.