blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3bd92e1102046ab3d54741f341c1a6b9dce8bb83 | 9bb9bbc258f04c2493ecac1e7111119dc96e42ab | /PythonDatabaseProject/ClientTest.py | 96cb0e993f8bd534dae31afc17ffa1c54b8d507a | [] | no_license | MahoneyH/SchoolWorkPython | ecd622324c5a857aa234fa2f762c2d8fa4c1094d | 9192ccca17a7b21b809a2346d58f952f15e05268 | refs/heads/master | 2020-12-27T22:10:49.115279 | 2020-02-03T23:01:33 | 2020-02-03T23:01:33 | 238,078,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # Author Hunter Mahoney/Erika Tix
# Created 4/9/19 Updated 4/10/19
# Test file to connect MongoDB Atlas and Pycharm
import MenuCreations
import AdminLogin
def main():
client = AdminLogin.loginDatabase()
MenuCreations.loginSignup(client)
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | noreply@github.com |
f486f1646c5aee7e78087c10701847e789eca729 | 4ade1bb7226d69d653065deabf9ffc0885d61791 | /sources/structurebuilder/plugins/copy_paste_plugin.py | 1c41c341fc9499626c794c4a7e0e678ebb86d5bb | [] | no_license | zalt00/Game2 | 030ffe9ef53d72b0c4f835bf9e4653036d2f482c | aa7d39ff96b4d737bdcc05085522bfd67755b332 | refs/heads/master | 2023-06-19T23:30:06.732897 | 2021-07-13T17:09:13 | 2021-07-13T17:09:13 | 239,285,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # -*- coding:Utf-8 -*-
from .plugin_base import PluginMeta, AbstractPlugin, command
import pygame
pygame.init()
__plugin_name__ = 'CopyPastePlugin'
class CopyPastePlugin(AbstractPlugin, metaclass=PluginMeta):
def __init__(self, app):
super(CopyPastePlugin, self).__init__(app)
self.copied_subtab... | [
"leberre.amedee@gmail.com"
] | leberre.amedee@gmail.com |
0a4496a02194dde02d89f94e065bb5e8d08c414d | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /leave/migrations/0011_auto_20170216_1404.py | 583d88c706e6ecb11c94de53c4d77eac4b435c0f | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-16 11:04
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leave', '0010_auto_20170215_1712'),
]
operations = [
migrations.RenameModel(
... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
e5d626a8e29cff942cabd559358ec0fa0a02efdd | f6d62be29514e0ca2fe72d66ce5b300a45a67abd | /src/MyWeb/config.py | 1531d17322a416641507fc5b9aac2a7e1d3e571c | [] | no_license | johnhuzhy/MyPythonExam | 63f9f3d11074f11423b25ed37b0bc9def26b3ca4 | f4988ba0f18f333ff1832c218aa2654ac16b403e | refs/heads/master | 2022-12-16T10:51:35.600279 | 2020-09-17T12:04:28 | 2020-09-17T12:04:28 | 259,513,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # APP配置
SERVER_HOST = 'localhost'
SERVER_PORT = 2345
DEBUG = True
# DB配置
DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'test'
PASSWORD = 'zaq12wsx'
DB_HOST = 'localhost'
DB_PORT = '3306'
DATABASE = 'huzhy'
SQLALCHEMY_DATABASE_URI = f"{DIALECT}+{DRIVER}://{USERNAME}:{PASSWORD}@{DB_HOST}:{DB_PORT}/{DATABASE}?charset=... | [
"johnho560@gmail.com"
] | johnho560@gmail.com |
109a21b79abddfbc7f76c75cdba728b887a8d0ef | 9343c9a43e1940b6ca7e96d0891edef385389083 | /labs/lab3/train_hvd_1.py | 197c1a2711684a9cc98dccd1718f112ce9c71686 | [
"MIT"
] | permissive | luyuliu/CSE-5194 | 4441301d283820e45d64b3503061221082cf334b | 52970106c21b30e64d4cf1df26bec09929494060 | refs/heads/master | 2020-07-09T17:19:47.994233 | 2019-12-26T15:13:56 | 2019-12-26T15:13:56 | 204,032,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,253 | py | from __future__ import print_function
import argparse
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
import torch.utils.data.distributed
import horovod.torch as hvd
import collections
import random, time, os
import torch
from utils impor... | [
"liuluyu0378@gmail.com"
] | liuluyu0378@gmail.com |
f3e6a56ad13c3ca60eee69d6fcdd140bdd25a488 | 6bf2ca52c3dcc3f2507c9643e5c0643bda26e65d | /application.py | c3c200a7fb657a44fc1638b403f3ee400572e677 | [
"Apache-2.0"
] | permissive | dilipforlearn/hyperledgercomposer-pizza-on-the-blockchain | d47b2f26be183250f0234f36d2db56d6a5ee6a56 | 01ae134d6e3fccd72a15b8d69739fac6b4eb6c8f | refs/heads/master | 2022-12-07T00:22:50.867139 | 2020-08-18T17:14:16 | 2020-08-18T17:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | from flask import Flask, render_template, request, redirect
import requests
import json
import random
import os
import dateutil.parser
app = Flask(__name__)
# Helper function to parse the raw string from the Blockchain
def myOwnerFunc(newOwner):
return newOwner.split("#")[1].title()
# Helper function to get th... | [
"bharath.fpl@gmail.com"
] | bharath.fpl@gmail.com |
438dfdf0b19a083bd9b1157b53d2919d688c2a8a | 958b0471c52eff93415216cdd1a2b2ad3947a89b | /blueoil/templates/lmnet/object_detection.tpl.py | cf5170303d51745396007741b7ffa0160df7ae0d | [
"Apache-2.0"
] | permissive | fumihwh/blueoil | 4deb606e334b8456e7ace41e3f091ad6dc41afb6 | acb5a270f201f34fe5a5b27a4b395d9c3a838b27 | refs/heads/master | 2020-04-01T22:29:27.525697 | 2018-10-18T09:23:37 | 2018-10-18T09:23:37 | 153,711,347 | 1 | 0 | null | 2018-10-19T01:49:02 | 2018-10-19T01:49:02 | null | UTF-8 | Python | false | false | 4,402 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"matsuda@leapmind.io"
] | matsuda@leapmind.io |
3c38660ec4d35e0550e8ee0a5d07cfa3e6b542e2 | 0486a473653b4f74581d063de54ff9c9f66a05a5 | /scripts/fmri/cluster_automator.py | 8e9ccaf199091a93f7d8a3970629035565289f6b | [] | no_license | mlko53/cultsid | 845b710fe847a520d3e886e6f5d9b803d8a8d4db | 7819d3f8acbe2d0353a36ac3a54d644916371d9d | refs/heads/master | 2021-11-30T02:35:45.744875 | 2021-11-14T07:08:02 | 2021-11-14T07:08:02 | 150,183,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | import os, glob
import subprocess, sys, stat
def find_folders(topdir):
possible = glob.glob(os.path.join(topdir,'*'))
dirs = [x for x in possible if os.path.isdir(x)]
return dirs
def pair_names_ttests(curdir):
ttests = glob.glob(os.path.join(curdir,'*.HEAD'))
ttests = [x for x in ttests if "anat"... | [
"mlko53@stanford.edu"
] | mlko53@stanford.edu |
34a633497e3a44d758897514e1b6958fd30f03ad | 68904e9046a7752d8e2dc298c89c0a91acbce2c6 | /Scripts/PasswordGen.py | 498baee01e0d95b6a6374873601ac9f590f0a857 | [] | no_license | jernkalv/PythonScripts | ed05f71a29bedf6e17996b4fa1af2a7ade8cbf50 | 7364ab002a31a84b0e0be5b0b36cef4fcd5fcf76 | refs/heads/master | 2020-06-16T12:20:34.469764 | 2019-07-06T18:34:43 | 2019-07-06T18:34:43 | 195,571,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import string
import random
def randompassword():
chars = string.ascii_uppercase + string.ascii_lowercase + string.digits + string.punctuation
size = random.randint(16, 16)
return ''.join(random.choice(chars) for x in range(size))
print(randompassword()) | [
"noreply@github.com"
] | noreply@github.com |
f038bc2b9a17df1850673d6ae03947a746749459 | 00f795bc3dba31a599a14a9eaace3285393fc041 | /w3school/7.python_strings/3.py | 3382bf4700a393d60f2b1bc258194d4f6677caa8 | [] | no_license | Khalida02/Week1 | fa02bb9dccdd62303f3f997153775d06877df33b | f8d5bb37b7d5c95fb1047afed639bf1df88aa40a | refs/heads/main | 2023-02-26T02:40:19.048797 | 2021-02-04T12:07:52 | 2021-02-04T12:07:52 | 334,925,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #looping through a string ("for")
for x in "banana":
print(x) | [
"khamitovakhalida@gmail.com"
] | khamitovakhalida@gmail.com |
3c7e62a6c66c81cb67ff59aea32164ad5a60a0b9 | 03bab1898e74de03b7fa4666ffc9aafd061f091d | /pegasusio/citeseq_data.py | 54711f148a6c0d2af1a0d37d62ab2b86f7340c37 | [
"BSD-3-Clause"
] | permissive | slowkow/pegasusio | e289dea8ca4faefeec9662982d4af1654094d0e0 | 4531e0c6b4e4e42e689fbb652141b0428bb55c8c | refs/heads/master | 2022-11-19T05:21:21.870520 | 2020-06-25T01:56:22 | 2020-06-25T01:56:22 | 279,089,575 | 0 | 0 | null | 2020-07-12T15:10:48 | 2020-07-12T15:10:47 | null | UTF-8 | Python | false | false | 8,068 | py | import numpy as np
import pandas as pd
from scipy.sparse import csr_matrix, hstack
from typing import List, Dict, Union
import logging
logger = logging.getLogger(__name__)
import anndata
from pegasusio import UnimodalData
from .views import INDEX, _parse_index, UnimodalDataView
class CITESeqData(UnimodalData):
... | [
"bli28@mgh.harvard.edu"
] | bli28@mgh.harvard.edu |
0a353c72cd5ac4e94f92a45c266db3301dd4e75d | 55550afe1c18aacba9a481c690755cb7395d35f1 | /Week_02/G20190343020265/LeetCode_429_0265.py | 8c27174ae38c6a831080ec3ed80dc81bc566fcc5 | [] | no_license | algorithm005-class02/algorithm005-class02 | eb5c0865fbb2c58362fddcd4fc8f8b9d02bb208c | 1a1abf5aabdd23755769efaa6c33579bc5b0917b | refs/heads/master | 2020-09-22T11:48:20.613692 | 2020-03-02T05:31:11 | 2020-03-02T05:31:11 | 225,177,649 | 45 | 153 | null | 2020-03-02T05:31:13 | 2019-12-01T14:47:06 | Java | UTF-8 | Python | false | false | 2,476 | py | #
# @lc app=leetcode.cn id=429 lang=python3
#
# [429] N叉树的层序遍历
#
# @lc code=start
"""
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
# 同理采用层序遍历 BFS遍历算法,同 102题的二叉树层序遍历
# 将左右固定子节点,改为从左到右遍历不定子节点,其余逻辑这里不再赘述
... | [
"noreply@github.com"
] | noreply@github.com |
96906e376a4af7963a035409f8261f16fadf899b | 90882544c78d7bc5eb603a75dfdd711d79c817d4 | /blockfinder.py | 583065509ce628fa44fd32daa493ccfa8059fd11 | [] | no_license | phishing-factory/tools | 783457eb4cda1dae425faaa78e787a157bd0aa61 | 36c52d2cbe0211a2b98fecb5751d8bad8340b0a8 | refs/heads/master | 2021-01-22T18:28:59.406868 | 2016-04-07T18:15:43 | 2016-04-07T18:15:43 | 55,841,042 | 2 | 1 | null | 2016-04-09T11:36:18 | 2016-04-09T11:36:18 | null | UTF-8 | Python | false | false | 474 | py | #!/usr/bin/env python2
#author: mp
#comment: pull a list of IPv4 address for a given country
import urllib2
from BeautifulSoup import BeautifulSoup as Soup
import sys
soup = Soup( urllib2.urlopen( "http://www.nirsoft.net/countryip/" ).read() )
for i in soup.findAll( "a" ):
if sys.argv[1] in i.text:
csv = ... | [
"mikepicard01@gmail.com"
] | mikepicard01@gmail.com |
288b78324fb141293f276b8450ce623a37c75a11 | 56e91fa45e87b265510239e27e50de7e2b83962d | /CustomUsers/migrations/0002_auto_20190714_0249.py | da3a5bbfd1b27995d3063aa3e258ea52055aba83 | [] | no_license | CheloVek0116/Hackaton2019_HACKU | 9a55f86708fc5f4787c679169c61d19f1352477c | 7f7f851a3b508a4b48df719b22c9c17c624750c2 | refs/heads/master | 2020-06-19T17:14:19.328835 | 2019-07-14T05:34:37 | 2019-07-14T05:34:37 | 196,797,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # Generated by Django 2.2.1 on 2019-07-14 02:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CustomUsers', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='Biology',
... | [
"megabalabol@mail.ru"
] | megabalabol@mail.ru |
a09aed9f91b719c1f98b95de09433e1fabe666fd | d8d0aff23cd7784889f7024d542c71c52fc1ef87 | /travello/urls.py | 28e05178c7f6a74937bf25ce3d1f8b2db1f3d6f5 | [] | no_license | AkibSamir/Travellobd | bd6232c49c5309556407a6d9dd4142cb3e2f8d00 | 2a458fc90c605f6bd51a1b4696e3d3373bb8a1ad | refs/heads/master | 2023-06-19T04:09:59.727302 | 2021-06-22T14:53:41 | 2021-06-22T14:53:41 | 379,306,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from . import views
from django.urls import path
urlpatterns = [
path('', views.index),
] | [
"akibsamir@gmail.com"
] | akibsamir@gmail.com |
e6b58d96f7f155d934cca84b30951a45f3b3a1ef | 39b46908c644092202261589e0a571b5e46cfc64 | /Serial/Change.spec | e354af158ab7f13231c413c705b5cb1fec68a930 | [] | no_license | rhkdrod12/python_practice | 7d66f31d5a3e0c707722f5434275e3fe4f5c0df2 | 40709ae98afd3d81c7a1353e887926f54524ba60 | refs/heads/master | 2023-02-17T06:48:56.897390 | 2021-01-06T07:24:07 | 2021-01-06T07:24:07 | 327,233,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Change.py'],
pathex=['C:\\Users\\Kim\\PycharmProjects\\Serial'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"rhkdrod12@gmail.com"
] | rhkdrod12@gmail.com |
a9ec02750c300b803142d6a698722a631793409d | ce0e6ddde201fbd92a63d9c227caac42be134495 | /1037.py | 58746c89a4e26a56ca3d9ad2af0f5550bb2f2b51 | [] | no_license | whlg0501/2018_PAT | 40a961885cc528f6542558da3bb642ae6c08e5fa | 3a9c7af5f98e92fcb47fec1bd879f5679cea83b1 | refs/heads/master | 2020-03-22T15:21:57.612376 | 2018-07-30T14:57:23 | 2018-07-30T14:57:23 | 140,247,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | """
1037 在霍格沃茨找零钱(20)(20 分)提问
如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),
二十九个纳特(Knut)兑一个西可,很容易。”
现在,给定哈利应付的价钱P和他实付的钱A,你的任务是写一个程序来计算他应该被找的零钱。
输入格式:
输入在1行中分别给出P和A,格式为“Galleon.Sickle.Knut”,
其间用1个空格分隔。这里Galleon是[0, 10^7^]区间内的整数,Sickle是[0, 17)区间内的整数,Knut是[0, 29)区间内的整数。
输出格式:
在一行中用与输入同样的格式输... | [
"314905605@qq.com"
] | 314905605@qq.com |
6186b22b3a120dabe4ba8f3d591b10995ca352d9 | 79aaa3d38c0296d0c0572fd77bfbe24bb2ee4adb | /hierarchical.py | 2f3e94e305cd6f44d79663a50a335dce6850e48a | [] | no_license | ixicrom/droplets | 809cb3e939211b6a50acd71a47468707e01661f3 | c0e52a0a1be2aed8ad321430feee6c4c3b510a85 | refs/heads/master | 2021-07-20T06:01:24.962827 | 2021-02-11T16:39:04 | 2021-02-11T16:39:04 | 241,429,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | from processing_tools import *
from sklearn import cluster
imPath = '/Users/s1101153/Desktop/droplet_stacks/63x/final_images/ims_to_read/'
infoFile = '/Users/s1101153/Desktop/droplet_stacks/63x/stack_info.csv'
# %% calculating variables from wedge slices
slices = pd.read_pickle('/Users/s1101153/Desktop/droplet_stack... | [
"e.m.gould@sms.ed.ac.uk"
] | e.m.gould@sms.ed.ac.uk |
928ee73b547edff31da465fab745ca2942961c31 | 178082c190f58c8e6346350c08875a0292fc143b | /v1.0/aaa.py | cd6760335b54996689e1aa098f71ddd061e46548 | [] | no_license | Engy-22/CFBBettingModel | ae9ff28f76a35de941ae463156315472d3fa0f1e | a5b64eb4eafb7becef9f9ec1cebf227bb7f8ceee | refs/heads/master | 2023-07-17T20:52:40.841416 | 2021-08-30T17:54:32 | 2021-08-30T17:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from evalPredictions import testFitAlt
import pandas as pd
bigboy = pd.read_csv('./csv_Data/test_predictionsAlt.csv', encoding = "ISO-8859-1")
testFitAlt(bigboy,5,5,100)
| [
"jjmittenthal@crimson.ua.edu"
] | jjmittenthal@crimson.ua.edu |
835ca98173120362129fb06185e42175a34c08b0 | e6f5ace07bd7e4f2cdae2a9f1991a131b526fffc | /simulation-rtt-studio-arm2d/gcc-arm-none-eabi-10.3-2021.07/arm-none-eabi/lib/thumb/v8-m.main+fp/hard/libstdc++.a-gdb.py | 783b8951ad10d5efdf575212723fc695f77bc325 | [] | no_license | easyzoom/mimiscript-demo-stm32 | 58fc64c87688026af6ab3cfa73dab0ca4d9caa8e | 55b0fe1e3bebb08fb1aec3eb7e6369fd80840e86 | refs/heads/main | 2023-07-15T17:15:42.651764 | 2021-08-25T02:16:07 | 2021-08-25T02:16:07 | 393,065,997 | 1 | 0 | null | 2021-08-15T09:00:24 | 2021-08-05T14:09:04 | C | UTF-8 | Python | false | false | 2,613 | py | # -*- python -*-
# Copyright (C) 2009-2020 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later versio... | [
"graduateDesign@example.com"
] | graduateDesign@example.com |
a11c5f527cc9e3679e318cc73c87300a85e7b1c0 | f86490b83b14d3679a0eccb944716967f76e137f | /Django/08_django_form_axios/articles/views.py | ac292734e9780eab8f7cee739bdd7c199f5d673a | [] | no_license | Sunaaaa/TIL | 63ba35b2995ac25d57c340f329b37079f21276a7 | 86b1d1881fff74f0d63976278213b65d4380e6c0 | refs/heads/master | 2022-12-06T07:02:36.748105 | 2020-02-18T14:29:03 | 2020-02-18T14:29:03 | 216,502,919 | 3 | 3 | null | 2022-12-04T18:30:28 | 2019-10-21T07:21:36 | Python | UTF-8 | Python | false | false | 9,066 | py | from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import get_user_model
from .models import Article, Comment, Hashtag
from .forms import ArticleForm, CommentForm
from I... | [
"glglthssla@naver.com"
] | glglthssla@naver.com |
ffce63d94730102d0599826ce2ea7e70963a22c9 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/openapi_client/models/process_instance_modification_dto.py | a2247513acf2154c0228b1c01bcedaba8beea8c1 | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 7,337 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
clas... | [
"noreply@github.com"
] | noreply@github.com |
c0eb4bc8412ecaaaa4487ae33bba16b07ed34654 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week06/c11_02.py | 6f2b70e99e3507ef95e9e833368280cb7b5ebef7 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021/1/30 21:06
# @Author : john
# @File : c11.py
# 使用type元类创建类
def pop_value(self, dict_value):
for key in self.keys():
if self.__getitem__(key) == dict_value:
self.pop(key)
break
# 元类要求,必须继承自type
class DelVal... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
d3b9028eaf77fa86a0f7717bc3955468cf7d093a | cd55982889d04b5954526e64687ff74349b4d860 | /pics/scripts/03_05_fig3e.py | b2041f4d98add3c9c519cb90c3f8c6a1d731aeaf | [] | no_license | ba29534/chira2018 | 6b9211004db2c7722bd22b3d1822e63eb382904c | 99d240ae9dcc505557751296a019bca62b7a5980 | refs/heads/master | 2020-03-11T16:02:28.736847 | 2019-09-27T18:18:55 | 2019-09-27T18:18:55 | 130,104,085 | 1 | 0 | null | 2018-06-06T17:27:34 | 2018-04-18T18:17:34 | Jupyter Notebook | UTF-8 | Python | false | false | 3,786 | py | ##############################################################################
## This script reproduces Fig. 3e of Chira et al. (2019). ##
##############################################################################
# import required python packages
import numpy as np
import matplotlib.pyplot as ... | [
"roxanachira@roxanas-mbp.speedport.ip"
] | roxanachira@roxanas-mbp.speedport.ip |
b999c383916b930e91d7b80e6d994ad36fa45cf8 | f10e846f65e0d8edaa08dfae9d6701ac3fba9310 | /kohakucc_hostus/asgi.py | 2d87d296993552da5624fc0ad02fbc0b999b3e0d | [] | no_license | VincentGau/kohaku.cc | a4d3cb52b1bcc0001405b9d7a1dd207ce8cbadd4 | 972b4e501bacb492fb96e0cc9c5eb46e0e0b0c9d | refs/heads/master | 2021-01-19T14:59:44.820221 | 2018-01-17T06:45:57 | 2018-01-17T06:45:57 | 100,926,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from channels.asgi import get_channel_layer
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kohakucc_hostus.settings")
channel_layer = get_channel_layer() | [
"g@kohaku.cc"
] | g@kohaku.cc |
717763b7957bea7c4c518391943e5fb6c44747b2 | 157fd6b404d179dbe47793e52d68c8337fbc35f0 | /savage/matOp.py | 2293770b30ec57c8836c829ad911d134395f54f7 | [] | no_license | DWFry/cltcodeninjas | ef808b50340b93eed6e28ed414ccee1b2f76de95 | d65f8143fca1f717d86c873f9971289844a63929 | refs/heads/master | 2016-08-04T04:53:51.734421 | 2014-02-05T01:23:06 | 2014-02-05T01:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | ## module for adding math functions.
## may move over a lot of function from particleObj to be called from here
## Operations to be added: scalar and vector products, inner and outer, trig functions, etc. | [
"savagedogg38@gmail.com"
] | savagedogg38@gmail.com |
30d160a89cb021b89ffa3a81257339d90f223c24 | b44df2be270793884ca5bd5e79d22c991edae001 | /app/auth/views.py | 9ac180988110a27bb0106dfd45b959fc130d2335 | [] | no_license | Wakarende/Blog | d45c423be8a86227ad4106bbdae429a79ef3dcf2 | 2e2d2f89c55c4f5dbe0cf6fe09f83212bf905f5c | refs/heads/master | 2023-04-23T00:18:47.343723 | 2021-05-05T06:46:51 | 2021-05-05T06:46:51 | 363,127,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from flask import render_template,redirect,url_for,flash,request
from . import auth
from flask_login import login_required,login_user,logout_user
from ..models import User
from .forms import RegistrationForm,LoginForm
from .. import db
from ..email import mail_message
@auth.route('/login', methods=['GET','POST'])
def... | [
"joykirii@gmail.com"
] | joykirii@gmail.com |
71f210792e7bb560ed5a7e5db4e79a338bba1c63 | ba15fac9fbe53578d3823ceeac67fc338e2312e9 | /tests/functional/filters/e2e_filtering.py | 2980783ed05dd42c1c343efb2ed74a65e966af43 | [
"Apache-2.0"
] | permissive | dblenkus/resolwe-bio-py | 0694dcc32f485ccdd5ad43496ccef985c83819c7 | b6610ef26625492f39fdeef846d3e5a89a0009b3 | refs/heads/master | 2021-01-21T03:33:39.831803 | 2020-05-25T14:29:46 | 2020-05-26T07:48:34 | 55,721,959 | 0 | 0 | null | 2016-04-07T19:26:12 | 2016-04-07T19:26:12 | null | UTF-8 | Python | false | false | 3,627 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import unittest
import six
from ..base import FILES_PATH, BaseResdkFunctionalTest
class BaseResdkFilteringTest(BaseResdkFunctionalTest):
def setUp(self):
super().setUp()
self.endpoint = self.res.data
... | [
"zmrzlikar.jure@gmail.com"
] | zmrzlikar.jure@gmail.com |
477f6768361db49f12efc9b40192ff00dd8077a5 | 1f2860bf84fa87e2d6c3b5e5b1a62e76879a642a | /q41_50/049.py | 5ff4e3fbd4c56fc5ad1ac2c8c1db93e208b34745 | [] | no_license | Vegctrp/pic100knock | 222dc4c981e7d20180a2338184109987f56d1518 | 134a41c9a3fcfc49667a26625cfeaf7bc4a91899 | refs/heads/master | 2020-07-08T17:17:43.869124 | 2019-09-23T15:23:08 | 2019-09-23T15:23:08 | 203,730,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import cv2
import numpy as np
import lib4150
import matplotlib.pyplot as plt
import sys,os
sys.path.append(os.getcwd())
from q01_10 import lib0110
if __name__ == '__main__':
img = cv2.imread("Gasyori100knock/Question_41_50/imori.jpg")
img2 = lib0110.OTSU_binarization(lib0110.BGR2GRAY(img))
out =... | [
"kem.altair@gmail.com"
] | kem.altair@gmail.com |
2b381525fefdeac0ef1e5cd6af040849d7ab9e4e | 99b0631baa2fd9ab2455d848b47febf581916272 | /zhijieketang/chapter11/ch11.3.6.py | 5ed6d9e5c1c618b89767775b7f3df937094f87bb | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # coding=utf-8
# 代码文件:chapter11/ch11.3.6.py
class Animal(object):
"""定义动物类"""
def __init__(self, age, sex=1, weight=0.0):
self.age = age # 定义年龄实例变量
self.sex = sex # 定义性别实例变量
self.weight = weight # 定义体重实例变量
def eat(self):
self.weight += 0.05
print('eat...')
... | [
"yangyadong25@163.com"
] | yangyadong25@163.com |
36f87e0a8ac36a95aeb15b9d53c4c2cb84ba6d22 | ab0081f4c52ba6c91e4f666e6c2c480c23934a5d | /Mira/chatbot.py | 51b287a59550697278b3d75fef24c0473eda3616 | [] | no_license | purinaqa/FP-STKI | be866d50dbdcf93c9802e5b1f0c318d6ce488807 | 54c452b955d9f7769b88acdbcca8203316d45cdb | refs/heads/master | 2021-10-08T13:21:03.138486 | 2018-12-12T18:38:23 | 2018-12-12T18:38:23 | 156,947,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | import os
import re
import unicodedata
import mysql.connector
import numpy as np
import errno
import sys
import tempfile
import random
import json
from keras.models import load_model
static_tmp_path = os.path.join(os.path.dirname(__file__), 'static', 'tmp')
db = mysql.connector.connect(user="root", password='', databa... | [
"mutia15@mhs.if.its.ac.id"
] | mutia15@mhs.if.its.ac.id |
97af03ac6a2aa5e5942722a06b8dfc39002989bd | 3a666566a1ca340f88bce3a5bb11b22b12ec77c3 | /StockWatch/main/management/commands/reset_database.py | a7f8fc682047ded9b77ca8f640353ddaf1b78cf3 | [] | no_license | tomhamiltonstubber/stock-watch | 7bb108d02de21bdfd24786e00a03244a7314b1c3 | d280af91119033921bd387700dd08a86c0ca7dcf | refs/heads/master | 2022-01-25T04:55:07.658083 | 2020-11-16T20:56:33 | 2020-11-16T20:56:33 | 179,542,531 | 0 | 1 | null | 2022-01-21T19:00:34 | 2019-04-04T17:14:32 | SCSS | UTF-8 | Python | false | false | 1,030 | py | import shutil
from django.conf import settings
from django.core.management import BaseCommand, call_command
from django.db import DEFAULT_DB_ALIAS, connections
class Command(BaseCommand):
help = 'Recreates database schema'
def add_arguments(self, parser):
parser.add_argument('--demo-data', action='s... | [
"tomhamiltonstubber@gmail.com"
] | tomhamiltonstubber@gmail.com |
42aef09dfae4828b46e66f859a13a2d8268af3ac | 304dbd92a676dbb86234f98aa76d08bed227e634 | /cypher.py | c1f083174282a271da39d33cdca9463cf5d430b0 | [] | no_license | cruemartin/Ceasar-Cypher | 220682ede6e16cd5da673d2f47c47f4f217bc743 | 4a855e0df8a38590f0e17bc1294307137a552b89 | refs/heads/master | 2022-05-07T05:50:03.389544 | 2019-11-21T01:05:22 | 2019-11-21T01:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #Create a simple Ceaser Cypher
import encoder
import decoder
print("Welcome to the message encypter!")
key = int(input("\nPlease enter an offset: "))
x = input("Enter a phrase to be encoded: ").lower()
unencoded_message = list(x)
message = encoder.Encoder(key, unencoded_message)
message.encode_message()
encoded_... | [
"crue.c.martin@wmich.edu"
] | crue.c.martin@wmich.edu |
55a0afdfef929aa72333e614132af2476104a1b4 | c9f58e8fdc44b7eaee56519afd626e704a5bbf94 | /simulation/part6_qwi_vccl/qwi_gain.py | 12abfe123e37dea4464cab998d35254363a9daeb | [] | no_license | waakaakaa/mythesis | 9bec2a8a14c7ff89e501a1106cfb621f6212016d | edc86ad4aa2f46265410d2a53b1969f310e5fff8 | refs/heads/master | 2021-01-02T09:08:45.375701 | 2015-12-26T08:26:36 | 2015-12-26T08:26:36 | 11,283,156 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,282 | py | # -*- coding: utf-8 -*-
'''
Created on 2013-11-19
@author: Xin Zhang
'''
import math
from matplotlib import pyplot
from numpy import linalg
import numpy
from numpy.lib.function_base import trapz
from numpy.ma.core import exp
PI = 3.1415926
H_BAR = 1.0545887e-34
SPEED_OF_LIGHT = 2.99792458e8
ELECTR... | [
"zju.zhangxin@gmail.com"
] | zju.zhangxin@gmail.com |
1c6b5467cecb01f1ce0b31daf841a086b27f5729 | 2305ce053d16652d31823bd07faf38553b4f9b63 | /books/CrackingCodesWithPython/Chapter07/PracticeQuestions/Question2.py | 8a2180532dbdb37385f07898cf49f7569908be5b | [
"MIT"
] | permissive | leihuagh/python-tutorials | cff3c5e250a152252d4b725bca19f55721483249 | 33831b983d7bd1491e367b6c7654e687d5ba709b | refs/heads/master | 2020-03-29T17:59:31.226400 | 2018-09-24T08:41:26 | 2018-09-24T08:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Is each spam a global or local variable?
spam = 42 # global/local
def foo():
global spam
spam = 99 # global/local
print(spam)
foo() # mind == blown
| [
"jose@JoseALerma.com"
] | jose@JoseALerma.com |
593cbafcc033ef79c8b89434a564675e136ba5cc | e3d30ac7d5a9efb63ed3e0c258b13da0f7797f3e | /lab4-topo2.py | cf9a0fab87eb88592db9da15919c73af19dc3099 | [] | no_license | abhinav3008/3_Enforcing_Policies_in_Open_Virtual_Switches | 3830b51e15f5d43f18232cdf53f7cacb5de4e91f | fda8eceaccc164a6d71cc22a6e20ec549c5965ba | refs/heads/master | 2020-04-05T22:41:57.596178 | 2016-06-26T21:23:19 | 2016-06-26T21:23:19 | 62,008,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | """Custom topology example
Two directly connected switches plus a host for each switch:
host --- switch --- switch --- host
Adding the 'topos' dict with a key/value pair to generate our newly defined
topology enables one to pass in '--topo=mytopo' from the command line.
"""
from mininet.topo import Topo
from min... | [
"ak5011@nyu.edu"
] | ak5011@nyu.edu |
19db869411ab8dc827d95cbb935496b96d12d95d | c3e78a867d7ffd98573713287c92d5aa51f8d9e1 | /models/logistic_regression_model.py | 0e0249ddd7a0b2def30265d92ca02d51c4409378 | [] | no_license | panthap2/AssociatingNLCommentCodeEntities | d41dc695f791ff7ae7308d5f7344f661c752ce3c | c34f8294e5119a39452dde42968b9af1d9373dc6 | refs/heads/master | 2021-07-19T16:05:40.457426 | 2020-10-24T17:10:31 | 2020-10-24T17:10:31 | 221,307,426 | 19 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | from model_utils import *
import os
import numpy as np
import sys
import tensorflow as tf
parentPath = os.path.abspath("..")
if parentPath not in sys.path:
sys.path.insert(0, parentPath)
import utils
import random
from sklearn.linear_model import LogisticRegression
class LogisticRegressionModel:
def __init__... | [
"spantha@cs.utexas.edu"
] | spantha@cs.utexas.edu |
283b7901d5be2514937f38df465026e60ade310e | 4a5092d6f210c691e6b95ec362862a2d4c1bf3d3 | /django/app_marca/marca/models.py | 10df74b4123b881ec8a427159231707ec28b9882 | [] | no_license | anacsv/OlistTechExperience | 7c189447e174942677c8e378ededf32ae8636bff | c477ef99df003684f0e9fdb60fca539df604fac6 | refs/heads/master | 2023-03-24T09:13:54.078060 | 2020-07-09T19:02:28 | 2020-07-09T19:02:28 | 276,096,844 | 0 | 0 | null | 2021-03-19T23:43:33 | 2020-06-30T12:48:54 | Python | UTF-8 | Python | false | false | 246 | py | from django.db import models
from django.utils import timezone
class Marca(models.Model):
nome = models.CharField(max_length=200)
data_criacao = models.DateTimeField(default=timezone.now)
def __str__(self):
return self.nome | [
"anapaula.carneiro@olist.com"
] | anapaula.carneiro@olist.com |
394523d7bb019d8ca4af4992d2c5ef47409c3c40 | 88a02059cbf16303dad9745a774230b2e078410f | /1163.py | 4ea1e789406c0eacec92cc075cfdac006f318799 | [] | no_license | nekoTheShadow/my_answers_of_yukicoder | 2e3a94b6dab214fda1ae3c53f879190e6eedc31f | d607dee056a84f08305a51d6eb0bac9faa5d74ed | refs/heads/master | 2022-01-16T06:31:48.776630 | 2022-01-04T08:11:27 | 2022-01-04T08:11:27 | 132,351,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | n, x = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
for i in range(n):
a[i] -= x
m = sum(a)
if m >= 0:
print(0)
exit()
if max(a) < 0:
print(-1)
exit()
dp = [{} for _ in range(n+1)]
dp[0][m] = 0
for i in range(n):
for k in dp[i]:
if... | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
e2ae156f3dbbda6b5112f41ce492607a2a6f8cb7 | 7081156e214e4554bba3a6abb82f23c6e1ae5a1a | /Code/ml/04. 模型选择_hyperopt.py | 248f0aaef8e55cea4444351ebe414fd14f378bbf | [] | no_license | ManSsssuper/MyNotes | e917f7ebdae5f2c4c688b902b11e915822cdbba9 | 9fbce10c2ac5a7056f0e5fdafd39530441841e27 | refs/heads/master | 2020-09-07T09:51:14.894320 | 2020-08-01T12:57:24 | 2020-08-01T12:57:24 | 220,742,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,665 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 9 14:41:21 2020
@author: ManSsssuper
fmin:最小化函数
fn:函数
space:调整的参数
algo:参数搜索算法
随机搜索
Tree of Parzen Estimators(TPE)
Adaptive TPE
max_evals:搜索次数
trials/STATUS_OK用来记录每一次搜索的结果,可以利用trials进行可视化
xgbo... | [
"1335735422@qq.com"
] | 1335735422@qq.com |
ec56f03acce102e0f9d823035f633bf669caaa28 | c7001f818fe7a3b55a1840a8c14f020aa664dc43 | /util/NodePair.py | fd2a8ac6323a2e8c33b39d9ac94739292a0937b9 | [] | no_license | andimultazam/linkprediction | 2cb1381fa01d378688ce1da2985650b5a072657f | f1226ebef9766096f694b2c0725f85123f95b15b | refs/heads/main | 2022-12-25T14:27:50.264052 | 2020-10-06T00:32:56 | 2020-10-06T00:32:56 | 301,456,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import math
class NodePair:
def __init__(self, id1, id2, commonNeighbors):
self.id1 = id1
self.id2 = id2
self.commonNeighbors = commonNeighbors
def getId1(self):
return self.id1
def getId2(self):
return self.id2
def getCommonNeighbors(self):
return self... | [
"andi.multazam@gmail.com"
] | andi.multazam@gmail.com |
1bbbaa5b1cb7d67aa224ebb323fbcbfada3f51e8 | 66826173fb307ae6777723c546cf19654500f5c2 | /todoList/settings.py | 9d400dd03fbe4c631e4a7afad2fa0c5be9cb28ec | [] | no_license | anol390/todoList | bc640380052ae055995aa4d98eb08c980d457846 | 992aba786631cc2e64aefd7493dafc9f54b4de84 | refs/heads/master | 2023-03-10T21:05:55.936129 | 2021-02-20T05:11:22 | 2021-02-20T05:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | """
Django settings for todoList project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathli... | [
"anol390@aucklanduni.ac.nz"
] | anol390@aucklanduni.ac.nz |
5ed0b6b208ac17a24cc617228c1a4002832a38f1 | 72aa80b1ea757fdd7e2a15038b7b46853690e396 | /exercises/exercises01/common/searchmethod.py | dc1888963b2f030d69505da47d1003c75efd424f | [] | no_license | chipbuster/SDS385 | 4e4da0bcfcae5583ab9314595be9ded0e0b83513 | 319125885cf8bcee612ecb3da7fe3eb4d4b88698 | refs/heads/master | 2021-01-18T02:18:20.849302 | 2017-05-14T22:23:47 | 2017-05-14T22:23:47 | 66,695,049 | 0 | 0 | null | 2016-08-27T04:02:20 | 2016-08-27T04:02:19 | null | UTF-8 | Python | false | false | 1,413 | py | import numpy as np
def backtracking_search(grad_func, obj_func, guess, searchDir):
"""
Uses backtracking search to find a good step size.
grad_func: (function) calculates the gradient
obj_func: (function) calculates the objective value
guess: (cvector) current guess (beta)
searchDir: ... | [
"chipbuster@gmail.com"
] | chipbuster@gmail.com |
9375ac379d9e628b7e3443a2979108c2d4b929d6 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/sieve/e7fe59df2209451392330ca4b6e3a767.py | 92ce912956b69c6858c7563937f5b3852a638d3c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 408 | py | def sieve(lim):
rng = range(2,lim+1)
output = range(2,lim+1)
for i in range(len(rng)):
count = 0
for j in range(len(output)):
if output[count] != rng[i]:
if not output[count] % rng[i]:
output.remove(output[count])
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
4ed2aade446a764c487d6ec04db4d7511f4a07c4 | 6f4c5dbabeee9284c2de7de1cc84602b841c4549 | /flasky.py | 6711dc36c414f54dc19193cab4dd452dfdf9242f | [] | no_license | Tulupovden/myWebSite | 166c5d5b96f7d010deaf89826c1f16ff16d0c239 | 0a73bffe6718d900e1b6e93b419f5696881ab8dc | refs/heads/master | 2023-05-15T09:19:35.646385 | 2021-06-08T13:45:20 | 2021-06-08T13:45:20 | 373,186,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import os
import click
from flask_migrate import Migrate
from app import create_app, db
from app.models import User, Role, Permission, Post, Follow, Comment
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(app, db)
@app.shell_context_processor
def make_shell_context():
return dict(db=db... | [
"tulupovden@yandex.ru"
] | tulupovden@yandex.ru |
abd4dcd7d9bd766a65bd55657ec3921e53ed071c | f926f749c0c8cf9b30c649e11cd97ce047c5f85a | /settings.py | 7a7b9c3f9844e4634ff1398c773df0b4afa005b4 | [] | no_license | leocabralweb/welcometothedjango | b3780839e5c319d8e9d5018d169403708853179c | 1f21212cd03b7288e9e117d9f4720d8fc4feb2fe | refs/heads/master | 2016-09-05T09:07:40.252889 | 2011-08-14T19:55:12 | 2011-08-14T19:55:12 | 2,205,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | # Django settings for eventex project.
import os
PROJECT_DIR = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'pos... | [
"leonardo.cabral@stormsec.com.br"
] | leonardo.cabral@stormsec.com.br |
26fc233f2b35fe5e01e482ae9f48810aeda773dd | 89784727cbb3c51d380dbc678cc892edf0e861e3 | /analyze.py | c50b8abbde84e054c33e9388b48b0ff0d48349b4 | [] | no_license | larsks/k8s-storage-profiler | 6ee1c10ac9cfa0d3381f941cefeecc788725c271 | dedf25f2f3f495e62414f0660ba33aa4f7d0e386 | refs/heads/master | 2023-08-25T07:16:17.585675 | 2021-11-01T13:52:31 | 2021-11-01T13:58:52 | 423,446,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | import json
import matplotlib.pyplot as plt
import numpy as np
import os
import requests
import sys
width = 0.25
def plot_one_job(ax, targets, jobname, metric):
selected = []
for name, data in targets.items():
selected.append((name, [job['write']
for job in data['jobs']
... | [
"lars@oddbit.com"
] | lars@oddbit.com |
53f4a27e87fb3addf97d4d78878621ac3a3a110b | 3c99f7ca498798b0865c18003c56d97c2327457c | /back_end/src/main/venueobjects/LambdaGetVenues.py | 40fc057994eaf742c85cfd1c83063aa90b5d17f0 | [] | no_license | alma957/Campus-Collect | 95d7d856c03c72960c03c1150c6dc559863b47bd | 8a33650273b5af6e1964dbda1ce8f16e7ff3aa8a | refs/heads/master | 2023-01-01T21:20:22.826501 | 2020-10-26T18:43:39 | 2020-10-26T18:43:39 | 307,471,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # actual lambda function to be used for getting venues by price, location, tags,..
from main.venueobjects.getVenues import GetVenuesHandler
from main.lambdautils.DBConnection import DynamoConn
def lambda_handler(event, context):
handler = GetVenuesHandler(DynamoConn("Venues"))
return handler.handle_request(e... | [
"a.marzetta19@gmail.com"
] | a.marzetta19@gmail.com |
0f0f5d0b1c85ad0e5682d38e9cb7c54b8cbd0dd4 | 6c29a72dfe9eed38f4667babf74c3ae98983be6f | /tests/test_fixtures.py | 445ff550251b679e46e044775df9352aed857bb4 | [
"Apache-2.0"
] | permissive | ryan-rs/pytest-examples | 0149f79a069a2fb272486d3bf25a756c341f38e8 | 9ca2368c5e86f651497e42bb304415cf2ae3a0df | refs/heads/master | 2020-03-26T15:04:17.374972 | 2018-11-27T16:38:47 | 2018-11-27T16:38:47 | 145,020,977 | 0 | 0 | NOASSERTION | 2018-11-12T19:14:40 | 2018-08-16T17:43:30 | Python | UTF-8 | Python | false | false | 3,540 | py | # -*- coding: utf-8 -*-
# ======================================================================================================================
# Imports
# ======================================================================================================================
import os
import pytest
# ===============... | [
"ryan.gard@rackspace.com"
] | ryan.gard@rackspace.com |
8b69bf2b7c8280abd5c5fdb09ed901c008f23423 | c744f3ae44ab1a692b4b6a39ce2c3045c81406c4 | /venv/bin/pip | 67066d339c88af6a7e54c8d3ea9ae96a32c1bbb3 | [
"Apache-2.0"
] | permissive | qq529952515/OA | f1e56d37c8e4b35b6f2e9bbdd0fb8370b90cc64d | ccf17b17b3122f9650bb1ab939befad784e9b4e0 | refs/heads/master | 2023-05-07T22:16:04.130146 | 2020-05-17T07:20:59 | 2020-05-17T07:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/yc/feature_As/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"15294786074@163.com"
] | 15294786074@163.com | |
d2875d1dacda24814c32ad5bde2d377e28997d5f | 1ccef32e60d632eae62254ebcc6b1160bab89f50 | /src/approaches/progressive.py | 48d6ae7729b26192a0621e0750fdb89f1bf6ebd4 | [
"MIT"
] | permissive | JosephKJ/hat | fc2ddcb6514406e67a91eeccb62f968c20bc0b59 | a6386c8a5435573034f3a55c86438c0a82ee9d8d | refs/heads/master | 2022-12-01T09:19:41.551955 | 2020-08-11T01:27:37 | 2020-08-11T01:27:37 | 286,484,709 | 0 | 0 | MIT | 2020-08-10T13:35:55 | 2020-08-10T13:35:54 | null | UTF-8 | Python | false | false | 4,258 | py | import sys,time
import numpy as np
import torch
import utils
class Appr(object):
def __init__(self,model,nepochs=100,sbatch=64,lr=0.05,lr_min=1e-4,lr_factor=3,lr_patience=5,clipgrad=10000,args=None):
self.model=model
self.nepochs=nepochs
self.sbatch=sbatch
self.lr=lr
self... | [
"jsj@jsj-mac.hi.inet"
] | jsj@jsj-mac.hi.inet |
d2a99d0557c3675935f89fda74ebb38be8c9b447 | 4c87636f3cf222cab568b8db1d9b365eb4d0607c | /test_huya_danmu.py | 7e3e284534403596633eb17cef6cef7acf242ab8 | [
"MIT"
] | permissive | yw94/danmu | eeedd5f7309b8b95d6036f7754d8b0e11ad777a1 | e2e22f6505fd005b2391be466286234eb3f31412 | refs/heads/master | 2020-12-30T03:26:35.690193 | 2020-02-06T10:48:31 | 2020-02-06T10:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import asyncio
from huya.ws_huya_danmu_client import WsDanmuClient
room = 'lafeng'
area_id = 0
async def test_danmu_client(client):
connection = client(room, area_id)
asyncio.ensure_future(connection.run_forever())
await asyncio.sleep(2000)
await connection.reset_roomid(952595)
print('RESTED')
... | [
"yjqiang1@gmail.com"
] | yjqiang1@gmail.com |
8f3823f30e9fe5b91a24c5a069368f02949d4f3d | a590cb0c9b232ad98d17a9917a36930c6a2c03f8 | /8kyu/Pre-FizzBuzz Workout 1.py | 3362f123258850350be517a6632dd369785ccf29 | [] | no_license | AbbyGeek/CodeWars | 6e10c10cbdb11f2df17a657d11ff5ffa79a5fb0b | 64dddda9f2a14a0592cc946b35302c4bd9bc569e | refs/heads/master | 2020-12-21T00:14:53.665879 | 2020-01-26T01:16:41 | 2020-01-26T01:16:41 | 236,252,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | def pre_fizz(n):
return [x+1 for x in range(n)] | [
"abbyrosewest@gmail.com"
] | abbyrosewest@gmail.com |
bcba9846b44706316237c0edfffb18a54d44285f | df6beae14359028bb7455b63cbca75f12e47ac9c | /venv/bin/wheel | c2381c36e71c1ae2ac4f31c9044fc7419fecdfc9 | [] | no_license | natvern/Infamous-Pacman | 5632a7ceb7fd524b4f271e2d87948d71ab349d52 | d303bffc49fd26f0a18b374916c925edd8efc1a4 | refs/heads/master | 2020-04-08T05:37:38.072856 | 2019-04-18T11:14:08 | 2019-04-18T11:14:08 | 159,067,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/Users/hiaak/Documents/Pacman/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"srahmoun@andrew.cmu.edu"
] | srahmoun@andrew.cmu.edu | |
96ea774d03c563f4d521a7284d56912681fc110b | 10d98fecb882d4c84595364f715f4e8b8309a66f | /genomics_ood/images_ood/eval.py | af9737b30f6b5e2487d99c451162174c16c47aad | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 11,626 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5c139383ca42639a2047f505d5cf784f44afe451 | 42c19ffb5b111c498398f7c9e1a7ab73d1084478 | /Exercise5_1_Rus_P.py | 9bdebf62fe42ea51e401ccfd8e1f9c6ac6a682d0 | [] | no_license | Russyii/CP3-Rus-Pateepawanit | 02e3f743dc595b3ec3648d3ce504c58d868e555d | 46f53c248df6699b4b51c09c4c96d166319259ee | refs/heads/master | 2022-10-10T15:36:13.197874 | 2020-06-10T09:15:12 | 2020-06-10T09:15:12 | 257,489,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | x = float(input("Enter Number :"))
y = float(input("Enter Number :"))
print(x,"+",y,"=",x+y)
print(x,"-",y,"=",x-y)
print(x,"*",y,"=",x*y)
print(x,"/",y,"=",x/y)
| [
"ryosohk@gmail.com"
] | ryosohk@gmail.com |
adf408a55229cf4a8c547b27023d71c394791342 | deee980ee211c17d90ddca077616293aeeea28e2 | /mouse_wheel/mouse_wheel.py | 8245ae62d8b006a324a00a311a40e543ec39bff1 | [
"MIT"
] | permissive | shalevy1/dpg-examples | e1d5d6a6dc28cac2135f4a3e65897a8ddd4651f8 | abb15311625144e1391ca0eca3d49c727ad4b926 | refs/heads/main | 2023-04-29T22:47:30.539579 | 2021-05-10T01:13:11 | 2021-05-10T01:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | """."""
from dearpygui import core, simple
class ExampleCallbackMouseWheel():
def __init__(self):
self.__fontSize = 1.
self.__fontSizeStep = .1
self.__fontSizeRange = (.8, 15.)
core.set_global_font_scale(self.__fontSize)
core.set_theme("Cherry")
core.set_main_window_size(960, 540)
with simple.window("... | [
"amorano@gmail.com"
] | amorano@gmail.com |
f9d0814cd0adf4cd5559039e53ba84fcec6d8687 | a9565d2604aeeb9735b1e7533f71eb97773ae957 | /02.pythonbasis/13.mysql_opera/02.mysql_opera02.py | a315077e2177968f049f965f75411945176b96d6 | [] | no_license | yaolongc/gpcloud | 17b794f11119b67dd9a105abe5e0a02eb94703ea | b6987c4adc1204f7f6c6864a42ec603ec9df01e5 | refs/heads/master | 2020-09-03T08:55:28.234468 | 2019-08-27T04:00:39 | 2019-08-27T04:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import pymysql
client = pymysql.connect(host='39.100.110.135', user='bavduer', password='(Bavduer..0725)',
db='Grade', cursorclass=pymysql.cursors.DictCursor)
cursors = client.cursor()
sql = 'select * from {};'
cursors.execute(sql.format('FirstStage'))
for i in cursors.fetchall():
print(... | [
"bavduer@163.com"
] | bavduer@163.com |
cfef9023f320a0d729b547e59ca935ad54379639 | e3b261c2a79ecefdd9fc19c17308874dfb3c82ed | /Cosine Similarity Analysis/PortfolioAnalysis/paperMethod.py | 4feb3d0aa82467f06c6bc839ff7d5d2065f75f7d | [] | no_license | jptree/SEC-Analytics | 0339acc439f5c05880423e531144906f82ec6e35 | eddc346428d769a4c029b55795935748a182abdc | refs/heads/main | 2023-06-19T14:05:09.179470 | 2021-07-21T14:08:58 | 2021-07-21T14:08:58 | 360,916,346 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,728 | py | import pandas as pd
import numpy as np
import os
from PetriProgramming.PortfolioHelper import plot_cumulative_returns, summary_statistics
import matplotlib.pyplot as plt
pd.set_option('display.max_columns', 80)
pd.set_option('display.max_rows', 25)
pd.set_option('display.min_rows', 25)
pd.options.display.width = 150
... | [
"jasonfpetri@outlook.com"
] | jasonfpetri@outlook.com |
c0635b042204a094d688857bc7d4ba9f4f33a426 | ad16b7166ebe5aced4d9f91fc09d4ee30c0a83da | /files/mongoose_detect.py | d2f1f9d2fdae2f6a6e1d449adda7340f35e640d6 | [] | no_license | SDU-Embedded/object_detectors | f814f2390fab153fbf2ff1675956e797c4f5cdb4 | 71b1d91e11649d439cfc5189ffb65c14091aac9f | refs/heads/master | 2020-04-18T22:20:59.732524 | 2019-01-30T14:06:57 | 2019-01-30T14:32:41 | 167,791,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,088 | py | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
import time
import copy
import re
from collections import defaultdict
from io import StringIO
from PIL import Image
from utils import label_map_util
from utils import visualization_utils as ... | [
"lelar09@student.sdu.dk"
] | lelar09@student.sdu.dk |
5d186ca311b371a38b7ee1263af5403e41dbf71d | 3d2b0091c13d743965ac6efd00e566b74a26ff0b | /teststarter.py | 4443046675d2ce6f3fb32406110503facf14af93 | [] | no_license | Liarmen/kaylog | c65f597b8152ea59261c6e3ade5d173c461cf52a | 2c823190c8b95fd79612489c764e8c3e0de24192 | refs/heads/main | 2023-01-31T16:28:04.047292 | 2020-12-17T22:00:03 | 2020-12-17T22:00:03 | 321,759,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import time,os
import subprocess
from subprocess import Popen
while 1:
p = Popen(r'C:\\Users\\Admin\\Desktop\\лфн\\python.py', shell=True)
time.sleep(60)
p.kill()
p = Popen(r'C:\\Users\\Admin\\Desktop\\лфн\\test.py', shell=True)
time.sleep(10) | [
"noreply@github.com"
] | noreply@github.com |
3382f42a4b2e2ce240ed86af00770c5241cf509e | c29bb41cb5fc4d3154d790896bb83135b34061e1 | /gpsite/techspecs/apps.py | 32ee67f73483dbd88e57bb351e9227ecae3efaf6 | [] | no_license | muhammednasr97/DBS | 79ecc6a73d25ec99e3a5a4ca0c971edd7586d60a | cf03cbef21a9e4f56bac3815df23542bd8e08bce | refs/heads/master | 2022-12-04T17:11:38.731491 | 2020-08-19T14:09:44 | 2020-08-19T14:09:44 | 269,521,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class TechspecsConfig(AppConfig):
name = 'techspecs'
| [
"muhammednasr97@yahoo.com"
] | muhammednasr97@yahoo.com |
9651901898793df56347602451eb1e0ee5a21e22 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s784741556.py | 223dc3c245f8c168dc6e9e30b687ce73313cf6ab | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
ans = "YES"
else:
ans = "NO"
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9fc0249018acebb01f3542dbd28a97430eda8d6 | 11f301e2d2452d1a3e8dda57c468a2b6a57b30d6 | /tests/test_aclosing.py | 19e852af09829348803bc1a29d4a43045c183601 | [
"BSD-3-Clause"
] | permissive | HeavenVolkoff/async_tools | 6ed4fd49fec1d67ec32cd2f534177de3918dc5e7 | c2fb373f4de11542f61fdbf596955f118a2ba467 | refs/heads/master | 2021-06-02T02:56:34.987963 | 2021-05-25T21:30:53 | 2021-05-25T21:30:53 | 158,291,664 | 4 | 1 | BSD-3-Clause | 2021-05-25T20:46:43 | 2018-11-19T21:21:19 | Python | UTF-8 | Python | false | false | 1,855 | py | # Internal
import asyncio
import unittest
# External
import asynctest
from async_tools.context import aclosing
class MyTestCase(asynctest.TestCase, unittest.TestCase):
async def test_aclosing_async_iterator(self):
async def async_iterator():
for a in range(1, 10):
await async... | [
"vasconcellos.dev@gmail.com"
] | vasconcellos.dev@gmail.com |
6736a75c3d4463acb7ea60aee4e3e6745d29213b | 688385c3e156ff83141a9fd2f5c22d5f8c4cf46d | /cursoemvideo/069 Analise de dados de grupo.py | 95012214984ab7bd61f652f7524329888cb943a3 | [] | no_license | silvamm/atividades_python | a8687ba5a6e8565ef8e965a163eb59152a5ff5c5 | 038565afa256125cd584dc2abab9f6a86a899da9 | refs/heads/master | 2020-03-11T03:56:19.174016 | 2018-08-22T16:27:15 | 2018-08-22T16:27:15 | 129,763,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #Crie um programa que leia a idade e o sexo de várias pessoas.
# A cada pessoa cadastrada, o programa deverá perguntar se o usuário quer ou não continuar.
# No final, mostre:
# A) quantas pessoas tem mais de 18 anos.
# B) quantos homens foram cadastrados.
# C) quantas mulheres tem menos de 20 anos.
homens = mulher... | [
"silvamm.matheus@gmail.com"
] | silvamm.matheus@gmail.com |
9569ef8bfd2c981b983b6f90dd11173d36049a45 | 841c30c8ef7e26d183f2ee50b3de1e57219cee49 | /CCD/alumnijobs/migrations/0001_initial.py | 0041bc25cc05c013da42b45e01bf0efd30d277f7 | [] | no_license | narenchoudhary/CCD | 1991808fbc914a1c1f656807063fe5a180729eb8 | e4d56f6f7e6fc27fae022f1d17fe6d58ca1e25de | refs/heads/master | 2020-12-29T03:35:27.651473 | 2017-04-07T23:14:03 | 2017-04-07T23:14:03 | 53,730,029 | 0 | 1 | null | 2020-04-08T23:09:08 | 2016-03-12T12:17:47 | HTML | UTF-8 | Python | false | false | 1,558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-09-10 04:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AlumJob... | [
"n.choudhary@iitg.ac.in"
] | n.choudhary@iitg.ac.in |
485f78bf0f29fec745e66e6f68080ca1aaf408bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s928939056.py | 075c9216b7de983528e8012b9dc8198741dc64ee | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from math import gcd
from functools import reduce
k=10**6+1
def judge(n,a):
c=[0]*k
for x in a:
c[x]+=1 #対応する数の個数を記録
t=any(sum(c[i::i])>1 for i in range(2,k)) #自身を約数に持つ数が2つ以上与えられたリストに存在するような数が一つでもあるかどうか
t+=reduce(gcd,a)>1 #全体について1以外の公約数があれば1加える
return ['pairwise','setwise','not'][t]+' coprime' #全体に公約数があれば... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
654a6565e52dcca6b432fa37962d8ba0ed6287ab | 507597760762f6eaed758f63b0ea17f606fa5410 | /model.py | 2ce9a7dc5093a87350905d5351e3de901aff92ef | [] | no_license | BlackWingedKing/Recursive_Neural_Networks | a884040a9c6f06ad02c888c88ab0adbc12b3980a | e5b3c970eba11fadd677814083ad44785c2e20f8 | refs/heads/master | 2020-04-08T07:31:40.678199 | 2018-11-28T11:13:34 | 2018-11-28T11:13:34 | 159,141,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,117 | py | import imp
import torch
import torchnlp
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import pickle
import bcolz
import nltk
import pandas as pd
from nltk.corpus import treebank
from nltk import tree, treetransforms
from copy import deepcopy
from nltk.draw.tree import draw_trees
from... | [
"noreply@github.com"
] | noreply@github.com |
e075f370a97eb97ee3fc17ee4c6814539f1e7217 | c22253c12dbcd0332a97374eb556e5a38844c893 | /lib/plugin/logic.py | 7680f611e22cce67c6675c604f1da3c469c9e911 | [] | no_license | passdacom/SJVA3 | eb7a6731a4edce763757949845247d2f4ec2718c | f204804d983b7d96f56a82abd39b3f3bb3d25ab5 | refs/heads/main | 2023-08-31T21:55:39.679826 | 2021-10-19T03:00:32 | 2021-10-19T03:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,113 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import traceback
import time
import threading
import platform
# third-party
# sjva 공용
from framework import db, scheduler
from framework.job import Job
from framework.util import Util
#################################... | [
"cybersol@naver.com"
] | cybersol@naver.com |
193ece4a5294fd8bd56c8066f8b303bd16cd43d3 | 5203254e4ab5008b58f61ae4eb7e04b0206d14ed | /button.py | ddad44825e627f1bcc3a47e04e5bf83320cf9939 | [] | no_license | rodriguesmsb/SPG | 40fe4d4a23615a9ce3c480e53bda8afcbc88e466 | 0dc780957f3eb0d89aeeb5dcef8efad0fbd6ad0a | refs/heads/main | 2023-04-22T16:25:40.657386 | 2021-05-17T22:42:13 | 2021-05-17T22:42:13 | 358,280,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 2021
@author: Moreno rodrigues rodriguesmsb@gmail.com
"""
import pygame
import player
class Button():
def __init__(self, x, y, image):
self.image = image
self.rect = self.image.get_rect()
self.rect.x = x
sel... | [
"rodriguesmsb@gmail.com"
] | rodriguesmsb@gmail.com |
967e2b50b5d112b954332d50ceb18563319b5eb8 | a01683619cf59e83416549b1317113e6df991e6e | /extractor/no_export.py | ad49eeafd453f4d9a338cec0eb738f8b73eac322 | [] | no_license | pmolufmg/irr_miner | d6b808ca8956903dde67ddeda346174c600e2759 | cdd31b05f232659e0684e303b6fca12a3364a902 | refs/heads/master | 2023-02-27T21:43:07.214659 | 2021-02-10T14:47:39 | 2021-02-10T14:47:39 | 202,779,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | from config.config import *
import re
class NoExport:
def __init__(self, as_patt, comm_patt, neg_patt, exp_patt, clean_patt, info_patt, c_type):
# COMMUNITY FORMAT (INT:INT)
self.community = comm_patt
# COMMUNITY TYPE
self.c_type = c_type
# AS FORMAT
self.asn = a... | [
"pmolufmg@gmail.com"
] | pmolufmg@gmail.com |
c37fddbe72a4bf5e7895fef5d2695c5dec44a3c9 | f3c2fa4c6ef32e01b98ac56a2e25419152d69208 | /gpio-utils/radiosimulator.py | 2c6810bd11fb90a6e076c1bbac1c5bd5e6bd0e97 | [
"MIT"
] | permissive | deets/brombeerquark | bd4687d42f9466cd5f6843df6a49e647cf3e2fcc | 9314bc6adaf19ee3868612c8aafdce0f1ebbabb9 | refs/heads/master | 2021-07-19T07:02:22.427227 | 2021-02-28T12:45:57 | 2021-02-28T12:45:57 | 47,883,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | from __future__ import print_function
from functools import partial
import time
import threading
import Queue
from tfa import TimedFiniteAutomaton
def simulate_gpio_events(queue):
time.sleep(1.0)
# just increase volume by pressing/releasing once
queue.put("volume+pressed")
queue.put("volume+released")... | [
"deets@web.de"
] | deets@web.de |
16755970fd27e7420efac199787656deb390ccc0 | f1a99bfa62bebd6dae4561eca819a16c4f324501 | /NoDuesPortal/asgi.py | 1232f89511cdee65237d116aab512d75cd01cc5a | [] | no_license | Mandloi7/Test-proj | a9cb097385d8ed1400191f9d6e86aebb984f625f | c85556f14a82014ed6dd669454a1c399e2bdc93f | refs/heads/master | 2021-07-22T09:26:18.756389 | 2020-08-14T20:47:03 | 2020-08-14T20:47:03 | 206,291,772 | 0 | 2 | null | 2020-08-14T20:47:04 | 2019-09-04T10:18:45 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for NoDuesPortal project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"ritik.mandloi.2000@gmail.com"
] | ritik.mandloi.2000@gmail.com |
6933f6e88e4acb26bdd751b61eb9bddd2becf1f0 | c7094633a197faceaa26be96764e6ff8793356da | /main.py | 9fe0d3a7cb5c539f908d998734d0d1ad97143384 | [] | no_license | draguve/idCoreLeds | 3c6f1d70a5d4232fc0c5dc1f3cc7430969bb4972 | 538f6f75c232c5de643d0fea9e6701f4dd31c520 | refs/heads/master | 2020-04-09T19:55:08.145623 | 2018-12-05T20:09:17 | 2018-12-05T20:09:17 | 160,557,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #!/usr/bin/env python
import signal
import sys
import pyaudio
import wave
import audioop
def signal_handler(sig, frame):
stream.stop_stream()
stream.close()
p.terminate()
sys.exit(0)
CHUNK = 256
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
signal.signal(signal.SIGINT, signal_handler)
print('Pre... | [
"ritwikpatil1998@gmail.com"
] | ritwikpatil1998@gmail.com |
7cdaab92efddeec61f39a7ae65056fcca02fdb23 | e05ba87e0a2593167b86bebc4fd695a34bbe1313 | /imgur_api_project/imgur_project.py | e8b298d70648999d88340b3fe59e0a63e57e63f1 | [] | no_license | zain08816/Teaching_Materials | 6a8f179cbdfdf3e8b0af7d36db072d613de4f993 | 1df55341b7ea84a3a508114d3d3ffc2f796cdf57 | refs/heads/master | 2021-07-14T17:14:52.389620 | 2020-10-02T17:23:16 | 2020-10-02T17:23:16 | 213,763,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import base64
import sys
import requests
import json
import webbrowser
#this is reading the image from console
#eg. in consol I would type in: python3 imgur_project.py shaq.jpg
#this program and the image needs to be in the same place for this to work. else, you put the directory where
#it is located
img = sys.arg... | [
"zain08816@gmail.com"
] | zain08816@gmail.com |
6beaf98b5e814440dd35939b8f93ddfce0c683ae | 51108a50ffb48ad154f587c230045bb783f22240 | /bflib/items/writing/base.py | 44c7befeebcb6caac2b247b0ad366f89b2244aba | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 125 | py | from bflib.items import listing
from bflib.items.base import Item
@listing.register_type
class WritingItem(Item):
pass
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
03d53a2fa862909aa754424596e338d8baa4977a | 03cbc74c3b5c3147e2a5ccfe668594350ac32e09 | /lib/game_controller.py | 9ce9f53324d0447b7aa41f4d4860de35d7426544 | [] | no_license | yapo/scoreboard | 51e1b5ae07ad23390b920c2a8cad13f4e9e71a4f | f35457125e377d19d912509b3b7c7749fc5a15aa | refs/heads/master | 2021-01-18T12:05:53.859445 | 2014-08-30T21:33:58 | 2014-08-30T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import sys
class game_controller(object):
def __init__(self, config):
self.config = config
self.player1 = player('white')
self.player2 = player('black')
self.last_scored_player = None
self.victory_callbacks = []
self.danger_zone_callbacks = []
self.combo_breaker_callbacks = []
self.first_blood_callba... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
1619841e22d47095341a3633936eb0d746446e6c | 1ff31cedc4794083e213e6637deaacab49cfdd9a | /pyatv/mrp/tlv8.py | c8675b1741300017851aee0f599941efce39e7b5 | [
"MIT"
] | permissive | dschu012/pyatv | 910cefec45fcfe94fe9b3fee59672299215db24b | 6496548aee09ff95f5515abb172c1ba19b9d995b | refs/heads/master | 2020-12-04T06:35:25.957921 | 2020-01-01T14:38:54 | 2020-01-01T18:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | """Implementation of TLV8 used by MRP/HomeKit pairing process.
Note that this implementation only supports one level of value, i.e. no dicts
in dicts.
"""
# Some of the defined tags used by the pairing process
TLV_METHOD = '0'
TLV_IDENTIFIER = '1'
TLV_SALT = '2'
TLV_PUBLIC_KEY = '3'
TLV_PROOF = '4'
TLV_ENCRYPTED_DATA... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
342f10467123051dda12ff9cfcfa59cb2048ea18 | 7bdc1a3565ba8964658a749fb05ddc27f20d0a33 | /scripts/mvn_incremental | d92faf0f5cebe8ccda4cf17fbd1335426c57b1b4 | [] | no_license | wuan/ci-tools | 375cd64d0197e7e482255661c998f11e06c3e404 | 6796ee0a9f0b11a4c4ac7c05bdad047e6edd3313 | refs/heads/master | 2020-12-24T16:24:02.820016 | 2016-03-04T07:33:19 | 2016-03-04T07:33:19 | 39,160,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | #!/usr/bin/env python
# coding=utf-8
"""
Copyright 2015 Andreas Würl
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 require... | [
"andi@tryb.de"
] | andi@tryb.de | |
85ad1d8f62c9ef3af9a0d22f2ceb96a7aefddb55 | 901acecf5409aa718e07c3547cfcce276476a72e | /webpage/bokeh/fancyhist.py | 57dc149a2640040a908922579360fa71c20a5100 | [] | no_license | TCRichards/PiSmash | 3a0b324e96e85f256bb4eabf8d1f5c12ca8f6445 | dd3c244fba910f29a0147619727a5202c10a8979 | refs/heads/master | 2020-06-04T15:43:41.442012 | 2020-03-24T20:23:24 | 2020-03-24T20:23:24 | 192,086,457 | 4 | 0 | null | 2019-10-03T21:19:12 | 2019-06-15T14:14:11 | Python | UTF-8 | Python | false | false | 8,509 | py | #----- Author: Nick Konz -----#
from bokeh.layouts import column, row, widgetbox, gridplot
from bokeh.models import CustomJS, ColumnDataSource, Dropdown, Slider, Button, BoxZoomTool, Range1d, BoxSelectTool, LassoSelectTool, Select, CheckboxGroup
from bokeh.plotting import Figure, output_file, show, save, curdoc
from b... | [
"37184532+nickk124@users.noreply.github.com"
] | 37184532+nickk124@users.noreply.github.com |
270e6bc0ac14bf839dca704741766f78acc81d4f | 65875c8b063e6b154d396f388a2a59425cce6da0 | /Lista_06/Artur e Guilherme Ferreira/Q2 L6/revista.py | 695220d3bf76c71c3bf42cc10a30fc41ccd72933 | [] | no_license | limapedro2002/PEOO_Python | fbcf3af1003a56e64eac9f95e0fedc8d2e2c923b | a099fd45ac189415a493b0183e900514c602915b | refs/heads/main | 2023-04-27T07:39:37.636631 | 2021-05-10T19:17:15 | 2021-05-10T19:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class Revista:
def __init__(self,codigo,titulo,tipo, edicao):
self.__codigo = codigo
self.__titulo = titulo
self.__tipo = tipo
self.__edicao = edicao
self.__lista_edicoes = []
def add_revista(self,edicao):
self.__lista_edicoes.append(edicao)
def listar_edicoes(self):
print("titulo:",self.__titu... | [
"noreply@github.com"
] | noreply@github.com |
6b356088cae789276f780f39f65178dba61d18a4 | fb1b74f17142a053e20ddc66f5f96b6317c75666 | /story/urls.py | 737f0617e59723affc29af0a9f44f700e75fc27c | [
"BSD-3-Clause"
] | permissive | yiyumo/djangogirls | e4fd3739282113e8410131a37b187faf769a0a64 | 53d2c7f977f10a5e6dc34fe7372c9ae3814bca9d | refs/heads/master | 2022-12-15T09:24:36.275585 | 2020-04-01T16:17:03 | 2020-04-01T16:17:03 | 252,219,461 | 1 | 0 | BSD-3-Clause | 2022-11-22T04:40:29 | 2020-04-01T15:48:35 | HTML | UTF-8 | Python | false | false | 167 | py | from django.conf.urls import url
from story.views import StoryListView
app_name = "story"
urlpatterns = [
url(r'^$', StoryListView.as_view(), name='stories'),
]
| [
"462163740@qq.com"
] | 462163740@qq.com |
42204b02a8bcb282b4d6450ddcb9ce84444a3d4e | b484c6a553c73479ede635d995578748775feb34 | /gs_api_client/asynchronous/dispatch.py | bde5d2364803c18358012ef336ac05674ca52e54 | [
"MIT"
] | permissive | gridscale/gridscale_api_client_python | 71444ccca8efd23d719e79429de7c0833fb2e514 | 0877c71889a50c5e2f1fb4f963ade67785f23534 | refs/heads/develop | 2023-06-13T00:35:33.711707 | 2023-06-02T08:43:46 | 2023-06-02T08:43:46 | 196,579,331 | 7 | 1 | MIT | 2023-06-02T08:38:58 | 2019-07-12T12:55:03 | Python | UTF-8 | Python | false | false | 190 | py | from gs_api_client.base.dispatch import ApiRequestDispatcherBase
class AsyncApiRequestDispatcher(ApiRequestDispatcherBase):
def _try_to_dispatch(self):
self._perform_request()
| [
"thomas@gridscale.io"
] | thomas@gridscale.io |
463d4bc24c7581305dbc13bd5259ed196c5bfffb | 87970695aad664b7db2220748ab0496421d98d03 | /article/migrations/0009_auto_20200810_0526.py | 0ab2888d2e30aacac6271a3e084db1765746911c | [] | no_license | NikhilCodes/Django-News | 84328aad01c0156aa464490353ac9116a42eb7f7 | 6a00bb650efb96b7365f496c47698b315781d226 | refs/heads/master | 2022-11-25T16:33:30.948960 | 2020-08-10T08:36:27 | 2020-08-10T08:36:27 | 286,394,925 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Generated by Django 3.1 on 2020-08-10 05:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('article', '0008_auto_20200810_0526'),
]
operations = [
migrations.RemoveField(
model_name='article',
... | [
"nikhil.nixel@gmail.com"
] | nikhil.nixel@gmail.com |
961fc5392f44b7ac55a35d04261e9eaf67a97c90 | b17fa84483067f5e208083cbaaa2b8e7fcd4b34e | /SNII_yields/y52Cr.py | b32146f8a74a00fb561a8fdb09b10cbc5ae42c00 | [] | no_license | AtsuhiroYoshida1121/Galactic_Chemical_Evolution_code | 931f0c4ff77ccd8b67e3770dc1a5b7d0a96eb492 | bf6461105e56660e8369f0cb2596e36df17b1cc1 | refs/heads/master | 2023-05-27T22:47:52.926878 | 2021-06-04T15:05:56 | 2021-06-04T15:05:56 | 373,835,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | a_y52Cr1=8.80E-04
a_y52Cr2=1.09E-03
a_y52Cr3=1.13E-03
a_y52Cr4=1.36E-03
a_y52Cr5=2.77E-03
a_y52Cr6=3.12E-03
a_y52Cr7=3.95E-03
b_y52Cr1=1.20E-03
b_y52Cr2=3.03E-04
b_y52Cr3=1.52E-03
b_y52Cr4=2.22E-03
b_y52Cr5=2.18E-03
b_y52Cr6=2.92E-03
b_y52Cr7=3.94E-03
c_y52Cr1=1.11E-03
c_y52Cr2=9.63E-04
c_y52Cr3=1.81E-03
c_y52Cr4=1.66E... | [
"atsuhiro.yoshida.coding@gmail.com"
] | atsuhiro.yoshida.coding@gmail.com |
2a0a41de1fe1a1034ad17f7c270abbbd65c9b2c7 | 8a6b6bb99b97e9bd6ecd836488e33ba5cbe7d149 | /train_tsn_ucf.py | 076fa7a446951f5a7deb476982333df2bef487f6 | [
"MIT"
] | permissive | ZhangMengxia/R2plus1D_TSN_combine | 49555d49ac3d1aa1fa8796da06b576b45489bd8e | 028a51fc15690afc32c3b6c8ac1d22b7902b21ed | refs/heads/master | 2020-05-05T08:44:44.813642 | 2019-05-01T00:58:18 | 2019-05-01T00:58:18 | 179,876,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import os
import sys
from network_tsn import TSNClassifier
from dataset import VideoDatasetTSN as VideoDataset
from torch.utils.data import DataLoader
from trainer import train_model
data_path = '../UCF_for_R21D'
im_root = '../UCF-101_of'
save_path = 'tsn_model_resnet101_from_scratch.pth'
resize_width = 360
resize_heig... | [
"zmxmdzmxmd@gmail.com"
] | zmxmdzmxmd@gmail.com |
c11ec31a70ef5a17c1683d49edcf81e25a0b7534 | 85194de8e2f92add25bc9f9df091ed381dfbe6b0 | /db_update/Snakefile | d98f61181a68e56a5ed2605319072df59d8b3514 | [] | no_license | linxingchen/agnostos-wf | daa7de6b26ec6012575e6b5b2f8a0aa2e85a05cf | 8bedfc866b9308aa7204ce0d3e0dd1986ae0dfef | refs/heads/master | 2022-11-26T13:06:24.680226 | 2020-07-31T09:22:27 | 2020-07-31T09:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | # shell.executable("/bin/bash") shell.prefix("source $HOME/.bashrc; ")
import glob
configfile: "config/config.yaml"
workdir: config["wdir"]
#SAMPLES, = glob_wildcards(config['new_data'] + "/{smp}_contigs.fasta")
rule all:
input:
prodigal_fa_done = config["rdir"] + "/gene_prediction/gp.done",
pfa... | [
"chiara.vanni5@gmail.com"
] | chiara.vanni5@gmail.com | |
dff6b6a5b2d3975ef21308b798a270290acf6b65 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/vfs/pathutils.py | a5eb45e442945312b73e304ec7158ad550551c8a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | from zope.interface import Interface, Attribute, implements
def getAbsoluteSegments(path, cwd='/'):
"""
@param path: either a string or a list of string segments
which specifys the desired path. may be relative to the cwd
@param cwd: optional string specifying the current working directory
retur... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
837b9bd883a8f8f73bb0b64118bd300f8fad8777 | 621d09168941583e58cb3684a5d18a89a09f25df | /Basics/Lists Exercise.py | 65b7ea7de988bb6e8a13fde61084a5a86b091531 | [] | no_license | WinnieAkoko/python-lessons | fa18c411f1acdf6aeff7a624ce950cdd00a684d7 | f79efc5e5ba5c9e3c7957ae8b5ea2961e7af0ad4 | refs/heads/master | 2020-08-08T06:56:51.975259 | 2019-10-09T12:36:27 | 2019-10-09T12:36:27 | 213,768,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | last_semester_gradebook = [("politics", 80), ("latin", 96), ("dance", 97), ("architecture", 65)]
#classes taken
subjects = ['physics', 'calculus', 'poetry', 'history']
#adding computer science as a subject in the list
subjects.append('computer science')
#Grades scored
grades = [98, 97, 85, 88]
#adding new computer scie... | [
"akokowinnie@gmail.com"
] | akokowinnie@gmail.com |
8af3e2ad066d0a2c03f009797f6900357ee8d4f8 | af67316880c483ebcb3e0c3f838d567f82283ba3 | /match_viaf_tulane.py | 5349a5b68aede68842dfe4662a7bb0c8298f95d9 | [] | no_license | thisismattmiller/viaf-match | 4f51923b9ad7beba6d0f29d2726deeb286816cd2 | bf14adfc226737fe12483df34a19366098342518 | refs/heads/master | 2021-01-24T21:48:42.107739 | 2014-09-01T22:19:49 | 2014-09-01T22:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | # -*- encoding: utf-8 -*-
import time, requests, json, sys, csv
import xml.etree.ElementTree as etree
class viafSearch:
viafURL = 'http://viaf.org/viaf/search?query=local.personalNames+%3D+{SEARCH}&httpAccept=text/xml'
sourceFile = 'tulane-no-dupes.csv'
resultsFile = 'tulane_results.json'
results = {}
re... | [
"wjlevay@gmail.com"
] | wjlevay@gmail.com |
469818cec526fe32e33a1104d950b13985461e29 | b49a307a66e1441af69ff155b9ba57af371181d5 | /watsononlinestore/tests/unit/test_cloudant_online_store.py | 7396aac0913b79bd003fd8054873b9fe192535b7 | [
"Apache-2.0"
] | permissive | viannaandreBR/watson-online-store | cb6bdf98a32977ec59d21ac735a9752b4e8dcf95 | 4b025e84f6b580959ac59354d0ea702e3469561a | refs/heads/master | 2020-03-09T20:48:45.312147 | 2018-04-06T19:10:45 | 2018-04-06T19:10:45 | 128,993,892 | 2 | 0 | Apache-2.0 | 2018-04-10T20:56:18 | 2018-04-10T20:56:17 | null | UTF-8 | Python | false | false | 2,484 | py | import unittest
import ddt
import mock
from watsononlinestore.database import cloudant_online_store
from watsononlinestore.watson_online_store import OnlineStoreCustomer
CUSTOMER_DOC = {
'type': 'customer',
'email': 'scott@gmail.com',
'first_name': 'Scott',
'last_name'... | [
"scott.dangelo@ibm.com"
] | scott.dangelo@ibm.com |
9e89a74743f1873a7f3eea681e95b23bc7db9d35 | eac1f9b8d01c4a818bb44edda13df4bfa73fddd9 | /src/NNF.py | fc9b65830c66256004ba049c7b1ab9bc56de1366 | [
"MIT"
] | permissive | sverres/pana | b047fceeba563fb9b56a55e70395661117c80682 | ca78d319e6eef5aabd319bf5f7f6120d6e95ebe4 | refs/heads/master | 2020-04-27T21:36:23.482309 | 2019-03-13T19:37:02 | 2019-03-13T19:37:02 | 174,704,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # S: mulig cluster-datasett (dictionary)
# P: CSR-datasett (dictionary)
def NNF(S, P, infinity):
D = {}
for i in P:
dMin = infinity
for j in S:
d = euclidianDistance(P[i],S[j])
if d < dMin:
dMin = d
D[i] = dMin
return D
| [
"sverre.stikbakke@gmail.com"
] | sverre.stikbakke@gmail.com |
51be5e11bf85efcb62360589b11709bd4141c04c | cde7e790103d94b6f5fb263196923f25ee50b57d | /matflow_formable/snippets/fit_yield_function.py | 457f5ae293a2a9019e96e54941bd25ea719c9848 | [
"MIT"
] | permissive | LightForm-group/matflow-formable | b651ee192195c26335016f54c3575f1d26771468 | 1b13a9addd7f232ef2f101a35aeccfe3eea1f7a4 | refs/heads/master | 2023-04-06T16:26:56.066710 | 2022-08-08T11:25:04 | 2022-08-08T11:25:04 | 262,661,868 | 4 | 3 | MIT | 2022-02-15T15:41:12 | 2020-05-09T21:26:57 | Python | UTF-8 | Python | false | false | 3,387 | py | from formable import LoadResponse, LoadResponseSet
from matflow.scripting import main_func
import numpy as np
@main_func
def fit_yield_function(
yield_function_name,
yield_point_criteria,
uniaxial_response,
multiaxial_responses,
fixed_parameters,
initial_parameters,
opt_parameters,
):
... | [
"adam.jp@live.co.uk"
] | adam.jp@live.co.uk |
8995d193c2bc3317d8701c0ec0608b01ca083e7e | e0ed2d79bcad42e27adc089f34fd9d62e79f11eb | /myForge.py | d2b4832e59dcbc861e6876ef547c0d037a1ff67d | [] | no_license | lyvd/MLPython | f6dcf16d9d0275a0c7900ac26032285bbf1040c2 | f8f82263dc22d787f311651ba8870aa062dbaf58 | refs/heads/master | 2021-01-10T23:23:56.144301 | 2016-10-13T07:26:45 | 2016-10-13T07:26:45 | 70,587,443 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import mglearn
import matplotlib.pyplot as plt
X, y = mglearn.datasets.make_forge()
print(X[:, 0]) | [
"vuducly151092@gmail.com"
] | vuducly151092@gmail.com |
7088ef175232c41f87a46face5ef3c3f34a5927d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02256/s464205146.py | 66f0c6b76ec4f68636fea32269d78178a8e85ded | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | a, b = map(int, input().split())
c = []
if a > b:
a, b = b, a
if b%a == 0:
print(a)
else:
while True:
for i in range(a):
x = i + 2
#print(a, x)
if a%x == 0:
if b%x == 0:
c.append(x)
a = a//x
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebaa610d6c8eb57c44c39600b076754a616c11b1 | 2ce46e0e82fca0c69228e56e38f33bbb198f9f04 | /homework/homework_pageobject_pytest_siye/PageObjects/tender_page.py | 536bf0d6128bbae18aad74d9189795e558e4f593 | [] | no_license | seesun1/LemonClass | 157ad65e0818bd76e4edafcc7e0889b89109d961 | 39fc70d467079ed8e9a229f03858160bf8d37926 | refs/heads/master | 2021-09-15T08:04:00.517038 | 2017-12-25T14:26:30 | 2017-12-25T14:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# @Time : 2017/12/4 0:01
# @Author : SiYe
# @PROJECT_NAME : LemonClass
# @File : project_page.py
# @Software: PyCharm
#-------------------------------------------------------------------------------
from selenium.webdriver.support.wait import WebDriverWait
from se... | [
"1076168822@qq.com"
] | 1076168822@qq.com |
23b2a6d4d56e1ea8e008aa3cbb98acddcc9fe8ef | 2d138e625134e0c02a56b39ebe1a06732a814b43 | /code/unshare.py | 8c2edceb1dd42ee62d0d337dfa01c4f6ba574a68 | [] | no_license | raven38/unshare | 95d35cbe31d5f9203b2ddf2bb317f877e75a07a6 | 966572a27d1c386c9a2f37175249dc765e3d0c65 | refs/heads/master | 2021-09-06T05:13:46.522648 | 2018-02-02T17:04:36 | 2018-02-02T17:04:36 | 117,635,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import numpy as np
import chainer
from chainer import functions as F
from chainer import links as L
from chainer import optimizers
from chainer import cuda
class Unsharing(object):
def __init__(self, rate, source):
self.rate = rate
self.source = source
def __call__(self, opt):
for t_... | [
"imperialroyalguard38@gmail.com"
] | imperialroyalguard38@gmail.com |
e5889701fc9377bce8eda18387d6adaea7a0c042 | 50bd113a98b1657d735a933c0fcc446dd8c35e3e | /companies/migrations/0011_auto_20190807_0332.py | 59e7718a743d90f137978161d15d48a3cf61152f | [
"Apache-2.0"
] | permissive | fuseumass/hackerforce | ab0d7e2fcb0c25276eac977fd628a0c67411e059 | dfb6ac1304a7db21853765de9da795e8e9ef20bf | refs/heads/development | 2022-12-23T09:44:38.319260 | 2019-12-05T00:11:59 | 2019-12-28T06:22:01 | 194,482,639 | 13 | 7 | Apache-2.0 | 2022-12-08T03:16:40 | 2019-06-30T06:21:44 | CSS | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.2.3 on 2019-08-07 07:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0010_auto_20190807_0322'),
]
operations = [
migrations.AlterField(
model_name='industry',
name='color',... | [
"j@wogloms.net"
] | j@wogloms.net |
8d874ae1d228b65020ae2eaecf75b061a12221ff | 33a7d502685de74e5d0ccfd470d06dfc7fd94e99 | /resolver/migrations/0009_nsrecord.py | 7166f259fc533e6bf6b4ba5a75e692a20084f075 | [] | no_license | vzubviktor/dnsvalidator | 79b1f78f8fb820504995f785ea648cf5f81c4a7a | 880c64c5df77dbe4e6ac77fe24816074ed989ddf | refs/heads/main | 2023-07-28T20:29:42.329831 | 2021-10-04T10:21:05 | 2021-10-04T10:21:05 | 365,290,789 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.2.2 on 2021-05-18 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resolver', '0008_auto_20210512_1726'),
]
operations = [
migrations.CreateModel(
name='NSrecord',
fields=[
... | [
"vzubviktor@gmail.om"
] | vzubviktor@gmail.om |
7b7484d1e4c325cf0a54fbdb9803d849b01ac137 | 24e0a0f20488ad2e36957e06808ee9374b761edc | /collective/geolocationbehavior/maps.py | 11a91099b47d8a7ca8ea075e1d14318f487a2b68 | [] | no_license | mamico/collective.geolocationbehavior | 4c374273eb39ebe9e33cfd7957271e7b516ac7ad | 14b602e50ecd2e155b6d85aee60889697c207c4b | refs/heads/master | 2021-01-16T21:15:57.080344 | 2013-03-13T01:11:32 | 2013-03-13T01:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from zope.interface import implements
from zope.component import adapts
from Products.Maps.interfaces import IMarker
from Products.Maps.adapters import BaseMap
from collective.geolocationbehavior.geolocation import IGeolocatableMarker
from collective.geolocationbehavior.geolocation import IGeolocatable
class Geoloc... | [
"jesses@npowerseattle.org"
] | jesses@npowerseattle.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.