blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32009badbdfb404ea55023ac3d32b6f35ec4ee87 | d21aa010146fc3e0d7964629bd807ed0f8212d50 | /resNetStandard.py | 4007986dee8390ddafa95de65192baca0d491cd9 | [
"MIT"
] | permissive | divija-palleti/Regress_CNN | edff35e75592c38bc49c943fe02e5d69ac1de726 | 494d129779f211151e6ed41cfba6ca6dcb126523 | refs/heads/master | 2020-07-04T20:38:04.250121 | 2019-08-14T19:02:26 | 2019-08-14T19:02:26 | 202,409,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | '''Import modules'''
import time
import sys
import numpy as np
import math
from keras.optimizers import SGD
from keras.callbacks import ModelCheckpoint, EarlyStopping,Callback,CSVLogger
from keras.models import Sequential
from keras.layers.normalization import BatchNormalization
from keras.layers import Dense, Dropout
... | [
"IHM2016005@iiita.ac.in"
] | IHM2016005@iiita.ac.in |
dd508edc44927b93372eb0735ac2b8bb79f14f64 | 021d6253e0354f6e1e85119dc92b4322bc5c2cff | /app/app/settings.py | 0cbec82217ab53ff21644256c560e85f9ddc9c6f | [
"MIT"
] | permissive | PenguinLW/django-booklist | f42bcb4c3cecad2612903d72d88c01853df58034 | 7d555a9e076278691a61cf5d0b0e7a6a2ce5b389 | refs/heads/master | 2023-08-24T04:21:45.346408 | 2021-10-25T15:57:30 | 2021-10-25T15:57:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
import... | [
"michaelnv@mail.ru"
] | michaelnv@mail.ru |
066d05c98a8432d35da6c39c47fc74f354b21b27 | 1bdfb067e53e874990dc62953b87ebdcd2332286 | /.venv/bin/symilar | 9d8278b8df0aaba23441f6fb08753c017d117f9f | [] | no_license | muradgarayev/emlak | 95fe6eb55c4d307822ff49a9dae6614225a57bfc | c7f2fb0f4162cff515285808916b4ae61bd847b0 | refs/heads/master | 2023-05-02T18:27:43.426185 | 2019-12-15T20:30:53 | 2019-12-15T20:30:53 | 207,303,009 | 0 | 0 | null | 2023-04-21T20:42:32 | 2019-09-09T12:24:34 | Python | UTF-8 | Python | false | false | 268 | #!/home/it-pc-003/PycharmProjects/btr_project/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"it-pc-003@it-pc-003.egov.local"
] | it-pc-003@it-pc-003.egov.local | |
7fff60cccdbfed5de914c812bb9d37476fabd96d | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/gui/TraceDialog.py | 93dfa69fbf3f7c968e04ca274567b4895b3f5e8f | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
2d79a38711babbfdf57ecb8132cb2b510b8a1f4b | ce3816c1b6094938757a535ab32c79cf6f0b7ea4 | /renet_layer.py | e516c928207a07508a80292f5a0b9b0776098ab6 | [] | no_license | Brian-Moser/defusernn_models | bc54c7f33953d4cb6a3fe0a049a9d4f3f147500e | 700cb1a4c62f6720a5480e6b4a8a180301e6699f | refs/heads/master | 2023-04-07T06:34:43.214276 | 2020-08-17T08:01:34 | 2020-08-17T08:01:34 | 196,579,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,586 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Created by Brian B. Moser.
# Contact: Brian.Moser@DFKI.de
import torch
import torch.nn as nn
class ReNetLayer(nn.Module):
"""
A single ReNet layer: It produces patches and applies two bidi-RNNs
on the vertical and horizontal axis to get the context of the wh... | [
"brian.moser@dfki.de"
] | brian.moser@dfki.de |
e2528880f57559a4822421a657f9c68e8ad11035 | 6e4ac1a8bb85b7b39c173adfc14d1d4d70a79e03 | /donate/migrations/0002_auto_20210430_1930.py | d47ff903de3e7b8a83166d064a966efc252b2d88 | [
"MIT"
] | permissive | salva-imm/backend | 4f860da4efd374daa06349dde96e53820f497596 | 4201eccac5c040caac8330911ed0530385dd1b69 | refs/heads/master | 2023-04-11T16:09:08.182517 | 2021-05-05T12:24:59 | 2021-05-05T12:24:59 | 364,716,745 | 1 | 0 | MIT | 2021-05-05T22:04:11 | 2021-05-05T22:04:10 | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 2.1.5 on 2021-04-30 19:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donate', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='donate',
name='is_active',
... | [
"ymazdy@gmail.com"
] | ymazdy@gmail.com |
ddcb78be7a534d96575e83381e99bcf1d76d713c | a2706c66c4f2769c00fc5f67e1a85742cfa7e17c | /MODULES/Execution_UserExecution_NtCreateSection.py | f244911cfec971ee6844a6865d5e9bd77056d65a | [
"BSD-3-Clause"
] | permissive | Jeromeyoung/viperpython | 48800312dcbdde17462d28d45865fbe71febfb11 | ba794ee74079285be32191e898daa3e56305c8be | refs/heads/main | 2023-09-01T18:59:23.464817 | 2021-09-26T04:05:36 | 2021-09-26T04:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | # -*- coding: utf-8 -*-
# @File : SimpleRewMsfModule.py
# @Date : 2019/1/11
# @Desc :
import time
from Lib.ModuleAPI import *
class PostModule(PostPythonModule):
NAME_ZH = "NtCreateSection进程注入"
DESC_ZH = "使用NtCreateSection及NtMapViewOfSection远程线程注入技术打开共享内存,将shellcode注入到其他进程中"
NAME_EN = "NtCreateSecti... | [
"yu5890681@gmail.com"
] | yu5890681@gmail.com |
c8a0d4a430c8c6fcb5f0cb3ab7cd0b469d9d02ea | 324cbe0cb2da5bc02befd02b1908c86b922304b2 | /Marooned Final Version/Consumable_Class.py | 71c1e98b3e27f516076d494ab3674e548473cd18 | [] | no_license | SkylerHektner/Marooned | 009c2cfb619607c917e249ec33bb3b258a019bf0 | 43d4c315569d1207c2bb045feb5f11a08dc0cf56 | refs/heads/master | 2021-05-10T14:36:23.613724 | 2018-01-22T22:12:45 | 2018-01-22T22:12:45 | 118,522,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | # Consumable_Class.py
# Spring 2016
# Team Windstorm
import pygame
from pygame.locals import Rect
class consumable(object):
def __init__(self, position, tileSize):
self.POS = position
self.SIZE = int(tileSize * .4)
self.IMAGE = pygame.transform.scale(self.IMAGE, (self.SIZE, s... | [
"skylerhektner@gmail.com"
] | skylerhektner@gmail.com |
d9b0c64d58fce1e1e950e0415a9a90d31eb5f4ce | 9e900c0faf3d62ef4bc9e0539ef4d1b7b4d1c881 | /tvqa_fusion_dataset.py | 08e13e5bb92ab46248bd41bd00bb7d9f820d6d74 | [
"MIT"
] | permissive | mansigoel/TVQA | 0c04778f638f761cce77b45b1162860921aa756f | 38d002b398586faffb3b2e6408a0c4d4da114f73 | refs/heads/master | 2020-09-30T08:16:02.919227 | 2019-12-16T22:53:34 | 2019-12-16T22:53:34 | 227,248,500 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,343 | py | __author__ = "Jie Lei"
import h5py
import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader
from torch.utils.data.dataset import Dataset
from tqdm import tqdm
from utils import load_pickle, save_pickle, load_json, files_exist
class TVQADataset(Dataset):
def __init__(self, opt,... | [
"mansi@terpmail.umd.edu"
] | mansi@terpmail.umd.edu |
e25051004892005404bf06ce0105b9547ee2a911 | cf166bdcccf042ef66e58b12eb3929ac2acf6fe3 | /tkinter/ortalama-V3-0.0,0.7.py | 783808c2fb375b70ba0947bd8aa49c5a12d6471c | [] | no_license | sayz/python.em | 945e090a3c137d86d0f35cbad1cbf414e9b609ef | 57a7e585817218f8573e8c030fd9a2511aaed3d6 | refs/heads/master | 2021-01-10T21:07:26.451984 | 2010-11-17T15:37:39 | 2010-11-17T15:37:39 | 1,121,639 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division
from Tkinter import *
pencere = Tk()
pencere.title("ortalama")
pencere.geometry("162x400+500+100")
pencere.resizable(width=FALSE,height=FALSE)
#hakkinda
def hakkinda():
hakkinda= Tk()
hakkinda.title("Hakkında")
hakkinda... | [
"emineker@bil.omu.edu.tr"
] | emineker@bil.omu.edu.tr |
bcb8f2e6a16ee0f43144fb300ba0c9d0f094bfa5 | 288d5eb402accdbc7655057d35211bd67aa2bd26 | /odd factors of the number.py | b0abc18ec8db5e05eef47889ced56f32c613ce8f | [] | no_license | Pradhapmaja/Pradhap | cee91f12470ee85f23375cb5430a883633c5c2d0 | 25de5c8fe978e34b739bafe2774127eafa8d35f3 | refs/heads/master | 2020-07-18T10:58:27.878199 | 2020-06-24T07:31:52 | 2020-06-24T07:31:52 | 206,233,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | n=int(input())
for i in range(1,n+1):
if n%i==0:
if i%2!=0:
print(i,end=" ")
| [
"noreply@github.com"
] | noreply@github.com |
56bf17a384dc4c3054492ca0780fb252a1345893 | 96337abd9466b340394c121cc64c273b636b4762 | /tests/pysdl2_tiles1_test.py | 2a6005f3198429fbc3f4708c4a89a6c7fc863a45 | [] | no_license | LukeMS/dnf_game | d2eb0ff5b678b5d33212fedfe5bd861e8f767672 | f4365289b8ae9f5c8b7129be143480457b530a88 | refs/heads/master | 2021-01-11T09:36:18.621419 | 2016-12-28T20:16:00 | 2016-12-28T20:16:00 | 77,629,209 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | """Test Scene for manager using pysdl2."""
import random
import unittest
import sdl2
from dnf_game.scene_manager import Manager
from dnf_game.scene_manager.scenes import base_scenes
class PySDL2TilesText(unittest.TestCase):
"""..."""
def setUp(self):
"""..."""
print("\n", "#" * 30, "\n%s" ... | [
"lucas.morais.siqueira@gmail.com"
] | lucas.morais.siqueira@gmail.com |
7501b779f84cfeca6a1f943622d0a5183bb4847a | 118839e85d108d713c807fc57cda5908f3eb114d | /tjmooc/session/serializers.py | eef699463c312e60d568b26f95f33e08d9ff6f36 | [] | no_license | dcalsky/tjmooc | 3a5efd5c2d7d5ce4eb6f09271ddaa367a4bb12eb | 49ee2b0db2e900f733e732ad9b6acec9922ea3e7 | refs/heads/develop | 2022-12-15T07:43:04.508335 | 2018-05-23T00:57:09 | 2018-05-23T00:57:09 | 116,491,664 | 0 | 0 | null | 2022-12-08T00:41:58 | 2018-01-06T15:00:22 | CSS | UTF-8 | Python | false | false | 415 | py | from rest_framework import serializers
from django.contrib.auth import get_user_model
from django.contrib.auth import authenticate
from django.utils.translation import ugettext_lazy as _
User = get_user_model()
class SessionSerializer(serializers.Serializer):
class Meta:
model = User
fields = ('i... | [
"dcalsky@163.com"
] | dcalsky@163.com |
c511bc450cff8402d29f48ca7cd7ccba7ad39e39 | 0a6923222175b160ddb5d2341c755dbcfdd5f8db | /scripts/reward_calculator/reward_calculation.py | 097432288933f078e8a1095f31d116d0eb38a72d | [] | no_license | Osiron007/AgentSmith | 4e48d8cb252f440daf3babdc6b6ef78d9b643f52 | 2076ea69b12dd96c73e55dd1ce0de87bca0680ad | refs/heads/master | 2020-04-01T10:45:33.444836 | 2019-04-10T09:01:34 | 2019-04-10T09:01:34 | 153,130,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,145 | py | #! /usr/bin/env python
########################################################################################################################
# This file contains functions for reward calculation
# public functions:
# __init__
# reset_calculation
# get_reward
#
#
# helper functions:
# get_distance_to_goa... | [
"nieland@neobotix.de"
] | nieland@neobotix.de |
a62d2bd4f641ed51ff5e863330dae2a9166143b0 | 67c60d3fcaf3aa46f691fbf873326b491bf9ce1c | /bikeshare_project.py | c3d7ed4398fcd48fb38eaecd0d7d9ac4610b5c01 | [] | no_license | Trizzage/pdsnd_github | d7d5c7ef0794bfe0a772f4f964e2776f3bd897e8 | f7baac53237b4c25f4727f99ee35ffaf9ceca289 | refs/heads/master | 2020-06-23T07:25:33.385081 | 2019-07-24T12:16:48 | 2019-07-24T12:16:48 | 198,555,778 | 0 | 0 | null | 2019-07-24T04:03:03 | 2019-07-24T04:03:03 | null | UTF-8 | Python | false | false | 8,077 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
Returns:
(str) city - name o... | [
"pagh412@gmail.com"
] | pagh412@gmail.com |
3e20926127c7e75c5bbe387df367125729f04516 | ad0df0ce4333a6213becc335ecf381269c870959 | /Mundo 02/exe009.py | 8930c3f969f72c07dd8f0b0d170b09fe2c93f8eb | [] | no_license | Matheus900/Curso-de-Python3 | 7675b9cad243a041d593ae7b0f667f038eb6fd63 | 1786379b81922ad4967a58c944ecb11c4fa788a6 | refs/heads/master | 2022-11-07T23:42:20.496273 | 2020-06-29T18:49:14 | 2020-06-29T18:49:14 | 272,723,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | n1 = int(input('Digite um número: '))
n2 = int(input('digite outro número: '))
if n1 > n2:
print('O primeiro valor é maior.')
elif n2 > n1:
print('O segundo valor é maior.')
else:
print('Os dois valores são iguais.') | [
"noreply@github.com"
] | noreply@github.com |
b996c977517f5ce622b698b1872d39647e064362 | 06a863150a7a3a7bfc0c341b9c3f267727606464 | /lib/gii/qt/controls/Settings.py | 417bb2b0cbf6570f8ede7d3aaa6f6f5318978c4f | [
"MIT"
] | permissive | brucelevis/gii | c843dc738a958b4a2ffe42178cff0dd04da44071 | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | refs/heads/master | 2020-10-02T00:41:02.723597 | 2016-04-08T07:44:45 | 2016-04-08T07:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from PyQt4 import QtCore
globalSettings=QtCore.QSettings('Hatrix','GII')
def setGlobalSettingFile(filepath):
global globalSettings
globalSettings=QtCore.QSettings(filepath, QtCore.QSettings.IniFormat)
def getGlobalSettings():
return globalSettings
def setSettingValue(name, value):
globalSettings.setValue(name, ... | [
"tommo.zhou@gmail.com"
] | tommo.zhou@gmail.com |
8cd075875477791bfda459c5f6be816ef64bf010 | 21870fc6d119b4cea69b039ce60757ea15e3a55c | /lgshop/apps/oauth/views.py | bdbcd6078f3790a5716b8cb57d90382f2277624c | [] | no_license | asdacsd/lgshop | 821abe86d1b4252d90f3ec6d0d8c3c7166763bd8 | cebc4c0edf0deb647b64999aa96cfd685501ded7 | refs/heads/main | 2023-08-13T20:58:01.595464 | 2021-09-17T01:41:24 | 2021-09-17T01:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,074 | py | from django.shortcuts import render, redirect
from django.views import View
from QQLoginTool.QQtool import OAuthQQ
from django.conf import settings
from django import http
from utils.response_code import RETCODE
import logging
from .models import OAuthQQUser
from django.contrib.auth import login
from .utils import gene... | [
"1040775922@qq.com"
] | 1040775922@qq.com |
3bcfa5d149209d8adfb9e7b4ae7a1f0303d7aa8c | 0707229cbaebb6ddaefb0aedb55c45f677501e28 | /taxiapp/models.py | 59b10f8f892c3af87f3ef6fc1b13c8337a521176 | [] | no_license | SaraDashti/TaxiApp | 222f3390699042dd75c654549f83e0810edea0ef | 1a75b3820d4ffd14408b930c5167039883316e96 | refs/heads/master | 2022-12-23T15:06:44.518476 | 2018-02-09T14:40:31 | 2018-02-09T14:40:31 | 121,251,343 | 0 | 0 | null | 2022-12-08T00:55:02 | 2018-02-12T13:42:13 | JavaScript | UTF-8 | Python | false | false | 2,732 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Restaurant(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='restaurant')
name = models.CharField(max_length=400)
phone = models.CharField(max_length=220)
... | [
"zm99__@hotmail.com"
] | zm99__@hotmail.com |
fbaa35f5299e7a84a02a232bfd7f30fb212861f1 | cecd18e3ed53ac7cd35d5043e967cefac511d232 | /movies/urls.py | 44dc8cf7d82c6e18a1f51726c5b72c408d50ff92 | [] | no_license | Xorast/ft2001-django-fundamentals | f28c550786bfb4a6872c547751186f12adfad6fe | f29288ced501a7ea6c271ff82abcb345a534cf50 | refs/heads/master | 2022-04-24T03:32:59.533315 | 2020-04-28T10:15:07 | 2020-04-28T10:15:07 | 259,325,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from django.urls import path
from .views import intro, first_movie, get_all_movies, create, read
urlpatterns = [
path('intro', intro),
path('first_movie', first_movie),
path('all-movies', get_all_movies),
path('create', create),
path('read', read)
]
| [
"xavier.astor.fontaine@gmail.com"
] | xavier.astor.fontaine@gmail.com |
013e4bc2303229131fca0524ff63ab2983fbb945 | d382cdd35b700ae2d19b4847d80e07cddbf39b1e | /forum/utils/htmltreediff/html.py | 7107d4809bfb391b4ce4a55914977091ae49f7d3 | [] | no_license | dal-bhaat/stack5 | 9509cda9b6b71d3729b95e903b53dbe30cbafccd | 04989e48128398d1cd22759f0a7b3283a209e0f5 | refs/heads/master | 2020-05-30T11:30:24.510678 | 2014-07-24T10:53:46 | 2014-07-24T10:53:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | from util import (
parse_minidom,
parse_text,
minidom_tostring,
unwrap,
wrap_inner,
remove_node,
check_text_similarity,
)
from changes import dom_diff, distribute
def diff(old_html, new_html, cutoff=0.0, plaintext=False, pretty=False):
"""Show the differences between the old and new htm... | [
"pappudada@mailinator.com"
] | pappudada@mailinator.com |
4d78da860764ed22c67a1a3af8f7d1f053e37528 | a702975e392c3fed5af869b16ac88ca6148cfec3 | /shine2019_package/compare_data_model.py | a156b42ad468d763b260c0ec8788a8d653c2973c | [] | no_license | ktindiana/operational-sep | 033d32113c0e44c4afa8c7ee187a3994b8846c1f | 1fbac441eaa95692071380ff5044528ab569cd8a | refs/heads/master | 2023-07-27T13:08:33.683728 | 2023-07-06T17:04:09 | 2023-07-06T17:04:09 | 195,869,966 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 36,065 | py | import matplotlib.pyplot as plt
import math
import numpy as np
import sys
#import urllib2
import re
import calendar
import datetime
import argparse
from datetime import timedelta
from calendar import monthrange
import os
import matplotlib.mlab as mlab
import matplotlib.cm as cm
import matplotlib.dates as mdates
import ... | [
"kathryn.whitman@nasa.gov"
] | kathryn.whitman@nasa.gov |
d8818472768962f9b25b53298db1103079bdbdda | 57e5e112ab1318efd35a047c4cbbe08d94539845 | /venv/entity.py | 28c7d862accf76662f86692062bcb491312aebf5 | [] | no_license | rzwc/firstroguelike | 36513b5d63a455e53f3999a7684b9d9456868615 | 207a8a92a9cc4582930b6625ad96fc3dd1b54bc4 | refs/heads/master | 2022-11-22T12:01:47.503300 | 2020-07-30T22:01:51 | 2020-07-30T22:01:51 | 282,734,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from typing import Tuple
class Entity:
"""
A generic object to represent players, enemies, items, etc.
"""
def __init__(self, x: int, y: int, char: str, colour: Tuple[int, int, int]):
self.x = x
self.y = y
self.char = char
self.colour = colour
def move(self, dx: int... | [
"richard.chow@ucalgary.ca"
] | richard.chow@ucalgary.ca |
3bde4191b2e6cdcdf6fb6414beee96f319bafe11 | e2ae714619949c8210ed52b722cb5023d786f305 | /20-valid-parenthese.py | 88d87feed84aa1868d3dbae9c491917d1732180f | [] | no_license | nanli-7/algorithms | ce7c0bf2368834c12843cc004405b55f7d23bf36 | 6bee015dac47603253018fd773920e62b29f3f20 | refs/heads/master | 2020-04-15T23:12:37.691828 | 2019-07-06T20:54:55 | 2019-07-06T20:54:55 | 165,097,698 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | """ Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
Topic: stack (Easy Level)
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Note that an empty string is a... | [
"nanli-7@users.noreply.github.com"
] | nanli-7@users.noreply.github.com |
a39ac72e3dd8293bb7c5a117983a0650437216be | 8e52e07428cb9ded3e96db45e9d9e4444ba80224 | /vegetableOrder/migrations/0007_auto_20170422_1146.py | dff84affaada50f0eb21a18d502b84f3ebcf05f5 | [] | no_license | prashantspandey/mohanamandi | c2f8a1763813f7df21db7579bcb44b9f390d870f | 99231feaa9eb442d20a65a6754ec5b1df4e5208c | refs/heads/master | 2021-01-20T05:15:31.741033 | 2017-04-29T05:44:32 | 2017-04-29T05:44:32 | 89,766,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-22 06:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('vegetables', '0005_vegetable_subpricekg'),
('vegetabl... | [
"prashants_pandey@outlook.com"
] | prashants_pandey@outlook.com |
fc3025ae2df4cd324c9886f4e521e0b2a90412a7 | d70a7c7fbad728c54cc4110208d23ef3c96c1e1e | /validationtests/libraries/EchoSCU.py | 7da47983ebdd15b4ed7a3440f8d07da6841ef710 | [
"Apache-2.0"
] | permissive | ossdev07/wolfpacs | 23c19b2e8258bea85c66eaee776173d4862eb59f | bcd0f6a524ef644dc3923d8e17ccdb83ed25c3b2 | refs/heads/master | 2022-07-14T00:00:35.392234 | 2020-05-14T06:34:37 | 2020-05-14T06:34:37 | 263,834,907 | 0 | 0 | Apache-2.0 | 2020-05-14T06:33:54 | 2020-05-14T06:33:53 | null | UTF-8 | Python | false | false | 1,207 | py | from threading import Thread, Lock
from pynetdicom import AE
from pydicom.uid import (ImplicitVRLittleEndian,
ExplicitVRLittleEndian,
ExplicitVRBigEndian)
def get_implicit_assoc(host, port):
ae = AE(ae_title=b'robot')
ae.acse_timeout = 2
ae.dimse_timeout =... | [
"raphexion@gmail.com"
] | raphexion@gmail.com |
22ff3c8ec043a748f85e7e330611f00ac0949c95 | e86d020f8ade86b86df6ad8590b4458a9d415491 | /projects/test-crrr/base_mission/utils/check_logger.py | c944ef41446f4be841f1c6a115e7d739a4cbadc0 | [] | no_license | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 1,610 | py | # -*- coding: utf-8 -*-
import hashlib
import logging
import os
import sys
from cr_scene.utils.uitls import get_cr_scene_name
from cr import settings
def scene_log_key(scene_name, name):
_key = hashlib.md5('{}-scene'.format(scene_name)).hexdigest()
return _key
class SceneLogFactory(object):
logger_po... | [
"842995907@qq.com"
] | 842995907@qq.com |
4fcd41771f9804649a3a49d9f1e420f86fb5a933 | 019e5fdfd1f2c80ed185a0975ac490987bfda53f | /pyfuzz/pygen/qndispatch/qndispatch.py | 6bd02f8f88909fcfb601e41666803f75082c5b04 | [] | no_license | FrancescoGobbi/Software_Security_Project | c69d7e761fb440b3447d81d3debfd75efb5e2107 | 175f9f86abe85336206210b2ea23ced84a17aa1b | refs/heads/master | 2021-05-26T03:41:13.691010 | 2020-07-14T07:52:06 | 2020-07-14T07:52:06 | 254,036,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py |
import inspect
class InvalidArgException(Exception):
pass
class DispatchTargetException(Exception):
pass
class Dispatcher(object):
'''General dispatcher object'''
def __init__(self, name, argnum, args):
self.name = name
self.argnum = argnum
self.args = args
self.func... | [
"43830655+FrancescoGobbi@users.noreply.github.com"
] | 43830655+FrancescoGobbi@users.noreply.github.com |
badbc49fb91015e32b5d042edd3f9046dc6de9c2 | c6ac63e397053a6abd7cf02d075942f4d7c9ba06 | /usim/pydot-1.0.28/tkexample.py | 0aa239730ebaa0ceea3a43eb5bbde2f1a1418db8 | [
"MIT"
] | permissive | kimi-michael/microsim | 1d5aa53ff30d30cb7fc7391e5486d066bf651f48 | 5e6706439eeda28c2fbe7af6a32a34b9c5db8c84 | refs/heads/master | 2021-01-01T06:17:03.295703 | 2014-10-06T05:07:55 | 2014-10-06T05:07:55 | 42,723,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/bin/env python2.7
# author: Michael Kimi
# date : Fri Jan 10 14:39:57 2014
from Tkinter import *
root = Tk()
Grid.rowconfigure(root,0,weight=1)
Grid.columnconfigure(root,0,weight=1)
frame=Frame(root)
frame.grid(row=0,column=0,sticky=N+S+E+W)
#example values
for x in range(6):
for y in range(3):
btn... | [
"kimi.michael@gmail.com"
] | kimi.michael@gmail.com |
5d5ee3bde5ec7f39506231570f7382d5b3d136fc | 0b45b2a5299d366728dd106b82623603a781e8bf | /链接测试/client.py | 6b375c2e2d5671549ab7dd30c0d31b7718606791 | [] | no_license | BrainPicker-L/pyqt5_learning | 965b7223e9b11999465bd124426cdd764afe6f07 | 56737b0cf5be1bdd41b43586676f4522df6a93b1 | refs/heads/master | 2020-04-11T12:56:24.716834 | 2018-12-26T12:47:40 | 2018-12-26T12:47:40 | 161,796,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | from PyQt5.QtWidgets import QApplication, QWidget
from TcpClient.client import Ui_Form
from PyQt5.QtNetwork import QTcpSocket, QHostAddress
from PyQt5.QtCore import QByteArray, QDataStream, QIODevice
import sys
#客户端与服务器端代码逻辑类似,注释省略
class TcpClient(QWidget, Ui_Form):
def __init__(self):
super(TcpClient, se... | [
"1500202278@qq.com"
] | 1500202278@qq.com |
999faa858c2e031c6558bb918c4b54ce6862af2c | d96e54fda19508d85c36a4845f629ad51cfb5db5 | /p041.py | ff8e00ff56451c2b9a6f4c1b18cdfa3a95e8bdee | [] | no_license | ggorlen/euler | c275a10cf333a579771cd428349c88f074229a2e | 56a4e4047833327220281ba1651ef1a76daa39c4 | refs/heads/master | 2020-12-21T04:04:51.267387 | 2018-05-26T06:18:19 | 2018-05-26T06:18:19 | 58,153,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | """
https://projecteuler.net/problem=41
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is also prime.
What is the largest n-digit pandigital prime that exists?
"""
import itertools
def is_prime(n):
if n ... | [
"gsgorlen@gmail.com"
] | gsgorlen@gmail.com |
5b104cb5b2d2416d91d87a81a019c95722315ed4 | 036ec6e13771b1d1462f4a8113016acfb9ef27e5 | /realtors/migrations/0001_initial.py | 0c2124b0cdde3397ee54ac07da172d868727a44d | [] | no_license | AbhijitBarui/btre-project | c105bff127b077a29f7d4139241d0c6e14d1b7f6 | 12b8e146e7b243bd2fed6dda061fcb41bb412b47 | refs/heads/main | 2023-04-19T00:01:39.515977 | 2021-04-30T13:31:31 | 2021-04-30T13:31:31 | 363,146,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # Generated by Django 3.2 on 2021-04-20 05:57
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Realtor',
fields=[
('id', mod... | [
"abhijitongit@gmail.com"
] | abhijitongit@gmail.com |
636a6441ca564a66d6600e2734ec0f2a9895bdf0 | bd82ed6aa8b3ab0c0816cb15c8646308957d5376 | /supermakte/supermakte/settings.py | 849ca0424a0328e9a79333083d38dbbcd84fd7b2 | [] | no_license | liuchao2628/Supermakte | 3236a0f4ca80011fb7307d5fba8ce99b1696f559 | 5572781761ce4bacda6d2a9407097877d24876e2 | refs/heads/master | 2020-03-29T08:14:05.859120 | 2018-09-21T02:55:40 | 2018-09-21T02:55:40 | 149,700,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | """
Django settings for supermakte project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"910861811@qq.com"
] | 910861811@qq.com |
923b8ff6feb5f9d0cba684d0a1863130decc86f1 | 20c2b89e5d29ef9185ef1a248eaa6ca7ecb68c4e | /Clouds_and_Mountains.py | 4accfb112b9b4608e5ecfab2db54f0125a416bec | [] | no_license | eeshajain1/Python-Projects | f7e58bfea2d65b127b30d2e400d79e084bf9ea09 | 57ae07edc3f364614f022f0f9c8bb2658177a2ae | refs/heads/master | 2020-11-26T03:37:13.716824 | 2019-12-19T03:16:28 | 2019-12-19T03:16:28 | 228,955,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,234 | py | #### ======= HW4 template ======= ####
#Eesha Jain
''' This program draws clouds and mountains and allows the user to draw a house, move the clouds
and change the views (morning, noon, and evening) as well as adjust the speed of the clouds'''
#grade on project: 100%
from graphics import *
from time import *
im... | [
"noreply@github.com"
] | noreply@github.com |
74179ba5b208851731c97256002993ea79c58ed3 | ade687b07c6df705c9b9d5fa23af5935dc6235a1 | /think_python/chapter_15/Execise15.9.py | 0ea3932190d1106fc1ded54075202a91dfdfc1b3 | [] | no_license | ramjal/python-sandbox | fa828684df0d760f783b4e69afb4b2d4fe450397 | 91ec2b2371b728d7be649ffe67fa1374a15de73a | refs/heads/master | 2020-04-02T19:38:03.144199 | 2020-02-19T05:03:41 | 2020-02-19T05:03:41 | 154,741,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | import math
import turtle
class Point:
"""Represents a point.
attributes: x, y.
"""
class Circle:
"""Represents a circle.
attributes: center, radius.
"""
class Rectangle:
"""Represents a rectangle.
attributes: width, height, corner.
"""
# draws a polygon
def p... | [
"rjalali@westlandinsurance.ca"
] | rjalali@westlandinsurance.ca |
128c86280d8bb2aefa91343a3502a7e0911ca4b7 | f51a58ef4693cb181304aaf0fad7775c0188902f | /statMatrix Creation/OpenEphysTools/OpenEphys.py | c5fdf20715845c3a4e0a36e662ff985e21251c48 | [
"MIT"
] | permissive | FortinLab/statMatrixNeuralAnalysis | 191179cbb486eaf315718ba58e38e707405123b3 | 571b16c92fa57dd380c988478ddc5d5104802881 | refs/heads/master | 2023-08-22T21:55:47.610538 | 2023-08-09T20:41:51 | 2023-08-09T20:41:51 | 125,093,668 | 0 | 5 | MIT | 2021-12-08T17:40:23 | 2018-03-13T18:01:57 | MATLAB | UTF-8 | Python | false | false | 27,718 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 3 15:18:38 2014
@author: Dan Denman and Josh Siegle
Loads .continuous, .events, and .spikes files saved from the Open Ephys GUI
Usage:
import OpenEphys
data = OpenEphys.load(pathToFile) # returns a dict with data, timestamps, etc.
"""
import os
... | [
"noreply@github.com"
] | noreply@github.com |
f3b01ce7fd6c8f70cae36c7402acbc363a798773 | 59fa85cb5e846e0bc915d1b910e627bf11e157d3 | /nlp_vis/nlp_model_analysis/apps.py | d36abda8bc23aca2d8d08fdfeba662648c622b8b | [] | no_license | Jasper-Duan/Visualizing-Bias-in-Sentiment-Analysis | 5d9f591cc005e99ea82f940f1f2e022f6b8ac152 | 95c4e4503ff1791b0fcc7b58559b6416317f49c9 | refs/heads/main | 2023-04-25T00:34:36.101756 | 2021-05-14T05:29:55 | 2021-05-14T05:29:55 | 351,564,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.apps import AppConfig
class NlpModelAnalysisConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'nlp_model_analysis'
| [
"noreply@github.com"
] | noreply@github.com |
5c00a91da65bc602b8289e8be10661575d3966cd | 2e07999c76e6145731a13154d8d31eb55bd29e4c | /thread.py | ee311cf7fdb5bee374d24548d9cce3ac69e1bd27 | [] | no_license | JamesDelfini/PwnAdventure3-CTFChallenges | 3a279823cefdf299bcc5a7c5691b7ee35d3ea2da | 576b864f5f97a278511eab3af5914cf493dd5b4b | refs/heads/main | 2023-06-05T23:37:07.485408 | 2021-06-20T16:12:28 | 2021-06-20T16:12:28 | 378,286,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import logging
import threading
import time
def thread_function(name):
logging.info("Thread %s: starting", name)
time.sleep(2)
logging.info("Thread %s: finishing", name)
if __name__ == "__main__":
format = "%(asctime)s: %(message)s"
logging.basicConfig(format=format, level=logging.INFO,
... | [
"dj.matildo@gmail.com"
] | dj.matildo@gmail.com |
8ea309b27efb5e75178ac071e23b510c86ee4065 | 270611d0cfe130fa3c1aa84665e0748c1ddb6ab8 | /instamojo/__init__.py | 7640c9159f96d87251ad5444549796488e5c03cd | [
"BSD-2-Clause"
] | permissive | iambibhas/instamojo-py | 1096a8b81fb3a6b9839cb10c4dd5dc246f2752c7 | 1e80bde09d63cee56f403e4b635e0a62c014af81 | refs/heads/master | 2021-01-14T12:21:19.714552 | 2014-11-08T17:23:42 | 2014-11-08T17:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from .api import Instamojo
| [
"iambibhas@gmail.com"
] | iambibhas@gmail.com |
5cefa8e2360dfcff0cb00521e05b1dc42f87cae1 | 3aae3a29e82f1d36f0b9fcc52e611a08114b497e | /integrationtest/vm/virtualrouter/scheduler/test_create_reboot_vm_simple_scheduler.py | 94650811d3011b3c4cb282701e3aac0cc27570e2 | [
"Apache-2.0"
] | permissive | ResearchMore/zstack-woodpecker | 6024eb963d72a7fd2755c28cbd98cc8b52cb3b5d | 8bebaca129057c4cd08ce299b184ed7bb675b2a2 | refs/heads/master | 2020-03-14T22:47:50.467661 | 2018-04-21T15:35:11 | 2018-04-21T15:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | '''
New Integration Test for Simple VM reboot scheduler.
@author: quarkonics
'''
import os
import time
import zstackwoodpecker.operations.vm_operations as vm_ops
import zstackwoodpecker.operations.scheduler_operations as schd_ops
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test... | [
"quarkonics@gmail.com"
] | quarkonics@gmail.com |
7fe0c4cbeacf72cdebb8a3fb05a28b45d26625a1 | f54f857154b1dc12508c736ccd1410cacae571ac | /models/releted.py | 003940b23313f875d28dff2e27dd438f533dcf38 | [] | no_license | sirojamuniro/odoo-rumah_sakit_odoo12 | 811a2d3bfb08adceac3295a974880a2a3395cda8 | 2128cffeb2f02fbb6996c1784ba83cf06084dd19 | refs/heads/master | 2022-06-17T04:34:57.690289 | 2020-05-08T10:24:38 | 2020-05-08T10:24:38 | 262,292,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | from odoo import models, fields, api, _
class IniRelasi(models.Model):
_name = 'ini.relet'
_inherit = ['mail.thread', 'mail.activity.mixin']
_description = 'Ini Releted'
_order = "id desc"
re_id = fields.Many2one('ini.tes', string='nama pasien', required=True)
re_umur= fields.Integer(string='... | [
"munirosiroja@gmail.com"
] | munirosiroja@gmail.com |
a47793d56e5bbeca1af3045115a74a3ea30b92f8 | 9bafd84fe64febfffe157db21e3d38a588dad19b | /notitech/asgi.py | 1457f37c75bff4843d0626d6b5127eb2225abf8c | [] | no_license | marcelpernia/blog-django | 9c6eaa01a47b6f6df773998ea35ca3f5dfda8185 | f7a8583c06b3471d23108b95725448017d575c5c | refs/heads/master | 2022-12-11T05:55:53.201911 | 2020-02-24T14:36:57 | 2020-02-24T14:36:57 | 239,898,630 | 0 | 0 | null | 2022-12-08T03:35:59 | 2020-02-12T01:06:06 | Python | UTF-8 | Python | false | false | 393 | py | """
ASGI config for notitech project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"mpernia@riservi.com"
] | mpernia@riservi.com |
e5766dadf98150deffa339dbefa2d888f7af7282 | 44869749f8af2b548a2fbb23403e1a623e29d691 | /mysite/mysite/settings.py | 208621a7982a95d9f9f745f6e2c27df05323735f | [] | no_license | Ojou/my-first-blog | 4536c4db194d325508fd000ccd5919a722772994 | e29be78c3c87b39c474dabf2a27387797c2d2a41 | refs/heads/master | 2016-08-12T15:27:52.761420 | 2016-03-12T05:06:06 | 2016-03-12T05:06:06 | 53,712,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bu... | [
"admin@admin.com"
] | admin@admin.com |
71ebae8c844367c1abfd206113436b568f01f3c9 | bae04b2c18a70bdf5802542e987bd57f19cae61b | /transaction/migrations/0001_initial.py | 1263cfc120ab4249b18fe4128de9a50f735c9545 | [] | no_license | nikhil1904/locoAssignment | e8fd33779722cf6e8dcb0c58b27029164fa7cb7d | 187998e08f3863bd03802d88fe8369bd3d91bd13 | refs/heads/master | 2023-06-30T02:11:00.968880 | 2021-07-31T21:39:26 | 2021-07-31T21:43:41 | 391,468,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # Generated by Django 3.2.5 on 2021-07-31 15:15
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"nikhilanandani57@gmail.com"
] | nikhilanandani57@gmail.com |
91ead57a8a023fb0cd971541b5b7f314cd0f313e | fce23fa0204cbea8e8aa059d376d7376a7493dad | /compiler/p2ifinsselector.py | 570a2957f8bb45d6280a9eea42c2ef9977fe1b09 | [] | no_license | smitten0000/ecen5523 | 0eae0a4c51f7f1fd94ba1d669f3d8ea82498dcfc | 6b91f4ccace886353aa9c2c98f7e06ab0ad40c11 | refs/heads/master | 2021-03-12T20:21:15.413537 | 2011-12-15T03:53:28 | 2011-12-15T03:53:28 | 6,892,093 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | # vim: set ts=4 sw=4 expandtab:
from comp_util import *
from x86ir import *
# to flatten nested lists into a flat list
from compiler.ast import flatten
from p1ifinsselector import P1IfInstructionSelector
# Concept borrowed from http://peter-hoffmann.com/2010/extrinsic-visitor-pattern-python-inheritance.html
class P2I... | [
"brent.m.smith@colorado.edu"
] | brent.m.smith@colorado.edu |
60498247ede2edef34b1565e2b8b30f517ae448e | d6ebdf346903cb11a82a58363c3906c533a772e6 | /lambdax/lambda_calculus.py | 3f91238d728f42bc278c7732c2711f8d34f6b756 | [
"MIT"
] | permissive | hlerebours/lambda-calculus | 29ad596c8ff6d1420f3221c1f45d4f8af66344ab | 27e12df5740f0d37e57c2385b6780ecbf9195b52 | refs/heads/master | 2021-01-21T05:06:08.475698 | 2017-10-10T18:14:41 | 2017-10-10T20:54:22 | 83,134,611 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,655 | py | """ Implement the entire mechanism to build λ-abstractions from a
few magic tricks provided here and a lot of operator overloading.
Be reassured: while you're not using the public stuff exposed here,
no operator is overloaded and everything is working as usual.
Importing this module has no side-effect.
"""
import abc
... | [
"hugues@lereboursp.net"
] | hugues@lereboursp.net |
ca3625ff00f081519699045cc7f44c1aa07287ab | 950b22f09db67b84497ebefd38913e295e79236b | /timetravel/timetravel.py | aaf4ba4dcac5dfc013f4a5d2f9ccdf890523d227 | [] | no_license | michealbeatty/python-practice | c1fb37b9c9b6bdd3d015037c06b389144642fa5a | 715c7a82539af6d4b82de4bdc96d1f5c60e2efbf | refs/heads/master | 2021-01-11T15:03:33.790904 | 2017-01-30T02:26:41 | 2017-01-30T02:26:41 | 80,289,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | #!/usr/bin/env python3
import math
SPEED_OF_LIGHT = 299792458 # meters/second
SHIPS_WEIGHT = 70000
ALPHA_CENTAURI = 4.3
BARNARDS_STAR = 6.0
BETELGEUSE = 309
ANDROMEDA_GALAXY = 2000000
def calculate_factor(vel):
if vel < 100:
velocity = SPEED_OF_LIGHT * (vel/100)
else:
velocity = 1
facto... | [
"mike@mwbeatty.org"
] | mike@mwbeatty.org |
4c6826d27cfb095e363dab5b932b840d28d62d0a | ed5f4c50bb3f86bee134f5ee23ae5dea915fc018 | /mvb_document_directory/models/__init__.py | 93a6b49fcba6258ca6faa40c346cf4c6262afa21 | [] | no_license | pvanh2706/naduong | dd3b2fde3669757f6e1110ce143371dae98b290c | 0fc474ce4620453878b2842ff8b2939ad8723029 | refs/heads/master | 2022-06-23T04:00:11.928660 | 2020-05-07T07:18:01 | 2020-05-07T07:18:01 | 261,974,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | # -*- coding: utf-8 -*-
from . import models
from . import mvb_file
| [
"phamvietanh27061996@gmail.com"
] | phamvietanh27061996@gmail.com |
a4979d4b532c67ad1cd7cc517e20ac213f5a14a2 | b7b3c7bb7a8c5ad5a67e648bdfd720f9f310d1ef | /setup.py | 2bd92505a78ef90a00d909ac6c1c5fc954d9fa1c | [] | no_license | marian-vignau/buscalex | 0d05965f36076c0d143267d0ba430a3f3d74a573 | 0f1f487a8d0604565104784d17de56e4bdc00ec2 | refs/heads/master | 2021-01-25T03:49:01.474180 | 2010-01-31T21:21:44 | 2010-01-31T21:21:44 | 32,187,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # A very simple setup script to create 2 executables.
#
# hello.py is a simple "hello, world" type program, which alse allows
# to explore the environment in which the script runs.
#
# test_wx.py is a simple wxPython program, it will be converted into a
# console-less program.
#
# If you don't have wxPython ins... | [
"mavignau@31987ec2-0eab-11df-97f0-3f0784342007"
] | mavignau@31987ec2-0eab-11df-97f0-3f0784342007 |
09c13e8d7e182c779642a9945ae1d18db780e082 | dec7cac75fb472ab28b57228496b17fdbcf5df1d | /accounting/views.py | 2b319b1591a9b8b214b969d1b42c9bb045ff0ca9 | [] | no_license | sofide/apicolapp | a21be58982957b1115f73a3cc80bbce58832a739 | 32f9df4109540c6fb0c07dc9de2f557ec583a9d9 | refs/heads/master | 2021-06-22T22:34:53.075938 | 2019-03-28T01:27:13 | 2019-03-28T01:27:13 | 133,557,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | from datetime import datetime, timedelta, date
from django.contrib.auth.decorators import login_required
from django.db.models import Q, Sum, Count, Prefetch
from django.db.models.functions import Coalesce
from django.shortcuts import render, get_object_or_404, redirect
from accounting import forms
from accounting.ma... | [
"sofi.denner@gmail.com"
] | sofi.denner@gmail.com |
490bc076a2d3bcaa4092e717a778d4aec3b9d728 | 36ea9d3882ae87e1cedee8bce0e9ec9b271a988d | /src/modules/starships/infra/sqlalchemy/ship.py | 0ba4e956b750786e58e791f60a86dc49ba41ae30 | [
"MIT"
] | permissive | matheusheck/starships-of-war | 1675c6ddeceea4562d2bd4d9e27ae9c32b25144b | a84c417b4efa25ff01ab6c04c8bb35c3fd2cb04e | refs/heads/master | 2023-02-11T20:30:04.437954 | 2021-01-06T14:44:53 | 2021-01-06T14:44:53 | 327,053,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | import sqlalchemy
from sqlalchemy import Column, Integer, String, Numeric
from .....shared.infra.sqlalchemy.base import Base
class Ship(Base):
__tablename__ = 'ships'
id = Column(Integer, primary_key=True)
name = Column(String)
hyperdrivespeed = Column(Numeric)
sublightspeed = Column(Numeric)
def __ini... | [
"matheus@conduite.tv"
] | matheus@conduite.tv |
8ad9b8ad0a7fd6752e3c41f58dce4c8a3e8e503f | e68a363b07a3929ec8159a40eb985fc541edc3b9 | /authors/views.py | 0516cb86701a1938f068ceb952bbcf665df8b366 | [] | no_license | bessai-mohamed-cherif/quote-finder | 108fc8084b56a2a8f7312d1f0c1f29cecbdeb44e | 8265f1d7d407660a0c2b5adebdc1469669ca35bc | refs/heads/main | 2023-04-02T13:43:14.095933 | 2021-04-11T11:27:35 | 2021-04-11T11:27:35 | 355,117,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from django.shortcuts import render
from .models import Authors
from search.models import Quotes
# Create your views here.
def allauthors(request):
authors = Authors.objects.all().order_by('-name')
authorstable = {}
for author in authors:
authorstable[author.name] = Quotes.objects.filter(author=aut... | [
"mohamedcherif.bessai@gmail.com"
] | mohamedcherif.bessai@gmail.com |
1e4d2b776f7742c63feaed7c0a59754c5369ff2f | f7e9ba1148365bc8ffea1586749a5ee78fcb4414 | /Teleop/Servo_Example.py | 291f72c7330be763d470179ee37582c76e21fa84 | [] | no_license | kiritodeveloper/BarBot-3 | 91e49b65b487c407248bcdae7e370c3d6c304417 | 149b6f38494dc913a61f18ba2684c7f8e19249fc | refs/heads/master | 2021-06-25T14:54:13.190844 | 2017-09-11T06:48:36 | 2017-09-11T06:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# # Initialise the PWM device using the default address
# pwm = PWM(0x40)
... | [
"vasu_agrawal@yahoo.com"
] | vasu_agrawal@yahoo.com |
9bec4e1197609167b05abcbe19decc1d0532f663 | 643e4cb2a4e585f67030f5fbcc99dc7d91919460 | /api/utils/callbacks.py | 1da2e43bebc7085a59fab15fa763b8f24dc67763 | [] | no_license | orweiser/Shmekel | 804691fece5bf464e854e756eba175de3394a4f8 | ea1ad7c92da171c482a70a8e1be619d1ddd09732 | refs/heads/master | 2021-06-25T11:53:14.172770 | 2020-07-29T19:25:38 | 2020-07-29T19:25:38 | 158,924,696 | 1 | 0 | null | 2020-09-16T21:15:35 | 2018-11-24T10:18:34 | Python | UTF-8 | Python | false | false | 1,040 | py | from keras.callbacks import Callback
from keras import callbacks as keras_callbacks
def _parse_item(item):
if isinstance(item, str):
return item, {}
if isinstance(item, dict):
return item['name'], {key: val for key, val in item.items() if key != 'name'}
if isinstance(item, (list, tuple)):
... | [
"kaufmann.shmekel@gmail.com"
] | kaufmann.shmekel@gmail.com |
2d2a84da60052c7bbdf576522c35aae0207f76a4 | 75136cd1865bd72ebad8ba31446d57d9fdedce22 | /pepysdiary/common/templatetags/search_tags.py | b9f9268357944463a88b44a9e284a80ec47c36ea | [] | no_license | hugovk/pepysdiary | ca9a1d39ed62e7299509daa69b5df0d5164aec31 | 1a67c11efb62f5392914732ad15a4db71872ed05 | refs/heads/main | 2021-12-03T01:36:16.626676 | 2021-11-08T17:29:51 | 2021-11-08T17:29:51 | 60,296,270 | 0 | 0 | null | 2016-06-02T20:48:07 | 2016-06-02T20:48:05 | null | UTF-8 | Python | false | false | 1,582 | py | from django import template
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from pepysdiary.common.utilities import hilite_words, trim_hilites
register = template.Library()
@register.simple_tag()
def search_summary(obj, search_string):
"""
Returns the HTML to display... | [
"phil@gyford.com"
] | phil@gyford.com |
3055b260778cf417707db8721cce2a574e8742a8 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/rest_api/pagination.py | 244d9b96a12060f9438120bf55da8fccfa069296 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 2,689 | py | """
Discussion API pagination support
"""
from edx_rest_framework_extensions.paginators import NamespacedPageNumberPagination
from rest_framework.utils.urls import replace_query_param
class _Page:
"""
Implements just enough of the django.core.paginator.Page interface to allow
PaginationSerializer to wor... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
b6a956b9818da0da10270c5fa6aa0eaccf12a1d7 | 743c1aa4ae8336645785a5afd768a3c6c7189439 | /BGWpy/BGW/__init__.py | 460615f95d9f5ce43be3666023199be3687052ec | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | kcantosh/BGWpy | 566e03e888ab17b7d8ff7a68a6033d121532d905 | fc5eda118ccdd18cdcdb88141df2b673456e8bd2 | refs/heads/master | 2021-06-25T14:21:33.426910 | 2017-08-28T18:43:40 | 2017-08-28T18:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from __future__ import print_function
from . import inputs
# Core
from . import bgwtask
# Public
from .kgrid import *
from .epsilontask import *
from .sigmatask import *
from .kerneltask import *
from .absorptiontask import *
from .inteqptask import *
__all__ = (epsilontask.__all__ + sigmatask.__all__ +
... | [
"gabriel.antonius@gmail.com"
] | gabriel.antonius@gmail.com |
4aaa632cde628781d1af4922b50899261b86c533 | 81c2f1ecd5f2b782d38f94e6c9d57d1846e228df | /home/migrations/0018_auto_20210204_1138.py | b958eb0b814357cfcd10420b16dfe33c5ed76841 | [
"MIT"
] | permissive | rachelhs/wagtail-starter | c24b4aacfc9e36018b7e29792328b97babba45cc | 2363517fd91e279d564ff899dfa3cdfd7ec01aa9 | refs/heads/master | 2023-03-01T20:16:04.259780 | 2021-02-11T16:39:25 | 2021-02-11T16:39:25 | 329,030,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # Generated by Django 3.1.5 on 2021-02-04 11:38
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtailstreamforms.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0017_auto_20210204_1137'),
]
operations = [
migration... | [
"rachelsmith400@hotmail.co.uk"
] | rachelsmith400@hotmail.co.uk |
93905738244ceb5be89f8ddaacb1082786d5a931 | 0a2db93ab1653d80ced3d60e0981b99833eabb69 | /scanner.py | 46ff76ea9b0a45c9355444b91df7950c4c74792c | [] | no_license | zontarian/artusi_solver | 4927fac9cdad4c8c2c3f2746deed4028e981ba7e | 1c239047e26c6a7a380d30014aa11f156b7d8a83 | refs/heads/master | 2020-06-13T21:54:16.335997 | 2016-12-19T17:15:51 | 2016-12-19T17:15:51 | 75,550,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,700 | py | '''
Scan a Artusi Cooking time image
'''
import cv2
import numpy as np
import imutils
import sys
import cv2
import argparse
import logging
import os
TRAINING_IMAGES = [
"IMG_1370.PNG",
"IMG_1376.PNG",
"IMG_1385.PNG",
"IMG_1387.PNG",
"IMG_1389.PNG",
]
dir_path = os.path.dirname(os.path.realpath(_... | [
"walter@iakta.it"
] | walter@iakta.it |
4357960f8e003e9c912bd7ac3fd0ed1852c7932b | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/contrib/autograph/utils/builtins_test.py | 0c2312178a921037fa419818bf309d671c33914d | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 4,569 | py | # Copyright 2017 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... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
8ef5a096b48b89a140927fab2d68b9a77297220f | 4ddf82eeb31d46fb67802a4375390eb42a8f23b8 | /ports/gprs_a9/examples/example_42_event_driven_gprs.py | cae7cc5e0b8876cd1bafc4e4404bbc8efc5388b8 | [
"MIT"
] | permissive | pulkin/micropython | 1437a507b9e90c8824e80c3553e6209d89e64565 | c274c947c611f510fd2b1c4ef6cbd9f4283794fc | refs/heads/master | 2023-03-08T02:35:28.208819 | 2022-04-19T12:38:47 | 2022-04-19T12:38:47 | 167,732,676 | 103 | 36 | MIT | 2023-02-25T03:02:36 | 2019-01-26T19:57:59 | C | UTF-8 | Python | false | false | 745 | py | # Micropython a9g example
# Source: https://github.com/pulkin/micropython
# Author: pulkin
# Demonstrates how to connect to GPRS automatically in event-driven non-blocking manner
import cellular
import socket
host = "httpstat.us"
port = 80
message = "GET /200 HTTP/1.1\r\nHost: {}\r\nConnection: close\r\n\r\n"
def han... | [
"gpulkin@gmail.com"
] | gpulkin@gmail.com |
f7d376b7801bb86fcd1f08426fb3c2befd2df759 | 0fc62ef279476933b0792436f38f574e96bfc36d | /python/djangoProject/testdjango01/manage.py | f321fd0d89d2fdd6d199365820247eb1f2361b6a | [] | no_license | bing0109/HTML5 | 19704cb9932df5a72d128b9a6b8677745bada2e4 | 674c089ab259f233ca514bac4fe1985bd0e73d39 | refs/heads/master | 2020-04-09T07:32:12.613500 | 2019-01-08T10:58:30 | 2019-01-08T10:58:30 | 160,160,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testdjango01.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"zl03.qq.com"
] | zl03.qq.com |
b0192707c8b441d03bc20c3771fdad7ee6cf37b4 | bd76906037d828d0012232713f56d948c5985b61 | /test_Ayomi/accueil/migrations/0001_initial.py | b51151cee13b205f5ec9e77a794845a1d611f1c5 | [] | no_license | H4FT/test_Ayomi | 0a1180bcd6a6804ceaaafaa23f8c19c3f2315307 | 7391984ecbcf3e5bea48b2d4c22f0f113c412d15 | refs/heads/master | 2022-12-10T07:34:57.867546 | 2020-08-05T22:43:06 | 2020-08-05T22:43:06 | 284,921,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Identif',
fields=[
('id', models.AutoField(verb... | [
"azibiarthur@gmail.com"
] | azibiarthur@gmail.com |
4f4ec2b6dca9ab93e16e069a1bb8f26a7cd485ea | 0c1f77d0d03362b7891e7d05275fa54b61fc1d01 | /test/test_jira.py | a23e77faf2c5dc54032dae1eb5e735bbc86bc190 | [
"Apache-2.0"
] | permissive | anttipalsola/err-jira | 3c876069e1e68c152a9526fa5249a4812bbca85b | 134c21ec5f948ec155bb77b82e658b284fc3b987 | refs/heads/master | 2021-05-30T23:00:15.173552 | 2016-02-16T10:20:54 | 2016-02-16T10:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # -*- coding: utf-8 -*-
from errbot.backends.test import FullStackTest
class TestCommands(FullStackTest):
@classmethod
def setUpClass(cls, extra=None):
super(TestCommands, cls).setUpClass(__file__)
def test_jira(self):
self.assertCommand('!jira create project summary', 'created issue xxx... | [
"alexander@fahlke.org"
] | alexander@fahlke.org |
ca831377dafa27c2ebd803e5785a0a7facaf2cc9 | b5da256eac2b56dae4ce47204eb1d32947255b4b | /phone_parser.py | 1ecc55cc64f7b5b07106af32000e6151ed98e7e9 | [] | no_license | Osad82/Phone_Parser | ca4751d2747a9a9f0b76b4cbaf73d1a64181bf26 | 3035ec94025440027a6c45f679222fd05a007449 | refs/heads/main | 2023-02-25T23:26:37.716392 | 2021-02-05T16:41:01 | 2021-02-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | import requests
import os, sys
import bs4
import os
import time
import json
import urllib.request
import base64
import hmac
import hashlib
import binascii
import json
from bs4 import BeautifulSoup
from termcolor import colored
from Crypto import Random
from Crypto.Cipher import AES
def main_menu():
os.system("clear")... | [
"noreply@github.com"
] | noreply@github.com |
58d9611da6b4750c716e3f6d0db3b2507d2be3a5 | 5092b7eab30ae9a1e0c17d6915b9da13ae91e663 | /mit-6.00-ex/ps2a.py | 3ccfe03cfd7728e7bc20ae8a5a8fe806ce892a37 | [] | no_license | Hausdorffcode/mit-ex | acf2db5d645c887b09d021aacceeddcca5bea8b8 | 48d34a1de35a1fd789d1cb5278a5510be356da87 | refs/heads/master | 2021-01-12T10:47:15.249520 | 2016-11-03T02:04:45 | 2016-11-03T02:04:45 | 72,699,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py |
def amount_packages(packages):
if packages == 1:
return 6
if packages == 2:
return 9
if packages == 3:
return 20
else:
return -1000000
def cc(n, packages):
if n == 0:
return 1
elif n < 0 or packages == 0:
return 0
else:
return cc(... | [
"m15950172843@163.com"
] | m15950172843@163.com |
c2d6f67753d23b501788801fb5ddc9bf1b830795 | 6cf46f85debb1b0505c0edcbc7296f50a44a615d | /dexy/tests/plugins/test_wordpress_filters.py | 59635a82d9934c4853b96ef03431438d88b9812a | [
"MIT"
] | permissive | aioupload/dexy | 27b7f5051417093d8336e39d71e824b3ef5c9f56 | 350b7ed23d2f3aab50097aabf3481229d75d1cf7 | refs/heads/master | 2021-01-16T22:59:11.707350 | 2013-08-05T06:08:00 | 2013-08-05T06:08:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,062 | py | from dexy.doc import Doc
from dexy.tests.utils import TEST_DATA_DIR
from dexy.tests.utils import wrap
from dexy.tests.utils import capture_stdout
from mock import patch
import dexy.exceptions
import json
import os
import shutil
import dexy.filter
import dexy.wrapper
def test_docmd_create_keyfile():
with wrap():
... | [
"ana@ananelson.com"
] | ana@ananelson.com |
cc06df789b9ccfdb1b0c5472d1341bc7c14037a9 | 7125880dcc280f296dcd0c902873761f9f354a12 | /Builder/BabyMonitor/utils/decorators.py | 5bd3379869551f31e7e2a656125ed749706b19c4 | [] | no_license | Adrilene/BM_autoIoT | a3d062bf6942d4fef84571e8ac489bfb1c37277f | ef73b3b8f290ecd5f4cd9ad9f8e30f8e5f0a89ac | refs/heads/master | 2020-09-26T02:05:52.767137 | 2020-02-11T16:08:07 | 2020-02-11T16:08:07 | 226,128,552 | 0 | 1 | null | 2020-02-05T19:05:44 | 2019-12-05T15:07:32 | Python | UTF-8 | Python | false | false | 688 | py | from functools import wraps
from flask import abort
from flask_login import current_user
from models.User import Permission
# Check if a user has permission to access a page
# Pag 115 and 116 from the Flask Web Development Book
def permission_required(permission):
def decorator(f):
@wraps(f)
... | [
"adrilene.fonseca@aluno.uece.br"
] | adrilene.fonseca@aluno.uece.br |
5e50c6736d576f5d6e6ed982714a53727097006d | aad7ee6dbc51aba10f678afa3e066cbb9ccaa4eb | /libLGTV_serial.py | 3f0917bffab1531eb7633cad28e09960b0370fe0 | [] | no_license | romeonocon/libLGTV_serial | 6a8bcdd0325fd50bd807f02972f0e3af8a0f1ec7 | 95b406ffab814d0c543431b0724fb7690a66539f | refs/heads/master | 2021-01-13T14:37:54.501932 | 2016-12-17T15:56:17 | 2016-12-17T15:56:17 | 76,728,076 | 0 | 0 | null | 2016-12-17T14:18:11 | 2016-12-17T14:18:11 | null | UTF-8 | Python | false | false | 9,640 | py | # -*- coding: utf-8 -*-
import serial
import os
import time
import tempfile
from filelock import FileLock
# from pprint import pprint
actual_codes = {}
common_codes = {
'aspect43' : b"kc 00 01",
'aspect169' : b"kc 00 02",
'aspectstatus' : b"kc 00 ff",
'poweroff' : b"ka 00 00",
'pow... | [
"romeo.nocon@gmail.com"
] | romeo.nocon@gmail.com |
9a992e31d5b91b6ca68d6164cd5061c658424578 | ca5b6157c9f7ac334f1ba5ec593723d40a686630 | /server.py | bfd9e78f40c2d8379a92f6efb9a1daeaca573a02 | [] | no_license | qumou/chat | fef5cd8b585188bca2834cb0261df561ca2f5b60 | b365ae54f14c23e91e1ee96cd4492087edd4c128 | refs/heads/master | 2020-06-04T16:28:13.957967 | 2019-06-15T17:02:44 | 2019-06-15T17:02:44 | 192,103,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | from twisted.internet.protocol import Protocol, Factory
from twisted.internet import reactor
class Client(Protocol):
ip: str = None
login: str = None
factory: 'Chat'
hist: str = 'hist.txt'
def __init__(self, factory):
"""
Инициализация фабрики клиента
:param factory:
... | [
"noreply@github.com"
] | noreply@github.com |
179136706a176c379e4e834a4aa983bf7e7f6ac6 | 421f42acd37d3d02dda23bad4bc68cc58b481c00 | /forensics/ekoparty-vnc/getvnckeys.py | 0656a55d4ed0be982b14ead90bf9394e324d41a2 | [] | no_license | sourcekris/ctf-solutions | 6963d0a1524c4d5bd738d187e72f571bf608bd7a | 3251f113c3a94732e432885fc785fb71d67d05e8 | refs/heads/master | 2021-08-27T18:13:00.902502 | 2021-08-25T07:59:46 | 2021-08-25T07:59:46 | 38,923,614 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | #!/usr/bin/python
#
# Extract the VNC keystrokes from a PCAP using tshark
#
# kris, Capture The Swag
#
# http://github.com/sourcekris/
#
import subprocess
import sys
import os
import re
if len(sys.argv) < 2:
print "Usage: " + sys.argv[0] + " <pcap or pcapng>"
sys.exit(-1)
# read the tshark data in PDML format - ho... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
af16790886a2cff8adca80528e5adaab845e2d90 | 5ae846ff6a669a207c0f69daa66d6b5a9d71a6fa | /ros/build/styx/catkin_generated/pkg.develspace.context.pc.py | b111c4022005d904a586bf719562188b774a0ed8 | [] | no_license | hectorratia/CarND-Capstone | c10c7a2d67e0d2953a4f2961c1f932dc2d72dfa8 | 5a64b99afb0c12b5c4e160dccfb2a1f72afa0e38 | refs/heads/master | 2021-05-07T19:51:55.466787 | 2017-11-02T16:05:40 | 2017-11-02T16:05:40 | 108,904,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "styx"
PROJECT_SPACE_DIR = "/home/hect... | [
"hectorratia@gmail.com"
] | hectorratia@gmail.com |
c4817669a246089167041ea90ce1f6437df1ec0b | d6edb1d86abec99be6b31dcfd58c9a7d1c58b1bb | /Face_recognition/viratkohli.py | cec9622a0e377a44abc2ed61fb4aadb9d506579c | [] | no_license | namithadsouza/Face_Recognition | c82064a753b03eb0dc5fcd8280f1e0a1071cc983 | d53f086f704e45625abd3a096d08312bca3794a2 | refs/heads/master | 2020-06-25T09:35:48.889743 | 2019-07-28T10:37:28 | 2019-07-28T10:37:28 | 199,273,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py |
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 18 14:55:23 2019
@author: Namitha
"""
import cv2
import numpy as np
fcascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
facedata=[]
facecount=0
cap=cv2.VideoCapture(0)
while True:
ret,image=cap.read()
faceGray=cv2.cvtColor(image,cv2.COLOR_BGR2... | [
"namithadsouza99@gmail.com"
] | namithadsouza99@gmail.com |
5282f35a07afdd6f85d4ee5cc94776a39e2e5d22 | 3e2593161915670c5586bd600e7e076bbe1a0758 | /weibo.py | 5b2f2b63d295350a848cd0cc16ad36661cc61bd6 | [] | no_license | qzylalala/WebSpider | 19f0691b3b05b8650f2f152d36eaaa17e08a0712 | b2d7f143dba6e54322f401251633488b9406fde4 | refs/heads/master | 2020-04-11T01:22:27.457676 | 2019-01-14T12:07:07 | 2019-01-14T12:07:07 | 161,413,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,432 | py | import json
from scrapy import Request, Spider
from weibo.items import *
class WeiboSpider(Spider):
name = 'weibocn'
allowed_domains = ['m.weibo.cn']
user_url = 'https://m.weibo.cn/api/container/getIndex?uid={uid}&type=uid&value={uid}&containerid=100505{uid}'
follow_url = 'https://m.weibo.cn/api/conta... | [
"304228244@qq.com"
] | 304228244@qq.com |
4bd55c584db7c1368afadb174a22b9e568e9980c | 0c72282d601ccf840dd4e41b675c0675de7bc916 | /students/cfarris/Lesson1_Assignment/inventory_management/market_prices.py | 43e39db3f96fd7420e151ddf819d704420745bf7 | [] | no_license | zconn/PythonCert220Assign | c7fedd9ffae4f9e74e5e4dfc59bc6c511c7900ab | 99271cd60485bd2e54f8d133c9057a2ccd6c91c2 | refs/heads/master | 2020-04-15T14:42:08.765699 | 2019-03-14T09:13:36 | 2019-03-14T09:13:36 | 164,763,504 | 2 | 0 | null | 2019-01-09T01:34:40 | 2019-01-09T01:34:40 | null | UTF-8 | Python | false | false | 127 | py | """returns the market prices for user"""
def get_latest_price(item_code):
"""return 24 for market price"""
return 24
| [
"31780123+Misseswaddles@users.noreply.github.com"
] | 31780123+Misseswaddles@users.noreply.github.com |
4b752efa341f87ab63c4050b7974a3763ef0e025 | ccb871cf5ed73c3338f9bebb2c3b029ac778c9d4 | /E3/T2/figure.py | 473d71c5f613baec625d48fc69c6ce5c8e8141ca | [] | no_license | erikadamstrandberg/FKA121_computational_physics | b925a8d5425dcf3b80948eb7bbcad3773feabf89 | 3def30107dff34f4ef9e3cd95bc73fc4aa5f8511 | refs/heads/master | 2023-02-21T18:28:41.850662 | 2021-01-15T14:29:06 | 2021-01-15T14:29:06 | 309,369,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | #%%
import numpy as np
import matplotlib.pyplot as plt
#%%
array = np.genfromtxt('dist_10.csv', delimiter=',', skip_header=1)
uniform = array[:,0]
sinx_dist = array[:,1]
step_bin = 0.05
start_bin = 0
stopp_bin = 1 + step_bin
b = np.arange(start_bin, stopp_bin, step_bin)
fig, ax = plt.subplots()
plt.hist(sinx_dist,... | [
"erikadamstrandberg@gmail.com"
] | erikadamstrandberg@gmail.com |
db3e991354ee2cc1f2432b865bebe2154102fb2b | 04b252c4e33e580ab5cfaa3d83b38712a767ac35 | /drinks.py | b306b149711e13b4ae7680c515fce93ce79ea892 | [] | no_license | nphucnguyen/python_cc1 | f91b41cbb7b112ab04e742f22023860ec4f5756b | 4320154104c99882beae962f9603b18716701641 | refs/heads/master | 2023-05-01T11:28:16.598875 | 2021-05-18T04:27:26 | 2021-05-18T04:27:26 | 364,783,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import random
DRINKS = '''1 dừa tắc - cam vắt - 68 lê hồng phong
2 tàu hủ rong biển - 124 ngô mây
3 sinh tố - 18 nguyễn huệ
4 trà sữa - 68 trần cao vân
5 rau câu dừa - nhân plan - 29 vũ bão
6 nước mía bờ biển
'''
drinks_list = DRINKS.splitlines()
random.shuffle(drinks_list)
print(*drinks_list, sep = '\n') | [
"nphucnguyen95@gmail.com"
] | nphucnguyen95@gmail.com |
c8e05da4b1e368920092b454e82ee0183422509a | 0c6b47f5647fa048e701c743bd61e05667b3b569 | /101_Common_Dialogs/SingleChoiceDialog/__demo__.py | 3556b9bda73bf996e3b30c39c0042e5e6c1cfb11 | [] | no_license | pythonthings/wxPython-Sample-Apps-and-Demos | bbfa5c307c08bd0e732083a7e7ec0aaefa234033 | 65e6828e92217445367420c9c2ebb4a7ed9a1d6e | refs/heads/master | 2022-10-02T18:41:01.697132 | 2020-06-10T00:18:15 | 2020-06-10T00:18:15 | 281,526,555 | 1 | 0 | null | 2020-07-21T23:32:51 | 2020-07-21T23:32:51 | null | UTF-8 | Python | false | false | 2,243 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-MetaData --------------------------------------------------------------------
__doc__ = """
This module contains the meta data needed for integrating the samples
in the directory into the wxPython demo framework. Once imported,
this module returns the following informati... | [
"metaliobovinus@gmail.com"
] | metaliobovinus@gmail.com |
11819c5d3c609f08823c7d9cb98d9c013d314fa5 | 9c7b6b76eb2ce97a3495b65a3f61d8481b76bc90 | /recognition/face_model.py | 6f4f0dd04d7871a60f90b5f9fa9d05d5661a33e7 | [] | no_license | jaywong966/Smart-Home-Control-v2.0 | f9126be3945d2c055057d74ea057d38b091a5202 | 5cd4a0e5e2ca31daaba6a42b29248fa704e7e3d1 | refs/heads/master | 2021-05-26T01:06:08.290981 | 2020-06-09T07:26:31 | 2020-06-09T07:26:31 | 253,989,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | import face_recognition
import cv2
import numpy as np
class Facemodel():
# Load a sample picture and learn how to recognize it.
def __init__(self):
obama_image = face_recognition.load_image_file("obama.jpg")
obama_face_encoding = face_recognition.face_encodings(obama_image)[0]
# Load a... | [
"59945842+jaywong966@users.noreply.github.com"
] | 59945842+jaywong966@users.noreply.github.com |
c36756c403d820fd177911d46faf41b7a48890dc | 9d8410ae93d4d4b9188d594b6b13fbcb8fe187bb | /gensimTraning/demo.py | b0d2c0440291a46818ef506ad69df087ea623ef8 | [] | no_license | 10836018/Chatbot-Api | bbe545e0852a2ca70f92c9427f6ebf297293124e | c269898e038721640ffcc3a2c431f104dccf9d95 | refs/heads/master | 2021-05-16T23:47:59.503439 | 2020-11-24T12:55:49 | 2020-11-24T12:55:49 | 250,520,720 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py |
from gensim import models
import logging
def demo():
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
model = models.Word2Vec.load('word2vec.model')
print("\n提供 3 種測試模式\n")
print("輸入一個詞,尋找前五十個該詞的相似詞")
print("輸入兩個詞,計算兩個詞的餘弦相似度")
print("輸入三個詞,進行類比推理\n")
... | [
"10836018@ntub.edu.tw"
] | 10836018@ntub.edu.tw |
a707cadad3569e9e92124c97f42c8866203919fb | 5f1300749ea933e26ab8e526c0f553a427e632fe | /FSTK/config/config.py | feee2190a11e755d2fa876ffd07d90a83a12e3af | [] | no_license | ybhambha/SHWAYB | 804d8a195f96d7661c8a97e42d6ad513cc8a4bae | 337cb2cf647002d3d064f91d57cc095cb0ca1101 | refs/heads/master | 2021-01-11T03:27:11.144096 | 2018-11-11T13:48:19 | 2018-11-11T13:48:19 | 71,031,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 15 07:02:11 2016
@author: yashwantbhambhani
"""
import os
class config:
def get_data_files_location(self):
data_files_location = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + '/data/'
return data_files_location
def get_... | [
"bhambha_yash@hotmail.com"
] | bhambha_yash@hotmail.com |
8845327944ed8f4620a99b23f35ef9ae9b182840 | 297f77d523b04db42a186a987dfe66bbc502eef9 | /app/auth.py | b1fedccbf0ddb6cf4ecbf3c6f4f604fab7a936a6 | [] | no_license | allenyang79/member-system | 6480af3c7a1ad306d121b8576108e3886247ea06 | d45292fbf69c2fd28708b8842ffb9e4496502437 | refs/heads/master | 2020-12-25T15:07:55.875700 | 2016-06-26T16:04:15 | 2016-06-27T02:16:32 | 61,340,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | # -*- coding: utf-8 -*-
import functools
import json
import os
import sys
import time
import traceback
import binascii
import flask
#from flask_jwt import JWT, jwt_required, current_identity
from werkzeug.security import safe_str_cmp
import jwt
import jwt.exceptions
from app.error import InvalidError
#from app.auth i... | [
"allenyang@appier.com"
] | allenyang@appier.com |
a38f9c670a9b5e69a8eda1976b9170596fa5931d | fd8db9d07b5d4aa5eaab81b1d2892c95622c0d49 | /kuang.py | 083ee86f7e2f0d93e5a0650dcf1ad9a7d9849114 | [] | no_license | ChenbeBryant/SHOHOKU | 0409210a5cbcc6ebf490c39f0cbae2208c8059ac | 67f37bcd502ecd2bc2d1b8551d0550ead6d46d3c | refs/heads/master | 2021-09-23T14:45:00.229806 | 2021-09-09T05:29:15 | 2021-09-09T05:29:15 | 181,280,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import pygame
class bound:
def __init__(self, ai_game):
self.l = 50
self.screen = ai_game.screen
self.color1 = ai_game.settings.bg_color
self.color2 = ai_game.settings.line_color
self.lline = []
self.kkuai = []
self.center = []
self.wid =... | [
"1808827231@qq.com"
] | 1808827231@qq.com |
317167f3c7c18125e0cf23dbcaad084d793b878d | 01fa2aca31eb73a559d192fd29e44350f26a13a9 | /HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_quick/unchecked/putlockersio.py | 66419b703d52903a2d204fa04395dc04459b9fd2 | [
"Beerware"
] | permissive | RandomIntermition/k4y108837s | b4beedeff375645bd4fa9ad348631a9a9f3640b6 | e9115aad49795dfe30a96c278cedaf089abcc11d | refs/heads/master | 2022-05-01T18:45:57.298903 | 2022-03-30T03:41:08 | 2022-03-30T03:41:08 | 109,356,425 | 1 | 0 | null | 2019-11-08T02:20:47 | 2017-11-03T05:36:48 | Python | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: UTF-8 -*-
# -Cleaned and Checked on 10-16-2019 by JewBMX in Scrubs.
import re
from resources.lib.modules import client
from resources.lib.modules import cleantitle
from resources.lib.modules import more_sources
class source:
def __init__(self):
self.priority = 1
self.language = ['en... | [
"github+github@github.github"
] | github+github@github.github |
5512672f54dd48be8600f4d275cce0834a25a09b | c3b31cc2e250a422fe7a33f039214f221eb119e9 | /vectorize_stream_ms/meanshift.py | 83b38f8254095651d921dfe3719f3b1dc897fec5 | [] | no_license | PFAWeb2Control/combined_results | da3c437821b0d7b0870ed9cc67a35033e2d1ceda | 628de4b6dfd1a07a5bcb35529877065543f68866 | refs/heads/master | 2021-01-10T15:59:33.496106 | 2016-04-04T08:06:41 | 2016-04-04T08:06:41 | 51,536,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import numpy as np
from sklearn.cluster import MeanShift, estimate_bandwidth
from sklearn.datasets.samples_generator import make_blobs
"""
ms_algo functions runs the meanshift algorithm
Parameters:
-X[array] is the dataset array.
-bandwith[float] optinal
"""
def ms_algo(X, bandwidth=None):
if(bandwidth==None):
... | [
"irifki@enseirb-matmeca.fr"
] | irifki@enseirb-matmeca.fr |
064ece90e495765c217d7719d587b7b970dec65d | 5dc8d9619acff8fabf712bb5468f5c128a9ca1a6 | /server/repo_viewer/routes/root_api.py | 6ca72d90e1a50de39b8c086f7cdafc9e77bc92d5 | [] | no_license | alexpogue/repo_viewer | 639519d38c96980c1ee961472cee7d16700dec95 | 6237caeb66379e3c207da8f10ffccf698b7aef68 | refs/heads/master | 2023-06-19T23:20:51.334822 | 2021-07-17T06:11:12 | 2021-07-17T06:11:12 | 382,565,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | from flask import Blueprint, render_template, current_app as app
root_api_blueprint = Blueprint('root_api', __name__)
# Pass all unrecognized routes on to Vue (link to index). This ensures that
# localhost:8080/repos/1 isn't caught by flask which would return a 404.
@root_api_blueprint.route('/', defaults={'u_path':... | [
"alex@epogue.com"
] | alex@epogue.com |
2759e3a3b6d6dd05cc8669a8d7351a3a7f6e94ff | 28d3bb53a498034ca3d1e85cff62a02d6ea55cb6 | /python/modules/boilerplates/multiprocess_boilerplate.py | e2cbcadbc40079669e11ca0286d184ab23fb28b4 | [] | no_license | david-rachwalik/pc-setup | fb03abc225aa4a91b3175ea4de07711b0aa9fad1 | 2945a3910a11b714c66d888bfd37f12c93782a15 | refs/heads/master | 2023-04-08T14:58:46.253927 | 2023-03-26T02:42:25 | 2023-03-26T02:42:25 | 175,912,810 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,756 | py | #!/usr/bin/env python
"""Common business logic for multiple processes"""
# --- ProcessEvent Commands ---
# .Run, .IsRunning
# --- ProcessPool Commands ---
# .Close, .RunAsync, .await_results
import argparse
import multiprocessing
import random
import time
from typing import Any, Callable, Optional, Tuple
import log... | [
"david.rachwalik@outlook.com"
] | david.rachwalik@outlook.com |
02efa5171bf526288a659483a58a5270624d8533 | f9cbd4e1e587c8470923b36eeaa688c423e8b671 | /bag/views.py | 3184b57fbab390b238f36617af6f5dfe78fde60b | [] | no_license | waterrot/The-Bookstore | 8a3d06020d859fbb7fe1f153dcdb4333667a51be | 9c5c9fd2bf25d8d7120eedcadabdbabb9137b3ca | refs/heads/master | 2023-07-11T21:06:52.073454 | 2021-08-23T10:50:43 | 2021-08-23T10:50:43 | 368,997,005 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | from django.shortcuts import render, redirect, reverse, HttpResponse, get_object_or_404
from django.contrib import messages
from products.models import Product
# Create your views here.
def view_bag(request):
""" A view that renders the bag contents page """
return render(request, "bag/bag.html")
def add_... | [
"oudloosdrecht@gmail.com"
] | oudloosdrecht@gmail.com |
edd2eb581d44ecbc4d3ec57ebcfa7c00cca0f24f | 9dab93d895d0f496452d91b9e0eba365a7c547f2 | /hw7/problem1.py | a4e32c1622ee8bb0a5d8cbfafabb6e02061a2493 | [] | no_license | codeAligned/CS156 | 8d758175f29015338b4f179f24962847b54e6bce | 25012963985ab325bbd4bdc8a9eba914259a5249 | refs/heads/master | 2020-05-17T20:54:51.935297 | 2014-11-12T05:01:36 | 2014-11-12T05:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,438 | py | import random
import math
import numpy as np
from numpy.linalg import *
from numpy.matlib import *
import matplotlib.pyplot as plt
def dotProduct(list1, list2):
assert(len(list1) == len(list2))
result = 0
for i in range(len(list1)):
result += (list1[i] * list2[i])
return result
def generatePoint():
x = rand... | [
"="
] | = |
df02c56ef4b912cd746c6829da87042a392833f7 | 204920bb1a0b82f8ba3c6c62a35948134ea75c91 | /mediacenter/sickrage/config/cache/mako/config_providers.mako.py | fc656fb1acd079038274247f2f7a2ef9c93ddd9e | [] | no_license | npersia/peppercandy | 3dc21537d0480f904904958e9aa719b89fa83ecf | eb40b8d1fd45bc0c84d393f87156a3275e8e8e03 | refs/heads/master | 2021-05-08T19:53:27.817980 | 2018-02-02T14:37:11 | 2018-02-02T14:37:11 | 119,583,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,676 | py | # -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1517450334.288703
_enable_loop = True
_template_filename = u'/app/sickrage/gui/slick/views/config_... | [
"root@npersia.notebook"
] | root@npersia.notebook |
f02c19ea2e975ced83ef1cd1de312b143c2a9260 | 9adc5ea9d0c04d0ce8538ede4e1ab4f60f0e99be | /prueba.py | 27279352680942ad1260065da85622757a805892 | [] | no_license | Bernix01/super-duper-octo-guacamole | 3750f507ea2c6866e20d7a246a0f96c31fcc963d | 0747bff6dcbf6cc752502eea87eaf8ed1716b0de | refs/heads/master | 2020-05-01T01:26:52.225035 | 2020-04-06T17:25:14 | 2020-04-06T17:25:14 | 177,195,907 | 0 | 0 | null | 2020-04-06T17:25:16 | 2019-03-22T19:09:19 | Python | UTF-8 | Python | false | false | 3,766 | py | import face_recognition
import cv2
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to make things run a lot faster:
# 1. Process each video frame at 1/4 resolution (though still display ... | [
"gbernal096@gmail.com"
] | gbernal096@gmail.com |
8270c36b932e50d4a1c696e191acecdd43eb91a0 | dba2e140304504d6cfa4b07a66ed563103a4d5c7 | /collisions_map.py | 0b71bc161787363fc438babf911317977be5e606 | [] | no_license | SauravHoss/CSci_127 | 0080740d408442bee1fb0c491e34e92a881c5d01 | 951d91f8000d69fc5e6118c7fc46b6f762a8ee6b | refs/heads/master | 2020-03-27T02:16:39.705466 | 2018-11-29T16:35:35 | 2018-11-29T16:35:35 | 145,778,690 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #Saurav Hossain
#09/21/18
#Collision Maps
import folium
import pandas as pd
x = input()
y = input()
cm = pd.read_csv(x)
acm = folium.Map(location=[40.768731, -73.964915])
for index,row in cm.iterrows():
lat = row["LATITUDE"]
lon = row["LONGITUDE"]
newMarker = folium.Marker([lat, lon])
newMarker.add_... | [
"noreply@github.com"
] | noreply@github.com |
e0447323ff3788a5342a42b3eccac4b9439103ca | 4aa68160653f2f21e2e36514ba4b8d9b71695b53 | /study/Python/solutions/rounding.py | a581d26d36d5443a79cf4cc940f17d1c95fe92ec | [] | no_license | ShixiangWang/iLearning | 2bcaaa9fd1b689fb50be5591ffd6d830135b5c36 | 54880c143d2e78924453081447237f2d62b05f7e | refs/heads/master | 2021-09-10T01:48:50.556354 | 2018-03-20T16:16:42 | 2018-03-20T16:16:42 | 106,273,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | n = int(input())
for i in range(n):
a,b = input().split()
a = int(a)
b = int(b)
print(round(a/b)) | [
"wangshx@shanghaitech.edu.cn"
] | wangshx@shanghaitech.edu.cn |
604e26e48551410e05524b6f2d4cec5c440f5fbf | ff1137a7d8f9c01632cf757495e065ec5e3817a2 | /爬虫精进/第9关/第9关 selenium提取网页源代码后用bs解析.py | 900588bc680a8a8384ae9a8b2ae68d504b017129 | [] | no_license | yuqiuming2000/Python-code | 3d5e5d8ba5c5f477b4cfab67b0d63d838eefc591 | b16a6c425d4bf400df6b365d091f56bc8c5c4d34 | refs/heads/master | 2023-06-22T04:22:25.991172 | 2021-07-24T13:49:38 | 2021-07-24T13:49:38 | 389,100,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from selenium import webdriver #从selenium库中调用webdriver模块
import time
from bs4 import BeautifulSoup
driver = webdriver.Chrome() # 设置引擎为Chrome,真实地打开一个Chrome浏览器
driver.get('https://localprod.pandateacher.com/python-manuscript/hello-spiderman/') # 访问页面
time.sleep(2) # 等待2秒
page_source=driver.page_source
print(page_source)
... | [
"76746694@qq.com"
] | 76746694@qq.com |
a91643848f91ff77b84f315f570e17ac65013aae | 1a35a8dc13afd960a2dce93dcdebe3ce1cea8d3b | /Simple_CNN_MNIST.py | 9377a9cdc399c389c9fba29df15fc24dcd36370b | [] | no_license | Su-Bi-su/DeepNeuralNetworks | 2b6c11af0418df0277da9e318ca23516abadb3ac | 2385f739eb1e2e7affde745dc40116220ed24615 | refs/heads/master | 2022-12-12T00:11:17.052074 | 2020-08-31T19:38:16 | 2020-08-31T19:38:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | # Imports
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.datasets as Datasets
from torch.utils.data import DataLoader
import torch.optim as optim
import torchvision.transforms as transform
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter()
# Design model... | [
"sushbhand123@gmail.com"
] | sushbhand123@gmail.com |
7cc3e50af6a48ca74abfc02656c9019972018641 | 499fc7e223551d434582417353203ecd53b7d731 | /DataTypeandManipulation/TypeCasting.py | efab449b81a11562cf61c91d04d3c343f363a5ba | [] | no_license | pravinherester/LearnPython | df53045e4b098a9923e7ecbbeffedb75f6c82f81 | 05c06dccd9ac45fc30cf0675f89f0bb2c7db6644 | refs/heads/master | 2023-08-11T10:12:50.494666 | 2021-06-19T04:44:12 | 2021-09-10T01:20:58 | 338,636,734 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | num_char=len(input("What is your name"))
print(type(num_char))
new_num_char=str(num_char)
print("After type casting")
print(type(new_num_char))
print("Your name has "+new_num_char+ " characters") # This will not break as the Type of new_num_char is String now
#other
#Guess what will print
print(100+float(100.75))
pr... | [
"replituser@example.com"
] | replituser@example.com |
b52593fd7c7518bede893d2dc7db358eb3410878 | e3ee26ebd98c70cf10cac6f9d7b1089be9d4648f | /almonds/tests/test_plane.py | df085a29e47708f6832e4d29357a1de66b308fe6 | [
"MIT"
] | permissive | Daedalus1427/Almonds_Terminal_Fractal_Viewer | cc3435d3fd3c4fcb00a7a79c383921eaacdd939a | 6b27024729f055f2cb5e14ae3ca3cb428ae054bc | refs/heads/master | 2023-07-29T02:36:57.181267 | 2018-09-08T21:52:27 | 2018-09-08T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # -*- encoding: utf-8 -*-
import pytest
from ..utils import range
from ..plane import Plane
def test_empty():
plane = Plane()
assert plane[0, 0] is None
assert plane[-42, -42] is None
def test_filler():
filler = "Empty"
plane = Plane(filler=filler)
assert plane[0, 0] == filler
assert... | [
"hamza.haiken@ordina.nl"
] | hamza.haiken@ordina.nl |
b1992759aac1c1827515339e96e5e12de7faf541 | cf050d296ef4b583217e62a766a9372abd6d21bd | /app/store/quiz/accessor.py | f5b5c67c1765ada7b62a2c6633716ad29158525a | [] | no_license | s-zinchenko/vk-bot-aiohttp | c694b2353fd7bc4afcaa41284ce6039b7dff92e5 | 14324f8d283ec6219d9de5b1012b8d7af6f723f5 | refs/heads/main | 2023-08-30T17:02:11.216582 | 2021-11-15T08:58:33 | 2021-11-15T08:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from typing import Optional
from app.base.base_accessor import BaseAccessor
from app.quiz.models import Theme, Question, Answer
class QuizAccessor(BaseAccessor):
async def create_theme(self, title: str) -> Theme:
theme = Theme(title=str(title), id=self.app.database.next_theme_id)
self.app.databas... | [
"71599070+infantale@users.noreply.github.com"
] | 71599070+infantale@users.noreply.github.com |
f9726b12b88da754e181d635a8d9cafba41d6f50 | 9ee08b2cd530fa2386a0e46d802b96a67d89a2c4 | /assignment-3/creating-restriction-map.py | c43aebd817a30bc1657ff8e66df54344b0a0e323 | [
"Apache-2.0"
] | permissive | snamburi3/bioinformatics-course-CSE5800 | 25bd78f026c70d790f4f87f57e30ebfd85f3afd8 | ff0257ed083c94b3b84e8a6c57801237c70b92bf | refs/heads/master | 2021-02-03T21:29:29.378425 | 2020-02-27T15:04:48 | 2020-02-27T15:04:48 | 243,544,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | #!/usr/bin/python
from collections import Counter
import sys
"""
Given: A multiset L containing (n2) positive integers for some positive integer n.
Return: A set X containing n nonnegative integers such that ΔX=L.
"""
# read the file
filepath = sys.argv[1]
with open(filepath) as fp:
input_line = fp.readline().str... | [
"sandeep.namburi@jax.org"
] | sandeep.namburi@jax.org |
404e1fec9426d0df02e2293539ca923aa238daaa | f76cc721bd6a92889fbf2f5e1e84fa5266054d9a | /Python/config.py | c4cc54fa02a408ff26a84a99b7dad5f906ee177f | [
"MIT"
] | permissive | RealKevinApetrei/Calculator | 3a071a7fcae418cc2abee0e6df58c8e2a5abfeda | 7746691e64793f91b6b1f644a124867488eac21b | refs/heads/main | 2023-01-05T13:58:45.079329 | 2020-10-30T15:52:05 | 2020-10-30T15:52:05 | 306,874,976 | 3 | 0 | null | 2020-10-24T12:35:17 | 2020-10-24T12:06:43 | Python | UTF-8 | Python | false | false | 188 | py | # DEVELOPER CONFIG (EDIT NOT RECOMMENDED)
BUILD_VERSION = "v1.56.24-public"
AUTHOR = "Kevin Apetrei"
PROGRAM_NAME = "Calculator"
"""
CALCULATOR
All rights reserved by Kevin Apetrei
""" | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.