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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
457001985badd69c0df323b440e434951e94bd1f | 9301a8106502d903220486e1982830c12599e4fe | /strategies/sumoRL/Experiments/a2c_sarakki.py | dbfcc74c3d710c1d084ca4efce06fbd1f6c4857b | [] | no_license | intelligent-traffic-signal/mini-proj-traffic | 7412faa6ef90b6d4af4e6d80ecce2c56a3b20aa5 | 3417654f71df9ffe19623a57db5e97ca18014999 | refs/heads/main | 2023-06-18T12:08:42.671280 | 2021-07-12T19:06:12 | 2021-07-12T19:06:12 | 350,322,134 | 2 | 4 | null | 2021-07-12T19:06:13 | 2021-03-22T11:43:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,016 | py | import os
import sys
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("Please declare the environment variable 'SUMO_HOME'")
from sumo_rl import SumoEnvironment
from sumo_rl.util.gen_route import write_route_file
import traci
from st... | [
"vishruth2002@gmail.com"
] | vishruth2002@gmail.com |
470147d3587bdbd5f59b7590652d3ab8ae0daded | 1385e8eda4705d0285700fa9ce94bc7d52a14071 | /examples/todo/tests/__init__.py | 998cf1c3bdddaffa096cb2956ff099191aaaf983 | [] | no_license | daonb/old-bbtest | d162ea4baa227b220cccfdd1b729f786d144c49e | b8ffc1075cad66cb2a4baac4e8cfc91946f8a31c | refs/heads/master | 2022-12-10T02:16:20.890831 | 2019-01-17T13:04:33 | 2019-01-17T13:04:33 | 161,623,698 | 0 | 0 | null | 2022-12-08T01:29:28 | 2018-12-13T10:37:49 | Python | UTF-8 | Python | false | false | 53 | py | from .todo_box import ToDoBox
__all__ = [ToDoBox, ]
| [
"benny.daon@cybereason.com"
] | benny.daon@cybereason.com |
dd0946036b4bbd27b6b26d7b97b6675ccec4013c | d1cb6c007263209e052527f1688d5622fd3d19c4 | /starter_code/migrations/versions/4abdb197fcf2_.py | 2c37edfe15f04fd97ac86731580d0bcd91bb0d6c | [
"MIT"
] | permissive | Abdullah-Ashehry/Fyyur | 3c14658f4d6804d704bfdd2b1bf86dd7c5b04505 | ad0b5e1d0394073b7c7bb03bd49ee5284596761b | refs/heads/master | 2022-11-09T13:10:05.574664 | 2020-06-19T11:21:57 | 2020-06-19T11:21:57 | 273,472,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | """empty message
Revision ID: 4abdb197fcf2
Revises: eff921208d31
Create Date: 2020-04-16 18:24:41.277620
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4abdb197fcf2'
down_revision = 'eff921208d31'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"s201731050@kfupm.edu.sa"
] | s201731050@kfupm.edu.sa |
591e7ebbdb734e5365c127be08d9523c00cecabe | 04b52903cf3d1ce387073263ffe52f4b35ed78b9 | /src/util.py | ee626192906ca837afa73fbae1454a330345c257 | [] | no_license | arramanenka/totally_not_a_discord_bot | 099907e8885f10b8f0db8c68bda9c707df904fb4 | 227309bdc4fdf48e45d93fc4a42c0fef6bf77ee2 | refs/heads/master | 2023-07-12T20:47:33.678988 | 2021-08-25T10:43:21 | 2021-08-25T10:43:21 | 273,958,981 | 0 | 1 | null | 2021-08-25T10:43:52 | 2020-06-21T18:11:18 | Python | UTF-8 | Python | false | false | 1,255 | py | import re
import flag
import pycountry
def insert_flags_from_nick(flag_dict, nick):
flags = find_flags(nick)
added_flags = []
for user_flag in set(flags):
country = pycountry.countries.get(alpha_2=user_flag)
if country is None:
if user_flag == 'EA':
country = p... | [
"arramanenka@gmail.com"
] | arramanenka@gmail.com |
4e3a56568c27421979139db0b9beb3a7cd38f0fa | be54ca18a1304478b63a77e0e5579b9440f4bd08 | /venv/bin/tox | 3a0bb46932b314e04eeb280ec25373a2ee225bfe | [] | no_license | paolapetri/calc4testing | f8ddf74a177f3bea4aee977c871cafd47c596a40 | baa41d410515285ef4a9c95a4d4731e1d5f519f2 | refs/heads/master | 2023-08-21T17:42:41.009149 | 2021-10-14T15:37:09 | 2021-10-14T15:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/Users/alessiomatricardi/Desktop/calc4testing/venv/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from tox import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"alessiomatricardi@yahoo.com"
] | alessiomatricardi@yahoo.com | |
af847059f7c7769f05a7d85baede1650f9d928e6 | f5f913273462e16c6cc2b9718a2d4f8066dba161 | /account/views.py | 6b1edc274d03a4e4509b321c396d710d1268fb3f | [] | no_license | markdawson/alu_eats | 9549d1fda59a7af35efd0eb6876687c790f12dcc | 190ff2b3ee204b2b49bf75a7a7899ee691a31d94 | refs/heads/master | 2021-01-17T11:53:14.784541 | 2017-02-14T13:28:43 | 2017-02-14T13:28:43 | 63,774,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import authenticate, login
from .forms import LoginForm, UserRegistrationForm
from django.contrib.auth.decorators import login_required
from menu.views import menu_list
def user_login(request):
if request.method == 'POST... | [
"medawson94@gmail.com"
] | medawson94@gmail.com |
7a48069b4fd1080f251a258b80c72b101888b83c | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /examples/features/switch.py | 35af4fcb1a13395b4ea7bb6a0625647b1be3beab | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 112 | py | a = False
b = False
c = False
print("feature a: %s" % a)
print("feature b: %s" % b)
print("feature c: %s" % c)
| [
"g@rre.tt"
] | g@rre.tt |
def3efc97b43c2fd714d88a900a8605d0ea4dce0 | 491135334066414143f7bb1463b830bdfbea2c39 | /1/catkin_ws/build/two_int_talker/catkin_generated/pkg.develspace.context.pc.py | 8adf3d35cac3658c60d53099663ac5ee91b0299d | [] | no_license | JafarAbdi/RoboticsCol | 1df041093818db419f3758157fc2847c4c8c7639 | 766dd52a0b6dfc21f347e914cd87d890fd894271 | refs/heads/master | 2021-01-15T18:35:36.385272 | 2017-08-13T08:25:00 | 2017-08-13T08:25:00 | 99,791,188 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "two_int_talker"
PROJEC... | [
"cafer.abdi@gmail.com"
] | cafer.abdi@gmail.com |
4482f555a12d96a69185b28d8fa369b1f87163cd | 310ff45dafae847cc4d53935a4ae5b3d868acd7d | /main.py | e1c4054bc59c4eb728eb13757ecbdeec41b9d535 | [] | no_license | dagbay/RegisterYourCar | fb0d612dc47df146ecbf122b3006addbc14eb869 | 1e10f3b2efe3dfadc31113fa92ecffebac58c917 | refs/heads/main | 2023-08-31T20:42:47.871589 | 2021-09-29T06:29:36 | 2021-09-29T06:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from website_car import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True) # Debug is true for development purposes. | [
"80764810+dagbay@users.noreply.github.com"
] | 80764810+dagbay@users.noreply.github.com |
2b9c1aa485a9a0971055595d900403d77eb49d68 | 3b4cd1901d5882afd4b68335781b4aa85e324a27 | /Magnify_ws/my_app/add_to_noise_API/add_to_noise_view.py | abf6eb971c6a017e541de485d860e90b50385739 | [] | no_license | Subhajit-git07/flask-mysql | 1efeabd82ab871164ce08c48ce25aa116fa4a46f | e3cc9eb53e855815de2e0b8e0792870265aa5c85 | refs/heads/master | 2022-11-05T18:40:18.912885 | 2020-06-25T19:21:12 | 2020-06-25T19:21:12 | 271,717,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | from flask import request, render_template, flash, redirect, \
url_for, Blueprint, g
from flask_login import current_user, login_user, \
logout_user, login_required
from my_app import db, mysql
from my_app import cache
import requests
import math
from flask import Flask, abort, json, request, jsonify, g, url_... | [
"subhajit.rakshit07@gmail.com"
] | subhajit.rakshit07@gmail.com |
6c9c21c685c14aa3bdf2a4f48ea2f84410ab5e09 | c864f6423987b94408faff890697be096757e741 | /RandomWalk.py | 7a512f6014706fede90104a74294a54a3f2fb511 | [] | no_license | chamindu123/Physics | 3062f9027b65e86f69e528ec9b295482cd825aa8 | d53f4977c8154d16f6e340592b97808ebea88a9f | refs/heads/master | 2021-01-09T05:30:32.549931 | 2017-02-26T23:44:02 | 2017-02-26T23:44:02 | 80,779,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import math
import pylab as plt
from random import randint
def randwalk(): #returns a list of displacements with each step
x = 0
y = 0
coord = []
for i in range(0,100):
a = randint(1,4)
if a == 1: #up
y+=1
elif a == 2: #down
y-=1
elif a == 3: #rig... | [
"noreply@github.com"
] | chamindu123.noreply@github.com |
9b353b130fbce06b4f1088dd165d7c93d6985d27 | 53e562432e5101ba073b5f3380ded555464a809a | /grad_network.py | 42e3890fff99d55036ea3b4aa06d4ae222a1718e | [] | no_license | coreyjpieper/netsci-capstone | 48d54176fc2acc6924e5bd4b8a4ae70c653b9c80 | 9d8e98253ed35b1483e2c78e8c673c39f403bef0 | refs/heads/master | 2023-01-04T18:52:28.104647 | 2020-10-22T03:31:22 | 2020-10-22T03:31:22 | 303,540,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,459 | py | import itertools
import re
from pprint import pp
from typing import List, Tuple, Dict, Union
subject_to_prefix = {
"African Studies": "AFRI", "American Studies": "AMST",
"Anthropology": "ANTH", "Applied Mathematics and Statistics": "AMS",
"Art": "ART", "Asian Studies": "ASIA",
"Biology": "BIOL", "Chem... | [
"26394708+coreyjpieper@users.noreply.github.com"
] | 26394708+coreyjpieper@users.noreply.github.com |
d7aebebb169f95c5469949fb86170cf4d6013507 | 64a5f836b1b1024e0dce4bd60e3e93bb0b8ec084 | /library/migrations/0005_issuedbooks_datetime.py | 78cd49ab4a2ba92374b46dfb91c4ea6228e3a481 | [] | no_license | Sonic-Master/Library-Management-System | 586a6bac29dce4ae76b88ac57f1b2474ded52803 | 46268c8f3b84ab606eb8bf4e4f22762b22c77ec0 | refs/heads/master | 2022-04-16T20:47:02.393490 | 2020-04-14T06:31:51 | 2020-04-14T06:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 2.2.6 on 2020-03-20 09:33
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('library', '0004_remove_issuedbooks_datetime'),
]
operations = [
migrations.AddField(
model_name='iss... | [
"jinshad4212@gmail.com"
] | jinshad4212@gmail.com |
9961cce078c09c6d7ad15798b5fd0a668d725c2e | 15898330b2faa9c0b90d44632cf388e6bc1dce19 | /classes/Tile.py | d9f3a26f0db6f539d9cc95005886b37dc7c36cd7 | [] | no_license | hahamark1/Safe-Exploration | 3cf1c03e158da5888ea7654a1fa1cc2c21541e73 | addfde248b605c348ea9e5e4a96658833a439cb8 | refs/heads/master | 2022-07-10T16:47:02.740427 | 2019-08-12T07:57:36 | 2019-08-12T07:57:36 | 201,884,692 | 0 | 0 | null | 2022-06-21T22:31:17 | 2019-08-12T07:59:58 | Python | UTF-8 | Python | false | false | 287 | py | import pygame
class Tile():
def __init__(self, sprite, rect):
self.sprite = sprite
self.rect = rect
def drawRect(self, screen):
try:
pygame.draw.rect(screen, pygame.Color(255, 0, 0), self.rect, 1)
except Exception:
pass
| [
"bart@bit-students.com"
] | bart@bit-students.com |
dfe00bb40896725836e52634e7f491e28530586c | 8a77ba4c00604f338edb17319b3a4ca702e5f331 | /accelerationConstante.py | a5206198416fd3bc4347dc6633076bb745d938cb | [] | no_license | Sarcotome/Kobra | da6cbc7ee9a7de877a374d0e3c2ffac5bea6b97d | 6a344b259810fc25a2a1ded406aa906aa04c931c | refs/heads/master | 2021-01-06T11:52:49.106780 | 2020-02-18T10:02:55 | 2020-02-18T10:02:55 | 241,317,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,572 | py | #=========================================================================
# Newport Proprietary and Confidential Newport Corporation 2010
#
# No part of this file in any format, with or without modification
# shall be used, copied or distributed without the express written
# consent of Newport Corporation.
... | [
"noreply@github.com"
] | Sarcotome.noreply@github.com |
b546fba116b12c32eecc1627b25695ff587079b3 | 3d43fed6f4e6f3e9f644fff4c7810f02961fa893 | /units/migrations/0006_auto_20211002_0951.py | fc3a0026c1b839adb879d7ea2cfa5ce0a3856c74 | [] | no_license | Sept-Hackathon-Team8/Django-backend | 4d1b860d31ba34771eadcc5e687d6967ea1fc4ca | ae5fd4eb6142c6294065250dba0bf030091107c7 | refs/heads/master | 2023-09-02T19:47:45.726985 | 2021-11-03T16:00:05 | 2021-11-03T16:00:05 | 409,017,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 3.1.13 on 2021-10-02 09:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('units', '0005_auto_20211002_0915'),
]
operations = [
migrations.AlterModelOptions(
name='unit'... | [
"commonzenmedia@gmail.com"
] | commonzenmedia@gmail.com |
4830116877968ecd4ebc6659f852aff6af73f637 | 69d05e7788a6facf4e5777c4b3819fa43d0f1df0 | /gui/brain_labeling_gui_thalamus_v2.py | e8041a84ea17c4b97c081da7271935a7fb7af6a9 | [] | no_license | xl1393/MouseBrainAtlas | e238d06a5b51ca037a25e3f79fb422f7a7367222 | 1e875f9f872d38c916de3e460c1e88f2ef07fa32 | refs/heads/master | 2021-05-09T05:14:40.721154 | 2018-01-27T09:24:46 | 2018-01-27T09:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,987 | py | #! /usr/bin/env python
import sys
import os
from datetime import datetime
import time
import json
from collections import defaultdict, OrderedDict
import numpy as np
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from shapely.geometry import Polygon as ShapelyPolygon
from shapely.geometry import Point as Shapel... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
92bfc6375ac81a74e4c1e8a1821c7fb92c38bef3 | a7f22b314251129fb8828618c734d7b8510237ff | /Adeleine/reference/inference.py | d7a9f9af941a00a384975d91e4179cdecd5c945b | [] | no_license | chenzhao11/Colorization | 5d20bd4bb41f673e4ae7f8a8ab2c3c392b48b7b9 | 59e7b809570509ef770e6c6fd9aa7cf988f32ac0 | refs/heads/master | 2023-06-11T23:52:35.507640 | 2021-07-05T08:56:44 | 2021-07-05T08:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | import torch
import torch.nn as nn
import argparse
import cv2 as cv
import numpy as np
from pathlib import Path
from tqdm import tqdm
from .model import Generator
class ReferenceInferer:
def __init__(self, pretrain_path):
self.model = self._model_load(pretrain_path)
@staticmethod
def _model_load... | [
"crosssceneofwindff@gmail.com"
] | crosssceneofwindff@gmail.com |
fbf7d1fe6bc3bc61de994fad6d0531e7069d8c22 | b773717d0a79fdef3d03b8ec6b9d3a5eca21cd1f | /viholliset5(kantoalusOK+pelaajaNopeus).py | fe50dc17d1a35c9869a69b9710c6feb620371b07 | [] | no_license | dim-bot/Space-game | e6812f6ed2970ae288966e65940df3805dde8328 | 955bdd38f49513f40848f8a00357e7549bcb0ba8 | refs/heads/main | 2023-05-08T05:45:32.125315 | 2021-05-25T09:01:39 | 2021-05-25T09:01:39 | 370,622,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,300 | py | import pygame
import os
import sys
import time
import random
from pygame.locals import *
from pygame import mixer
pygame.init()
pygame.font.init()
width, height = 800, 600
window = pygame.display.set_mode((width,height))
pygame.display.set_caption('SuperDuperAwesome SpaceGame')
main_font = pygame.font... | [
"noreply@github.com"
] | dim-bot.noreply@github.com |
e3115e42846e195446fc894e10dd6ac61f5d1618 | 513021ba2ba48a30245c6c76406f034c69f4f366 | /4_Podstawowa wiedza o języku/4.33_String.py | a63127c53ddf9c57b6f1bc74ae339871af085873 | [] | no_license | rucpata/udemy-python_poczatkujacy | d789c3ff0fa9f8794c97e537aa58d8a273601023 | f65053e6efac7e30bae862f6555ab08fcf7385a4 | refs/heads/master | 2022-03-07T11:33:09.284281 | 2019-10-29T14:09:19 | 2019-10-29T14:09:19 | 218,301,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | atext='This is a text'
atext.endswith('ext')
atext.endswith('ext.')
| [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
90332083e7fee25f53c629a82dd5c8343d543865 | 7a4f8f0557fc7d86bcd3f87b420ae9ebf9203966 | /src/Models/SICRD.py | 18fb30796eacd55a7c2db66c8d299b8252e94c00 | [] | no_license | agussomacal/MasteringCOVID19 | e1a58b3ca7d5a07c771805fea498fe79ed7607e6 | 20723b087867eb842fa0a07c287f62b71442e52e | refs/heads/master | 2021-05-17T06:01:00.521678 | 2020-04-13T21:02:02 | 2020-04-13T21:02:02 | 250,661,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | from src.Models.BaseModels import ModelBase
class SICRD(ModelBase):
# def __init__(self, a, b, gamma1, gamma2, mu, t0, bfactor):
def __init__(self, b, gamma1, mu, t0, bfactor):
# def __init__(self, a, b, mu):
self.gamma1 = gamma1
self.mu = mu
self.b = b
self.t0 = t0
... | [
"saogmuas@gmail.com"
] | saogmuas@gmail.com |
3d2c7250fc86e1e1fccb50cb1bc9c92c8f7ed1a8 | 803ecf76ed40efd3908af798d7e84ffe04d94557 | /moto/init.py | 655adb6044c84c700e3674cf2ea90bda5a34daed | [] | no_license | gbeced/moto_docker | 388cafbe3c47658e802a028e0f995cf1b39fdb22 | d1761ec5fb3f6d1b510c1f2beb11a8663a4b11d4 | refs/heads/master | 2022-01-06T23:34:48.759892 | 2019-05-29T18:02:10 | 2019-05-29T18:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | #!/usr/bin/env python
import os
from boto import sns as botosns
from boto import sqs as botosqs
AWS_REGION = "us-east-1"
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
def init_queue(name):
conn = __get_connection(botosqs)
q = conn.get_queue(na... | [
"jformoso@gmail.com"
] | jformoso@gmail.com |
cc79ae7247755ae4f7bbd5184ba22ebaa91c6c18 | 3167ff58ede2b62ff5ae3375df0ad1e2d8bb1383 | /RPI/mainSerialTest.py | 89c9bb631f856ece75624cae10bf3c3c7742299d | [] | no_license | aktoro/Delta-Autonomous-Pet-Bot | 44143cb135a55572ef305a820e3c75014744d5a5 | 230583451c030f8b3b520f5cdc6aa54aa6040e48 | refs/heads/master | 2020-06-21T10:07:31.431080 | 2016-11-27T05:58:46 | 2016-11-27T05:58:46 | 74,793,433 | 0 | 0 | null | 2016-11-25T23:21:44 | 2016-11-25T23:21:44 | null | UTF-8 | Python | false | false | 367 | py | import time
import serial
import comsManager
import ledManager
led = ledManager.LedManager()
coms = comsManager.ComsManager()
sleep(.5)
coms.sendSerialData(1,2,3)
if coms.receiveSerialData() == 0:
print "error receiving data/n"
else:
print "data received/n"
dataList = coms.getData
print '\n'.join(str(... | [
"kaalodabney@gmail.com"
] | kaalodabney@gmail.com |
e46ce34addebb050347cdd470f4cd7e400c7e47f | 1f91f88b17b35a9306b6a279ec338921a22c78d0 | /team_scripts/nakama_exp078_EffNetB7.py | 2f9a4e189977fac7f91c32181c22497ed4064c8c | [
"MIT"
] | permissive | yuv4r4j/kaggle-rfcx | 64d02102a78a295e14e8a904e2a34bb7772d2cb4 | c3573d014d99312b58882e7b939de6c1055129b1 | refs/heads/main | 2023-03-03T01:38:14.999693 | 2021-02-18T10:31:29 | 2021-02-18T10:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,264 | py | import os
import random
import time
import warnings
import audiomentations as A
import kornia.augmentation as K
import librosa
import numpy as np
import pandas as pd
import soundfile as sf
import timm
import torch
import torch.nn as nn
import torch.nn.functional as F
from pathlib import Path
from sklearn.model_selec... | [
"arabiannight1994@yahoo.co.jp"
] | arabiannight1994@yahoo.co.jp |
068ae4b28203ae3d2e768fb09dff72ea9d28c347 | ec755288163e5586e389fa64f0cd9adc46d04bba | /Code/fptree.py | ead777b3fb2ab66474618f457575df2602f7c856 | [] | no_license | nitin10101999/Frequent-Data-Mining-And-Data-Generation | 19177396f85e9e046fb61c254d787cbc8f0be9d3 | 4e058e41cea8b0d5d23e392b8de9bc51b8d96dba | refs/heads/main | 2023-03-18T09:29:38.466654 | 2021-03-10T17:39:55 | 2021-03-10T17:39:55 | 346,428,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,376 | py | # -*- coding: utf-8 -*-
"""FPTree
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1NfbqrGSuPIMf5vMSb5IoJKFlyk4-WiDI
"""
#import os
#os.chdir('/content/drive/My Drive/Code')
import numpy as np
import pandas as pd
import copy
import math
import csv
impor... | [
"nitin10101999@gmail.com"
] | nitin10101999@gmail.com |
8ff499f46838a0962c4c120ae559e75c9314dcb8 | c2bd6c9fa7c8fe8e1b71deec11f7247419035b2d | /urls.py | d6f5210405f36a39672a00a8afbc577e08f934b4 | [] | no_license | HelloWorldPeru/redAutonoma | 2183552d68366d6904b0af5e293da768f0a89dbb | 963a8ee0d0dc4cbf60863dc1f6dde915ba3fe255 | refs/heads/master | 2021-01-25T03:54:26.703316 | 2013-11-10T17:27:44 | 2013-11-10T17:27:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import connection as cn
from views import dashboard
from views import home
from views import phonegap
app = cn.app
#Website
app.add_url_rule('/', view_func=home.index)
app.add_url_rule('/login', view_func=home.log, methods=['GET', 'POST'])
app.add_url_rule('/logout', view_func=home.logout)
#Dashboard
app.add_url_rul... | [
"Jonathancg90@gmail.com"
] | Jonathancg90@gmail.com |
7e2178bbaea5a74da95f3e91c473d6314be0c123 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/EMRryzd_1_20190410143150.py | 447c8d147b75b36af2f0e17929c25c3b55f8321c | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | #-*- coding: UTF-8 -*-
#本文件用于提取目标目录中的所有txt,并提取关键词所在行到指定目录,并提取关键词新建文件
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR')#txt目录提取
zljhs = []
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入e... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
195891c411049061539e4df6d8b388c9c0b3ecea | 7c0eb8e9e23f3face53cb3e0cab756867b40f456 | /Ch6/text.py | 7ab821de3c2da882e2c5554fce89f82fd76ab17e | [] | no_license | sagood/Web-Scraping-with-Python3 | 731b04cc87ff0fcfacb115bca1a243a6c63a9768 | bd4fb8622f50eab22e26f05e39cd39490764bce4 | refs/heads/master | 2021-01-10T03:55:22.584924 | 2015-11-22T09:51:36 | 2015-11-22T09:51:36 | 46,294,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from urllib.request import urlopen
textPage = urlopen('http://www.pythonscraping.com/pages/warandpeace/chapter1.txt')
print(textPage.read())
| [
"gasnus@gmail.com"
] | gasnus@gmail.com |
c2be8aae5904e3f1bc747bd18e6e9c8f4421f555 | 12df5a309179cb1b35268745a14eda6ddbca5c06 | /api/data_generation.py | cc7e184863d1ba288558b00316f6aac80e86d97e | [] | no_license | bhawnam/good-samaritan-finder | 1228e83f438bd64c3cbeed87d30aa7303e4f2444 | df3bcb5d6732e794294970985798e4425371f5a8 | refs/heads/main | 2023-07-13T07:23:23.683000 | 2021-08-18T06:38:52 | 2021-08-18T06:38:52 | 374,189,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | from faker import Faker
import json
import random
fake = Faker()
def create_user_profile():
user_profile = {}
user_address = get_user_address("data/mlsListings.csv")
for i in range(0, 25):
user_profile[i] = {}
first_name = fake.unique.first_name()
user_profile[i]['first_name'] ... | [
"bhawna.bm@gmail.com"
] | bhawna.bm@gmail.com |
21312c88e896f1e53ab8fee42e26d84f8cd8ba4e | 0e70ba6dba641a14f1e328e4b577dffe25d394dc | /Tests/test_ball.py | ff3287e3fff0e79212a2a6349689b0b7c6ee9b88 | [] | no_license | Griboedoff/lines | 88914d6edfff7de5b80dc7fc278f604932226f77 | ade0977bd36bc134a7a87835f89e973b60797f7c | refs/heads/master | 2021-01-13T09:14:47.842245 | 2016-11-29T17:15:01 | 2016-11-29T17:15:01 | 72,410,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import os
import sys
from unittest import TestCase, main
from Model.ball import Ball
from Model.ball_color import BallColor
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)),
os.path.pardir))
class TestBall(TestCase):
def setUp(self):
self.one_color_bal... | [
"igormb@MacBook-Pro-IgorMb.local"
] | igormb@MacBook-Pro-IgorMb.local |
d8331a729aa504d88b84d2f713ef41c11aec03d3 | 5d3fd91bb81f417374007935553fdab8a1a9deef | /pysim/network/edison/edisonsingle.py | 8ece80b06468dabe42172c4d9d793c84a3a36d8d | [] | no_license | FSU-CS-EXPLORER-LAB/PySim | 024dd44d7f0e42d6ec1b235a587ae6a049d8d538 | 6b2575c6f7987a3e076a51ec6e669dda345208c0 | refs/heads/master | 2022-09-19T06:20:55.616676 | 2019-05-16T04:54:20 | 2019-05-16T04:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # -*- coding: utf-8 -*-
from pysim.network.edison.edisondragonfly import EdisonDragonfly
from pysim.evaluation.booksim import makeBooksimConfig
from pysim.routing.routing import Routing, makeRouting
@makeBooksimConfig
class EdisonSingle(EdisonDragonfly):
def __init__(self, **kwargs):
super().__init__(*... | [
"generyas@gmail.com"
] | generyas@gmail.com |
df6dd2353e401871a241b24c6eb060b31bf936ce | 96b03f66f55b2f733f3da5defbd5b37d2a02bc8a | /modules/calc900_200.py | c57ba2ff7df493abc68557412c554913c82f8ea8 | [] | no_license | th3fall3n0n3/my_first_calc_extended | 641e66119c2b7055ea47a55ebd3559077394fc90 | c2c0dfe50ebc59ea20bb595db50ef63d603d54af | refs/heads/master | 2016-09-13T18:08:15.841173 | 2016-05-14T15:18:08 | 2016-05-14T15:18:08 | 58,811,146 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863,801 | py | def calc(num1, sign, num2):
if num1 == 900 and sign == '+' and num2 == 200:
print('900+200 = 1100')
if num1 == 900 and sign == '+' and num2 == 201:
print('900+201 = 1101')
if num1 == 900 and sign == '+' and num2 == 202:
print('900+202 = 1102')
if num1 == 900 and sign == '+' and n... | [
"ivan.tarasenko@oracle.com"
] | ivan.tarasenko@oracle.com |
b3091967ca2295a42f480875d29c9828ca79c371 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/594. Longest Harmonious Subsequence.py | ce388e0d7f6aef49ca1706ff198232b0568caac0 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | '''
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.
Now, given an integer array, you need to find the length of its longest harmonious subsequence among all its possible subsequences.
Example 1:
Input: [1,3,2,2,5,2,3,7]
Output: 5
Explanation... | [
"derek.xiao@loftk.us"
] | derek.xiao@loftk.us |
f56ec2e37f5245dcb7f44bca1b5244795ec53b15 | 3185dc605853fdaf942fd06e206225793b198638 | /剑指offer/No33_二叉搜索树的后序遍历.py | 3f91cd02bac6390558ce1f02fee1723e7f138edf | [] | no_license | fank-cd/books_exercise_code | cb81ee8ec8167a5f5e3bfc58d3c1d6d931ca9286 | 1e8109adb82f741df1203658d4bf272f09a651b8 | refs/heads/master | 2021-07-11T01:15:11.980179 | 2020-06-29T04:01:53 | 2020-06-29T04:01:53 | 156,671,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # 题目:输入一个整数数组,判断该数组是不是某二叉搜索
# 树的后序遍历结果。如果是则返回true,否则返回false。
# 假设输入的数组的任意两个数字都不相同。
# 后续遍历:左右根
# 思路:最后一位是根节点,比根节点小的是左子树,大的是右子树
def verify_sequence_of_BST(sequence):
if not isinstance(sequence, list) or len(sequence) == 0:
return False
root = sequence[-1] # 根节点
for index, element in enumerate(sequ... | [
"2464512446@qq.com"
] | 2464512446@qq.com |
506791034bb4fa2febef6891ea7e23d6db874603 | 1e026402add57278035b357feacb24e2f93baff5 | /Medicelab/main_part/sub_part/migrations/0009_alter_admin_mess_pat_id.py | dc25af1aada3552cca036edd521a61c23c2940ec | [] | no_license | Vignesh282000/Medicelab | 49a3b839482a077c5634b34ab9c528d967a2550d | 000605abf76542eeea0c779b8ad1b0910e0267c5 | refs/heads/main | 2023-06-03T23:52:28.074720 | 2021-06-29T10:14:11 | 2021-06-29T10:14:11 | 381,313,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.2.3 on 2021-06-27 05:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sub_part', '0008_alter_reg_department'),
]
operations = [
migrations.AlterField(
model_name='admin_mess',
name='pat_... | [
"vicky2000ssvv@gmail.com"
] | vicky2000ssvv@gmail.com |
83ec920752db5e6af4a272739161eb3812fd5df8 | 4879cf7b685fa3d33a6dc0b2bff1155937bf662b | /django_emprendimiento/myapp/models.py | 4756bd56ca227bcb453ad0a3188234cefb86afef | [] | no_license | wagiodev/diplomado_python_django | b4717420faecad7818968e511e0528f4b44ffc28 | 4e3a67b2d9c79f3eb2ffda2582d069b7df5c189b | refs/heads/master | 2023-04-15T00:54:02.441767 | 2021-05-01T04:36:38 | 2021-05-01T04:36:38 | 351,246,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from uuid import uuid4
# Django
from django.contrib.auth.models import AbstractUser
from django.core.validators import RegexValidator
from django.db import models
from django.urls import reverse
class Role(models.Model):
"""
The... | [
"waltergiovannycuadros93@gmail.com"
] | waltergiovannycuadros93@gmail.com |
7952ec5999394ea474803d6f1788d5e5ad3a3f79 | 263140423238ed45c8bd5d5a50e4ca4eabd7fdd4 | /loglizer/dataloader.py | 5a37375d3e5cf521939fd8378923e63cf7318a5d | [
"MIT"
] | permissive | ZouJinying/XAI_loglizer | 5099b73ffe634d2c9e2bf1b31c5fd75e7f16c382 | df3e9d91502c10b8c8d8871617b405cc0671308b | refs/heads/master | 2022-12-01T09:17:27.822645 | 2020-08-03T23:29:27 | 2020-08-03T23:29:27 | 262,685,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,829 | py | """
The interface to load log datasets. The datasets currently supported include
HDFS and BGL.
Authors:
LogPAI Team
"""
import pandas as pd
import os
import numpy as np
import re
from sklearn.utils import shuffle
from collections import OrderedDict
def _split_data(x_data, y_data=None, train_ratio=0, split_type=... | [
"jesco4482@gmail.com"
] | jesco4482@gmail.com |
7b44dc1ca5547e96f889aa391f271ffc1af3a36b | f77b0f2cc709b9670e6b4dc7145a6ea5368585d2 | /project/services/__init__.py | db39b8c13a29c94642f59828bc1ba56e2a186ac3 | [] | no_license | sgammon/StonerHub | 45ccac6bd349200bbc75c494002c3ffeb082dcb8 | a81f7fdd2c7118c6cea3c25ef9f53f272d27b0cc | refs/heads/master | 2021-01-20T10:54:47.546251 | 2011-11-07T12:02:20 | 2011-11-07T12:02:20 | 2,664,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # -*- coding: utf-8 -*-
from apptools import BaseService
import protorpc
from protorpc import remote
from protorpc import messages
from protorpc import message_types
class RemoteService(BaseService):
pass | [
"sgammon@bluestatedigital.com"
] | sgammon@bluestatedigital.com |
3081ad286ed7ba0b6f961edb970e6c68a711da17 | 43c5eafff817c3b130d8b4ec16c992d86208500c | /lino_avanti/lib/tickets/models.py | d831bc25bd9a0efddf3a6883c015383e6dfc9eaa | [
"BSD-2-Clause"
] | permissive | khchine5/avanti | a8b9e9e75ac593a00b11ffa5bd5cfd00f06db6c0 | 5a5f9d1ddfa20ae0eb8fa33cb906daf78d9568b1 | refs/heads/master | 2021-01-11T17:29:16.012089 | 2018-08-23T05:46:52 | 2018-08-23T05:46:52 | 79,784,948 | 0 | 0 | BSD-2-Clause | 2018-08-19T12:28:12 | 2017-01-23T08:28:46 | Python | UTF-8 | Python | false | false | 1,287 | py | # -*- coding: UTF-8 -*-
# Copyright 2016-2017 Luc Saffre
# License: BSD (see file COPYING for details)
from lino_xl.lib.tickets.models import *
from lino.api import _
Ticket.hide_elements('closed')
# class Ticket(Ticket):
# class Meta(Ticket.Meta):
# app_label = 'tickets'
# abstract = dd.is_abstr... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
cf9b8a140ca9e99e753290df16f95dc75128d824 | 0b99d16fc377d757284b829a8a8bceacfbf2d537 | /Curso em Video/desafio02.py | 95fec4fc7dfde951f5e2deea44c3024d76a5cf08 | [] | no_license | kilmer7/workspace_python | 9e7f332d9b78c58049a9d41b4a731d3b92760819 | 2a80dedafae94f4aa53691590e9c45eb3a0979ad | refs/heads/master | 2022-08-26T07:32:57.608090 | 2020-05-26T02:22:18 | 2020-05-26T02:22:18 | 265,866,673 | 0 | 0 | null | 2020-05-26T02:22:19 | 2020-05-21T14:15:43 | Python | UTF-8 | Python | false | false | 143 | py | dia = input('Dia = ')
mes = input('Mês = ')
ano = input('Ano = ')
print('Você nasceu no dia '+ dia +' de '+ mes +' de '+ ano +'. Correto?')
| [
"kilmersousa@gmail.com"
] | kilmersousa@gmail.com |
7d588c356c803378d4c85a1d02846780de1ab66b | 8778f992f7d6fc859132408b72186a1b9f538e59 | /plag/apps.py | 96ed13e2ef9fc0faa70e6d7f5de9a88ff7b727c7 | [] | no_license | swetha-47/plagiarism-checker | 193cce24f16e7a3945cbe201a7ea0aa90377f590 | ce7a830eaf472b56bc9f04c41e02deb5e9071392 | refs/heads/main | 2023-06-10T15:40:06.419549 | 2021-06-30T05:52:08 | 2021-06-30T05:52:08 | 380,783,760 | 0 | 1 | null | 2021-06-28T11:26:25 | 2021-06-27T16:09:07 | Python | UTF-8 | Python | false | false | 140 | py | from django.apps import AppConfig
class PlagConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'plag'
| [
"noreply@github.com"
] | swetha-47.noreply@github.com |
592d29907ce252a6392bcd79f4ecbd01d7349714 | e766a2cdde904cb05b86b906262b9bf8a4d2470a | /app/models/persistence/event.py | c50f9f16191b95239dffb5fef8883dd23200c868 | [] | no_license | menge101/tavern | e8b8ca1f23a3ff521ecd43b81e9b198da5ac0efb | 1bc338d52a462e08298dca111f09e7dde0c46352 | refs/heads/master | 2021-05-14T03:49:40.544494 | 2018-04-30T02:23:00 | 2018-04-30T02:23:00 | 116,627,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | from app.models.persistence.base import BaseMeta, BaseModel
from app.models.persistence.mixins.timestamps import TimeStampableMixin
from pynamodb.attributes import ListAttribute, MapAttribute, UnicodeAttribute, UTCDateTimeAttribute
class EventReferenceModel(MapAttribute):
event_id = UnicodeAttribute()
hares =... | [
"nathan.menge@arcadiasolutions.com"
] | nathan.menge@arcadiasolutions.com |
4d15135789fc7ddfe59e044ee77c998c9e51caed | c7a074fb91114623a89b3c0b78d7e55cbb127cb6 | /Day_4_2.py | 3175cc23afa2b5144e2ff893c87d063637fbf8ed | [] | no_license | mjdlsdbs1/2020_AI_CHOSUN | 96a27b19d4b759df2a8b66c270fc7c44a9b45bec | 8226cbb216c8e8af4b1544246fed7771702b4d3a | refs/heads/master | 2022-11-06T18:54:32.663711 | 2020-06-29T07:55:37 | 2020-06-29T07:55:37 | 264,863,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import pandas as pd
import matplotlib.pyplot as plt
db = pd.read_csv('./DB/loop1 coldleg_loca_20.csv')
print(db['BFV122'])
plt.plot(db['BFV122'])
plt.show() | [
"jonghyun.kim@chosun.ac.kr"
] | jonghyun.kim@chosun.ac.kr |
0b3198ba2f6a50c27a259e272e579b6426334efa | 737ebe7ccb1baf2470e4b8d14046629b10679424 | /EGamma/ECGelec/python/NtupleProducer_spike_cfi.py | f8c77e02f51f55235bc6b12b20e845a3c05ef5b4 | [] | no_license | fanbomeng/Ecal_Turnon_2012_data | b1d7354b3cb88079a5a17cf3066843b7a99e53f4 | 9989077fd2d346fa158c84a929ae230bb1dc8b5e | refs/heads/master | 2021-01-21T13:48:59.575843 | 2015-09-18T12:00:12 | 2015-09-18T12:00:12 | 42,649,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,927 | py | import FWCore.ParameterSet.Config as cms
produceNtupleSpike = cms.EDAnalyzer("SimpleNtpleSpike",
## Custom Nadir
# boolean parameters
NadL1M = cms.untracked.bool(False),
NadT... | [
"fanbo.meng@cern.ch"
] | fanbo.meng@cern.ch |
1f4664b506d35adfbace32674895c668a0d3b26f | f032fae229a52c48b9b93ceffb1764e74027850f | /tests/test_gateway.py | 8f1dd04a65fc00d1ced7064f9e149a6de124b3ea | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | qntnrbns/dask-gateway | 02f0c636f4faf6c5ddc35ed7ec264f9443ba27b6 | bf531e22bf5f97c8029d2778743cb5b60eca4095 | refs/heads/master | 2020-09-25T07:12:12.499271 | 2019-12-03T23:37:45 | 2019-12-03T23:37:45 | 225,946,612 | 1 | 0 | BSD-3-Clause | 2019-12-04T19:59:33 | 2019-12-04T19:59:32 | null | UTF-8 | Python | false | false | 35,676 | py | import asyncio
import os
import socket
import signal
import time
import pytest
from cryptography.fernet import Fernet
from traitlets import Integer, Float
from traitlets.config import Config
import dask
from dask_gateway import Gateway, GatewayClusterError, GatewayWarning, GatewayCluster
from dask_gateway_server.app ... | [
"noreply@github.com"
] | qntnrbns.noreply@github.com |
fab1c2e4d9980efb5d8c865ec56dd9f15c204a8a | 2081d17517ea3d86fca81f1757eac64195a0ec14 | /controller/Recieve_data.py | 30aa951b58d7f46c809504503cafb0baa9c861e9 | [] | no_license | bopopescu/IOT_App_Backend | b5acc80a0a60914a9e685be6f5e8a69a99285582 | 26021c436318b7222263330c45bbae8c3d05c857 | refs/heads/master | 2022-11-22T19:37:24.272280 | 2020-01-28T06:51:13 | 2020-01-28T06:51:13 | 281,856,956 | 0 | 0 | null | 2020-07-23T05:13:58 | 2020-07-23T05:13:57 | null | UTF-8 | Python | false | false | 272 | py | from Utilities.config import app,db
from Models.data import *
from flask import request
@app.route('/data',methods=['POST'])
def Receive():
data=request.json
result=receiveData(data)
return result
if __name__ == "__main__":
app.run(port=5002, debug=True) | [
"v-deeman@microsoft.com"
] | v-deeman@microsoft.com |
852c9d40f39c69aee476548b9281025a8abde625 | 74434cbd6cbbd74eaca1f9e181bd28e377dacfb4 | /1.py | 7f3d857b2313932f1dce71d6c316f4e3f2805236 | [] | no_license | hubbm-bbm101/lab5-exercise-solution-b2200356066 | c794ea2695c11272a3d476a7f1ee186ef61e7611 | 10baa2aced6183559f03d09a899806f8c7fffa07 | refs/heads/main | 2023-08-23T10:17:48.020051 | 2021-11-05T19:18:23 | 2021-11-05T19:18:23 | 425,060,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | N=int(input("Write a N number: "))
i=0
y=0
for x in range(1,N+1):
if x%2==0:
i+=x
else:
y+=x
if N%2==0:
print(f"Average of an even numbers:{i/(N/2)}")
else:
print(f"Average of an even numbers:{i/((N-1)/2)}")
print(f"Sum of odd functions:{y}") | [
"noreply@github.com"
] | hubbm-bbm101.noreply@github.com |
b04950b41dc3a4e885687c73f7da892ecc45d79e | b61769647b80ccfa52aa0a7bd9ab8e2433867138 | /main.py | 20a1913618a4ca435d0ac67ecee1b5e325df5fc4 | [] | no_license | Clouptiburger/submarineGame | db7b8063c54f8695cb2decdd07bdcaecdabd7281 | 7c0e4e063879bee41d1a7b3ecb27bcbc16a5ef90 | refs/heads/master | 2022-12-26T23:56:31.134277 | 2020-10-03T15:33:20 | 2020-10-03T15:33:20 | 263,598,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,324 | py | import pygame
import sys
import matplotlib.image as mpimg
import numpy
from pygame.locals import *
from utils.layouts import *
import time
height = 600
width = 1200
dictControls = {K_w : "movingUp", K_s : "movingDown", K_a : "movingLeft", K_d : "movingRight"}
clock=pygame.time.Clock()
fps = 60
subHeight = 333
subWidth... | [
"maxdenniel@gmail.com"
] | maxdenniel@gmail.com |
c05894dcc094768d74289c7d95642bc1c0f71e80 | d9fa66c72f9fb6d256342fc6efcba9a0fd491ca5 | /fall.py | 30cb0563166ea142b5e4c2b086d7cb365cb17781 | [] | no_license | gurvsing/Cricket-Scoreboard | 1e4447ad95cd1ef3acc33a44b92bea0b09600d19 | adaace6e751af1e5893f8acade41a098991647e9 | refs/heads/master | 2021-05-28T16:06:37.967111 | 2015-05-02T09:29:04 | 2015-05-02T09:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,433 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'fall.ui'
#
# Created: Fri Jan 03 21:40:07 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
exc... | [
"gurvindersingh1906@gmail.com"
] | gurvindersingh1906@gmail.com |
201567933820587c21b3669bac640c7203a7b6eb | af3fd9d68dd78f60cee781a5a989518047086979 | /eyec/settings/dev.py | 839a1bc9604fc1c4b49cfa036871b2f8d117ce3c | [] | no_license | Mantation/eyec | 27d24f527a708c567e4c60a91c17329290c4bea5 | 0a9ca6e683ad91b31c09bc9484495f233f58844f | refs/heads/master | 2022-12-14T15:30:10.066804 | 2019-06-07T11:07:12 | 2019-06-07T11:07:12 | 188,224,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | import os
from eyec.settings.base import *
#Override for dev settings
DEBUG = True
ALLOWED_HOSTS = []
| [
"rpholose@gmail.com"
] | rpholose@gmail.com |
a495d472db793af9987ac2bc9ce5a72cf85ff027 | 0d8a0ae257becb595ae931213c8d8839f453ba71 | /utils/TestRailsReporter.py | 9a66ebf0907913d614a4a488b252588fa88f2174 | [] | no_license | ymitskevich/auto-template | 9473a3f92bf70f40c0e18ab9991c999c60d12137 | 3ef5ab79c2a68ab4ce82bf531013aa3b29eec33a | refs/heads/master | 2020-04-04T23:03:02.066432 | 2018-11-06T07:45:57 | 2018-11-06T07:45:57 | 156,345,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | from utils.testrail import APIClient
class TestRailsReporter():
def __init__(self):
self.client = APIClient("")
self.client.password = ""
self.client.user = ""
def send_passed_test_result(self, case_id, comment=None):
if comment:
data = dict(status_id=1, comment=co... | [
"y_mitskevich@wargaming.net"
] | y_mitskevich@wargaming.net |
b47d922a817614c0bef4873a9674211ca5f9882d | 279f415dd1e06c594c6c87deda57e201c73c4542 | /espnet2/asr/state_spaces/pool.py | 4d08194d770af120e16c05bb6bb769f4114f0b0e | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 11,292 | py | # This code is derived from https://github.com/HazyResearch/state-spaces
"""Implements downsampling and upsampling on sequences."""
import torch
import torch.nn.functional as F
from einops import rearrange, reduce, repeat
from torch import nn
from espnet2.asr.state_spaces.base import SequenceModule
from espnet2.asr.... | [
"koichi_miyazaki_xa@cyberagent.co.jp"
] | koichi_miyazaki_xa@cyberagent.co.jp |
a8fe4d828c9bb50fdd5ac9bb6a6efa2f6474f9c6 | e86ddbd0c4e3f159d26c0b95d55d468e39a75dbe | /stock/stockenv/bin/twistd | bf1d2a590aa82e451ae78cff3a9349a517857597 | [] | no_license | xhyue/stock | c3f45859ff71f772dc97ac21efb2bf88b851eee4 | 86522d23db5899158cea7707a2add5a2d2cdc774 | refs/heads/master | 2020-03-30T00:43:29.333252 | 2018-09-27T06:44:33 | 2018-09-27T06:44:33 | 149,052,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/xhyue/work/stock/stockenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.twistd import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"xhyue_0209@sina.com"
] | xhyue_0209@sina.com | |
0fe21210117db16db5ff02b96f5d244257d114f0 | 6fbbde1e7a259577d9a1bece93b9f7851dd6276b | /OnlineLearn/migrations/0007_user_profile_pic.py | 58bfa03825b7b30430d28a15e75ad58ba3708145 | [] | no_license | frasulov/OnlineLearn | 3f9c5fec3eff6c392c76ccf0653d2cb635e70d6f | a7e1b0221fb32fd9f704ae368103451f8c1273b2 | refs/heads/master | 2023-02-05T06:04:13.404788 | 2020-12-20T11:18:22 | 2020-12-20T11:18:22 | 323,054,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.1 on 2020-12-05 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('OnlineLearn', '0006_auto_20201205_0642'),
]
operations = [
migrations.AddField(
model_name='user',
name='profile_pic',... | [
"frasulov4671@ada.edu.az"
] | frasulov4671@ada.edu.az |
1f20d42defaa41a02c4ed00b2f7326dbbed5ee7d | 520d42dd9d21e4476da7d18b70a8d1c43d0eaf17 | /final/char_rnn/src/char-rnn-test.py | 764d740447b046df0b22a56d7add3f0d0949d47e | [] | no_license | SimonCqChen/NNhomework | c24fd4c0719d2b8bae6d464ae946573f6053b585 | e175404a90bab3551cf17e984cb8a4cbf1fdb3bf | refs/heads/master | 2021-09-17T14:36:44.407816 | 2018-07-02T16:05:00 | 2018-07-02T16:05:00 | 126,039,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,249 | py | import tensorflow as tf
import numpy as np
import heapq
from char_rnn.src import data_reader
embedding_size = 50
hidden_size = 512
rnn_layers = 2
keep_prob = 0.5
vocab_size = 4060
batch_size = 64
num_steps = 100
learning_rate = 0.001
init_scale = 0.1
MAX_EPOCH = 51
MAX_GRAD_NORM = 5 # 最大梯度,用于梯度修剪
class RNNModel... | [
"simoncqchen@outlook.com"
] | simoncqchen@outlook.com |
020682c50ddf142dd210fcb7c0c287518d456cfd | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-watcher-1.0.1/watcher/api/controllers/v1/__init__.py | 16279551e21185f3c32f42077fb0cddb05a9009b | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 7,004 | py | # -*- encoding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
293aa28609f7918bde6aabcc6ba0376a793a6768 | de28c139ed26468d2da5e92216df244a6464902a | /backend/create_tables.py | 39af82383ffc2dc653754e32e50bbc759f304a07 | [] | no_license | jjyyoon/tic-tac-toe-online | f1bdc6501d86272fb81f6a6fa6b8a446e1cf98e8 | 80fc921dcb3d0fb6df56ed22c003cc3ee669e507 | refs/heads/master | 2022-09-25T09:57:25.993231 | 2020-06-07T14:22:54 | 2020-06-07T14:22:54 | 232,427,413 | 0 | 0 | null | 2020-06-06T16:35:29 | 2020-01-07T22:14:23 | JavaScript | UTF-8 | Python | false | false | 97 | py | from main import app
from models.database import db
with app.app_context():
db.create_all()
| [
"jjjy.yoon@gmail.com"
] | jjjy.yoon@gmail.com |
e5fbe9034b6cd9ff213fff2667ef921b8b97fde4 | 52d43258c6e6e305746d5827f6746688fb12bfb7 | /jobs/migrations/0004_auto_20200923_0322.py | 6634ddd2827a1db32c1786c0fb540d01d08d488c | [] | no_license | andreykot/jobs_example | 07b82104e05b794d6f38dd8d2747d1ddb4e7f04d | 7f2e7c8c97f1838184676ea1b0ec0cb01ef4416b | refs/heads/master | 2022-12-28T09:27:41.732929 | 2020-10-02T13:53:37 | 2020-10-02T13:53:37 | 295,043,313 | 0 | 0 | null | 2020-09-25T11:57:26 | 2020-09-12T23:28:49 | Python | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.1.1 on 2020-09-23 00:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0003_auto_20200923_0320'),
]
operations = [
migrations.AlterField(
model_name='company',
name='name',
... | [
"kotovskyandrew@yandex.ru"
] | kotovskyandrew@yandex.ru |
bc9c483d2db8d0a17d8feb2d6bf122ae4ee9d04a | 3e2addcbdbccf688abfe3c653cc9bc8a57255fbb | /subword/get_vocab.py | 7b71bf7f0609c1cf9f676db9398ec067465c9e32 | [
"MIT"
] | permissive | Germey/TextSummarization | 3ffb01401051642c579d7ce6b169a41fca4b48d2 | ffe221eea45838fbc2e12cd30e51fa48cf2ed070 | refs/heads/master | 2021-04-06T15:00:20.288387 | 2020-01-29T03:33:53 | 2020-01-29T03:33:53 | 124,391,071 | 1 | 1 | null | 2020-09-25T18:50:12 | 2018-03-08T12:52:25 | Python | UTF-8 | Python | false | false | 320 | py | #! /usr/bin/env python
from __future__ import print_function
import sys
from collections import Counter
c = Counter()
for line in sys.stdin:
for word in line.strip().split(' '):
if word:
c[word] += 1
for key,f in sorted(c.items(), key=lambda x: x[1], reverse=True):
print(key+" "+ str(f))
| [
"cqc@cuiqingcai.com"
] | cqc@cuiqingcai.com |
0ef12c2b609f701f3ea73e9531d55f525ab2d574 | 65a6b8d55fbc808de3fe4a8bb8cb9fb54841d065 | /classified/migrations/0004_auto_20191027_1129.py | 7bfe9c0330ac8f79db080beb9885d11b419934de | [
"MIT"
] | permissive | icnmtrx/classified | aed750f116f0b1878f1bc93277b4d579017610ac | 6fc9ab5fe6936aa5a6847481358c8fbba3caa88b | refs/heads/master | 2023-04-30T20:54:05.169345 | 2022-01-16T13:17:29 | 2022-01-16T13:17:29 | 240,111,570 | 0 | 0 | MIT | 2023-04-21T20:47:05 | 2020-02-12T20:45:48 | Python | UTF-8 | Python | false | false | 1,379 | py | # Generated by Django 2.2.5 on 2019-10-27 11:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classified', '0003_auto_20191026_2123'),
]
operations = [
migrations.AlterField(
model_name='classifiedad',
name='ac... | [
"icnmtrx@gmail.com"
] | icnmtrx@gmail.com |
75e25c09247507829e56bc9b21b111cf87fc5c63 | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_0050_Pow_x_n.py | e16603e02ca49194c4b65741a35009f0423d53c7 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def myPow(self, x, n):
"""
:type x: float
:type n: int
:rtype: float
"""
if n < 0:
return 1 / x * 1 / self.myPow(x, -(n + 1))
elif n == 0:
return 1.0
elif n == 1:
... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
0e79bf71b9be9ebae25ee4e6680c3cf0372d48ca | d14c8419786129124c4a81a9f2f6ba963ada0f0b | /labs/lab06/tests/q2_2.py | 7e4a48f5a8c3967370ea1a692b6397930a248f9b | [] | no_license | ucsb-ds/ds1-w21-content | 5ad4421ae106de2c2e3d9a9a22f3580cd26757b5 | 1ab3d43d3b66d7eb5774dab3ff23e0bc848241bd | refs/heads/main | 2023-03-13T19:11:14.271885 | 2021-03-08T17:48:22 | 2021-03-08T17:48:22 | 329,216,349 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | test = { 'name': 'q2_2',
'points': 1,
'suites': [ { 'cases': [ {'code': ">>> np.all(np.sort(retweets_likes_age.labels) == ('Likes sum', 'Meme Format Posted', 'Retweets sum', 'age'))\nTrue", 'hidden': False, 'locked': False},
{'code': '>>> np.all(np.sort(retweets_likes_... | [
"swsolis@ucsb.edu"
] | swsolis@ucsb.edu |
6e7013590a3194e571802864cfde0efbe0f508fa | 3693ed5f7439d010c1d087dadf9c3879b4bb7558 | /DNS/DNS.py | 61dc90ac9ee5d624b80041360310c6e6b18eb1d1 | [] | no_license | kk296/micro | 4367d884d313bbb0625ca91f28b666c453ff2e4b | 2e7f43b8aa19c93725b3567c3db7acf6f6567e77 | refs/heads/master | 2021-09-26T06:36:08.246689 | 2018-10-27T14:13:49 | 2018-10-27T14:13:49 | 109,430,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #/*
# Assignment No = 10
#
#Write a program for DNS lookup. Given an IP address input, it should return URL and vice-
#versa.
#********************************************************************/
import socket
print 'Welcome to DNS to IP Address'
URL=raw_input('Enter URL: ')
addr1 = socket.gethostbyname(URL)
prin... | [
"noreply@github.com"
] | kk296.noreply@github.com |
f5526ecba7d57516aec200d40fd864392e91210b | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/reportlab/lib/units.py | a7c5a26403519ebfbc9404e5677ea6143b7c68bb | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,660 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
b91548533873b0b01b3adebbf32524f9926cc02a | d84cdb299680929fce7008968f474c0232fd24ff | /src/metrics/ap_iou.py | 70c839e124b64d79dbba39cef91751d19ae5773d | [] | no_license | chevalierNoir/FS-Detection | 878e8289df6f2e467b9fe6f5fbd683480b7cd0cb | b386f04d90b88daf9f7bf598e5ca7075d8376421 | refs/heads/main | 2023-07-27T17:02:26.163138 | 2021-09-15T02:48:46 | 2021-09-15T02:48:46 | 353,844,429 | 22 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py | import os
import pickle
import numpy as np
def get_iou(y_pred, y_true):
# y_pred, y_true: [[start, end],...]
# return: ndarray of shape (n_pred, n_true)
y_pred, y_true = np.array(y_pred), np.array(y_true)
n_pred, n_true = y_pred.shape[0], y_true.shape[0]
y_pred = np.repeat(y_pred.reshape(n_pred, 1... | [
"bshi@slurm.ttic.edu"
] | bshi@slurm.ttic.edu |
088050dde073045050777fdec843ac327c8826bd | 2f92d4577202c1163a803452fd7b115bcc78de8f | /venv/Scripts/pip-script.py | 46d0783b77b49abd571b6c86cd79ce1c28a8c0b0 | [] | no_license | Pisoh/Resistor-color-code-calculator | 0e5ae39ea986db019caba8c1f74ed01a1e43819e | 5160362c934607960b64aa8da3c6a49fc399ce5a | refs/heads/master | 2020-05-02T01:18:22.401746 | 2019-03-26T00:28:12 | 2019-03-26T00:28:12 | 177,684,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!"C:\Users\Buma Pisoh\Desktop\Python Projects\Resistor simulator\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"ransom.pisoh@pethersolutions.com"
] | ransom.pisoh@pethersolutions.com |
4b42b8995f3a9bc2a2c280170a32498379389f20 | 21548a90c2743f9968f613ce7c9e44baecc80ba3 | /opts.py | 7487727c15ed1c75b5a7b7e077a737f7ad05f956 | [
"MIT"
] | permissive | zhangxuan6598/CT-Net | 51d1a229086b18d4eae4579c046497f658d73167 | f7ea023c90768d394f6eb02a51253e037f0d3f8a | refs/heads/main | 2023-05-14T12:18:09.257089 | 2021-06-05T01:27:13 | 2021-06-05T01:27:13 | 375,279,265 | 1 | 0 | MIT | 2021-06-09T08:17:46 | 2021-06-09T08:17:46 | null | UTF-8 | Python | false | false | 8,272 | py | # -*- coding: utf-8 -*-
# @Author: KunchangLi
# @Date: 2020-02-09 16:03:29
# @LastEditor: KunchangLi
# @LastEditTime: 2020-03-18 17:38:56
# @Oringin: https://github.com/mit-han-lab/temporal-shift-module/blob/master/opts.py
import argparse
parser = argparse.ArgumentParser(description='PyTorch implementation of Te... | [
"likunchang@likunchangdeMacBook-Pro.local"
] | likunchang@likunchangdeMacBook-Pro.local |
401679d7bfaad9e12343bd4f7fa0b38ab40a9185 | 553fc69473874d701ba9a67287454ce4195ea1f8 | /swaligner_weighted.py | bbe5c3f4fde201b9eeb186ad0026a1ebe3697b52 | [] | no_license | RenhaoL/q2hw5 | aa9b855dd282db482f8b3ecfd62a79a67da35eca | c29785f39ea32679b67b834f7042e16966c6cc26 | refs/heads/master | 2020-04-22T02:57:46.063140 | 2019-02-24T08:26:22 | 2019-02-24T08:26:22 | 170,069,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | #!/usr/bin/env python
import numpy as np
#penalty box
match = 3
mismatch_transit = -1.5
mismatch_transver = -3
gap = -2
#sequences. seq2 should always be larger than seq1
seq1 = 'TGTTACGG'
seq2 = 'GGTTGACTA'
#scoring matrix size
rows = len(seq1) + 1
cols = len(seq2) + 1
def create_score_matrix(rows, cols):... | [
"noreply@github.com"
] | RenhaoL.noreply@github.com |
a2a4766b5ccdfc7a636dc201fadf24bcca0f405a | 32f3d408571801a759117453551b80db6124dcd0 | /election_registrar/urls.py | 1f62ad8ac4f5192fd162f14fa1b23d7e1ebc614f | [
"MIT"
] | permissive | SCPR/kpcc_backroom_handshakes | 24aafad0c73c56aff1fe05848a012cba8a7a4b18 | 6bb7a45dc75f939fd9ef6264f14d3082e99ad6f8 | refs/heads/master | 2020-05-21T23:22:04.301088 | 2018-07-03T17:36:37 | 2018-07-03T17:36:37 | 57,341,375 | 0 | 1 | null | 2016-10-17T15:37:25 | 2016-04-28T23:55:56 | Python | UTF-8 | Python | false | false | 446 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.views.generic import RedirectView
from django.views.decorators.cache import cache_page
from election_registrar.views import ElectionIndexView, ElectionDetailView
app_name = "election_registrar"
urlpatterns = [
url(r"(... | [
"christopherlawrencekeller@gmail.com"
] | christopherlawrencekeller@gmail.com |
e0ad38a38b1bc6b8310f8f610da5eaf182634c0f | f34438fbd1e3c6e74a655cebd7f2694df84a1986 | /middle/broken_calculator.py | 0786e7a03b0542c1b9b95562f4d9198c3ff74c7d | [] | no_license | luozhiping/leetcode | 85eeeea167c65cc77ecfacd1f9544f01142f595a | bf900574ebec530f4af4494f81c84b31d36c9933 | refs/heads/master | 2020-03-31T21:36:53.357258 | 2019-09-03T13:14:48 | 2019-09-03T13:14:48 | 152,587,301 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 991. 坏了的计算器
# https://leetcode-cn.com/problems/broken-calculator/
class Solution(object):
def brokenCalc(self, X, Y):
"""
:type X: int
:type Y: int
:rtype: int
"""
if X >= Y:
return X - Y
count = 0
while X < Y:
if Y % 2 == 0:... | [
"lzp9802021@qq.com"
] | lzp9802021@qq.com |
e9ffe1ed74fdb3aa1130e04198c32f3bd81441b3 | 361d4fbe7563d33243dc52d1da60c31b5b098044 | /__init__.py | c91f80a7b41c261aaa9e8d9f9de0f11c8abf674b | [] | no_license | fgui/hy-tryton-hello_button | 1115b6f26a2e67e3f947e31ac17014f2ac27af37 | 665ad121b77498b25b486f53748307d51d751597 | refs/heads/master | 2022-04-07T01:21:30.211740 | 2020-01-29T13:29:46 | 2020-01-29T13:29:46 | 119,517,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import hy
from trytond.pool import Pool
from . import hello
def register():
Pool.register(
hello.Hello,
module='hello_button', type_='model')
| [
"francesc.guillen@gmail.com"
] | francesc.guillen@gmail.com |
64aee0076002b24b245235b85ae954ce82577ad7 | 3852cd63b4b26494715b03100d11d16f53aed7c2 | /Lab11 - GP/models/chromosome.py | 0c80280c4e35bed6ba919ef77c46bd9af4bd1295 | [] | no_license | CMihai998/Artificial-Intelligence | f7fe5bd6d7205e4a93f1848b53b4c7170736ba17 | 657983af388090dc24a6603f74b6aa29451393bb | refs/heads/master | 2022-09-23T20:59:58.057865 | 2020-05-31T17:58:16 | 2020-05-31T17:58:16 | 257,830,944 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,304 | py | import math
import random
UNARY_FUNCTIONS = ['sin', 'cos']
BINARY_FUNCTIONS = ['+', '-', '*']
class Chromosome:
def __init__(self, maxDepth, terminals, functions, constants):
self._constants = constants
self._maxDepth = maxDepth
self._terminals = terminals
self._functions = functio... | [
"mihai3198@gmail.com"
] | mihai3198@gmail.com |
5773aa56ca5ed8607d8fc9025b01c63b5333b19c | 199115509359d0849d9debb12db4eced6081dbed | /emotion_chatbot/speechtotext.py | 6394875fcb7f550ba787d59f0aea71ef9c1de8ee | [] | no_license | Sapphirine/202005-1-EmotionRecognitionsystem | 1ea1df3ddcd43bf5b25e76b534c75778a8d8b921 | ca4efb89ed762f16202476d39314051cf12a1b7e | refs/heads/master | 2022-08-29T20:00:21.097719 | 2020-05-16T05:05:11 | 2020-05-16T05:05:11 | 264,354,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import speech_recognition as sr
import pyaudio
import audioop
import os
import math
from os import system
import threading
def transcribe_audio():
with sr.Microphone() as source:
# read the audio data from the default microphone
r = sr.Recognizer()
#print("Chatbot : Hey! How can I help?")
... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
9836ce05d70663e0bb8deeacba460ad5decb951f | 2a8a6327fb9a7ce8696aa15b197d5170661fb94f | /test/test_payment_debit_memo_application_unapply_request_type.py | c404017728cdfd5eacfaba72202a427d5f79d3e4 | [] | no_license | moderndatainc/zuora-client | 8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad | d50da49ce1b8465c76723496c2561a3b8ebdf07d | refs/heads/master | 2021-09-21T19:17:34.752404 | 2018-08-29T23:24:07 | 2018-08-29T23:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,940 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"jairo.velasco@alertlogic.com"
] | jairo.velasco@alertlogic.com |
e90d3914edcfc23c1e31112856f99c98b766538b | a450d455fc1da6f3a89eebb562cc2fb28784b129 | /docs/conf.py | 36714ac69f1de680f841bad04edc215e5a835504 | [
"MIT"
] | permissive | hawkthorne/bearweb | 6c62e0143ab6a19bee6cf340dfec81664f201dcb | 1533acd9c7610d9ea01e8413853cca70843b9d63 | refs/heads/master | 2021-05-28T05:54:55.533462 | 2014-03-16T23:12:01 | 2014-03-16T23:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | # -*- coding: utf-8 -*-
#
# stackmachine documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
e51c235bef72e91b430961c9821e809ec7baf125 | ff62461833c01a194b9de2c8954f378dc0159a01 | /f8a_jobs/handlers/kronos_data_update.py | 675680db721837cf908d3012a8a5c5752f6c5fff | [
"Apache-2.0"
] | permissive | humaton/fabric8-analytics-jobs | 617a9f7107dac15033f8735609cf36c749c46e73 | 0cfe578dd4398633ebf906ccae5c187903080ad9 | refs/heads/master | 2020-04-07T10:13:29.081369 | 2018-09-04T11:56:19 | 2018-09-04T11:56:19 | 124,203,177 | 0 | 0 | null | 2018-03-07T08:21:11 | 2018-03-07T08:21:11 | null | UTF-8 | Python | false | false | 5,918 | py | """Class to append new data for Kronos training."""
from selinon import StoragePool
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy import text
from .base import BaseHandler
import os
class KronosDataUpdater(BaseHandler):
"""Class to append new data for Kronos training."""
def __init__(self, *arg... | [
"sarahmasud02@gamil.com"
] | sarahmasud02@gamil.com |
e58311dfe24a099db95e483e368905d36e9691a7 | f9c6854c81a57d618ba89bcf711f8365979077b3 | /process_exist.py | 7dcf549dadc2df3842dd6387793ba11e829143e5 | [] | no_license | hzlpy/python-tools | 553c4988a902e15b7dfec52572c1df3b01338315 | 3d8df5ec3e31762bb8aa3e021807c346b12ab88c | refs/heads/master | 2021-01-12T15:59:09.052578 | 2016-10-08T07:22:00 | 2016-10-08T07:22:00 | 69,327,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import logging
import datetime
def process_exist(process_name):
process_lock = '/root/phxsql/tools/' + process_name + '.lock'
# print(process_lock)
os.system('ps -ef | grep %s | grep -v grep >%s' % (process_name, process_lock))
if not(os.path.get... | [
"ihzlpy@gmail.com"
] | ihzlpy@gmail.com |
2453221d2ad4147565a2497f2769eb79e596f5dc | 664759f4badcde8b04486f0f92dd4c15e5fe44a6 | /hienoi/_numeric.py | f28f3724fc0d9685ba763f72bae0ea00cb6c1a52 | [
"MIT"
] | permissive | christophercrouzet/hienoi | 25dec6542cd698d020b5806155ea4f6531ad326e | 61353dd8f1f1d01d7aa2e704f659275eeecf0962 | refs/heads/master | 2022-06-06T02:10:08.078690 | 2022-05-15T04:17:42 | 2022-05-15T06:15:57 | 90,687,800 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """Glue for numeric data types from different modules."""
__all__ = ['Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32', 'Float32',
'Float64']
import ctypes
import numpy
import OpenGL.GL as gl
class Int8(object):
"""8-bit int type."""
pass
class UInt8(object):
"""8-bit unsigned int typ... | [
"christopher.crouzet@gmail.com"
] | christopher.crouzet@gmail.com |
86b6a4892d3cbd3b63f1d2b27abcadd6be24b41c | 29b8e6b185aff076a40ed58511b3f721f599e2a6 | /blog/urls.py | ebf0e99bbcd767d2a8e9676ffb44cef11fff83e8 | [] | no_license | Orfejs/my_site | 3346b25553b05beed83a3008262215994abf83ae | 5db891c919c18bf91cbd3933de8b5655e3fae367 | refs/heads/master | 2023-07-24T05:30:19.380781 | 2021-09-08T11:14:23 | 2021-09-08T11:14:23 | 381,720,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
)
from . import views
urlpatterns = [
path('post/<int:pk>/', PostDetailView.as_view(), name='post-detail'),
path('', PostListView.as_view(), name='blog-home'),
path('about/', views.about, name='blog-about'),
path('c... | [
"dgraudins@gmail.com"
] | dgraudins@gmail.com |
70d12cbd3ba997f9b1688947cbef75fb185cdfb9 | ec400bd7271cef2a035819a8105225dda8172f00 | /pyDEER/awg.py | 1615751f876f90422f9163aef22586a551b3b264 | [
"MIT"
] | permissive | tkeller12/pyDEER | d6d5b03af720ae3b28e500777c1d362a0d44623a | f1d976f6adccdd6604df0bf71bb76446cf4b595f | refs/heads/master | 2022-12-22T02:27:29.521143 | 2020-05-27T19:06:48 | 2020-05-27T19:06:48 | 264,690,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py | import numpy as np
default_number = 43 # default number for saving pulse shape
resolution = 1.e-9 # default pulse shape resolution
# define sech function
np.sech = lambda x: 1./np.cosh(x)
def save_shape(pulse_shape, filename):
'''Save a numpy array as csv format compatible with Xepr
Args:
pulse_shap... | [
"tkeller@bridge12.com"
] | tkeller@bridge12.com |
af980df5115d1fb70ebaffb112bd5470dd768cf0 | f3efef564ee8f7ed27efd5d869de1f548383854b | /mugalyser/logger.py | c7ac15dc4d9363b4fd8e46a1fb425a47660c1d7d | [] | no_license | jdrumgoole/MUGAlyser | f3235f47ecb2cf095f74450537329f1c0275c469 | 6781702854e918152433a199a1ec0580e3e421a3 | refs/heads/master | 2023-02-20T10:12:41.036923 | 2022-12-12T13:49:55 | 2022-12-12T13:49:55 | 67,624,157 | 5 | 3 | null | 2023-02-08T04:51:57 | 2016-09-07T16:21:58 | Python | UTF-8 | Python | false | false | 1,921 | py | '''
Created on 28 Jun 2017
@author: jdrumgoole
'''
import logging
class Logger(object):
'''
Logging class that encapsulates logging interface
'''
format_string = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
def __init__(self, logger_name, log_level = None):
self._lo... | [
"joe.drumgoole@mongodb.com"
] | joe.drumgoole@mongodb.com |
ae673bc0f0d75e24821b6446a18f969219f15a5b | fed53a83f014dedd79258ea16c2ec0ffffb522a6 | /src/restfw/tests/test_serializers.py | ba78e4f933f8bf0b2f6bd27fbae8b915e29529d9 | [
"MIT"
] | permissive | Cykooz/restfw | a995813c9d4bbd20aa3079ab8192c3d2ba2410d0 | 91951f5e095eaac4ec66ae1d7fe95cc5f6e773d5 | refs/heads/master | 2023-01-23T11:30:11.769448 | 2023-01-10T07:32:15 | 2023-01-10T07:32:15 | 114,084,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | """
:Authors: cykooz
:Date: 11.01.2021
"""
import json
from pyramid.renderers import render
from .. import views
from ..hal import HalResource, SimpleContainer
from ..resources import Resource
from ..typing import Json
from ..utils import open_pyramid_request
class DummyResource(Resource):
def __init__(self, t... | [
"cykooz@gmail.com"
] | cykooz@gmail.com |
28d1b28fa7088409961982ec00e2f4d0d2de8ae5 | 1d67c0eb690e95a9e373771cef84b6f244e5b413 | /Python/Hash Table/hash_table.py | 4bc34bfe4aa9134adab7425202b341240200262a | [] | no_license | dipty13/Data-Structure | 5f9164c950b4cc1c0498b225a6f7d601b38328f2 | 06d281550fcbe2036c80f73f467e2f7f49a73499 | refs/heads/master | 2020-03-27T13:30:48.312572 | 2018-10-28T13:34:38 | 2018-10-28T13:34:38 | 146,613,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | class HashTable:
HASH_MAX = 10
class linkedList:
data = None
next = None
hashTable = [1000]
def Hashtable():
i = 0
while i <= HASH_MAX:
HashTable.hashTable[i] = linkedList()
HashTable.hashTable[i].linkedList.data = "empty"
HashTable.h... | [
"13dipty@gmail.com"
] | 13dipty@gmail.com |
94107fdab373a1c2512302c118cf750de48d9b44 | 20fedfd55a0cddff39769278544aea7a0d235c08 | /qutebrowser/themes/base16-qutebrowser/themes/base16-atelier-seaside-light.config.py | dd86580574bdb64fc48260cc30ee5902d8788b7a | [
"CC0-1.0",
"MIT"
] | permissive | ebzzry/dotfiles | 1d2942c6ea0fe847f8fb6c5aacb229b392444c82 | 9ba2d1a3b5aff2f2c65d2c0dd17257e8f9e1f51a | refs/heads/main | 2023-06-09T07:20:35.676866 | 2023-05-26T03:45:26 | 2023-05-26T03:45:26 | 64,131,018 | 30 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,378 | py | # base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Atelier Seaside Light scheme by Bram de Haan (http://atelierbramdehaan.nl)
base00 = "#f4fbf4"
base01 = "#cfe8cf"
base02 = "#8ca68c"
base03 = "#809980"
base04 = "#687d68"
base05 = "#5e6e5e"
base06 = "#242924"
b... | [
"rommel.martinez@valmiz.com"
] | rommel.martinez@valmiz.com |
0483a8f057820a49591be0dd8bb0ccb6c937670e | eda3d6974a60a42a1ee35cd2327218029490a654 | /user_service/server.py | 8d0fb30a24bdf62118d1df665ab0bb96327cd78d | [] | no_license | 1260228859/EvanKao-ms | 4a4159123bfd3f3b960c9b81ca920f599fffc6cc | ae0e9dbf2803c6bd67ea8b0be012b64c57db7bbc | refs/heads/master | 2020-09-26T19:39:48.587556 | 2020-07-08T03:00:01 | 2020-07-08T03:00:01 | 226,328,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from sanic import response
import logging
from views import user_bp
from sanicms.server import app
from sanicms.client import Client
logger = logging.getLogger('sanic')
# add blueprint
app.blueprint(user_bp)
@app.listener('before_server_start')
async def before_srver_start(app, loop):
# TODO: 改为配置文件读取相关依赖应用服务... | [
"jiantao.gao@cityio.cn"
] | jiantao.gao@cityio.cn |
dfdafec9f08b465c99582efafef3c5f0429c748a | 70c10c5eeeb038d87841289f109775a9ec5ddc9b | /Day8/thread_lock.py | ab3ea522b2969168d19431f244cdd1e35f9d5c6c | [] | no_license | chenshuo666/pythonWell | a68fdae5fab891dd235c7656892ac85eaf9163c5 | ae4cd795c5cf925830b5f7df8c7668bec5b2904c | refs/heads/master | 2022-12-09T21:35:00.343591 | 2018-09-10T06:04:45 | 2018-09-10T06:04:45 | 130,060,002 | 1 | 0 | null | 2022-12-08T00:44:33 | 2018-04-18T12:38:02 | JavaScript | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
# Author:Sebastian Williams
import time
import threading
lock=threading.RLock()
num=0
def run(n):
lock.acquire()
global num
num+=1
lock.release()
t_obj=[]
for i in range(50):
t=threading.Thread(target=run,args=("t-%s"%i,))
t.setDaemon(True) #将当前线程设置成守... | [
"929387146@qq.com"
] | 929387146@qq.com |
70f10f1add937c50d07e5e8235e15a6fb0fa56cf | d771ec4626a32f6122b155d24eba1320db230fbd | /web_frameworks/django/mysite/serializer_relations/apps.py | 7ec3af488ec96ebd4370ff3a54dd351853e5a9c1 | [] | no_license | axu4github/Templates | 9351983f8f7f65b9b2ca354909ce0d2198d23120 | 37e7a7182f14c98eb5cbc1202af3fd74df2bc297 | refs/heads/master | 2022-12-11T12:26:19.213955 | 2019-03-03T04:10:08 | 2019-03-03T04:10:08 | 154,787,446 | 0 | 0 | null | 2022-12-08T01:17:45 | 2018-10-26T06:27:54 | Python | UTF-8 | Python | false | false | 114 | py | from django.apps import AppConfig
class SerializerRelationsConfig(AppConfig):
name = 'serializer_relations'
| [
"axu.home@gmail.com"
] | axu.home@gmail.com |
5d6f38caa5b16025ec6d23af623aba064ec125dd | d49168286bb11e167f5c1862be8d3cb2f278af57 | /resize_images.py | 4a2a3f72949fae59936234c621dffeb50a9a53f3 | [] | no_license | Pepslee/image_processing | 38d572f4b51dc4200a04a8ba9895ae0574fce540 | a717f57dd04695ae52b11108bea49408900d9c9d | refs/heads/master | 2020-06-21T23:26:55.457199 | 2019-08-21T07:32:51 | 2019-08-21T07:32:51 | 197,578,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | import os
import glob
import cv2
from tqdm import tqdm
load_path = '/mnt/75b9aae6-291e-4314-90c2-b27cf3e3f5cd/Kaggle/aptos2019-blindness-detection/train_croped_images'
save_path = '/mnt/75b9aae6-291e-4314-90c2-b27cf3e3f5cd/Kaggle/aptos2019-blindness-detection/train_croped_images_1024'
globs = glob.glob(os.path.join(l... | [
"sergey.panchenko@eos.com"
] | sergey.panchenko@eos.com |
eea5ae8094220d0fd649bc62d8fd6927965db4d0 | 3243103e1b0cae118f1aec991f1b555923d8568b | /Python-Script/streamer.py | 70d0109c181f37e7e82b8491455685234ea433d4 | [] | no_license | huyouare/Duke-Study-Group | 12bba5c092486b05e2fa7c9251f338e6d8f4f933 | 155976b0b4cc28c6b8bb66a6d18cfbbaa85fe12d | refs/heads/master | 2021-01-10T10:10:00.951420 | 2016-01-17T01:30:47 | 2016-01-17T01:30:47 | 30,263,414 | 3 | 1 | null | 2015-04-28T03:56:49 | 2015-02-03T20:38:26 | Swift | UTF-8 | Python | false | false | 1,539 | py | import json
import requests
subjects_output = [] # Array for output json
streamer_url = "https://streamer.oit.duke.edu/curriculum/courses/subject/"
streamer_url_suffix = "?access_token=6448bb1e9d6f2380428de491aaa83cf0"
with open("subjects.json") as json_file:
json_data = json.load(json_file)
values = json_data["... | [
"huyouare@gmail.com"
] | huyouare@gmail.com |
e8f740e26272bafd38b053bb5e8e1737f5b16837 | d62863d049c0206bfa744ca4c9e886030bfce1ab | /apps/sw_shop/sw_order/views.py | 2eb7cbc57083cb103a5b7c6b5f867553d8a37e5f | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 937 | py | from django.shortcuts import render, redirect
from .models import Payment, Order
from box.core.sw_currency.models import Currency
from django.http import JsonResponse
def liqpay_callback(request):
try:
from box.apps.sw_payment.liqpay.utils import create_liqpay_transaction
except:
# except RuntimeError:
... | [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
4609643ace645f4f97139036b9c90ce0a8d8ba63 | a073e730e32b75f5d4e02f6bcf8defcaa9c5da97 | /backend/fashion_candy_18064/settings.py | bba67dbee4f4084134baf664a6af612e2792240d | [] | no_license | crowdbotics-apps/fashion-candy-18064 | a962d38c9cbc27a90428dda3f962edbb32b5e427 | 87b8ef7ce8c9e29c8b543cfc5b0a0af8191f52a8 | refs/heads/master | 2022-10-21T06:00:25.083275 | 2020-06-13T01:15:59 | 2020-06-13T01:15:59 | 271,917,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,884 | py | """
Django settings for fashion_candy_18064 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e282034106999e9400a94256c8c3e07ede1f95d3 | 9b7ee6517636ce5d0118d4edadfdd7b8afe52e6a | /Player_Class_2.py | e4cd4a08ec1b7a4fe18b6bc50c4fd87b770b8446 | [] | no_license | tommeredith14/Math-Eng-Hacks | 8626bbab031485380fa92d9e9a1dc12ecd70dc5e | 76fb8788e7eb3b8382075c8a9670a05fc3933df6 | refs/heads/master | 2020-06-11T21:24:39.791866 | 2016-03-13T05:23:16 | 2016-03-13T05:23:16 | 53,174,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | #!/usr/bin/python
import serial
import time
ser = serial.Serial('/dev/ttyACM1', 9600)
Input = [0, 0, 0, 0, 0, 0]
print('Horizontal Vertical Shooting Steering Other Pause')
def Update(Input): #UPDATES DATA READINGS
ser.write(b'`') #tells arduino it wants some readings
val1 = ser.readline().strip() ... | [
"willdavidc@gmail.com"
] | willdavidc@gmail.com |
7b285f649b01ce696d22c4fbd5cb8dae8b8d1286 | e63a36870512edb7fd947b809631cf153b028997 | /doc/source/conf.py | eed13ab7549cb2d023a203b106150682f25abb0b | [
"Apache-2.0"
] | permissive | titilambert/surveil | 632c7e65d10e03c675d78f278822015346f5c47a | 8feeb64e40ca2bd95ebd60506074192ecdf627b6 | refs/heads/master | 2020-05-25T13:36:59.708227 | 2015-06-29T14:07:07 | 2015-06-29T14:07:07 | 38,249,530 | 1 | 0 | null | 2015-06-29T13:38:04 | 2015-06-29T13:38:03 | null | UTF-8 | Python | false | false | 2,531 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | [
"alexandre.viau@savoirfairelinux.com"
] | alexandre.viau@savoirfairelinux.com |
f3a5d780b21c4f4176e4ec807d686482a6a22ea8 | 80a7eb9eb2b9c86e5c278464d9ee3c875a11a1bf | /src/scene_analyzer/msg/_stamped_string.py | 03d058a94c7c532109397b5226eaf55299a4785e | [] | no_license | stefanschilling/scene_analyzer | c348fd93127323a421e527549a5a323a87a69e84 | 5df78d82bafbd031e09b51cdf2d11d1a6d88e2a6 | refs/heads/master | 2020-05-30T11:53:37.057281 | 2016-06-05T19:16:21 | 2016-06-05T19:16:21 | 60,476,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,186 | py | """autogenerated by genpy from scene_analyzer/stamped_string.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class stamped_string(genpy.Message):
_md5sum = "c99a9440709e4d4a9716d55b8270d5e7"
_type = "scene_analyzer/stamped_str... | [
"stefan@stefan-laptop.(none)"
] | stefan@stefan-laptop.(none) |
66622e95d80095bcfb4410474b5a119066cb4c95 | 077407bd60cbf14b1f6de50759d8b02417cea007 | /OnlyBuy/users/models.py | 955f878145f7b6dc10c385147ea9a00cb8a4d866 | [] | no_license | zsx2541577860/chat | b7623f126055401d369f79f521daf6bcf3952063 | f7e08d07a39467c252451e4f032e374597178410 | refs/heads/master | 2020-05-16T18:26:03.334237 | 2019-07-15T12:00:23 | 2019-07-15T12:00:23 | 183,223,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your views here.
#自定义用户类型
#创建时显示的是后面的字符串,传递值时使用的是前面的数字
USERTYPE = (
(0,'管理员'),
(1,'卖家'),
(2,'买家')
)
GENDER = (
('1','男'),
('0','女')
)
class User(AbstractUser):
nickname = models.CharField('昵称',max_length=3... | [
"2541577860@qq.com"
] | 2541577860@qq.com |
d9227d4c777e0654770a44acf9b7b89e63a3f247 | 14165029c01863b3f1568d42111e449fd805e8eb | /broken_1_4.py | 3e2972b465d9e25ce184d4f4b547867622c764db | [] | no_license | afrokoder/csv-merge | de9e1cd23acc55017e7417f241cdb2d37b8a44cd | 79b7ff6215b41cbc5ebb98b1fdadbadc537dda09 | refs/heads/master | 2020-06-15T23:28:47.986300 | 2019-07-05T14:18:28 | 2019-07-05T14:18:28 | 195,420,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #Number half pyramid
#Makes a half pyramid of numbers up to 9
#1
#22
#333
#4444
#55555
outer_loop = 0
while outer_loop <= 10:
inner_loop = 1
#print ("Outer Loop is:", outer_loop)
while inner_loop < outer_loop + 4:
#print ("Inner Loop is:", inner_loop)
print (outer_loop, end="")
in... | [
"knuchegbu@spscommerce.com"
] | knuchegbu@spscommerce.com |
7f8e01f26bc15e7cc7ecc55472938779bf17bdf0 | a846e30ca890d1958e1daf37af8ac2935639f724 | /blog/migrations/0001_initial.py | 5d8e08bc34778c2d6e9b34bc61035b5d345cae65 | [] | no_license | computacity/my-first-Django-blog | f46fe778e25b66ea02ec686a332aa277570ef43d | d951a6f934193f4dd27b8b4a448e3eefcb69ff29 | refs/heads/master | 2020-04-16T10:19:15.217356 | 2019-01-14T07:09:43 | 2019-01-14T07:09:43 | 165,500,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.5 on 2019-01-13 10:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"valamasiatu@gmail.com"
] | valamasiatu@gmail.com |
77a92c64c538638d8ebdaca85dbdefca126a1333 | 40b38b4ed3c6c85bcd58cc206db1efdce67bb66e | /snakeoil2015/untitled/fitnessplot.py | 93b151548cd36b57e4944d72e64991250aeb23c5 | [] | no_license | alexshade15/ComputazioneNaturale | 968244c5494af53472f6b45db5f6241a682dcf0d | 127b93911091304c8d58e66d7d99b0d5b036cb30 | refs/heads/master | 2022-01-21T08:03:29.909094 | 2019-07-19T06:31:23 | 2019-07-19T06:31:23 | 188,016,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | import matplotlib.pyplot as plt
import logs as log
import numpy as np
#DA evaluation_0_1 a evaluation_0_3015
id = 1
list1 = []
fit = []
i = 0
for j in range(1,3016):
app = 'evaluation_'+i.__str__()+'_'+j.__str__()
list1.append(getattr(log, app))
for elem in list1:
fit.append(elem['fitness'])
mean = [... | [
"32539407+alexshade15@users.noreply.github.com"
] | 32539407+alexshade15@users.noreply.github.com |
9a55432ef8540a48bacea70b50892d1ab7974747 | 8e2c00e57e8a97d0051dfa1f3ba7c42109288702 | /exercise05/lettercount.py | 8ace748d6d7bc037815e32268652f5c3482339a3 | [] | no_license | camilleanne/hackbright_archive | 75dedb01ea9e4ff60f5d52b999b7ca7080e23ac4 | c67bb4aac8be21c5d7e64b8f7cfd910d198810bb | refs/heads/master | 2021-01-20T04:55:16.781229 | 2017-08-25T10:42:14 | 2017-08-25T10:42:14 | 101,394,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from sys import argv
script, filename = argv
text = open(filename)
def main():
firstletter = text.read()
lower_case = firstletter.lower()
alphabet_count = [0 for i in range(0,26)]
for char in lower_case:
if ord(char) <= 122 and ord(char) >= 97:
alphabet_count[ord(char)-97] += 1
for item in alph... | [
"cteicheira@gmail.com"
] | cteicheira@gmail.com |
caeb2ddd5c391da1f8353bb97a4ac5a0196418b6 | 6f33ad84b82fbc730e1ebfa38ea6acfeb1434706 | /utils/confusion_matrix.py | 77424e4a0df2c90055648fd258bb239b78ea74e1 | [] | no_license | jedrzejkozal/ecg_oversampling | 7dfe22a11ad934dcd2085f13103702e69c8faf1d | 9c59f73c75f4ac60c1ddbc15c7c945e6e70c1c3b | refs/heads/master | 2020-06-21T23:09:51.754020 | 2019-08-06T11:00:38 | 2019-08-06T11:00:38 | 197,574,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import itertools
import matplotlib.pyplot as plt
import numpy as np
def plot_confusion_matrix(cm, classes,
normalize=False,
title='Confusion matrix',
cmap=plt.cm.Blues):
"""
This function prints and plots the confusion matrix.
N... | [
"jedrzej.kozal@gmail.com"
] | jedrzej.kozal@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.