blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3af1d5624b20305293c36b02658229491e07512 | bb5ec9039b86f1844f6608f2a77cbba9ef77f416 | /Lecture_12/name.py | 43cac66339a8cbed958cbcce7a241594a8815e74 | [] | no_license | tengdann/SI_507 | ab1bf88652512fb5d7147ed9ea03be9b970584bf | 09cf7e3ba60916b1149cb24defd016aa3c53ca6d | refs/heads/master | 2020-03-28T04:04:44.276085 | 2018-12-05T21:52:37 | 2018-12-05T21:52:37 | 147,692,812 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/name/<nm>')
def hello_name(nm):
return render_template('name.html', name=nm)
if __name__ == '__main__':
app.run(debug=True) | [
"tengdann@umich.edu"
] | tengdann@umich.edu |
154cf1797ba703fb75d04a85b23575cf6b70617e | d78b5efbd65cb569d090a069e2ec9f6dadf28072 | /mac/shop/migrations/0003_contact.py | 9a0096be173286301254e3a097e2518cda8298ad | [] | no_license | shivamkcodes/myawesomecart | b45b0ab11595c7a6425918a7920b5812caff30e6 | c0fedbc31323c1224d81b9af2afe621af78a89ff | refs/heads/master | 2021-01-04T09:42:21.307516 | 2020-02-14T11:48:45 | 2020-02-14T11:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Generated by Django 3.0.2 on 2020-01-12 11:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_auto_20200112_1505'),
]
operations = [
migrations.CreateModel(
name='contact',
fields=[
... | [
"shivamguglani306@gmail.com"
] | shivamguglani306@gmail.com |
6802c93ff58c3831da0616987f9c4532b06dcf92 | 95904f9169360a31458d46f5715e72f7a512afbd | /silvertask-web/core/views.py | 837f97578597af6488301fad9a6b821f110b19b3 | [
"MIT"
] | permissive | tnakamura/SilverTask | 08c2c801df0560cc0fee1b085effaf55dabd3e4d | 5140bce6611565929c9558705eb8f407176cc3e9 | refs/heads/master | 2021-01-19T18:07:42.731266 | 2014-01-31T21:19:21 | 2014-01-31T21:19:21 | 2,317,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # -*- coding: utf-8 -*-
from werkzeug import (
Response,
)
from kay.utils import (
render_to_response, url_for,
render_json_response, get_or_404
)
from kay.auth.decorators import login_required
from core.models import (
Task
)
import simplejson
@login_required
def index(request):
return render_to_respons... | [
"griefworker@gmail.com"
] | griefworker@gmail.com |
2b95bf170b8546ca587bb3eaa5593e9c6e0fab28 | a4d602f284352c5e13011d17fdd5c1c7eaa168ad | /training/code/prueba1.py | cd89d1a332eb90c2d7fa7cfcd1b95183265f9786 | [] | no_license | petervices/Simple-and-practical-exercises | f33fc6ccc647cdc3542d55e0b04f65728656db8a | bac61141f0c293f88d1e2f38fceb0edaa2bf1ed8 | refs/heads/main | 2023-05-14T07:02:07.650486 | 2021-05-19T12:54:46 | 2021-05-19T12:54:46 | 368,854,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | available_toppings = ['mushrooms', 'olives', 'green peppers',
'pepperoni', 'pineapple', 'extra cheese']
requested_toppings = ['mushrooms', 'french fries', 'extra cheese']
for requested_topping in requested_toppings:
if requested_topping in available_toppings:
print("Adding " + requested_topping + ".")
... | [
"noreply@github.com"
] | noreply@github.com |
cab43f5a1b4b715082e34d18d0530568beb56d91 | 08dcc234d750ec0485bc506ae40f91dc12d7f516 | /todoapp/migrations/0002_auto_20150221_1512.py | 77cd326a509361c7d143cd4e9f9effa44c472ac2 | [] | no_license | 14bmkelley/todolist | 665946cac2c5e1af2460225282a240915791bf48 | 835464a39c1a43037d37c0edbefc4bc2c2510385 | refs/heads/master | 2021-01-01T05:31:44.669429 | 2015-02-28T01:52:30 | 2015-02-28T01:52:30 | 31,447,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Note',
new_name='Task'... | [
"14bmkelley@gmail.com"
] | 14bmkelley@gmail.com |
76e90a96e1b7f817c4d699069d5ed218591c8132 | ba5fdceae79d7744a18f0bc0424550c937b3a31e | /stories_utils.py | 5ef2ab6b956a478203de790a7c1902ee158e4131 | [] | no_license | AbimbolaObadare/apple_health_analysis | bd70bc0ed3901fec0c6e924967bdea882be2b284 | f537cdebdf338fcb1b920d4e30db5cf0e7959fbf | refs/heads/master | 2023-03-22T20:57:40.812542 | 2020-11-17T23:20:39 | 2020-11-17T23:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import functools
import itertools
import statistics
from collections import namedtuple
from typing import Any, Callable, Dict, Iterator, List, Sequence, Tuple, Union
from intervals import Interval
from utils import csvdict_generator, always_true
MonthlyRunStatistics = namedtuple("RunDurationAndDistance", ("name", "du... | [
"beijingbayou@gmail.com"
] | beijingbayou@gmail.com |
7b5df4dac2143732faee10b0e26a450630d63b0f | 6cfab27a1f3bf5508fce224afddfa5b3e1363f23 | /旅法师文章更新检测.py | 0a0366a3b9ab6db40ed19fbac00e11f35e6fb700 | [] | no_license | FinchChen/bilibili | 95960670a4bc10888b1c0dccc10f2726b9ec72b3 | 1016b822b4ec956503451c5840243c308c5d07ec | refs/heads/master | 2021-04-28T13:11:31.048153 | 2018-03-04T19:48:13 | 2018-03-04T19:48:13 | 122,097,981 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import requests
import time
import smtplib
from email.mime.text import MIMEText
def sendEmail(title,message,destination):
fromaddress = 'ringlgamesh@gmail.com'
toaddress = destination
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
serv... | [
"finchyifanchen@gmail.com"
] | finchyifanchen@gmail.com |
f05abbc218cb04485f740ea4a68d7def597c8a36 | 2be371e9d02415f021597ff6483160c02c80af63 | /Lib/test/test_importlib/extension/test_loader.py | 6707fc1ba8a8211a360fa7291737561219d72921 | [
"CC-BY-4.0",
"MIT",
"Python-2.0"
] | permissive | Ma233/RustPython | 7893114e4d27cab9b71633db0ab27a084d458466 | 5d6c32398991da0d075a74f7507ef6406300193d | refs/heads/master | 2021-06-26T00:09:28.711036 | 2020-12-20T15:26:30 | 2020-12-20T15:26:30 | 190,310,528 | 0 | 0 | MIT | 2019-06-05T02:14:45 | 2019-06-05T02:14:44 | null | UTF-8 | Python | false | false | 12,102 | py | from .. import abc
from .. import util
machinery = util.import_importlib('importlib.machinery')
import os.path
import sys
import types
import unittest
import importlib.util
import importlib
from test.support.script_helper import assert_python_failure
class LoaderTests(abc.LoaderTests):
"""Test load_module() for... | [
"palaviv@gmail.com"
] | palaviv@gmail.com |
7d5a16b79347dc1a7ab5601542779245f50ac4dd | d4b344780e893a19d44aed51ebfe514c91e920c2 | /aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/UntagResourcesRequest.py | 953b86ca9d42e26feb6484c0520c3745231814fc | [
"Apache-2.0"
] | permissive | WenONGs/aliyun-openapi-python-sdk | 6d164160eac7a8020e3b8d1960d170e08d2c8f23 | b6de95a32030b421665c0833c9d64d92fcaf81c8 | refs/heads/master | 2023-04-28T06:36:51.740098 | 2021-05-17T09:37:00 | 2021-05-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
84e7c0c084c0f59fe6a539530e79861333fb80d0 | fe5a48ce4196dedcde2ffb2f753fc92cf6c710f5 | /script.py | 0414982811f99744eaaeeebef35d304fb4bcf4a9 | [] | no_license | vickyjkwan/data_challenge | af42ad092fcaa2515350529406bba53064165955 | d184e4bb92acc4f6259c212e45bfb4d98864c410 | refs/heads/main | 2023-04-03T07:54:53.388512 | 2021-04-10T18:04:32 | 2021-04-10T18:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | from pyspark import SparkContext
from pyspark.sql import SparkSession
from pyspark.sql.functions import date_format
from pyspark.sql.types import StructType, StructField, StringType, DoubleType
import json
def create_spark_session():
"""Create spark session.
"""
spark = SparkSession.builder.config("spark.j... | [
"mathilda_sorciere@yahoo.com"
] | mathilda_sorciere@yahoo.com |
b6542980555fe27fde1765fa72bc2a691b8a0f44 | a59568148b79abaeaa7911f37b3734f72f86d758 | /django/website/datamap/migrations/0008_auto__del_field_field_formattedname.py | 1988a35be7e9c351a07b60ce5e43de4feb8fd049 | [
"MIT"
] | permissive | rasulov3645/opendatacomparison | 55bd0820bd21f2b5c3f53055d89f8c3b80d5985f | 2dcfefbd931fa4c7a0981a7f6bd966259aa4f16a | refs/heads/master | 2021-06-23T06:20:54.775422 | 2015-05-06T15:11:31 | 2015-05-06T15:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,674 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Field.formattedname'
db.delete_column(u'datamap_field',... | [
"sarah@bonvaya.com"
] | sarah@bonvaya.com |
01bd0799665e1006b58f2728ebf8ebe9a2ffc11b | 626b32ea3f7d21674e9cd4b09ae95a1bc74100d4 | /src/bls-signatures/python-impl/tests.py | 3f0fc6137cf4c0f1ee2d6f5375634cc24928da99 | [
"MIT",
"Apache-2.0"
] | permissive | tecracoin/tecracoin | f3f61586f7d47adbe97b80244e056284390021e2 | a0c87b9ca21dd3eb58f2ee63ae15418be8d00ccc | refs/heads/master | 2021-08-18T06:09:42.932352 | 2021-07-26T10:37:48 | 2021-07-26T10:37:48 | 195,856,535 | 4 | 8 | MIT | 2021-06-14T12:45:21 | 2019-07-08T17:21:21 | C | UTF-8 | Python | false | false | 13,147 | py | # flake8: noqa: E501
import time
from ec import (generator_Fq, generator_Fq2, default_ec, default_ec_twist,
y_for_x, hash_to_point_Fq, hash_to_point_Fq2,
twist, untwist, sw_encode)
import random
from fields import Fq2, Fq6, Fq12, Fq
from bls import BLS
from keys import PrivateKey, Publi... | [
"peter@shugalev.com"
] | peter@shugalev.com |
a3e4daeb4540e86a191320c9288566f3e820d966 | c311518808d62988fea8d558ea7e1ef4405972c5 | /DB_app/models.py | c56d12b1c2ebec216057ff2dc61af72eff226e8b | [] | no_license | majidAdibian77/Restaurant-management | d38c3c9d1278056f9ce6924cc6a2bd97cfc6ef95 | 7cdb7f929c8ba9621eb6090bee7e88ab15b68f8e | refs/heads/main | 2023-02-01T09:57:19.536477 | 2020-12-20T18:35:24 | 2020-12-20T18:35:24 | 308,071,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | from django.core.validators import MinLengthValidator, MinValueValidator
from django.db import models
from django.utils import timezone
from django.db.models.signals import pre_save, pre_delete
from django.dispatch import receiver
class User(models.Model):
national_id = models.CharField(max_length=10, validators=... | [
"majidad09@gmail.com"
] | majidad09@gmail.com |
cc01e0008420ba62eeee954a8c66fd4233c9ae6b | 405bd7dd4cc6bd330d7556274805ab1492e1018f | /integrated/headers/header_dialogs.py | 71816d1ba4627fb57eef933b2355098733ac97eb | [
"MIT"
] | permissive | Eleyvie/wreck | b9aca423ceed7e067ab8ee0f6c5984a3a70093d9 | 19d6149dc91465865918a706a17e14f5cf3c343d | refs/heads/master | 2016-08-12T23:57:21.531179 | 2015-12-04T08:07:05 | 2015-12-04T08:07:05 | 47,388,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | ###################################################
# header_dialogs.py
# This file contains declarations for dialogs
# DO NOT EDIT THIS FILE!
###################################################
speaker_pos = 0
ipt_token_pos = 1
sentence_conditions_pos = 2
text_pos = 3
opt_token_pos = 4
sentence_consequence... | [
"Aliaksandr_Lomski@epam.com"
] | Aliaksandr_Lomski@epam.com |
6464029d3066871a58131fc7207d49913a72b1ef | 15ce9f8cd8658eb00475f9f99e1715ba36d54abd | /quizzes/models.py | ea03629e1e2301b9e715343e74638bdb97b9aea1 | [] | no_license | naninuneter55/zunda | f4f961ea223a4a3d55b7f05eb3fc70f0042f792a | 96f8b8d93ef2ca00e68fc7f81e2be51bbde01e2b | refs/heads/master | 2021-04-30T18:18:50.093756 | 2017-01-29T12:17:54 | 2017-01-29T12:17:54 | 80,343,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from django.db import models
class Question(models.Model):
title = models.CharField('タイトル', max_length=256)
question = models.TextField('問題文', max_length=1024)
correct_answer = models.CharField('正解', max_length=256)
def __str__(self):
return "{}".format(self.title)
class Meta:
ver... | [
"naninuneter55@gmail.com"
] | naninuneter55@gmail.com |
2d14765400832c7f24d422e89a908788df38f9b1 | 21f23350cc15bb7755f01c05953359e9298251ef | /setup.py | cff4780388c6ef5f8c50cdbe2cf81f901bf3080f | [
"MIT"
] | permissive | ProbonoBonobo/gemeinsprache | 38f86e50d82519094f8b18ffad4990b18c3c4f76 | 041671f12a41d57a2faf3a4d827227a2d2dc5419 | refs/heads/master | 2020-04-29T18:42:10.682721 | 2019-03-18T16:56:13 | 2019-03-18T16:56:13 | 176,331,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # -*- coding: utf-8 -*-
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='gemeinsprache',
version='0.1.0',
description='General purpose ut... | [
"kzeidler@gmail.com"
] | kzeidler@gmail.com |
43e35d8e316118f9c98c684cd069945ffd0012f2 | e20d8c1003707ae437438f684f296228b0c87228 | /0x0A-python-inheritance/9-rectangle.py | a1086ccbdd1631b3160dad817dfcab11d3cdb61d | [] | no_license | jtt-berkeley/holbertonschool-higher_level_programming | 88428fb0d839de2e260b5822903ac85442d2a85a | d1f54255f141efe50aa1abcd7877433409e62e2e | refs/heads/master | 2021-06-17T02:21:42.293493 | 2017-05-05T05:32:24 | 2017-05-05T05:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | #!/usr/bin/python3
class BaseGeometry:
def area(self):
raise Exception("area() is not implemented")
def integer_validator(self, name, value):
if not isinstance(value, int):
raise TypeError("{} must be an integer".format(name))
if value <= 0:
raise ValueError("{} ... | [
"jimmy.tran@holbertonschool.com"
] | jimmy.tran@holbertonschool.com |
4de77a3c6177dbcfc98bc5b1eb9590de44674832 | 4063c06f2239cc887c80ec8a4ed8b7ccdbe19a02 | /maxSpacingKClustering.py | a48beb2308db8d21d7966c98c1aa0c580a262c30 | [] | no_license | vanessa-bergen/AlgorithmsCourse | 20f5aceac9023872ed5a4de0d2851c3294c657e9 | f22c670f006b0fa24001ad095628f34989918408 | refs/heads/master | 2023-03-11T10:31:12.928720 | 2021-02-16T16:46:08 | 2021-02-16T16:46:08 | 330,781,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | """
In this programming problem and the next you'll code up the clustering algorithm from lecture for computing a max-spacing k-clustering.
This file describes a distance function (equivalently, a complete graph with edge costs). It has the following format:
[number_of_nodes]
[edge 1 node 1] [edge 1 node 2] [edge 1... | [
"vanessa.bergen1@gmail.com"
] | vanessa.bergen1@gmail.com |
eaaf116f787ec66326cc1df3f123b94029ec5a75 | 01c557188db9bb6233f561308ff7dea3c75fe6ed | /3.4.py | e25e678ab862e52c0bcacabae2a05bd9b891499c | [] | no_license | namnh68/PyFML2015 | 2f36e4a17c97f7dfe3357a9644acd072d77aea50 | 8d17a7275c8958b47550b99756ab97c2bd2f8f65 | refs/heads/master | 2021-05-30T18:57:12.663699 | 2015-07-16T06:30:41 | 2015-07-16T06:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | input = range(16)
for i,j in enumerate(input[2:]):
print i+1, j | [
"trananhkma@gmail.com"
] | trananhkma@gmail.com |
e8f98f81fddd7ab8606cf4a92a637ea8342d3535 | 36c46ac6e19ea611e5ebe5d851c4ea14a3613bf5 | /beets/util/__init__.py | 67a878342bf2ad83e7b2d31fa5431f33bd156803 | [
"MIT"
] | permissive | navinpai/beets | e0fd569f255f3dc642dd431c6e283ae6d095ab42 | 94569a774e8075337f96a071ce77e1df692add98 | refs/heads/master | 2021-01-18T10:42:33.321553 | 2011-08-29T01:25:38 | 2011-08-29T01:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,849 | py | # This file is part of beets.
# Copyright 2011, Adrian Sampson.
#
# 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, ... | [
"adrian@radbox.org"
] | adrian@radbox.org |
c1c53c9c6a183e27023b0b54f9d68e8992fce6af | a33a55aa75b36c3dbc01422a23124010e00a9c43 | /sbnet_tensorflow/benchmark/benchmark_configs.py | dda8c58e28e6bfe4c91c5fda91ed3d272f0d3eef | [
"Apache-2.0"
] | permissive | damonmo/sbnet | 943883701805809203b7f84f2096f799def98c9e | ad106e6da541135b0b348433a1412991a2a2183e | refs/heads/master | 2022-09-04T23:09:30.097235 | 2020-05-27T14:10:48 | 2020-05-27T14:10:48 | 267,304,891 | 0 | 0 | NOASSERTION | 2020-05-27T11:47:04 | 2020-05-27T11:47:03 | null | UTF-8 | Python | false | false | 1,307 | py | """
Sparse Blocks Network
Copyright (c) 2017, Uber Technologies, 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 re... | [
"wavelet@gmail.com"
] | wavelet@gmail.com |
a2d3e2843cd09ddb4df7e1798d8510d5409ff5ff | 3061a7b2719f0ee20efd5fd1a6321f798264c0c4 | /4.py | b4b1e461e23c9a7d3fd3c4931eac7baa94b2be6d | [] | no_license | Iliavas/olympyada1 | e40f56653be29d187eeadb460bd8e5f693a1deeb | 080aa83d5ff0737c4d052464af6af7b3eda52952 | refs/heads/master | 2022-04-04T02:02:18.352982 | 2020-02-17T14:05:05 | 2020-02-17T14:05:05 | 240,663,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | from math import sqrt
def search(ks, bs):
for i in range(len(ks)):
for j in range(len(bs)):
try:
if ks[i] == bs[j]:
del ks[i]
del bs[j]
truer.append(True)
else: truer.append(False)
except: search(ks, bs)
if not len(ks): return True
else: False
def dist(x1, x2):
return sqrt(x1 ** 2 ... | [
"noreply@github.com"
] | noreply@github.com |
63f1be347c7875fec36366c86232173a42630430 | 3a7412502b89b917f23cda9a3318d2dc4d02185b | /panoptes/analysis/panels/events/admin.py | c24c66fb0d3a697e3b34747002864d68c5a7f646 | [
"BSD-2-Clause"
] | permissive | cilcoberlin/panoptes | 5f0b19d872993bc5c7f51a44c9ccc596fe0a8ab5 | 67d451ea4ffc58c23b5f347bfa5609fa7f853b45 | refs/heads/master | 2021-01-21T00:17:42.038637 | 2012-07-10T03:20:47 | 2012-07-10T03:20:47 | 1,660,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py |
from django.contrib import admin
from panoptes.analysis.panels.events.models import LocationCalendar
class LocationCalendarAdmin(admin.ModelAdmin):
list_display = ('name', 'location', 'calendar_id')
ordering = ('location', 'order')
admin.site.register(LocationCalendar, LocationCalendarAdmin)
| [
"justin.locsei@oberlin.edu"
] | justin.locsei@oberlin.edu |
ca245b61e5a67cdd9fe9c043bf4e5b42559a11a5 | 5cbf9143152173359c634a376fe748a30674cff3 | /text.py | c78b7d81879f22f0b57804236dc1e2d18f5510b9 | [] | no_license | eatfingersss/SpiderDemo | b578d3af9852a93ca15f1c684809e8b1d60adae8 | 0e52d005611017ca17aeb06a70d1ca3b35047be5 | refs/heads/master | 2020-03-27T21:28:25.348530 | 2019-06-08T03:09:18 | 2019-06-08T03:09:18 | 147,146,958 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,050 | py | # -*- encoding:utf-8 *-*
import os
import re
import random
from urllib import request
from bs4 import BeautifulSoup
ua_list = ["Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (... | [
"eatfingersss@eatfingersss.top"
] | eatfingersss@eatfingersss.top |
d66540afaf20abaf663f389f0f341b02916f5cfd | c1c343d386d7f158bbd24b9589a2179cf2aa05d0 | /mns/demo_sms_api.py | 6c9a76c944bb094a50289f625c65d5dd25a74356 | [] | no_license | ArtrixTech/AliSMS_Server | b4ea030704fc0cb5c65cdee856a05e5db8ad966f | 3481775c1cf8338f973a7b579a939c16f99ff64b | refs/heads/master | 2020-03-14T03:36:53.929344 | 2018-04-28T16:46:31 | 2018-04-28T16:46:31 | 131,423,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | #!/usr/bin/env python
# coding=utf8
import sys
import datetime
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.profile import region_provider
from mns.aliyunsdkdybaseapi.request import QueryTokenForMnsQueueRequest
import const
sys.path.ap... | [
"Artrix@Artrix.tech"
] | Artrix@Artrix.tech |
28c5a21d4c7789378290adf994ed3dbae06b6b28 | c15367c43f8b9ba97193b3219b60e78795972069 | /visual/example12.py | dc99f0c5c9b297dad741caff2364324e25ae8bc6 | [] | no_license | tyiannak/multimodalAnalysis | 7db72bf72b7e80c75b725d344c41510ec2356af9 | 6c94f6598df806c5b3f37f684a80838f7b198729 | refs/heads/master | 2023-07-20T06:55:08.698240 | 2023-05-19T16:32:54 | 2023-05-19T16:32:54 | 144,073,835 | 90 | 28 | null | 2023-07-06T21:16:30 | 2018-08-08T22:24:15 | Jupyter Notebook | UTF-8 | Python | false | false | 972 | py | """!
@brief Example 12
@details: Visual features visualization for 2 images using matplotlib.
(Color features)
@author Theodoros Giannakopoulos {tyiannak@gmail.com}
"""
from visual_features import ImageFeatureExtractor
import matplotlib.ticker as ticker
from matplotlib import pyplot as plt
filename1 = '../data/images... | [
"tyiannak@gmail.com"
] | tyiannak@gmail.com |
a9839736ca41d4edfa084d32a6f6dd4521bc3d3e | 0812fbe5d63940b90340a2abe5e3cb4700a0a567 | /contrib/wallettools/walletunlock.py | ab35e9985426e322a81b36e8a0dff225532825cc | [
"MIT"
] | permissive | SnowFlakes-Dev/SnowFlakes-Coin | 2c317d5dc61c4d3736b35188d8dbe6ddd89b7adb | e51af22cef27a49eddc248f3183eb8dae42b9dc9 | refs/heads/master | 2020-06-10T13:03:59.609321 | 2016-12-08T17:26:06 | 2016-12-08T17:26:06 | 75,959,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:11112")
pwd = raw_input("Enter wallet passphrase: ")
access.walletpassphrase(pwd, 60)
| [
"SnowFlakesDev@gmail.com"
] | SnowFlakesDev@gmail.com |
ce5b8d2c1b81229fe2a3cb6864010b6d460f4bc0 | e65cc10b724ac89cf64a7b8e6be7d6bf98498156 | /venv/Lib/site-packages/comtypes/gen/_C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4.py | 6b036f1102d8fd81ea2a0634aee6032840a7c0ea | [] | no_license | nizam754/Audio_Book_py | 1ab30748744e7902e411beff84ef3def83ef488d | 9d5d381a096190caf9f9ec9c765fb11ff8743cce | refs/heads/main | 2023-03-05T02:00:04.555897 | 2021-02-17T09:54:11 | 2021-02-17T09:54:11 | 339,672,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309,342 | py | # -*- coding: mbcs -*-
typelib_path = 'C:\\Windows\\System32\\Speech\\Common\\sapi.dll'
_lcid = 0 # change this if required
from ctypes import *
import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0
from comtypes import GUID
from ctypes import HRESULT
from comtypes.automation import VARIANT
from comtypes impo... | [
"m.nizam754@outlook.com"
] | m.nizam754@outlook.com |
e14da05a864d9042993c6d67327c7a39708ec3e6 | 9041e3dec84cffc37ae44f57d86c6be58217e0c5 | /BATTLESHIP.py | b2834a17c3369c90bf5486e11f5fedf4d301ae4b | [] | no_license | ArcOverStar/Battleship | 6298c81291ec5dc95dd71444b164d9f73d94846e | a1793d6f5924902f1b9aa4a0262202652ee74410 | refs/heads/master | 2022-10-23T08:54:46.469675 | 2020-01-29T14:11:10 | 2020-01-29T14:11:10 | 234,870,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,141 | py | import random, sys
UB=[]#User's board
CB=[]#Computer's Board
TB = [["0","0","0","0","0","0","0","0","0","0"],#Target Board
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0","0"],
["0","0","0","0","0","0","0","0","0"... | [
"noreply@github.com"
] | noreply@github.com |
b2e647ca7e61dc983ece0837c25e3743abde5e29 | e755453c853ae400d94f562ad215b59166b63782 | /tests/splay_tests/test_contains.py | 90f77cc4f6c2ffda415a14fbc9008bc8390adea1 | [
"MIT"
] | permissive | lycantropos/dendroid | 0cb3e276dd9c476b82b0b7a17c25c2e05616a993 | fd11c74a395eb791caf803c848805569869080f6 | refs/heads/master | 2023-04-07T11:07:55.550796 | 2023-03-27T00:46:03 | 2023-03-27T00:46:03 | 215,369,321 | 0 | 1 | MIT | 2020-09-24T05:02:02 | 2019-10-15T18:29:36 | Python | UTF-8 | Python | false | false | 891 | py | from typing import Tuple
from hypothesis import given
from dendroid.hints import Value
from tests.utils import (BaseSet,
are_keys_equal,
implication,
to_height,
to_max_binary_tree_height,
set_v... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
1eb86b1ba5cd1f6dc936de93034d2d7a5b77a4d1 | 2ed1741d1309bd5568a500e5f69960f94bc4ed65 | /Source Codes/PartC_Scam/Job1B_Scam_Aggregation.py | 1b5900b50e47ff48aed6e27a8f730373697a97b4 | [] | no_license | JakeBGitHub/EthereumAnalysis_Hadoop | 774c297c6ec1fba7316979bd5c956e947e6d7ce7 | 5062a6735eeaec1e6969cfeaefc9a40b7fa78617 | refs/heads/master | 2022-08-21T21:05:27.844851 | 2020-05-22T11:03:42 | 2020-05-22T11:03:42 | 266,079,123 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | from mrjob.job import MRJob
import re
import time
import datetime
#This line declares the class PartBJob1, that extends the MRJob format.
class scam_agg(MRJob):
# this class will define two additional methods: the mapper method goes here:
def mapper(self, _, line):
try:
fields = line.split("\t... | [
"noreply@github.com"
] | noreply@github.com |
3ed90e530afc8cd24b6878229713a18868c048c6 | b7193fb2e70d384970b9560a5d9a8fd93164afe1 | /transfer_learn.py | dad8ab37b51e0a71a9529ee4b792cc77e7dc155c | [] | no_license | Shubham0209/Tensorflow-Codebase | 616c19bc915d526faa9d2f503acc8fe596bf8f2d | eb8afcfc4244b85031e4f105df3eda7902e497c6 | refs/heads/main | 2023-04-15T20:30:53.904341 | 2021-05-04T11:13:32 | 2021-05-04T11:13:32 | 327,263,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | import os
import tensorflow as tf
from tensorflow.keras.optimizers import RMSprop
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import matplotlib.pyplot as plt
from tensorflow.keras import layers
from tensorflow.keras import Model
from tensorflow.keras.applications.inception_v3 import Incep... | [
"noreply@github.com"
] | noreply@github.com |
35d243ae6f29dfcb026617ec2a480b2659d6a02c | 921feabbbe06377108001242b974bdf72400a1a0 | /deploy/web.py | ce8bd9ef0b31e055234d50745e6241c39a31e1e1 | [] | no_license | binary-person/movie-sentiment-analysis | 5ce473ea5d0b9647f71a092fad9cb3eb38972ec9 | 461508daf29b77a6cd8ade80d87998966dcecc60 | refs/heads/master | 2022-04-02T04:42:20.122655 | 2020-01-15T01:06:19 | 2020-01-15T01:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
import numpy as np
import sys
import re
from http.server import BaseHTTPRequestHandler, HTTPServer
import urllib
TAG_RE = re.compile(r'<[^>]+>')
def remove_tags(text):
return TAG_RE.sub('', text)
def preprocessing_text(text):
# Remove... | [
"simoncheng559@gmail.com"
] | simoncheng559@gmail.com |
1d26c9f93159d2e3cdcc75af3f75804536f6b6a2 | d825bcb0f3c494387f22b1c1ac761b6563ba388a | /posts/migrations/0001_initial.py | 026f161a84a69741e09043b88a365bc4d1d3502a | [] | no_license | ustinvaskin/UstinVaskin-SEI-44-Project-4 | d60efaca7217fb10fe04f6b9ebe8d99f74d4b553 | 6c0ad17266fd95411df31031a964dc5ea4fa404b | refs/heads/master | 2020-12-12T12:53:27.382093 | 2020-04-02T06:56:54 | 2020-04-02T06:56:54 | 234,130,843 | 0 | 1 | null | 2020-03-06T18:00:35 | 2020-01-15T17:07:41 | JavaScript | UTF-8 | Python | false | false | 1,867 | py | # Generated by Django 3.0.4 on 2020-03-06 16:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ustin.vaskin2011@gmail.com"
] | ustin.vaskin2011@gmail.com |
a3a8d2a2108a913278b32155c5d8e49a56753f34 | e1788ba41ba5b877db72fc26ba4b13cc5823bd25 | /project1/crm/migrations/0001_initial.py | 0aca398f542328a33b2d804504f1e8a0bd544503 | [] | no_license | alexsproject/django_training_website | 137005029c96291894ecd5290f858043c1c219e6 | d31ab4523fd9076b0401287d7206a283b570062c | refs/heads/master | 2023-08-05T11:30:29.433730 | 2021-09-17T14:55:16 | 2021-09-17T14:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Generated by Django 3.2.5 on 2021-07-30 13:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', models.BigAutoField... | [
"nick1nick@protonmail.com"
] | nick1nick@protonmail.com |
e4ff0e7628f0b153ac84f54932d7be59746127b4 | be0c6e2071945edcb47ee4f3fadc1f4629a2c6aa | /grandapp/migrations/0105_auto_20210224_1527.py | d80a750747203ef42ed7326139cdc3f30142b816 | [] | no_license | QuackenbushLab/grand | 9719a395e6a30951c3ffdef1eccdb5e422da737c | f23031d1f240550d25c2842b4af0aae08c653bae | refs/heads/master | 2023-08-10T09:58:58.381264 | 2023-07-25T18:23:26 | 2023-07-25T18:23:26 | 201,113,575 | 5 | 2 | null | 2022-06-24T19:11:29 | 2019-08-07T19:18:58 | JavaScript | UTF-8 | Python | false | false | 1,050 | py | # Generated by Django 3.0.2 on 2021-02-24 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grandapp', '0104_auto_20210224_0043'),
]
operations = [
migrations.AddField(
model_name='ggbmd1sample',
name='link',... | [
"marouen.b.guebila@gmail.com"
] | marouen.b.guebila@gmail.com |
ad6a1db8a3b61a08a3621b592a55727497ceb0c6 | cf792745acd81c472625e5592b0e540db50c17cd | /books_site/urls.py | cbdefa3651cf317b707fd9a3f4a3e9f3ccfb445f | [] | no_license | AnniePawl/Django-Book-Site | 3e293b22ab9b571c6c806fee4e4a4124d940c878 | 80b34545f1211abb2e63884cfe9c6401048a37c9 | refs/heads/master | 2022-04-17T18:13:04.539849 | 2020-04-15T01:17:29 | 2020-04-15T01:17:29 | 255,183,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """books_site 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-ba... | [
"annampawl@gmail.com"
] | annampawl@gmail.com |
b9fc89711d8d5ef03f63e904aa46d309cee00d91 | 77923becb46943df4f2360fd651d73a0a3074f54 | /test_main.py | 00a18a3865389410f49072b7f5a9ba8e84bc4afa | [
"MIT"
] | permissive | internetmosquito/bloowatch_site | 9f6956e32cea933384c72ec97b77e5121f50feda | 8a4fa814a5255b36ee094bb6589e241205a2ed65 | refs/heads/master | 2021-01-10T09:45:56.523931 | 2015-12-02T12:46:54 | 2015-12-02T12:46:54 | 44,955,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | __author__ = 'mosquito'
import os
import unittest
from views import app, db
from _config import basedir
from models import RegisteredMail
TEST_DB = 'test.db'
class MainTests(unittest.TestCase):
############################
#### setup and teardown ####
############################
# executed prior t... | [
"alejandrovillamarin@gmail.com"
] | alejandrovillamarin@gmail.com |
de1964489e7a06b573dd7b0b5646fc231e174d46 | 146cd740649b87032cbbfb97cde6ae486f76230b | /venv/lib/python3.6/site-packages/PIL/BdfFontFile.py | fc85c8a287d218f13805660da1f2d7bc33c3793c | [] | no_license | shellyhuang18/plank-filter-master | 8b7024c46334062496f05d31eefc618ebae50b4e | 8993a5b00f45841c3385fe997857bfdd10b71a84 | refs/heads/master | 2020-03-30T18:14:45.017957 | 2018-12-27T20:51:25 | 2018-12-27T20:51:25 | 151,490,556 | 0 | 1 | null | 2018-12-19T22:42:26 | 2018-10-03T22:50:58 | Python | UTF-8 | Python | false | false | 3,119 | py | #
# The Python Imaging Library
# $Id$
#
# bitmap distribution font (bdf) file parser
#
# history:
# 1996-05-16 fl created (as bdf2pil)
# 1997-08-25 fl converted to FontFile driver
# 2001-05-25 fl removed bogus __init__ call
# 2002-11-20 fl robustification (from Kevin Cazabon, Dmitry Vasiliev)
# 2003-... | [
"shellyhuang81@gmail.com"
] | shellyhuang81@gmail.com |
8ef138ebd36f6c65242e71e1476783a146817c9b | 8f6252ea32574dc2f0b1d706e85282d2fbdfab5e | /boxsystem.py | dd2235284d1544cf9de7f3b11a7c390187ed7a39 | [
"Apache-2.0"
] | permissive | paki-the-box/packi-es | ad536012dab8261dd0d599c5655635f876207781 | 337b16ce7dcadf425210d38bdcdb53f4d12098af | refs/heads/master | 2023-02-21T04:17:08.712737 | 2020-11-09T20:20:06 | 2020-11-09T20:22:07 | 311,455,154 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | from uuid import UUID, uuid4
from eventsourcing.application.process import ProcessApplication
from eventsourcing.domain.model.aggregate import AggregateRoot
from eventsourcing.system.definition import System
class User(AggregateRoot):
def __init__(self, name, **kwargs):
super(User, self).__init__(**kwar... | [
"j.feinauer@pragmaticminds.de"
] | j.feinauer@pragmaticminds.de |
2271a3894f8aed24f43eb36ad364f8d90932ad2a | 8ac6c43aeb713d39538ea378ceb655b3a9ace554 | /Courses/admin.py | 2fbc54bae728ab7e1dbb0feaf610957e3771d493 | [] | no_license | 3BDO-debug/Mental-Education | 65d0ab377ba6a4ac8857cb9804d0a5a260a2ba0e | cdcbd6378cfd1882493dd129dc15919a3e4d0889 | refs/heads/main | 2023-04-27T18:56:38.434506 | 2021-05-12T03:21:24 | 2021-05-12T03:21:24 | 338,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.CourseLesson)
admin.site.register(models.Course)
| [
"rooted39@gmail.com"
] | rooted39@gmail.com |
0c87e8d62731907e5730a66a9a585858c48baab9 | 45c86c7e7c6e84dcae3eba5544d93db6bee19905 | /venv/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | 50d18037e88dceca1d054d694fcec1680aab9b8b | [] | no_license | 5eanpoint/moweb | 60b5ed74183b019e04e4fa243d3c1930c4cb4a64 | bbf0d96b651230c231115a3eace7b950a908b57e | refs/heads/master | 2016-09-14T05:29:27.601814 | 2016-05-24T06:40:05 | 2016-05-24T06:40:10 | 59,546,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import hashlib
import os
from pip._vendor.lockfile import LockFile
from pip._vendor.lockfile.mkdirlockfile import MkdirLockFile
from ..cache import BaseCache
from ..controller import CacheController
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open it in write only mode
fl... | [
"seanpoint@icloud.com"
] | seanpoint@icloud.com |
8d32cc2b75d0799d3691a28784850c0c4ad2dc57 | a99eeaa6a2cb2d61ed1207a0c7d3e88452a19f4f | /filesManage/settings.py | ed09b20cbd8e5a947b2d0f9b05254781b6276225 | [] | no_license | SweetShance/myweb | a8b91953630f93de3a9ea05d823524b542a698b2 | d49abd8aa5d857d565f4b0560c9907dd6bbb6390 | refs/heads/master | 2020-05-02T22:16:17.130629 | 2019-04-24T09:21:56 | 2019-04-24T09:21:56 | 178,246,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | """
Django settings for filesManage project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"2391454874@qq.com"
] | 2391454874@qq.com |
6ed5f68e9e400070cd30140a79a7a876e9457eda | 8188bb529e538926fda5e90c62e1eaba38cff4f8 | /apps/__init__.py | 26c8f87ee9cbfb2d2b8c6406523ae10f59ee3280 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | wangyibin/bioway | 68fbc59d65c0f94dcf2d4d56785522a62797fadd | a534f35fc6f96fe1b3a6ca78853a5aa076337328 | refs/heads/master | 2020-03-30T15:14:35.049692 | 2019-01-25T06:03:42 | 2019-01-25T06:03:42 | 151,354,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from .base import must_open
| [
"738339463@qq.com"
] | 738339463@qq.com |
f278aee08b3587ee3848d7a1ffd76e40d4563c8d | 3fc287d12dd020c3debe8a683e656ca1f28b66e0 | /src/main/python/imageconv.py | eb83b48087d07eb00e9223abd3d13cce8889cd8c | [] | no_license | chiizudesu/Client-Browser | 9ae68263dd6075925540273868c8b591a5383d80 | 90d36a80ac637e25fbc15dd3fc2d18f4e8091163 | refs/heads/master | 2022-04-03T07:41:13.343158 | 2019-12-21T04:05:07 | 2019-12-21T04:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import cv2
from PIL import Image
def imageset():
sizes = [16, 24, 32, 48, 64]
for i, x in enumerate(sizes, start=1):
image = r"C:\Users\John.IOCA\Desktop\icon.png"
image = cv2.imread(image, cv2.IMREAD_UNCHANGED)
dim = (x, x)
resized = cv2.resize(image, dim, interpolation=cv2.IN... | [
"John@ioca.co.nz"
] | John@ioca.co.nz |
398f2846b2e62433d3f80acb9788403a2b855607 | 28e4f30aea6d6bcd1b736d968329c82a74fbddb5 | /testing/hierarchies.py | 38c872f5f6e95741fd6831f7f548cbb60ad15055 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0"
] | permissive | druwadi/exhale | 29e7ea6381dbf0820e624add22b2a076cc2cf740 | ea5a933cfccc74234822d80dc85b509a6257f95e | refs/heads/master | 2020-04-12T17:14:13.828780 | 2018-12-23T08:30:10 | 2018-12-23T09:10:14 | 162,638,768 | 0 | 0 | BSD-3-Clause | 2018-12-20T22:42:02 | 2018-12-20T22:42:01 | null | UTF-8 | Python | false | false | 42,426 | py | # -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2018, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# ... | [
"svenevs@users.noreply.github.com"
] | svenevs@users.noreply.github.com |
d46e87a538d7d2f28ee2a12aa13e3ecb0c6ccf4b | bf8170efd6944d86e23c2b72c32595ffa706fdf5 | /Practice/texttopng.py | 242d7567a3d5edade75e379a681fbd4ce3f9ca1d | [] | no_license | sunilkurahatti/Learnpy | 0dd381d95d234df7f7f4b70fd0e4a9a59f5741ad | 55206471f8ff0c2b7653576d94c65d3e3609f42b | refs/heads/master | 2020-04-08T01:34:53.479847 | 2018-12-16T06:03:00 | 2018-12-16T06:03:00 | 158,900,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # with open('mine.txt','rb') as rt:
# with open('jpg.png','wb') as wp:
# for line in rt:
# wp.write(line)
import time
f=open('22.png','rb')
wf=open('333.png','wb')
a=time.time()
size=100000
pt=f.read(size)
while len(pt) >0:
# print(pt, end='')
wf.write(pt)
pt=f.read(size)
f.close()
wf.close()
print("time tak... | [
"sunilkurahatti@gmail.com"
] | sunilkurahatti@gmail.com |
0a235b0652821accf132cd7c6930576f4368404b | bf96501f8b436130063b28ba5a0b71be6413e1a3 | /dlsiteSpider/dlsiteSpider2.py | 99321c93b1c61ac39849de4edf804a14025ae1dd | [] | no_license | mudssky/python3Spiders | 7d6716a2eb98f4c45eeca2b71fe32338aaa7c604 | 9983b3d081596a7d71e8a434dc895beea74d3a01 | refs/heads/master | 2023-01-24T10:53:09.790475 | 2023-01-16T13:07:39 | 2023-01-16T13:07:39 | 162,007,534 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,602 | py | # -*- coding: utf-8 -*-
import requests
# import time
import os
import json
from pyquery import PyQuery as pq
from multiprocessing import Pool
import time
import re
rjidList=[]
urlList=[]
infoList=[]
htmlPathList = []
def read_rjid(rjidList,filename):
'''
从文件中把rjid读入到列表
:param rjidList: 用于存放rjid的列表
:par... | [
"mudssky@gmail.com"
] | mudssky@gmail.com |
c473c01b649bfa2899057b5a357af368ea8d7926 | dce30a6b816597e155a28c7e03eef6e24d139869 | /cinder/tests/unit/volume/drivers/dell_emc/unity/test_driver.py | 0f7cb261d77c84c4a29b1b1c28b679d96756c2ad | [
"Apache-2.0"
] | permissive | tadashimishima/cinder | b3f1c60c39b10051c71ef95ad67d52b1b363eb25 | 095418d74efa93ff7ad2874925225070307b774c | refs/heads/master | 2021-01-12T03:59:22.527454 | 2017-01-22T14:08:32 | 2017-01-22T14:08:32 | 77,450,437 | 0 | 0 | null | 2016-12-27T11:26:44 | 2016-12-27T11:26:43 | null | UTF-8 | Python | false | false | 7,349 | py | # Copyright (c) 2016 Dell Inc. or its subsidiaries.
# 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 requi... | [
"tina.tang@emc.com"
] | tina.tang@emc.com |
521cb224ad52191adba63ca94eb5e30e50dc3e50 | a31a964c326dab78d36efc0c1d649b74c8566b3c | /hotshelper/hotshelper/asgi.py | addcb852a5d59ef0929ba33ae18cb967f9a1a99f | [] | no_license | soft1q/hots-picker | ad4dbe0ed99fb534deb9580687d71955a6e6309c | bda09b0d9f7b520baf89d62660e4cb43dcef119b | refs/heads/master | 2022-04-09T09:56:39.018961 | 2020-01-13T03:50:46 | 2020-01-13T03:50:46 | 209,843,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for hotshelper project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"levashov.as@phystech.edu"
] | levashov.as@phystech.edu |
58205aed50d630a346507a27cda6b8736cc96800 | 5ddea065e9d4ef251be6376eaf9ba67810dfd08a | /rfSchema.py | dc53e848bad992c111e86dfe021b00785c4763b9 | [
"BSD-3-Clause"
] | permissive | nimo1491/Redfish-Interop-Validator | cd106ce4d860a622f68848cfb4f6433a99cd9bbe | 05f58c0fbebcb5c5835c00b50ed1f66189a4870c | refs/heads/master | 2020-05-16T10:16:39.311443 | 2019-04-24T07:23:01 | 2019-04-24T07:23:12 | 182,977,992 | 0 | 0 | null | 2019-04-23T09:11:39 | 2019-04-23T09:11:39 | null | UTF-8 | Python | false | false | 39,574 | py | # Copyright Notice:
# Copyright 2016-2018 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interop-Validator/blob/master/LICENSE.md
from collections import namedtuple
from bs4 import BeautifulSoup
from functools import lru_cache
from collections import... | [
"tomas.g.2012@gmail.com"
] | tomas.g.2012@gmail.com |
1c660f7eb6cd6c21de54f71f2cd0080e032decb8 | 9eaba2f81bb99bc07eaa26a3c2236ff8ebf95454 | /main.py | c86a56a2c575f60d933ce544490c0cdccd0e08be | [] | no_license | appleseeds-bootcamp/be-software-design | d2547af1987913b447c93bb7542be7f7de098a27 | d86c7e79a4657995b29a7bc62f04f90f06fcdbc3 | refs/heads/master | 2022-06-22T04:14:02.014168 | 2019-07-27T12:06:53 | 2019-07-27T12:06:53 | 198,824,595 | 0 | 1 | null | 2022-06-03T22:45:50 | 2019-07-25T12:10:27 | Python | UTF-8 | Python | false | false | 112 | py | from api.animals_api import AnimalsAPI
import api.animals_api as api
if __name__ == "__main__":
api.run()
| [
"matan.bakshi@gmail.com"
] | matan.bakshi@gmail.com |
dcaf9d597bc70825c0dfb9cd82262feee85ab9a6 | 5674634fc64afeea0e8adf2b66c703007a56e8c7 | /usd/19.11/rezbuild.py | 1f2628a857aebd2dcba7844d24940428d705ae5e | [
"MIT"
] | permissive | Colorbleed/rez-packages | 07d4cab161ebc8d0af508edc8167b299fe03a279 | c8e8012e5327dc97573de65207eaa76fd1cf179f | refs/heads/master | 2022-10-12T20:42:19.126606 | 2019-11-28T19:54:18 | 2019-11-28T19:54:18 | 221,001,744 | 31 | 7 | MIT | 2022-09-30T02:12:40 | 2019-11-11T14:40:53 | Python | UTF-8 | Python | false | false | 3,890 | py | """Rezbuild for USD on Windows
Note: Currently 3rd Party dependencies are not Rezified
but included in the package. This makes it bigger
than it *has* to be and additionally makes building
the package a lot heavier since it'll download all
dependencies and build all of them using USD's own
... | [
"roy_nieterau@hotmail.com"
] | roy_nieterau@hotmail.com |
0567d7ec35c92e92a988d2f434a8923a1e27e9d8 | 293e385b9f91e384d420ca610e4f86ed2979b08c | /food.py | 61d094683c13500c50eb0c22951c27f57487ba38 | [] | no_license | umarshabir/Snake-Game | 006f47a5bf9e3977816c21bb2cc51769f6e57aea | 62075f6e3bf26ea628d0784c0246779bdd2f5668 | refs/heads/main | 2023-03-17T21:57:11.131173 | 2021-03-10T16:18:16 | 2021-03-10T16:18:16 | 346,408,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from turtle import Turtle
import random
class Food(Turtle):
def __init__(self):
super().__init__()
self.shape("circle")
self.penup()
self.shapesize(stretch_len=0.5, stretch_wid= 0.5)
self.color("blue")
self.speed("fastest")
self.refresh()
... | [
"noreply@github.com"
] | noreply@github.com |
86dc1a57e11f317970f25281ad83897e0b82f304 | 1506cd8a8730968af43459ee4f1b9f5ae11cdb20 | /Django/drf/project/app/Serializers.py | 3aa9b3b2c2a37f73033fd2e628f054bf93d55adf | [] | no_license | mikaelgba/Python_Web_Repository | 7d3c0c8e882a0d5db307abecf5fb6ae8543a5bbf | 3a119c590d2008318c554facceeefde48181c5fc | refs/heads/master | 2023-04-08T14:21:22.133444 | 2021-04-26T16:44:28 | 2021-04-26T16:44:28 | 289,719,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from rest_framework import serializers
from .models import HQ
class HQSerializer(serializers.ModelSerializer):
class Meta:
model = HQ
#fields = ['id','name_hq','author','publishing_company']
fields = '__all__' | [
"mikaelgba@gmail.com"
] | mikaelgba@gmail.com |
c15068f05affb8b3175b6991c4a3e32293852d72 | 9fd90bd2b2016465dadddc731c13c512274327c4 | /solver.py | 021c721b7e6eea29b27986ba507292509ab484a5 | [] | no_license | velojason/maze-solver | 751a7da19cf306279aabdb653e4500eb10205e4d | 8fb8f34a803fe7dbc8403bb0dd85442f7d6c6d5b | refs/heads/master | 2021-09-03T04:59:28.362725 | 2018-01-05T19:53:48 | 2018-01-05T19:53:48 | 112,406,241 | 0 | 0 | null | 2018-01-05T19:53:48 | 2017-11-29T00:39:45 | Python | UTF-8 | Python | false | false | 2,714 | py | def pathfinder(maze, destination):
prev = []
queue = []
path = []
for x, line in enumerate(maze):
for y, value in enumerate(line):
if value != 'O':
distance = float('+inf')
previous = None
prev.append({'c': (x, y), 'p': previous})
... | [
"noreply@github.com"
] | noreply@github.com |
384bec76d831b6c1a9203a2c705f025e1dd26c5f | 8259a1fc7e4cfd1a819fd949ae22462217af03c3 | /VitaminC/examples/jtdemo_sun_earth.py | 300021c7b0602dd835405a57d4939023d74211bd | [] | no_license | yugol/inwonderland | 757fd56906427e9451bde52043bd5198e86d2678 | 0544494c506b53a26c6272108aa1df593e5d0dfb | refs/heads/master | 2021-01-17T04:44:38.345350 | 2016-04-30T21:17:32 | 2016-04-30T21:17:32 | 33,028,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | #!/usr/bin/python
""" turtle-example-suite:
tdemo_planet.py
Gravitational system simulation using the
approximation method from Feynman-lectures,
p.9-8, using turtlegraphics
Example: heavy central body, light planet,
Note the (small) movement of the sun!
Demostrates two features of th... | [
"iulian.goriac@dc13d4f6-1963-11df-85bb-b9a83fee2cb1"
] | iulian.goriac@dc13d4f6-1963-11df-85bb-b9a83fee2cb1 |
fe015c8400e19c12263aed77b5f68f983b32df37 | 3467c4d2ff1074327faf819bbc6d0dfc649d6316 | /ZoomEye.py | ffb32326a45fb6938d1ae6bf798be7391a214b2c | [] | no_license | hiddes/ZoomEye | 172b426f767ea4db11af28825d6699e3abec6bdc | 3fda3a8fe3521a7713f56e15918a3e81d4daad4a | refs/heads/master | 2021-01-20T18:15:49.457971 | 2016-08-02T15:39:09 | 2016-08-02T15:39:09 | 64,589,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | # coding: utf8
# Author: hidden
# Create: 2016.08.01
# import os
from GetResults import HostRequest, WebRequest
from Config import LOGIN_DATA, USERNAME, PASSWORD, HEADERS, AUTO_FILED
from Login import login
GET_TYPE = {'host': HostRequest, 'web': WebRequest}
class ZoomEye(object):
def __init__(self, is_login=Fal... | [
"hiddes@126.com"
] | hiddes@126.com |
10ad52de6c43973344d9b49643fff17b973755ed | 52bb9e1745d3825dfd24f28f63b3d3da333646f9 | /blog/api/permissions.py | 903cc0f49238a2cc138dfbefd2d004372f3eab0a | [] | no_license | himanshuchanchad/blog-project | e3bb4900c22e3ceed0fd2c2c653c54350ddcc948 | ed2dea85b6acb9be3db096e00bcae93371e4629c | refs/heads/master | 2020-04-26T12:30:36.849218 | 2019-04-14T16:15:13 | 2019-04-14T16:15:13 | 173,552,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from rest_framework.permissions import BasePermission
class isowner(BasePermission):
message='You are not the owner of these post'
my_safe_method=['PUT']
def has_permission(self, request, view):
if request.method in self.my_safe_method:
return True
return False
def has_obje... | [
"himanshuchanchad@gmail.com"
] | himanshuchanchad@gmail.com |
fc38a91aee0d0eecf16e77775e854770ccbd2cf0 | c51c544b4bfadb976cbde73bb8e1c8ac70618327 | /ex3/03.py | 903ec04f572683744ee0e2fefac8ad42d2188f7e | [] | no_license | TaRhyN-2007/GeekBrains | 83a26081432a1a2eceeae2bf9d39751112a46689 | efc5327d1e921e2088f65af5be354458b22c8e82 | refs/heads/main | 2023-01-03T20:58:37.041690 | 2020-10-28T13:37:31 | 2020-10-28T13:37:31 | 301,714,907 | 0 | 1 | null | 2020-10-28T13:37:32 | 2020-10-06T12:13:18 | Python | UTF-8 | Python | false | false | 129 | py | def sum_max (a, b ,c):
minimal = min(a, b, c)
sum_all = a + b + c
return sum_all - minimal
print(sum_max(1, 2, 3))
| [
"TaRhyN-2007@users.noreply.github.com"
] | TaRhyN-2007@users.noreply.github.com |
31d79fbba7fb82f7ef11c5b5c3dcdd9a76d77cab | 6a7602fbcaeb69f9b3abfc75264db46140d82691 | /Labs/Lab6/task4/task.py | 222120326ade6519c40d0245bbfc9e1f14c4275b | [] | no_license | hasanahmvd/CS1026B | 9cbd3f9c4f7db65609822559450aedf94a7c97c5 | 3a1b37909b2974ca3f26d9ff313b6a60a1058071 | refs/heads/master | 2020-03-23T21:17:15.261865 | 2018-12-11T19:46:47 | 2018-12-11T19:46:47 | 142,095,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # Replace the placeholders and complete the Python program.
def zFirst(words):
# We will need two lists
zresult =[]
result =[]
for word in words:
if word.lower()[0] == 'z':
# If it does, add it to the first list
zresult.append(word)
else:
# Does not b... | [
"hasanahmed@invitetech.com"
] | hasanahmed@invitetech.com |
563dca472050bd627e9622bcac889b9a2918ab28 | c4036dd56a495d9bbdf33d7e24501048bb9fe673 | /flasRestful.py | 794d57e03268412c5a8227fee9692c07eda7e151 | [
"MIT"
] | permissive | rowrodney/Automation | b125246559249aa4a8d9a91183c66207ec7fefc1 | b6aa8bc802fa369a974868764c941c80f9edd2d2 | refs/heads/master | 2023-08-11T04:48:47.385625 | 2021-10-06T08:26:39 | 2021-10-06T08:26:39 | 272,594,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
class Student(Resource):
def get(self, name):
return {'student': name}
api.add_resource(Student, '/student/<string:name>') # http://127.0.0.1:5000/student/Rolf
app.run(port=5000) | [
"rowrodney@gmail.com"
] | rowrodney@gmail.com |
a11038f551ebd4201627884892acccc3acde2aed | 79eaee1be3db992c3ae2e9d33202bfdfdb930567 | /pypaypal/entities/trackers.py | 8e6e1401bd3616ab60f8f57f5f9d9b33adcf05c2 | [
"Apache-2.0"
] | permissive | ivcuello/pypaypal | 23d9b879820a60b29bd60598047b91b7b37d135d | 957cbd4e8d2127b0fc639825ce3a3924acd3216d | refs/heads/master | 2023-03-30T10:13:14.329087 | 2021-04-03T21:49:59 | 2021-04-03T21:49:59 | 205,468,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | """
Module with all tracking related entities
"""
from typing import Type
from datetime import datetime
import dateutil.parser
from pypaypal.entities.base import T, PayPalEntity, ResponseType, ActionLink
class Tracker(PayPalEntity):
"""
Object representation of a paypal tracker
"""
def __ini... | [
"ivcuello@gmail.com"
] | ivcuello@gmail.com |
5e58125ab93ffe8cb48942528452a4bac3b4f7c5 | 3a544f7ba71a0da5a4903553e26435a4e3a16cb3 | /mentorPage/admin.py | 01c340c62add9e4a8468b4b1369a09be2a7e5e3a | [] | no_license | jaya-shankar/Mentor-Platform | 380eb6f09f0acd2e51c2dbf177cfb1f7dcdcd7bb | 21df36290336e0c5607b863c02adbe7f5625576a | refs/heads/master | 2023-02-14T17:02:59.145980 | 2021-01-16T07:45:44 | 2021-01-16T07:45:44 | 269,875,860 | 3 | 0 | null | 2020-07-09T14:11:41 | 2020-06-06T05:12:11 | JavaScript | UTF-8 | Python | false | false | 152 | py | from django.contrib import admin
from .models import Course,Chats
# Register your models here.
admin.site.register(Course)
admin.site.register(Chats) | [
"bjayashankar2102@gmail.com"
] | bjayashankar2102@gmail.com |
b62cc73e9ad0db86c4a1e002a88d487c61fb5241 | 9a5ae490a0f941e97432446ea772a128eb59e460 | /lib/python/treadmill_aws/cli/admin/aws/user.py | 4be4eab7eef8e34dca308ac02e0cfa12fdf7bf51 | [
"Apache-2.0"
] | permissive | godsarmy/treadmill-aws | d6cc75dddecfa72ce5dfc687ae5f6fdb35510802 | 18d650be09d1054386066fb6993de3af6ec6a42e | refs/heads/master | 2020-03-28T23:38:00.727753 | 2018-09-14T19:43:43 | 2018-09-14T19:43:43 | 149,300,600 | 0 | 0 | Apache-2.0 | 2018-09-18T14:19:42 | 2018-09-18T14:19:42 | null | UTF-8 | Python | false | false | 3,729 | py | """Implementation of treadmill admin AWS user manager.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import io
import json
import os
import click
from treadmill import cli
from treadmill_aws import awscontext... | [
"andreikeis@users.noreply.github.com"
] | andreikeis@users.noreply.github.com |
3440ae0cb78e579db0a6945b28742609be05790a | 0d77846403606b8300a53e05cd2103d5470b6a6a | /tensorflow/python/profiler/profiler_client.py | dc542e2c726ecdbd9c79293f77ca662075532b7a | [
"Apache-2.0"
] | permissive | alubanana/tensorflow | e7cb694073773be4c46607e7af4fb8ed9c74b812 | 454f89ab3baacbac567d6bcceef4c743f23ce58b | refs/heads/master | 2021-01-04T15:44:16.441471 | 2020-02-14T22:50:45 | 2020-02-14T22:56:47 | 240,614,446 | 1 | 0 | Apache-2.0 | 2020-02-14T23:12:02 | 2020-02-14T23:12:01 | null | UTF-8 | Python | false | false | 2,762 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
62de7214cbbb58088e81b4e8ebc6c15cdc680be6 | 960ea105720ba818c4c9e26d126e059c56db78e0 | /Prac_01/loops.py | f46e3b7f9fdaac1d8b70454bbc286a666e0ae178 | [] | no_license | jc485282/CP1404-Practicals | 53ceae8805e9cb617adbacab8e291f85bc87bf15 | 28f9af2f29058d30fd50921bcae4d6d4eb891bb3 | refs/heads/master | 2020-04-09T10:43:06.816525 | 2019-01-16T16:00:35 | 2019-01-16T16:00:35 | 160,280,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | for i in range(1, 21, 2):
print(i, end='')
print()
for i in range(0, 101, 10):
print(i, end='')
print()
for i in range(20, 0, -1):
print(i, end='')
print()
| [
"noreply@github.com"
] | noreply@github.com |
b4150d116c9be477b3d501231d89ebeae46b0aa9 | e44c1ac44a3cc912fbeaa0152b9294a03fd893ea | /test/test_boolean_syntax.py | 5239ddb35aae0c52b65012e4a9d113be293c672b | [
"BSD-2-Clause"
] | permissive | umd-lhcb/pyTuplingUtils | ca03db1975f7f283caab1436ac1c5d85fad75d2a | 85f3ca90f01389f834af6de1044364843210c4c5 | refs/heads/master | 2023-03-10T00:12:40.922444 | 2023-03-03T23:31:09 | 2023-03-03T23:31:09 | 215,201,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | #!/usr/bin/env python3
#
# Authorop: Yipeng Sun
# License: BSD 2-clause
# Last Change: Thu Jun 18, 2020 at 02:47 AM +0800
import unittest
from context import pyTuplingUtils as ptu
parser = ptu.boolean.syntax.boolean_parser.parse
class ArithmeticTest(unittest.TestCase):
def test_var(self):
self.assertEq... | [
"syp@umd.edu"
] | syp@umd.edu |
9931696439c16d6f260bc2a55c2e59b9c061e79e | 03f24f60dd62865dd6402c3666952d7fbe683276 | /conans/test/functional/generators/components/propagate_specific_components_test.py | e3efebea1d28acb2d4163e0b5fe81b57f50c94e4 | [
"MIT"
] | permissive | SSE4/conan | cc4e97c700cd072a9a2741a3d38caa982fd3fbdf | 808b4635f0915e93a6d5c2794c1c73ca9b606bd1 | refs/heads/develop | 2023-01-22T15:51:31.834947 | 2020-10-26T15:03:40 | 2020-10-26T15:03:40 | 78,608,147 | 0 | 1 | MIT | 2021-06-29T07:42:01 | 2017-01-11T06:06:54 | Python | UTF-8 | Python | false | false | 5,798 | py | import textwrap
import unittest
from conans.test.utils.tools import TestClient
class PropagateSpecificComponents(unittest.TestCase):
"""
Feature: recipes can declare the components they are consuming from their requirements,
only those components should be propagated to their own consumers. If re... | [
"noreply@github.com"
] | noreply@github.com |
8090400b56a7ae121122c331067a121bc835fc6a | e7197b01550ffcab70b81a9046078a37ac4a98c7 | /sounds.py | 60a90b5e7e530745f760d594a8b3ee14cd88d84e | [] | no_license | clarissalittler/pygame-tutorials | d1b8408d131209c260632f61884697f94e5f723a | 927edbed8c56c60e869c164c92e9c3f130edb5c5 | refs/heads/master | 2021-08-23T13:09:22.026136 | 2017-12-05T01:24:57 | 2017-12-05T01:24:57 | 106,308,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import pygame
pygame.init()
size = [600, 480]
screen = pygame.display.set_mode(size)
done = False
img = pygame.image.load("thumb.png")
img = pygame.transform.scale(img,(100,100))
imgRect = img.get_rect()
imgRect.center = (300,240)
crash = pygame.mixer.Sound("crash.wav")
while not done:
for event in pygame.even... | [
"clarissa.littler@gmail.com"
] | clarissa.littler@gmail.com |
728cc126542349da484dede5471de6e2eead4a2c | 0599d87e5e8187cdd6516a0a79d5688a4687484e | /user/views.py | add944ddaff29b80748767d1b2ffc9369bcc973a | [
"MIT"
] | permissive | xiesesshifang/xsadmin | 1d72525cfca9bb429c582c6b351b6e32ad9f5c77 | 7ae457f32fbc6111ceba8555caf2e51db94984bd | refs/heads/master | 2021-01-19T20:33:32.455169 | 2017-04-12T07:06:05 | 2017-04-12T07:06:05 | 88,518,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,755 | py | from django.shortcuts import render, render_to_response
from django.views.generic import *
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth import logout as auth_logout,update_session_auth_hash
from django.shortcuts import redirect,get_object_or_404
from django.contrib.sites.shortcuts ... | [
"840652591@qq.com"
] | 840652591@qq.com |
fde06b2ff44e982bb2583bb88563f02a0ba24b88 | 7cd9b9f41fdbf52de6e4393c43e3ff4e7466b417 | /pokemon/urls.py | 68b22f96b1bbe9442e8b4515f49e8579b6d1466c | [] | no_license | BaeJuneHyuck/demo-pusan-univ-201907-django | 36f5be596c6850acc211358276c66df127e05633 | 4ef9e64a42a977e0b435fb2f83842433fac53bf3 | refs/heads/master | 2022-01-22T21:35:57.419007 | 2019-07-23T06:51:14 | 2019-07-23T06:51:14 | 198,371,100 | 1 | 0 | null | 2019-07-23T06:56:52 | 2019-07-23T06:56:51 | null | UTF-8 | Python | false | false | 242 | py | from django.urls import path
from pokemon.views import index, pokemon_new, pokemon_edit
urlpatterns = [
path('', index),
path('new/', pokemon_new),
path('<int:pk>/', pokemon_edit),
# re_path(r'(?P<pk>\d+)', pokemon_edit),
]
| [
"me@askcompany.kr"
] | me@askcompany.kr |
4b9fcd38b679c47c7499b1fee6ff55de98530901 | a8a3f1c5d71bb61d374afb56736244aa8ebfbf98 | /calibration/gamma_time_lineup/calc_calib.py | 391fff66d0782e264284362fa212211813f18356 | [] | no_license | Loopdiloop/master_thesis | 203939e2b6dea67744a2b9df92f9659d6604ced4 | f9c85f7f660d3b286715e6c309349be18df40ae9 | refs/heads/master | 2023-05-03T09:43:55.938040 | 2021-05-27T17:49:32 | 2021-05-27T17:49:32 | 244,980,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """ Script for calulating shifts of time alignment, assuming gain is of no signgificant relevance to the area we're interested in.
"""
import numpy as np
i, peaks = np.loadtxt('time_alignment_peaks.txt', unpack=True)#, delimiter=" ",
#peaks = loaded_peaks[:,1]
actual = 200.
#gain = (actual_6k - actual_2k)/(peak... | [
"mamoll@uio.no"
] | mamoll@uio.no |
1f784c31254304cbeea8bb578c7e922eca5de503 | f4839aba3494fec3418b091fa339c911fe96930f | /Coursera mini project_blackjack.py | fdc07bb87af3e4a2a5025676ef359da6e2df5e09 | [] | no_license | luw517/mini-projects-python | dc433bf6f45f88f8025bb344afa9a38f2d9c7426 | 12e2adc17fb67f7c499b9eaac6f1825b839121b2 | refs/heads/master | 2021-08-31T06:29:02.323477 | 2017-12-20T14:58:32 | 2017-12-20T14:58:32 | 114,899,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,801 | py | # Mini-project #6 - Blackjack
import simplegui
import random
# load card sprite - 936x384 - source: jfitz.com
CARD_SIZE = (72, 96)
CARD_CENTER = (36, 48)
card_images = simplegui.load_image("http://storage.googleapis.com/codeskulptor-assets/cards_jfitz.png")
CARD_BACK_SIZE = (72, 96)
CARD_BACK_CENTER = (36, 48)
card_... | [
"noreply@github.com"
] | noreply@github.com |
8fecbe9a03541eeeb5fea0cf789c606f04665485 | ea64dc73abc2e866e0d8607c13f9adac686352e5 | /Project/day9/it/it/items.py | 1d402287d0bb92ca934596a71060b8f45572b4d0 | [] | no_license | cz495969281/2019_- | 9d8ddfb94558f9105a46b18d3a07244ff8636f3c | f8ec0bec399253e481e16443ba9a3e45e61486f4 | refs/heads/master | 2020-04-16T10:18:33.431154 | 2019-01-13T12:34:54 | 2019-01-13T12:34:54 | 165,499,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ItItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class TencentItem(scrapy.Item):
n... | [
"495969281@qq.com"
] | 495969281@qq.com |
338d1428bc7508a2da49be3bd292cdb85916ced9 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Google/Drive/Files/Update.py | 5ed78c1781be712f6acaa6a31eb70220ec8e1590 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,745 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Update
# Updates the metadata or content of an existing file.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreo... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
79a04a38f256ee75b15d70dbfb980288bf2f544b | a5159b84dd6ca1ea5e4b93e10195fcde49f4b09e | /docs/conf.py | f8db12349092346d3aab33c43b31ceddd681f8a5 | [] | no_license | TimeExceed/tianyi | 1d49a8a86a5b0ee8c9649484fd91647e75c17c12 | bfe9b3539decf21fc8f22c7622debd9f3e74612f | refs/heads/master | 2023-06-25T08:02:34.583009 | 2021-07-17T08:32:57 | 2021-07-31T04:04:44 | 373,176,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | project = "陶大's Personal Library"
copyright = '2020, 陶大'
author = '陶大'
extensions = [
'sphinx.ext.todo',
]
templates_path = ['_templates']
language = 'en'
exclude_patterns = []
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
todo_include_todos = True
| [
"tyf00@aliyun.com"
] | tyf00@aliyun.com |
51bb03878ba261243ca29fa5fbcd21c3d280cd06 | fecdcf39fec8d3c61d382c1ed71763c30ad410f4 | /网络编程大作业 设备管理/final_show/control_app/default/migrations/0008_auto_20161223_1444.py | be7b691ce509e6834e207c0a1bb7d47e0cca597a | [] | no_license | guohantao/web_control_app | f0afcc22f21614442abdc5756f3213445ec0ff50 | badc8e31c9c563f7a2f4407a21cf2b2f4c63c2b2 | refs/heads/master | 2021-01-12T08:04:22.351814 | 2017-01-22T04:48:56 | 2017-01-22T04:48:56 | 77,115,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-23 06:44
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('default', '0007_auto_20161223_1322'),
]
operations = [
migrations.RenameField(
... | [
"345743142@qq.com"
] | 345743142@qq.com |
715cf98dba667b2bfec6230af954d8a27ad01105 | c06774afd4d9eb5072cfb03e30077307eaf5f1e2 | /Chapter 14 - Exercise 14.5.py | 192cac7494fe72c555a0ffba3e3e9f5314c995d3 | [
"MIT"
] | permissive | DeveloperTinoco/SDEV-220 | 5879d11c414f3aa366f365f709cccfac2c4f1b9d | ef1d169bc39fbee6e8f57643b2cdfd7654b46d63 | refs/heads/main | 2023-03-29T07:33:48.443128 | 2021-03-26T04:57:34 | 2021-03-26T04:57:34 | 350,524,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | # THIS PROGRAM WAS SUPPOSED TO EMBED THE GRAPH INTO THE TKINTER WINDOW BUT I DID NOT DO THAT PORTION OF THE ASSIGNMENT SO FEEL FREE TO ATTEMPT IT YOURSELF
from tkinter import *
from tkinter.ttk import *
from tkinter.filedialog import askopenfile
import matplotlib.pyplot as plt
# Creates the global empty dictio... | [
"noreply@github.com"
] | noreply@github.com |
d22f1d29c71d26afd2458a666800317fbbbe8db4 | 91e9d429f8e34fd48d5e34a898b32bc090660fe1 | /core/migrations/0008_article_featured_mob_img.py | ab29fbd735ece0954ef2f0c6a20182b6c8281707 | [] | no_license | sherrywilly/blog-graphene | b286d4ba9a5a3499aefc684399630bcbd348ba8f | b05430896dff6b8944b2e6f5f30b6cfd875dc820 | refs/heads/main | 2023-07-14T22:20:29.973765 | 2021-08-07T06:35:32 | 2021-08-07T06:35:32 | 392,514,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.2.6 on 2021-08-03 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20210803_0850'),
]
operations = [
migrations.AddField(
model_name='article',
name='featured_mob_im... | [
"sherrywilson521@gmail.com"
] | sherrywilson521@gmail.com |
1c70fcd7a85374cb3c865d51381650aa5511be8d | b35b449a9892d4d7f8c74f5239342275a387e255 | /src/posts/api/serializers.py | 960d94239ea9604d8daf4ca205b7cf6087f08cfc | [
"MIT"
] | permissive | arshpreetsingh3/Blog-Api | accb54d8fcf6469eea769892dfa01b01d8ddd217 | 4f6c1f404050b8acaaa97c8f599de38c0554af08 | refs/heads/master | 2023-01-06T19:14:35.274924 | 2019-06-11T20:56:53 | 2019-06-11T20:56:53 | 191,447,388 | 0 | 0 | MIT | 2022-12-26T20:15:49 | 2019-06-11T20:51:06 | Tcl | UTF-8 | Python | false | false | 1,608 | py | from rest_framework.serializers import ModelSerializer,HyperlinkedIdentityField,SerializerMethodField
from posts.models import Post
from comments.api.serializers import CommentSerializer
from comments.models import Comment
from accounts.api.serializers import UserDetailSerializer
class PostCreateUpdateSerializer(ModelS... | [
"sarshpreet07@gmail.com"
] | sarshpreet07@gmail.com |
af3a982bb1e38db919790e04e56f80327509c4af | f3a55a42086d2bae3fdffa892318bf0f518b3549 | /tests/test_gp_interp.py | 265798b58161fcdcccd8cd4077f4898b5a13ac82 | [
"BSD-2-Clause"
] | permissive | LBJ-Wade/Piff_PSF | 0aa5d904dd416a81292b4d929ee29f19173b18f6 | 475939e250eaec12781596af90963daa3de7dbdb | refs/heads/main | 2023-04-03T08:47:15.933418 | 2020-12-10T15:18:45 | 2020-12-10T15:18:45 | 352,978,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,624 | py | # Copyright (c) 2016 by Mike Jarvis and the other collaborators on GitHub at
# https://github.com/rmjarvis/Piff All rights reserved.
#
# Piff is free software: Redistribution and use in source and binary forms
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redist... | [
"michael@jarvis.net"
] | michael@jarvis.net |
64dd11875a6a2305f48f90f7a62ebcc7c4376775 | d5ae8e46de51b10e2a3e9b6503e20b64c0cc2117 | /estimateBuildingLevelCensus.py | 86302547d2687414acd248825d0f298c4b3783c9 | [
"MIT"
] | permissive | PeterJWei/CitywideFootprinting | 29f2758c60505e73cc3c9fedf4aeda3dc35e3cd7 | 98064e6119ceab26079c0b11629f3d428f4e745f | refs/heads/master | 2020-03-31T03:54:53.797573 | 2019-06-24T00:01:50 | 2019-06-24T00:01:50 | 151,883,870 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,372 | py | import csv
import web
import json
import datetime
import sys
import pickle
import math
from sklearn import linear_model
class estimateCensus:
def __init__(self):
self.boroughCode = {"MN":1,
"BX":2,
"BK":3,
"QN":4,
"SI":5}
self.censusPop = {}
self.censusBuildings = {}
self.censusRes... | [
"pw2428@columbia.edu"
] | pw2428@columbia.edu |
6c3771f8323a1c7d82457193cecb2c26fdf72161 | e62e5ff165894671375508c6336d28b0c8ee2a5a | /website_xupeng/wsgi.py | d1cabbc195c3791e7ddae59fc0b8441d99454f28 | [
"Apache-2.0"
] | permissive | xp2017/website_xupeng | fa4fd10484451580da5118924a337b91bca9a015 | 3a95a933021c1aa9bbb2475e0b7ddc97c6e866dd | refs/heads/master | 2020-04-24T15:48:24.933019 | 2019-02-28T11:22:26 | 2019-02-28T11:22:26 | 172,082,939 | 0 | 0 | null | 2019-02-28T10:43:28 | 2019-02-22T14:47:26 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for website_xupeng project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"1741627614@qq.com"
] | 1741627614@qq.com |
0fb0f85f3464682eaa2704fe97fe870f721bc42d | 517bab1ede118e05ef01e899eda258d3404d4153 | /tensorpipe/funnels/funnels.py | 53ed3c6f74733149ef33a4a50c2522d9cd06e4a7 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ravich3373/TensorPipe | d66f3cf0f7478ef27ecc5accb89137bce5913b05 | 9bf893016a735c68afb7be8a9fa420cfb6781cd5 | refs/heads/main | 2023-02-14T02:21:12.291306 | 2020-12-28T18:54:35 | 2020-12-28T18:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,630 | py | """
Copyright 2020 Kartik Sharma
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 ... | [
"kartik4949@gmail.com"
] | kartik4949@gmail.com |
9ee315ac2024200c41be7cea91239935e6e6102c | 0b48b079330fa68b31d4bae203b884f86528fdfc | /2015/round_1/1.Homework/solutions/sources/1737.Vladimir | 794cf070d40226dcb3ce6c5192f00e89778ebeb3 | [] | no_license | kwx4github/facebook-hackercup-problem-sets | 1254455aad782ff30cc0b1640eafbcdc5e8b4242 | 85b5775179a4c718db092c3ce66f343d02a91627 | refs/heads/master | 2021-01-20T21:49:12.676642 | 2015-03-14T14:18:02 | 2015-03-14T14:18:02 | 30,278,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | vladimir | #! /usr/bin/python
# By Vladimir Svoboda
import sys
from argparse import ArgumentParser, FileType
import numpy as np
from math import sqrt
from collections import defaultdict
class ProblemInstance(object):
def __init__(self, a, b, k):
self.a = a
self.b = b
self.k = k
def parseInput(inF... | [
"kwokwah+tavernlabs@gmail.com"
] | kwokwah+tavernlabs@gmail.com |
f5bd5d0daea26ef86acd064dbec79ff7205d9815 | 10b5a703c0166b55331513d2a9aead687032e804 | /leetcode1578.py | 7f4f21ed382eed47d291365b4de17dc2a0e596ab | [] | no_license | jack456054/leetcode | f2d623d5683098b2038322ee3eef81dc020f6fb1 | 24f0075909f8620513f6f21c9ad3dc299dee8967 | refs/heads/master | 2022-11-12T18:01:52.832206 | 2022-11-10T07:24:39 | 2022-11-10T07:24:39 | 125,793,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | class Solution:
# def minCost(self, colors: str, neededTime: List[int]) -> int:
# if len(colors) == 1:
# return 0
# current_color: str = None
# time_list: List[int] = []
# results: int = 0
# for index, color in enumerate(colors):
# if current_color == ... | [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
76e8996aac197a0b3885f921f41c55b81c48ac99 | 98535cd388dee9c71e95f3a80f835c6de7a9856f | /colector/migrations/0005_auto_20200409_1656.py | e987ef0576380caedcdd973d7b6f0a319d7d0476 | [] | no_license | GLEng81/wash | ab2478b838cad67c1f2d2f7b68990e0d8817b547 | 98af5fecd9f373affc2e2a365a7854badc83ec05 | refs/heads/master | 2023-05-17T09:59:02.512975 | 2020-07-30T16:23:39 | 2020-07-30T16:23:39 | 281,201,000 | 0 | 0 | null | 2021-06-10T23:14:36 | 2020-07-20T18:53:51 | Python | UTF-8 | Python | false | false | 1,447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-04-09 13:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('colector', '0004_onlinestations'),
]
operations = [
... | [
"lambrev@gmail.com"
] | lambrev@gmail.com |
8b3e2b4e20bf0830570a8bc31f38212ee90a25b8 | 9ca2f63f855906695b4b587f137257a7793a75bb | /Analysis/Analysis/Ostap/python/Ostap/Kine.py | 4c27cf4f22a4d125edd05edc9a997a5ea7882e9d | [] | no_license | kidaak/lhcbsoft | a59ffb6c884e5b6e2d28740551d3c49f8338ec3d | b22a1dfea5d4d572e318d1e5d05dfb7484da5f3d | refs/heads/master | 2021-01-22T16:53:18.266147 | 2015-12-10T14:40:48 | 2015-12-10T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,033 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# $Id$
# =============================================================================
## @file
# Few very simple math-functions related to kinematics
#
# @author Vanya BELYAEV Ivan.Belyaev@... | [
"ibelyaev@4525493e-7705-40b1-a816-d608a930855b"
] | ibelyaev@4525493e-7705-40b1-a816-d608a930855b |
b9da0f76d032c3df7d4bde0f771c584dbd887e18 | 930496f2768e92d6abef874ad7da4c6b6960701c | /MobilePredictor.py | b871fdf7019cba31803f4b5cf008e9f06e314e38 | [
"Apache-2.0"
] | permissive | kirill-pinigin/DeepImagePrediction | db1d97916fdbaaaac25f885e9aec79af19e30364 | 7422949aa313662e5cbbbf6cacc35e887f3ec2db | refs/heads/master | 2021-06-24T03:23:34.808154 | 2019-08-05T10:50:19 | 2019-08-05T10:50:19 | 148,470,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | import torch
import torch.nn as nn
from NeuralModels import SILU, Perceptron
from DeepImagePrediction import IMAGE_SIZE, DIMENSION, CHANNELS
import math
def conv_bn(inp, oup, stride , activation = nn.ReLU()):
return nn.Sequential(
nn.Conv2d(inp, oup, 3, stride, 1, bias=False),
nn.BatchNorm2d(oup),... | [
"kir-pinigin@yandex.ru"
] | kir-pinigin@yandex.ru |
b6eb043e86f25e60011a4bc8247fd506b33abb49 | a5935287892864e5470be2af4054c7e920a4c2c1 | /easy_mailer/__init__.py | 3bee4ef04ff1e0164c1b359a305f429120aab5c6 | [
"MIT"
] | permissive | JnaneshPrabhu/easy-mailer | 28a5d2cc4e476b29e18c127b42905921acf473c3 | c844e16c51e95ce9fa052581fdeba98f0307f682 | refs/heads/main | 2023-04-22T09:14:24.083273 | 2021-05-01T18:12:28 | 2021-05-01T18:12:28 | 363,426,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from easy_mailer.send_mail import send_mail
| [
"noreply@github.com"
] | noreply@github.com |
74ead09a826437c8c0e06b7c403ff1c187d1f047 | 41e738d67a91fa69eead619768081893adb2e6b5 | /openshift/installer/vendored/openshift-ansible-git-2016-04-18/roles/lib_yaml_editor/build/src/yedit.py | 642733914acc12991f495892d18103c4d2b9402c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gburges/openshift-tools | e48e5bcedce8ae3dcce1d601c084f4a04cfaf280 | 7361729aeeeb6229dac77541427075c879731ebb | refs/heads/prod | 2020-04-16T19:56:34.413193 | 2019-04-10T05:24:36 | 2019-04-10T05:24:36 | 145,583,227 | 0 | 0 | Apache-2.0 | 2018-08-21T15:26:21 | 2018-08-21T15:26:17 | null | UTF-8 | Python | false | false | 6,339 | py | # pylint: skip-file
class YeditException(Exception):
''' Exception class for Yedit '''
pass
class Yedit(object):
''' Class to modify yaml files '''
re_valid_key = r"(((\[-?\d+\])|([a-zA-Z-./]+)).?)+$"
re_key = r"(?:\[(-?\d+)\])|([a-zA-Z-./]+)"
def __init__(self, filename=None, content=None, c... | [
"twiest@redhat.com"
] | twiest@redhat.com |
37681d07a37def5dccdd450b9a0a044d1669059e | 9612f4e99cb8c35b8d3a585e2e6a00b97c2bde82 | /scripts/advanced-preprocessor.py | 2a604937d72aba00a9943b1a373d9debe2988cb6 | [] | no_license | handk85/dbrd-hands-on | 5d152edbe7483b4b9d9dc7bc2209aaa9cf65d2bc | 9631117654352f0387fee637cddaa95f94d3b1e0 | refs/heads/master | 2023-08-23T10:40:02.327115 | 2021-10-29T08:28:06 | 2021-10-29T08:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import configparser
import glob
import json
import logging
import sys
import re
regexps = {"bug_id": re.compile("<bug_id>(.*?)</bug_id>"),
"title": re.compile("<short_desc>(.*?)</short_desc>"),
"status": re.compile("<bug_status>(.*?)</bug_status>"),
"resolution": re.compile("<resolutio... | [
"me@donggyun.com"
] | me@donggyun.com |
97c2e262e2efb4d7e92034a42743e4ac6d711749 | c7a10224d832d7e55777a4332d2f02023dd80142 | /plot_decision_region.py | 550e894147dc39872b7166bac7725396eec4a5f8 | [] | no_license | Naresh1318/MachineLearning_Basics | cba48877e37cc80e61c47a8c477b67b5fd24c628 | 7294eaa8acd32b5d9dad4432c217ee745022470e | refs/heads/master | 2021-01-15T07:54:08.674660 | 2016-09-16T17:41:37 | 2016-09-16T17:41:37 | 68,401,472 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from matplotlib.colors import ListedColormap
import matplotlib.pyplot as plt
import numpy as np
def plot_decision_region(X, y, classifier, resolution = 0.02, test_idx = None):
markers = ['s', 'x', 'o', '^', 'v']
colors = ['red', 'blue', 'lightgreen', 'gray', 'cyan']
cmap = ListedColormap(colors[:len(np.uni... | [
"rnaresh.n@gmail.com"
] | rnaresh.n@gmail.com |
b5528fe3267e31e75996bc3fffe002a6cea4fa77 | 4de98697b5ad1ab7a7ca52ea39b1cc863ef2022f | /python/pacman_game/pacman.py | 43a332e5fd07d20c227adfa040de1f0adbb3c9e5 | [] | no_license | yask123/other-codes | bfb60b5fdca58df8dd46ce6dc6cf5782882bfd2a | adc73c7e3969d103b1154d2ec29a19348bca17ae | refs/heads/master | 2021-01-21T00:56:47.253189 | 2014-11-30T14:50:47 | 2014-11-30T14:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | from random import randint
import os
#FUNCTION USED FROM : https://gist.github.com/jasonrdsouza/1901709
def getchar():
if os.name == 'nt':
ch = raw_input('Enter your turn (w,a,s,d) : ')
else:
import tty, termios, sys
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.set... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
984e4c657c87f1dfc25095e87790522d62a8ffce | 2b40c1a9aaf8c5a131fe9000076a1426e81ccbbb | /change_into_NZtime.py | eac18daa1b856dbd26b46b67618eea019c18e3c4 | [] | no_license | neopj/Virtual-Power-Plant-Project | fc78fad7dc81e00fdb4987accd4f81e79446371f | 894c85a2714300c563fd49357f715b4fe2ecf74e | refs/heads/main | 2023-06-03T21:44:28.082718 | 2021-06-21T00:20:10 | 2021-06-21T00:20:10 | 378,764,436 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | import glob
import pandas as pd
import csv
import numpy as np
from datetime import time
from datetime import datetime
from datetime import timedelta
##Path mentioned
path = 'T:\\projects\\2019\\EPEC2\\data\CSV-output\\redback\\redbackSummer.csv'
##Read csv file
redbackSummer = pd.read_csv(path)
#print(ev... | [
"noreply@github.com"
] | noreply@github.com |
5870f195d207cf53ce4ff7a9673880f916a89ea9 | 52da321d7a417e5cda34fd17d07cbb3aa15264c4 | /MyClass/models.py | 21a566dc55e4af921b1f760cc01445741fb3c0f5 | [] | no_license | devanshsharma416/classbasedviews | eaf593159da4569e6d556f8148909f1abe9e1f09 | 5f090b0d9d19b551414bd392666d28717fbc7a70 | refs/heads/main | 2023-08-11T11:08:28.119931 | 2021-09-13T04:25:50 | 2021-09-13T04:25:50 | 405,659,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.db import models
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=100)
description = models.TextField(max_length= 500)
author = models.CharField(max_length=50)
count = models.IntegerField(null=True)
def __str__(self):
return self.title | [
"devanshsharma416@example.com"
] | devanshsharma416@example.com |
1f87942cf0798f90d596f602e6524b16e1aed34a | df4b577668b830fcb41be675d691a72b952e892b | /releasenotes/source/conf.py | 9550aff663dfded18ef4e450b36cecf4ea41502c | [
"Apache-2.0"
] | permissive | 4383/tobiko | 37ef7bfb3b51918825c4c412136467fb32850494 | f8e6916db890021fa17ddbfc5e6007a25093c8cb | refs/heads/master | 2020-10-01T00:03:27.723538 | 2019-12-11T16:01:53 | 2019-12-11T16:04:14 | 227,405,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,970 | py | # Copyright 2019 Red Hat
#
# 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 ... | [
"fressi@redhat.com"
] | fressi@redhat.com |
cfbde29af5c7d47388410751eaebd45c382e38a4 | ff3f4b3117847f70fe68741288f28576fe2cc5e3 | /baekjoon/1712_손익분기점.py | 7ad98c5c1bd7ff74104ee79698dc45bd51b98083 | [] | no_license | manuck/myAlgo | 087bbe99672c40762759e9202fe371c394736fb1 | c673687d23a2d5cc06b6a6d5fb1bc0cb2e2b7bd9 | refs/heads/master | 2021-07-01T00:13:27.590848 | 2020-12-17T18:10:16 | 2020-12-17T18:10:16 | 203,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import sys
sys.stdin = open('1712_input.txt')
'''
문제
월드전자는 노트북을 제조하고 판매하는 회사이다. 노트북 판매 대수에 상관없이 매년 임대료, 재산세, 보험료, 급여 등 A만원의 고정 비용이 들며, 한 대의 노트북을 생산하는 데에는 재료비와 인건비 등 총 B만원의 가변 비용이 든다고 한다.
예를 들어 A=1,000, B=70이라고 하자. 이 경우 노트북을 한 대 생산하는 데는 총 1,070만원이 들며, 열 대 생산하는 데는 총 1,700만원이 든다.
노트북 가격이 C만원으로 책정되었다고 한다. 일반적으로 생산 대수를 늘... | [
"snc9000@naver.com"
] | snc9000@naver.com |
a53dd935915ce188e2c01b357422f6f816689102 | 044acee1c2fe0a75007acb2cdb16935b502419fe | /proxy_server.py | e89fc92f7be2f3665391227b3151cd9eccf357c3 | [] | no_license | ypark1018/IoTAMU | f34661015c035f667bbc00a0f72a82205a83824b | d9be7e2d72f5cf51110d3ab4919385f23784903f | refs/heads/master | 2022-11-17T04:41:14.394026 | 2020-07-16T13:56:10 | 2020-07-16T13:56:10 | 280,165,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,350 | py | #! /user/bin/env python
#
# Decrypt data received from the RI
#
# encryption source: https://cryptography.io/en/latest/hazmat/primitives/symmetric-encryption/
import socket, sys, parse, os, binascii, struct
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.