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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13596afe059c609f619908e75c5935e7c9e5e401 | 1754a20778101b8971c057ec6c358d6b45ed940b | /test/functional/wallet-accounts.py | 0d968863299f05bc09ea8207c4ba32c95f244769 | [
"MIT"
] | permissive | valeamoris/platopia | 33ad24e97fa77f09cab94a35705f2180d9904064 | 563c616db768f813aa4482d39d8ed1d8aacaad4f | refs/heads/master | 2020-04-11T06:48:50.911653 | 2018-05-15T06:15:27 | 2018-05-15T06:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
st... | [
"d4ptakr@gmail.com"
] | d4ptakr@gmail.com |
8d5fd4f01f3cee42d00bf6893c55b60cca121721 | 097185767372033caf61c95c9789452944f348ff | /app.py | 2d31ac3a604c40990f672ebf9400e253e359cf51 | [] | no_license | TejasBadhe/pythonwebapp | 76b019e333c110d21484d8cc9fe0d1ff911a2ade | 73d88affccfef313d08eefbd401f9a0cc6a27bb0 | refs/heads/main | 2023-09-01T23:18:46.839977 | 2021-11-16T10:07:57 | 2021-11-16T10:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template("index.html")
@app.route("/about")
def about():
return render_template("about.html")
if __name__ == "__main__":
app.run(debug=True) | [
"godspowerstanley@gmail.com"
] | godspowerstanley@gmail.com |
aede3fd3cb4197fe6a020021747a399fd4b17719 | 978ba4aa0a767589f663341c39d39d6b1b301cb2 | /experiment.py | eec95805bf5bc2d77ca6040f770676147482037e | [] | no_license | dalj170/ML-Toy-Case-Framework | fcb0746121b5035e918466e7367159ca05478bb9 | 49ac5d85630181611eaf35ed7c2ef4baba0b3bc5 | refs/heads/master | 2021-05-27T07:53:58.922008 | 2020-04-09T01:16:21 | 2020-04-09T01:16:21 | 254,238,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,583 | py | import argparse
import torch
import torch.nn as nn
import torch.optim as optim
from dataloader import SimpleDataset
from torch.utils.data import DataLoader
from torch.utils.data.dataset import random_split
from datagenerator import Generator, Dynamics
from models import *
# default parameters can be modified... | [
"noreply@github.com"
] | dalj170.noreply@github.com |
98c7e860f3e9b72be38d65d6434b2f524d8aef87 | 28ec3ee4daab919ef005e5913498be3fb96b19a4 | /polyorg/tests.py | d4e1c78d9034a910e93000b9baa3e029a3b0b5b4 | [
"BSD-2-Clause"
] | permissive | danielbraun/open-shot | 2bd5b0af9c8b6c32bc0b244edfafa1a871e85972 | 5e7507b57912a047e460b32927412f43df154def | refs/heads/master | 2020-12-25T12:07:26.287583 | 2013-09-15T10:17:16 | 2013-09-15T10:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
from django.contrib.auth.models import User
from models import Candidate, CandidateList
class Creatio... | [
"bennydaon@gmail.com"
] | bennydaon@gmail.com |
71202f0ef96f0e0d939d29cde45c942ddf8686b2 | 21a77ed3498e649ecc7446584edf46b62c361d59 | /orange/models/myf_admin_role.py | e25a779bb0567abbf2500c9ea81a84ee8f71e594 | [] | no_license | kejukeji/heart_counsel_py | e45419d9b2baf3fe392d64c5596a45e96f96a280 | 3fa2dbdad43b0c12da6130d6e634e6c7003fd1f0 | refs/heads/master | 2021-01-13T02:11:00.869579 | 2013-11-28T08:08:15 | 2013-11-28T08:08:15 | 14,770,940 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding: utf-8
from sqlalchemy import Column, Integer, String, Boolean, DATETIME, ForeignKey, text
from .database import Base
myf_admin_role_table = 'myf_admin_role'
class Myf_admin_role(Base):
__tablename__ = myf_admin_role_table
#__table_args__ = {
# 'mysql_engine': 'InnoDB',
# 'mysql_char... | [
"250440083@qq.com"
] | 250440083@qq.com |
16ea94b565c90c3077c4932cb3e4640dfbff2612 | d85de32efcb4a6f876972e08f684270b9897fa1b | /cDCGAN.py | cc81103f3ce63bef8d9f5ff5d75d6000151c7b23 | [] | no_license | saumyasinha/Logo_generation_GAN | e8f0273c826875853213c15c0df1da8aaac50522 | 219fb2981d19499da1747fb67bfd294ef5473eb0 | refs/heads/master | 2020-03-08T13:52:59.615392 | 2018-05-02T02:19:49 | 2018-05-02T02:19:49 | 128,169,799 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,830 | py | from __future__ import print_function, division
from keras.datasets import mnist
from keras.layers import Input, Dense, Reshape, Flatten, Dropout, multiply
from keras.layers import BatchNormalization, Activation, Embedding, ZeroPadding2D
from keras.layers.advanced_activations import LeakyReLU
from keras.layers.convolu... | [
"saumya.somu09@gmail.com"
] | saumya.somu09@gmail.com |
a9b556949473408521e5fae46b690dbc52cc4f55 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/pybites/bitesofpy-master/!201-300/204/test_pomodoro.py | ed5d098ac2af44caaaf4144782768d028d668cea | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,331 | py | from typing import Union
import pytest
from pomodoro import break_time, lunch_time, main, session, work_time
@pytest.mark.asyncio
async def test_break_time(capfd):
anno = break_time.__annotations__
assert anno["delay"] == Union[int, float]
assert anno["loop"] == int
assert anno["return"] is None
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e551dbec93a15d5f8a6eb4b246b2a3a381e2691e | f62fd455e593a7ad203a5c268e23129473d968b6 | /tacker-0.7.0/tacker/db/vnfm/vnfm_db.py | e7ca3763bffe6461854f842cd873c008ae70d313 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 27,220 | py | # Copyright 2013, 2014 Intel Corporation.
# All Rights Reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
4db21bd2559e1f6e5ddbbca86d371b4cfd2e4bdd | 258f18e092a2b563521d3ea326ce443a34cd4ad0 | /manage.py | 034ab7d96befe473cdb6e7a780439293370779a4 | [] | no_license | jtkaufman737/django_foodie_app | 2b9e6badb79bb61c433e4e16581bac59ee2c077b | bdf0fd7de49e878c25df66129d87205138be5212 | refs/heads/master | 2022-12-09T06:17:01.427737 | 2020-09-04T14:31:48 | 2020-09-04T14:31:48 | 289,298,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'menu_site.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"jtkaufman737@gmail.com"
] | jtkaufman737@gmail.com |
b7faec9f841a1e905120e9fd48f0dc20eb80aacb | 90a83608759f16e587709ef04b3369b400deb200 | /blog/admin.py | cad8431ae3d541f7bab81489c6d21c906c87ede2 | [] | no_license | rafaelmeyer95/curso_django | dfc0311ecfb0cd391b388207741a59a6b6246818 | ac63c86e4d454c61d76ae0497af7dce4af37cb1d | refs/heads/master | 2023-07-27T10:43:10.765289 | 2021-09-12T02:29:27 | 2021-09-12T02:29:27 | 405,452,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.contrib import admin
from .models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_display = ('titulo','autor','publicado','status')
list_filter = ('status','criado','publicado','autor')
raw_id_fields = ('autor',)
date_hierarchy = 'publicado'
search_fields = ('t... | [
"rafael_meyer_@hotmail.com"
] | rafael_meyer_@hotmail.com |
e9f5931b0f3981e13979a53f1112073389b40d5c | 106a93f16943bb978ed5e793d2b4295dd32c72e7 | /BiliLive/src/extension.py | 06e6892f0086a8bbfdb12e96362e6fb9a475aa44 | [
"MIT"
] | permissive | ml87124909/BiliLive | c69fc62db48533d340b5e57284755fdae5bd7790 | d022c10411c4055fffb409633fa1cc99184ffcce | refs/heads/master | 2022-03-04T00:20:42.577051 | 2019-07-17T14:40:31 | 2019-07-17T14:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,383 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/3/16 下午 11:15
# @Author : kamino
import os
import json
import requests
import random
import re
import time
import socket
from .database import DbLink
from .timer import Timer
from .auth import Auth
from .config import Config
from .error import Control
f... | [
"lishichenjs@163.com"
] | lishichenjs@163.com |
2959c1b6c50ff7a27e9df376d62a132185731b61 | d8eb32d7df364342421f31276611f35c7407274d | /report3.py | 7e48bcbe78a5ed9dfc795f9076ef350c5e39a55a | [] | no_license | polinatea/databases | d8db882f94d16cee1efb67afd0351d79c9e0676d | 484a7e24a72cb2a8fe768af1313ee4fa5ce61aef | refs/heads/main | 2023-07-16T15:19:11.506659 | 2021-09-03T12:01:22 | 2021-09-03T12:01:22 | 389,042,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,235 | py | import pyodbc
import tkinter as tk
from tkinter import ttk
from tkinter import *
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
import re
def report3(txtNum):
# Установление соединения с базой данной
conn = pyodbc.connect(driver ... | [
"noreply@github.com"
] | polinatea.noreply@github.com |
8e80b5a407f1aeb26dc2bd7ddb84d6a2065cd7ff | c03d565ec39b250a373e62431f88d2044f09864f | /backend/catalog/migrations/0001_initial.py | 8f520f8f3fb214080f37d1811599bf544f350069 | [
"MIT"
] | permissive | aevtikheev/full-text-search | e7d7e8ea613e2d93025cf02a5737b2244297d7cc | 25909bbcb6361898f4920c94fa51f93918981124 | refs/heads/master | 2023-04-03T18:13:37.705378 | 2021-04-08T21:48:18 | 2021-04-08T21:48:18 | 353,132,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # Generated by Django 3.1.7 on 2021-03-31 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Wine',
fields=[
(
'id',... | [
"eft000@gmail.com"
] | eft000@gmail.com |
c78584df8800ee65609ce9f1b1ef2ac873ef1205 | e75c4f0b2c69620e84d180d52ca94f9f03a29e1f | /account/account_move_line.py | 63ebf436ba160d9c0132e354d64ac617909f64d7 | [] | no_license | Tecvemar/openerp-addons-6.0 | 1af14214c557a9a1525812d837fe1528d0f6029a | 357956e64b4c5189b799065cbbd028d8a99e0c74 | refs/heads/master | 2021-01-21T05:32:46.649690 | 2017-08-31T11:57:48 | 2017-08-31T11:57:48 | 101,927,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,198 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"juanvmarquezl@gmail.com"
] | juanvmarquezl@gmail.com |
7445accd6462b765ae0452d86137ed83bc7f4af5 | f46a7b675961fc39e626e6f005285c055b1b056d | /worldmap.py | 56809cba74e12f2207200d06ee119899c0c19d0d | [] | no_license | deosjr/PokeRogue | 86514a3bd801f5dd231af0eb31099728b349480e | b5a37e8bc2a603f8e27af83268607504f16b40bc | refs/heads/master | 2021-01-21T15:34:16.057406 | 2014-03-11T22:14:50 | 2014-03-11T22:14:50 | 17,521,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,694 | py |
import gui
from player import *
from pokemon import *
from moves import *
import pygame
from pygame.locals import *
import os
import copy
import random
class MapTile(object):
def __init__(self, img, m, x, y, w, h, wmod=0, hmod=0):
self.image = img
self.map = m
self.tilex, self.tiley, se... | [
"deosjr@gmail.com"
] | deosjr@gmail.com |
259df650824f2ccc83d739757cbc5871912487ce | d521ab3b091306ac8531ba73287f8d8544527389 | /my_project/base/views.py | 915a4a54ae190a5a2cdbc5f58ee6a91361e3c92e | [] | no_license | vateiixeira/hotswap | 7a7222994b4abb74f82ddad40e572612bf4e2d62 | 4c7dabc24c4defc51c4fa80faac4e3a0e7282254 | refs/heads/master | 2023-04-18T07:18:41.981310 | 2023-04-04T19:28:36 | 2023-04-04T19:28:36 | 220,119,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,018 | py | from django.shortcuts import render,redirect
from . import import_circuito_dados,import_inauguracao, import_circuito_voz,import_lojas
import os
from .models import CentralTelefonica, CircuitoVoz, CircuitoDados,IpFixo, Ferias
from django.views.generic.edit import UpdateView,DeleteView
from my_project.core.utils import i... | [
"vateiixeira@gmail.com"
] | vateiixeira@gmail.com |
f4dbe6287f26b3505bbd41c6c3a493e894db9f0e | 43e36f639e69bb3c0ace7b89eee8571d946da1c8 | /scripts/ball_gripping_test.py | 28d81f812fe81d24a1a294c322afcb8d91a80c66 | [] | no_license | mikolak/test_package | 309a07e78b322a0fe378ac595200b473cba0a391 | c9978a440bcdeed54839aeeb1e80795060cc1b5e | refs/heads/master | 2016-09-03T07:24:23.361858 | 2014-09-08T13:36:32 | 2014-09-08T13:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | #!/usr/bin/env python
import rospy
import tf
import actionlib
import math
from controller_manager_msgs.srv import *
from std_msgs.msg import *
from diagnostic_msgs.msg import *
from geometry_msgs.msg import *
from trajectory_msgs.msg import *
from control_msgs.msg import *
from cartesian_trajectory_msgs.msg import *
... | [
"mikolak.k@gmail.com"
] | mikolak.k@gmail.com |
45a17b83e5063af268f032dd425b660dcf74ebf6 | ae67cd669cb733f0ed7b4b02c1320757c91ebd9f | /lut/__init__.py | ff33cffbf0d228820ebf83cb62a25232e9a5b6ea | [] | no_license | anguelos/lut | bef878485a6ce31195593a504f0a819032e878be | 6898fefc748cbbc323415e96e22c1711dfcce1e1 | refs/heads/master | 2016-09-14T01:29:15.626110 | 2016-05-06T16:50:22 | 2016-05-06T16:50:22 | 58,217,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import core
import train
import models
import view
import loss
import layers
import metric
import ds
core=reload(core)
models=reload(models)
view=reload(view)
loss=reload(loss)
layers=reload(layers)
metric=reload(metric)
ds=reload(ds)
train=reload(train)
from core import *
from train import *
from models import *
fro... | [
"anguelos.nicolaou@gmail.com"
] | anguelos.nicolaou@gmail.com |
11f2fe4d1f01ee2b1139b7b7076221a351cbf9e4 | cb26d3f745628cd113f4f954ceac23ce262afbb5 | /Day4/answer_day4_question2.py | 93ae2c3f566d420feb9820a96e4d196c55632b24 | [] | no_license | nama-aman/Qiskit-Challenge-India-2020 | 88e56982012221b4153dc9d73e4f09508c3d7807 | 038956e5b241868637c06cbbf81928f3f9a1d796 | refs/heads/master | 2022-12-16T00:11:15.135572 | 2020-09-06T12:58:47 | 2020-09-06T12:58:47 | 293,277,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py |
### WRITE YOUR CODE BETWEEN THESE LINES - START
# import libraries that are used in the functions below.
from qiskit import QuantumCircuit
import numpy as np
### WRITE YOUR CODE BETWEEN THESE LINES - END
def init_circuit():
# create a quantum circuit on two qubits
qc = QuantumCircui... | [
"noreply@github.com"
] | nama-aman.noreply@github.com |
06b43121f55062f22988a5b9411f16234b2dd4c9 | a527ab5e3c2cf34e92117d657eda52bcc76e24f8 | /gender.py | d5e7b764b1601b921cb0f6f51492e26b2ef874a0 | [] | no_license | pankajdahilkar/python_codes | 2e4246aa9b725b28f3cccb4c7a4c7094927b8b5a | 56fda0257fb4769da59f2b5c81536f9a5b9ee2db | refs/heads/master | 2021-05-25T17:16:55.765443 | 2020-04-13T07:21:02 | 2020-04-13T07:21:02 | 253,838,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import csv
name = input("Enter your name ")
with open("Female.csv",'r', encoding='utf-8') as f:
reader = csv.reader(f)
for row in reader :
for field in row :
if field == name:
print(name,"is girl")
... | [
"pankajmdahilkar@gmail.com"
] | pankajmdahilkar@gmail.com |
6ecde04930e4c4d2d909383a6d9ae3c2c8476230 | c089d51e00ace0e2d2c1c08cc7278ea4a43ff8f9 | /classifiers/keras.py | 4ac55c4f41d6fadb0db78e8d3ac6e6246d879ec9 | [] | no_license | salman-kha3/ActiveLearning | 84f088aac802c59edba94c205b4666bfa8e7b15f | 3d6c6c120788ea2fd338cff5d3f5b88b5b8901ec | refs/heads/master | 2021-01-11T20:35:46.977142 | 2017-04-02T12:58:01 | 2017-04-02T12:58:01 | 79,150,978 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import keras
from libact.base.interfaces import ContinuousModel
import numpy as np
class KerasClassifier(ContinuousModel):
def __init__(self, *args, **kwargs):
self.model = keras.models.Sequential(*args, **kwargs)
def train(self, dataset, *args, **kwargs):
return self.model.fit(*(dataset.for... | [
"salman.khatri3@gmail.com"
] | salman.khatri3@gmail.com |
e9007469f0c62d35934f81d737afe7d8be412af9 | db38a57c46e9ef9d0a8f433dfb8df78ab589ef43 | /Server[raspberry]/kinesisServerRaspi.py | 80349929b46a02477838f6ef5cedd62f6bb5e380 | [] | no_license | Irraky/Kinesis | b49cdd48cb083532c36bb287f92559db9647f572 | 3679f4c4be16c60b14260a2bcf25a22bd00a017a | refs/heads/master | 2023-02-16T17:11:55.073806 | 2021-01-10T22:48:30 | 2021-01-10T22:48:30 | 319,982,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import socket
import sys
import TPi.GPIO as GPIO
import time
# BCM pin name from processor
GPIO.setmode(GPIO.BCM)
PINARDUINO = 21
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port
server_address = ('10.3.141.1', 7000)
print('starting up on %s port %s' % ... | [
"drecours@student.42.fr"
] | drecours@student.42.fr |
e02fdfc77ed8ff75c967cc103270bbf078cc1a93 | dca131a24069267482c0cbfb84fb0dd5e0ad0c94 | /python/40-49/problem48.py | df6784dc9e350e097f2ab7f5b5f867ae681110a8 | [] | no_license | jpzgoku/projectEuler | 23d7567a6836875634b5ac30df2baafaa1cead3e | d156ae1f48b4f8dcc3f0eda2ab7119ac0ae6410f | refs/heads/master | 2021-01-13T04:09:06.671692 | 2018-09-19T04:20:54 | 2018-09-19T04:20:54 | 77,886,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | def self_powers(max):
return [x ** x for x in range(1, max + 1)]
if __name__ == '__main__':
x = str(sum(self_powers(1000)))
print(x[len(x) - 10:])
| [
"jpzgoku@hotmail.com"
] | jpzgoku@hotmail.com |
77f78c54499c89158741dcfdec3c99815d78fd7f | 48399403b64b9d8e52ea573c0cbefb941f33e540 | /server.py | 62775f3592e3fea539d03b16d9b96c25a5d4ac78 | [] | no_license | Henry-Aybar/counter | 97c54c9a3060fb0249ee432ec89163ae796c014e | 8bb089134d502bd334d785751352086340561862 | refs/heads/master | 2023-08-03T09:41:43.420948 | 2021-09-14T20:50:30 | 2021-09-14T20:50:30 | 406,517,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from flask import Flask, render_template, request, redirect, session
app = Flask(__name__)
app.secret_key = 'Im just Super Sayin!'
@app.route('/')
def index():
if 'visit' in session:
session['visit'] += 1
else:
session['visit'] = 1
if 'count' in session:
session['count'] +=... | [
"aybar.henry.usmc@gmail.com"
] | aybar.henry.usmc@gmail.com |
fbad71338ab509e1dfd81e377efb259dc9287a74 | 4e092f6a59c0aad5cfe4235baac06f4f9823c62a | /0026. Remove Duplicates from Sorted Array.py | 3628990533211b662c2e9da54cc9ee0e44197a56 | [] | no_license | xinmiaoo/leetcode_Aug_3 | 72091fd7d23f98fb646ffb6f0b1a3068c930ea3f | 732d8aa126dd5149013a4ce084f37ee8bc123ac7 | refs/heads/master | 2020-07-12T04:34:24.506629 | 2019-08-10T21:54:50 | 2019-08-10T21:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums)<1:
return
if len(nums)==1:
return
i=1
while i<len(nums):
if nums[i]==nums[i-1]:
del n... | [
"noreply@github.com"
] | xinmiaoo.noreply@github.com |
f4430e22cc2f6c99418d9e381141e4def5bbadbe | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/properties/loadGroupName.py | 91317396187f0aba508194373e1dc407e7c35dc1 | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | """loadGroupName userdefined property type, originally defined in resource
file set iot 90:00:00:05:00:00:00:00-1."""
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (t... | [
"lcoppa@rocketmail.com"
] | lcoppa@rocketmail.com |
1080efe864c0987d212ee7dc9f93c2eb3b2aac02 | ced90a261ca425d86581ff301c21ce08e005c067 | /tranx/datasets/django/dataset.py | 6e4e64b95bf293feb1a5c1198b55baed0eb6137f | [] | no_license | gaoliujie2016/tranx-1 | 0a9727d9f5bf96ea0874b2c723045d734fa824d6 | f9e4de91f678284f2935e2f9c4cdf71a32d8deca | refs/heads/master | 2022-03-08T14:49:42.148163 | 2019-08-27T18:15:21 | 2019-08-27T18:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,743 | py | # coding=utf-8
from __future__ import print_function
import torch
import re
import pickle
import ast
import astor
import nltk
import sys
import numpy as np
from asdl.lang.py.py_asdl_helper import python_ast_to_asdl_ast, asdl_ast_to_python_ast
from asdl.lang.py.py_transition_system import PythonTransitionSystem
from... | [
"alex.dinu07@gmail.com"
] | alex.dinu07@gmail.com |
78196c0216eb2c3169434d91e959b6edf1d91d1a | 44d9cdc0ca026036c314b8530a7eeda1fb3ee21c | /src/JZ/JZ14-II.py | ea9dde6589c4ad917732d8c88169b2ff6c251334 | [] | no_license | Sibyl233/LeetCode | 525a2104a4f96e0e701fa175dfad6d02d6cf40f3 | 3e20e54bb11f7a56d8fa8189a0a1a1461f81eb8a | refs/heads/master | 2021-09-06T14:52:31.718922 | 2021-08-20T15:51:37 | 2021-08-20T15:51:37 | 234,050,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | """解法:找规律
- 时间复杂度:O(logN)。为二分求余法复杂度。
- 空间复杂度:O(1)
"""
class Solution:
def cuttingRope(self, n: int) -> int:
if n <= 3:
return n - 1
# 不同于JZ14-I,根据题意此处求余采用二分求余法
a, b, p, x, rem = n // 3 - 1, n % 3, 1000000007, 3 , 1
while a > 0:
if a % 2: rem = (rem * x) % p
... | [
"780598113@qq.com"
] | 780598113@qq.com |
1afefbe7797fabd4b8f9a7ab4164ea1bf07b73e6 | b13c95cb06434a985f9da51575f1eb3fa484cb0c | /helloworld/main.py | 9320a568b423d22b5eaab013607325ea89c83177 | [] | no_license | shandre-github/minikube | aa34294d6355ade16e0155bd5caef6a946840e69 | 94cfe856bf202e90464c2d85ccabe1ce673dbeb2 | refs/heads/master | 2023-03-13T15:11:39.785525 | 2021-02-25T04:53:19 | 2021-02-25T04:53:19 | 341,305,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
name = os.environ.get('MY_POD_NAME')
return 'Hello World from {name}'.format(name=name)
app.run(host='0.0.0.0', port=8080) | [
"shpnaruto@gmail.com"
] | shpnaruto@gmail.com |
595a9e74a588b9a31577ba1c84a3e2bd2e99a3bc | e4c798246339e765f04424d727106e80e810f47c | /Medium/iNo008.py | 7c70fbb6da2f54341b2bef3bbcc9b1e6fae85c2f | [] | no_license | kikihiter/LeetCode | 3a61dc4ee3223d634632e30b97c30a73e5bbe253 | 62b5ae50e3b42ae7a5a002efa98af5ed0740a37f | refs/heads/master | 2021-05-26T08:05:00.126775 | 2019-05-21T09:18:37 | 2019-05-21T09:18:37 | 127,999,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
str = str.lstrip()
posNum = True
if str == "":
return 0
if str[0]=='-':
posNum = False
str = str[1:]
elif str[0]=='+':
... | [
"noreply@github.com"
] | kikihiter.noreply@github.com |
c72344f39a2b47d401f7e46eee77380b114764d6 | 32a3a7522546df5f18effcaec43b66115c1cd2c1 | /alpha/migrations/0001_initial.py | deee8f56a15d69afa30df48f53d2484a0ee593bc | [] | no_license | seian/youask | 4b90804a289d3b7d21c9fb9b7b7736279845b95b | 490c8f730e32462eae6a7f69af25fed10c92aba9 | refs/heads/master | 2016-08-09T08:17:19.168489 | 2016-02-17T05:58:46 | 2016-02-17T05:58:46 | 50,502,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-17 04:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Celeb_i... | [
"wnsdud1861@gmail.com"
] | wnsdud1861@gmail.com |
0c8795e3c608547bd7a3663df3bd69eeabac19fa | 1978ed0ffd9264e0b598e82966acd53add379fce | /BK_Scripts/shapes.py | cdc2e922bed34aca1b93307f0e70aaebe4d1941e | [
"MIT"
] | permissive | bkvignesh/manim | 70d30c22d601eccf67108bca52317bfe3e2b4a7b | a4dace8f85113b1605235531f5de8f5d408ac823 | refs/heads/master | 2023-01-22T23:39:57.324803 | 2020-10-12T13:11:21 | 2020-10-12T13:11:21 | 295,242,598 | 0 | 0 | NOASSERTION | 2020-09-13T21:41:33 | 2020-09-13T21:41:32 | null | UTF-8 | Python | false | false | 1,112 | py | from manimlib.imports import *
from math import cos, sin, pi
import numpy as np
class Shapes(Scene):
def construct(self):
circle = Circle(color = YELLOW)
square = Square(color = DARK_BLUE)
square.surround(circle)
rectangle = Rectangle(height=2, width=3, color=RED)
ring = An... | [
"vigneshbk42@gmail.com"
] | vigneshbk42@gmail.com |
0795e38e200dc99858a29c73d98fbc5eada52473 | 9d8314bcb2cdabb62e6ce97cf61fc79e559e1c4f | /python-ds-practice/fs_5_read_file_list/read_file_list.py | 74b36e94617c01f212c124ad2b7d30a53cadb857 | [] | no_license | hannahsylee/18_Python | 110ac6bfcda571bfafa0a737723616ba0ac87957 | 165465755fd3707b20fa5f7a094826ee2374cbe8 | refs/heads/main | 2023-08-27T02:22:53.879605 | 2021-10-18T04:05:22 | 2021-10-18T04:05:22 | 417,318,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | def read_file_list(filename):
"""Read file and print out each line separately with a "-" before it.
For example, if we have a file, `dogs`, containing:
Fido
Whiskey
Dr. Sniffle
This should work:
>>> read_file_list("dogs")
- Fido
- Whiskey
- Dr. Snif... | [
"hannahsylee@gmail.com"
] | hannahsylee@gmail.com |
d0e5a0905a4356ef92ac7aaf23d6954bde4d27c3 | 6a2d708c290d5fc8b4eb6d2b6d52186d6ae57406 | /Chef Race (SRTF) Final/srtf.py | 5bbf4bbf634474a5b9be024dfb09b3ce1e213ed3 | [] | no_license | ac-marlon/ChefRaceUD | 64080c1e575234f03113c16d9c017c4f42f55010 | b3c8312af7b6b8e3e6fc0a457169358e4bd1d62b | refs/heads/master | 2021-08-26T01:09:25.324512 | 2021-08-18T15:01:24 | 2021-08-18T15:01:24 | 108,355,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,609 | py | import cola
import time
from procesos import *
import recursos as rs
import queue
import threading
import numpy as np
import pygame
from pygame.sprite import Sprite
from pygame.locals import *
import util
import sys, pygame, util
from receta import Receta
from recursos import CuchillosIma
from recursos import Licuadora... | [
"noreply@github.com"
] | ac-marlon.noreply@github.com |
3bf09fa4f79c4ab4f60f4fdf8d3c23e04214b598 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /F5ycABGyZtghMpYjr_16.py | ce3767d6e7a4448df5ed169a0465448836b9b5c5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py |
def max_num(n1, n2):
if n1 > n2:
return n1
else:
return n2
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5d5fd3a0fc2112964ec1c90c48196dcdc7468bd7 | d93b337a73a9bc6f6c104cc6eea9ca8d60ef3577 | /stripeAPI/cargo.py | 407cca194cdbced169d8ec5a77e78e9b275ed8e4 | [] | no_license | erivera23/market | 0532c5aefe32bd0102fa18fe6b224af289c4388f | 73bead776f233bd1a79d34122daeff74b2b3ce18 | refs/heads/master | 2022-12-13T00:21:38.163936 | 2020-01-18T22:52:34 | 2020-01-18T22:52:34 | 234,808,623 | 1 | 0 | null | 2022-11-22T04:57:29 | 2020-01-18T22:51:03 | Python | UTF-8 | Python | false | false | 478 | py | from . import stripe
def create_cargo(orden):
if orden.billing_profile and orden.user and orden.user.customer_id:
cargo = stripe.Charge.create(
amount = int(orden.total) * 100,
currency = 'USD',
description = orden.descripcion,
customer=orden.user.customer_id... | [
"riveraefrain5@gmail.com"
] | riveraefrain5@gmail.com |
92b948fe97b26eb0b10d0f37347f317f1618052f | 47aada5f50fdb6dfe0c8b34ff30de93a32797dca | /tpfa/boundary_conditions.py | 760274d702f7f588864f85db98cb8d975fd5a9bf | [
"MIT"
] | permissive | Filipe-Cumaru/hello-world-1 | 17a7e11ac9f3efa0026c3471538cf4f28323e8ef | b12137beebbf1a4bd87d02583b609d8c68307474 | refs/heads/master | 2020-04-24T23:59:01.077919 | 2019-02-24T02:40:58 | 2019-02-24T02:40:58 | 172,363,231 | 0 | 0 | MIT | 2019-02-24T16:47:05 | 2019-02-24T16:47:05 | null | UTF-8 | Python | false | false | 779 | py | import numpy as np
from scipy.sparse import csr_matrix, lil_matrix
class BoundaryConditions():
def __init__(self, num_elements, nx, ny, coef):
self.coef = coef
self.num_elements = num_elements
self.nx = nx
self.ny = ny
self.coef, self.q = self.pressao_prescrita()
def pr... | [
"renatattavares@hotmail.com"
] | renatattavares@hotmail.com |
abbef862cd5933de0ed6f118c4196a4adeb7ccc2 | 376dbd781ff32bb5c1fa64b8b2fc2cb7bfeb62bb | /main.py | 46a4a3510a8ea612c0975a28bd3c2053cae6dceb | [] | no_license | ahaggart/image-shatter | db00662c85c6f8b698008757fc38e9b42d733d91 | cca1a392bc3445b117e413bcdb8fd473de82ebfe | refs/heads/master | 2020-05-26T21:55:49.783242 | 2019-05-24T11:03:48 | 2019-05-24T11:03:48 | 188,388,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import argparse
import cv2 as cv
from blobs import caluculate_colorspace_distances, grow_blobs
from polygons import find_edges, order_edges
from colorize import color_blobs, color_edges, color_ordered
def main(config):
image = cv.imread('img/' + config.file)
width, height = image.shape[:2]
print("Calcu... | [
"alex.haggart@gmail.com"
] | alex.haggart@gmail.com |
b4fde878db7746ff13c0a3dedbfbca0736d7249c | 34c91527966ecf29d8adf46becbf3af5032dc3a6 | /basic/armstrongnumber.py | 9552f47dc63cdff9b0b8cf0745e63ea4f047d5bf | [] | no_license | mjohnkennykumar/csipythonprograms | 0a23040a484812b3176b614bf0e18f685c74a375 | 750cdaeda15fe73328902c3de567d6083dfa7a77 | refs/heads/master | 2021-01-21T14:32:37.913617 | 2017-06-24T12:54:03 | 2017-06-24T12:54:03 | 95,297,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # -*- coding: utf-8 -*-
# Python program to check if the number provided by the user is an Armstrong number or not
# take input from the user
# num = int(input("Enter a number: "))
# initialize sum
sum = 0
num = int(input("Enter a number: "))
# find the sum of the cube of each digit
temp = num
while temp > 0:
digi... | [
"Samuel Henry"
] | Samuel Henry |
e944a493701484b85f0930ed5c5c716253ed6a9b | 8227d4cf270ffc45ed9c0c5f94b04f51187751c4 | /srezy.py | eb59c4eaa583d3111c0c3b1040beb6c6948da6cd | [] | no_license | NosevichOleksandr/firstrepository | ced760563a039af88dd1a5588ba0553e5e0cdef6 | 70652118bcdac48f7b638fe2d896d587f79115d1 | refs/heads/master | 2023-04-02T02:46:50.723173 | 2021-04-17T13:34:37 | 2021-04-17T13:34:37 | 356,614,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | print('hello world')
a = input('write your ... something: ')
if len(a) % 2 == 0:
b = a[:len(a)//2]
c = a[len(a)//2:][::-1]
print(b + c)
else:
print('ты неправильно ввел')
| [
"bpxnastalgia@gmail.com"
] | bpxnastalgia@gmail.com |
f1b79ea5db5f487fdf2cfc2259c01ffb58418ed7 | 39c032082a86120d06c6daa33abe81fd228077bb | /tsne-test.py | c86c780cdfe556efdb8c869957eca1457810f9a9 | [] | no_license | briantimar/nn-test1 | 4b3365743f31b6bcd9aa3565a55c1239ccb81312 | 980b29b3909c6b9539a06e771f3fafbc413a2a14 | refs/heads/master | 2020-03-19T15:20:28.541618 | 2018-06-14T18:28:12 | 2018-06-14T18:28:12 | 136,667,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 14 00:13:18 2018
@author: btimar
Visualizing ground states?
"""
import sys
import numpy as np
import tensorflow as tf
sys.path.append("/Users/btimar/Documents/ryd-theory-code/python_code")
from ryd_base import make_1d_TFI_spin
from tools import ... | [
"timarbrian@gmail.com"
] | timarbrian@gmail.com |
50157256f9b323f313890c0165fa4fe159337357 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/the/test.py | 8b5458899ae7d4a6053ff37dca0868ce16e83cdb | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | import the
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
acc0e879ddff0fddff0f1c17854d03eba9823789 | be8fe594fae8a4fb66c0cbc1f0e8462891eabb1b | /examsystemapp/api/external.py | ff92d1a6411c523b029c830ee33dfb926c6e41f2 | [] | no_license | ITfyMe/ExamSytemPython | a30cccc1ba4ef832666b23109a772209fcbcea8c | da7506ae9607d69c97744bdc08ac1113fc86237a | refs/heads/master | 2023-06-12T11:48:20.514142 | 2021-07-12T13:16:06 | 2021-07-12T13:16:06 | 369,427,947 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | """
Created By : Nikesh
Created On :
Reviewed By :
Reviewed On :
Version :
"""
from django.http import HttpRequest
from examsystemapp.api.base_controller import BaseController
from examsystemapp.utils.helpers.request_helper import RequestHelper
from django.conf import settings
class External(BaseController):
d... | [
"nikesh.kedlaya@gmail.com"
] | nikesh.kedlaya@gmail.com |
be4bc8669b12545f0c578c87d72131ebfc8489d0 | 947273c16f8984a20cd002b99b52facd6e63e43b | /server/authentication/urls.py | dacfd5c43349691a7bc454b922558db58c2608aa | [] | no_license | ecuaappgye/App | 8e3b50b4f7a8b9c50876d24343781e8f53a51bbc | 2df7be6fd206d012f6a83acd0aa0cb75cf6d5937 | refs/heads/master | 2023-07-05T00:48:24.341021 | 2021-07-31T17:02:12 | 2021-07-31T17:02:12 | 385,267,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from django.urls import include, path
from .apis import (UserEmailChange, UserGetApi, UserLoginApi, UserLogoutApi,
UserPasswordChange, UserPasswordReset,
UserPasswordResetCheck, UserRegisterApi,
UserRegisterVerifyApi, UserRegisterVerifyCheckApi,
... | [
"italobarzola18@gmail.com"
] | italobarzola18@gmail.com |
9b0b34eb1b3a8edde6ec56f298ac3c0a5bbe79f7 | cb0bad5bd717fef43674ffd2f76a5fe922cf0896 | /eurito_daps/flaskblog.py | 74bf352313b346746653461bbfeb148f1c63290a | [] | no_license | porter22/porter22.github.io | 2b3dbe6f8c6ffcfb3f4ff374e12f769f1ef06b51 | ad15c20fa3f8490642cd831da82eb448c694c746 | refs/heads/master | 2021-06-05T20:46:47.862065 | 2020-03-15T17:27:09 | 2020-03-15T17:27:09 | 122,872,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | from flask import Flask, render_template, url_for
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__) #instantiated flask variable
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db' #/// relative path from the current dir
db = SQLAlchemy(app) #create database instance... | [
"idrissov22@gmail.com"
] | idrissov22@gmail.com |
c009051241a83019b6b7b8d33d001752d3ebe5bb | 428dd6e4ab9ee4916664f13a25f04ae424769d47 | /pwd.py | 162233077798636c35d2030fa2e855c4d0cb7694 | [] | no_license | licmnn/pwd | 16e8ae1113f8a7bed8d16bdb4e989983c3e41f50 | 82921059804619e28f777691cf4d9c46e528deaa | refs/heads/master | 2022-07-10T12:50:05.914564 | 2020-05-19T15:20:21 | 2020-05-19T15:20:21 | 265,280,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | #password = 'a123456'
#x = 3
#while x > 0:
# pw = input('请输入密码: ')
# if pw == password:
# print('登入成功') # quit
# break
# elif x != 0:
# x = x - 1
# print('密码错误! 还有%d次机会!' % x)
# else:
# pirnt('')
'''
pw = input('请输入您的密码: ')
x = 2
print('密码错误! 还有%d次机会 ' % x)
while x > 0 :
if pw != 'a123456' and x > 0:
pw = inp... | [
"licmn@live.com"
] | licmn@live.com |
edb363be7d18412f48d26946d0a265a266919f9e | 9d43b8a3b53001f25a347fd96e5c49538b0c509a | /mxshop/apps/trade/views.py | 30e854b8ad252b98ccda10e6bfe8ca3d67cb173a | [] | no_license | w8833531/mxfresh | b81b7e4223536c6bedb049009386015935d33987 | 46b83fafdae8450491344c531de81a45ab5d8aae | refs/heads/master | 2021-04-09T15:53:50.829921 | 2018-08-08T01:41:14 | 2018-08-08T01:41:14 | 125,793,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | import random, time
from datetime import datetime
from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import status
from rest_framework import permissions
from rest_framework import authentication
from rest_framework import mixins
from rest_framework.response import Response
from... | [
"w8833531@hotmail.com"
] | w8833531@hotmail.com |
dd8ff876cdff51683095b93c5c1e9985b5a29584 | 9732da539d940904cf09b4164a307cb1a58fbb35 | /superhero/ability_and_armor.py | bb0e7c0ea30847095581385d460942d5d2e5ad75 | [] | no_license | makhmudislamov/fun_python_exercises | f3c7557fa6ed400ee196252a84ad7b6b23b913f1 | 21ab89540fb5f4f04dbdb80f361bf4febd694c11 | refs/heads/master | 2020-05-26T05:42:20.115833 | 2019-10-17T03:28:57 | 2019-10-17T03:28:57 | 188,125,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | from random import randint
class Ability:
def __init__(self, name, max_damage):
'''
Initialize the values passed into this
method as instance variables.
'''
self.name = name
self.max_damage = max_damage
def __str__(self):
return f'This ability is {self.... | [
"sunnatovichvv@gmail.com"
] | sunnatovichvv@gmail.com |
7329c993e5cfe2cf131a107a9c946a0937892cb4 | 098ac9ecdaa67b717182c2aeca2a9d60833e88e7 | /opentcweb/settings/prod.py | fd788fb20c554254729032aeabf64156243e772a | [
"MIT"
] | permissive | cahya-wirawan/opentc-web | c8e758835d129cf7edb6f9dbf640632c2aa9ff2f | fa74c49f3f2b1a74624deca912f7da87afdc7e1b | refs/heads/master | 2021-01-19T19:13:44.629858 | 2018-01-21T13:21:32 | 2018-01-21T13:21:32 | 88,406,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from __future__ import absolute_import
from .base import *
# Production overrides
DEBUG = False
#...
| [
"cahya.wirawan@gmail.com"
] | cahya.wirawan@gmail.com |
42cd98f60f8637e2f8b57280dee6eeb14f3eac98 | bb4dc40ec0b62e5d2fc3ce1234013aebd4e648d5 | /src/modules/customised/payroll/hra/__init__.py | 708a454f4468ac2e8c826538ed0f9f59fab6f7cf | [] | no_license | kakamble-aiims/work | ba6cbaf4c525ff7bc28d0a407f16c829d0c35983 | cd392bf0e80d71c4742568e9c1dd5e5211da56a9 | refs/heads/master | 2022-04-02T14:45:58.515014 | 2019-12-31T14:00:51 | 2019-12-31T14:00:51 | 199,015,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from trytond.pool import Pool
from .hra import *
def register():
Pool.register(
HRA_Allowance,
module='hra', type_='model') | [
"kakamble.aiims@gmail.com"
] | kakamble.aiims@gmail.com |
46b52fe8e5c60205d2161d38dc9193d19d105f9e | cba90cdd06eced813be6ad80e6295587223c4600 | /betfairlightweight/endpoints/navigation.py | 8795b7d2b4a2e08e79350a3a78ae3dd5e1c20f13 | [
"MIT"
] | permissive | mberk/betfair | 1a22528b881e02567626dbe7e8c4f0197809c38e | 6b064a68c8d2afceda81b70d74b6a0ee9601f228 | refs/heads/master | 2023-03-07T02:33:06.443407 | 2022-08-16T08:06:10 | 2022-08-16T08:06:10 | 192,976,576 | 0 | 1 | MIT | 2023-03-01T12:03:37 | 2019-06-20T19:28:23 | Python | UTF-8 | Python | false | false | 1,510 | py | import requests
from ..exceptions import APIError, InvalidResponse
from ..utils import check_status_code
from .baseendpoint import BaseEndpoint
from ..compat import json
class Navigation(BaseEndpoint):
"""
Navigation operations.
"""
def list_navigation(self, session: requests.Session = None) -> dict... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
a6d1b05a1ca185859368e58727850feec6b840f5 | 209f0d778a673884cf56b83e9bde392f712f84aa | /.venv/bin/chardetect | aa41d066f5dfbc7d9dc51d3bdcff15c0287360f8 | [] | no_license | obiorbitalstar/chess-board | f65e5706405e4a420dfc843b5f18c39a1f16cc7d | 0bb61022fd49a6361813d894f28bcd99c07766aa | refs/heads/Master | 2022-12-18T01:56:50.652476 | 2020-08-30T13:43:38 | 2020-08-30T13:43:38 | 291,475,486 | 0 | 0 | null | 2020-08-30T13:43:39 | 2020-08-30T13:27:49 | Python | UTF-8 | Python | false | false | 264 | #!/home/orphues/codefellows/401/chess-board/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"obiorbitalstar@gmail.com"
] | obiorbitalstar@gmail.com | |
ab6f49788e9c9b703b8119182f349d2b181ec92c | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /kaki.py | 2c2c28e9db71f7ea3b53c39e8cf861cadb925d35 | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | S = [input() for _ in range(12)]
cnt = 0
for s in S:
set_ = set(s)
if 'r' in set_:
cnt += 1
print(cnt)
| [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
fb12aa0f0a717a88fe55aac5ace8b0cda17fdc54 | ce39286b958c01cbbd68ecffc33d3724c8c130f1 | /club/app/migrations/0026_paquete_inscrito_horas_consumidas.py | 166d62f8b0c29460f78bc02d7a841840c518c74e | [] | no_license | Rob866/club | eb26c3085bb37908226bfed306d98538eed64dff | f2e58ca773a4e461a9905c0898c1f11bd5e94099 | refs/heads/master | 2022-12-16T00:07:32.423945 | 2020-01-09T04:38:09 | 2020-01-09T04:38:09 | 216,317,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 2.2.6 on 2019-10-15 20:29
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0025_auto_20191015_1240'),
]
operations = [
migrations.AddField(
model_name='paquete_inscrito',
... | [
"juanrob_10@hotmail.com"
] | juanrob_10@hotmail.com |
6722bcef452c085f75a486160d1e49a88934b6c6 | d92a1eb61863aa0dba7df6a8e787f243715effb2 | /urls.py | 0da45212c15d635f432c6b8adbd8c6e3b4f2a0a7 | [] | no_license | Engaginglab/scoreit | 91a7cc4b610556b45355bdd32c4c608dc2993edd | a54a073e6aded904b14738867c6b9dfa31e744f0 | refs/heads/master | 2021-01-10T19:58:05.162232 | 2012-09-22T14:34:48 | 2012-09-22T14:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from django.conf.urls.defaults import *
admin.autodiscover()
urlpatterns = patterns('',
(r'^auth/', include('auth.urls')),
(r'^handball/', include('handball.urls')),
(r'^admin/', include(admin.site.urls))
)
| [
"martin@maklesoft.com"
] | martin@maklesoft.com |
eaed7c034ea788beec33f6c9b31938383407cb09 | 7c98bee73fdd64a8fa08dc3a94e520b175ac190e | /bin/rst2latex.py | 311af3f8a994b04f7ad5f9f586bc0e1fc7cd2fcd | [] | no_license | Barry-Chen-Intersective/Proj-Api-Test | 97015eccb4b6d1652ca8809cbb8ddbe1132008c0 | cc707770578bd35a155f506198ad765d91926daa | refs/heads/master | 2021-07-21T04:45:09.329331 | 2018-10-23T01:25:02 | 2018-10-23T01:25:02 | 135,973,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | #!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# 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 ... | [
"barry@intersective.com"
] | barry@intersective.com |
d5e72b406d12cc64d1490e7ba89e8b441f0c7d4e | bf511b123d05788e45b17270dc3e651a82a7ee58 | /taskmate/todolist_app/migrations/0001_initial.py | 2f3cc31b47612b0ee866de917ddd0d5a8fd0076f | [] | no_license | joseluis-gc/Django-TodoApp | 36a7350064a66dd917c1383be1eee923f3ffd20e | 2e3f82ba0fe08f76fb0d98bec2bde2717684818e | refs/heads/master | 2023-06-09T18:42:46.580395 | 2021-06-24T05:31:50 | 2021-06-24T05:31:50 | 377,983,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Generated by Django 3.1.5 on 2021-06-18 00:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TaskList',
fields=[
('id', models.AutoField... | [
"joseluisgomezcecegna@gmail.com"
] | joseluisgomezcecegna@gmail.com |
1c61b1085a41baf65935cafa23107b1498cffadb | 56c23dfabac2b6cdcecfc20f6cc1e53d0041fd7a | /stanCode projects/find_DNA_complement/complement.py | 555df5d7a6b415aa24d181d33ca43b2eb429b0f0 | [
"MIT"
] | permissive | rogerchang910/stanCode-projects | 174144bcb67b5e141f7acc320e5a14027134bc2a | 92beb09b23a40c09a093dfad80837d97a90c8e3a | refs/heads/main | 2022-12-30T10:11:23.402634 | 2020-10-19T07:57:46 | 2020-10-19T07:57:46 | 303,656,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | """
File: complement.py
Name: Roger(Yu-Ming) Chang
----------------------------
This program uses string manipulation to
tackle a real world problem - finding the
complement strand of a DNA sequence.
The program asks users for a DNA sequence as
a python string that is case-insensitive.
Your job is to output the complem... | [
"noreply@github.com"
] | rogerchang910.noreply@github.com |
890ebb99722d62fb6f06cab56b621f579b3449d8 | 6044e804dc994cb342dee73124e9216d552f6096 | /first_test.py | 4b5fe2ac95c876216633f6dacbfe65f4347e5645 | [] | no_license | jjpikoov/jjblog | 8fc02a84fa45e2d92dcdc2def55b49969b361b2f | fb89e2c6b737075c14ba25f3c3331717ae565b2c | refs/heads/master | 2021-01-10T09:10:51.089560 | 2016-02-17T16:40:53 | 2016-02-17T16:40:53 | 49,321,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import os
import main
import unittest
import tempfile
class JJblogTestCase(unittest.TestCase):
def setUp(self):
self.db_fd, main.app.config['DATABASE'] = tempfile.mkstemp()
self.app = main.app.test_client()
main.database.init_db()
def tearDown(self):
os.close(self.db_fd)
... | [
"jjpikoov@gmail.com"
] | jjpikoov@gmail.com |
9c762d2633df105988229e84fc9d96bc46b0cd65 | e5b72785a1a191ca8ed62dee6048f865caa61fe3 | /gestao/urls.py | c9f849a26b749eccbcb0f922bcf1c04f55871d3d | [] | no_license | MarToxAk/v5 | 344409f98ea0098b272c4e3bc2d21e7c9bbcfe65 | daa76fe9f2346805cf99b62d8f687d8f751defbc | refs/heads/master | 2020-11-27T01:54:06.684511 | 2019-12-20T12:45:43 | 2019-12-20T12:45:43 | 229,263,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """gestao URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Class-based ... | [
"junior.ilha@hotmail.com.br"
] | junior.ilha@hotmail.com.br |
0cd44d57984873ff2dd3d1e25064b5bc50b880c1 | 23fdc97552b7e55b8c5e5eca3046ee95eb29d43c | /leetcode/leetcode_111.py | db8f1ff94b73fffc72e5a91a64d84064cc74e9ef | [] | no_license | qiqimaochiyu/tutorial-python | b999ef63026d05045a33225b1fbe2a5919422961 | a0d50946859798a642aaacdc31fa97cc015ae615 | refs/heads/master | 2018-10-04T18:12:18.017065 | 2018-06-26T09:23:50 | 2018-06-26T09:23:50 | 90,226,235 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
retur... | [
"noreply@github.com"
] | qiqimaochiyu.noreply@github.com |
90208cdc6c60917016382d39760b8a3bb14ff4d3 | 8d34c0d29b69028fb1da01499fdac19f9762a8e1 | /lib/python2.7/sunlight/service.py | cf069d357b54bd46632e3a1b8417e69f90c7f8b1 | [] | no_license | politicrowd/politicrowd | 87a98689724c288b5400acd0de6fb7fae7e058d4 | e62c89d234a59f6c7d56fae2c8af6074f426c265 | refs/heads/master | 2021-01-20T00:55:48.083054 | 2013-07-30T00:14:08 | 2013-07-30T00:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Copyright (c) Sunlight Labs, 2012 under the terms and conditions
# of the LICENSE file.
"""
.. module:: sunlight.service
:synopsis: Sunlight API Superclass
Base service class. All API classes (such as say -
:class:`sunlight.services.openstates.OpenStates`) inherit from this.
"""
import sys
import sunlight.conf... | [
"paul@politicrowd.com"
] | paul@politicrowd.com |
7d6c817fe544b5cc80a68b8c685ce92faf0c9ef5 | a9d6a3b0fe418e4e5cc131ebc05f9b56c0e4543e | /chapter11-django/site02/site02/settings.py | 1ba07484b03cf34c8252583125bc6c301d4cb224 | [] | no_license | Kianqunki/Python_CorePythonApplicationsProgramming | 34a36ba64bdc303814de507c4fcfc3c81ff88b5f | 77263c1fde0d02aade180f7e73d2cdee1d170d58 | refs/heads/master | 2021-05-07T02:41:44.567088 | 2014-10-27T17:43:51 | 2014-10-27T17:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | """
Django settings for site02 project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"georstef@gmail.com"
] | georstef@gmail.com |
7be265dac32863a3cb746a50679f132f3cfc6705 | 7d17375998378125fa63b1cf8673b8387d99324f | /core/migrations/0006_auto_20200517_0929.py | 07187c5d3c0bad2459578712f836c9dcc72447db | [] | no_license | priyanka1698/Late-checker | c2f96993340f09c55bd9eac2261cc760c409eae9 | ff1c4615b3abefd65fa789fcd1e684322ddfc9de | refs/heads/master | 2022-08-19T15:22:00.692770 | 2020-05-20T11:45:35 | 2020-05-20T11:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | # Generated by Django 3.0.5 on 2020-05-17 09:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_delete_image'),
]
operations = [
migrations.CreateModel(
name='Timing',
fields=[
('id',... | [
"sanyam19092000@gmail.com"
] | sanyam19092000@gmail.com |
8b579bbef3904192079b88f2eac49f003e9d4eb1 | 7ad7eb81d1dc26edd3b958a5dbbc7d61f19b0640 | /test/test_mode_type.py | 4c28945ba899c6fcde6a31a07364acf1687527cc | [
"MIT"
] | permissive | camptocamp/quickpac-client | a1b6e7164e2ad362c0c6d819a31ace9f6774f926 | 761c08bdc3846c724adbc99b589d2db460a6bcdc | refs/heads/master | 2023-07-16T18:46:48.167193 | 2021-09-02T08:56:46 | 2021-09-02T09:12:46 | 401,749,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # coding: utf-8
"""
Quickpac API
Here you will find all public interfaces to the Quickpac system. # noqa: E501
OpenAPI spec version: v1.00
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import quickpac
from quickpac.mod... | [
"stephane.mangin@camptocamp.com"
] | stephane.mangin@camptocamp.com |
b642ce9125bc51b5a9f9d0ae69199d2d0bd1bf63 | 2e8ff2eb86f34ce2fc330766906b48ffc8df0dab | /tensorflow_probability/python/experimental/inference_gym/targets/__init__.py | a5ba67a6a9b68bf31372bf5990405fe49fbdf663 | [
"Apache-2.0"
] | permissive | wataruhashimoto52/probability | 9613f9a3cc685ff1a20643c4a05a48f9cf0fe1ae | 12e3f256544eadea6e863868da825614f4423eb0 | refs/heads/master | 2021-07-16T18:44:25.970036 | 2020-06-14T02:48:29 | 2020-06-14T02:51:59 | 146,873,495 | 0 | 0 | Apache-2.0 | 2018-08-31T09:51:20 | 2018-08-31T09:51:20 | null | UTF-8 | Python | false | false | 2,223 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9bd919b284a2108b62fb412c5d961bcb422c8d89 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_iapp_template.py | 4437352d228d92f1318fbf343532623181c1e425 | [
"GPL-3.0-only",
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 15,691 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
a4354d06907b766c2c8e2f23546b79efe0959e4f | 06322e962c80f4c25838318e7d805ae88f0299e5 | /lengths.py | f6546177e6a717d960717d0a920b2e6122347ee7 | [
"BSD-2-Clause"
] | permissive | unixpickle/uno-ai | 6d4ec187e0c158c15cd4240ccf7e894cb599e071 | 3124afc8fa6b0cbcced95ef03ed9672cdb4f35a7 | refs/heads/master | 2020-04-21T10:20:07.310885 | 2019-08-06T15:27:45 | 2019-08-06T15:27:45 | 169,482,953 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | """
Measure the lengths of random games.
"""
import random
from uno_ai.game import Game
def main():
while True:
g = Game(4)
num_moves = 0
while g.winner() is None:
action = random.choice(g.options())
g.act(action)
num_moves += 1
print(num_moves... | [
"unixpickle@gmail.com"
] | unixpickle@gmail.com |
60d320dea98839269dab10b44bf3d83b288fe2b7 | 42b38dd5fe75148a5727760847fcea5597f9d52f | /user_auth/vendors/top/api/rest/__init__.py | 503bd7d8a0e83539629ab85ca8dad1ed8382e3e8 | [] | no_license | naitianliu/hwserver | 9d24c2ea405a6dcfafe7aa38e42a768e496608e6 | 06ddcb114cd4c1b4d8b647998b4b4637789d6b43 | refs/heads/master | 2022-12-14T10:59:43.509971 | 2016-12-18T15:38:29 | 2016-12-18T15:38:29 | 61,244,155 | 0 | 0 | null | 2022-12-07T23:39:07 | 2016-06-15T22:03:04 | Python | UTF-8 | Python | false | false | 1,968 | py | from user_auth.vendors.top.api.rest.TopIpoutGetRequest import TopIpoutGetRequest
from user_auth.vendors.top.api.rest.AlibabaAliqinFcFlowChargeProvinceRequest import AlibabaAliqinFcFlowChargeProvinceRequest
from user_auth.vendors.top.api.rest.HttpdnsGetRequest import HttpdnsGetRequest
from user_auth.vendors.top.api.rest... | [
"naitianliu@gmail.com"
] | naitianliu@gmail.com |
748a3810da0b0659890ef170abef1ea0d6d32b5f | 5961726d2e0d84c4ced32e5cd072c3c0c07153cb | /smart_schedule/line/handlers/__init__.py | 48b1b8553fed5e192692650955bf0185450019e4 | [] | no_license | macinjoke/smart_schedule | 46bc68d712646ffb45dcf1e8bd9d140d7a9fb84f | 605c39f2d465cb8e56bedc941109f3b716608efa | refs/heads/master | 2021-03-19T15:53:35.886128 | 2018-01-13T08:22:50 | 2018-01-13T08:22:50 | 76,947,986 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from datetime import datetime
import flask
import urllib
import hashlib
import re
from linebot.models import TextSendMessage
from linebot import LineBotApi
from smart_schedule.settings import (
line_env, web_env, hash_env
)
line_bot_api = LineBotApi(line_env['channel_access_token'])
# TODO 以降の関数たちはどこにあるべきか、リファクタリン... | [
"shunji.makino@gmail.com"
] | shunji.makino@gmail.com |
619f32ab28b0c9805f69cf283ef37f4d1facbada | 2051155a91c262ec951b42cfd6eff52a8ad65707 | /prepare_submission_20180430.py | b60f36c44633830a71f9e6ed20521921cda16014 | [] | no_license | detrout/C1_mouse_limb_combined | 607af5402eebcc79aed68f6c9966d217fb79ee54 | 44d604bf86588bd89db227b20dac589253820bca | refs/heads/master | 2021-07-10T04:50:33.089606 | 2020-06-19T22:39:01 | 2020-06-19T22:39:01 | 152,499,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,426 | py | #!/usr/bin/python3
from argparse import ArgumentParser
import os
import collections
from lxml.html import fromstring
import json
import re
import requests
import glob
import pandas
from urllib.parse import urljoin
from rdflib import Graph, Literal, URIRef
from generate_combined_transcript_C1 import (
paper_433_e... | [
"diane@ghic.org"
] | diane@ghic.org |
01df404873ee9e3bba62ab69c2e05d7863ae98c4 | 2ce0c770b6ebf1122cfe2cc02b943101172920f4 | /wwt_data_formats/tests/test_wtml_tree.py | 56668db83d32b8c0c1913e626cf661c4e392067c | [
"MIT"
] | permissive | WorldWideTelescope/wwt_data_formats | 48269945ab835706f75fbf56801c5f19c38c1930 | 8f3a977b87d36c5a903e3bf63ff2ea89547447bb | refs/heads/master | 2022-10-31T02:02:51.003406 | 2022-10-25T19:49:38 | 2022-10-25T19:49:38 | 225,955,212 | 2 | 4 | MIT | 2023-08-18T00:18:54 | 2019-12-04T20:54:27 | Python | UTF-8 | Python | false | false | 833 | py | # -*- mode: python; coding: utf-8 -*-
# Copyright 2019-2020 the .NET Foundation
# Licensed under the MIT License.
from __future__ import absolute_import, division, print_function
import os.path
from .. import cli
from . import tempdir
def test_cli(tempdir):
"Simple smoke test to see if it runs at all."
pr... | [
"peter@newton.cx"
] | peter@newton.cx |
571b5e21a17bb0386eb30bd81b021035a58c3802 | 5b56d0ec345d19c3e9c17764cdfa4ef8180f25e0 | /2020-01-python/api.py | fd5f9add8cd66d0c4436d45b28fc09d9b3c73da0 | [] | no_license | suzuki-hoge/warikan | 6e6d5f814fe4a9130b61a416f495326c316e2a8c | d47c32338421d4c6c88022a7d64a478e79708835 | refs/heads/master | 2020-12-04T08:54:07.960635 | 2020-02-07T03:29:52 | 2020-02-07T10:09:56 | 231,702,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | from bottle import route, get, post, put, request, response, hook, run
import json
import db, party
def handle(f):
def wrapper(*args, **kwargs):
try:
result = f(*args, **kwargs)
return {'status': 'ok', 'result': result} if result is not None else {'status': 'ok'}
except B... | [
"user.ryo@gmail.com"
] | user.ryo@gmail.com |
d24f43978d7bc3dc1bd471970dceef5f2bbfb976 | 8d402df39c18eba7e1c86c762f205c944357c5df | /setup/brython/make_file_system.py | b94bae446d191d813018f82085a1dbda517fd43c | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 2,113 | py | import json
import os
import stat
import sys
import binascii
def make(vfs_name, prefix=None):
"""Called by
python -m brython --make_file_system <vfs_name> <prefix>
Creates a Virtual File System : a Javascript file with the files in
current directory and its children.
The file is stored in cu... | [
"quentel.pierre@orange.fr"
] | quentel.pierre@orange.fr |
bcb86e89e8d220c443eda53ff9c0bc4cdc174724 | 1f2342cb4bc357aa6af572a1d705d045e31dd173 | /WORKSHOPS/Workshop 9/factorial.py | 0605102f61fc4fea11ddf30452fca5c02f30e6e3 | [] | no_license | Ogaday/Programming-for-Science | 3702c8362d6a60f106ffa67b5b2a066519c91de3 | 806a9c7849f455777a6ec226fd1918f980191f78 | refs/heads/master | 2021-01-10T15:57:12.831839 | 2015-06-01T23:05:46 | 2015-06-01T23:05:46 | 36,625,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def factorial(n):
"""
return the recursive factorial of n
"""
if n == 1:
return 1
else:
return n*factorial(n-1)
if __name__ == "__main__":
print """Welcome to the FACTORIAL CALCULATOR\n \nTo use the calculator, enter the number for which you want the factorial of, then press enter. In order to quit, type 'q'... | [
"w.ogaday@gmail.com"
] | w.ogaday@gmail.com |
d0bcf451fb15a4a5e6e3ce2d28b88e1a6043437e | 3bbaf5a5dd1d19f207c01f14e06a58f6faf9a1f2 | /helpers.py | 8735343af6dcaf46167a733d832f002d37073425 | [
"MIT"
] | permissive | kelly4strength/hmchallenge | f06e1a5288a73ba523e39e5cfbf0d36c33148478 | 2195d8fa2d9acdad7a088b1422a7fb5aa3b06b28 | refs/heads/master | 2021-01-19T10:45:55.459291 | 2017-02-25T05:42:16 | 2017-02-25T05:42:16 | 82,221,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | """helper functions"""
# from model import word, user_guess, partial_word
# import unnecessary
# def show_correct_guess_letter(word, user_guess, partial_word):
# """function to show current guess letter if it is in the word"""
# for i in range(len(word)):
# if user_guess != word[i]:
# partial_word = partia... | [
"kellyhoffer@Kellys-MacBook-Pro-2.local"
] | kellyhoffer@Kellys-MacBook-Pro-2.local |
c7a3468c7cae4eb4836690dd475d98f13f9a6ac2 | f854ef28002a3931a8d8b8d0b9cc691b8a449db3 | /home-assistant/custom_components/hacs/helpers/classes/manifest.py | c0e43b9ba3f570e1740dbe3c9e52024391ae5891 | [
"MIT"
] | permissive | Burningstone91/smart-home-setup | 030cdaa13d05fb19a82b28ea455614d3276522ab | c2f34cc8b8243bc6ce620b3f03e3e44ff28150ca | refs/heads/master | 2023-02-23T06:25:04.476657 | 2022-02-26T16:05:02 | 2022-02-26T16:05:02 | 239,319,680 | 421 | 36 | MIT | 2023-02-08T01:16:54 | 2020-02-09T14:39:06 | JavaScript | UTF-8 | Python | false | false | 1,156 | py | """
Manifest handling of a repository.
https://hacs.xyz/docs/publish/start#hacsjson
"""
from typing import List
import attr
from custom_components.hacs.exceptions import HacsException
@attr.s(auto_attribs=True)
class HacsManifest:
"""HacsManifest class."""
name: str = None
content_in_root: bool = Fals... | [
"dimitri.steiner.gl@gmail.com"
] | dimitri.steiner.gl@gmail.com |
505e01d16c4946a2cc61a71edd7d0ee2504ca6d6 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/v20171001/get_virtual_network_gateway_bgp_peer_status.py | ce971110c0cb3c1a127751e2520bf66c4337635f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
7343fb8defbea9a314d6f3be0e874c35f13e8940 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/dlmmin002/question3.py | 7a33ac4f48f3eddf6202f2094e5bd3b2da9e4fde | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #personal spam message
#nolwazi dlamini
#3 march 2014
name =input("Enter first name: \n")
surname=input("Enter last name: \n")
money=eval(input("Enter sum of money in USD: \n"))
country=input("Enter country name: \n")
print("\nDearest" ,name)
print("It is with a heavy heart that I inform you of the death ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
eee5f7823e7fce0bab38226e4c40fa15cbb05802 | 7c8fe9cf38de89dba5ed7afa9558739f037f9cc7 | /01-webtron/webtron/webtron.py | efce6211b9a1a257a1922e78b58141c9b4c10396 | [] | no_license | inigokintana/automating-AWS-python | 94b373dba4902414b37da00d4afe97f97007c1d6 | 4ee5ce245d03f4c339feee5c745b6b1fac982cf7 | refs/heads/master | 2022-02-17T02:34:17.097839 | 2019-08-01T18:16:55 | 2019-08-01T18:16:55 | 162,336,994 | 0 | 0 | null | 2022-01-21T19:45:27 | 2018-12-18T19:37:31 | Python | UTF-8 | Python | false | false | 1,511 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Webotron: Deploy websites with aws.
Webotron automates the process of deploying static websites to AWS.
- Configure AWS S3 buckets
- Create them
- Set them up for static website hosting
- Deploy local files to them
- Configure DNS with AWS Route 53
- Configure a Conte... | [
"inigokintana@gmail.com"
] | inigokintana@gmail.com |
15c2472e0bb613f8974faf6aebc33081848cd35c | f493d8c49fa2c34cb7bb6bc055ae478a6bfb068c | /bike_sharing.py | bd0f8aad95de5553ec75ef08b46807d338f1cdef | [] | no_license | yangshiyu89/bike_sharing | e69e64bd8c2f7982bfb0d84eadb777a553d96699 | bfdd57fb2eb525297901c49879e926e2bb338760 | refs/heads/master | 2021-01-21T11:30:09.827920 | 2017-03-01T16:14:44 | 2017-03-01T16:14:44 | 83,567,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 1 17:37:44 2017
@author: yangshiyu89
"""
import numpy as np
import pandas as pd
import tensorflow as tf
import matplotlib.pyplot as plt
# Define dl net
def Neural_Net(train_features, train_targets, val_features, val_targets, test_features):
features = tf.place... | [
"noreply@github.com"
] | yangshiyu89.noreply@github.com |
414f254965e2e32371576293af109dfc8fe4d3a5 | a88f90d3aa9eb9fa7bd88458d3b78e1a7a6c3477 | /svplot/jointgrids.py | 3654cfa66dafd821320fc16c36b9de591c2ff3c0 | [
"MIT"
] | permissive | msto/svplot | a43c13ae2ae66b21b8b3176d1b722c9d88118769 | 2e16a7936328079d444bdd1edd8ab93fbbf49dde | refs/heads/master | 2021-01-13T08:14:58.545980 | 2017-03-08T17:14:17 | 2017-03-08T17:14:17 | 72,221,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2016 Matthew Stone <mstone5@mgh.harvard.edu>
# Distributed under terms of the MIT license.
"""
Modification of Michael Waskom's JointGrid implementation in Seaborn.
Supports multiple JointGrids in single figure
"""
import numpy as np
import pandas as pd
i... | [
"matthew.stone12@gmail.com"
] | matthew.stone12@gmail.com |
73b124d0407d683b320b426ec9edb5b9f2c86f27 | 351687b2f40e8fe063c546993fb0eaefb58604f6 | /cov/example_cov_estimator_l1_nolam.py | 0118785b04c13dac6581bc07c7c93a7aebc68d0f | [] | no_license | eduff/NI_code | 79cdb22b154070d4b0e8873df810ac535d18c600 | 7b5a984e6931b8fb586f50ab390285bf6b36e785 | refs/heads/master | 2021-01-01T19:10:39.753985 | 2015-02-09T22:33:03 | 2015-02-09T22:33:03 | 9,242,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | # Author: Gael Varoquaux
# Copyright: INRIA
import pylab as pl
import numpy as np
from scipy import linalg
from covariance.generate_data import generate_standard_sparse_mvn
from covariance.cov_estimator_l1 import CovEstimatorL1CV
################################################################################
N_SAMP... | [
"eduff@fmrib.ox.ac.uk"
] | eduff@fmrib.ox.ac.uk |
ae137b1b1b702ea94707b85faf4024ec372f1832 | 83d36e8795b19d537fab32c4ced52359561a6b3b | /ingredients/apps.py | b0fea569eed9b6ec9258bfa94c37a231c4b4fcd0 | [] | no_license | vubon/django-graphql | b1325ebc31136d19b5ca5b5fd85c6fea98972e6c | 9586b5b5098dfeb25aa26521b24bc6c3beb333bc | refs/heads/master | 2020-04-14T08:02:04.957523 | 2019-12-05T05:02:46 | 2019-12-05T05:02:46 | 163,727,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class IngrdientsConfig(AppConfig):
name = 'ingredients'
| [
"vubon.roy@gmail.com"
] | vubon.roy@gmail.com |
6dbdb7e147eb6c53ea0f4d1c2a060d11bbd6dfd2 | 3f6c3ac0800f5915ba1d0a26e7534ac5771145db | /src/software/simulated_tests/er_force_simulator.py | 0553ffb6a5f185f43d24937bb939534a77f40e1a | [
"LGPL-3.0-only"
] | permissive | LiCody/Software | 10b02612ab93b90b423cb0be94a5aa721f059095 | 8105c5f90d5d3b3d4ffa275a10b6fd4e81a4520b | refs/heads/master | 2023-07-09T09:04:30.463000 | 2022-04-13T04:32:30 | 2022-04-13T04:32:30 | 211,555,649 | 0 | 0 | MIT | 2019-10-09T03:30:30 | 2019-09-28T20:07:17 | C | UTF-8 | Python | false | false | 7,447 | py | from subprocess import Popen
from proto.import_all_protos import *
from software.networking.threaded_unix_listener import ThreadedUnixListener
from software.networking.threaded_unix_sender import ThreadedUnixSender
from software.py_constants import *
class ErForceSimulator(object):
def __init__(self, runtime_di... | [
"noreply@github.com"
] | LiCody.noreply@github.com |
59d3d0e0e07d6c1d41095d2ceff9107905522820 | 32fafd0c16351743360f00b3ca2ecac7488acef2 | /example3/populate_orders.py | fb42ae27516644797345c0949f942f4ff8a509c8 | [] | no_license | unix-way-project/postgresql | 128de649100d0c068cf2cef4a1f0abf48abeed88 | 631ddf194f0f799e97abb37f0b3c9b4f5f4b99a9 | refs/heads/master | 2023-03-17T03:59:40.660690 | 2021-03-14T20:19:39 | 2021-03-14T20:19:39 | 338,542,910 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py |
import psycopg2
import psycopg2.extras
import faker
import random
def add_order(connection):
try:
cursor = connection.cursor(cursor_factory = psycopg2.extras.DictCursor)
# Choose random user
cursor.execute('''
SELECT user_pid
FROM users
ORDER BY rando... | [
"jackalsh@gmail.com"
] | jackalsh@gmail.com |
626a8f3efe3c44a285bd894dcf720fe9a98984aa | 8ccc0846442ea595015ec772c62d14695d745859 | /Backtesting/strategy/base.py | 7daa9847b42b20ed695cc39f44941ccb586a9169 | [] | no_license | linkenghong/Backtesting | 67c804446b3687a75064c8dc20713f69c11c56d7 | 29509e9e7262410275a92e42407cd8df334ecdad | refs/heads/master | 2020-06-05T02:57:30.582940 | 2019-09-08T05:20:43 | 2019-09-08T05:20:43 | 192,289,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | from abc import ABCMeta, abstractmethod
class AbstractStrategy(object):
"""
AbstractStrategy is an abstract base class providing an interface for
all subsequent (inherited) strategy handling objects.
The goal of a (derived) Strategy object is to generate Signal
objects for particular symbols base... | [
"345852974@qq.com"
] | 345852974@qq.com |
63c131575e15d03798d9cea07eca0474a3a6be3f | 4434118abceaad2388fb8b2e989154fea0e6c07e | /verletPygame.py | cb336f18cdd2b5bf2697ec79de23145d88a00782 | [] | no_license | Kelloggs/verletPygame | bc599803efa34ab0cbecf48be4f17c9545a91c35 | 146789e413313fa022e618f9184cf1270b7df682 | refs/heads/master | 2021-01-06T20:41:51.519263 | 2012-05-29T11:11:49 | 2012-05-29T11:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,857 | py | """
Verlet integration scheme for a deformable object using a mesh-based
Mass Spring System. This has just been written to test pygame.
Require: numpy, pygame
TODO:
- add less naive collision handling and response between objects
Author: Jens Cornelis
"""
from numpy import array, linalg, cross, dot
import math
imp... | [
"mail@jenscornelis.de"
] | mail@jenscornelis.de |
c72299e7afa25673891cb364c768c19408325154 | f79267b09f4fee621c7aaaa02ab2eef4f59e0dcf | /ag/sorting/graph.py | b2a6a847d623fb418ea65eca15d0c3a908ef7eb9 | [
"MIT"
] | permissive | justyre/jus | 07503972ff4933117f39fe91818c9b63dcfcbb17 | 1339c010ac4499c253061d2cce5e638ec06062bd | refs/heads/master | 2023-07-16T11:54:43.875953 | 2021-08-03T07:49:36 | 2021-09-06T02:26:13 | 389,536,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,359 | py | # Licensed under MIT License.
# See LICENSE in the project root for license information.
"""Several graph algorithms."""
# With DFS, we can classify the edges in a directed or undirected graph:
#
# 1. A tree edge is (u,v) if v was first discovered by exploring edge (u,v). All the edges in the depth-first forest G(pa... | [
"1762873+justyre@users.noreply.github.com"
] | 1762873+justyre@users.noreply.github.com |
53d2e5d291801ab5cf03ead215d5c4ba7b43273e | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/fb_post_learning/fb_post_learning/settings/base_aws_s3.py | 50a8801a8acf4d0f51a64b61ae58285d2bc56de6 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | {"filter":false,"title":"base_aws_s3.py","tooltip":"/fb_post_learning/fb_post_learning/settings/base_aws_s3.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTab... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
bb72ca08e04c6993447c5ba8e25163b95a1d07f8 | cf1636cd2108ae86c5df5bfc1ae9448e3fd9dbf7 | /nash_test.py | 6e61f59897bf12985704bd9184416d09b3079de8 | [] | no_license | ryanpig/MultiagentSystem-FindNE | 991d5db6950eef11b41b400627f9b05b3710759b | 470b5f838d4b9296a91824024cbef412881abcf9 | refs/heads/master | 2021-04-12T04:22:24.828274 | 2019-02-08T10:41:49 | 2019-02-08T10:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,923 | py | import nash
import numpy as np
import datetime
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from scipy.stats import norm
# Algorithms
def non_duplicate_print(eqs):
tmp1 = []
tmp2 = []
for eq in eqs:
#print("eq:",eq,"tmp:",tmp)
#print(np.any(eq in tmp))
#print(eq in... | [
"ryanpig@gmail.com"
] | ryanpig@gmail.com |
b20893d703e00928bbb7b86e4af0fa4b71d78cca | e569c41ec81382630693d3bc0a163c06a6a23d52 | /PythonProgramming/ICP3/Source/3.py | a3abe312b2325a5978f48b2d5217e9b574de48a9 | [] | no_license | Sravanthi-Gogadi/PythonDeeplearningCourse | 20a074763283c3bdbcbc3846576509c5e7a733e9 | 037e94f19362635dd6911cdbd70f60830ec51f5c | refs/heads/master | 2020-03-19T08:21:18.901163 | 2018-07-28T04:39:00 | 2018-07-28T04:39:00 | 136,197,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from bs4 import BeautifulSoup
import urllib.request
import pandas as pd
import csv
# using tabulate to display the pandas dataframe
from tabulate import tabulate
# Read the web url into a variable
url = "https://en.wikipedia.org/wiki/List_of_state_and_union_territory_capitals_in_India"
# use urllib to open the url
res... | [
"sravanthigogadi@gmail.com"
] | sravanthigogadi@gmail.com |
c8ef83211988cefbe18916ab9fd7f4531c57ab0d | f9a4e1c39d722daab7de1f7a5ce6c2634fa53845 | /xorGame.py | efd55f4fec19c6b1a3bb13926c7f6b0e05d94837 | [] | no_license | EugenenZhou/leetcode | b26e4198729dd9c42dccb4cdbaa952d9c50086e1 | 03a0316ac317ae48adf2d05be62d536e1b5f2620 | refs/heads/master | 2020-06-17T16:29:54.746645 | 2019-09-21T05:36:23 | 2019-09-21T05:36:23 | 195,977,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # 一个黑板上写着一个非负整数数组 nums[i] 。
# 小红和小明轮流从黑板上擦掉一个数字,小红先手。
# 如果擦除一个数字后,剩余的所有数字按位异或运算得出的结果等于 0 的话,当前玩家游戏失败。
# (另外,如果只剩一个数字,按位异或运算得到它本身;如果无数字剩余,按位异或运算结果为0。)
# 换种说法就是,轮到某个玩家时,如果当前黑板上所有数字按位异或运算结果等于 0,这个玩家获胜。
# 假设两个玩家每步都使用最优解,当且仅当小红获胜时返回 true。
######################################################################
def xorGame(n... | [
"735159373@qq.com"
] | 735159373@qq.com |
8c67bf15d9d2de2bc24154779e9a522ad89693e5 | c83ba2b21c72fa119fecb1b094fcf7a9745b626c | /CodeFiles/Metrics_L2.py | e0e921f54fcc22481bc26c70c02ba9f53dc28d3f | [] | no_license | amoghgaikwad/Click-Through-Prediction-Rate | 8074d84309e4ff824eafe531a6f62280db091113 | 0dd369a927929e4fa45d092e38cd7756276e9cb2 | refs/heads/master | 2021-01-22T20:50:39.342028 | 2017-03-18T02:58:16 | 2017-03-18T02:58:16 | 85,371,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,043 | py | from pyspark.sql import Row
from pyspark.ml.feature import OneHotEncoder, StringIndexer
from pyspark.ml.feature import VectorAssembler
from pyspark import SparkConf, SparkContext
from pyspark.sql import SQLContext
from pyspark.ml import Pipeline
from pyspark.mllib.classification import LogisticRegressionWithSGD, Logist... | [
"amogh.gk@gmail.com"
] | amogh.gk@gmail.com |
c0331309bf2f0dab4193eca0be842d750c839dc8 | c03b615ca32a191672be6ed8d5de1624db9409b0 | /p10.py | 8f59c18d38846c9708889c19091d76c70cae52c3 | [] | no_license | Hemangi3598/chap-8_p10 | b7b768120c8fbaf85e01b8aa699223a66ce75f8b | 8736c342b578100b4f0fada1f84edf6a511e753b | refs/heads/main | 2023-08-07T08:22:48.537950 | 2021-09-19T07:02:29 | 2021-09-19T07:02:29 | 408,056,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # waopp to add students and their rno in class
class student:
def __init__(self, rno, name):
self.rno = rno
self.name = name
def show(self):
print("rno = ", self.rno)
print("name = ",self.name)
data = []
while True:
op = int(input(" 1 add, 2 view and 3 exit"))
if op == 1:
rno = int(input("en... | [
"noreply@github.com"
] | Hemangi3598.noreply@github.com |
8239bdcbcbb37d192f3f3cff9af9527dbcdac038 | f66dfa2fc9bfbcc97259eb17e8b54a80727e1ce6 | /migrations/versions/061243403ebc_.py | 5a6c6f619b346ba996dd641501b2ef2f28fe2271 | [] | no_license | tam876/info3180-lab5 | 4ec8ea45e4ca513bd8cd6cf163d579b5ffba1ffa | 2fa6a57dd409788e52a1bee69c0048e843e478b7 | refs/heads/master | 2021-01-26T08:47:04.867508 | 2020-02-29T00:21:47 | 2020-02-29T00:21:47 | 243,389,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | """empty message
Revision ID: 061243403ebc
Revises:
Create Date: 2020-02-28 20:57:43.760065
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '061243403ebc'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"noreply@github.com"
] | tam876.noreply@github.com |
ede10fd47f66d7aee777757eb88519c3ff63a7ee | e7de3d7139e73589e2172384fd114ce0c3e3655c | /test_template.py | e7fcca2adac6e7bd26f9fd3df3517004ef23fd62 | [
"BSD-3-Clause"
] | permissive | jnieuwen/python-default-requirements | 5384d08c50c844e43999409191d1536cb4558164 | f04df6da2b8de0ff20e6c24cea7769383254a552 | refs/heads/master | 2021-04-27T04:21:33.206701 | 2020-06-23T13:47:02 | 2020-06-23T13:47:02 | 122,730,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # Set up the paths.
import os
import sys
sys.path.append(os.path.abspath('.'))
import themodule
def test_hallo():
assert themodule.hallo() == "hallo"
def test_nohallo():
assert themodule.hallo() != "blaat"
| [
"jeroen.van.nieuwenhuizen@jeroen.se"
] | jeroen.van.nieuwenhuizen@jeroen.se |
2428e97f642a009fcaf507f939507bb69f6dffab | 916f9880e97016fa9501c52df2cdb10ad89488ec | /Sample.py | 738afcb91b8f3940e95dec5810f61580661be9c7 | [] | no_license | jamunagithub/Sample | 61a027f7fd4d86e3224caa5a24b8bab6affd1a89 | 1539c78553d4fbab2880c7ecec169350ccf7468e | refs/heads/master | 2023-05-15T08:51:56.202120 | 2021-06-12T09:45:40 | 2021-06-12T09:45:40 | 376,249,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | print ("This is the sample GIT code")
| [
"jamunamec@gmail.com"
] | jamunamec@gmail.com |
c72500ece3f030d2acbe56879e08b891d53d15f9 | 408491958cece161e3f7b27d10926b5cd80b4b14 | /Python/Itertools/Compress the String/CompressTheString.py | 9d710345eef369aa0def85dc24211ea56380c842 | [] | no_license | Snoblomma/HackerRank | 279212173fbe0024ecb5e34fdbacc1c01faad7f5 | 1547913ada66d13fd59b06bc2781911c0895fbbf | refs/heads/master | 2021-07-11T09:16:43.323607 | 2021-03-23T22:52:11 | 2021-03-23T22:52:11 | 70,170,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from itertools import groupby
w = list(input())
k = [(len(list(cgen)), int(c)) for c,cgen in groupby(w)]
print(" ".join(str(item) for item in k))
| [
"noreply@github.com"
] | Snoblomma.noreply@github.com |
f71d7ca732dbb65b50967732e07d0777f557e075 | b0a5efbd01e9614392be8eaea595f7f8efda9bfb | /lung.py | d499312a7bcfc052b19f3dd28bfb66694d3bce76 | [] | no_license | Ismail-w/cov19_imgprocess | 4ffc117a26063d3114077e703381653a5db13116 | e707f4574f9c41ab4e58cfa8bcecc5e8d1274f65 | refs/heads/main | 2023-03-31T09:17:09.974067 | 2021-04-08T10:23:12 | 2021-04-08T10:23:12 | 355,859,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py |
import cv2
import numpy as np
img = cv2.imread('Covid1.png')
print("Image Properties")
print("- Number of Pixels: " + str(img.size))
print("- Shape/Dimensions: " + str(img.shape))
cv2.imshow('org',img)
cv2.waitKey(0)
blue, green, red = cv2.split(img) # Split the image into its channels
resized_imag... | [
"noreply@github.com"
] | Ismail-w.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.