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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87279f6dae5afa6e6c26657b9c58b42e66be2d5f | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/networkx/algorithms/community/quality.py | 2ffe40786d0df3fd548db7595029d83819f2e47a | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 10,608 | py | """Functions for measuring the quality of a partition (into
communities).
"""
from functools import wraps
from itertools import product
import networkx as nx
from networkx import NetworkXError
from networkx.utils import not_implemented_for
from networkx.algorithms.community.community_utils import is_partition
__all... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
79daee4cfbd4add82ae6126da5caf43695320f38 | 4c7729a025c6add065c67b2f975e8f3b2594809e | /HW1/homework1.py | b1f97d5d0946840ed818f0c1129c0402bfe54d9d | [] | no_license | tallestms/Computational_Investing | 1cfd783319a107a5b0f6a984c147094e850d9a14 | 2b1852091826f496d11674da5f49a2c9bfb5fcb5 | refs/heads/master | 2021-03-12T21:48:10.286254 | 2013-11-03T01:06:12 | 2013-11-03T01:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import QSTK.qstkutil.qsdateutil as du
import QSTK.qstkutil.tsutil as tsu
import QSTK.qstkutil.DataAccess as da
import datetime as dt
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
dt_start = dt.datetime(2011, 1, 1)
dt_end = dt.datetime(2011, 12, 31)
ls_symbols = ['AAPL', 'GOOG', 'IBM', 'MSFT']... | [
"talles@gmail.com"
] | talles@gmail.com |
b0512643eccee3ba6cc8d8b017717a3832b9bf32 | e323d8e7afe989a2daad65b8f0a288e024e69e84 | /classifier.py | 2fc5f404b13109cc1783868345edacfbf27d9c02 | [] | no_license | graca-dcc/graca-2.0 | 700fbcc991af67b518ad0540dc3ee12348e8778f | 37c430e08e937bfc86f95436fbbc86352464f048 | refs/heads/master | 2021-01-21T17:53:35.187044 | 2017-06-22T11:17:13 | 2017-06-22T11:17:13 | 91,997,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | # -*- coding: utf-8 -*-
import random
from nltk import FreqDist
from nltk import NaiveBayesClassifier as nb
from nltk import DecisionTreeClassifier as dt
from nltk.classify import apply_features
from nltk.metrics.distance import edit_distance
from reader import read
from preprocess import preprocess
from preprocess im... | [
"gracabot.dcc@gmail.com"
] | gracabot.dcc@gmail.com |
579a8846030030a1b4f846da2163172703055c1e | 3592ef6ceb0e7654dc68fa9879b8c6fe31bcf6d1 | /reveries/tools/modeldiffer/lib.py | aa794920283f2358703cbb6ef0aad11ced9d157f | [
"MIT"
] | permissive | all-in-one-of/reveries-config | a83a8208680d857a155e0a05297bde111d8c6845 | b47a5a6ce05376dffcb893e0823fecbcf1d08e67 | refs/heads/master | 2021-01-04T07:44:45.383431 | 2020-02-13T09:00:51 | 2020-02-13T09:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
import logging
from avalon import io
main_logger = logging.getLogger("modeldiffer")
def profile_from_database(version_id):
"""
"""
representation = io.find_one({"type": "representation",
"name": "mayaBinary",
"parent": version_id})
... | [
"david962041@gmail.com"
] | david962041@gmail.com |
4ff9ebdceafbe22d330788d06fdea227a8394ee1 | 544c02ae44595f8ad8cd33ff71d93bddc01f8e49 | /src/GUI/ControlMainWindow.py | 4c3b7c05548a54e1a57c062697ddafb7618c9656 | [] | no_license | Thoross/PS2-Stats | ca4e9a8e00cbf1acf8df01e19312227ae0b89d94 | c89007f34c5b51da7585fcd50d0b500ec2575620 | refs/heads/master | 2021-01-21T07:39:42.689357 | 2013-10-25T16:48:08 | 2013-10-25T16:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,725 | py | '''
PS2-Stats : Python module for PlanetSide 2 Stat tracking.
Copyright (C) 2013 Brendan Betts (brendan.betts@live.com)
License: GNU LGPL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; eith... | [
"brendan.betts@live.com"
] | brendan.betts@live.com |
684cab33328c39d32af6aef7b6c8af73a6181c68 | 383d34b34e5f73690ea851f78ac31571ed8600f2 | /python/log.py | fddb0405e79b0736cc2ce55694b271ff7a5a4032 | [
"BSD-2-Clause"
] | permissive | wchgit/infrastructure | 6b1c68f3825eca105ccc25da8ddbb3166e7f2dfb | c6299db1877443654a6510c67d127eaf75070206 | refs/heads/master | 2021-01-15T11:11:50.116348 | 2014-09-11T16:09:12 | 2014-09-11T16:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | #!/usr/bin/env python
#coding:utf-8
import logging
import curses
class PrettyFormatter(logging.Formatter):
DEFAULT_FMT = '%(color)s[%(levelname)s %(asctime)s '\
'%(module)s:%(lineno)d]%(end_color)s %(message)s'
DEFAULT_DATEFMT = '%Y%m%d %H:%M:%S'
DEFAULT_COLORS = {logging.DEBUG:4, logging.INFO:2,
... | [
"wchgeek@gmail.com"
] | wchgeek@gmail.com |
bf0ed9214a5348f09e8400bef9fa1eaedeb2800b | a2db83bda49ef23a49949d4730ea6d8b85ea7790 | /tgenv/bin/rst2html.py | e38129ccaeb851156432365cff1535757f8428d8 | [] | no_license | garrettmc/TGWikiTutorial | 18d0577845ec8c22245b5fa23f9e72b7ddf0c5cf | fcf1955cafc34c25986a14b841a9f05d11dd86d0 | refs/heads/master | 2021-01-10T18:37:36.724065 | 2014-12-20T00:46:00 | 2014-12-20T00:46:00 | 28,248,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | #!/Users/garrett/Documents/InfoPogo/GitHub/TGWikiTutorial/tgenv/bin/python2.6
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.
"""
try:
... | [
"garrett@Garretts-Mac-Pro.local"
] | garrett@Garretts-Mac-Pro.local |
8ef80e1dd722b7f1fd3ae65c0ac896ff6de6dc4c | f83729a558721ff17dfc91767e80a689808597cc | /viraloverlay/viraloverlay.py | f0f033d6b9240cfcba7ff7eb7cac860e832cbf6c | [] | no_license | zevaverbach/viraloverlay | 703364c6675a8a54cc696030ebd92fbeb63b3391 | a4a61437fa92ccd2aa7ecaa9c52e1f1a17cb92f1 | refs/heads/master | 2020-04-20T21:50:45.333683 | 2019-03-09T03:09:52 | 2019-03-09T03:09:52 | 169,120,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,027 | py | import json
import math
import os
from pprint import pprint
import sys
from subprocess import check_output
from .config import (
APPEND_TO_OVERLAID_VIDS,
FONT_COLOR,
FONT_SIZE,
TEXT_POSITION_X,
TEXT_POSITION_Y,
MAX_ARG_CHARS,
)
from .custom_types import Numeric
f... | [
"zev@averba.ch"
] | zev@averba.ch |
7bba5d8fd1bd54efec43b3b29ca9afb5a43a8368 | e4a0402114702d8e8b5f4b6f8585200358d4ccf9 | /training/config.py | f54f7fb5c39a88ea8cd47fcfa810de26aaa4b213 | [] | no_license | jbdatascience/self-attention-music-tagging | 2cbd6beb3e357b3d7aefc908cf50a995bd439163 | 2122c265d8c66ade43cff70fc8b585f21756d497 | refs/heads/master | 2023-04-09T05:19:04.936812 | 2020-10-30T03:01:15 | 2020-10-30T03:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | class Config(object):
def __init__(self,
back_end,
conv_channels,
attention_channels,
attention_layers,
attention_heads,
attention_length,
num_class,
batch_size,
attention_... | [
"sanghyuk.chun@gmail.com"
] | sanghyuk.chun@gmail.com |
f49c0d8dfdd6361a5f7158798a5989104e06803c | bfcf59a22724d4b8bafe5674ff7a9ccde8882d62 | /added_8_height_ctr.py | 13b38a24a14a09552dd9c1806162a1601c419915 | [] | no_license | rwqzcq/basemap_storm_plot | cebb74e1edb0c4acb4abe7cb0db59c92c062c571 | bc40ef888d7ef4a3903e810b417a802f9183a5b3 | refs/heads/main | 2023-08-21T07:51:06.712484 | 2021-10-10T10:15:15 | 2021-10-10T10:15:15 | 415,549,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from matplotlib import pyplot as plt
import matplotlib.cm as cm
import pandas as pd
import numpy as np
import seaborn as sns
from tqdm import tqdm
from utils import *
from math import ceil
import os
df = read_file()
def get_qujian(num, _max=1):
"""
获取区间
"""
qujian = range(0, 10, _max)
i = 0
fo... | [
"rwqCCNUimd@163.com"
] | rwqCCNUimd@163.com |
313272182e4a107138a4a0aeb3fd35388773dbb4 | 3fb93b805cd9c6d19f21a443001fec4597f9105f | /scripts/uncertainty_scripts/train_pfrot.py | e11123f11ef5312baed60581c97980407a5f8a7e | [
"Apache-2.0"
] | permissive | neuroailab/curiosity_deprecated | c3a5a28d93b5bb0d923719c8fe289cfc9a9feec3 | 65f7cde13b07cdac52eed39535a94e7544c396b8 | refs/heads/master | 2021-08-15T08:07:34.845737 | 2017-11-15T19:35:45 | 2017-11-15T19:35:45 | 69,374,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,621 | py | '''
Random actions, after index mismatch bug.
'''
import sys
sys.path.append('curiosity')
sys.path.append('tfutils')
import tensorflow as tf
from curiosity.interaction import train, environment, data, cfg_generation, update_step
import curiosity.interaction.models as models
from tfutils import base, optimizer
impo... | [
"nhaber@stanford.edu"
] | nhaber@stanford.edu |
62437b90ea3393cf590c2bf16a858046597430af | 1f633e04dd62dee43197990d49751720dfef3667 | /mysite/settings.py | c2dd6a7a1b86fe32673b896151b9cced3491e1d1 | [] | no_license | addix001/my-first-blog | 24fb80234311d2c2ced752f9319d49640aa9f23e | baac019d4f387637e3662ea063ff79a70a1603a0 | refs/heads/master | 2021-01-23T02:48:31.278600 | 2017-03-24T04:06:46 | 2017-03-24T04:06:46 | 86,026,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"jhlee@addix.co.kr"
] | jhlee@addix.co.kr |
3f9563afb634994641bf0cef0a0fbe0ead53ee7f | 3076fc0c3ceb285cc2db6f0d19f045c274adcceb | /[Samarinda]_Eramart/eramart_antasari_info.py | ed95b6a7f3b265937d96d1aa1fb67b332876aa0a | [] | no_license | evosys/CSVConverter | 121b0c23e18cf59b939352b751be5e8ce12b4999 | 6026870975001f34608fc1303ed922d0f8e474ef | refs/heads/master | 2020-03-17T12:40:14.406236 | 2019-02-15T08:41:51 | 2019-02-15T08:41:51 | 133,597,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# @Author: ichadhr
# @Date: 2018-10-08 16:44:24
# @Last Modified by: richard.hari@live.com
# @Last Modified time: 2018-10-12 16:39:10
_appname = "CSV Converter [ERAMART ANTASARI]"
_version = "1.0.1.0"
_by = "richard.hari@live.com"
| [
"ichadhr@gmail.com"
] | ichadhr@gmail.com |
616872fb1ce3082ace8c174bd99afa40e1fef1d8 | eb34fba79aceb38feaa78e148e3051603ae82474 | /Sanity/Chapter1.py | a985aa0e12c281bb2f08a7a4d0e3b6e40a53d004 | [] | no_license | RakeshDevopsPy/com.theautomatedtester | a5202c58db4451ca0fd607bec01cfecc482b77d9 | acc21172236c141b4030ba6c25d296772b21ae25 | refs/heads/master | 2021-03-29T00:03:01.335392 | 2020-03-17T07:40:09 | 2020-03-17T07:40:09 | 247,907,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from selenium import webdriver
import time
driver=webdriver.Chrome()
driver.get("http://book.theautomatedtester.co.uk/")
driver.maximize_window()
time.sleep(2)
driver.refresh() | [
"Tejasree.Krishnammagari@landisgyr.com"
] | Tejasree.Krishnammagari@landisgyr.com |
751c4f954046428b61efaafd22a8356d4489ddcf | 7e9c0243c48bbf0ddca9779ef03fc13bb9ac0496 | /t20.py | 12d2b72ba0d2fda0af04cbc0ed30cab0ad37b4ce | [] | no_license | suchismitarout/tt | c47f1f59659d2678392e2f0c3aaee8cfaa147ff4 | 54a5b625a82dab854b679050d67e340e74d71edd | refs/heads/master | 2020-09-16T20:25:34.146741 | 2019-11-25T06:52:07 | 2019-11-25T06:52:07 | 223,880,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py |
with open("foo.txt", "r") as fr:
print(fr.name)
print(fr.closed)
print(fr.mode)
| [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
e244afe21842d52ced891cd2c82f5a5dc61e1701 | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /course_DE/Udacity-Data-Engineering-master/Data Pipeline with Airflow/Production Data Pipelines - Exercise 1.py | 2189c509168783ee7e6770e7df5d77f68ffca7c2 | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #Instructions
#In this exercise, we’ll consolidate repeated code into Operator Plugins
#1 - Move the data quality check logic into a custom operator
#2 - Replace the data quality check PythonOperators with our new custom operator
#3 - Consolidate both the S3 to RedShift functions into a custom operator
#4 - Replac... | [
"f339339@gmail.com"
] | f339339@gmail.com |
12a195aa8d4e62c4e95cde855a819abf7d531f49 | f73a20969a41cc5ff51c449a5c8bc9f066251fe7 | /train.py | 6483ec54b5e49fa549ee98a7a97999939f7ffb24 | [
"MIT"
] | permissive | eungbean/knowledge-distillation-cifar10 | af092d08df3a289835b6868c0dc6fddccf936581 | 683379804c8724d097a845cee85f130b6767dbd7 | refs/heads/master | 2021-12-07T02:25:12.813212 | 2019-10-30T01:21:26 | 2019-10-30T01:21:26 | 218,184,257 | 1 | 0 | MIT | 2021-09-08T01:23:11 | 2019-10-29T02:07:34 | Python | UTF-8 | Python | false | false | 17,514 | py | """Main entrance for train/eval with/without KD on CIFAR-10"""
import argparse
import logging
import os
import time
import math
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import StepLR
from torch.autograd... | [
"eungbean@yonsei.ac.kr"
] | eungbean@yonsei.ac.kr |
229d541d8fb546628d890430fc9fbd401743dc1c | 8043ec8cc28b69f1850d5d5f0cafcd2a43ce0eab | /docs/conf.py | e8d5c7666af5c51922fdb76f65a66713d6631143 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ach0o/boilerplate_flask_sqlalchemy | d0ab9b8ae80617de1c3e7b39525f70e4a39bd18b | 9a6a89e359b446651dff5064e4b37b8bc70fdcc1 | refs/heads/master | 2023-02-10T15:46:17.576226 | 2019-07-28T10:32:01 | 2019-07-28T10:32:01 | 165,043,068 | 0 | 0 | MIT | 2023-02-02T06:32:16 | 2019-01-10T10:52:41 | Python | UTF-8 | Python | false | false | 5,656 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"88soldieron@gmail.com"
] | 88soldieron@gmail.com |
717a50a4fc240d9760bfeec41f435549c6296ef7 | 50fc02b2d56860ed47987ad79b71da5fcabc4865 | /tools/detector_v2.py | f038242d70f791f46f88eab788ecd632cbe5a77a | [] | no_license | jxi24/TrackML | b63e92a394511b9cb70f71e054b90aa2970d8d23 | 5cd63048fcbc630392ec2588e4fe2066025249d0 | refs/heads/master | 2021-06-25T18:07:04.149287 | 2020-11-04T01:06:22 | 2020-11-04T01:06:22 | 134,465,252 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,899 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
class Detector:
def __init__(self,detector_file):
self.detector = pd.read_csv(detector_file)
def _load_element_info(self,volume_id,layer_id,module_id):
volume = self.detector['volume_id'] == volume_id
layer = self.... | [
"jackadsa@gmail.com"
] | jackadsa@gmail.com |
6376c84e434aa382680dcd27d2d6633c72ff2c51 | 8c681ef14f5447c83c96c28f4b458e823afd91a9 | /notes/models.py | 38998f03e18a654311e184bf375c99a9c5a50375 | [] | no_license | saurabht16/Note_App | 03d811016bdc3813a8327fa5356044c6cb7dd008 | e69ff4e7a8dfea2b49971705ce098e8c7da4d3f4 | refs/heads/master | 2020-03-30T06:34:14.417415 | 2019-01-15T15:19:18 | 2019-01-15T15:19:18 | 150,871,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.db import models
# Create your models here.
from django.db import models
from django.contrib.auth.models import User
class Notes(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
labels = models.CharField(max_length=400)
created_by = models.ForeignKe... | [
"tewary.saurabh@gmail.com"
] | tewary.saurabh@gmail.com |
47a1085793c09d8ff86cf8e73980e0bcd9595eeb | 43461f999228079c9bfee03f0e4043f08426051f | /python爬虫开发与项目实战笔记/通用爬虫/day10/code/SNBook/items.py | cc4533585eccbe86d3f6186bcea51a5c1d717dbc | [] | no_license | MapleStoryBoy/spider | f9af844ae9812fe21141060213ac2677e719ac73 | b014d81d52805f9317e85b66024d047e73d59053 | refs/heads/master | 2020-05-21T18:27:50.585790 | 2019-07-12T10:11:58 | 2019-07-12T10:11:58 | 186,132,575 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class SnbookItem(scrapy.Item):
# define the fields for your item here like:
parent_type = scrapy.Field()
parent_href = scrapy.Field()
p... | [
"MapleStoryBoy@163.com"
] | MapleStoryBoy@163.com |
107ba4ec948047de9c4b2d500a7aba9b07f2cc54 | 780011f6f6f8bfea1073b2e2c9762891776f552a | /2. face training.py | 0753972434297414b9de6bf7d9cf237d33dcc17e | [] | no_license | cuongnv70/FaceRecognition | a5f4fcd3ebc3f76a32ced73e55b6d7241060440b | 9777adb9f8a18ffd154f26695f8a3e5c6b832008 | refs/heads/main | 2023-01-09T23:33:51.873197 | 2020-10-31T07:46:44 | 2020-10-31T07:46:44 | 308,830,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | ''''
Đào tạo nhiều khuôn mặt có trong dataset
==> Mỗi khuôn mặt phải có một ID số nguyên bằng số duy nhất là 1, 2, 3, v.v.
'''
import cv2
import numpy as np
from PIL import Image
import os
# Đường dẫn ảnh khuôn mặt
path = 'dataset'
recognizer = cv2.face.LBPHFaceRecognizer_create()
detector = cv2.CascadeClassifier("... | [
"noreply@github.com"
] | cuongnv70.noreply@github.com |
607e3e345e09801c6c8e70fac26134402c8085e2 | ae4106aaf7b9b1f2ec80f592f2224f3b1d73661a | /seminar01-localization/sdc/cycloid_movement_model.py | d89a98c0f8cd2100d0f578416cb42bc0a97d8f25 | [
"MIT"
] | permissive | yandexdataschool/sdc_course | 992a6571245b2b4457c87e8e8950630dcc350dba | 26908bdfabae3e4d798785ac6f971641540a2956 | refs/heads/spring2022 | 2022-05-05T00:34:20.827953 | 2022-05-04T02:28:13 | 2022-05-04T02:28:13 | 127,633,189 | 128 | 63 | MIT | 2022-04-06T09:58:43 | 2018-04-01T13:46:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,639 | py | # -*- coding: utf-8 -*-
import numpy as np
from .timestamp import Timestamp
from .movement_model_base import MovementModelBase
class CycloidMovementModel(MovementModelBase):
"""Реализует движение автомобиля по циклоиде"""
def __init__(self, x_vel=0, y_vel=0, omega=0, *args, **kwargs):
"""
:par... | [
"siri3us@yandex-team.ru"
] | siri3us@yandex-team.ru |
3efa87d0b1435b7ff792fe5481378d70cc3f6640 | 8649511435eb30d692471088a1b7c820f42343fc | /textbox/data/dataset/multi_sent_dataset.py | 683841c9fdb90cebe60c3397819ed9d08e527c31 | [
"MIT"
] | permissive | Richar-Du/TextBox | 3858cf0e43fcce0d879c8485df9fed6eda3879c6 | bb828118665e5a1183318ea5ba9368db052fb540 | refs/heads/main | 2023-03-24T15:35:05.791439 | 2021-02-24T01:55:00 | 2021-02-24T01:55:00 | 343,679,215 | 0 | 0 | MIT | 2021-03-02T07:11:17 | 2021-03-02T07:11:16 | null | UTF-8 | Python | false | false | 7,476 | py | # @Time : 2021/2/3
# @Author : Tianyi Tang
# @Email : steven_tang@ruc.edu.cn
"""
textbox.data.dataset.multi_sent_dataset
########################################
"""
import os
from textbox.data.dataset import AbstractDataset
from textbox.data.utils import tokenize, split_data, build_vocab, detect_restored, dump_da... | [
"1020139164@qq.com"
] | 1020139164@qq.com |
2224c4722a23ff2f4f9c86984146a37d9ca3749e | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/media/cast/rtp_receiver/rtp_parser/rtp_parser.gyp | ade15eebff42e9f6af9baf7ca1709eba30e3b3e3 | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 569 | gyp | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'cast_rtp_parser',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)/',
'<(DEPTH)... | [
"ronan@fridu.net"
] | ronan@fridu.net |
0fe346359edc276de2c737c0eb967f27d570aafe | 6ac77834909c485686638d27c0bf41e6d1765cf7 | /src/mapping/writer/mysql_hbase_hawq_writer.py | 79911c5ab6d7c61ed2a50ecbcdabf8ecb5943d18 | [] | no_license | YangXinNewlife/gears | 4144e451861efb0f3ae1d738eb5fcd6cec46a833 | 486b1ce5a7b8d8682bb1394be8f5dd6ae0fca837 | refs/heads/master | 2021-01-20T01:41:30.074696 | 2017-05-26T08:17:45 | 2017-05-26T08:17:45 | 89,316,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # -*- coding:utf-8 -*-
__author__ = 'yx'
from src.mapping.writer.writer import Writer
class MysqlHBaseHawqWriter(Writer):
def __init__(self):
pass
def convert_data_type(self, data_type):
pass
| [
"yangxin@zetyun.com"
] | yangxin@zetyun.com |
e9f8df1e669df7bb971e196bef4e8f0b517d633e | ca17bd80ac1d02c711423ac4093330172002a513 | /goodyhandy/FirstMissingPositive.py | 9988bcba209286d3584cc6e41ed5e95b6469f9f4 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution(object):
def firstMissingPositive(self, A):
"""
:type nums: List[int]
:rtype: int
"""
length = len(A)
for i, num in enumerate(A):
if A[i] != i + 1:
while A[i] != i + 1:
if A[i] <= 0 or A[i] > length or A[A... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
8ead2cc76bbb2d6fc24ed27579b4c369e17df37c | af6e4fbc7ccf3a19322d0ba8bda05ece43ea7205 | /sample.py | 8cda191161fa4974ce01ad25b6ea18d6f513d0c7 | [] | no_license | senaprojects/YOUTUBE_VIDEO | bc3d0782693c9589054955629fb075f6c10855c8 | 3d2b4d8ae44a5e35a927b165ed25ee6c4aaa8fc1 | refs/heads/main | 2023-08-19T04:39:11.820006 | 2021-08-23T04:23:42 | 2021-08-23T04:23:42 | 398,971,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import pywhatkit as kit
y=input("Enter the playlist :")
kit.playonyt(y)
| [
"noreply@github.com"
] | senaprojects.noreply@github.com |
1607cc2e583da0dc2499c9cb382f3d5e35ea2501 | 80bb17c3d9ccece1319b991f4f26740c460ad5f5 | /hw06/emacs/emacs.py | 0adaf3267b8c80d29b2eb3369766c677c4198753 | [] | no_license | jozdashh/agra | 4754a7c2eaff0374622a36fbf721a0950cac1644 | aa862971f133d03b30a7d37df421d778e56de813 | refs/heads/main | 2023-05-29T12:30:55.235743 | 2023-04-27T19:54:21 | 2023-04-27T19:54:21 | 350,473,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # Estudiante: Josue Peña Atencio
# Código: 8935601
# Fecha: 04/11/2018
from sys import stdin
def kmp_prefix(s):
n = len(s) ; P = [None]*n
i = 0 ; j = P[0] = -1
while i < n-1:
while j> -1 and s[i] != s[j]: j = P[j]
i += 1 ; j += 1
if s[i] == s[j]: P[i] = P[j]
else: P[i] = j
return P
def kmp_search(x, y, j... | [
"noreply@github.com"
] | jozdashh.noreply@github.com |
b84c3ca4482e26c4f3ab2a79107e873f9b1656c5 | b3879bc761ac38dab903da57c4061ad79fd70c6d | /курсы пайтон модуль 3/задание 23.py | 14e81b84571b42392d7be1c1572eee18530c2954 | [] | no_license | Ruslan5252/all-of-my-projects-byPyCharm | 4df70cc3a31c4a5d97560fa858a706edcc856299 | 817d5f711408590ea141590ae52c6d888dfa2015 | refs/heads/master | 2023-05-03T01:06:30.156731 | 2021-05-29T13:51:16 | 2021-05-29T13:51:16 | 371,970,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | a=1
max=0
while a != 0:
a = int(input("введите число"))
if a>max:
max=a
print("максимальное значение",max)
| [
"r.u.s_2000@mail.ru"
] | r.u.s_2000@mail.ru |
2d858cf00a434b0b52a700a9a1d5e9e02287d8f5 | 51de952d3bfdadaef0ea9ea72d995fb44322f094 | /py_codes/1_Two_Layer_MLP/MLP.py | e44d47ea2766a329ba25a7fec7c5e422fcf6e3a1 | [] | no_license | 1437363934/MNITS-Classification-with-Neural-Networks | a72075396123ca52e71d1e4ea6a6cb91a04887c1 | 700d7a952a92f4e1e15039fdca8b809d1584d98c | refs/heads/master | 2022-12-23T19:29:52.543426 | 2020-09-28T15:39:17 | 2020-09-28T15:39:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | import torch
import numpy as np
from torchvision import datasets
import torchvision.transforms as transforms
from torch.utils.data.sampler import SubsetRandomSampler
# how many samples per batch to load
batch_size = 20
# convert data to torch.FloatTensor
normalize = transforms.Normalize((0.1307,), (0.3081,)) # MNIS... | [
"noreply@github.com"
] | 1437363934.noreply@github.com |
0650b52e5ba0f028a8b022e6f1bd71a79ff90fd2 | 7b14ef3fa1890c89a9f63825f2fdaaf022161c8d | /rialtows/dto.py | 021508dd4282b79e41bb5d6aa17c77e3dfbc260f | [] | no_license | heid9001/okexbinance_ws_api | ad24ac32996b1fc42fb764886d95fabfbc5627fc | 26f315d9580b24aa8c4a81ce5c6ee54a43062512 | refs/heads/master | 2020-08-12T17:06:34.435805 | 2019-10-13T11:14:24 | 2019-10-13T11:14:24 | 214,806,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from .core import BaseDto, Mapping
import arrow
class ResourceDto(BaseDto):
def __init__(self, data, name):
super().__init__(data)
self.name = name
def __str__(self):
return "%s [ask=%.2f, bid=%.2f]" % (self.name, self.ask, self.bid)
def __repr__(self):
return str(self)
... | [
"heid9001@gmail.com"
] | heid9001@gmail.com |
8bc523a3d7f94a6554ba21f8ade1ce2b4de1c047 | 33643fa32b68acb68154d6e76f79fca436381482 | /resources/examples/test.py | 68453ef707231ed6571de35fd3c211b4c1b5ceb4 | [
"Apache-2.0"
] | permissive | R0X4R/turbo-intruder | 3f562ad2e271d27a471f1113c019a37d58c4acb6 | 8535b2e2edee5f99a64526df3fc1e8466bcb04b6 | refs/heads/master | 2020-07-23T23:58:05.326742 | 2019-09-03T08:48:37 | 2019-09-03T08:48:37 | 207,743,824 | 1 | 2 | Apache-2.0 | 2019-09-11T06:54:31 | 2019-09-11T06:54:27 | null | UTF-8 | Python | false | false | 933 | py | # This is just for making sure the engine works during development
# Launch with java -jar build/libs/turbo-intruder-all.jar resources/examples/test.py /dev/null z z
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint='https://hackxor.net:443',
concurrentConnections=1,
... | [
"albinowax@gmail.com"
] | albinowax@gmail.com |
b532f132682d481fbb804c4ecb261e5bc17deb2f | b6917327bb1b2bdc06904cd0e0b60f693d0aabf1 | /src/Testing/Python/pyBlocks.py | 8b6f970f06998c2bda194f5ef4196ba12cd8a59f | [] | no_license | embprg2000/SoftDefinedBlocks | 9789ffc54473ff08369f95ea51c7d26c1f51b16b | 3881b62a15f1ba7d3ab9116f6da6038132731172 | refs/heads/master | 2020-03-27T07:27:16.590182 | 2018-08-26T16:50:29 | 2018-08-26T16:50:29 | 146,192,058 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,465 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 17 16:15:51 2016
@author: evert
"""
"""
Test lab for FM decoding algorithms.
Use as follows:
>>> graw = pyfm.lazyRawSamples('rtlsdr.dat', 1000000)
>>> gtune = pyfm.freqShiftIQ(graw, 0.25)
>>> bfir = scipy.signal.firwin(20, 0.2, window='nuttall')
>>> g... | [
"noreply@github.com"
] | embprg2000.noreply@github.com |
b313f11a5449630aeac14c8c12fc7b7444fdc85a | 2cef313487b916ad27ee668e5d34da6670c0c27a | /parsers.py | 2e530a1b4ac6524047ce1ec3241c98fdb2ed418c | [
"MIT"
] | permissive | hgkahng/pysc2-defogging | 52b43d38dd197315da4858fe8029c79d6c11d20b | dcb622c874fcc8f004ad0cab7ca94f33d44d5893 | refs/heads/master | 2023-01-08T13:46:11.588111 | 2020-11-01T13:50:25 | 2020-11-01T13:50:25 | 309,101,715 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | # -*- coding: utf-8 -*-
"""
1. ParserBase
2. ScreenFeatParser
3. MinimapFeatParser
4. CustomSpatialParser
"""
import os
import shutil
import collections
import numpy as np
import scipy.sparse as sp
from absl import flags
FLAGS = flags.FLAGS
class ParserBase(object):
"""A... | [
"hgkahng@korea.ac.kr"
] | hgkahng@korea.ac.kr |
d5a6333eedb40b22f342c751d3803cda984846d0 | 33cbc171f4f2f6e1493eed6da6f2b8e80d284747 | /respuestas_encuestas/admin.py | a696dbb5c6d3c67e9f906dd285e71199994bddb0 | [] | no_license | mauronet/crm | 963aeddd4cdfa1d44eb2add3e6d0cfaa9f72cd8f | 972306a89b3c8978975408d0b27269c8f87639d3 | refs/heads/master | 2020-05-21T00:26:49.812126 | 2014-09-07T13:12:09 | 2014-09-07T13:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.contrib import admin
from .models import RespuestaEncuesta
class RespuestaEncuestaAdmin(admin.ModelAdmin):
list_display = ('respuesta', 'votos')
admin.site.register(RespuestaEncuesta, RespuestaEncuestaAdmin) | [
"mrodrigg@gmail.com"
] | mrodrigg@gmail.com |
5821bf541b8ad5152c0a740e1115539500cdd973 | fd4a26ef38bf4fa91af57884fbcea7a0230c097a | /CrowdSupplyDotComScraper/CrowdSupplyDotComScraper/settings.py | dc4ae09126cbdcc3fe52e76d304a732e12c04d2f | [] | no_license | kelvingakuo/Crowd-Funding-Bots | 260cbf89cdb5d1a9c129a0089ba4c6738c32b992 | 00ba5a6fa5f8b2378cd5e27336a2df82902bed43 | refs/heads/master | 2020-03-14T08:38:55.588095 | 2018-04-30T22:41:25 | 2018-04-30T22:41:25 | 131,529,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
# Scrapy settings for CrowdSupplyDotComScraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthed... | [
"kelvingakuo@gmail.com"
] | kelvingakuo@gmail.com |
a964f2d2d1b7c201506d4e805323c0516c2c46f3 | 47be39fab9443d66a26228fd6966ee67f802da8d | /models/user.py | d91a269e00716b49096cdf3324a048a971b28b1f | [] | no_license | JosueLC/trinos-api | 4689cd739d802e0026b36a99cfd4ea5b3ae5af3b | 5fe043e52428d2288128ff2557f5a74cb5788fcb | refs/heads/main | 2023-08-28T04:44:12.917318 | 2021-10-24T22:50:39 | 2021-10-24T22:50:39 | 420,283,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #Python packages
from typing import Optional
from uuid import UUID
from datetime import date
#Pydantic packages
from pydantic import BaseModel
from pydantic import Field,EmailStr
#Classes for User
class UserBase(BaseModel):
id: UUID = Field(
...,
title="User ID"
)
username: str = Field(... | [
"josueflopez@msn.com"
] | josueflopez@msn.com |
0024cfc6a2431b74278efd18cc57d34ba22a2b61 | 414c5a2d46ad90b6d7102fd7a4339b086678a3c2 | /truthyvalues.py | 807c5754a5a9e62837a64ed0dd9f66ddcee3f8b3 | [] | no_license | paulmcaruana/ProgramFlowControlInPython | 565446f836fa2f93a29e12f15b4cb78a7ae00105 | aefc544e6fc48fc0d7bb82fc3ee46fa0f3f80c33 | refs/heads/master | 2022-04-21T06:32:06.737509 | 2020-04-25T13:53:27 | 2020-04-25T13:53:27 | 258,787,775 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | if 0:
print("True") # 0 always evaluates to false as you will see in the output
else:
print("False")
name = input("Please enter your name: ")
# if name: It is better to write this as below until very comfortable
if name != "":
print("Hello, {}".format(name))
else:
... | [
"paul@beambient.co.uk"
] | paul@beambient.co.uk |
e82ef1fcf015a4fc0e894feb02466424a8fb1b62 | d21bcfd92d8bbc4f214af29e801b9929d3ab11ef | /winningstrat_2016.py | fbc47a816d33c84e16cee2293c3226539e648143 | [] | no_license | rvictordelta/practiceproblems | 47dfd46ac1eda11769aab10067be3ce6ab012435 | 362b374b3c275870e909c6c2e6624585250ca825 | refs/heads/master | 2020-08-28T15:41:28.691037 | 2019-11-04T15:02:00 | 2019-11-04T15:02:00 | 217,743,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | t1= """100
5
4
0 1 0 0"""
t2= """140
20
8
0 0 0 1 0 1 1 1"""
t3 = """100
5
4
1 1 1 1"""
ts = [t1,t2,t3]
def martingaleyeah(s):
l = s.split('\n')
m = int(l[0]) # starting amount
b = int(l[1]) # first bet
flips = [int(x) for x in l[3].split(" ")]
for flip in flips:
if m < b: # assuming ... | [
"rvandusen@4170trading.com"
] | rvandusen@4170trading.com |
febfe65ae8c61e9e2ee00a30f5a65ef5d45eb9df | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat/tests/test_sahara_templates.py | 4a887b85c2db0dce48627fc26ea234c8235c9a1b | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 13,120 | py | # Copyright (c) 2014 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
7772681d2d62d42390bb457998a5fe0649424b02 | d1247c530074efccc62f7538eb8cc354f61a8d38 | /genotype.py | 542e097f76579c61f8a425068c989c854ba3de59 | [] | no_license | Gudzy/ga_segmentation | 9b1c4ef8a0bac57806c7934dc35e1e36db16fa67 | 993dfdfc0543b28a13994c6da022c0ad337b150c | refs/heads/master | 2021-03-14T17:38:11.439099 | 2020-03-12T08:43:31 | 2020-03-12T08:43:31 | 246,780,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import numpy as np
from numba import jit
from skimage import io, color
import queue
from tqdm import tqdm
NEIGHBORS = np.array([(0, 0), (0, -1), (0, 1), (-1, 0), (1, 0)], dtype=np.int)
def _graph_to_genotype(image, graph):
que = queue.PriorityQueue()
genotype = np.zeros(len(graph.keys()), dtype=np.int)
... | [
"gustdyn@gmail.com"
] | gustdyn@gmail.com |
016d2f4b0007f8a40384dcd7a57e8d67f5a5f01f | 7708c2526947a86d064fc8b07a579baa332c5575 | /Database/build_db_datasets.py | b0b7c3d3ff443564267cc2ad0962d02df56a6c71 | [] | no_license | shunsunsun/Cell_BLAST-notebooks | d622aea190015e8b76207866889dddbd4dd333a8 | 9baebb4311eaf71670f4852238db7b91157e71b1 | refs/heads/master | 2022-01-19T05:05:30.269257 | 2019-04-21T13:30:42 | 2019-04-21T13:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | #!/usr/bin/env python
import os
import numpy as np
import pandas as pd
import mysql.connector
from utils import nan_safe
def generate_datasets_meta():
dataset_dict = {
item: [
file for file in os.listdir(item)
if file.endswith(".pdf") and file != "peek.pdf"
] for item in o... | [
"caozj@mail.cbi.pku.edu.cn"
] | caozj@mail.cbi.pku.edu.cn |
45f0d40c005fd82f923f1c618aed8a16151bee5d | 4efa04e98563e08dd1618525003e5022220780ec | /pypolybuilder/Exclusions.py | d1e4177a838d5d2b1bc3ac4101d208dbcb41e686 | [
"MIT"
] | permissive | lgjun/pypolybuilder | 0bf9c6cde1cbc709f41e943c29e23d04390caec7 | af0e1801305080501b18e45d2383e3466865f19d | refs/heads/main | 2023-03-15T06:38:50.499010 | 2021-03-03T21:57:39 | 2021-03-03T21:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | '''
Created on Apr 20, 2015
@author: vitor
'''
class Exclusions(object):
'''
classdocs
'''
__exclusion_list = None
__exclusion_extra = None
def __init__(self, exclusion_list, exclusion_extra):
exclusion_list.sort()
self.__exclusion_list = exclusion_list
self.__exc... | [
"bruno.horta@gmail.com"
] | bruno.horta@gmail.com |
7bf8d2a366551d6774730e60de1d62b78af16d52 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_108/125.py | c96c54037ce532c493eb7d9d77e0a2a5ad1f93b3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | #!/usr/bin/env python
import bisect
import sys
from collections import defaultdict
def main(args):
finname = '%s.in' % args[1]
foutname = '%s.out' % args[1]
with open(finname, 'r') as fin, open(foutname, 'w') as fout:
T = int(fin.readline().strip())
for i in xrange(1, T+1):
num_... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6ad1d197d98aacc51bf406e2a0f6e4a567c7be4c | 0c96fa82fed9f5c11deb18c9c13225f9debb2134 | /env/Scripts/django-admin.py | 9e3ccf83f5865ffddd389d1100daec6c34a80d80 | [] | no_license | Amoney22/my-first-website | 71405be5b07e6ef2d905a1b3c472728b9f753a52 | 74e57142cc89f10b922af89dc6cfea6f1b95d491 | refs/heads/master | 2021-01-15T10:57:50.344939 | 2017-08-10T21:15:57 | 2017-08-10T21:15:57 | 99,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!c:\django girls tutorials\env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"seriesofillusions@outlook.com"
] | seriesofillusions@outlook.com |
62ceb76be57c25a2e488327b27172132967004f9 | 3a13430d694f7c159f73ff91f2cc1d6e46cec5ca | /season/welcome/migrations/0003_remove_order_date.py | 73e1f1c834023be39d7eaa932c004508fcf4f0ea | [] | no_license | drand23andrey/season-shop | 4c236bbd0ea7588db5fcf7de48623fb46d050131 | cb99280e6361a97a8c31485efe44007310131688 | refs/heads/master | 2022-12-01T00:05:57.943736 | 2020-07-09T15:31:35 | 2020-07-09T15:31:35 | 175,046,691 | 1 | 0 | null | 2022-11-22T05:55:51 | 2019-03-11T17:04:25 | JavaScript | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.0.5 on 2020-04-22 14:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('welcome', '0002_remove_order_last_name'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='date',
... | [
"dushkakruf@mail.ru"
] | dushkakruf@mail.ru |
d6ad3b3fcb33608098e33669ace7929712eed35e | ab817e17b79835bdee1e6985520daaf43ded4f85 | /pluginlib.py | f500e09d5e3e6c5d1ba0c39f0a7ba6369a03eb3b | [
"MIT"
] | permissive | thodnev/pluginlib | c36e1b14b6b74c0ca6cf5b283d92f326b00e20c0 | cfeefc5e9bebccef3c22e6f9dfc5583afe0ed559 | refs/heads/master | 2020-06-13T04:02:13.308062 | 2016-12-03T04:46:19 | 2016-12-03T04:46:19 | 75,450,437 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | '''
pluginlib: use dynamic python plugins with natural inheritance model
Usage:
1. Define plugin root class by subclassing PluginBase:
class SomeCls(PluginBase):
... some code here ...
2. Write some plugins, that inherit from plugin root:
class MyPlugin(SomeCls):
... extend/add/overwrite met... | [
"noreply@github.com"
] | thodnev.noreply@github.com |
1fceeeb430f33f411c419f486b38d0774cab3965 | 838965f73c5ae0d47a68512e431e18200a21097d | /curriculum_vitae/models/project_experiences.py | ae796f8be1d10b7ebb30b58e1759424416b2ee48 | [] | no_license | whitestar592020/Odoo13Development | 61851bc0afd41aef4f06975f477d69a6e6e5d706 | f96745dad88484567511ed07e9f4bd07b6b3afd6 | refs/heads/master | 2023-01-16T02:27:21.814952 | 2020-11-30T06:47:32 | 2020-11-30T06:47:32 | 298,996,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from odoo import models, fields
class ProjectExperiences(models.Model):
_name = 'project.experiences'
image = fields.Binary(string="Image")
name = fields.Char(string="Project Name", translate=True)
position = fields.Char(string="Position", translate=True)
responsibilities = fields.Char(s... | [
"noreply@github.com"
] | whitestar592020.noreply@github.com |
a7db53021d314e8a8940afd0b9d509d6c3431464 | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/wilight/light.py | 3236b3b3851a234fc1d369afef91f7753338940f | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 5,995 | py | """Support for WiLight lights."""
from pywilight.const import (
ITEM_LIGHT,
LIGHT_COLOR,
LIGHT_DIMMER,
LIGHT_ON_OFF,
SUPPORT_NONE,
)
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
LightEntity,
)
from homeassistant.... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
5b9bfc13c5a323f114e11e4cc09c5ee13fb5f784 | 2128204364199ce5a0b8f090615c75af541666ef | /Attendance.py | 3fd550bc925001aa74423444243d32945ebdc48a | [] | no_license | k4kunalll/Attendance-System | 5094abb1b5b62cc8263c90a10b2672ae98620ea0 | 85c5d64ef3a3b8c8849516e291ff6981fdb7c3e7 | refs/heads/main | 2023-01-24T18:55:43.501871 | 2020-12-05T10:31:57 | 2020-12-05T10:31:57 | 318,759,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,376 | py | import os
from PIL import ImageTk, Image
import csv
from functools import partial
from tkinter import *
import numpy as np
import pandas as pd
import paramiko
from scp import SCPClient
import time
from sklearn.preprocessing import Normalizer
import mtcnn
from PIL import Image
from os import listdir
from os.path import ... | [
"kunalsahuvic@gmail.com"
] | kunalsahuvic@gmail.com |
701ad972f588196ecf39150a4070c732b52007fe | 0badae2ddd1fe30db5ccf1b9cbbc0fdbd7df42e4 | /leetcode/containsDuplicates.py | a0db15741676bb3ee080fcf6b034556a2ce93def | [] | no_license | danny128373/LeetCode-Challenges | 17fe336a1076914e72d2ce9b77aa2f2b24305ad4 | 8d332d473e7231cf1dff9faebe766f7779b61fdd | refs/heads/master | 2023-01-08T23:45:06.149917 | 2020-11-20T17:00:44 | 2020-11-20T17:00:44 | 306,706,338 | 0 | 0 | null | 2020-11-20T17:00:46 | 2020-10-23T17:40:48 | Python | UTF-8 | Python | false | false | 241 | py | class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == len(set(nums)):
return False
else:
return True
| [
"daniel.meza29@yahoo.com"
] | daniel.meza29@yahoo.com |
c517166cc1f3487953498d678a31ad7fb19e3f58 | 11aaa9f4fccab3f05deddb092fc87fd24f08d643 | /music/views.py | fd6f24bc78f369241153d5583e244dbaaacd3efe | [] | no_license | prorammerarc/Django-MediaPalyer | 3282499c739670e74b742932ba133db086e97dcb | b97bedcd662ceff83eb645507cc04deb4956748f | refs/heads/master | 2021-05-11T21:05:12.025427 | 2018-01-14T19:36:04 | 2018-01-14T19:36:04 | 117,460,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,Http404
from .models import Album,Song
from django.template import loader
def index(request):
all_albums = Album.objects.all()
template = loader.get_template("music/index.html")
context = {
'all_album':all_a... | [
"32127426+prorammerarc@users.noreply.github.com"
] | 32127426+prorammerarc@users.noreply.github.com |
9b84a3e64e7ca9d613cb149edf544b6042f3e0ce | 6d061520f6d2507d772ddd4cb2f9d39a8963a092 | /Mao/88.py | 3e8943a4af5635f1f5c92403eb8b709ab65a4837 | [] | no_license | SeanXiaohengMao/Leetcode | 54db3d9de024c111e28175ec896dba15aa63b5da | aab53ac5f93c7c8109468c919ec2f5a0de7a1b0f | refs/heads/master | 2020-03-11T04:50:07.518665 | 2018-05-13T21:08:37 | 2018-05-13T21:08:37 | 129,786,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
a = m+n-1
while m>0 and n>0:
... | [
"Mstarfish@163.com"
] | Mstarfish@163.com |
623a1d02618a98b846a644d65873a91f693fb8d4 | 21901fb376d67172a9f5dfcddb58ba5dcb83864e | /estadísticas/tamaño_muestras.py | 17a747ab2f39c3ed19e8029681fd2066dc3bf1bf | [] | no_license | LaManoServida/TFM-Biocruces | 977a9f15bbf96d61022df7ba0f491c4169a4cf9c | b126070c415aa4184765f7474a82953dbf1c54ce | refs/heads/master | 2023-01-03T11:13:08.717203 | 2020-10-13T05:09:17 | 2020-10-13T05:09:17 | 262,435,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from preprocesamiento.funciones import buscar_csv
''' Calcula los tamaños de muestra de los archivos de una carpeta '''
# PARÁMETROS
ruta_carpeta = 'D:/Dropbox/UNI/TFM/datos/3 - Fecha a timestamp'
ruta_grafico = 'Tamaño de muestras - dia... | [
"andoni7@outlook.com"
] | andoni7@outlook.com |
4f6c2ddefe3cb20c6fbca82335e3c70b1d4c0626 | bf2ea61883b8dd0074710ac532df35413720e5ec | /UserTask/migrations/0001_initial.py | 8d997be8d514af2cb779c7d6edb3424a0ebe6abc | [] | no_license | Jigar2998/Exam | f068a14d9f54ea4a84da4c2916d83dc28ac98389 | fa6795249961019facf3bd7bf0eab116d161bb2d | refs/heads/master | 2023-03-28T05:13:40.554728 | 2021-03-24T14:57:41 | 2021-03-24T14:57:41 | 350,630,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | # Generated by Django 3.1.5 on 2021-03-23 14:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='contact',
fields=[
... | [
"jigarkumarramani1998@gmail.com"
] | jigarkumarramani1998@gmail.com |
e54737a669c120405ba1ae40ca1f029499c044b7 | 5660cc796ba00f5090c7de6208c2e0a77c2328ba | /utils/models/__init__.py | dfb823114abe17847e769d9c4a1db4047f2d0b29 | [] | no_license | OMalenfantThuot/scripts_raman | ac65fec1c5ac97a13b8c222e02241f02393f7709 | 2fd42a4b09d33fcf96da4b4d3340f67d21428b18 | refs/heads/master | 2023-07-19T20:11:10.457974 | 2023-07-18T18:15:26 | 2023-07-18T18:15:26 | 193,724,148 | 1 | 1 | null | 2023-08-28T20:00:38 | 2019-06-25T14:29:42 | Python | UTF-8 | Python | false | false | 297 | py | from .model import *
from .dropout_schnet import DropoutSchNet, DropoutAtomwise
from .patches_schnet import PatchesAtomisticModel, PatchesAtomwise
from .smoothtrainer import SmoothTrainer
from .memory_estimation import (
schnet_memory_estimation_for_graphene,
get_graphene_patches_grid,
)
| [
"malenfantthuotolivier@gmail.com"
] | malenfantthuotolivier@gmail.com |
b71b434ca0c4d33ae478c5de3fe560b4df6a19b4 | f84dbb215fa3c8917444d69d8a626523ded8ea01 | /utils.py | 7bec8f638356dce37131e8c58611384dc39a198d | [] | no_license | amirunpri2018/style_transfer | 3086963a6315d838db7272b18456d4518f16e103 | f613655a5964f78ed4a81e6051f4a598baf5f7cd | refs/heads/master | 2020-04-11T14:36:55.749802 | 2017-11-20T11:29:44 | 2017-11-20T19:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import imageio
# if Keras model has one output, it returns a tensor, otherwise a list of tensors
def make_list(x):
if isinstance(x, list):
return x
return [x]
# auxiliary function to inverse ImageNet preprocessing
def postprocess(x):
x[..., 0] += 103.939
x[..., 1] += 116.779
x[..., 2] +=... | [
"emzajac@gmail.com"
] | emzajac@gmail.com |
1bb80b25bf87d695dd5433efee4ab2a9b1aa572c | 483508a4e002bcd734b8729459d3e5d5e02aae70 | /number_frequency.py | 27b6776f20516181ec134ca21ebb9c493c09bc5c | [] | no_license | jdavid54/benford_law | 9d54cd539130bc3665080ca801d1bb4db96a18a9 | 3ff9d8358f59fef60f401c290ceb94701613e1b2 | refs/heads/main | 2023-07-18T03:56:18.685081 | 2021-08-25T10:44:37 | 2021-08-25T10:44:37 | 399,751,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import numpy as np
import random
import matplotlib.pyplot as plt
# benford's law
# value
l1 = 10000
# size
l2 = 100
freq=[0]*10
x = np.arange(1,10)
'''
a = np.random.randint(1,l1,(1,l2))
print(a)
for i in np.array(*a):
n = int(str(i)[0])
#print(n)
freq[n] = freq[n]+1
print(freq)
plt.bar(x,freq[1:])
#plt.... | [
"noreply@github.com"
] | jdavid54.noreply@github.com |
cfd2f3a4ff73b738da8ead70acf5ea441bdb0daa | ade929eeed0a13bee8e05619536639a32c60c22e | /Task0.py | a6a1e4b1a5b8d19cec83d7a73659f58ce07a3784 | [] | no_license | liuyuan512/Udacity-Python-Project | b2022b1632d73d43de03f1fc8f15029eabc2f0e5 | aca7e65b4bae7f0a6e41ede6180045ca34bf56fd | refs/heads/master | 2021-05-14T05:41:04.135673 | 2018-01-05T05:01:42 | 2018-01-05T05:01:42 | 116,226,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | """
下面的文件将会从csv文件中读取读取短信与电话记录,
你将在以后的课程中了解更多有关读取文件的知识。
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
"""
任务0:
短信记录的第一条记录是什么?通话记录最后一条记录是什么?
输出信息:
"First record of texts, <incomi... | [
"liuyuan@liuyuandeMacBook-Pro.local"
] | liuyuan@liuyuandeMacBook-Pro.local |
91b04f73233aff30c6eca08c2f7dc761d779237c | f497cacd115a08f3901d50362a7412755783c3d9 | /events/forms.py | f8ee7abf416df218903763f37935e0a2e52efe13 | [] | no_license | snregales/UWS | aafa9a9ce3ad06f1b04d0da224d114142d55c16a | 712042d446c06ba42699e26a9aceb7dd77006881 | refs/heads/master | 2020-03-26T15:28:20.178895 | 2018-08-18T22:09:53 | 2018-08-18T22:09:53 | 129,656,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | from django import forms
from .models import Event, EventMeta
from utils.utils import get_timestamp
from utils.validations import (
validate_date,
validate_event_name,
validate_participants,
)
class EventForm(forms.ModelForm):
current_year = get_timestamp().year
name = forms.CharFiel... | [
"sharlonregales@gmail.com"
] | sharlonregales@gmail.com |
c8bb8be2b7b980a1af94cd61d72a7b573d2fad49 | 608052e735474dc4dffc129f80dc70407a1cf7db | /make_xml_from_feature.py | e748988a1e63a1f0da4168780757cee470db706e | [] | no_license | 646677064/tools | 389595517271c6d4a407848dc6572082b6d59826 | 8e857e7634b5690430111446bdd4fcd76850fa43 | refs/heads/master | 2020-03-11T18:24:29.754483 | 2018-04-19T07:33:54 | 2018-04-19T07:33:54 | 130,176,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,278 | py | import numpy as np
import os
import sys
import argparse
import glob
import time
#import _init_paths
from units import SClassifier, AverageMeter, convert_secs2time
import caffe
import scipy.io as sio
import sys,os,subprocess,commands
from subprocess import Popen,PIPE
import random
import math
# from fast_r... | [
"liushuai@tunicorn.cn"
] | liushuai@tunicorn.cn |
d0e69f8ba2907a96de17eac4ef173bcbad3780a0 | 16a536eacd586f5a87934fcc999adf551edfe259 | /experiments/common/helper_fxns.py | bbcebf952d32e4350a3e0d3a5a8ff867246d9170 | [] | no_license | teganmaharaj/climate-dl | 5dad87aec737294c100800748fde61ace295d9aa | dd08fb6a85e8635ba86c06e19b4d487f76b45941 | refs/heads/master | 2021-01-11T02:07:09.911603 | 2016-10-10T16:57:04 | 2016-10-10T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | from lasagne.layers import *
import theano
from theano import tensor as T
import lasagne
from lasagne.objectives import *
from lasagne.nonlinearities import *
from lasagne.updates import *
from lasagne.utils import *
import sys
import logging
def get_logger(out_folder):
logger=logging.getLogger('trainlog')
... | [
"ejracah@gmail.com"
] | ejracah@gmail.com |
79a4bb8bec0d2d35bfcfb2c239be6aee46b0fd66 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_373/ch4_2020_04_12_18_58_48_907546.py | cde9dac5e0e2b7c03893f3ea611cee967836abd9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def classifica_idade (idade):
input(int( 'idade: '))
if idade <=11:
print ( 'crinca')
elif idade >= 12 and idade <= 17:
print ('adolecente')
else:
print ('adulto')
| [
"you@example.com"
] | you@example.com |
6405b2626aba482937b14dfeafe8be7ddfd5657d | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m4/socket_correlation/company_review/lock_test.py | 154a5366cb5434bb78837c326d9e8b9c99355720 | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import time
from threading import Thread,RLock
mutexA = mutexB = RLock()
class MyThread(Thread):
def __init__(self,name):
super(MyThread,self).__init__()
self.name = name
def run(self):
self.f1()
self.f2()
def f1(self):
mutexA.acquire()
print('%s得到A锁'%self... | [
"music51555@163.com"
] | music51555@163.com |
b754ef64cb90d4767c378a2cfddb81f139ca8828 | ebcfc261ba65b2296e3e3ee409cc6061afaada13 | /psi/jlab/jlab/bin/ipython3 | 15703db575e30ec225c8512cfe0564a7c31c620a | [] | no_license | sosnus/psi | d281f74b9b6f85446ea77ceafd28b73a85567ba9 | cfeb574cbd36c2d233772eaa3221a08b0d40bd56 | refs/heads/master | 2020-04-29T00:45:59.712159 | 2019-03-18T01:46:20 | 2019-03-18T01:46:20 | 175,706,747 | 0 | 0 | null | 2019-03-18T01:46:21 | 2019-03-14T22:02:44 | Python | UTF-8 | Python | false | false | 256 | #!/home/sosnus/python/psi/jlab/jlab/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"sosnus15@gmail.com"
] | sosnus15@gmail.com | |
a44f361047b27f3505d603357681d2fca47f37b6 | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/pong/full-game.py | 383a097d39786a83f75f9eefa942508b67aa3626 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # Pong game on Raspberry Pi Pico with a OLED and two Potentimeters
from machine import Pin, PWM, SPI
import ssd1306
from utime import sleep
import random # random direction for new ball
sda=machine.Pin(0)
scl=machine.Pin(1)
pot_pin = machine.ADC(26)
WIDTH = 128
HEIGHT = 64
i2c=machine.I2C(0,sda=sda, scl=scl)
oled = ss... | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
4bbf48067b37dfa9b7a43b74bd31d72cf471611d | 8f8e378c0ce4224244582c506c268edda3cc3b30 | /Common/OpenCV/Day1/open2.py | 6683662896f77c68b9e3b75157a97e725953ee7e | [] | no_license | srsapireddy/Diploma-in-AI_NIELIT_Files | 223318319b2d4b8647d77b99d1ba03f0d6e15cf6 | 9e2ed78fbe03369ebef1aa81f3417fc21bdd4107 | refs/heads/master | 2021-05-17T14:28:00.059617 | 2020-03-29T09:28:04 | 2020-03-29T09:28:04 | 250,820,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import cv2 as cv
img=cv.imread('walking.jpg',0)
cv.imshow('img1',img)
print(img)
print(img.shape)
cv.waitKey(0)
| [
"sapireddyrahul@gmail.com"
] | sapireddyrahul@gmail.com |
bfb1b0feeb739779d22fd03dc6c1baf01c5a00e2 | 425badd89420156a586421bf26119193eea06f0a | /linkedlists/insert-in-sorted-dll/insert_in_sorted_dll.py | d69fbba02bbf51bef58fc49eb49827425ea40ed6 | [] | no_license | mich-chen/code-challenges | 66c82be05fdc8e9655525649283e2cea9e854916 | 286677fc7be84f8f8a8754c785a39d07a2c5604a | refs/heads/master | 2023-04-19T16:52:51.352926 | 2021-05-04T07:05:32 | 2021-05-04T07:05:32 | 301,622,163 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | class DoublyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def insert_node(self, node_data):
node = DoublyLinkedListNode(nod... | [
"mich.chen.94@gmail.com"
] | mich.chen.94@gmail.com |
3bbf306660eebd6bf7546e4f3ed1d19ed77db877 | ce981ff3ffc0fe301f0a1a6092dafb491fb67e7d | /comments/api/urls.py | 43b29fc1302df28d37deba22fbf83d54c396db5f | [
"MIT"
] | permissive | videetssinghai/Blog-Rest-Api | 06a630b13a579c49f41cad6e1604dc36704ab32f | e81e0c1969b170cb482d2fdf7f2883efc42c69db | refs/heads/master | 2021-01-12T00:48:55.630129 | 2017-01-11T15:02:25 | 2017-01-11T15:02:25 | 78,300,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import url
from django.contrib import admin
from .views import (
CommentListAPIView,
CommentDetailAPIView,
)
urlpatterns = [
url(r'^$', CommentListAPIView.as_view(), name='list'),
url(r'^(?P<pk>\d+)/$', CommentDetailAPIView.as_view(), name='detail'),
]
| [
"videetssinghai@gmail.com"
] | videetssinghai@gmail.com |
60d41043584f6d063c4c43e77e9af68f68c35b35 | 54fead852941ba66783fca735dcc9d6f84c1d40b | /eshop_account/migrations/0005_auto_20201229_0922.py | 7c0b14f18d483eaa0d43da3f8bf0d40ea75d1cb3 | [] | no_license | saeide-tohidi/django-ecommerce | 36369686f4c8904fd7be7241a2e356582938cd6f | 9ab524d396b3bada4d326ca4ea416d164b3c8c64 | refs/heads/master | 2023-03-08T13:51:11.424289 | 2021-02-27T13:59:35 | 2021-02-27T13:59:35 | 342,868,421 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 3.1 on 2020-12-29 05:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('eshop_account', '0004_auto_20201215_1643'),
]
operations =... | [
"s.tohidi22@gmail.com"
] | s.tohidi22@gmail.com |
d104bf3d62088709c04abe85b3ea2c295ccf4b59 | b38666d5710b241930e6ee6ec71c66a14a219d46 | /problem028.py | 355ebc184a773fd9d8ed389ec4fa1096e2e3bc61 | [] | no_license | yosuketanaka/project-euler | 3508bfbf3cdbc60f14d111c95b5c44f69cf85930 | 2cb747fb755684cd574590f168412e9e30e34a97 | refs/heads/master | 2016-09-05T11:12:13.555956 | 2011-12-20T00:50:37 | 2011-12-20T00:50:37 | 2,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | a=[2*n for n in range(1,501)]
y=1
sum=1
for x in a:
sum+=y+x+y+2*x+y+3*x+y+4*x
y+=4*x
print sum
| [
"lazysuits@gmail.com"
] | lazysuits@gmail.com |
e94621edc11fd90840ea6da3902f469a1c7f89ca | ef83f030d562bbb0e88bc07f49474c4768a9ad9f | /test.py | 4706e5d9d10a221b6c40765e05b18a2ae417d9ee | [] | no_license | FinnAllen/Machine-Learning | 7eea1e8565645b3377f56a1e02ad9752939d2d19 | e6ad9761928570ce01dbad7b0e78173add975cfc | refs/heads/master | 2021-08-22T14:21:42.555197 | 2020-08-08T00:02:24 | 2020-08-08T00:02:24 | 213,487,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import tensorflow as tf
node1 = tf.constant(3.0, tf.float32)
node2 = tf.constant(4.0)
print(node1,node2) | [
"noreply@github.com"
] | FinnAllen.noreply@github.com |
23d2bade3de1ab0aea32326d54633952e7129674 | 2f6a9629aa7497a033ae2836621f65e92529c28d | /homework 5/P6.py | 549f546e17e6f72daaec2c3efbbd0c8b5765292c | [] | no_license | H602602/AI-Python- | 9a4136d989c8f62def423b957c476cb1531dae38 | bcdd4727bf78ca7673d195a603e2a2da9ad06270 | refs/heads/main | 2023-07-27T12:24:31.895467 | 2021-09-15T12:38:37 | 2021-09-15T12:38:37 | 398,769,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | a=int(input("Enter a number you want to know the table of "))
i=1
while i<11:
print(a*i)
i=i+1 | [
"noreply@github.com"
] | H602602.noreply@github.com |
3ef70815071e67e660069013519d9ec8cf185aae | 2e011c9f2f4c43a4fca21a2072977fa820e78fe4 | /mysite/settings.py | d86a691a465a40f0a8c0280590a3a71b99097230 | [] | no_license | Lurey-Roshan/Basic_course_django | 7f3210a767889d0cdd0f3a180bb842aa8d26a4ac | 7410d5c6f23fec481fa7a15a1a1f0cacf26c349b | refs/heads/master | 2023-05-06T18:33:05.445232 | 2021-05-27T10:30:58 | 2021-05-27T10:30:58 | 326,722,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 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/
"""
import os
# Bu... | [
"everforgoodrs@gmail.com"
] | everforgoodrs@gmail.com |
ddc61bcfaaa6888c845392caf8c5235ba528dfa8 | 0f5ce0c0c49b71ce5866cffee93b2a8537da005c | /app/app/settings.py | 2ff7e7ec1622687a5c70f08bdd81294163ef8965 | [
"MIT"
] | permissive | fr0gz/recipe-app-api | 1fb909dbf2c845238249aa195fba3ff79b830a1e | 68fe19aa2e1caafc9d658a0cdd06323f00b08f09 | refs/heads/main | 2023-01-13T13:25:37.450959 | 2020-11-24T20:41:37 | 2020-11-24T20:41:37 | 315,443,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"cguevarak@fen.uchile.cl"
] | cguevarak@fen.uchile.cl |
291d92c0795dd0b5a8b22701412af4dad5921440 | 680c2cc9a733716938f5dc2b8b5469a25f8a16c8 | /123.py | 565ba3fef6d1e12807bcd4fed6c20bbd31a24986 | [] | no_license | e5a27123/hi | c897c6068a6ac5efe66c08d90cdc507092fb8a8a | a7ec9a34d7148c36173187fb794e476725514bf6 | refs/heads/master | 2021-05-23T18:56:45.866291 | 2020-04-06T08:04:52 | 2020-04-06T08:04:52 | 253,426,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | high = input('請輸入身高:')
weight = input('請輸入體重:')
print('您的身高體重:',high,'/',weight) | [
"e5a27123@gmail.com"
] | e5a27123@gmail.com |
10670058ee66bbaa0c344330a9c20c5c2b7523ec | 4e14c0561e539faaf5e081b0d5eb7dda627c97f5 | /time.py | f7b4b67726552a96079cd32d63facdf909470a1e | [] | no_license | amruthaarun/Think-python | 44e7cd7978e3212c676cdf5eb3001aa78d11c76f | 08d7d6b803c2b1f58b11a0024a59fa2b5d77045f | refs/heads/master | 2021-01-21T13:03:59.660906 | 2017-06-04T14:07:08 | 2017-06-04T14:07:08 | 91,806,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Time(object):
def time_to_int(time):
minutes = time.hour * 60 + time.minute
seconds = minutes * 60 + time.second
return seconds
def print_time(t):
print '%.2d : %.2d : %.2d'%(t.hour,t.minute,t.second)
time1 = Time()
time1.hour = 11
time1.minute = 59
time1.second = 30
time1.print_time()
print t... | [
"noreply@github.com"
] | amruthaarun.noreply@github.com |
c42d06f160e74bd4ea815479182bf3aa58950f95 | 78652c075802f77888712447f609ef33012acb12 | /GraphMatchingByConvexPolygon/src/Match_byCrossPoints.py | 6c1c5065fc461e49db0874d2150ef69d89a2b5dd | [
"MIT"
] | permissive | Anonymous772066235/GraduationDesignProgram | 5cfb18e730f284ffce16bbd9291a558541d2a678 | 3337c48005def8515a4660fcaa004dcfbe4766be | refs/heads/main | 2023-03-22T12:11:50.641790 | 2021-03-19T06:44:28 | 2021-03-19T06:44:28 | 336,760,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | # File :Match_byCrossPoints.py
# Author :WJ
# Function :
# Time :2021/02/06
# Version :
# Amend :
import LineProcess as lp
import numpy as np
import LaplacianMatrice as laplcian
from scipy.optimize import linear_sum_assignment
import matplotlib.pyplot as plt
import Visualization as Vs
im... | [
"noreply@github.com"
] | Anonymous772066235.noreply@github.com |
4970c6284aaecea5775d6a3a9f128000451133f6 | cc54a6aba8ffaf7cc2c8a7e71a9332c6f4e26507 | /flask_app.py | 00cda83bc7ac474971c9e33c64b3d364a751f64d | [] | no_license | ayc3ue/flask_app | 4c77ed60f53bec0ad70052954dc3a2162d038793 | e567cdbdd915af11b82a16ea4e8801fd8327816f | refs/heads/master | 2020-05-05T05:08:28.980926 | 2019-04-17T02:12:39 | 2019-04-17T02:12:39 | 179,740,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | import os
from flask import Flask, flash, request, redirect, url_for, send_from_directory, render_template
from werkzeug.utils import secure_filename
import exiftool
import json
app = Flask(__name__)
UPLOAD_FOLDER = './uploads'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'dll', 'exe'])
app ... | [
"bwz3kt@virginia.edu"
] | bwz3kt@virginia.edu |
be38d3ebadb2460af99adbcd9d5e38e954fef300 | 89220198e6869bf13ff99f1d07b5aa0f49f23b2a | /modules/tools/perception/empty_prediction.py | 33dd04981b1164fe3cb0fdef209d432d879386cd | [
"Apache-2.0"
] | permissive | maohaihua/apollo | 2cd073a0844a9028756582e6db4c6b66fd4f8a0a | a30d7a6c65a58ca82681df81211176f98eeffde2 | refs/heads/master | 2020-04-30T20:55:14.018814 | 2019-03-22T00:29:56 | 2019-03-22T04:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #!/usr/bin/env python
###############################################################################
# Copyright 2019 The Apollo 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 ... | [
"xiaoxiangquan@gmail.com"
] | xiaoxiangquan@gmail.com |
ebf5338c9d16d52fb1f01ccc605998b512d9edf6 | c6ff2a4484c371efd97ce610832cd9772dd406e0 | /app10_udemy/app10_udemy/wsgi.py | bb40d92d717d10e2eaaa247e3e39c58b6fc183fe | [] | no_license | inderdevkumar/Upload-and-display | 66bbb808be27d47f3ff8d57e663b58b71f62ef71 | 668beb97392f12d4b545937c18f2723919264987 | refs/heads/master | 2022-10-10T01:19:02.044549 | 2020-06-09T12:56:22 | 2020-06-09T12:56:22 | 271,003,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for app10_udemy project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"id0102yadav@gmail.com"
] | id0102yadav@gmail.com |
c788318f60d2098a2e34990bd3b98721e503be1f | be78f65e98c4a375666f0c22d18038c8ecef4519 | /QA_db.py | c883e669a4d52140c65d164b80da5cca1984ab8b | [
"BSD-3-Clause-Clear"
] | permissive | Rexmiao/QuickAnnotator | 5d9358d9fab04abfd10ac1950c62989c4d6715d2 | 8095bcf341ff0ec03590c23711fc1b228297ef82 | refs/heads/main | 2023-03-09T14:15:50.048688 | 2021-02-20T00:41:47 | 2021-02-20T00:41:47 | 337,521,794 | 0 | 1 | BSD-3-Clause-Clear | 2021-02-09T20:03:46 | 2021-02-09T20:03:45 | null | UTF-8 | Python | false | false | 4,391 | py | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Text
import sqlalchemy
import logging
from QA_config import get_database_uri
jobs_logger = logging.getLogger('jobs')
_pool = []
db = SQLAlchemy()
# Create Flask-SQLALchemy models
class Project(db.Model):
id = db.Column(db.Integer, primary_key=True)
... | [
"choose.happy@gmail.com"
] | choose.happy@gmail.com |
e63b88ed084aef3af607dfd3983492929682e249 | bebacae90aa17ad2ab4c9111a2e5cfa0f8cf13a6 | /Python-3/basic_examples/raw_input_example.py | 98bdf626e06b78a68c079f81f91a901b1a33be39 | [
"MIT"
] | permissive | ayanakshi/journaldev | 5b0d73c53bc9a5292a8629c6c0320196abeab76e | a61cba22232e8cc9c40264c31aaba0bd17ff2522 | refs/heads/master | 2020-03-27T21:52:15.081736 | 2018-08-31T11:51:28 | 2018-08-31T11:51:28 | 147,182,378 | 1 | 0 | MIT | 2018-09-03T09:28:38 | 2018-09-03T09:28:38 | null | UTF-8 | Python | false | false | 61 | py | a = raw_input('What\'s your name : ')
print 'Username : ', a
| [
"pankaj.0323@gmail.com"
] | pankaj.0323@gmail.com |
8c11b619d8bcfc1b32ce88c5f2693cdc3fe40a4c | 33d870b95a1b4761b9912eeef973be8af619c8f0 | /feature_eng/id_ip_join.py | aa4d4191f873480c518aac3e4274f49f47180aaa | [] | no_license | sclau/Avazu-1 | 641857f1949f0c0a4ec556c570da57c2ff213492 | cf1ebdb2be8c37b7789781e16b2f2e7aaa4f4584 | refs/heads/master | 2021-01-17T06:11:25.365314 | 2014-12-06T05:19:43 | 2014-12-06T05:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | #!/usr/bin/python
import sys
import os.path
sys.path.append(os.path.dirname(__file__))
def read_device():
device_counts = {}
with open("id_ip_count_sort.txt", "r") as f:
lines = f.readlines()
for line in lines:
line = line.strip()
words = line.split('\t')
day, device_id = words[0], words[1]
... | [
"ianchin93@berkeley.edu"
] | ianchin93@berkeley.edu |
97ed4b7b177f9bfd4dd65cf0fe4e612cec5f5ca7 | c68580258e9fbe64bbf232e781d75584691de4c4 | /tests/django_settings.py | 2af62bb352df44c8386b6fd77435541a4214c8d9 | [
"MIT"
] | permissive | KyleAMathews/graphene | 7e092e6e7d9575c1f736d834a2913a63bc753006 | 5738b69271fd245339f35640d375d6bc13092358 | refs/heads/master | 2023-08-31T21:12:22.927712 | 2015-11-30T18:08:12 | 2015-11-30T18:08:12 | 47,149,828 | 2 | 0 | null | 2015-11-30T22:24:27 | 2015-11-30T22:24:27 | null | UTF-8 | Python | false | false | 196 | py | SECRET_KEY = 1
INSTALLED_APPS = [
'examples.starwars_django',
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'tests/django.sqlite',
}
}
| [
"me@syrusakbary.com"
] | me@syrusakbary.com |
add3c5e3953f6df905c0de935b4270629b78a549 | a682abf407ed6563c8ae5ddd2983e388307dabcd | /termanim/__init__.py | 5a8274b6480fb27471874acc47d29aeaddfbf6bc | [] | no_license | sahasatvik/termanim | 838baf7e3388610cd6a33aac66c67d32d5e29ed5 | aa2239e206b7dceb5647a646fa5d4f4c76087b79 | refs/heads/master | 2023-04-30T03:44:06.549829 | 2021-05-13T17:49:56 | 2021-05-13T17:49:56 | 365,275,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | """
An interface for creating graphics and animation in the terminal.
"""
| [
"sahasatvik@gmail.com"
] | sahasatvik@gmail.com |
7b95333f1a3c4029e1d7f969049b5f60ff949f8c | 00cbe2c2bc49dd139bc9fff2b2d70f440824a102 | /ResourceManager.py | ba2fb6fc68b9769d1572aeac05e338683765c376 | [] | no_license | TCooper1996/Tank-Shooter-PyOpenGL | e10b7041cb6f80d9f3b14b5075fb4c2e9b32a895 | ce3ad3122d10af5b0240e89c3e731df7fa22c96f | refs/heads/master | 2020-06-17T06:06:01.047018 | 2019-08-01T03:10:07 | 2019-08-01T03:10:07 | 195,823,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from OpenGL.GL import *
import Shader
class ResourceManager:
Shaders = {}
@staticmethod
def load_shader(v_shader_file, f_shader_file, s_name):
ResourceManager.Shaders[s_name] = ResourceManager.load_shader_from_file(v_shader_file, f_shader_file)
return ResourceManager.Shaders[s_name]
@... | [
"trcooper1996@gmail.com"
] | trcooper1996@gmail.com |
6e5f727a122ec1a1829134b85592fba4c0f04981 | 795c2505b1dd77e5e7ce230348dbc4558c11c74e | /week7/9-4.py | 3c295e5fd93cebbb1c6024d6d3e0e62b17fb397d | [] | no_license | mikephys8/The_Fundamentals_pythonBasic | 4326400e6308109606735f092f588bacbf61381b | a0f7386579deb8481f0632bb8c98e0d09392f7c7 | refs/heads/master | 2020-06-04T20:19:01.165552 | 2014-06-30T16:22:41 | 2014-06-30T16:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | __author__ = 'Administrator'
gradefile = open('student_grades.txt')
def read_grades(gradefile):
"""(file open for reading) -> list of float
Read the grades from gradefile and return a dictionary where
each key is a grade and each value is the list of ids of
students who earned that grade.
Precond... | [
"mikephys8@gmail.com"
] | mikephys8@gmail.com |
cd3e3d7ff3cc8d3bc80032f50d00ed482ccfbd91 | c9eb43714afc10d59d3a5c8dc9ac948bcce8da3a | /wordcount_project/urls.py | 1c828ec47b9a478e57a9b9d8a21e3bfce02893f5 | [] | no_license | hyo-ji/wordcount | e6c88ec0fd168c28f9bfa9293227bd17ffc4b039 | 1e32ecb87c5c651cf1b1ae8cddd6351076d6b9ff | refs/heads/master | 2022-11-11T12:12:18.089366 | 2020-07-06T12:27:16 | 2020-07-06T12:27:16 | 277,532,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | """wordcount_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"gywl21@naver.com"
] | gywl21@naver.com |
2441d653960673ac4a1f42bc7f1c0bcecb8153ca | 94d1b45b6a7c25d6585a12b5c028244389c51d4f | /Recursion/venv/bin/python-config | 740ca13a09fcb2c2776e73499432ec41dccab360 | [] | no_license | Erockk/Recursion | 6f543b72474c219ef33807bff79a5f4e87d3495b | 4fe6760e76caee3161b95c20aa4ff19841f56d73 | refs/heads/master | 2021-05-01T12:25:21.040658 | 2018-02-11T20:06:51 | 2018-02-11T20:06:51 | 121,065,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | #!/home/erock/PycharmProjects/Recursion/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys... | [
"dejaerik@gmail.com"
] | dejaerik@gmail.com | |
07dd881dfa838563a5ef9d22778cd9993402dd4c | 22ebcc842dbc933bfa8fdad89b8b8ef48ecc91c7 | /load/load_aes_hd.py | f70ad4aa349abe0942c49ece8386f2b88e6237e6 | [] | no_license | klikooo/thesis-src | 192651c18f243c59cfa588e7052dc1a96ab0a146 | 64f2ee824afdc2d3fd0f98c6d9fcfda597b9ad9f | refs/heads/master | 2020-04-16T18:16:20.638147 | 2019-08-20T14:59:52 | 2019-08-20T14:59:52 | 161,623,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | from decimal import Decimal
import torch
import numpy as np
import matplotlib.pyplot as plt
from models.load_model import load_model
from test import test_with_key_guess
import util
import pdb
path = '/media/rico/Data/TU/thesis'
#####################################################################################... | [
"rico12978@hotmail.com"
] | rico12978@hotmail.com |
d3d76cb1c9935b3b8fa21acac1bc730454de8817 | e168546cd2cbd76d7d1c77d62c9889d67769309f | /PokerModel.py | e69d84cfa60f9521099521f881b36d2249b5051f | [] | no_license | guptaronav/poker | 5dc4e12c5cba0c8044f0526769b07a3adfd4b727 | 59a0838ca3bbe2f4834e3096223aeb321df6d74a | refs/heads/master | 2023-01-21T14:53:14.315532 | 2020-11-28T18:43:31 | 2020-11-28T18:43:31 | 316,791,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,866 | py | import operator
import random
import pygame
class Card:
def __init__(self, rank, suit):
self.rank = 0
self.suit = ''
self.image_path = ('img/'+str(rank) + str(suit) + '.png')
self.selected = False
#convert the rank to an integer so it's easier to compute the winner of a hand
if rank == 'A':
self.ran... | [
"guptaronav@icloud.com"
] | guptaronav@icloud.com |
d479a02c95eafbfa0243368ff72acbbb96176ad8 | 1e737d53085f4628af8330a8705862e8458354f4 | /Toets_2_ECTTP_Ronald_van_Egdom_3018119/Controls.py | fcb84f5c9e1e61e774cfeeb372f2919a877f553f | [
"MIT"
] | permissive | RunicPixels/HKU-ECTTP | 0551df865763024bebeb34c326e690442e06657a | 1bfeefbb6ed372128edd2e62602fe5c8d35bd0bd | refs/heads/master | 2022-05-18T09:46:45.448697 | 2016-12-14T18:07:18 | 2016-12-14T18:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | class Controls() :
#Right, Left, Down, Up, Special.
#Keyboard.
String_controls = ["D","A","S","W"," "]
String_altControls = ["d","a","s","w","c"] | [
"superronald@live.nl"
] | superronald@live.nl |
83287219fc0ef5c36a89bcb50a247ae0f358e3f7 | 0b90c9bc3efd14cd2a869ab519f1dfe9645cefd6 | /hw03/main.py | a35d9b237aa7b247b282f0923017b48068ff95af | [] | no_license | 1510650114/exp | 2e0b6da6c5e17de48a060692d322cd77824b291b | c6a0da63b3922d4b513b56cec067749925af4815 | refs/heads/master | 2021-07-11T22:53:19.856300 | 2017-10-16T13:40:39 | 2017-10-16T13:40:39 | 107,132,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py | import turtle
import math
def draw_polygon(aTurtle, size=50, n=3):
## 绘制正多边形
##
## args:
## aTurtle: turtle对象实例
## size: int类型,正多边形的边长
## n: int类型,是几边形
for i in range(n):
aTurtle.forward(size)
aTurtle.left(360.0/n)
def draw_n_angle(aTurtle, size=50, num=5, c... | [
"noreply@github.com"
] | 1510650114.noreply@github.com |
0fc3634719a0d6a84e782bf164e1e5bb7b18e2b5 | 895cf7d265a7976c9243894bccebf3daa645bc57 | /venv/bin/django-admin | ea08885278bada07ab1206a8cc6a4fc880b79d0b | [] | no_license | HenryM975/D_news | ebab9b443699e7b8925320d7235cf398d3a310c5 | 140be1f6385352265a6c7172261524ce5a302858 | refs/heads/master | 2023-08-05T02:33:20.483347 | 2020-08-01T09:31:18 | 2020-08-01T09:31:18 | 282,980,070 | 0 | 0 | null | 2021-09-22T19:42:46 | 2020-07-27T18:18:05 | Python | UTF-8 | Python | false | false | 289 | #!/root/PycharmProjects/news/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"hemry975@yandex.ru"
] | hemry975@yandex.ru | |
e664beb018a1c9ae9d3a87597696086278f40c0e | dbe012dbedc967332ae58414473185055136d189 | /maskrcnn_benchmark/data/transforms/transforms.py | 283a9d3055d8b0ed951c6e0ec938684bcaf74ce3 | [
"MIT"
] | permissive | kevincao91/maskrcnn | 87561a023939a71d624252dd44f4c882b2dfa2a6 | a55f6ab82219329e353a20dd53c3f25f4375f537 | refs/heads/master | 2020-09-24T18:41:36.565752 | 2020-05-07T05:45:39 | 2020-05-07T05:45:39 | 225,819,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import random
import torch
import torchvision
from torchvision.transforms import functional as F
class Compose(object):
def __init__(self, transforms):
self.transforms = transforms
def __call__(self, image, target):
for ... | [
"kevin_cao_91@163.com"
] | kevin_cao_91@163.com |
b975da264a632583abc06b064c0bdd3fa00f4ec9 | ec2ebf6b2c9e43857815ca857f4f8fb7580c9832 | /.vscode/1925.py | 510d6909161097110f651828f4ab032b59b8c360 | [] | no_license | eunchae2000/codeup | 7b9793b4570fee6cb0cb529ebf1ab33b871b165e | d6f1a2c32262a69bada3c093c87b16832b319471 | refs/heads/master | 2023-03-28T06:17:35.546759 | 2021-03-27T09:18:44 | 2021-03-27T09:18:44 | 328,110,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | n, r = map(int, input().split())
def num(n, r):
if(n==r or r==0):
return 1
elif(r==1):
return n
return num(n-1, r-1) + num(n-1, r)
print(num(n, r)) | [
"tldjs3651@naver.com"
] | tldjs3651@naver.com |
d18ef3231977f0c3dcc4fa4dd7781da7c8cafa55 | 5ec411a831b02791e983e2cf002aa99945a4de08 | /write_urease_html.py | c72358d34b367dc07480a5b72f19903cff1c5dc3 | [
"MIT"
] | permissive | gaughanc/whatbacteria-sigma | 26de9c870b560166218c711f3eae297ea6f858b9 | b273003419867bd3b7f0ed44079444e7f4c6feaf | refs/heads/master | 2021-01-21T13:29:36.973297 | 2017-09-01T20:44:00 | 2017-09-01T20:44:00 | 102,128,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | import random
from create_lin_list import create_lin_list
from get_lists import get_genera, get_species, get_urease, get_catcount
#create or define all needed lists
lins = create_lin_list()
genera = get_genera()
species = get_species()
urease = get_urease()
count = get_catcount()
nodes = []
edges = []
#define colors
... | [
"gaughanc@carleton.edu"
] | gaughanc@carleton.edu |
01851c215882db7ea5489cb7d037bf4a475fc45d | 6e9ca564a0a806768636c787287607a090e90aed | /src/toolbox/data_converters.py | b0425a82890bc93e370daf8e101376049b2ae722 | [
"MIT"
] | permissive | ENJOY-Yin-jiong/hidden-challenges-MR | 798a513ad5c02df2d004076cd27f2f5c3c1b8e3e | e0c4546b5a614a20b680765fd4ad250564327b6a | refs/heads/master | 2023-03-20T02:14:22.583479 | 2020-09-07T05:29:07 | 2020-09-07T05:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from typing import Tuple, List, Dict, Callable
from pandas import DataFrame
Query = Tuple[str, str]
Location = Tuple[float, float, float] # start, end, length
Instance = Tuple[Query, Location]
Rating = List[float]
Prediction = Tuple[Query, List[Location], Rating]
Result = Tuple[Query, List[Location], Rating, dict]
... | [
"otani_mayu@cyberagent.co.jp"
] | otani_mayu@cyberagent.co.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.