blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2ebd1a75d40d5243131985f9e179274ccf490e4 | e3efa07f9d804b7cb65ff79034f5565953f369df | /day12.py | c7105577cb87ead3b6059b6f7b882ff7dfdab838 | [] | no_license | fursovia/adventofcode2020 | decb277b7eedbbf5229e8c2d80dfe74bede4d234 | 8d65174fc6908736cc5609ea3115eda9d9586f63 | refs/heads/main | 2023-01-30T21:35:17.927959 | 2020-12-13T17:33:55 | 2020-12-13T17:33:55 | 317,532,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | from dataclasses import dataclass
from typing import List, Tuple
from collections import OrderedDict
RAW = """F10
N3
F7
R90
F11"""
CARDINAL_MAPPING = OrderedDict(
{
"N": (0, +1),
"E": (-1, 0),
"S": (0, -1),
"W": (+1, 0),
}
)
DIRECTIONS = list(CARDINAL_MAPPING.values())
@dat... | [
"fursov.ia@gmail.com"
] | fursov.ia@gmail.com |
6433092cbee060d537b5cb9919a76a1ec7c5ab85 | 683b73e0c95c755a08e019529aed3ff1a8eb30f8 | /machina/apps/forum_conversation/forum_attachments/admin.py | de1995638c922ddee9447fdc8ec8937ae0ebd484 | [
"BSD-3-Clause"
] | permissive | DrJackilD/django-machina | b3a7be9da22afd457162e0f5a147a7ed5802ade4 | 76858921f2cd247f3c1faf4dc0d9a85ea99be3e1 | refs/heads/master | 2020-12-26T08:19:09.838794 | 2016-03-11T03:55:25 | 2016-03-11T03:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
# Standard library imports
# Third party imports
from django.contrib import admin
# Local application / specific library imports
from machina.core.db.models import get_model
Attachment = get_model('forum_attachments', 'Attachment')
class AttachmentAdmin(admin.ModelAdmin):
list_display =... | [
"morgan.aubert@zoho.com"
] | morgan.aubert@zoho.com |
bdcc367d50d850b9415469d0b80cd63c73ec7513 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /third_party/webtest/webtest/http.py | 890ef96ff90e6543783dd70d2c2b7b0768054a2f | [
"BSD-3-Clause",
"MIT"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 4,240 | py | # -*- coding: utf-8 -*-
"""
This module contains some helpers to deal with the real http
world.
"""
import threading
import logging
import select
import socket
import time
import os
import six
import webob
from six.moves import http_client
from waitress.server import TcpWSGIServer
def get_free_port():
s = socke... | [
"qyearsley@google.com"
] | qyearsley@google.com |
805e86f1d2bd1c867967768dadacd89d4c06a759 | 8823a9b97780bdf5f92c2ef3bfab28ea5a95abc0 | /problems/strings/tests/test_substrings.py | 434a5384b114cf584fe7f903cd441b2004d71c0d | [] | no_license | castlemilk/puzzles | 1ef2f9b7d0707e821869064b78a57691f2ba7a0a | 4cdc757fd14a444abe48254a0ecc8b04ca4b9552 | refs/heads/master | 2022-12-15T05:19:51.818193 | 2018-03-07T10:32:36 | 2018-03-07T10:32:36 | 122,824,563 | 0 | 0 | null | 2022-12-07T23:46:49 | 2018-02-25T10:07:36 | Python | UTF-8 | Python | false | false | 190 | py | from problems.strings import substrings
def test_permutations1():
assert substrings.is_permutation('abcd','aaaaa') is False
assert substrings.is_permutation('abcd', 'dcab') is True | [
"ben.ebsworth@gmail.com"
] | ben.ebsworth@gmail.com |
e2ded22e10d7c8fdba1a33dd11b5e8581b59afb5 | 16158ba3a3d94569498d51ab03ac19d7444b0349 | /kg/Recommender-System-master/Recommender_System/algorithm/KGCN/gpu_memory_growth.py | 9a808bd2987cfa7e6fb19015613b64193b9534f9 | [
"MIT"
] | permissive | lulihuang/DL_recommendation | c4109346a93336d85eed7bce2acfea143c76012c | 5e8b1b562cb4e6360103b11b6ec5601cd69282a3 | refs/heads/main | 2023-03-22T12:51:08.395165 | 2021-03-11T03:11:59 | 2021-03-11T03:11:59 | 328,589,292 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
import此文件后将gpu设置为显存增量模式
"""
from tensorflow import config
gpus = physical_devices = config.list_physical_devices('GPU')
if len(gpus) == 0:
print('当前没有检测到gpu,设置显存增量模式无效。')
for gpu in gpus:
try:
config.experimental.set_memory_growth(gpu, True)
except RuntimeError as e:
print... | [
"727445285@qq.com"
] | 727445285@qq.com |
6e3dd7d9f9580b03b86f84b139624874d5968242 | 1391fe8dcace0742232d11d96f1eca5da02581ba | /test.py | 465cf5bafb6627ab4907e62fc187ca32fd3dbf60 | [] | no_license | ha8sh/test | a0b879d2cc7b8d753aa7f4bfd75703cfa3b02d51 | af18128bae0ad195f9fb064da0807d67fd65180d | refs/heads/master | 2023-02-26T04:33:11.201116 | 2021-01-25T19:10:07 | 2021-01-25T19:10:07 | 332,850,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print("hassan")
| [
"root@ibs.ping308.net"
] | root@ibs.ping308.net |
ffa1f1f3a4d948cf970225aaaf6d9dfcbc38315c | d4ce88b6262d30e86f9be2d5635df8544df846e2 | /Web Scrapping/Selenium-Request&Beutifulsoup Detailed/Selenium/selenim_intr.py | 353973c7f248a049a92800b0e4111b37b27abe14 | [] | no_license | ahmetzekiertem/Web-Scrapping | e8d5d3fd2da03f408553c3f6fa1815d79d663af2 | 75a95b8373a84357bdd037cf6fef7461097bfacf | refs/heads/master | 2022-04-19T16:32:28.369369 | 2020-04-19T12:51:42 | 2020-04-19T12:51:42 | 256,998,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py |
from selenium import webdriver # imports
from time import sleep
from bs4 import BeautifulSoup
# make a webdriver object - chrome driver path for my system -- > /Users/waqarjoyia/Downloads/chromedriver
driver = webdriver.Chrome('/Users/mac/Desktop/geckodriver')
# open some page using get method ... | [
"40203533+ahmetzekiertem@users.noreply.github.com"
] | 40203533+ahmetzekiertem@users.noreply.github.com |
0e13ea228a661ee0d8e2c5bfce784e4d705a8f66 | 09b0075f56455d1b54d8bf3e60ca3535b8083bdc | /WideResnet.py | 595e4f69f1baa13a9f27f80fdb61e54773195de4 | [] | no_license | YanYan0716/MPL | e02c1ddf036d6019c3596fd932c51c3a14187f5e | 6ad82b050ec1ed81987c779df2dddff95dc1cde5 | refs/heads/master | 2023-04-17T23:05:54.164840 | 2021-05-07T01:14:49 | 2021-05-07T01:14:49 | 331,491,485 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 7,157 | py | import os
from abc import ABC
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow.keras import layers
from tensorflow.keras import regularizers
import config
class BasicBlock(layers.Layer):
def __init__(self, in_channels, out_channels, stride, drop... | [
"yanqian0716@gmail.com"
] | yanqian0716@gmail.com |
450652c8cc5a188c7692244ac62b7cc5f3cd3443 | 23be24e92420af66307121468136570234aceebd | /Problems/What day is it/task.py | 49c6dff7b35a4222d7bf355ce9d79d44fb131b7e | [] | no_license | sanqit/credit_calculator | c309013f6639e886ae2a257b6c37c401d2d7b1fa | 1b2aaab271b985ec2df47fe6409a08e4dd180a0f | refs/heads/master | 2022-11-15T05:30:49.412246 | 2020-07-04T20:50:04 | 2020-07-04T20:50:04 | 277,182,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | offset = int(input())
time = 10.5
n = time + offset
if n < 0:
print("Monday")
elif n > 24:
print("Wednesday")
else:
print("Tuesday")
| [
"admin@sanqit.ru"
] | admin@sanqit.ru |
138b1b5eaed3c0e2c160f52a49e9ed9f1a6fd14b | 65331b368b8956c4864e95e21e6b9c2b3c715a2f | /__init__.py | 951540ce32097ac761cc9accb9ab3842ef23d029 | [] | no_license | yamoimeda/diccionario-guna | 83358ded73d79282457ff21984cdbff3028e1a82 | e3041d22721cab9e97e9ebd45d3456d9960aecfe | refs/heads/master | 2021-06-27T08:56:02.247787 | 2021-02-11T23:27:30 | 2021-02-11T23:27:30 | 203,426,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from flask import Flask,redirect,url_for,render_template,request,jsonify
from pymongo import MongoClient
import sqlite3 as sql
app = Flask(__name__)
#cliente = MongoClient("localhost", 27017)
#db = cliente.diccionarios
@app.route('/',methods=['GET','POST'])
def index():
return render_template('inicios.ht... | [
"noreply@github.com"
] | yamoimeda.noreply@github.com |
d7df85c05060a2aec8d54ca9acc857b79150ca15 | ba466ae34666eb71584cc3a808bdd78f5f555d2f | /exercicios/ex37.py | 2ccae9fb556d61448789994befc172790a367837 | [] | no_license | gilmargjs/cursoEmVideoPython | 8fa30984c00abd3ca331aab3de3d8e017d451e52 | cb15343bf5c884b2045e6a35b949cd02c3e8321c | refs/heads/main | 2023-06-12T22:48:59.398215 | 2021-06-30T20:52:55 | 2021-06-30T20:52:55 | 381,829,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """programa que laeia um número intgeiro qualquer e peça
para o usuario escolher qual será a base da conversão:
-1 para binario
-2 para octal
-3 para hexadecimal
"""
print('='*30)
print('SISTEMA DE CONVERÇÃO DE BASES')
print('='*30)
num = int(input("Digite um número: "))
print('''Escolha uma das Bases para Conversão:... | [
"gilmarjose2014@gmail.com"
] | gilmarjose2014@gmail.com |
7f9d646ad4abee72b62035b949da452c7e34ddbd | 35f076d1e8b5bbc3871a622b7808246e24b87f95 | /src/github/__init__.py | 10e03497751ba2b6964ca5e7dd22f5646fd3c7f5 | [] | no_license | elena20ruiz/github_crawler | 379ece12e07dcc5c866ca2aa8604d564d45010ff | dad9484539cc371584eb94ecfc20861e342325ee | refs/heads/master | 2020-12-27T18:17:21.001287 | 2020-02-08T17:35:18 | 2020-02-08T17:35:18 | 238,001,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py |
GITHUB_URL = 'https://github.com'
__all__ = [
'GITHUB_URL'
] | [
"elena.ruiz.bdn@gmail.com"
] | elena.ruiz.bdn@gmail.com |
2eb73db4561ba05eee120641d58dcfdf2e0c885b | 333632d57adb95541042769fed09b9698996f0b2 | /fullstack/venv_linux_auth0/bin/rst2xml.py | 483278b51727939b4ecb68f5f5a86856858bfb7c | [] | no_license | NginxNinja/Udacity_FullStack | c71f0ef323d794767c59b7316f845744ec9d9773 | ec028682633e4979a5938956ff92d336270a57f3 | refs/heads/master | 2021-05-19T15:12:05.720426 | 2020-05-24T00:31:33 | 2020-05-24T00:31:33 | 251,841,704 | 0 | 0 | null | 2020-04-18T06:18:28 | 2020-03-31T22:55:39 | Python | UTF-8 | Python | false | false | 622 | py | #!/vagrant/venv_linux_auth0/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import locale
locale.set... | [
"dummy.kenmen2@gmail.com"
] | dummy.kenmen2@gmail.com |
2edce3beb41e028a8b6e04ee2df6b6902f74f0a5 | feee01a7ba1ccc745060cf8233168934c5ef6426 | /apps/courses/migrations/0009_course_teacher.py | 33de7421a3c85d8ba99c73f05edd594c8b124b27 | [] | no_license | carpenter-zhang/muke | bfa7fa320536466de3f12223b4ae98dc635ceba6 | 7529f4e6be5c1919b86194093e45f574a0ffa89a | refs/heads/master | 2021-08-26T08:15:35.907867 | 2017-11-22T13:15:06 | 2017-11-22T13:15:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-11-08 16:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organizations', '0006_teacher_image'),
('courses', '00... | [
"596864319@qq.com"
] | 596864319@qq.com |
e3c07ab1c0f8f850ba14972383d4621221272771 | f36be49208238248fa155311a8fa115e3e672efb | /faq/migrations/0001_initial.py | 6eb45e075d0be3bdde3f88467367a6da286b3f51 | [
"MIT"
] | permissive | Sejong-Creative-Semester2021/OJ-BE | 71eb3bd88ce6767952227811d922000a9f407867 | cecc511b771f1979ba7a556abdae1cbefa8e17bd | refs/heads/main | 2023-08-14T03:23:54.029155 | 2021-09-17T13:00:45 | 2021-09-17T13:00:45 | 397,147,494 | 0 | 0 | MIT | 2021-08-30T04:03:01 | 2021-08-17T07:12:44 | Python | UTF-8 | Python | false | false | 1,141 | py | # Generated by Django 3.2.6 on 2021-09-17 12:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import utils.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | [
"mksin00@naver.com"
] | mksin00@naver.com |
ad833abfa7ebc2a0c6d29bf5cc8502e93504ecf0 | 115dfb558763fe51bc6d065435e4181057907dee | /lintcode/空格替换.py | 4bc2be3615ae4a137bf54514b44b36f8585a3a6f | [] | no_license | StSphinx/leetcode | a8f328f9f409ca57d56f2054598e2024c578c0a6 | 699e8ead451b570aed22d3a705a5ecbb7178cea1 | refs/heads/master | 2020-09-22T02:49:27.327193 | 2019-05-22T03:46:12 | 2019-05-22T03:46:12 | 37,531,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- coding:utf-8 -*-
__author__ = 'Muming'
class Solution:
# @param {char[]} string: An array of Char
# @param {int} length: The true length of the string
# @return {int} The true length of new string
def replaceBlank(self, string, length):
# Write your code here
for k, v in enumerate(... | [
"zhhljdb6014@gmail.com"
] | zhhljdb6014@gmail.com |
b5d716b2740e66732492a580f7db8280232f261e | d3d8acc788bd3a8d7e5f861ad87c4d802723062b | /test/step3_descope200MCHF_HLT.py | c2272355f19530f27df01562b14bf70d1dee3ae4 | [] | no_license | calabria/L1IntegratedMuonTrigger | 27ff0bde46208f84595423ec375080979fbe4c62 | 05a368b8d04f84b675d40445555f2cacfd135e4e | refs/heads/master | 2021-01-24T21:57:42.232290 | 2015-08-11T11:52:35 | 2015-08-11T11:52:35 | 38,485,204 | 0 | 2 | null | 2015-08-11T11:52:35 | 2015-07-03T09:40:57 | Python | UTF-8 | Python | false | false | 4,607 | py | # Auto generated configuration file
# using:
# Revision: 1.20
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3_descope200MCHF --fileout file:out_hlt_descope200MCHF.root --mc --eventcontent RECOSIM --step HLT --customise RecoParticleFlow/Pandora... | [
"sven.dildick@cern.ch"
] | sven.dildick@cern.ch |
151d04d5fcd1d701ef91676c6174b1bebb1baf8c | 208db76b669686f782d59ec393efdb11e3d3cbbc | /test.l0.py | 0f6d3d40bd459a45e68347a3ddc466043ba27139 | [] | no_license | vsevolod-oparin/stream-dynamic-components | 149542d1dd754cd3f9a7e7bfdff118612e3fb21a | ef5e40cb07f568205a140b78a77067f32d4f34cd | refs/heads/master | 2021-01-10T01:32:21.968060 | 2016-02-09T16:00:41 | 2016-02-09T16:00:41 | 51,305,791 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import random
from algo.l0sample import Rec1 as Rec1
from algo.l0sample import RecS as RecS
from algo.l0sample import RecGeneral as RecGeneral
class TestRec1(unittest.TestCase):
def test_zero(self):
r = Rec1(100, 0.001)
self.assertFalse(r... | [
"oparin.vsevolod@gmail.com"
] | oparin.vsevolod@gmail.com |
d8229a35567ff7594f50dbb89b7cea36bec123ac | 148125096da896fd93292d2cd408265d159fec28 | /qa/rpc-tests/p2p-acceptblock.py | 2267768dbfeb2685302144171cfdd388f4355b4c | [
"MIT"
] | permissive | lycion/lkcoinse | 7cfbcbdfc1e98f20d9dfc497ea65fd75ca6de25d | 9cf9ed5730217566b44466c22dc255f0134ad1bb | refs/heads/master | 2020-03-30T03:24:44.245148 | 2018-09-28T04:55:30 | 2018-09-28T04:55:30 | 150,548,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,678 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Lkcoinse Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
from test_framework.mininode import *
from test_framework.test_framework im... | [
"lycion@gmail.com"
] | lycion@gmail.com |
74dd88c522c1f43180958ef5d5f77d70bc1a149a | 529b575a77c6c39714704c60e9705eaf52bd48d3 | /tictactoe.py | dea97741580f86f1c1e9f720054c2dca5e7284b3 | [] | no_license | alevi0106/AI | 82151cd5c415f0ab7d852cc8d76f88ae56490835 | c9ab47e63d8f8a0a0f0d5b1fd824a5096f3115a8 | refs/heads/master | 2020-03-22T21:58:33.549768 | 2018-09-27T10:01:02 | 2018-09-27T10:01:02 | 140,725,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | board=[2]*10
board_copy=[" "]*10
#To draw a board
def draw():
for i in range(1,10):
if board[i]==3:
board_copy[i]="X"
if board[i]==5:
board_copy[i]="O"
#print(board_copy)
print(' {} | {} | {}'.format(board_copy[1],board_copy[2],board_copy[3]))
print(' {} | {} | {}'.format(board_copy[4],board_copy[5],boa... | [
"noreply@github.com"
] | alevi0106.noreply@github.com |
6537118072122509e9adad7738eee5616a1b24dd | fc83fc10fcc509316e612d73bd40a81d3ca0a2e6 | /tests/nd_gaussian_multiprocessing.py | 1f8c698393e3a088d991eb3484785a391dc3c783 | [
"MIT"
] | permissive | DimitriMisiak/mcmc-red | 47dfb7e0664205da55fa463df77851722082e3c3 | caae0ce39d082e578176a5078a9184980b0851c3 | refs/heads/main | 2023-06-19T04:10:42.385862 | 2019-07-05T07:45:01 | 2019-07-05T07:45:01 | 387,757,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Handy MCMC scripts.
Test for the different fit method (mcmc, ptmcmc, minimizer).
Author:
Dimitri Misiak (misiak@ipnl.in2p3.fr)
"""
import numpy as np
import matplotlib.pyplot as plt
import sys
import scipy.signal as sgl
from os import path
import scipy.optimize ... | [
"dimitrimisiak@gmail.com"
] | dimitrimisiak@gmail.com |
05c06ff5850ee1f5cbab0d42f5704ce5b0f4acb3 | 57d1580fd540b4819abb67f9db43fdfbba63725f | /hydrogen_notebooks/option_pricing/binomial_european_call_delta_hedging.py | 29f3ca209e1b50cb4571fff0cac52d807c607296 | [] | no_license | glyfish/alpaca | 49edfcb9d80551825dfa4cf071f21aeb95a3502f | 2b5b69bcf50ed081a526742658be503706af94b4 | refs/heads/master | 2023-02-22T00:24:19.293502 | 2022-09-05T17:20:23 | 2022-09-05T17:20:23 | 186,169,438 | 1 | 3 | null | 2023-02-11T00:52:12 | 2019-05-11T18:38:58 | Python | UTF-8 | Python | false | false | 2,302 | py | # %%
%load_ext autoreload
%autoreload 2
import os
import sys
import numpy
from matplotlib import pyplot
from lib import config
from scipy.stats import binom
wd = os.getcwd()
yahoo_root = os.path.join(wd, 'data', 'yahoo')
pyplot.style.use(config.glyfish_style)
# %%
def qrn(U, D, R):
return (R - D) / (U - D)
def... | [
"troy.stribling@gmail.com"
] | troy.stribling@gmail.com |
f1a9d5f8ac93d9af895ae5ffd7c6036d617c5d19 | 6b83e1eb08926bd2437c3a42bf53e262fda81cd3 | /algorithms/envs/flow/envs/ring/lane_change_accel.py | ea40b24414a20e24a7db6c8d2e50716d09bf8c08 | [] | no_license | TerryLiu2k/DMPO | a92d2b96458066cd441293f618aca10bd21fce22 | 060c4135973a1b9bdea0cd26ea8f78a3a7ad5d98 | refs/heads/master | 2023-08-15T16:09:08.202735 | 2021-10-16T04:07:38 | 2021-10-16T04:07:38 | 416,567,453 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,406 | py | """Environments that can train both lane change and acceleration behaviors."""
from algorithms.envs.flow.envs.ring.accel import AccelEnv
from algorithms.envs.flow.core import rewards
from gym.spaces.box import Box
import numpy as np
ADDITIONAL_ENV_PARAMS = {
# maximum acceleration for autonomous vehicles, in m/s... | [
"terrylyclow@yahoo.com"
] | terrylyclow@yahoo.com |
948f743d6e0bc327c25c496c6faeecf388f602ac | 569970f62eca0ff81e1f3aaca7f14c08021fa1a3 | /example1.py | 459893bf3f7a622ea4c88414a80137553c732951 | [
"MIT"
] | permissive | u9n/enron-modbus | c958c0af7408dcbc6efe3b526b55eba694e63c98 | 68418a07dbbd8b6e4763e4d1cb8eb2915ff040d7 | refs/heads/main | 2023-08-17T01:07:55.522410 | 2023-08-08T12:33:17 | 2023-08-08T12:33:17 | 377,763,911 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from enron_modbus.client import EnronModbusClient
from enron_modbus.transports import SerialTransport
transport = SerialTransport(port="/dev/tty.usbserial", baudrate=9600)
client = EnronModbusClient(transport=transport)
client.connect()
print(client.read_numerics(1, 5160, 6))
print(client.read_numeric(1, 5160))
print(... | [
"henrik@pwit.se"
] | henrik@pwit.se |
f44cb8ff8292065f395502b902384d138c5b9281 | f09ef05dbc335a095c3652089bd98c9ba2f0e1de | /project_model/blog/migrations/0004_blogpost_posted_by.py | 442e65869d57a4228993da0add9fc0dbedf1a905 | [] | no_license | Dzinsyah/DJANGO_MVC | be45e2900203717dba51c1221f899d1c54324c36 | 5dea4d592ffecd1918e78c2aae185076a4e21fa4 | refs/heads/master | 2020-04-22T02:50:53.661662 | 2019-02-13T11:58:45 | 2019-02-13T11:58:45 | 170,065,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 2.1.5 on 2019-02-11 07:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_blogpost'),
]
operations = [
migrations.AddField(
model_name='blogpost',
... | [
"dzinsyah@alphatech.id"
] | dzinsyah@alphatech.id |
552afe3365ed66d2b8652c89879abaa32a139ce6 | 548a195b2bd6e5857f008ef4b5a305983bada183 | /popular-movie-nicer.py | c207732295d01f823104ab24c3592707649b22c2 | [] | no_license | aashray18521/Udemy-Spark_Python | b404801aba3bcb9c896a34fcd3679172ef092caf | 13174529199d581598902dadcf07dcb171cadf33 | refs/heads/master | 2020-03-28T10:55:32.160605 | 2018-09-17T06:44:21 | 2018-09-17T06:44:21 | 148,159,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from pyspark import SparkConf, SparkContext
def loadMovieNames():
movieNames = {}
with open("ml-100k/u.item") as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[1]
return movieNames
conf = SparkConf().setMaster("local").setAppName("nicePopularMovie")
sc = SparkContext(conf = ... | [
"noreply@github.com"
] | aashray18521.noreply@github.com |
ce5dade7d36a431e3ec81dade64648f6c22eca35 | 7832e7dc8f1583471af9c08806ce7f1117cd228a | /aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/RunClusterServiceActionRequest.py | eb1c959505c70fd4e06aa43388665c4d9f9b06a3 | [
"Apache-2.0"
] | permissive | dianplus/aliyun-openapi-python-sdk | d6494850ddf0e66aaf04607322f353df32959725 | 6edf1ed02994245dae1d1b89edc6cce7caa51622 | refs/heads/master | 2023-04-08T11:35:36.216404 | 2017-11-02T12:01:15 | 2017-11-02T12:01:15 | 109,257,597 | 0 | 0 | NOASSERTION | 2023-03-23T17:59:30 | 2017-11-02T11:44:27 | Python | UTF-8 | Python | false | false | 3,508 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
1d0914e57305a093924e35492cdf55af4109608e | 5805bf03876af7f32e75fbc467b257768676ce42 | /compadre-appengine/compadre-server/run.py | 5b81242d833dbdb0fafb4183df8d100cd0b475bd | [] | no_license | mtaziz/Compadre | 53ce8c717674886cadb16c81f2d87bdc7a11fe78 | 83473b404597dcf7140e8a435ac4c1e4d894020f | refs/heads/master | 2021-01-17T15:54:39.716474 | 2016-06-20T16:57:01 | 2016-06-20T16:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | import os
import sys
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'lib'))
import application
| [
"yonatano@gmail.com"
] | yonatano@gmail.com |
59394e931356467d27d5d2fb4d1f788d461283b7 | 026c31969fe43e3d14029a8dbf7b4e3e435a06d2 | /users/tests/test_admin.py | 7c8be906cd6030b7fe983ed5bab088036da8a00c | [
"MIT"
] | permissive | victorfsf/github-monitor | db83c9f2ad0e725f6adbfa2c56c299aeadd5bc3a | 7192827d44ca616c0914864770f8f7910cbe55b3 | refs/heads/master | 2020-03-08T00:44:30.341022 | 2018-04-09T23:43:12 | 2018-04-09T23:43:12 | 127,812,813 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from django.test import TestCase
from django.test.client import RequestFactory
from model_mommy import mommy
from common.site import GithubMonitorAdminSite
from users.admin import GithubUserAdmin
class TestGithubUserAdmin(TestCase):
def setUp(self):
factory = RequestFactory()
self.user = mommy.... | [
"victorfsf.dev@gmail.com"
] | victorfsf.dev@gmail.com |
b09fdc0bc43f30b2b51c8893afcf2024ef86d619 | 0009c76a25c89a0d61d3bc9e10071da58bdfaa5a | /py/ztools/mtp/mtp_tools.py | 0496f5ae683026478bdcc98faf9cc9c89b3e14a9 | [
"MIT"
] | permissive | julesontheroad/NSC_BUILDER | 84054e70a80b572088b0806a47ceb398302451b5 | e9083e83383281bdd9e167d3141163dcc56b6710 | refs/heads/master | 2023-07-05T05:23:17.114363 | 2021-11-15T19:34:47 | 2021-11-15T19:34:47 | 149,040,416 | 1,249 | 143 | MIT | 2022-12-15T03:19:33 | 2018-09-16T22:18:01 | Python | UTF-8 | Python | false | false | 8,313 | py | import os
from listmanager import folder_to_list
from listmanager import parsetags
from pathlib import Path
import Print
import shutil
from mtp.wpd import is_switch_connected
import sys
import subprocess
from python_pick import pick
from python_pick import Picker
squirrel_dir=os.path.abspath(os.curdir)
NSCB_dir=os.pat... | [
"42461174+julesontheroad@users.noreply.github.com"
] | 42461174+julesontheroad@users.noreply.github.com |
84eb65886a58255c2d3c09f27ece27c9be43b5bf | d55deb7b26277a647aff5887cdbe65f002035ac7 | /jobs/models.py | b2cee414ec2ee17dd8d1ae2de7a8ea7258a12eae | [
"MIT"
] | permissive | cyndi088/recruitment | 0af95ef6028c678e49952752e65dd7e58fd9799f | e25e29b8b6724f1dce7b9ed5d9efb409744907c0 | refs/heads/main | 2023-01-22T18:38:55.403025 | 2020-12-03T06:19:16 | 2020-12-03T06:19:16 | 318,094,536 | 0 | 0 | MIT | 2020-12-03T06:19:17 | 2020-12-03T06:13:45 | Python | UTF-8 | Python | false | false | 1,226 | py | from django.db import models
from datetime import datetime
from django.contrib.auth.models import User
# Create your models here.
JobTypes = [
(0, "技术类"),
(1, "产品类"),
(2, "运营类"),
(3, "设计类")
]
Cities = [
(0, "北京"),
(1, "上海"),
(2, "深圳"),
(3, "杭州")
]
class Job(models.Model):
job_typ... | [
"cyndi088@163.com"
] | cyndi088@163.com |
e30bf0195bbfc6ed9aa15d5e111172064f3af938 | bc863127e5f44ede4cfe46316ec44ce00cffb2d4 | /config.py | d27612bdaa7edb6acf23a584e67ea2f321b668d9 | [] | no_license | yogeshBsht/FeedbackForm | d33ce048261177badbed07871711da6260b93086 | 8c87505100bda14add08b1bfa3918ffc95a97525 | refs/heads/main | 2023-06-02T15:42:36.984226 | 2021-06-21T17:06:31 | 2021-06-21T17:06:31 | 378,629,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = ... | [
"ybnsit@gmail.com"
] | ybnsit@gmail.com |
9ef5be1266f315f4969221617ac232fd1647c121 | 1ed17b57788423eb62570020286daf3016749706 | /CountryGroup.py | e88e6d468fe13afca192163b40994c5c0da6a8bc | [] | no_license | yuvapriya/TopCoder | b37749e4afae7fedf5a10881ba2dd2249dc08bc5 | 6dea4cc9bb70ab26ac70a846a2cd46a82061c033 | refs/heads/master | 2021-01-19T06:37:17.735811 | 2015-05-17T21:47:30 | 2015-05-17T21:47:30 | 35,783,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | #Problem Statement: http://community.topcoder.com/stat?c=problem_statement&pm=13687
def countryGroup(arr):
countryGrp = {}
prev = None
for i in range(len(arr)):
val = arr[i]
if( val in countryGrp):
countryGrp[val] +=1
if(val != 1):
if prev != None and ... | [
"m.yuvapriya@gmail.com"
] | m.yuvapriya@gmail.com |
4d251c34bdbf56b6e283315909d38807e090ff38 | 66746ed38e13b2d069829b1e7d963e2a66808f4e | /37 - Estrutura de repetição WHILE - Cria menu.py | 92ebdc45c4e59ce4ccd23fb7fb34b6fe0a53358f | [] | no_license | leanndropx/px-python-logica-de-programacao | 23ea8064381646623556130c29c7ecec4a845eb1 | 72d852abc8b4f85c0963909aab8e6aa0e9278ec1 | refs/heads/master | 2023-06-17T09:22:47.516634 | 2021-07-15T11:42:19 | 2021-07-15T11:42:19 | 385,781,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py |
# - DESCREVENDO O DESAFIO
print('37 - Crie um programa que leia DOIS valores e mostre um menu na tela:')
print('1 - somar')
print('2 - multiplicar')
print('3 - maior')
print('4 - novos números')
print('5 - sair do programa')
print()
print()
# - INICIALIZANDO O PROGRAMA
# IMPORTA BIBLIOTECAS
f... | [
"leanndrompeixoto1@gmail.com"
] | leanndrompeixoto1@gmail.com |
3b02f493286c8655b3bc6b8e6da7a3105dcca05f | a3b46d9b89bf7cf984413845db604ec2c98df8b3 | /code.py | 78d1cca2ec8f0d4db535249a5eb54e431c8c5d2a | [] | no_license | asahazmy/Field-prediction | 3c1b3cd1a057457648237db2933f5608dff6a305 | 6b7ff05371e20ac9da9cd54ca74ac606914c7f70 | refs/heads/master | 2023-01-03T06:14:01.879003 | 2020-10-25T13:08:21 | 2020-10-25T13:08:21 | 275,312,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,972 | py | import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import reduce_sum
from tensorflow.keras.backend import pow
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Conv2D, MaxPool2D, UpSampling2D, Concatenate, Add, Flatten
from tensorflow.keras.losses import bin... | [
"noreply@github.com"
] | asahazmy.noreply@github.com |
fa26cbfd0a0af998227fd24745c6f1b50a85ae34 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03046/s367901013.py | bd60026b909a76c85e533b517ac364ab9dac011a | [] | 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 | 1,127 | py | from sys import stdout
printn = lambda x: stdout.write(str(x))
inn = lambda : int(input())
inl = lambda: list(map(int, input().split()))
inm = lambda: map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 999999999
R = 10**9 + 7
def ddprint(x):
if DBG:
print(x)
m,k = inm... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
354f4e8b11fc7deaae648a37d207d137f827d66e | 0aa87ee2e544f56c17c2dde28a3b3feed08daa14 | /apps/users/urls.py | 6dda1d1373eadae3c77476250c17308642600204 | [] | no_license | yanshigou/mxonline | f2cc44724c1511418953e7e06d04661244b29455 | cebc3295734713846828246fc54dd33f8df14f86 | refs/heads/master | 2022-12-09T12:11:05.734326 | 2022-08-17T10:38:13 | 2022-08-17T10:38:13 | 148,120,737 | 0 | 2 | null | 2022-12-08T02:58:15 | 2018-09-10T08:06:10 | Python | UTF-8 | Python | false | false | 1,309 | py | # -*- coding: utf-8 -*-
__author__ = 'dzt'
__date__ = '2018/12/21 23:48'
from django.conf.urls import url
from .views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourses
from .views import MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView
urlpatterns = [
... | [
"569578851@qq.com"
] | 569578851@qq.com |
506ab3ede97c112af86c4a23956ee39a25c9aecd | 83b1a267809c08a57a3bb16c103d71539502a650 | /job/migrations/0011_apply_created_at.py | c9ebca4b68d4fe3dc9d8d3052bdac004ee5816f8 | [] | no_license | rimatechcampus/django-jobboard-project- | c66933295b4692c7d3cb055dcf0cbaef80424b38 | 8823e1e7db011a4fbaa0fc87f1810bcd5dab08c6 | refs/heads/master | 2022-11-20T16:40:56.495550 | 2020-07-19T16:52:13 | 2020-07-19T16:52:13 | 279,794,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.0.8 on 2020-07-18 08:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job', '0010_apply_job'),
]
operations = [
migrations.AddField(
model_name='apply',
name='created_at',
fi... | [
"riyamtechcampus@gmail.com"
] | riyamtechcampus@gmail.com |
3412b6740ab16c481792133ad7b3581fee11316c | 604756ba3da355fffb1a1cf4b882441de2d75184 | /app/util/py2mongo.py | d6d181192ddcc862daecdedcade7e3838cf2a87d | [] | no_license | gowthamlabs/python-rest-ml | 4e93f64019e28f4436b4c634d275e98b70c98939 | 3aa0a1b6fddd52037bfcdb065a9ae63105fd9f6c | refs/heads/master | 2020-07-29T01:59:28.579650 | 2019-09-30T04:46:39 | 2019-09-30T04:46:39 | 209,625,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from pymongo import MongoClient
# pprint library is used to make the output look more pretty
from pprint import pprint
# connect to MongoDB, change the << MONGODB URL >> to reflect your own connection string
# client = MongoClient("localhost:27017") --> this also works
try:
client = MongoClient(port=27017)
except Exce... | [
"gowtham.venugopalan@cognizant.com"
] | gowtham.venugopalan@cognizant.com |
a25c70b086e30d5453a6b2028947b60a2489d0ec | 333b2e1284be6ea06a9989bcc76fd296f5c4f0a4 | /modules/study.py | 7aff8c48c34019e170d78e05afffc4ecb7954e76 | [] | no_license | luomeng007/MyLife | 567df155a30857e2c5f03049611d83eb0a847c02 | 76447fdfeaa83d7b77964560d56c67ce2cd36905 | refs/heads/main | 2023-01-20T14:17:30.613718 | 2020-11-29T10:46:26 | 2020-11-29T10:46:26 | 309,741,680 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | # -*- coding: utf-8 -*-
import os
import time
import speech
class Study:
def __init__(self):
while True:
print("请您选择,提示:请输入序号1或者2")
print("1. 学习30分钟")
print("2. 学习60分钟")
self.choice = input("您的决定: ")
print("")
if self.... | [
"noreply@github.com"
] | luomeng007.noreply@github.com |
dc99e0b0e9ab6f25c323a84c139ce0ec4d9fcdeb | bcd33ba045b68fe6fba6f7a3a8fd95124106ac16 | /tests/test_dates.py | d2c3b3422cc62b44cc924dd40f9e617529822d61 | [
"MIT"
] | permissive | bfontaine/Romme | 43d9ba2f6cd09f7b24f8916b121854521009cdd0 | affdfb23a6bb882c17da95ec3767710d5bebd59a | refs/heads/master | 2021-03-27T12:29:13.329232 | 2017-06-10T19:42:30 | 2017-06-10T19:42:30 | 93,895,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # -*- coding: UTF-8 -*-
import unittest
from romme.dates import RepublicanDate
class TestDates(unittest.TestCase):
def test_str(self):
rd = RepublicanDate(1, 1, 1)
self.assertEqual("1 Vendémiaire, an I", str(rd))
| [
"b@ptistefontaine.fr"
] | b@ptistefontaine.fr |
91f7b4d2efaf48ed26bfcc96e2670ac062a664fe | 6515c886cc420539bed05b2250c76e1c6974e5da | /models/mxnet_resnet_50.py | 708dbb07c13c01468c1d3fe4962f17ca8206bfd6 | [] | no_license | yuanmengzhixing/pytorch_deep_metric_learning | a320fd4e8863b9b8c3768b61e46027ccfc2077ee | b57621355a49af89573447c72685694043548434 | refs/heads/master | 2020-03-22T23:10:11.622231 | 2018-03-11T08:02:56 | 2018-03-11T08:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,697 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
__weights_dict = dict()
pre_trained_path = '/home/zhengxiawu/project/pytorch_deep_metric_learning/pretrained_models/kit_pytorch.npy'
#pre_trained_path = '/home/zhengxiawu/deep_learning/model/mxnet_2_resnet/mx2pt_resnet_50.npy'
#pre_... | [
"zhengxiawu@126.com"
] | zhengxiawu@126.com |
0861548899e4e325b8f98626824a5f2a3f40c4a1 | d620b82c57adde1636826601e2b99209689ad2c4 | /model/xgboost/xgboostprocess.py | 8facdb750067deadb04ba3f2ca6276a0d2ee0326 | [] | no_license | weigebushiyao/HFData-PitchSystemModel | 1a75e2da6bef1bdbcae0eee1b1b9519bee03b56c | 58c77cdfcf85e49d7ab1f7163374c906ac0df361 | refs/heads/master | 2022-07-11T22:30:35.794840 | 2020-05-18T06:36:54 | 2020-05-18T06:36:54 | 264,849,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | #-*-coding:utf-8-*-
from sklearn.model_selection import RandomizedSearchCV
import pandas as pd
from xgboost.sklearn import XGBRegressor
from model.get_data_path import get_train_data_path,get_test_data_path
from sklearn.model_selection import train_test_split
import os
from util.show_save_result import ShowAndSave
cu... | [
"505456072@qq.com"
] | 505456072@qq.com |
72ec7cf470d37dd39544d24e30dce4db9ee66c02 | 69d4577c856c8352f4b41a83431ca304bae3a8a2 | /model/charcnn.py | 286006f682bb6386485eaa862be0faef17d080aa | [
"Apache-2.0"
] | permissive | tagucci/NCRFpp | ecbdd6d9c6e87505bc200047eb4f2a21c651d2c9 | 3fd65685c26ed0686efde933d262b85daeb02697 | refs/heads/master | 2020-03-11T22:51:23.497036 | 2018-04-19T12:38:44 | 2018-04-19T12:38:44 | 130,304,515 | 0 | 0 | Apache-2.0 | 2018-04-20T03:35:53 | 2018-04-20T03:35:53 | null | UTF-8 | Python | false | false | 2,910 | py | # -*- coding: utf-8 -*-
# @Author: Jie Yang
# @Date: 2017-10-17 16:47:32
# @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com
# @Last Modified time: 2018-03-30 16:18:23
import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class CharCNN(nn.... | [
"jie_yang@mymail.sutd.edu.sg"
] | jie_yang@mymail.sutd.edu.sg |
ff0ea4acf2347925603c4adec3f917e249a6c633 | eb0ff0b6979a4cef6b1d8509d10579da9a6aca90 | /main.py | 5c8cb04f647953e8faa71d2b9c1e2fbec3279661 | [] | no_license | SusaOP/Motion-Detection-Security-Camera | 71b44e2b80ddf99f611c85c375b68afa242f41e3 | 33468eb9a6743476e048fd2785c0ad82cf5feb79 | refs/heads/main | 2023-06-27T20:30:12.629899 | 2021-08-06T01:04:39 | 2021-08-06T01:04:39 | 393,207,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import os
import shutil
from datetime import datetime
from operateCamera import videoRecord
from into_frames import toFrames
from compare_frames import compare
from send_email import fromFlaggedToSent
from send_email import establishAttachment
local_max = 0
for i in range(2):
saveDir, videoFile = videoRecord()
... | [
"noreply@github.com"
] | SusaOP.noreply@github.com |
9a6921acf2118b13a365d80619408f90133228ad | 12596a0809bc4ce7eba4f1f32cbf96c8191f5628 | /ProgramFlow/guessinggame.py | cd83bec8fcc24262a2d83ae812b093853753f8c7 | [] | no_license | MichaelAntropov/python-masterclass | e19c34d11eab42b9a3c58d568c866fb747ffe3ff | 037456ff3f67ae5adf16465e8882a42ada0ca6c1 | refs/heads/master | 2023-04-06T11:59:19.402503 | 2021-04-17T13:43:04 | 2021-04-17T13:43:04 | 342,575,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import random
highest = 10
lowest = 0
answer = random.randint(lowest, highest)
print(answer) # TODO: Remove after testing
print("Please guess a number between {} and {}:".format(lowest, highest))
while True:
guess = int(input())
if guess == 0:
print("U gave up :(")
elif guess < lowest or guess... | [
"mikhael.antropov@gmail.com"
] | mikhael.antropov@gmail.com |
a9f2bfe4189be9732b9d1c4db1fff1baab5cbbd9 | 94b8f8f7241545e614dc51f708c3b5b876f6db0c | /test.py | ce1d52ce890c992dc59565079f5e3c9ef7ba3cca | [
"MIT"
] | permissive | aliyun/The-Blessings-of-Unlabeled-Background-in-Untrimmed-Videos | b369155d11560508a43892da1e84f46cc7ae0852 | aca214c56fc05778a1f9f382c2f634cbeca4d852 | refs/heads/master | 2023-06-23T20:32:16.577804 | 2021-07-27T06:40:45 | 2021-07-27T06:40:45 | 370,694,896 | 30 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,256 | py | import torch
import torch.nn as nn
import numpy as np
import utils
import os
import os.path as osp
import json
from eval.eval_detection import ANETdetection
from tqdm import tqdm
import sys
def test(net, config, logger, test_loader, test_info, step, model_file=None):
with torch.no_grad():
net.eval()
... | [
"alen.ly@alibaba-inc.com"
] | alen.ly@alibaba-inc.com |
a0754fefb495c8c77a0ceb23a9ff13a8cc1d720f | 0a669c18356f783fdd31ac54519b7c91f2fb3ef7 | /01-Estrutura_Sequencial/08-Salario_hora_simples.py | 8153ac315ed945727e1f63797c0f8bc3d3d8dd4d | [] | no_license | guilhermejcmarinho/Praticas_Python_Elson | 5295bca77785c22c6502c7b35988a89e6e8fba8e | 27145a99dd18c57281736079d94aef468d7276dc | refs/heads/main | 2023-07-28T22:41:58.636331 | 2021-09-10T22:09:37 | 2021-09-10T22:09:37 | 400,654,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | sal_hora = float(input('Informe o valor da hora trabalhada: '))
hr_trab = float(input('Informe quantas horas trabalhou: '))
print('Salário total no mês: R$', round(sal_hora*hr_trab, 2)) | [
"gui.the.great@gmail.com"
] | gui.the.great@gmail.com |
7fdb76e70da796bb88882454749b09f5a59d1b45 | ec4586abcc179293656f0afd837b0d521d072a75 | /torchsl/mvsl/__init__.py | d61621ffcfa464dc736802882d9237e957f9b3a7 | [] | no_license | ZDstandup/mvda | e483387e0b7e50c84bc28ffd864d44a724d23762 | 13f854e063f10a9374856d0e2005b233788a645f | refs/heads/master | 2021-01-13T20:42:51.842836 | 2019-12-15T19:16:13 | 2019-12-15T19:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from .mvda import MvDA, MvDAvc, RMvDA, RMvDAvc
from .pcmvda import pcMvDA
from .mvcsda import MvCSDA, MvDAplusCS
from .mvlfda import MvLFDA, MvLFDAvc, RMvLFDA, RMvLFDAvc
from .mvccda import MvCCDA, MvDCCCDA
__all__ = [
'MvDA', 'MvDAvc', 'RMvDA', 'RMvDAvc',
'pcMvDA',
'MvCSDA', 'MvDAplusCS',
'MvLFDA', '... | [
"inspiros.tran@gmail.com"
] | inspiros.tran@gmail.com |
47220864385f35b099736c3ef297a7ae7f1cbe54 | ca08100b33a78c01bf49f097f4e80ed10e4ee9ad | /intrepidboats/apps/owners_portal/utils.py | 605fe7065629b6a2f9983f3de5ed580162b6c11a | [] | no_license | elite0401/intrepidpowerboats | 347eae14b584d1be9a61ca14c014135ab0d14ad0 | d2a475b60d17aa078bf0feb5e0298c927e7362e7 | refs/heads/master | 2021-09-11T01:51:47.615117 | 2018-04-06T02:20:02 | 2018-04-06T02:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | from django.conf import settings
from django.contrib.sites.models import Site
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.urls import reverse
from django.utils.translation import gettext as _
def send_report_email(user_boat):
context = {
'user': u... | [
"elite.wisdom@gmx.com"
] | elite.wisdom@gmx.com |
88f5d9a2605d4624cc87af7e584ecdf570ac00dc | 6eb302bf3456b5fe700a4e3281ca7bb4597477bf | /student_chatbot/app.py | 646b9b82f4b4c27cc03f005615fed2b793fd3fae | [] | no_license | lekhya19311/Student-Informative-Chat-Bot-System | f39a99d219bef3e534077c2cf2abcd7dd8d4eec1 | 7cd420bb5a21383bddf0f5bea01335d3e8bcbf9e | refs/heads/master | 2021-01-26T13:58:08.538530 | 2020-02-22T09:28:17 | 2020-02-22T09:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,486 | py | import os
from flask import send_file
from flask import Flask, session, render_template, request, redirect, url_for, flash, jsonify
from flask_bcrypt import Bcrypt
from flask_session import Session
from database import Base, Attendance, Marks,Accounts, Profile, Feedback
from sqlalchemy import create_engine, exc
from sq... | [
"satheeshgajula22@gmail.com"
] | satheeshgajula22@gmail.com |
2c4cfe1cd667b7a708c96b4978b00325826dfb19 | 0987f31e64bcacb41ba3a1e20054d7b8ac0d7346 | /contests/panasonic2020/a.py | 3c85e5a3a0a4b6b5ab170b052566849aab8ae7bf | [] | no_license | masakiaota/kyoupuro | 81ae52ab3014fb2b1e10472994afa4caa9ea463b | 74915a40ac157f89fe400e3f98e9bf3c10012cd7 | refs/heads/master | 2021-06-27T04:13:52.152582 | 2020-09-20T03:21:17 | 2020-09-20T03:21:17 | 147,049,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
def read_ints():
return list(map(int, read().split()))
def read_a_int():
return int(read())
def read_tuple(H):
'''
H is number of rows
'''
ret = []
for _ in range(H):
ret.append(tuple(map(int, read().split())))... | [
"aotamasakimail@gmail.com"
] | aotamasakimail@gmail.com |
b1c5a6fe4a11aa713099d0337893a6259fa2e086 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02973/s301790930.py | 280647a2fd8669a6345ecf3a1ac6c75ef906c3dc | [] | 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 | 269 | py | from sys import stdin
from bisect import bisect
N = int(stdin.readline().rstrip())
A = []
for i in range(N):
A.append(int(input()))
dp = []
for a in A[::-1]:
i = bisect(dp, a)
if i < len(dp):
dp[i] = a
else:
dp.append(a)
print(len(dp)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0249930c34da9815a0b78f5701b102bed3daa0b0 | 57a9d84e8bcf505795e7e4f2a57f096edebd0040 | /read_statistics/migrations/0002_readdetail.py | c76c1ec0c7df8243dc8104d4804adc7e95280b51 | [] | no_license | klllllsssss/mysite | 03541240c3d8013da40e3fdcaefbf9cfffabdfe3 | 14fbce7d1cb5097f16d2002da5a7a709cc7953f6 | refs/heads/master | 2022-09-18T13:30:47.399220 | 2020-06-03T11:04:23 | 2020-06-03T11:04:23 | 269,059,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 2.0 on 2020-04-27 11:53
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('read_statistics', '0001_initial'),
... | [
"549284627@qq.com"
] | 549284627@qq.com |
fcf325192bb689fddfa24f58302b76220e0f8f1b | 9708ad482f925fb5a57df285b478602ad2749196 | /lib.py | af36fdf38a4f7b1c906176f91a90afb6c6a5b74c | [] | no_license | cczeus/project-euler | 580b6e559da23554aaab06b82b671ebbf382c26c | 57970c2f0a2b64c5e444050bb437ba3b3620bff1 | refs/heads/master | 2022-06-02T23:25:47.280066 | 2022-05-19T23:30:41 | 2022-05-19T23:30:41 | 68,892,531 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | import math
def isPrime(num):
if num == 2:
return True
elif num % 2 == 0:
return False
elif num < 0:
return False
for j in range(3, int(math.sqrt(num)) + 1, 2):
if(num % j == 0):
return False
return True
def getFactors(num):
factors = []
i = 1
... | [
"chriszuis@MacBook-Pro.local"
] | chriszuis@MacBook-Pro.local |
30049a45def159f6d425e056ab47ba6b13055d72 | 3fdf83182664bf1c5c8c5b91186ed1a476cdcae7 | /manage.py | b82fa89d927388c22b2efe834deb746bcbac493a | [] | no_license | gauravdhingra99/Webkiosk-online-Student-portal- | 7a3d47e1bd0e05d1a853685a66e28627ae04eef3 | fa1369e0e616b6688f9f906fd0c5ea42efa06368 | refs/heads/master | 2020-04-06T19:46:05.882112 | 2019-02-27T16:30:13 | 2019-02-27T16:30:13 | 157,748,816 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webkiosk.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"gauravdhingra9999@gmail.com"
] | gauravdhingra9999@gmail.com |
55936ee6e0c535be6c763d5bbe570c3d5d24d065 | 5c7deaef83574a53416681063827cdbcb3004b7c | /PyGameMultiAgent/gameclient.py | 3dc5ddca4fd9eafea0898bdf3db2f38152da05a0 | [] | no_license | guotata1996/baselines | ba53ed2bb3d8015551f8e46dd8398a21b638ea80 | d7e2bee2ce1d98e5f2c511d6ede4e627e1112ad6 | refs/heads/master | 2020-06-22T00:00:09.431445 | 2019-08-07T03:22:39 | 2019-08-07T03:22:39 | 138,416,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,635 | py | import pygame
import pygame.locals
import socket
import select
import random
import numpy as np
from baselines.PyGameMultiAgent.staticworld import StaticWorld
class GameClient(object):
def __init__(self, addr="127.0.0.1", serverport=9009):
self.clientport = random.randrange(8000, 8999)
self.conn =... | [
"jg4006@columbia.edu"
] | jg4006@columbia.edu |
ba04885de6ca2c1a171de58f0649c0d7f07f2428 | a3e48885987e895d0d33b5dd903d51aaf4d21ce6 | /duplicate_strings.py | b6413d4a9b2d69466c9d364f828210a31a44ee9a | [] | no_license | das-amrit/helper_scripts | 2e17c0c585356dd6cf9bd84b5082f6a20dd815f7 | fdca380e55bfaee5cf5fb3365421931513501db7 | refs/heads/master | 2021-03-24T04:23:54.449186 | 2019-02-17T06:44:45 | 2019-02-17T06:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import itertools
text = "aforapple"
text_list = list(text)
new_text = [k for k,g in itertools.groupby(text_list)]
print("".join(new_text)
| [
"noreply@github.com"
] | das-amrit.noreply@github.com |
e924e94bc28ebc9f1f2c03016db85c413511282e | 965ec7b89c996c51579561e944be93f054f94301 | /test1.py | dc6a774ac0e491436d86533342ea435beb02201e | [
"MIT"
] | permissive | nayunhwan/SMaSH_Python | e26b20def4d6ca3ed042087a218150db6bac9d9a | 6e80520f43f6e014be2abc40d6f51f76338e3ff8 | refs/heads/master | 2018-12-27T11:51:39.860739 | 2018-10-24T06:55:32 | 2018-10-24T06:55:32 | 34,496,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #-*- coding: utf-8 -*-
# 예제 ex_A.py
unit_price = input("사과 1개의 가격은 얼마입니까? ")
apple_count = input("사과의 개수는 모두 몇 개 입니까? ")
price = apple_count * unit_price
print "전체 사과의 가격은 ", price, "원 입니다." | [
"kbk9288@gmail.com"
] | kbk9288@gmail.com |
fdb4bdf1a20e33fa178f567d6dfa0aac72099ca5 | c6716e87bde12a870d517ebe64c6916477ef3251 | /tableFormats.py | dfc915f56ec17c0cb2887a8fce4b5c6e7c0c0ed0 | [
"BSD-3-Clause"
] | permissive | adasilva/prettytable | efca75828341319e2962727e55f7cce5519eb4b7 | 899e255a53b257cf392565dc1d9f02bef25c4c4a | refs/heads/master | 2021-01-25T04:01:43.633364 | 2015-08-19T15:26:49 | 2015-08-19T15:26:49 | 40,557,221 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | from prettytable import PrettyTable
import abc
class TableString(object):
"""Metaclass for formatted table strings."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def __unicode__(self): return
@abc.abstractmethod
def __str__(self): return
@abc.abstractmethod
def get_s... | [
"awesomeashley527@gmail.com"
] | awesomeashley527@gmail.com |
1d1dfcd44cf71fa592df181189c7efe1af6af40d | 7a8560742946bfb95f4a252693264c34d4d0473d | /k2/centroid.py | e09491c999915180b3830fd138110d6e2140551a | [
"MIT"
] | permissive | benmontet/K2-noise | 3781e475ed6d5e2748a7ac3ddd878b8eec334254 | a4b682cdf33f85d2dffc4cef115dcedacfccb4b4 | refs/heads/master | 2016-09-05T13:02:09.051080 | 2014-10-25T14:36:22 | 2014-10-25T14:36:22 | 22,899,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["centroid"]
import numpy as np
from functools import partial
from itertools import izip, imap
from .c3k import find_centroid
def centroid(tpf, **kwargs):
# Load the data.
data = tpf.read()
times = data["TIME"]
image... | [
"danfm@nyu.edu"
] | danfm@nyu.edu |
2b21f9bf32ec2ff92c015f407d8cc4df35ebc205 | 693431e2be60ac6f9d59996589c7023408537603 | /talk/metrics_publisher/publisher.py | 0855e20eee392393c3d46d0806aa5e8dfda83fa9 | [] | no_license | rapyuta-robotics/io_tutorials | deb547590a4519f19923dc9593399cae2e2d6683 | 88cf45629e4c02dff385048ece4b2b344a6100a3 | refs/heads/master | 2023-05-27T15:46:33.673684 | 2023-02-22T08:52:32 | 2023-02-22T08:52:32 | 118,696,902 | 7 | 24 | null | 2023-05-23T03:37:59 | 2018-01-24T02:00:39 | CMake | UTF-8 | Python | false | false | 1,629 | py | #!/usr/bin/env python
import random
import rospy
from std_msgs.msg import String
from ros_monitoring_msgs.msg import MetricList, MetricData, MetricDimension
def get_metric_list(cycle, count):
robot_dimensions = [
MetricDimension(name='cycle', value='cycle' + str(cycle)),
MetricDimension(name='r... | [
"noreply@github.com"
] | rapyuta-robotics.noreply@github.com |
02af91d9a068eb13b6123c2f26b025668f5bb79f | 6eaf69ffd454ed6933e3395516246d878cb09781 | /repozeldapapp/tests/functional/test_authentication.py | f998f67ccdc2ccc018c17f9cecb7cb08697d7a58 | [] | no_license | ralphbean/repoze-ldap-app | 0d6658ef13b153736aaed6aa07fbdcaf65cbe1d9 | cc00fe59bcc286fd44d1e22a14c40cfc8419e21d | refs/heads/master | 2021-01-01T05:35:25.069715 | 2011-07-19T15:30:31 | 2011-07-19T15:30:31 | 2,072,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,583 | py | # -*- coding: utf-8 -*-
"""
Integration tests for the :mod:`repoze.who`-powered authentication sub-system.
As repoze-ldap-app grows and the authentication method changes, only these tests
should be updated.
"""
from repozeldapapp.tests import TestController
class TestAuthentication(TestController):
"""Tests fo... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
a2de64aec718958e8d3b7c4e7137f9309a3fd152 | b79042eb362a9ba284f0c518854a3b7e6ee39284 | /learning_users/basic_app/forms.py | 7015436716565e7010f8c6798e71463f0e946b09 | [] | no_license | Austin911/django-deployment-example | 2dc2e7d8b777928b7fd6d631978581fff54aa9d6 | eded8b839224b7202902f61a35f058693242ac55 | refs/heads/master | 2020-03-11T16:24:32.888430 | 2018-04-19T01:08:00 | 2018-04-19T01:08:00 | 130,115,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django import forms
from django.contrib.auth.models import User
from basic_app.models import UserProfileInfo
class UserForm(forms.ModelForm):
password = forms.CharField(widget= forms.PasswordInput())
class Meta():
model= User
fields = ('username','email','password')
class UserProfileInfo... | [
"austin88yang@gmail.com"
] | austin88yang@gmail.com |
a602ed4d95af34413839a7d25ad1df255e16af0c | e67ae29c22eca0e23a63f871c008c0de3b0cf1df | /Civ4 Reimagined/PublicMaps/not_too_Big_or_Small.py | fddb4814cf8770bde44e7db1b6693f74db53c0c5 | [
"CC-BY-3.0"
] | permissive | NilsBatram/Civ4-Reimagined | 16f9e24174118ee7662723230f101fb563d31b4b | a9bc57908321dd12db3417b89bd569de7b99dea1 | refs/heads/master | 2020-12-08T11:30:46.160054 | 2020-06-18T20:32:55 | 2020-06-18T20:32:55 | 66,165,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,732 | py |
## "not too Big or Small". A modified version of "big and small" to scale better with larger maps.
## by Karadoc. version 1.4
from CvPythonExtensions import *
import CvUtil
import CvMapGeneratorUtil
from CvMapGeneratorUtil import FractalWorld
from CvMapGeneratorUtil import TerrainGenerator
from CvMapGenerato... | [
"Nils.Batram@gmx.de"
] | Nils.Batram@gmx.de |
dd203b86fd8abbb163bbe54b4e921223fe92e53f | 1ed65a23ea5d9a135096bc55ea9df9b96625d909 | /core/migrations/0030_userprofile_is_active.py | 905bbf27e4e80966ed1aa6b9747b3c4b8caca345 | [] | no_license | nfishel48/simntx | 367b8323e6b4f433912eb687888a456e0959c228 | 0dc7f6c41adff1c21a52aca6e2712e7fcb3e9a48 | refs/heads/master | 2022-12-31T02:22:28.344922 | 2020-10-16T02:21:23 | 2020-10-16T02:21:23 | 271,566,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2 on 2020-06-25 03:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0029_auto_20200624_2234'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='is_active',
... | [
"nfishel@emich.edu"
] | nfishel@emich.edu |
c9593dfd5fb0088ce2c4645844975fd74e3c847e | 7b53e120dc4022b09eed0cf87a975482dc1d2056 | /M2/utils.py | 93ee422692d9b63b45deed53160a1d656ec285cf | [] | no_license | YuanKQ/DDI-VAE | 878ba120c2a61e7966bf1638680c5b39a610d690 | fe2c5a699e5294287c0b05b60fd037c21c7fddd1 | refs/heads/master | 2020-03-17T12:34:12.895257 | 2018-05-16T01:50:45 | 2018-05-16T02:11:56 | 133,594,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | import prettytensor as pt
import tensorflow as tf
import numpy as np
logc = np.log(2.*np.pi)
c = - 0.5 * np.log(2*np.pi)
def tf_normal_logpdf(x, mu, log_sigma_sq):
return ( - 0.5 * logc - log_sigma_sq / 2. - tf.div( tf.square( tf.subtract( x, mu ) ), 2 * tf.exp( log_sigma_sq ) ) )
def tf_stdnormal_logpdf(x):
ret... | [
"kq_yuan@outlook.com"
] | kq_yuan@outlook.com |
9994c856f9f6988cd9021ad10b5aef5d6047c41c | 09e0940849ba15a2179b4418057aac28aac81bac | /app/doyin.py | 97041f90e5e2688edc51ac2ae0f95cabb6dc9784 | [
"MIT"
] | permissive | tqdonkey/app-bot | 75886957114840877adf473e99cf05dcf424f2f5 | df01784b3f2875facfe1e79d4614a906dc8e7a7b | refs/heads/master | 2022-02-28T22:46:52.418077 | 2019-08-20T12:28:59 | 2019-08-20T12:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | # -*- coding: utf-8 -*-
'''
create by: 小宝
mail: 1435682155@qq.com
create date: 2019.8.11
Purpose: hehe
Desc:just do it~
'''
import sys
import time
import os
import shutil
sys.path.append('./app')
from common.app import app
from common import config
from common import screenshot
from common import comm... | [
"root@lbp.localdomain"
] | root@lbp.localdomain |
1b20703b930ae2d775880d83cd617d40c9cdfa18 | ea867a1db2b730964b471e5f198ac74988417fa5 | /steemtools/helpers.py | 5c4e3a5d73bff0aa5310093de2799d44d516835b | [
"MIT"
] | permissive | Denis007138/steemtools | 0b58fa4bb2608c0134752b0855a36464cff9073a | c7f7ad9f482ff1b56e1218ceffbf574c95cf0c1f | refs/heads/master | 2021-01-11T01:34:36.721177 | 2016-10-10T13:58:44 | 2016-10-10T13:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import datetime
import re
import time
import dateutil
from dateutil import parser
from funcy import contextmanager, decorator
from werkzeug.contrib.cache import SimpleCache
@contextmanager
def timeit():
t1 = time.time()
yield
print("Time Elapsed: %.2f" % (time.time() - t1))
@decorator
def simple_cache... | [
"_@furion.me"
] | _@furion.me |
b1c1eca6d9cd2f7761661a9abe7a38a71c3ffc06 | baec3aca9482e90605ac4e4ecee52b3d6eb44f1f | /21/d21.py | 3cc7219aec0f5c0137007760f688852551e5a018 | [] | no_license | grvn/aoc2017 | 9390d89dbcda7a10352ad65dae71eeec51c930ea | 48d380d8ff7000d38fdba9fb93bcfa99c1f0c447 | refs/heads/master | 2021-10-08T06:06:35.298716 | 2018-12-08T18:52:36 | 2018-12-08T18:52:36 | 112,791,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | #!/usr/bin/env python3
from sys import argv
filename=argv[1]
iterations=int(argv[2])
rules={}
start=((".", "#", "."), (".", ".", "#"), ("#", "#", "#"))
def rotate(sqgr):
return tuple(tuple(x) for x in zip(*sqgr[::-1]))
with open(filename) as f:
input = f.readlines()
input = [line.strip() for line in in... | [
"rickard"
] | rickard |
be1ca56a4c8e33d679fe761dc4faa412b354bfa3 | 61e68e3a4d6cc841da4350dc193315822ca4e354 | /lecture/4_정렬/4_퀵정렬.py | 45420f20a5eaaae9aafb31ff3bea12843c0068c4 | [] | no_license | sswwd95/Algorithm | 34360cd333019d6ded60f967c19aa70f1655e12a | a70bdf02580a39b9a5c282a04b0b2f8c2cb41636 | refs/heads/master | 2023-04-16T21:05:07.293929 | 2021-05-08T10:58:05 | 2021-05-08T10:58:05 | 362,651,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | array = [5, 7, 9, 0, 3, 1, 6, 2, 4, 8]
def quick_sort(array, start, end):
if start >= end: # 원소가 1개인 경우 종료
return
pivot = start # 피벗은 첫 번째 원소
left = start + 1
right = end
while(left <= right):
# 피벗보다 큰 데이터를 찾을 때까지 반복
while(left <= end and array[left] <= array[pivot]):
... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
d9504d622907d7e7e0e6a6772e0fc6a072b448be | 276e6b57d182875c3c9276360dcfbd26ba542492 | /main.py | 6cb0596d6d39368e67e622a9d677e1de169562b2 | [
"MIT"
] | permissive | Charlie-kun/Loan | c9bf7ebff209dca6059bfe6141ad67420678b5be | 930835221d9eb28ba7f6a3d6e1b1b72ab280683c | refs/heads/master | 2022-12-09T07:24:40.351771 | 2020-09-21T21:55:06 | 2020-09-21T21:55:06 | 285,209,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,155 | py | import os
import sys
import logging
import argparse
import json
import settings
import utils
import data_manager
if __name__ == '__main__': # add parameters
parser = argparse.ArgumentParser()
parser.add_argument('--stock_code', nargs='+') # add stock_code
parser.add_argument('--ver', choices=['v1', ... | [
"chlh@daum.net"
] | chlh@daum.net |
b8d49ed51407d17cd6270de28b88938cd694fa87 | 49f875de9e18812b25ead4cd15a562e9f1347256 | /selection_sort.py | 357b07b8ad678f0c637fe113b98915da400095ef | [] | no_license | brandontarney/ds_algo_review | 020499e7e81435b2475fd50acc717f3093fc0f7f | cabd42f01bd8f027db0d0e3de870263adbf9327a | refs/heads/master | 2020-06-23T16:30:50.564707 | 2019-09-09T01:02:17 | 2019-09-09T01:02:17 | 198,680,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | #!/bin/python
#NOTE - this is pseudocode, not real python code
#Algorithm
#Create sorted sublist (usually in the front of the list)
#Find the next smallest value and swap it into front position of a sorted sublist
#NOTE this is effectively iterating (inner loop) over the unsorted list vs. selection sort iterating... | [
"brandon.tarney@gmail.com"
] | brandon.tarney@gmail.com |
6c298475750028ddc507024c20d0d2fb7fe96055 | c3e2fd391265f13e9104e2d441d4b046e1b892b5 | /Pattern_TD_Trap.py | d0ce2792f0af14cb63f1c9dd57b1ae33cc87077a | [] | no_license | jamesliu1/The-Book-of-Trading-Strategies | 262f0824ca3b6ba34daea63fba80bca6492c4a6e | 11ecc59db0e0d6ff5ec0685bb6d3dcd26780cacf | refs/heads/main | 2023-08-23T15:28:38.112508 | 2021-10-19T13:28:19 | 2021-10-19T13:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py |
# Base parameters
expected_cost = 0.5 * (lot / 10000)
assets = asset_list(1)
window = 1000
# Trading parameters
horizon = 'H1'
# Mass imports
my_data = mass_import(0, horizon)
def signal(Data):
# Adding columns
# Bullish signal
for i in range(len(Da... | [
"noreply@github.com"
] | jamesliu1.noreply@github.com |
b4ebea591ef98eba50becc2628f71215e816a37f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_84/306.py | 0561a547b612e83a36f4cf677430a4ecdf3d37f6 | [] | 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 | 1,233 | py | import sys, math
from multiprocessing import Pool
def main(data):
R,C,s = data
for i in range(R):
for j in range(C):
try:
if s[i][j] == "#":
if s[i][j+1] == "#" and s[i+1][j] == "#" and s[i+1][j+1] == "#":
s[i][j] = "/... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
86595f3567adfa865a0e8806fba2bb2cd8d64109 | ade758c24cd547689012a61b55ccf77e33a2bbf2 | /93/93.py | 0ab93003b896e27ece999a42c10a5d8a9c0eaef6 | [] | no_license | danmedani/euler | 7f7dda0ee295a77eb6faca0a4aa15015850aed72 | eeef3a4d9c188f954842f7c3adc37d58588c4781 | refs/heads/master | 2023-08-17T03:26:36.864451 | 2023-08-08T02:35:46 | 2023-08-08T02:35:46 | 14,157,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import math
import copy
SENT = -999999
def doOp(num1, num2, op):
if op == '*':
return num1 * num2
elif op == '+':
return num1 + num2
elif op == '-':
return num1 - num2
elif op == '/':
if num2 == 0:
return 1.9874352345
else:
return 1.0 * num1 / num2
else:
print 'oh crap!'
... | [
"danmedani@gmail.com"
] | danmedani@gmail.com |
ffc5de43ef8bdec5bcaa803f057de2f9ed1be0f1 | 85be26cd8c2ee8afb3d7ce2495f320e81cb7582f | /pylearn2/minimun_sample/minimum_test.py | 920a1de30bcb8c568241463c2154706aff0468da | [] | no_license | basharbme/deeplearning4windows | 368f9faf5902d943bad053de62dcc6860d20ae79 | 20fea62a2f17ba142e68a349d1cffa582eb6312a | refs/heads/master | 2020-05-24T05:31:28.835187 | 2016-02-03T10:13:04 | 2016-02-03T10:13:04 | 187,117,816 | 1 | 0 | null | 2019-05-17T00:09:27 | 2019-05-17T00:09:26 | null | UTF-8 | Python | false | false | 1,482 | py | # coding: UTF-8
import os,codecs,platform
from pylearn2.config import yaml_parse
from pylearn2.scripts.train import train
import numpy as np
from pylearn2.utils import serial
os.environ["PYLEARN2_DATA_PATH"] = os.path.dirname(os.getcwd())
if platform.system() == "Windows":
os.environ['THEANO_FLAGS'] = "floatX=fl... | [
"jgpuauno@gmail.com"
] | jgpuauno@gmail.com |
b7c734fbbfa3614e2f49ef72774e5dfc16bc2550 | 6c12904dde5ee546cb965c6c0af6901c7f89bea7 | /volume.py | 97951333780cd6388510ea93a05350fd9178a8f1 | [] | no_license | ad52825196/simple-file-system | 59eff6e1e628a5b49460b18bc339625b776bb89d | 58256b29ef6ebef6a154c831c619a340644d6b57 | refs/heads/master | 2020-04-06T03:35:16.877249 | 2017-04-25T00:11:05 | 2017-04-25T00:11:05 | 68,357,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,261 | py | import drive
import directoryentry
class Volume:
BITMAP_FREE_BLOCK = '-'
BITMAP_USED_BLOCK = '+'
def __init__(self, name):
self.name = name
self.drive = drive.Drive(name)
def format(self):
self.drive.format()
block = drive.Drive.EMPTY_BLK
block = Volume.modify_... | [
"me@zhen-chen.com"
] | me@zhen-chen.com |
327203d439300f410de4e56199b07bcb7a5b1cb1 | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level01.제일_작은_수_제거하기/Jaewon0702.py | 9574b875696e370e939054a0279eb98293b8defd | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 156 | py | def solution(arr):
arr.remove(min(arr))
return arr if len(arr) else [-1]
print(solution([4, 3, 2, 1]) == [4, 3, 2])
print(solution([10]) == [-1])
| [
"45033215+sangmandu@users.noreply.github.com"
] | 45033215+sangmandu@users.noreply.github.com |
7ea07cb2116811e27e177f7323f15767d451495b | 0045204c130599381ee69c771478ac1609dfe67e | /HW_1/problem_3.py | f841cdde32c6b0fa7f53ae9d6f96339525b533b4 | [] | no_license | muzhts-anton/Differential-geometry | 1dea9003a3450cbe89e5beb220804cff67a5a230 | 56da14cf1b71cd4fca2a9fa46de2ef2dedd39ac1 | refs/heads/main | 2023-06-05T21:53:58.032013 | 2021-06-25T08:34:02 | 2021-06-25T08:34:02 | 360,800,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # problem 3 diffGem HW1
from sympy import symbols, diff, sin, cos, sqrt, simplify, Matrix
X_1, X_2, X_3 = symbols('X_1 X_2 X_3', positive=True)
A = Matrix([[1, 0, 0],
[0, sqrt(3)/2, -1/2],
[0, 1/2, sqrt(3)/2]])
X = [X_1,
X_2,
X_3]
x_sphere = [X_1 * sin(X_2) * cos(X_3... | [
"muzhts.anton@gmail.com"
] | muzhts.anton@gmail.com |
bd9a420a7684d527bcd274c32086f85330ec970b | 2704ad14c83050ac28f403371daa8e3148440e00 | /chiadoge/wallet/did_wallet/did_info.py | 2294be358c05f883b729c58c3c37a27b0b590ce5 | [
"Apache-2.0"
] | permissive | Bgihe/chiadoge-blockchain | d5e01a53c8e15fa17c47b44d9c95e6511aa98b7f | befb179c65ffe42aebbc47c211f78e193a095d2b | refs/heads/main | 2023-06-01T05:31:51.503755 | 2021-07-05T20:47:32 | 2021-07-05T20:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from dataclasses import dataclass
from typing import List, Optional, Tuple
from chiadoge.types.blockchain_format.sized_bytes import bytes32
from chiadoge.util.ints import uint64
from chiadoge.util.streamable import streamable, Streamable
from chiadoge.wallet.cc_wallet.ccparent import CCParent
from chiadoge.types.block... | [
"83430349+lionethan@users.noreply.github.com"
] | 83430349+lionethan@users.noreply.github.com |
e3082e2c45c280050b7ffcd31885765d334863b4 | 9424df118a26170f023a665bdf8b0dc462f91721 | /project_utils.py | a22dd72aa5ba5acfa30a6a98965efbe8875a6bfb | [] | no_license | marcelthebridge/602_ml_Project1 | 65729b4faf8746554815f8e63089a1db33fec603 | 8f4afa9a6b36920e6869673df96d9c219014c2d0 | refs/heads/main | 2022-12-28T15:50:38.187531 | 2020-10-13T20:37:25 | 2020-10-13T20:37:25 | 302,507,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | # Functions for use with Project_1 notebooks
# Imports:
from matplotlib.colors import ListedColormap
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
def data_plot(hue, data):
for i, col in enumerate(data.columns):
plt.figure(i)
sns.set(rc={'figure.figsize':(20, 5)})
... | [
"noreply@github.com"
] | marcelthebridge.noreply@github.com |
c4315cc3d79adaa753717029196b2f1e64a56817 | 6bad224bb4c81facc0ed44d2330922d1826e23fb | /spamfilter.py | 97357ab1a60999ea37c2aaa6a1babdd0a9a6e511 | [] | no_license | zaid98/nlp | af7c83a692ec6e8cba1936a0288efa38d3a5ce26 | 4fbbcf9e35c9b882685abc1557a5e1c8cf78d565 | refs/heads/master | 2020-06-15T03:25:38.232934 | 2019-07-04T07:36:25 | 2019-07-04T07:36:25 | 195,192,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import nltk
from nltk.corpus import stopwords
import string
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes im... | [
"noreply@github.com"
] | zaid98.noreply@github.com |
d61b6b6aa07912fb0f5b6d10f2b0e4d67c896405 | d79f3e7df0fb9dcf23a9ae1adf3c285dd08a360f | /list.py | c25a37e7d50ab435e4c4d9ee894dae68382d6c4a | [] | no_license | ramkodgreat/python1 | 4930afb1bb7f63798bd4237e753aecf5b2ba072b | 64ee9f210aab3b177fc41d351499106876a1d3fc | refs/heads/master | 2020-11-25T18:15:04.315157 | 2019-12-18T07:51:42 | 2019-12-18T07:51:42 | 228,789,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # List can contain strings integer or float points
# Python index begins from zero
a =["string","int",1,2]
#indexing a list
a[2]
print(a[2])
# Returns all the values of a
b = a[:]
print(b)
#Overwriting values in a string
a[1] = "glo"
print(a)
print(b)
# Skipping one item from a list
a =[1,2,3,4,5,6,7,8,9,10]
# S... | [
"ramkodgreat@gmail.com"
] | ramkodgreat@gmail.com |
093c9c5f1b37d499d6bb6486317cbdcbb89a838e | 17b63416cf2f66246e1cf655ccfa2eb9a108da3c | /abupy/AlphaBu/ABuPickStockExecute.py | f344c2ed857ae0f8c94dc194d151f49cddb60f57 | [] | no_license | cmy00cmy/qtLearning | 58aec5cf9fccf9d8f14adf1793306b8b8b5ecb7f | 2b5fee7b9bbd832b20ba4e1b508be16b606249e0 | refs/heads/master | 2020-03-20T01:42:19.882639 | 2018-06-12T14:52:00 | 2018-06-12T14:52:00 | 137,085,926 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | # -*- encoding:utf-8 -*-
"""
包装选股worker进行,完善前后工作
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from .ABuPickStockWorker import AbuPickStockWorker
from ..CoreBu.ABuEnvProcess import add_process_env_sig
from ..MarketBu.ABuMarket import sp... | [
"chenmyuan@163.com"
] | chenmyuan@163.com |
c465145274aa05d388e08fcefbcf65c084507859 | 8b9587f5548733ebf8c51af489abfae815355fd0 | /templateCode/kakao_R/kakao/chatroom_analysis.py | 032302f2db92fdc28d57fd2e172e486c310b3189 | [] | no_license | jyp0802/Butherfly | d81b525a01781dc7633eca68d577b0dd9cb1f57d | d80a1eea4103e0f2e4f1aaf91f7f425936003081 | refs/heads/master | 2021-08-20T07:50:55.580648 | 2017-11-28T15:44:49 | 2017-11-28T15:44:49 | 112,354,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,109 | py | #-*- coding: utf-8 -*-
# Revision: 6 (June 3th, 2017 3:10)
# Author: Claude Jin, Sanggyu Nam, Seunghyun Han (DiscoveryChannel)
# Logs
# Revision 1: user anonymization, dateline, firstline, message types(emoticon, photo, video, link)
# Revision 2: chatroomname, # of current participants, invitationline, multiple lines... | [
"jyp0802@hotmail.com"
] | jyp0802@hotmail.com |
c08a05fcca3a38d83fa5e5c0f599e925d0a2c97b | 56a4d0d73c349aeaca7580ca248caf0cf893a8c5 | /w2/using_find.py | af6a320679d645b836416da8a37d141b0a0c269d | [] | no_license | alejo8591/m101 | 79e62e0110bcc3e6ca82ac02ae3cdcbe13d51c67 | d93d34a161ecede77defb9a6a3db389d4a9b0de8 | refs/heads/master | 2020-05-18T21:42:46.651036 | 2012-12-17T23:36:49 | 2012-12-17T23:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python
import pymongo
import sys
connect = pymongo.Connection("mongodb://127.0.0.1", safe=True)
db = connect.school
scores = db.scores
def find():
print "Find, reporting for duty"
query = {'type':'exam'}
try:
iter = scores.find(query)
except:
print "Unexpected error:",s... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
1577628297a846c2742329c8bab3cffaef031e77 | b298e8a971bf51036c61d1a2c4d5d61421fc47c5 | /projects/migrations/0003_project_image.py | 050ce465f6f7210e6eaed3e7571b1d25dc47b5ea | [] | no_license | jrusso0818/my-personal-site | 5fe6dc1111669d5c8429703a304f7c08f6358327 | dc2a179e6affb38303445d7a0c72e48c32ba6a8a | refs/heads/master | 2023-03-07T22:03:58.395368 | 2021-02-06T06:53:32 | 2021-02-06T06:53:32 | 322,690,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.2.17 on 2020-12-18 21:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_remove_project_image'),
]
operations = [
migrations.AddField(
model_name='project',
name='image',
... | [
"jrusso0818@gmail.com"
] | jrusso0818@gmail.com |
41da3a83b961f3970b11aac3c48a97022b4627c8 | 5f9c05b3bee55b0a311e7b0fba452ac13f60eefd | /py/coordinator.py | ae7cc1a7eebf83d2cbecbc980476ba3ad0f82a11 | [] | no_license | Ard1tti/serialdet | d0fb84704239e207009368b0341b6ab974fa7a29 | bc04065f1607ced571c141d59ff35084d144cb27 | refs/heads/master | 2021-01-10T23:13:02.670703 | 2016-10-12T09:03:45 | 2016-10-12T09:03:45 | 70,608,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"blueconet@gmail.com"
] | blueconet@gmail.com |
cbf9caf78e847840f44e9cd9c6f7768baa91eee8 | de6f8466270d80d72fd696ebb8894d8ef02bca1e | /planner/search.py | ba2538bf9c59f687281c18739fd136a78549eba5 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cocoflan/roundtrip | eac96231d1cc484e07317ef3068a661ee4dd474a | f2a740f7e6bb13acab979c6a7c09244c76466197 | refs/heads/master | 2022-04-30T13:59:21.736591 | 2021-07-01T21:13:26 | 2021-07-01T21:13:26 | 147,789,413 | 0 | 0 | null | 2022-04-22T20:57:11 | 2018-09-07T07:45:44 | JavaScript | UTF-8 | Python | false | false | 5,576 | py | import time
import moment
from splinter import Browser
from planner.models import Flight, FlightPrice, NoFlights
from planner.models import AirBNB
from urllib.parse import quote_plus
from math import ceil
import json
class Searcher:
_browser = None
def browser(self):
if self._browser is None:
... | [
"nanne@mycel.nl"
] | nanne@mycel.nl |
42d1a243ee0f6e26eac7dbafad461f06f46e2a6c | ef51e831de7776d273b5384a5ad5b110782ed6f2 | /python script/Linux/update.py | d0917c560b2e2963023a5eb020b1940fd8ffac25 | [] | no_license | sudkumar/Summer-Project-2014 | c6f08d025a17cdb4ed5a9a383e03590368bcb36a | 27f805c5171afc44d61a6b2f877f4428967b5519 | refs/heads/master | 2021-01-10T20:39:29.224258 | 2014-08-02T08:46:19 | 2014-08-02T08:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import serial
import MySQLdb
conn = MySQLdb.connect(host="localhost", user="root", passwd="name", db="attendance")
myc = conn.cursor()
# for linux
src = serial.Serial('/dev/ttyACM0', 9600)
# we can find the path by
# but remove the arduino first
# ls /dev/tty*
# now plugIn arduino and run the command again
# if th... | [
"luckysud4@gmail.com"
] | luckysud4@gmail.com |
63c03bea228aaf2bf3633ee0bc769131005dcc58 | 36a1a414847c29f406416db5c3e54916c647c8c1 | /LinkedList/mergeSortedll.py | b91d2e709627080389085640261b76232b8eb207 | [] | no_license | advaitp/Data-Structures-and-Algorithms | 07c2dd18bb9892dfd4e3ea1e6ab60c6a50bebdf5 | 83567a1dbd92677eb60711865ab08a7b996f3128 | refs/heads/main | 2023-05-15T09:42:16.254654 | 2021-05-28T10:47:43 | 2021-05-28T10:47:43 | 371,667,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
def merge(head1,head2):
fh=None
ft=None
if head1.data<=head2.data :
fh=head1
ft=head1
head1=head1.next
else:
fh=head2
ft=head2
head2=head2.next
while ... | [
"advaitpatole@gmail.com"
] | advaitpatole@gmail.com |
8a58387defcb67cfd652d2f25881520516b9f458 | f741f7f070d150cffbb63f13666fec5dceb4c7c4 | /3.massives/5.py | 2c448a2722cdcbb8ded28131ad1b8cfff5321d19 | [] | no_license | mahhets/algorithms-and-data-structures | 7e2359c15a1cfd46200f9f2008a3a4050e2a5f40 | d1d198020e9d1f7f5085188678828520e4da36c8 | refs/heads/main | 2023-05-29T02:38:05.716730 | 2021-06-10T20:26:34 | 2021-06-10T20:26:34 | 367,147,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # Ассоциативный массив, словарь (ключ - значение других столбцов, как в SQL)
"""
Пользователь вводит кол-во предприятий, названия, плановую и фактическую прибыль каждого предприятия
Вычислить процент выполнения плана и вывести данные с предварительной фильтрацией
"""
k = int(input('Введите кол-во предприятий: '))
ent... | [
"the_mahh@mail.ru"
] | the_mahh@mail.ru |
baf02d6d1f7af369aaccc549e18727ba85123b46 | 9737aa767b5cb2baa4e1ac6af64e3acb614e9265 | /smyt/smyt/urls.py | c5bff7d884d2a379fd6c17cdb564a90188291241 | [] | no_license | leotrubach/smyt | 1b11072a89067370f69c55465b84c5a7099d576f | 8398a60ebf5d6a2b490301276c7d6866def1d9a5 | refs/heads/master | 2016-09-05T16:45:10.698129 | 2012-06-19T23:13:56 | 2012-06-19T23:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from dynmodels.views import HomeView, list_models, model_data
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'smyt.views.home', name='home'),
... | [
"leotrubach@gmail.com"
] | leotrubach@gmail.com |
dad02ea4f0608d5be5fe199a38b3181d93ce7718 | dc91e5c22ed3b9128c649392c3dfb04ec74a3976 | /Meter-Distributed/Meter_cfba.py | 27f4d7a28382ad20b632b72672dbbb06fc4e1af1 | [] | no_license | Agrawalayushi/Closeness-Factor-Based-Algorithm-for-Incremental-Clustering-of-Images- | 5744ac2774f0e0d54ba2ffbf6998bdcc80554f79 | 544bda25d861a8ee656afd60e26bfbbde07016fd | refs/heads/main | 2023-04-13T12:38:53.455953 | 2021-04-27T17:04:03 | 2021-04-27T17:04:03 | 361,854,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,509 | py | import pandas as pd
import math as mp
import time
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
def visualize(df_basic,df_incremental,df_merge):
ax = df_basic.groupby(['CNumber'])['CNumber'].count().plot.bar(title = "Basic...")
... | [
"noreply@github.com"
] | Agrawalayushi.noreply@github.com |
49245674d0105a3e9f82730ebdb250b147a85355 | eb685438961de82301a31e0798630ae1844a82f8 | /migrations/versions/4571ea43dd63_.py | 74d7288c4070368728d1028206f97dc6bcdd35f6 | [] | no_license | Peter-White/base_64_test_python | 2fcd28f517f74b7dac6a68622ce1fd8d6d81373e | 302e5aa13260d4fe13b057fec93c3942320fc7ce | refs/heads/master | 2020-07-16T02:43:19.593580 | 2019-09-09T14:36:39 | 2019-09-09T14:36:39 | 205,700,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | """empty message
Revision ID: 4571ea43dd63
Revises:
Create Date: 2019-08-26 15:47:45.221174
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4571ea43dd63'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"pwhitedeveloper@gmail.com"
] | pwhitedeveloper@gmail.com |
f45845f3775295ca40384d997d67d25854ded28e | 72a3977adc460ec70d0ebd8177cea1bb22a06cbf | /src/Classes/TennisSet.py | 5a0109b5e881dab41bb21cd34e6c496b92627d7c | [] | no_license | andreistaicu1/TennisScoreSimulator | 0ff6307ee1f1019a42fa70f5557cacb478c1d59e | 62fc0cc21ade84526190b2c840b4dea79bfb32d6 | refs/heads/master | 2023-07-23T05:37:00.521304 | 2021-09-01T20:09:48 | 2021-09-01T20:09:48 | 349,536,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | from src.Classes.TennisGame import *
from src.Classes.TennisTiebreak import *
class TennisSet:
def __init__(self, set_length, player1, player2, ad, serving, will_breaker):
"""
:param set_length: int - When the set stops
:param player1: Players object - player 1
:param player2: Pla... | [
"55329808+andreistaicu1@users.noreply.github.com"
] | 55329808+andreistaicu1@users.noreply.github.com |
323e6dbcabc39627ea900df0e1e0063631c79908 | 9222f00f40ae22ec71a61cd6627b11ec89958c5b | /v0_2017/lib/common.py | 386dee3834e99a3849fe778b1623f1ff1c74da46 | [] | no_license | ebensh/pinball_cv | 635d051b296dcdfb6c7c001709ef30a710f96549 | e2e67fd3f7e33f9583a46f2a63130c1cec791315 | refs/heads/master | 2021-07-15T16:35:07.878569 | 2018-12-27T05:03:57 | 2018-12-27T05:03:57 | 106,141,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,640 | py | from collections import namedtuple
import cv2
import inspect
import json
import matplotlib.pyplot as plt
import numpy as np
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def numpy_print_cols(cols=160):
np.core.arrayprint._line_width = cols
# http://ipython-books.github.io/featured-01/
def g... | [
"ebensh@gmail.com"
] | ebensh@gmail.com |
8727efc17619467964719851112b2714b7a40e24 | 3bdad3e626daaf079d316a8ce56b79af095327d4 | /api/migrations/0002_maincycle_user.py | 575c15fda6f25e37b1e083211a8d6d71084f8e60 | [] | no_license | kirussshin/djangoClicker | 3ab2ba798c993d6a42bbb352ca2951b5f094bf82 | 1922abd13289529f0f314cd744d137e84228aaae | refs/heads/master | 2023-06-01T19:34:37.280301 | 2021-06-13T18:54:00 | 2021-06-13T18:54:00 | 376,618,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.2.4 on 2021-06-13 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
... | [
"egorka-knopka@mail.ru"
] | egorka-knopka@mail.ru |
42e64f9eabca1da6ef4c05025e9e1c63b6a4cea6 | 1b037639fad280142ee84d10412c4bc1d729148c | /act_complementaryMedicine/db_method/insert.py | fb71ce5dc7599f5a985194c1f37fbb51b23a7644 | [] | no_license | Tohsaka-Rin/act-cm | fb36f5a16638f52646c2834a0d73c1fb1fab1f1d | c99dae527510fc0352fac29df36bd3090d361b89 | refs/heads/master | 2021-01-23T01:55:42.703190 | 2017-03-22T04:27:28 | 2017-03-22T04:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,500 | py | # -*- coding:UTF-8 -*-
from act_db.models import DoctorInfo,GroupInfo,PatientGroup,PatientInfo,RelationInfo,OutPatientServiceInfo,EmergCallInfo,InHospitalInfo,Clinic,ESS,MBQ,SGRO,AttachInfo,AccessoryExamination
import time
import datetime
# 添加新用户
# 参数是一个字典,包含医生的所有信息
# 成功返回True,失败返回False
def addDoctorInfo(data):
#T... | [
"1021369745@qq.com"
] | 1021369745@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.