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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d964d974da952331684d14bf073920baf6fb650e | 224cff90078cbcd5645090ada616aa206bc0eec9 | /poodle/core/course/professor.py | c88d72ee34b264eb06f261343e4854aa9d88c650 | [
"MIT"
] | permissive | danielkauffmann/poodle | 5b3ff3630fce84e89cfb1045975b464d590f57e7 | 05b46f43fbceef0cc080733b29c515e84ade3e38 | refs/heads/main | 2023-07-25T10:35:28.127589 | 2021-09-04T02:47:55 | 2021-09-04T02:47:55 | 399,662,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | from typing import Any
def get_professor(cursor: Any, conn: Any, **kwargs) -> str:
"""This function is responsible for getting the user's professor in the database which is used to check the status of assignments"""
cursor.execute(
"SELECT professor FROM moodle_professors WHERE course=%s AND subject=... | [
"danielvenna2@gmail.com"
] | danielvenna2@gmail.com |
99285fb1f748ac2460556b0b43569ce898c975a3 | 4476ca690de2dd894cb5bbc93c30ef2a3c923e35 | /pool_cover.py | 3661a3c7beaea9c7b7e9839fd40ea79f92d18b43 | [] | no_license | CoyoteJosh/Pool_Skimmer_Lid | ab47faadfd9747df79e691e4584f1b5b4b8b3d40 | 86810d75e42c5d7f25ddd9a17954aba9f760607b | refs/heads/master | 2020-06-03T12:43:57.177085 | 2019-06-12T13:04:38 | 2019-06-12T13:04:38 | 191,572,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import os
import sys
# Assumes SolidPython is in site-packages or elsewhwere in sys.path
from solid import *
from solid.utils import *
SEGMENTS = 60
def assembly():
outer_sleeve_height = 13
outer_sleeve_radius = 125
inner_slee... | [
"joshuahenry@outlook.com"
] | joshuahenry@outlook.com |
1ba95fea82b3b37d10b0a05ad9628931a6d6ae5a | 1085d0c2311c69bd322b9306c8fc66985f2a13b7 | /appEngine-DataStore/trivia/models.py | 6307e1f1ec4de348caa66a23fdab028be06eea2a | [] | no_license | meganandd/CSSI_KIR_2018 | 633037d9119cbc040ecf34b7c89799adbef29703 | 6936fc61effa5542f4217e0433ea80e6c9859cb7 | refs/heads/master | 2020-03-24T09:31:54.387359 | 2018-08-04T00:54:34 | 2018-08-04T00:54:34 | 142,631,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/python
#
# Copyright 2018 Google LLC
#
# 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 ag... | [
"mandersen.731@gmail.com"
] | mandersen.731@gmail.com |
26e27782fc90c955b5549295e15d8dae4b0b6944 | 292622e1e132e5b2f7eea12f51e2423d7becbac3 | /polls/models.py | 228b4cb63d33b951db64507ea3b921d1420b4a50 | [] | no_license | k1012g/django-tutorial | 68e86f8c6ffa48155e257b6ae5ce7ca25603eb74 | 204abf96e6380b49afe7db56f477d952d2251876 | refs/heads/master | 2023-04-04T17:37:48.929540 | 2021-04-12T06:44:12 | 2021-04-12T06:44:12 | 356,779,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.db import models
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length = 200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
return self.pub_date ... | [
"kuri.ladybaby1012@gmail.com"
] | kuri.ladybaby1012@gmail.com |
1368b5b216dba6d9b270774eac205889bf495606 | 647da34e178783632352d319f6e687d6cce82cd9 | /QueueProject/rbSend.py | c96dea96609b8f4b224c3335b58f764d49f26fdb | [] | no_license | wushijia8/QueueProject | 573fd9c92d9b5a59845e6c202c50cc96f4ed5316 | c6b8ab9e9b7ac8a3196690f011627d57d03519a5 | refs/heads/master | 2020-04-18T10:19:51.284226 | 2019-02-13T08:32:46 | 2019-02-13T08:32:46 | 167,318,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # _*_ encoding:utf-8 _*_
"""
@Time:2019-02-13 13:53:32
@Author:jaris
"""
import pika
import time, sys
def send(msg):
conn = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = conn.channel()
channel.queue_declare(queue='task_queues', durable=True)
channel.basic_publish(exchange... | [
"1020392881@qq.com"
] | 1020392881@qq.com |
cbc458a7c35d05b70dca962b12e2be230eba287c | 4a0d6b2ad3b850f1cb1616eb54919daea7ac03d6 | /resources/message_resource.py | c153d75d04ba55a40ede7641b1718c6f4ffa458c | [] | no_license | Modulus/FlaskDemo | 72060a07c30f1f78d07e96bb5ea87653005e7a68 | f14fd9607e5157d22f18ff7375268558979dd1e4 | refs/heads/master | 2021-01-01T17:43:29.159968 | 2014-10-30T12:00:51 | 2014-10-30T12:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | __author__ = 'Modulus'
from flask.ext.restful import Resource, marshal_with, reqparse, abort
from models.message import Message
class MessageResource(Resource):
def __init__(self):
self.parser = reqparse.RequestParser()
self.parser.add_argument("id", type=str, help="Message id")
self.par... | [
"thejohnskauge@gmail.com"
] | thejohnskauge@gmail.com |
9bae7abf9f6831a8e271bb38139d1a86c6024adb | e9342433a31048c37995310fa66652776831e311 | /Downloads/soad-main/orders/views.py | f122792ae02e788eb7847e644e0fddde84bc8692 | [] | no_license | SaishmaChanda7/soad | ed2646327ceb79e0a44af7d9aacca6a4aa413962 | f3bd72e068cdea26a52ee6699c13b1282459b0f4 | refs/heads/master | 2023-08-14T16:22:29.324761 | 2020-12-12T08:23:54 | 2020-12-12T08:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | from django.shortcuts import render,redirect
from .models import OrderItem,Order,OrderUpdate
from .forms import OrderCreateForm
from django.urls import reverse
from cart.cart import Cart
from django.views.decorators.csrf import csrf_exempt
import stripe
from django.contrib.auth.models import User
stripe.api_key = "sk_... | [
"keerthana.k18@iiits.in"
] | keerthana.k18@iiits.in |
9bfebec1e68e00355e7862efd2e7e0b659ba393b | 70003323688842cdd313572777b832399539515d | /testing/temp.py | 58dab8c758d6c908b2f4193681e3f128b14e5cf4 | [] | no_license | c-tsai/quantum-logic | 9378e9d68439bf787c7021072d84b72ed00f828f | 6469376320e25e85e961f57dbc48303b249931b0 | refs/heads/master | 2021-07-10T00:27:09.254242 | 2020-09-28T02:36:37 | 2020-09-28T02:36:37 | 203,581,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 16:02:06 2019
@author: v-catsai
"""
from Control_line import Control_lines_generator
c = Control_lines_generator(3)
a = c.able_clines(3,2)
print(a)
c.remove(1)
a = c.able_clines(7,2)
print(a)
c.remove(4)
a = c.able_clines(7,2)
print(a) | [
"c.tsai.ooxx@gmail.com"
] | c.tsai.ooxx@gmail.com |
4d7a13431523e52f557cb9288ca2df2918ca4592 | 6e9d6a682f20054e13d3764e95b8bd3b7b64fabf | /dailychallenge794.py | 480c50e622ac834ef1ded759d169a5654425fa0f | [] | no_license | SeanyDcode/codechallenges | 30a271e04bc2b360bca923ae868be65a9533c8db | 947cf3034911b381afaf777794d22d2af06aa5ba | refs/heads/master | 2022-11-07T21:22:56.927863 | 2022-10-18T23:33:13 | 2022-10-18T23:33:13 | 154,498,776 | 1 | 0 | null | 2022-10-18T23:02:05 | 2018-10-24T12:38:45 | Python | UTF-8 | Python | false | false | 515 | py | # from dailycodingproblem.com
#
# Daily Challenge #794
# Implement a stack that has the following methods:
#
# push(val), which pushes an element onto the stack
# pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then
# it should throw an error or return null.
#... | [
"noreply@github.com"
] | SeanyDcode.noreply@github.com |
85b4c468aff7e19c7d88d1190ec8f1e11541f8e0 | 9611546c32780b12ef8e49a6f697ccf29d354f62 | /RpiCpuFan.py | d376a5c831aebdfd8a97a9674722d49ee3c7fdf1 | [] | no_license | rdeangel/RpiCpuFan | d5cd8b73e3cee902c513007ca5aa0257810d0f3b | fcbac9fcb10317945db8eaabe44a3996e3dec582 | refs/heads/master | 2020-12-24T19:51:04.104770 | 2017-03-31T21:20:29 | 2017-03-31T21:20:29 | 86,185,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,771 | py | #!/usr/bin/env python3
# Author: Rocco De Angelis
import os
import sys
import RPi.GPIO as GPIO
from time import sleep
import getopt
import logging, logging.handlers
class RpiPin(object):
"""Set a specific Raspberry Pi GPIO OUTPUT Pin ON or OFF.
"""
def __init__(self, pin):
self.pin = pin
... | [
"nirvana_r80@hotmail.com"
] | nirvana_r80@hotmail.com |
a613d147df8ad21434ac4cf9eead8e054bb3143b | b71c43b7f7785ca6718d74aff762557f5591758d | /Python/Week1/CodingDojo_Python/Django_Projects/email_validation/apps/emails/urls.py | 5f6c9ebfc8cb14cc19aa4e6250f72d24b019c58b | [] | no_license | jqchang/DojoAssignments | 4be9db6039763905eada2253873997ba5bfd1058 | 3c5a8b351879ccc380af9ce3b5267ca26ea62681 | refs/heads/master | 2021-01-13T15:28:45.189452 | 2017-04-15T23:31:58 | 2017-04-15T23:31:58 | 79,868,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
# from django.contrib import admin
urlpatterns = [
url(r'^$', views.index),
url(r'^process$', views.process),
url(r'^success$', views.success),
url(r'^delete/(?P<id>\d+)$', views.delete)
]
| [
"jqchang@gmail.com"
] | jqchang@gmail.com |
8731b51efc780c9075b91812bff1afad2ca2cc7c | 67b5916611fa0f7d5f0e5543cd893c664fe0be17 | /streaming/anomalies_detector.py | 04204075af09a9b79590f83a9e7dad2ae6bb08fb | [
"MIT"
] | permissive | jinghuayao/kafkaml-anomaly-detection | 38b6380e64e5714f1a7934ae0be5bf611eb69e90 | 4828afefe80d1ec6c7b970d696ecaa4e624696a3 | refs/heads/main | 2023-06-12T22:30:04.468407 | 2021-07-08T18:43:54 | 2021-07-08T18:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import json
import os
from joblib import load
import logging
from multiprocessing import Process
import numpy as np
from streaming.utils import create_producer, create_consumer
from settings import TRANSACTIONS_TOPIC, TRANSACTIONS_CONSUMER_GROUP, ANOMALIES_TOPIC, NUM_PARTITIONS
model_path = os.path.abspath('../model... | [
"31422766+rodrigo-arenas@users.noreply.github.com"
] | 31422766+rodrigo-arenas@users.noreply.github.com |
559bc208486cafe1283857b599768a767420edf2 | 8ad01e5b578e4c1937922d4b98e1827f9284d83a | /utils/s3.py | 46983e22cc06a990099e22a7a7b434827af6a521 | [] | no_license | rhiroakidata/hiro_pipelines | c1de95902d7b50e10222ba07833495e0d93459ed | 81eccb620fe648825e0604b06c59416ecdf7c069 | refs/heads/master | 2023-03-05T10:19:59.702652 | 2021-02-09T03:06:26 | 2021-02-09T03:06:26 | 332,238,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import base64
from kubernetes import client, config
from kubernetes.client.rest import ApiException
config.load_kube_config()
v1 = client.CoreV1Api()
def get_s3_secrets():
try:
secret = v1.read_namespaced_secret("s3-secrets", "default")
data = secret.data
key_id = base64.b64decode(data['... | [
"rodrigoideyama.qintess@natura.net"
] | rodrigoideyama.qintess@natura.net |
b3b2a6a978e363f8f53a0106b14af35f54d5c484 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/98/grid.py | 0b25292e5ce34d129230783fd6a21739685074b5 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,104 | py | import re
DOWN, UP, LEFT, RIGHT = '⇓', '⇑', '⇐', '⇒'
START_VALUE = 1
def print_sequence_route(grid, start_coordinates=None):
"""Receive grid string, convert to 2D matrix of ints, find the
START_VALUE coordinates and move through the numbers in order printing
them. Each time you turn append the grid... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
388b70378731914eb9361fea945d7ed7d557270d | 76048c9cb2fbddae0659cfb3928e606c41087dba | /app/bot.py | 520b9a9adf035dbdefff363b344ee9829b1b7d87 | [] | no_license | NitigyaS/sysbot | 206ca10de3383f5c89f2fe74a2f10eab5b48bf50 | 851f30948eaa98f84dba519837bcd44bda28edcb | refs/heads/master | 2021-04-29T21:24:11.779635 | 2018-02-15T10:39:26 | 2018-02-15T10:39:26 | 121,615,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import requests
import getpass
import socket
def post_to_slack(message,url):
headers = {
'content-type': "application/json"
}
payload = '{ "text": "' + message + '" }'
response = requests.request("POST", url, data=payload, headers=headers)
if response.status_code == 200:
return "Yo... | [
"nitigyasharma@hotmail.com"
] | nitigyasharma@hotmail.com |
49d5c03133fc96f6d35359f67ea5f529891c5f0a | f4da8baf684ec759f3bb8d4f19ab63bfdf33a76b | /project1/project1/hellowrold.py | f37763b938c0dab57c1a90a58067af277791edde | [] | no_license | dspina79/lpthw-fromskeleton1 | 14aacecd4325b207031c1aa59cd40248694ab814 | 9ad64b1d806a15fe590be4f61c05cc033f8f2633 | refs/heads/master | 2023-03-17T21:17:54.552190 | 2021-02-22T18:58:34 | 2021-02-22T18:58:34 | 341,302,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | # sample project
def greet():
name = input("Hello, what is your name? ")
print(f"Well then, hello, {name}")
greet() | [
"dspina79@gmail.com"
] | dspina79@gmail.com |
2d6c54fda44585f40cc863ec15a4deb4e9ed3a54 | 54db4e9008ca03c9215fd3f9159eec4a914e3b0b | /even1.py | e57931bf92b1039ffc2a7f36dda9a9b7a5839f76 | [] | no_license | anukaal/python_practice | e68c28c694f7b32bc5c367bb6cced10ea9e85837 | 8bde51608cb272d6a84f113ab9460ec1f1751515 | refs/heads/master | 2021-01-08T19:06:29.172584 | 2020-02-22T06:56:43 | 2020-02-22T06:56:43 | 242,115,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | a = []
n = int(input())
for i in range(n):
x=int(input())
a.append(x)
print(a)
def sx(a,n):
s=0
for i in range(0,n,2):
s=s+a[i]
print(s) | [
"mailanu98@gmail.com"
] | mailanu98@gmail.com |
401f009459dbdc41d7dee55cb7c3e2bfeb8b67b8 | 6c3882b3ca10b054c3d901858768057501aecd49 | /bloodloan/mortgage/expenses.py | 9bacebdd152c53faf27ed8f9a7a12250e91b66e6 | [
"Unlicense"
] | permissive | hannahlindsley/jupyter-mortgage | 7d15764f5dbb6f53ea1470970c15ff3052719783 | 97393d573f45c99eb2cb8204a374ba3ed1190d11 | refs/heads/master | 2021-08-22T17:12:51.383640 | 2017-11-26T23:04:00 | 2017-11-26T23:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,949 | py | """Monthly expenses"""
import copy
import enum
import logging
from bloodloan.mortgage import mmath
# TODO: This violates my abstraction a bit
from bloodloan.ui import ui
logger = logging.getLogger(__name__) # pylint: disable=C0103
class MCCalcType(enum.Enum):
"""Determines how the amount of the MonthlyCost i... | [
"me@micahrl.com"
] | me@micahrl.com |
3f83104b25a87bd9e30fae0463e465f9ff0194bb | 3d36d224fd0fd18c66df15f58369b9117b336858 | /train_nn.py | 49948e2e1163369fdcc553ded8c902c6f943c2f0 | [] | no_license | delta-t/my_learning_course | c2bcab5d932d7a08aa7510d11cd5f2e11c6185b6 | e3eaf4100bf362247984d01f6dd7a695f70424bd | refs/heads/master | 2022-08-19T18:41:13.883524 | 2020-05-25T13:15:42 | 2020-05-25T13:15:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,603 | py | # import the necessary packages
from keras.datasets import fashion_mnist
from keras.models import Sequential
from keras.layers.normalization import BatchNormalization
from keras.layers.convolutional import Conv2D
from keras.layers.convolutional import MaxPooling2D
from keras.layers.core import Activation
from keras.lay... | [
"andrey.fedyashev@gmail.com"
] | andrey.fedyashev@gmail.com |
c728f2b94709121460d475bbad1a13f995e7ce53 | 3adc016a129a967f18fd9da6982e1fb577fa8ffa | /Alex/Boxes/Drum/viz_visual_backup.py | 8952bafef5dfb38690554206ef9353cbb8449915 | [] | no_license | apiatski/Freshman_Research | b7419f0e869d387e725c1cab456f78acf5d52569 | 2fd0b225fcd7fb5dbe79ccd07d10ac25fe19d4e6 | refs/heads/master | 2021-01-10T19:39:06.057596 | 2014-10-29T17:19:26 | 2014-10-29T17:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,625 | py | """This is a comment reminding you that the start box is currently being calculated. There is no
set value for it.It takes the highest possible box size and uses that for the start box dimensions.
This is the Fitt. experiment that includes both visual and auditory cues."""
#general viz module
import viz
#vizinfo is ... | [
"alpi@seas.upenn.edu"
] | alpi@seas.upenn.edu |
1ce34e71483a21a7ca0f0f0bf8d2cc6bb9f71ef7 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/vai_q_pytorch/nndct_shared/base/key_names.py | 1cf30c4715f21302ea8f0965e4a1eab9d78f66b6 | [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"Li... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 11,018 | py | # Copyright 2019 Xilinx 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 writing, ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
678ce462ca0c629e2788838fe64564b5b32a4da0 | 276e3fe465de0140a908a41a7433e1ab5058118f | /person.py | fa859732250160ab2d4e8a58ebb9dfd4c76e00a0 | [
"MIT"
] | permissive | mbarylsk/disease | e4efd124a8c7e1899c7c08cbb192f79ee691b3ae | 5d5f14343b21ab68b8ec7e74cfc82655634f178e | refs/heads/master | 2021-04-14T09:49:33.313334 | 2020-03-29T19:54:10 | 2020-03-29T19:54:10 | 249,224,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | # MIT License
# Copyright (c) 2020 Marcin Barylski
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | [
"marcin.barylski@tas-moto.org"
] | marcin.barylski@tas-moto.org |
a7bc599698af3f0f019d14651118a3707a859c85 | 4ef91a77e56428f8d9eed917270b165c150707b1 | /unstable_learning_rates/adam/cifar10-6/cifar10.py | 1d37fdb16c6513cf3fd1e981dc35eba1c8ab9280 | [
"MIT"
] | permissive | Jeffrey-Ede/ALRC | e761ffc65a9dad44edf301dd30b766e46b6715b3 | e5bf1d713b56af68c79413ae23e275d466121b90 | refs/heads/master | 2020-06-05T04:38:58.595922 | 2020-05-29T13:25:01 | 2020-05-29T13:25:01 | 192,315,914 | 3 | 2 | null | 2019-06-17T12:29:18 | 2019-06-17T09:25:07 | Python | UTF-8 | Python | false | false | 18,726 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | Jeffrey-Ede.noreply@github.com |
260200411fe52d39cc293c81f339bc040de20b9d | 00f0741e9a6329d562735b29d1c988ea919553fb | /CIFAR10_GPU.py | 0684b96985cca9036c68ee2555b9d107f89bfb22 | [] | no_license | tsuruchan/CIFAR-10 | aca86c32ca9f4fdaf93578f557b6d5fa6a3f928b | fb5a188ad3b9fde0d5ef57258f85c3911535eb13 | refs/heads/master | 2021-01-09T21:57:58.195237 | 2017-03-29T07:18:48 | 2017-03-29T07:18:48 | 53,115,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,856 | py | import cv2
import sys
import pickle
import time
import argparse
import numpy as np
from tqdm import tqdm
import chainer
from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils
from chainer import Link, Chain, ChainList, FunctionSet
import chainer.functions as F
import chainer.links ... | [
"tsuruoka0827@gmail.com"
] | tsuruoka0827@gmail.com |
a655c171e0e8c1e478647a9290ed7d54eaa78c44 | ed29c41fc9b9ccfb3b2f5a5e16624be98ae3ccfb | /Exercise/Ex.5.py | 39f8723e50f6ec79ea1a3e91108e9006de97750a | [] | no_license | Saifullahshaikh/LAB-04 | 0da7e521646f2080ea9012018ee04eb5a45df877 | 8543cdee02a888f9a2f002a00e5595d3321d7ad7 | refs/heads/master | 2020-04-16T06:41:56.638224 | 2019-01-12T06:57:20 | 2019-01-12T06:57:20 | 165,357,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | print('saifullah- 1bB-092-CS A')
print('Lab-04, P.Ex.5')
print('\t\t Multiplication Table \n')
for i in range (1,11):
for n in range(1,11):
print(i*n,end=' ')
print('\n')
| [
"noreply@github.com"
] | Saifullahshaikh.noreply@github.com |
fc49e568b7b2b9d8475dfb78f0658614fc71b583 | 713085ab870b7781cf7ab938d1f88b9dff66bffc | /project_OT1_25/models.py | 661d7c285f369d830ddb0dd7e5b9c6054a62afe2 | [] | no_license | Yue-econ/1 | 1b3209876c4455d79f9035a309f54abb36f157ab | ed81ed46a64256e1f461214b6f85c4f1cb05d490 | refs/heads/main | 2022-12-29T02:29:02.612776 | 2020-10-15T23:58:10 | 2020-10-15T23:58:10 | 304,474,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,129 | py | import math
import random
from django.db import models
from decimal import *
from otree.api import (
models, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range, widgets)
from otree_tools.models.fields import MultipleChoiceModelField
class Constants (BaseConstants):
na... | [
"noreply@github.com"
] | Yue-econ.noreply@github.com |
112c978097897de04a5eb32cce37e827166eb03e | c665c1ac32a298ca8935482f8454c4c4748ecdd6 | /Pickle.py | 5eee29be6175bce43979928b1c9d9cb7ecf871fc | [] | no_license | HassanSherwani/Data_Analysis_Python | 11070b113ae6253387fe417a1bc48ea0460848af | 95e021c76897bb8fd81e83a0eb78d73da20c564d | refs/heads/master | 2020-04-26T20:43:39.938013 | 2019-04-30T12:06:32 | 2019-04-30T12:06:32 | 173,819,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | # -*- coding: utf-8 -*-
"""
Pickle technique to save and load data to save time and speed
@author: Hassan
"""
import Quandl
import pandas as pd
import pickle
# Not necessary, I just do this so I do not show my API key.
api_key = open('quandlapikey.txt','r').read()
def state_list():
fiddy_states =... | [
"noreply@github.com"
] | HassanSherwani.noreply@github.com |
2ce4de0e85521fd2ee2a412cea0d9a2e9058765b | 7e1a8afb8142162839ed5210f104e898d0256ba5 | /distro/scripts/demo5.py | 0315c71c501715a14763182b72740b50a6f65dd7 | [] | no_license | rustushki/asgard | f114e0247f86b8d8f7440f3359c9be9d422101e0 | c7af6eb8f74037d97b242247b1eae590d45ec372 | refs/heads/master | 2021-01-21T19:29:07.911824 | 2016-09-10T05:14:34 | 2016-09-10T05:14:34 | 9,437,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Demo #5 - Trigger Unloading of Bounding Box
# Rapidly pan the map to cause a Bounding Box to be unloaded.
import map
import time
for x in range(0, 4000, 20):
map.SetFocus(x, 0);
time.sleep(.1)
| [
"russ.adams@gmail.com"
] | russ.adams@gmail.com |
edc018bf7a94d835d3e6a97875029468d5ad1a56 | eb57ce750d55c6b3589c2900f961234d06d96216 | /operators/biconditional.py | f2bf7fbcd669f523c8bba22dfa5f470908b89f0a | [] | no_license | MatteoRaso/truth_table | 24b7990e2cdd9f9a6d2006f7161dd9c3964f3050 | 64c99e0db539954c3f508c2d8b9eeb91e314a5b8 | refs/heads/master | 2023-01-03T11:09:18.212884 | 2020-10-31T06:58:23 | 2020-10-31T06:58:23 | 308,824,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/usr/bin/python
def biconditional(q, r):
if q and r:
answer = True
elif not q and not r:
answer = True
else:
answer = False
return answer
| [
"mraso@uoguelph.ca"
] | mraso@uoguelph.ca |
eb2b294d34ceb170475cd7966d37506094d1c36a | a62adccc82ee6ef7ebd94d710b5f75056626057f | /hr_payroll_tgt/wizard/__init__.py | a262c515b8ee7962d2b065c2123b4730ca48848a | [] | no_license | Lunchik/openerp_custom_modules | 614b2fa6ccf1aaaaa2b99210bcd72aea301079d0 | b7707762d66743dad139727b3903063393f0da93 | refs/heads/master | 2020-05-19T13:58:50.328789 | 2014-12-01T10:36:39 | 2014-12-01T10:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import hr_import_timesheet
import tgt_payslip_report
import rotator_daysoff
import hr_loading_wizard | [
"nelia.garipova@hotmail.com"
] | nelia.garipova@hotmail.com |
5621dafe56030e72685c58233818da1f0cf67e76 | 7a35c33db07ff86dbf3792bd68e3ace98a8b4df7 | /wallet.py | e4bc68d6771fe7beaca415d723ebb28903e0bb39 | [] | no_license | AliakbarSu/py-blockchain | dcf92644797099e05c7010561d71c6bd9f8448c1 | 7f6426d34214b2e5aabdedf4b17531b6bae5c5cf | refs/heads/master | 2020-07-28T12:41:18.848433 | 2019-09-27T20:46:44 | 2019-09-27T20:46:44 | 209,413,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | import binascii
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
import Crypto.Random
class Wallet:
def __init__(self, node_id):
self.private_key = None
self.public_key = None
self.node_id = node_id
def create_keys(self):
p... | [
"aliakbar.su@hotmail.com"
] | aliakbar.su@hotmail.com |
89529f987989156a9c5ea63a65828724f87004fb | f365bdaf4df5a86ca758c909daa78c58d7471e48 | /traffic/generator.py | 057e7ae24bab3e187c3c394bde23e4e1536056a9 | [] | no_license | andromeda-galaxyyy/simulation | fee2bae2cc2ae3a5e305e2d72357ec69af7f6132 | 2fb9eea02cba96871f58f9345376d919282c3991 | refs/heads/master | 2023-05-26T00:57:25.311507 | 2021-06-14T08:55:38 | 2021-06-14T08:55:38 | 260,152,175 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | import random
import os
import subprocess
from multiprocessing import Process
from threading import Thread
from collections import defaultdict
import argparse
from time import sleep
def generate_ip(id):
id = int(id) + 1
if 1 <= id <= 254:
return "10.0.0." + str(id)
if 255 <= id <= 255 * 254 + 253:
return "10.... | [
"whyaiwxf@gmail.com"
] | whyaiwxf@gmail.com |
b2499232f89369c6313b46dab4dcfe36c57f7f31 | 64459a7477c6f43e91ec9d0356fefb56c5119c08 | /segment-tree.py | 06878da6bfe97af9e18ecdd9779687f798b5a250 | [] | no_license | anish198519851985/Hacking | 9915697854c8381cdade6258c0e1907f7e8143fd | 83c3d9259f083061671cf662faf9a49b6a3a245f | refs/heads/master | 2021-01-17T15:25:10.346179 | 2018-01-11T07:53:41 | 2018-01-11T07:53:41 | 1,656,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | def pow_of_2(n):
return 1 << (n - 1).bit_length()
def intersect(a, b, c, d):
if c >= a and c <= b:
return True
if d >= a and d <= b:
return True
if a >= c and a <= d:
return True
if b >= c and b <= d:
return True
return False
class segment_tree(object):
def ... | [
"noreply@github.com"
] | anish198519851985.noreply@github.com |
edaac70f667d8974a20ff95bebcd399de5484509 | e62c135403c766497245dd4dc72e7431a023404d | /helloShikha.py | 096873a704da900e7e19b3dbbfcafacf142d731e | [
"Apache-2.0"
] | permissive | ctsit/J.O.B-Training-Repo-1 | 3c437589e5c49749bbd2f97ce906cf01d000bad1 | 3455666557a23837ebcfe7e40de395a267689a6a | refs/heads/master | 2023-03-15T20:45:43.991881 | 2023-03-06T15:11:15 | 2023-03-06T15:11:15 | 82,118,694 | 0 | 31 | Apache-2.0 | 2023-08-24T15:52:05 | 2017-02-15T23:48:22 | Python | UTF-8 | Python | false | false | 54 | py | #This is my hello world program
print 'Hello Shikha!'
| [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
10190f538b921aee788d5c3ab004ab9b068cd231 | 08946030836e8b290545ca7ed9f8bbe10f11544a | /conduit/apps/articles/search.py | bd2f05d6d46bd05496913d98210bc9cf536cca56 | [] | no_license | atullal/conduit | 5a05e8bb82e9276f7e528f085d8ca1462997bf17 | 98f004ead0b1a2340ee31ecbde6e47eaf39ca9f6 | refs/heads/master | 2023-06-09T11:35:26.560735 | 2023-05-29T05:35:57 | 2023-05-29T05:35:57 | 192,403,379 | 0 | 0 | null | 2022-12-06T18:33:00 | 2019-06-17T19:06:13 | Python | UTF-8 | Python | false | false | 809 | py | from elasticsearch_dsl.connections import connections
from elasticsearch_dsl import Document, DocType, Text, Date, Keyword
from elasticsearch.helpers import bulk
from elasticsearch import Elasticsearch
from . import models
connections.create_connection()
class ArticleIndex(Document):
title = Text(analyzer='sno... | [
"atul.lal123@gmail.com"
] | atul.lal123@gmail.com |
13b363c7ebbbda098192752afab5e1c4b68c4571 | e03545f04f7f538d0003ca9c63b11be05cab4343 | /app/nocache.py | f9f6703591fa8705dd94e9cafa89efe783b4c3bb | [] | no_license | richardtguy/catanex | 80028eb5c15c9557a8d97becb7aebacd8e2a284c | 81ddc94b3a70804c874d8a96d1d590d522ecd02b | refs/heads/master | 2022-12-15T01:25:04.638513 | 2018-12-21T10:58:09 | 2018-12-21T10:58:09 | 157,985,525 | 0 | 0 | null | 2022-12-08T01:17:58 | 2018-11-17T13:08:22 | Python | UTF-8 | Python | false | false | 606 | py | from flask import make_response
from functools import wraps, update_wrapper
from datetime import datetime
from werkzeug.http import http_date
def nocache(view):
@wraps(view)
def no_cache(*args, **kwargs):
response = make_response(view(*args, **kwargs))
response.headers['Last-Modified'] = http_d... | [
"rich.guy@cantab.net"
] | rich.guy@cantab.net |
cdf66eebdc8868d1098b8320ee447494425900e8 | 0135e89ca37dc0a90aa3f4d5d331d5609e365409 | /scriptcore/testing/testcase.py | a815fcfbb219d1b6e5a144c802f848e0903a4827 | [
"Apache-2.0"
] | permissive | LowieHuyghe/script-core | 2f52983dc6337ba1270869823067d1b67d848203 | 0c9d94b353d4d149db9492eb4ae0aa87cc1e082c | refs/heads/master | 2018-10-28T22:51:11.985300 | 2018-08-22T22:11:01 | 2018-08-22T22:11:01 | 79,758,727 | 0 | 0 | Apache-2.0 | 2018-07-25T21:58:23 | 2017-01-23T01:20:59 | Python | UTF-8 | Python | false | false | 8,427 | py |
from scriptcore.encoding.encoding import Encoding
import os
import tempfile
import unittest
import shutil
import sys
if sys.version_info < (3, 0):
from cStringIO import StringIO
else:
from io import StringIO
import random
import string
class TestCase(unittest.TestCase):
def set_up(self):
"""
... | [
"iam@lowiehuyghe.com"
] | iam@lowiehuyghe.com |
79e254a01d976eb1a7971f96a94f2139368d7ab4 | 6c25b5c84e995457af84bda59541e9923f2a2a8f | /chapter01/demo1.py | 8e28be06809efd1fe6f4018c9a4da5c25a6ca8ff | [] | no_license | wsuo/pythonHomework | 1b781317742cd86ecbf824efc1bd0c7f454705ea | 70fa8e34ece102f9a889cb5d17e6f367bc062c19 | refs/heads/master | 2021-02-12T12:37:05.752698 | 2020-05-20T09:13:53 | 2020-05-20T09:13:53 | 244,593,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# @Time : 2020/3/3 0003 17:44
# @Author : 王硕
# @Email : ws2821@yeah.net
# @File : demo1.py
# @Software: PyCharm
'''
问题描述:
程序接收用户输入字符串,格式如下:
M OP N
其中M,N是数字,OP是 + - * / 其中一种操作符,根据OP输出运算结果,小数点保留两位。
注意:M和OP,OP和N之间可以有多个空格,不考虑输入错误的情况。
'''
# print("运算结果为:{:.2f}".format(eval(input("请输入:"... | [
"ws2821@yeah.net"
] | ws2821@yeah.net |
8539021aa5bf62f90d32427c17d946ee45c912a6 | d86a711660862d3da99de349e853c088b65142f3 | /loop1.py | 5f7196ed786c3aa1945fa6d9165839aef8f9b5e3 | [] | no_license | Haasini7/Haasini | c881876818d3a8002063d2660e6e9ecc867ac18b | eb75ed7ce4c844db663a0f3a0c32f427de61a545 | refs/heads/master | 2021-07-19T22:05:18.016368 | 2020-08-03T13:42:35 | 2020-08-03T13:42:35 | 200,616,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | num = int(input("Enter a natural number "))
i=1
while i<=num:
print("i=",i)
i=i+1
| [
"noreply@github.com"
] | Haasini7.noreply@github.com |
cae1a5e82de97d0809388873e0958cec25fbe330 | 3f997953107094fdfd42aa4988d4384809cbeeba | /cn/xutingyin/basic/Basic.py | f6a9d44928c3ba15d9cf65f49fb5b520131917ec | [] | no_license | xutingyin/python-study | 25a3648addd7de20b4d41bf99d25c82b30bb7757 | d5625998d2a9d2b1ebf7acb7ef4a9e17ec722bac | refs/heads/master | 2020-12-13T19:54:41.820195 | 2020-08-31T02:54:09 | 2020-08-31T02:54:09 | 234,516,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,855 | py | # --------------------------Python 基本语法---------------------------
# 1、Python 使用 # 进行注释
# 2、Python 严格区分大小写
#---------------数据类型------------------
# 整数 -- Python 中变量前不用定义数据类型,解释器会根据你的赋值直接判断是什么数据类型。这一点和Java|C语言不一样。Python是解释性语言[动态语言]、而Java是静态语言
a = 200
print(a)
# 浮点数
b = 0.85
c = 2.3e8 # 可以使用科学计数法表示浮点数
print(b)
print(c)
... | [
"sunshinexuty@163.com"
] | sunshinexuty@163.com |
cac5589c71a79b0bc92bda216d163e76b9777908 | b4f0f536c721178a69128eba0afb39fde6f62ffb | /tests/e2e/redis_client.py | 1a61fcb32ee7863df6606f0f932eb42ff2f39bfc | [
"MIT"
] | permissive | jeantardelli/architecture-patterns-with-python | c049257febc369c7d213428019387fe19d38998a | d48c7d6d4a44073b815c7e6770e44cf2e231e35b | refs/heads/main | 2023-05-27T05:12:12.951919 | 2021-06-04T18:48:43 | 2021-06-04T18:48:43 | 355,638,599 | 1 | 0 | MIT | 2021-06-04T18:48:44 | 2021-04-07T18:03:08 | Python | UTF-8 | Python | false | false | 390 | py | import json
import redis
from allocation import config
r = redis.Redis(**config.get_redis_host_and_port())
def subscribe_to(channel):
pubsub = r.pubsub()
pubsub.subscribe(channel)
confirmation = pubsub.get_message(timeout=3)
assert confirmation["type"] == "subscribe"
return pubsub
def publish_m... | [
"jeantardelli@gmail.com"
] | jeantardelli@gmail.com |
42e98692a914543bc4bbbee14d7b2ca643d81168 | ded276f26e099cd3fbe1bde816fcfe443c2a710d | /FirstDjango/wsgi.py | 434c3ecb23ef289665f38786bf04b6b79bae2f32 | [] | no_license | patrah/EBanking | 0ec265204a18a532900776d46fe49aa39c857979 | f868e93c7a0f55602e9728754a77cb52bd53a760 | refs/heads/master | 2021-01-19T02:33:19.663994 | 2016-07-06T23:23:11 | 2016-07-06T23:23:11 | 62,759,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for FirstDjango 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"patelrahul.0990@gmail.com"
] | patelrahul.0990@gmail.com |
c082499bbf0a10f1cbf2a20296aca123d147175d | 82e87111b787488af4aec502ae4606775c2ee6de | /venv/Scripts/pip3.8-script.py | 14a0a1a70dd2a966064752939d1f330dd5bf77e9 | [] | no_license | shanjungit/psutil_learing | bd07a2f899087af72613698509f4344c315c91e5 | 841cb5277d03d6a4ad5046d7ea63eefaef07c57b | refs/heads/master | 2022-11-15T02:08:35.407204 | 2020-07-20T09:49:31 | 2020-07-20T09:49:31 | 279,652,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!D:\PythonProjects\psutil_learing\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"739051127@qq.com"
] | 739051127@qq.com |
e40a62cff764f5433acbd2d3a7a688c68613f33d | 26f88aa2739327da0537b5bb46ea41c170db4676 | /example_app/example_app.py | e889d73fa6f9928f224821aedd7dcbf95d0cb60b | [
"MIT"
] | permissive | ndrwpvlv/hatter_orm | 782fa1f905b7c01fc5ee9357feba8e7b8f7b7356 | b358c8858a93eaf60b41e8b81940b6348d78bf68 | refs/heads/master | 2020-05-30T13:58:16.657800 | 2019-06-26T22:54:52 | 2019-06-26T22:59:23 | 189,774,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | import logging
from hatter_orm.columns import Column
from hatter_orm.db import Database
from hatter_orm.fields import IntegerField, TextField, RealField
from hatter_orm.models import Model
from hatter_orm.helpers import try_or_error
logging.basicConfig(filename="hatter.log", level=logging.INFO)
class Item(Model):
... | [
"ndrw.pvlv@gmail.com"
] | ndrw.pvlv@gmail.com |
b166d15a0827ea6946ac23cb14ee1faa6e74fc93 | 7f474f5f45ca2b53e21039f0ccc6d90e45aa0dfe | /selective_copy.py | 6d75d90fdae42905dd0e9420ac1d31df9dd4147a | [
"MIT"
] | permissive | ignertic/useful_scripts | 134b20bf8f59836a1af80e72a39e13446316a58c | 3395068009f98c16a0c762a74383b4aed97c0a40 | refs/heads/master | 2021-07-06T19:59:49.633414 | 2017-06-03T09:03:42 | 2017-06-03T09:03:42 | 105,554,699 | 0 | 0 | null | 2017-10-02T16:00:58 | 2017-10-02T16:00:58 | null | UTF-8 | Python | false | false | 1,934 | py | #!/usr/bin/env python
import os
import shutil
def img_copy():
"""Copy .jpg images in the directory tree to a backup directory."""
path = "."
full_path = os.path.abspath(path)
dest_dir = os.path.join(full_path, "pictures_backup/")
file_count = 0
for root, directories, files in os.walk(full_pa... | [
"terrameijar@gmail.com"
] | terrameijar@gmail.com |
8717b8b48622a97945602abe6021d4a3850688b7 | 0a16ec91f6f41be823a9f165a10120cd22cd5aa9 | /UserAffectGenerator.py | ee0ce76755f35490a4a5b785c0747ed44d5ee089 | [] | no_license | evgenyslab/NaopiEN | bd6e5847b76b87f506dac4e0012b0db76686f3b5 | ac93ae9ed075babccef85d514f64a24b582c9089 | refs/heads/master | 2020-04-06T04:07:20.777671 | 2017-03-07T16:02:20 | 2017-03-07T16:02:20 | 83,042,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import threading
import time
from GenUtil import GenUtil
import random
import numpy as np
import FileUtilitiy
import json
class UserAffectGenerator(threading.Thread):
def __init__(self, threadID, name, generateInterval, genUtil):
threading.Thread.__init__(self)
self.threadID = threadID... | [
"e.nuger@gmail.com"
] | e.nuger@gmail.com |
e9601decbc136fae256d6100e5f2cc5253df6046 | b1b8117596d627b5493376568b2e274f9110034d | /models.py | 93c86ea13eb77fdcff8eb9fb62d87cf4e4c3eb06 | [] | no_license | abeer565/fyyur | 2863187c444fe73f45a41207b78836a54d56b793 | 2d1433239db84e38bbac2c52fc04c8499cb5a562 | refs/heads/main | 2023-06-15T01:45:00.481095 | 2021-07-10T12:44:54 | 2021-07-10T12:44:54 | 384,665,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | from app import db
class Venue(db.Model):
__tablename__ = 'Venue'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String)
city = db.Column(db.String(120))
state = db.Column(db.String(120))
address = db.Column(db.String(120))
phone = db.Column(db.String(120))
image_lin... | [
"noreply@github.com"
] | abeer565.noreply@github.com |
b93bb74e9d01192a1d861f3edb09eac0148e8c95 | d4f0ea621cb0d88a54995b3911d87e5a36d5077b | /WebApp/polls/migrations/0010_auto_20210523_1902.py | 89f6034951e8fe6abf91f847171fe95f4fc457bd | [] | no_license | Daly022/lab | 89a3b2ead66510256cb0a3d34b8f554d699488a6 | 1891d8046efdfaeab8d5ba6c37aac070c2b4a8c5 | refs/heads/master | 2023-04-26T17:36:51.281505 | 2021-05-27T21:12:00 | 2021-05-27T21:12:00 | 366,883,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 3.2.2 on 2021-05-24 00:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0009_delete_ejempo'),
]
operations = [
migrations.RemoveField(
model_name='encuesta',
name='product_tiempoU... | [
"diazmendezdaniel022@gmail.com"
] | diazmendezdaniel022@gmail.com |
3b47b5f5595fe397922bdfe4f4dc65e26713a243 | 9a2dfbb97f375ed497e5d033344641a04a2710d9 | /sdk/python/touca/cli/results/extract.py | 3ecccc241f6f7c44d72dd3640175c07fd0ae780a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | trytouca/trytouca | 50eca4164635c293a891dcdd2e1836cb60627274 | f69d7314dd861cd25a85d02739af5d01b4846916 | refs/heads/main | 2023-06-07T05:52:25.159264 | 2023-03-30T21:20:05 | 2023-03-30T21:20:05 | 468,843,509 | 425 | 27 | Apache-2.0 | 2023-09-14T06:50:11 | 2022-03-11T17:32:38 | TypeScript | UTF-8 | Python | false | false | 2,868 | py | # Copyright 2023 Touca, Inc. Subject to Apache-2.0 License.
import logging
from argparse import ArgumentParser
from pathlib import Path
from typing import Dict, List
from touca._options import find_home_path
from touca.cli.common import CliCommand
logger = logging.Logger("touca.cli.results.extract")
def extract(sr... | [
"noreply@github.com"
] | trytouca.noreply@github.com |
aff94d3d3d670a2ea2eaa0feeacc58e41edcf25e | debcf9c8308ba1825a97f3a007610a55252e5ead | /Question1/factorial_function.py | 86d7a212a6cbd803d1af96609d329b7b2632b038 | [] | no_license | Josehokec/PythonHomework | 2af0a53e6a3a0a452322d07a0d08c60d9c105ea3 | 65abc08998b978980a0f2eafac0ba29aa3143b08 | refs/heads/main | 2023-08-13T18:55:56.850333 | 2021-10-18T03:01:40 | 2021-10-18T03:01:40 | 349,999,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | """
factorial_function
writen by lsz
"""
def factorial_function(n):
"""
Factorial function
argus: integer n and its value more than 0
return:
if n is not integer return -1
if n less than 0 return 0
if n equals 0 return 1
else return its factorial
"""
if isinstance... | [
"noreply@github.com"
] | Josehokec.noreply@github.com |
d789548ba29fa31105d7e5a061966468dd45fc2e | 72e285fe1ef405c1be675c033139373c205f43d1 | /CS61A Structure and Interpretation of Computer Programs/lab/hw07/hw07.py | 0bb02a99bce586b12f48bdbcde86638e3c5944ab | [] | no_license | Trappie/college | 74c9174b2b38820b3989bbd289265a386ad4db36 | 1c53d0a253a92805dcc465e8313cf00d71ef3e59 | refs/heads/master | 2020-03-29T08:01:56.166861 | 2018-09-21T01:28:04 | 2018-09-21T01:28:04 | 149,691,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,120 | py | class Link:
"""A linked list.
>>> s = Link(1)
>>> s.first
1
>>> s.rest is Link.empty
True
>>> s = Link(2, Link(3, Link(4)))
>>> s.second
3
>>> s.first = 5
>>> s.second = 6
>>> s.rest.rest = Link.empty
>>> s # Displays the contents o... | [
"diw26@pitt.edu"
] | diw26@pitt.edu |
00233f22e2e5ef66eb8018f58af6d447b2945cbb | dcbef06d5a00f07756339b9e62c684dec2fee425 | /nuitka/code_generation/LoopCodes.py | b553f9f6b95a7db4207f65448e6f7735be2edebb | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 3,141 | py | # Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
c54a4eef064dc72dd2b30f222d245099b69f7005 | b1547d22520133f03c7529086f70d4ae83d24237 | /script/conntect.py | adb439f4a913590a349ab9d91767eb1d6ecc3e6f | [] | no_license | wrwahut/flask_demo | 913b6a3e4cd56fadb834895f559d25af742f1a7f | 699beaa1a6c9f0f413147ff237bb6256c651e953 | refs/heads/master | 2020-03-29T22:03:54.659686 | 2019-01-03T07:48:38 | 2019-01-03T07:48:38 | 150,401,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # -*- coding:utf-8 -*-
import requests
from flask import request
import json
req_session = requests.session()
class Caller(object):
def __init__(self, url_fix,args={}):
self.url = "http://localhost:10002/resource/user/" + url_fix
self.args = args
self.headers = {
"content-type... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3cef7bca4db35d095820aa64e8406f97fd689ee0 | 3bf9eaccbadc0d73f0f0607512ec2648e019d9ed | /servers/Exu/models/round_times.py | c49cefc77dfc9d030367508003a49dacd564e346 | [
"MIT"
] | permissive | DiegoCorrea/bottleOfMessages | d83ab3e474f2efb8ed8b22c2f065bde41cb9e733 | 1281d3f82ce4d44a31e426aa8862c3c9b294cf03 | refs/heads/master | 2021-05-14T16:58:19.063913 | 2018-02-17T05:51:36 | 2018-02-17T05:51:36 | 116,035,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import sqlite3
import sys
from time import gmtime, strftime
from config.server import SERVER_DB_PATH
def create(
_round,
created_at=None
):
if created_at is None:
created_at = strftime(
"%Y-%m-%d %H:%M:%S",
gmtime()
)
conn = sqlite3.connect(SERVER_DB_PATH)
... | [
"diegocorrea.cc@gmail.com"
] | diegocorrea.cc@gmail.com |
91921b58757fcd228ab041738b2c79d8353cadd5 | 865fc677ae5121ef1f3d422ac7d3988a5a6997af | /Day3.py | eed31b9b1b4d41faf94912816b01994323447c03 | [] | no_license | KaisarJamil/30-Days-of-Code | 394b20ad07efcbf3d9b1c04e84538a57c8940a88 | 76b43d386ce8dbc2d23eb0a53309f220fad26bac | refs/heads/master | 2020-07-24T07:59:47.652396 | 2019-10-16T15:22:41 | 2019-10-16T15:22:41 | 207,856,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | #!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
N = int(input())
if N%2!=0:
print("Weird")
elif N%2==0 and N>2 and N<5 :
print("Not Weird")
elif N%2==0 and N>20 :
print("Not Weird")
elif N%2==0 and N>6 and N<=20:
... | [
"akjamil2009@gmail.com"
] | akjamil2009@gmail.com |
1cd4fd9c4e725fc3cf52e95411d1a5603c5ce52b | f1c820d70e8686811befed51509c63cdd12134bc | /setup.py | 9376e85e4eafdf5b60b2beafc0c7b6677d6c63f7 | [
"BSD-2-Clause"
] | permissive | minurc/flask-ldapconn | 426bd330cbc2ef09d5bd0cb35efbc8eec9c52e21 | 54218fa06b9697879ab2b44b5097a3caecb2a25d | refs/heads/master | 2021-01-16T19:09:42.824360 | 2016-01-28T22:20:01 | 2016-01-28T22:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | # -*- coding: utf-8 -*-
'''
Flask-LDAPConn
--------------
Flask extension providing ldap3 connection object and ORM
to accessing LDAP servers.
'''
from setuptools import setup
setup(
name='Flask-LDAPConn',
version='0.6.11',
url='http://github.com/rroemhild/flask-ldapconn',
license='BSD',
autho... | [
"rafael@roemhild.de"
] | rafael@roemhild.de |
0ccd7f791e0b027d6b6ba88d9ffbe4cb927ddf0f | 205df4343dcce1a9619aa71a8415a83073f96ded | /web_dynamic/0-hbnb.py | f6a4c9596dba19c78da1d7dda05bacd4ea8bbf88 | [
"LicenseRef-scancode-public-domain"
] | permissive | juanzuluaga91/AirBnB_clone_v4 | a5c2bfdc645891f79317bfb537a8bf7a4b7e3505 | 8168de5ec734bc476c8d60f5b43a7b5f379d81dd | refs/heads/master | 2022-08-19T06:40:19.188253 | 2020-05-20T21:26:48 | 2020-05-20T21:26:48 | 264,914,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
import uuid
app = Flask('web_dynamic')
# app.... | [
"juanzuluaga91@gmail.com"
] | juanzuluaga91@gmail.com |
9770456866da2c0a4a7485ed4ccefca3170983b2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02417/s513271588.py | dd2618394ee3a3fd9727f547170f17cf79edd3e4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import string
from sys import stdin
chs = dict([(ch, 0) for ch in string.ascii_lowercase])
for line in stdin:
for ch in line:
c = ch.lower()
if c not in chs:
continue
chs[c] += 1
for ch in string.ascii_lowercase:
print(ch, ':', chs[ch]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e01335d8329aa8ad67fc48d19bbefad88b4e17c2 | 5052e200b80beed2b28d0b816f3828704e7a0707 | /train.py | 81c5a14ded3f1fc241796e4021a4f5b412388a4f | [] | no_license | pick2510/Granular_ML_SVM | d4087211d14b8711cbbdc5a9af7605e5480a9ca4 | befe75004d046bc41ae71579b4fddff358eceee6 | refs/heads/master | 2020-09-15T10:59:44.862863 | 2019-11-22T15:37:14 | 2019-11-22T15:37:14 | 223,427,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | import random
import math
import numpy as np
import bisect
from sklearn import svm
line1=input().split(' ')
increment=float(line1[0])
logScale=int(line1[1])
cutoff=float(line1[2])
myType=int(line1[3])
nType=int(line1[4])
random.seed(1)
class Trainer:
def __init__(self, rs):
self.... | [
"stebdom@ethz.ch"
] | stebdom@ethz.ch |
397490e489740b9981832f44f77964e5309078ce | 72deb580de1c966219de9570687283a226a21fd5 | /forms.py | c62a6b9e1c64f977a42cc247b6df339c93d1d7a4 | [] | no_license | Chernyackoff/FlaskProject | e6e0a8fa4caf65ac226aebb8761e891cfa0847e0 | c4a00dead9d67bd2d19d4653a5478800b9f0b392 | refs/heads/master | 2020-04-27T21:39:37.271657 | 2019-04-03T20:51:16 | 2019-04-03T20:51:16 | 174,706,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from flask_wtf import FlaskForm
from wtforms import *
class RegisterForm(FlaskForm):
username = StringField('Username', [validators.required()])
email = StringField('Email', [validators.email(), validators.required()])
password = PasswordField('Password', [validators.required()])
account_type = Select... | [
"chernyackoff.vlad@yandex.ru"
] | chernyackoff.vlad@yandex.ru |
21197aeb3e786a0383f5c6a17d7c257012846606 | 6b4cee4465937bfd06dfebbeb8ba0d28d19dd49a | /mysite/mysite/urls.py | a22bc45b5c9b1646621fc45d665ac90d31cd9108 | [] | no_license | felixwangchao/django_upload-application | 53af1ad40013cfb6ec9b045cdbb744d5899baa6c | 0bbfcca1a79dff53fcd12df53b8d19e2ce83fc2d | refs/heads/master | 2021-01-14T11:08:02.592213 | 2015-07-31T09:51:55 | 2015-07-31T09:51:55 | 39,001,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"wangchao0122@yeah.net"
] | wangchao0122@yeah.net |
781493f32e1e6751e010c4bfc68e52c0d2761f13 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/web/woven/model.py | 30887f1e2ab52ec7730c05c3ce860bd0f79dc854 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,065 | py | # -*- test-case-name: twisted.web.test.test_woven -*-
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
__version__ = "$Revision: 1.53 $"[11:-2]
import types
import weakref
import warnings
from zope.interface import implements
from twisted.python import components, reflect
from twis... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
03733d50c66db99aab90d764c67c8102c1927d32 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /seekerbuilder/migrations/0016_auto_20210916_1303.py | ad0d13f013270eb5cd84ec0db637506231ce82d1 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 3.2.5 on 2021-09-16 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job_management', '0019_auto_20210913_2147'),
('seekerbuilder', '0015_auto_20210914_1503'),
]
operations = [
migrations.AlterModelOpt... | [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
443bfbb938defc091b938ad49bb807bb281b1190 | f6154cc8f039e1b9a2b3c440c96c3a73607f7ba9 | /leet_code/oddEvenJumps_975.py | f9ca3fef06b408e142aee2dbac5b4ba0a700dcf8 | [] | no_license | honthion/vetiveria | b1b94e68e577999c606bfc0b28e8dd123179c54f | c272ca3836c2d3c5b62003f2517983bdab8c5bc5 | refs/heads/master | 2020-04-11T21:22:58.497183 | 2019-06-06T13:18:35 | 2019-06-06T13:18:35 | 162,103,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | class Solution(object):
def oddEvenJumps(self, A):
"""
:type A: List[int]
:rtype: int
"""
cur_max_min = A[-1]
cnt = 1
min_step = True
| [
"zhangrongxin@ibeesaas.com"
] | zhangrongxin@ibeesaas.com |
8114a28939706ad8a5e64d50ad60ee55e331b056 | 3d3b1f51674cb442699b3069b53c119490832520 | /docs/source/conf.py | 08d9f63e38e02f7e93db8941fc41dd5e491171d9 | [
"MIT"
] | permissive | CaptainDario/ETLCDB_data_reader | 17ea50b94dd798b7d2857bb13fe3947fcca454ec | 34054e507701f76dff7f47b95fdb9c9d80493516 | refs/heads/main | 2023-05-15T06:06:44.172126 | 2021-06-03T21:22:22 | 2021-06-03T21:22:22 | 326,191,470 | 3 | 1 | MIT | 2021-06-03T09:51:09 | 2021-01-02T13:43:37 | Python | UTF-8 | Python | false | false | 2,793 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"dario.klepoch@freenet.de"
] | dario.klepoch@freenet.de |
e71f87d95b844d764fb87e1fbbb130a166be171f | f3a42d6791d9db6877337a69b7f2e67512d670b5 | /src/medical/condition_data.py | 46d3f68017adf0de7c311444c8866f994ad3c564 | [] | no_license | bahorn/oxfordhack17 | 481900263f282ae9d8555a41471fedf1dccd4fd6 | 69d53a3c8eed772f58492ced69c6ed982cbd0134 | refs/heads/master | 2021-08-19T13:41:32.150186 | 2017-11-26T12:40:52 | 2017-11-26T12:40:52 | 111,998,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import json
import os
from pymongo import MongoClient
if __name__ == "__main__":
m = MongoClient()
d = m.test_database
b = d[os.environ['COLLECTION']+'pain2']
f = json.load(open('out.txt'))
for i in f.keys():
for j in f[i]:
if j == None:
continue
else... | [
"horn@uni.coventry.ac.uk"
] | horn@uni.coventry.ac.uk |
20c35fdc0ddd1e4481b51b2d8e0f88a9989398f7 | df770e5961aa7a0790314da663c426c8b3a93092 | /python/adult_sklearn.py | f344a98e3b820e08c867ac05917d704ba14a9690 | [] | no_license | dengl11/CS315B-Project | be996d461582110e70c3f9e621d13d80ed78a160 | 0da493eb5f6030562d2d2d7546ac7c107f9d2879 | refs/heads/master | 2021-08-28T18:34:41.655923 | 2017-12-13T00:06:29 | 2017-12-13T00:06:29 | 108,506,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | ############################################################
# My Decision Tree Classification
############################################################
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.tree import DecisionTreeClassifier
from my_decision_tree import *
# param
max_depth =... | [
"dengl11@stanford.edu"
] | dengl11@stanford.edu |
110218098957e307e9f699349df924065f373b44 | f4d0c26d3aa27c77a7c27d9002a08465a0638cbb | /csv_schema/migrations/0008_auto_20171025_1410.py | 5a5a669d07a6928196bbb33dce2d54f89af67d33 | [] | no_license | uk-gov-mirror/nhsengland.NCDR-reference-library | 3afe0711f47dc1b5fa25646bc870a806b3512ce5 | cac30ee0787e81fb9868731576c242c7ea3dbde8 | refs/heads/master | 2023-04-03T15:10:19.320708 | 2017-11-03T15:03:27 | 2017-11-03T15:03:27 | 356,799,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 14:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('csv_schema', '0007_auto_20171025_1119'),
]
operations = [
migrations.AlterUniqueTog... | [
"fredkingham@gmail.com"
] | fredkingham@gmail.com |
98473dac3ac57d74c298dbed2c9510ac15735380 | 6cedf97b3c6551fa0f21f885bc9ddf8f3794b2ce | /produto.py | 94a4f136f5d81f9cbceca861b606ab8c06e46f44 | [] | no_license | rodolfocampos/gerador-insert | 0481ab263bf0d7831ed03dbc3ca5ee10a15b9c58 | 74087babfb171f1d20cc79df3f7183830f8647d5 | refs/heads/master | 2020-05-23T10:54:07.057344 | 2019-05-15T01:48:02 | 2019-05-15T01:48:02 | 186,728,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Produto:
def __init__(self, nome, preco, preco_pontos, pontos_ganhos):
self.nome = nome
self.preco = preco
self.preco_pontos = preco_pontos
self.pontos_ganhos = pontos_ganhos
| [
"rodolfobc.ti@gmail.com"
] | rodolfobc.ti@gmail.com |
4bea47a38e76175c3bd60cbf0b1a85c95e22ce12 | 0f0cb26455daf03a19e99bb1e7acfb91ee6729e4 | /backend/food_security/food_security/wsgi.py | 6a449a537cf5fb116c4472a8ef9cbd409395e864 | [] | no_license | cjh14813573/FoodSecurity2 | 00ec6a4fd3b6f9960195c1de77ecdba4aa55756b | d30d2fa5b5bff1bedade7d4faeb371b590fdc5c5 | refs/heads/main | 2023-06-17T12:18:26.380482 | 2021-07-06T06:03:54 | 2021-07-06T06:03:54 | 383,352,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for food_security 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"cjh14813573@gmail.com"
] | cjh14813573@gmail.com |
2db81d67ed5865facf874ae717b23430c8c420f3 | 4a06e7a07df377e224477c1d24cef620a4f98cc4 | /httprunner/report.py | 19d1581aa9841adcca9bf26388a5392d69109ae6 | [
"Apache-2.0"
] | permissive | ovalike/HttpRunner | b1cbec8ac02a0835987429bf7d966e7e64e62e61 | 6b23edf44c9aa71eba2c6d5d2e6b3335243ac992 | refs/heads/master | 2021-08-02T15:18:01.568043 | 2021-04-26T15:28:23 | 2021-04-26T15:28:23 | 177,881,052 | 0 | 0 | Apache-2.0 | 2019-03-26T22:58:20 | 2019-03-26T22:58:19 | null | UTF-8 | Python | false | false | 11,724 | py | # encoding: utf-8
import io
import os
import platform
import time
import unittest
from base64 import b64encode
from collections import Iterable
from datetime import datetime
import requests
from httprunner import loader, logger
from httprunner.__about__ import __version__
from httprunner.compat import basestring, byt... | [
"httprunner"
] | httprunner |
e2532e7d9f4cade3b6a5e2889932a3fd3d42a167 | 3f3ccf147b4d6d5ca8e7bc7c753accdf49fdb2be | /Animacion/juego05.py | a4305111807b973545c058527877ac79f0ec3558 | [] | no_license | cristianpl1996/Computacion-Grafica | 09ce889023535175e44a0475a9d2a841036d5035 | c43fb12376d608c5b499429be650106c4cf4e408 | refs/heads/master | 2020-06-07T04:39:29.000486 | 2019-06-20T18:39:06 | 2019-06-20T18:39:06 | 192,926,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | #Modulos
import pygame, sys, random
from pygame.locals import *
from Transformaciones_lineales import *
#Constantes.
WIDTH=500
HEIGHT=500
BLANCO=(255,255,255)
NEGRO=(0,0,0)
ROJO=(255,0,0)
VERDE=(0,255,0)
AZUL=(0,0,255)
t=(WIDTH/2,HEIGHT/2)
#Clases y Funciones.
class Jugador(pygame.sprite.Sprite):
def __init__(sel... | [
"utp@crie.local"
] | utp@crie.local |
b0095b4abeeda9c68d807e0f8f9f1911279c0460 | 5d91593c4469ed802f97696577e0b2047bc2fbb7 | /04_TreesAndGraphs/4.11.py | 6d6ecac4f28852d448f0b57f8fa10d154bd5c07f | [] | no_license | HCLit/CTCI | 39dec6fe1e6ff52bd402501812c72ef980d9aa29 | 4d475f4faaaac2132563e00300f1f3e6eddc1e3b | refs/heads/master | 2023-08-08T23:42:23.923258 | 2018-07-14T22:00:44 | 2018-07-14T22:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #assumes other methods have been implemented
#and that node has method getSize() which returns size of tree under testNode
#this value would be updated in the insert() and delete() methods
from random import randint
def returnRandomNode(root):
if root.getLeft():
sizeLeft = root.getLeft().getSize()
els... | [
"sid.palas@gmail.com"
] | sid.palas@gmail.com |
052bb7a5a388e8c4550d05f190e6b97c40c7f408 | e85553f6860e53097554643b5aff2791211b3d81 | /space stuff/particles/particles_falling.py | 9a8a47964c60e922b4e48843cdfaf3a70543f683 | [] | no_license | directfrog/space-stuff | 01d6422ef313a3e507989d0c99f335b9a6613144 | a481a0045787acad5f33b6efecaadccef15ea276 | refs/heads/main | 2023-04-20T21:51:37.421582 | 2021-05-02T18:35:07 | 2021-05-02T18:35:07 | 363,723,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import pygame, sys
import random
from pygame.locals import *
clock = pygame.time.Clock()
pygame.init()
screen_width = 1000
screen_height = 1000
screen = pygame.display.set_mode((screen_width, screen_height))
particles = []
for x in range(1000):
pixel_size = random.randint(1, 10)
rect = pygame.Rect(ra... | [
"noreply@github.com"
] | directfrog.noreply@github.com |
57836c8be44a25d6a2b0204bc2e24195cad77a42 | bfbdb80855791feae9d5afdf25ac636b9ba4e8de | /src/helixcore/db/default_patch/notification.py | 422068bec23d34fbb0fc212776c45b8aedce5d8d | [
"MIT"
] | permissive | sand8080/helixcore | ff843000d41dd640470753de28aa06f572ef28a0 | 398d5d5bf03675f0279b7e6fc9d7eb2070f76d9e | refs/heads/master | 2021-01-23T15:14:51.989759 | 2013-07-08T11:47:42 | 2013-07-08T11:47:42 | 798,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | def apply(curs):
print 'Creating table notification'
curs.execute(
'''
CREATE TABLE notification (
id serial,
PRIMARY KEY(id),
environment_id integer NOT NULL,
event varchar NOT NULL,
type varchar NOT NULL,
is_active boolean NOT... | [
"akislitsky@loyalty-partners.ru"
] | akislitsky@loyalty-partners.ru |
c6549e2fc225c97c73dae19f10448d5b732f4cc9 | aeef2d671eb4a455fc06864f6eb2380f982a3d0b | /Elevation_Week9/Python_File_I-O/exercises.py | 091f60fbd665dbe970d459aa40126e341be6d2b4 | [] | no_license | RebeccaNahom/Elevation_BootCamp_Practice | 0e7d66f3707ade701e659a8c927626d89fe7e674 | cec360b1b9e1ba2de134fe20a075f638b39d7c92 | refs/heads/master | 2020-12-23T03:43:32.321253 | 2020-01-29T15:59:40 | 2020-01-29T15:59:40 | 237,021,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # # exercise 1
# quizzes = [
# {"name": "Guillermo", "quiz1": 80, "quiz2": 85, "quiz3": 82},
# {"name": "Jamie", "quiz1": 78, "quiz2": 72, "quiz3": 80},
# {"name": "Otto", "quiz1": 92, "quiz2": 89, "quiz3": 96},
# {"name": "Christina", "quiz1": 91, "quiz2": 85, "quiz3": 94},
# {"name": "Ceasar", "qu... | [
"rln770@gmail.com"
] | rln770@gmail.com |
c81c481c4164984cc48621ac820341764eda0f70 | eec9c673984da80f42d2a296ee2cb068639db169 | /tods/tests/feature_analysis/test_StastiticalStd.py | e0e968bb983bc7b56792b66f46ebdad5e1844590 | [
"Apache-2.0"
] | permissive | datamllab/tods | 0766f48e7736fd2dca1cbc59fef019447039fed8 | 314dd6efc6ed3f8d25e100b08de4115edc636e14 | refs/heads/master | 2023-09-03T22:44:31.929096 | 2023-08-24T17:21:27 | 2023-08-24T17:21:27 | 293,719,013 | 1,094 | 175 | Apache-2.0 | 2023-08-24T17:21:28 | 2020-09-08T06:18:12 | Python | UTF-8 | Python | false | false | 5,434 | py | import unittest
from d3m import container, utils
from d3m.metadata import base as metadata_base
from tods.feature_analysis import StatisticalStd
class StatisticalStdTestCase(unittest.TestCase):
def test_basic(self):
self.maxDiff=None
main = container.DataFrame({'timestamp': [1, 3, 2, 5], 'values'... | [
"khlai037@gmail.com"
] | khlai037@gmail.com |
1ca993476998acd64c4757176f69aeb94ba09944 | 49f900c0d3a828532bf74b22d7a5ba3e1c3b6342 | /visa2.py | 55401611a95829901169d896028f57e648babe4d | [] | no_license | MA0R/Lock-in-amp | 80295c21e4058d6a9904bdaaae4737f6be6204be | 64579fd9969c3d40ef2b06c369be5549e42a2fda | refs/heads/master | 2021-01-20T08:07:01.607850 | 2017-05-04T03:07:07 | 2017-05-04T03:07:07 | 90,099,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | """
A simple class to allow quick testing of GPIB programs without instruments.
All reads from an instrument return a semi-randomised number regardless of
the specific command that may have been sent prior to reading.
"""
import stuff
import time
## VisaIOError = False
"""
Old pyvisa calls.
"""
def ge... | [
"noreply@github.com"
] | MA0R.noreply@github.com |
e00456c35b53445f3dfba0697812a3de3661c77f | 8a567fee1d89fe26568fe7a0ae055eb78ad2b4a5 | /app/__init__.py | ef9ef89a613d4d0b56e4764c1ca0461afca9a3ae | [
"MIT"
] | permissive | munniomer/StackOverflow-API | c9c91fd5e41ed4b8f8ac19001506eca15cd25bf9 | 7b90e91fb09a8f206838cef32e7f61f2566cce71 | refs/heads/develop | 2022-12-10T04:50:32.997001 | 2018-12-17T08:36:43 | 2018-12-17T08:36:43 | 161,797,399 | 0 | 1 | MIT | 2022-12-08T01:28:57 | 2018-12-14T14:44:54 | Python | UTF-8 | Python | false | false | 328 | py | import os
from flask import Flask
from config import app_config
def create_app(config_name):
"""Method for creating the app"""
app = Flask(__name__)
app.url_map.strict_slashes = False
app.config.from_object(app_config[config_name])
from app.api.v1 import v1
app.register_blueprint(v1)
ret... | [
"munniomer@gmail.com"
] | munniomer@gmail.com |
2924027373b62dee514bb62d29aacadd17fe6cc6 | 6c1b44db56b33d7cd61fa90c027e7b63a3d6069f | /MxOnline/apps/commucation/models.py | 6b150a0e188bca1516a5868acf519fdd9544ef2b | [] | no_license | apologizefor/Learning | 0495881b221cd075c18f94d457ca638a91ffc98c | a3413ff91ee454d5dc6623c4eb519b410816f2f5 | refs/heads/master | 2020-05-19T13:37:58.472721 | 2019-03-04T05:54:42 | 2019-03-04T05:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | from django.db import models
from users.models import UserProfile
from datetime import datetime
from DjangoUeditor.models import UEditorField
# # 标签
# class Tag(models.Model):
# name = models.CharField(max_length=30, verbose_name='标签名称')
#
# class Meta:
# verbose_name = '标签'
# verbose_name_pl... | [
"1404636718@qq.com"
] | 1404636718@qq.com |
cda54170edf560f0966522ae048fa92c35001e47 | 3ccc50714be0db54724b025cfe172e419577907c | /aoc20/day7/day7_2.py | 507ce85d79c42c77de934dd8ec564f7db9ea7550 | [] | no_license | nithish-thomas/adventOfCode2020 | 5e4e842653d515cb06181b0491d7b38822b8a25e | 047a619518476b993e3970bd5df31d8f9cfca4c5 | refs/heads/master | 2023-04-26T06:01:18.048563 | 2021-05-29T07:20:35 | 2021-05-29T07:20:35 | 356,049,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | import re
from collections import defaultdict
import functools
def parse_rule_container(rule):
regex = re.compile(r'(.*) bags contain(.*)')
matches = regex.match(rule)
return matches.group(1), matches.group(2)
def parse_contained_rule(rule):
regex = re.compile(r'((\d+) ([a-z ]+) bag)+')
all_matc... | [
"nithisht@thoughtworks.com"
] | nithisht@thoughtworks.com |
9a0789cf77068bec3e983e45edd7b08308d115ba | 27797e62f4140e1d4b48733ed60318993f659a57 | /tests/test_projects.py | e6d8f84d6abd0dd5f196be3a989ba37f3296f7d6 | [
"Apache-2.0",
"Python-2.0"
] | permissive | vigsterkr/renku-python | 9ab8b2b00ab8bbe9e3de64e7e1ce29bc296013ac | fb443d752436478a2903c4403ba6c702949b1b59 | refs/heads/master | 2021-07-08T20:04:47.133724 | 2019-07-12T17:30:31 | 2019-07-12T17:30:31 | 197,255,953 | 0 | 0 | Apache-2.0 | 2019-07-16T19:32:44 | 2019-07-16T19:32:43 | null | UTF-8 | Python | false | false | 2,177 | py | # -*- coding: utf-8 -*-
#
# Copyright 2018-2019 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | [
"jiri.kuncar@gmail.com"
] | jiri.kuncar@gmail.com |
c3620b5ded5beab642515b06ad4312caae8a9ebf | 5582f0d2d85827b4ae36eb41a099c098164fb3b0 | /CodeForces/Week2/Mahmoud.py | 9f1e1691b9e951c5b6cc2fc4ae64b1116e7673fd | [] | no_license | Coder481/Compititive-Programming | b467793a21120e277afd7a232434300b3e577586 | ccaba636ba0dfdc0a971fcd21bbb2fe69662ab7d | refs/heads/master | 2023-05-31T05:56:39.035796 | 2021-07-14T06:27:01 | 2021-07-14T06:27:01 | 293,406,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #https://codeforces.com/contest/766/problem/A
a,b=input(),input()
alen,blen,count=len(a),len(b),0
if alen==blen:
for i in range(alen):
for j in range(i,blen):
if a[i]==b[j]:
count+=1
break
else:break
if count==alen:print('-1')
else:print(alen)
... | [
"noreply@github.com"
] | Coder481.noreply@github.com |
77ce05fa614a925c4606c96eda3b0de1402abfe9 | b503e3f5e7d9e8071d94221e55c06bbbf2d873d5 | /matplotlib/6.颜色.py | 55e8ffcaa0c4663e5e968095a53de2892391e1e0 | [] | no_license | flying-fisher/learning_project | d56dbb78ce9093a44e3abdc120b03ec80a9d1829 | fe42ed59834f233c8100ff19f22f5f335cc0211d | refs/heads/master | 2021-10-11T11:39:29.989453 | 2019-01-25T09:34:44 | 2019-01-25T09:34:44 | 114,252,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #导包
import numpy as np
import matplotlib.pyplot as plt
import matplotlib._color_data as mcd
import matplotlib as mpl
mpl.style.use('seaborn')
# print(mpl.style.available)
#设置x,y
x = np.linspace(-2.0 * np.pi, 2.0 * np.pi, 201)
y = np.sin(x)
#设置轴线
plt.axhline(y=0, color='b', alpha=0.5)
plt.axvline(x=0, color='b', alpha=... | [
"cuijunlei2016@gmail.com"
] | cuijunlei2016@gmail.com |
a11c4b2c0b15060ff9a62d265714bb6f7c41ced0 | 7fcb9b17be62880c761c63e3b2a996b145b93b8b | /Accounts_API/migrations/0002_auto_20200929_0015.py | a67ef8f00175e47fa4c65a8b4cab2204fb86bb5c | [] | no_license | ProMostafa/SimpleAPI | fa15c42dcb98f38f7a8edb835c797c6478d74084 | ecc460cec74b3186dd310907ed75e405dfcbb2d6 | refs/heads/master | 2022-12-27T16:50:45.460111 | 2020-10-01T00:21:52 | 2020-10-01T00:21:52 | 299,444,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.0.6 on 2020-09-28 22:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Accounts_API', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account',
name='job',
... | [
"promostafaeladawy@gmail.com"
] | promostafaeladawy@gmail.com |
be4af1a72301682cbcc46785463df5af278e729e | 972596caf7ff69854a4526ebfb578a7066642a8b | /Filmland/views.py | 91352135038736fbc313b4ebf0e9f1cba79d366e | [] | no_license | ZTWProjekt/ZTW | a3a2860574e6cdc5d892f5791afd680617bd0ec1 | 357e1fc8ca00a1d4a69dd0a4f934e1934066d4bf | refs/heads/master | 2016-09-05T10:24:28.547695 | 2015-06-08T11:26:02 | 2015-06-08T11:26:02 | 31,620,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | from django.template import RequestContext
from django.shortcuts import render
from movies.models import Movie
from people.models import Person
from django.views.generic import View
from django.db.models import Q
from django.http import HttpResponseRedirect
from django.utils import translation
class HomeView(View):
... | [
"joannalewicka@outlook.com"
] | joannalewicka@outlook.com |
6750c234e65cc1a9d0a5a6882b55fffe847f320d | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/884.py | a8d74bc04bec198c408a24561663646aefed2414 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 169 | py | def word_count(phrase):
phrase = phrase.split()
occurences = {}
for word in set(phrase):
occurences[word] = phrase.count(word)
return occurences
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d313990cc102d01487a3785a466d81c1356d418e | d3dc1d50f683566c9d71722f218afc9340ed6ab5 | /mql.tolog/tests/test_tolog_converter.py | c083f199c167dc39587fb81161ecaf545da5e0ec | [] | no_license | heuer/mappa | b20ec8a61979a75802af19803c54ee339e65807c | fc89cf32560d2e9ea6b380127b77fb3587bbd06c | refs/heads/master | 2021-01-23T15:31:54.242393 | 2015-03-16T17:17:35 | 2015-03-16T17:17:35 | 32,339,134 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2007 - 2014 -- Lars Heuer - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# BSD license.
#
"""\
Tests against the "back-to-tolog" stylesheet.
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - <http://www.semagia.com/>
:license: BSD Li... | [
"Lars@localhost"
] | Lars@localhost |
a8a4f021a966d1ddb8df4117e68221c866d0b863 | 672ae778eedf78f256cea8b6534bfe719690ccf7 | /Main.py | ee9c750bb88129ad1bdf69fcfc74e60ab285e8cc | [] | no_license | iTrauco/ResumeBuilder_GoogleAPI | b152098049a45db94759b08257768cf67bfdb2f7 | 9686042cd94ead0babebfed80a8fdc0a46be24cc | refs/heads/main | 2023-02-26T21:11:43.415429 | 2021-02-06T02:25:59 | 2021-02-06T02:25:59 | 409,476,775 | 1 | 0 | null | 2021-09-23T06:36:45 | 2021-09-23T06:36:44 | null | UTF-8 | Python | false | false | 1,438 | py | from Config import input_data
from Applicant_Builder import ApplicantBuilder
from time import sleep
def main():
process_1 = ApplicantBuilder(input_data["sheet_scopes"],
input_data["service_file"],
input_data["drive_scopes"],
input_data["doc_sco... | [
"noreply@github.com"
] | iTrauco.noreply@github.com |
a28a37b7bb5df3b8e2d9c62214b8cdbe474acac8 | 35c8d28a6324d2425929c5aa43cf9d828c8977db | /favsinger/favsingerapp/admin.py | 898788cbaeba2c06bb422217c3ef40ab79967ddf | [] | no_license | peanutyumyum/Likelion_8th | 3bc9bb0414e0b5527ad6fbb4b86b90690e2f6111 | c7d9510f42a5d12f6b6cd58b298abceaf6befa2e | refs/heads/master | 2022-12-16T14:37:28.066275 | 2020-09-24T17:22:04 | 2020-09-24T17:22:04 | 275,782,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import singer
# Register your models here.
admin.site.register(singer) | [
"jrimit@gmail.com"
] | jrimit@gmail.com |
13008d0462ac34c364bc24cfdb8590f264b1f46f | 95ac9f7f7afc4a88c33fea1abe15e5059074bbe9 | /shares_tutorial/node_modules/keccak/build/config.gypi | be166c2db6113743f915be4e6162fc4ce058fc20 | [
"MIT"
] | permissive | bschwyn/smart-contract-tutorials | 93a1966870b0ba74542a22b98d4b399eb866bb72 | 0053fca89c86aa44772112abf03aed8fc600778d | refs/heads/master | 2020-03-22T14:00:09.085197 | 2018-07-08T07:22:31 | 2018-07-08T07:22:31 | 140,146,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"ben.schwyn@gmail.com"
] | ben.schwyn@gmail.com |
551ba9fb58625a0ad4ad48918a5d7f0eb14d6bd6 | 10dd4758f28a2e32d0bbe9c056de3e523ae727dc | /week-1/count_inversions.py | 1e897401dc2998287aae35348556c23cd70e2b7c | [] | no_license | helin24/Aardvark-Parts-1 | 595cae2f66966de62129ef591bae35c87671ee47 | 4a0879b7f7555978d4048c59620f166461c179d3 | refs/heads/master | 2020-12-25T23:46:58.365971 | 2015-10-29T13:55:23 | 2015-10-29T13:55:23 | 25,180,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | def count_inversions(alist):
if len(alist) == 1:
return alist, 0
split_index = len(alist) // 2
left_list, left_inversions = count_inversions(alist[:split_index])
right_list, right_inversions = count_inversions(alist[split_index:])
return merge_list(left_list, right_list, left_inversions... | [
"helin.shiah@gmail.com"
] | helin.shiah@gmail.com |
c67a480ce8b4db81e99ea04883830d6cfd879f26 | 5a59aa70195180b91aad80c6704f345267ec7a3c | /esbo_etc/classes/sensor/Imager.py | 5efa6597937b1ba6b04b77968fd48a4febf948cc | [
"Apache-2.0"
] | permissive | LukasK13/ESBO-ETC | 5f3e364d0e7cc4cc349ad1408cdd510f21f3e0da | d1db999f1670f2777c5227d79629d421f03e5393 | refs/heads/master | 2023-01-10T13:17:46.687687 | 2020-11-05T12:49:54 | 2020-11-05T12:49:54 | 288,223,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,829 | py | from astropy import units as u
from .ASensor import ASensor
from ..IRadiant import IRadiant
from ..Entry import Entry
import numpy as np
from typing import Union, Tuple
from ..psf.Airy import Airy
from ..psf.Zemax import Zemax
from ..psf.FITS import FITS
from ..SpectralQty import SpectralQty
from .PixelMask import Pixe... | [
"spam.lukas.klass@gmail.com"
] | spam.lukas.klass@gmail.com |
b5992201f8da610e20203594718d8655c5dd1f04 | d340a79d2227cff72fdeac7558e6810d1923e08a | /pathList.py | c40584fe3f3dd25c2aed23340985f2c226b0ced8 | [] | no_license | wichukornk/FEC | 94263610de081b4ebc97460a677db43d7574c2d8 | b48e7580f2339732239021dd07ae93deb45e940c | refs/heads/main | 2023-02-16T04:07:22.314702 | 2021-01-06T13:29:21 | 2021-01-06T13:29:21 | 314,236,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import os
import pandas as pd
# Getting the current work directory (cwd)
#thisdir = os.getcwd()
thisdir="C:/Users/wichu/Documents/GitHub"
# r=root, d=directories, f = files
path_list=[]
for r, d, f in os.walk(thisdir):
for file in f:
if file.endswith(".csv"):
#print(os.path.join(r, file))
... | [
"wichukorn.ku@outlook.com"
] | wichukorn.ku@outlook.com |
ab7252cf2f4ea92b9651cd15783d6bb92f9d9695 | 53d11911c02f844900fdc4fd1d32ccb169a3210a | /Code52.py | cd5f56b17b626496924efc6d6c2c592e998d960b | [] | no_license | ANkurNagila/My-Code | a3dfe4fd675664b6a77ec0575c9594662b78fe83 | d1ef620dac44b6ce4d7647e0eb3b258c330ae895 | refs/heads/main | 2023-03-22T01:31:01.045452 | 2021-03-19T04:56:22 | 2021-03-19T04:56:22 | 305,607,026 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | f=input()
count=dict()
for j in ["L","R","D","U"]:
count[j]=0
for i in f:
count[i]+=1
x=count["R"]-count["L"]
y=count["U"]-count["D"]
print(x,y)
| [
"noreply@github.com"
] | ANkurNagila.noreply@github.com |
29213a41c525b45c4ecf6a2d6b5532ff0504ab34 | 1f27fa945456ecd90c67970ef75144058df9270e | /cs61a/hw05/problems/hw05.py | a7077d008392fd6f2c4bf73be7db1c28b16e77b2 | [] | no_license | doku/ipython_notebooks | 286af4af1c8c164eb0691b6deb9f536dbf88d7fc | 52c436db88a97a42548d9b522769cd3bbf8d252f | refs/heads/master | 2020-12-14T07:15:36.805132 | 2017-04-16T23:27:37 | 2017-04-16T23:27:37 | 30,576,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | def print_move(origin, destination):
"""Print instructions to move a disk."""
print("Move the top disk from rod", origin, "to rod", destination)
def move_stack(n, start, end):
"""Print the moves required to move n disks on the start pole to the end
pole without violating the rules of Towers of Hanoi.
... | [
"jason@jasonwang.us"
] | jason@jasonwang.us |
aeb93d5ecbcb6bf68d21b52f4b76481c5aac2dd9 | fec25d75e87afc7e55346467e5e9399ee5e7cfa7 | /API_MARVEL.py | 9748a9ead89c7fb5babb7f0e5eea6b7614a4528c | [] | no_license | wottan32/integracion-plataformas | 7b20d8bb33a950e2899ce4ce8c7d9f0d90ef76e2 | 1b584da1f832b190207e2fdbfc173c854ba65c1c | refs/heads/main | 2023-04-21T20:10:14.805929 | 2021-04-24T23:56:53 | 2021-04-24T23:56:53 | 361,290,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from flask import Flask, request
from flask_restful import Resource, Api
from sqlalchemy import create_engine
from json import dumps
from flask_jsonpify import jsonify
db_connect = create_engine('sqlite:///C:/Users/c.valverde.olivares/Desktop/db')
app = Flask(__name__)
api = Api(app)
class GetNombre(Resource):
... | [
"noreply@github.com"
] | wottan32.noreply@github.com |
87ea03bc8f13ab1d0b3226d73cc1dd151a73eb2f | e8f76b7162c9781a4457cd06f5405925a9a18593 | /vbb_backend/users/admin.py | df843087d8aa089373a17f4662347cf93c4abe73 | [
"MIT"
] | permissive | wasswarichard/backend-vbb-portal | bcb54d4cf63f91862704ef5f6e5953b76d8839e8 | 8e4deec8a6e71b17da3476b0a05dbfe73d547b55 | refs/heads/master | 2023-03-24T21:09:25.364768 | 2021-03-16T18:53:26 | 2021-03-16T18:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.contrib import admin
from vbb_backend.users.models import User, Mentor, Student, HeadMaster
from django.contrib.auth.admin import UserAdmin
class MyUserAdmin(UserAdmin):
model = User
fieldsets = UserAdmin.fieldsets + (
(None, {"fields": ("user_type", "external_id")}),
)
admin.site... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
751992b7c92ac54a74d7f39c254b6447ae9d984c | 7a578ef5c93a194bd2ec890d6986966bd61c5a6e | /manage.py | 8eaa993819b91fbd761be026018d5f6ec1bcce12 | [] | no_license | nkall/supportdash | 8576fc74dc120f7eb064b598862a7e407d160089 | 801a47d5a77f7c6fd00d59f87a64a632eae8bbcf | refs/heads/master | 2016-09-10T12:16:14.145032 | 2015-07-08T21:25:40 | 2015-07-08T21:25:40 | 38,506,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "supportdash.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"nkallhovde@gmail.com"
] | nkallhovde@gmail.com |
1fd18852d0cbcda793b74043c834504fd069e531 | e296f0f3d7db598aba5658de3ff8c767634e533e | /zoo/migrations/069_add_columns_is_visible_and_moderated_by_and_moderated_at_to_photos_photo.py | c04134e45dbcd4f0f9271346ff9617625c56833f | [] | no_license | devfort/wildlifenearyou | b2ac05070aa6face60156d6e7c85f98f00013c25 | 8e618aea90bbcedc45a4e30199e31880ea9e6dca | refs/heads/master | 2021-01-13T01:25:29.467549 | 2010-06-10T06:37:43 | 2010-06-10T06:37:43 | 7,874,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.conf import settings
if settings.DATABASE_ENGINE == 'mysql':
from dmigrations.mysql import migrations as m
elif settings.DATABASE_ENGINE == 'sqlite3':
from dmigrations.sqlite3 import migrations as m
import datetime
migration = m.Compound([
m.AddColumn('photos', 'photo', 'is_visible', 'bool NOT N... | [
"simon@simonwillison.net"
] | simon@simonwillison.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.