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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
646f2d8cf3af8d4fc0311f549ceb060c55a67205 | d5d3a321ee13db9f8bc6eec7d0a6372bc1027eb1 | /recipes/libsndfile/all/test_package/conanfile.py | 6adfe2d570be6cdb793bd5b5c7ba82f1a7e6f06c | [
"MIT"
] | permissive | datalogics/conan-center-index | 8835770e18f7f51f25a5a0443085d7fae4714891 | 9d38333b1fe1590e6ac1db929979348434ea9f3d | refs/heads/develop | 2021-12-09T14:46:12.452893 | 2021-11-15T21:09:43 | 2021-11-15T21:09:43 | 212,201,140 | 0 | 3 | MIT | 2021-05-26T15:14:48 | 2019-10-01T21:16:31 | Python | UTF-8 | Python | false | false | 464 | py | import os
from conans import ConanFile, CMake, tools
class LibsndfileTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake", "cmake_find_package"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
... | [
"noreply@github.com"
] | datalogics.noreply@github.com |
9441ecd27a8c8c344e49468fa80251036af9c061 | 94c0f3a9024c8b845444cdd714722277891a0d67 | /leave/views.py | c8f5b56371339be715e909645d949b67401b728d | [] | no_license | Ahmedmamdouh40/EmployeeManager | 05a8f73b43bef87b07b539011426502c02948338 | b89b1b6aef9215f6eef29415cc169f2d1074c2bd | refs/heads/main | 2023-02-10T14:20:48.839043 | 2021-01-05T12:54:01 | 2021-01-05T12:54:01 | 324,760,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,523 | py | from django.shortcuts import render
from django.shortcuts import get_object_or_404
from .models import LeaveMaster, EmployeeLeave
from employee.models import Employee
from .forms import LeaveMasterForm ,EmployeeLeaveForm
from django.http import HttpResponseRedirect,HttpResponse
from django.contrib import messages
from ... | [
"ahmedmamdouh2727@gmail.com"
] | ahmedmamdouh2727@gmail.com |
0b90c23e619a3ae46e07bc5db9c5a8cdcf249e3e | 4a76ac7ad1aaeec44729ab6d5b121b1cae0d910c | /Week 9/pathSum3.py | 4ff31f3c3811e17e09b8c3e224c844bfd576a84c | [] | no_license | kalmad99/CompetitiveProgramming | 2d825e839faa9e13ef43dbb45498bd3eef6723ab | 6cbb1f12f7670d0016fa2af8f2dd597d9123070d | refs/heads/main | 2023-03-25T20:18:23.389396 | 2021-03-24T21:36:52 | 2021-03-24T21:36:52 | 325,816,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
total, result, counter = {0: 1}, 0, [0]
... | [
"kalemesfin12@gmail.com"
] | kalemesfin12@gmail.com |
15c3aae3a58a05ed1db45db23627c6c8807dace2 | 62b6de5739dcb83d2504e5b73dc91240266aef78 | /bin/dnsstamp.py | 98dc0ceedb74aee161bf0ff822dbd4053a7b9b82 | [
"MIT"
] | permissive | power-dns/python-dnsstamps | e5c0f568b46a1e0be6e4da7ff408396b4c4b0718 | 79ba64ed2c3ee6c72700fdbc8a578e734bbd2a20 | refs/heads/master | 2023-02-15T20:34:46.791220 | 2021-01-15T12:53:53 | 2021-01-15T12:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,476 | py | #!/usr/bin/env python
import argparse
import sys
import dnsstamps
from dnsstamps import Option
class DnsStampCli(object):
@staticmethod
def append_common_arguments(parser):
parser.add_argument('-s', '--dnssec',
dest='dnssec',
action='store_tru... | [
"chrisss404@gmail.com"
] | chrisss404@gmail.com |
5161897e594221d7ca3d597d73684df6937d8c2e | fbfdd99757f5981e93074ac67d5acfee3d7e9bd7 | /todo_api/views/test.py | 24ad2bacfe0ba295d777dfb7ca45da05fd84e351 | [] | no_license | kuihTalam/django-blog | 745435fa1fe7436e04f71f534d9560e6a5aa21be | 33234f602d32342386ad3e49bf8b7251acc27796 | refs/heads/master | 2021-01-23T02:40:27.729972 | 2017-09-06T02:36:13 | 2017-09-06T02:36:13 | 102,441,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.http import HttpResponse
def test_view(request):
html = "<html><body>Hello, World</body></html>"
return HttpResponse(html) | [
"talamkuih@gmail.com"
] | talamkuih@gmail.com |
edc85322d46ee344788712c6051ad5c5a397f1bf | 03f9b8bdea312636afb4df3737b55cb0cc4b21ff | /AddTwoNumbers.py | 7895bccd673b9da3b411d758be1b46902a6bbfaa | [] | no_license | ellinx/LC-python | f29dd17bbe15407ba0d06ad68386efdc9a343b56 | 9190d3d178f1733aa226973757ee7e045b7bab00 | refs/heads/master | 2021-06-01T15:21:24.379811 | 2020-10-29T04:37:07 | 2020-10-29T04:37:07 | 132,704,788 | 1 | 1 | null | 2019-05-15T03:26:11 | 2018-05-09T05:13:26 | Python | UTF-8 | Python | false | false | 1,404 | py | """
You are given two non-empty linked lists representing two non-negative integers.
The digits are stored in reverse order and each of their nodes contain a single digit.
Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Ex... | [
"ellin.xll@gmail.com"
] | ellin.xll@gmail.com |
395b4e7921e996f8e8d5de75f46625b9155d3e5d | 6d8089d4c47a54bfbca4400e0d13f63b86cf95cd | /venv/bin/rst2odt_prepstyles.py | 5161dced5b7c4712e8ff9634321a35fec14fa061 | [] | no_license | DavidG33k/COVIDPreventionSystem | 7401422b2934e21572c3437c7a5f73d8e8ce4533 | f36ec36bb6c8768f30cf03b54d0ff158d1fe4378 | refs/heads/main | 2023-04-05T06:14:36.274138 | 2021-03-29T15:03:45 | 2021-03-29T15:03:45 | 324,145,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | #!/home/david/PycharmProjects/COVIDPreventionSystem/venv/bin/python
# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
s... | [
"37270113+DavidG33k@users.noreply.github.com"
] | 37270113+DavidG33k@users.noreply.github.com |
78d2bfb3e65833d48216a9150fcf6810b4b81a12 | 7266b30f4b0a73105a92a09646dfb84001798e0d | /script1.py | 516db4350a40dc0812af02846c379bd838a6614a | [] | no_license | wibnudixon/sql_python_basics | b95c32240ff1dccd211dfac590a2b289cf911c4b | d7f33f1aef4d64834d220c07bb82de9d8e5a5c5c | refs/heads/main | 2023-07-10T07:04:01.050875 | 2021-08-17T23:36:11 | 2021-08-17T23:36:11 | 397,326,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import sqlite3
def create_table():
conn=sqlite3.connect("lite.db")
cur=conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS store (item TEXT, quantity INTEGER, price REAL)")
conn.commit()
conn.close()
def insert(item,quantity,price):
conn=sqlite3.connect("lite.db")
cur=conn.cursor()
cur.ex... | [
"wibnudickson@gmail.com"
] | wibnudickson@gmail.com |
2f9d00cb8850c7a26f90385ef8cc80e0e9725eac | ba89b17864ece80b2b2602bb2c744e19c1a64a39 | /tests/scoring_engine/test_config.py | 00d498f3da9ac7316782facd71ca909e422e5a47 | [
"MIT"
] | permissive | scoringengine/scoringengine | 244064a3bf89fd2b7912171f1541087bbec88aef | b669ee9341c8dcdafaa5e75c8dcf5501977eb6e7 | refs/heads/master | 2023-08-17T07:19:32.777182 | 2023-05-02T16:15:09 | 2023-05-02T16:15:09 | 71,934,380 | 87 | 39 | MIT | 2023-09-09T06:01:12 | 2016-10-25T20:05:11 | Python | UTF-8 | Python | false | false | 591 | py | import sys
class MockConfigLoader():
def __init__(self):
self.mock_keyname = True
class TestConfig(object):
def test_config_variable(self):
if 'scoring_engine.config_loader' in sys.modules:
del sys.modules['scoring_engine.config_loader']
import scoring_engine.config_load... | [
"bmyers@mozilla.com"
] | bmyers@mozilla.com |
0ef7962acd98c3e43506b7f74b2dab2cb2f08dae | 253f04576c37354c0ef03cb1f8ce28a63f3a806a | /test.py | 60e2410e9004876c90922736c79f78c415b4714b | [] | no_license | nonthanadol/opencv | 4554f6209b6c5e8b4797806841a62cc8a30bd1e5 | 1017b373d2ae7a3ac3992c46f868e3ab091682da | refs/heads/master | 2023-07-11T16:58:41.989965 | 2021-08-16T15:07:54 | 2021-08-16T15:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print('test')
print("123") | [
"thanadol_non@hotmail.com"
] | thanadol_non@hotmail.com |
900fbf0db76c5448cde1af59a49eaad0854051d5 | c7663b9ca3ccbef97e311408b18aca7630fd3d9d | /src/python/a.py | e630a6dcb60d8f696d2a104d790ec4bfd1d11931 | [] | no_license | majkl99/programming_examples | 8b5e1857491001129d944beabaa60442f84c95a0 | cca5971eb507485b47cf7e44b28e203a276184b3 | refs/heads/master | 2020-06-01T19:42:41.824314 | 2013-07-12T17:10:02 | 2013-07-12T17:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | def f():
return 1
f()
| [
"abc@gmail.com"
] | abc@gmail.com |
4ad0adfc4b6b273371990c914b932152d1e92b5b | 47ac1752b06cec752bb7d848596edd35cf01668a | /AmazonDownload/config.py | 570c3704baf535c21467c984555598ae97c8806c | [] | no_license | zonectmac/Amazon_python | ceecdea3452590e1882fb59f32c356a4b14d980a | 2373d44ec207be93486cac3a6b24522eefbdb2ab | refs/heads/master | 2021-01-22T04:27:45.694777 | 2017-05-26T02:33:50 | 2017-05-26T02:33:50 | 92,464,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from get_config import get_downLoadPath, get_downLoadTemporaryPath, get_base_url, get_downLoadPathFinal, get_ff_profiles
TIMEOUT = 30
CONFIG = 'config.txt'
EMAIL_CONTENT = 'emailContent.txt'
MONTHLY_TRANSACTION = 'MonthlyTransaction'
MONTHLY_SUMMARY = 'MonthlySummary'
DOWNLOAD_TEMPORARY_PATH = get_downLoadTemporaryPat... | [
"zone_c@qq.com"
] | zone_c@qq.com |
84c46c8f676e758afa2be3836dc6ef67bef070ed | c67123ff7f6e535c0fba759e517d320d7819359e | /day-5/modules/mean-example/import_style.py | 3f1fbd875d26a770ee5d1e72a3b5d12174a6f531 | [
"MIT"
] | permissive | KDD-OpenSource/geox-young-academy | e2751652041aea290d83e0d7c17b0c9e450c4ed9 | ffa35f41d0032dcf7a9dfb9b2939402f83e9dcc2 | refs/heads/master | 2022-06-22T06:05:31.634759 | 2017-10-17T16:04:11 | 2017-10-17T16:04:21 | 105,241,878 | 1 | 6 | MIT | 2022-06-17T21:21:30 | 2017-09-29T07:15:39 | Jupyter Notebook | UTF-8 | Python | false | false | 192 | py | import mean # use the module
mean.hello
# use name from module
# show that, short form for
# mean.hello() is now hello()
from mean import hello
# the same as
hello = __import__("mean").hello
| [
"niccokunzmann@rambler.ru"
] | niccokunzmann@rambler.ru |
412ad642b07ca84582c7748a2e8b13e99c2f6856 | e04cecc9a2e7e6980a2eb19628209c4a801b21ad | /lib/model/Reinforcement/resnet.py | 9ed67e0fef633af260c1e51597f916d6d715e153 | [
"MIT"
] | permissive | jbr97/RLObjectDetection | 2715a7009b531f9137d8bb01312afb1cbf218326 | 1dc8559bed3647fb6c9379f6e55d0e535037a2fd | refs/heads/master | 2021-09-18T14:39:14.080270 | 2018-05-03T09:58:28 | 2018-05-03T09:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,178 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from model.roi_align.modules.roi_align import RoIAlignAvg
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import math
import torch.utils.model_zoo as mod... | [
"joishbader@gmail.com"
] | joishbader@gmail.com |
a8b91d81f59792d3e00a09a34b0fe6942174e581 | a0a8fbda5657169ad180ae7008a505caff500182 | /courses/admin.py | 8e17ab02c432207b3c3e296d96d3896576f94f59 | [] | no_license | WellingtonIdeao/educa-learning | 4e32d88c741dd7e2fbe45a4194c0ee1970697ca0 | 393c4849e59ee7533e7048d75b42aea2e3e64121 | refs/heads/main | 2023-06-26T04:29:50.741232 | 2021-07-24T18:13:28 | 2021-07-24T18:13:28 | 386,041,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from django.contrib import admin
from .models import Subject, Course, Module
# use memcache admin index site
admin.site.index_template = 'memcache_status/admin_index.html'
@admin.register(Subject)
class SubjectAdmin(admin.ModelAdmin):
list_display = ('title', 'slug')
prepopulated_fields = {'slug': ('title',)... | [
"wellington.ideao@gmail.com"
] | wellington.ideao@gmail.com |
8b34bc1e8dd03cd34cb5b8d1adc629cdc9f628c6 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyserv/pyserv-010/pycli_enc.py | 4a49b1d65c35c16af0fadd3f6430ecdc0b665737 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------
# Test client for the pyserv project. Encrypt test.
import os, sys, getopt, signal, select, socket, time, struct
import random, stat
import pyserv.pydata, pyserv.pyservsup, pyserv.pycrypt
from pyserv.pyclisup import *
# ... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
993b55cf442fc0618a8f796996a6f375fa367cb1 | 63aa87ddc8f02aba98ee05cd0a40de1870cee629 | /venv/bin/easy_install | 90f8382dd18d691b98a1f276f7002e38b12b9d7f | [] | no_license | megaMind432/Ethical | cda9b208c8a32edef980e5c18c225526c5e1160e | 9683814af89fedc079cb615993533cb6f4b4cfe2 | refs/heads/master | 2020-03-31T05:33:20.173091 | 2018-10-07T14:30:51 | 2018-10-07T14:30:51 | 151,950,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | #!/home/mehedi/PycharmProjects/Ethical/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"aamehedi15@gmail.com"
] | aamehedi15@gmail.com | |
2ef741e0137d4c3627a81eea5346801b122a223f | 81efbc0649072e5b345f693ee82d1cd03d7f659a | /Widgets/deckInput.py | 835989f203b58d02af32adfa11afd98787884f66 | [
"MIT"
] | permissive | feelool007/Lotto1224 | a753d67e5111df8751599af7cdc774ba44539a58 | fd360fad7260fd9022c8f71d6f48a79f59266b72 | refs/heads/master | 2020-05-01T00:30:24.826265 | 2019-05-20T15:18:27 | 2019-05-20T15:18:27 | 177,169,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import wx
try:
from .deck import DECK
except ImportError:
DECK = []
class DeckInput(wx.Panel):
def __init__(self, parent):
super(DeckInput, self).__init__(parent)
self.setupUi()
def getValue(self):
return self.input.GetValue().split(",")
def setupUi(self):
self.in... | [
"feelool007@gmail.com"
] | feelool007@gmail.com |
b5dd54185cc609c08d906cd8d369d03b63246693 | 74d9459a66186dba09e87b296deafa50513025a5 | /ServerBattle/fight/corehero/heroconf.py | 594c285d20c62dbcc43887a97078788cb5601659 | [] | no_license | taojin526/KingsPro | 91e2b7954bc342e292e3662bf77c6953432dde3f | 99f74d2517c34f937ae3da60aa53b37d40768929 | refs/heads/master | 2021-06-28T06:46:49.841582 | 2021-03-05T07:34:04 | 2021-03-05T07:34:04 | 66,212,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from enum import Enum
class HeroState(Enum):
"""英雄状态枚举"""
Init = 0 # 无
Fight = 1 # 出战
Watch = 2 # 待战
NorAtk = 3 # 普攻攻击
ChiefAtk = 4 # 主技能攻击
AidAtk = 5 # 援助攻击
Dead = 6 # 死亡
TRANSHERO = [
{
"trigger":
"showfight",
"source": [
... | [
"598569835@qq.com"
] | 598569835@qq.com |
8b8584c394b5ebcd4efb0afb7c8ceabaa4ef5b52 | d3edc5b77195090066d8aaf066db47dc79e01d52 | /geeklords/api/migrations/0001_initial.py | 6b5ad0881b21267d94643d20d61e2669b2392bc4 | [] | no_license | Mohammed-Abdul-Hameed-Aqib/imagine-backend-final | a313195e0086c5a9fce7ebf299ba22ccb0bf972b | 1d096472989d6cc820475279d66aed1d2dddc87d | refs/heads/main | 2023-07-16T10:12:00.751104 | 2021-08-22T10:10:30 | 2021-08-22T10:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # Generated by Django 3.2.6 on 2021-08-22 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Human',
fields=[
('id', models.BigAutoField... | [
"54206941+AbdulBaseerMohammedKhan@users.noreply.github.com"
] | 54206941+AbdulBaseerMohammedKhan@users.noreply.github.com |
6dc565c72880963a1fec4acca397539acff9509e | c2751505ba16edc33675f208b88fd19fb4e1fd51 | /twilio-api.py | 6c1e80dee76d73223f3a9ed88484366fee0dc061 | [
"BSD-3-Clause"
] | permissive | aewens/hackmidwest-2018 | 2615f0e2d52f0c905e727fc89268a2df263e96a6 | 99ba80b5bf1f13496a2c63bacdac8aa8b33db186 | refs/heads/master | 2023-02-22T19:09:04.310177 | 2019-08-22T15:33:07 | 2019-08-22T15:33:07 | 141,827,714 | 0 | 1 | BSD-3-Clause | 2023-02-15T21:39:20 | 2018-07-21T16:11:27 | Python | UTF-8 | Python | false | false | 1,090 | py | #!env/bin/python3
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
from flask import Flask, request, session
from twilio.twiml.messaging_response import MessagingResponse
# The session object makes use of a secret key.
SECRET_KEY = 'a secret key'
ap... | [
"garrettewens@live.com"
] | garrettewens@live.com |
2fd1e687f5a7bc082be9f5285ed52db96156213b | 3f53494ff6a29fd355275ae80eb601974ae527fa | /linked-lists/partition.py | c10273993440988bc82ad5f2780259ddac1bb825 | [] | no_license | t0ri-make-school-coursework/cracking-the-coding-interview | 7af1de190833acf45a58f31f901617a84e56f170 | ca4af5d9793f7570fe0f9a56da89246b8604d646 | refs/heads/master | 2022-11-19T06:43:52.185139 | 2020-07-20T18:38:10 | 2020-07-20T18:38:10 | 268,890,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from LinkedList import LinkedList
from Node import Node
# 2.4
# Partition
# Write code to partition a linked list around a
# value target,such that all nodes less than target
# come before all nodes greater than or equal to target.
def partition_llist(ll, target):
high_nodes = [Node('partition')]
node = ll.hea... | [
"victoriarosemurray@gmail.com"
] | victoriarosemurray@gmail.com |
e19fd71f8bc613cfcb0a5e9b001063477d7d5c75 | f460a91a732dc87743b1ffb71a93fac681019be1 | /dry-dock/lib/exception/unsupported_config_error.py | 0463ed5042e69074e35eada6419fdcbcd01e9e24 | [] | no_license | arueth/dry-dock-python | fff4b07c4a5a43b0a0d75f318dc8433f00c4517a | c7c259b9379dd38ce781463df3cd22023e3f5bae | refs/heads/master | 2020-03-17T11:22:43.771060 | 2018-05-29T19:36:07 | 2018-05-29T19:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | class UnsupportedConfigError(Exception):
pass | [
"arueth@gmail.com"
] | arueth@gmail.com |
997b98b06f6898a2b4149eddc69abfdbdd7dd12e | c9285fbcaf2292593c0ec04a0fcdb049e792876c | /cmake-build-debug/sincronizzazione/catkin_generated/pkg.installspace.context.pc.py | 530cea43be500b76119dca3c36b0e265ff925f14 | [] | no_license | theLorenzo/src | 89d20ea5f050af747b70d2fc978ec1e0c5bf3225 | 4d9e132c79a7c86a8804740e8c2a9bb75da815a9 | refs/heads/main | 2023-04-20T22:54:26.214857 | 2021-05-14T19:48:11 | 2021-05-14T19:48:11 | 363,413,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;message_filters;robotics_hw1;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PR... | [
"lorenzo2.cassani@mail.polimi.it"
] | lorenzo2.cassani@mail.polimi.it |
b21f31670e5100427b3e6a75afc252745c99f7f8 | c7ada313e678b21da8be927077c51d5d59f510a7 | /CodeSurvivorServer.py | 8cde9d178b4a5afff27021c1f108f8fab76462e5 | [] | no_license | peasmallHUI/CodeSurvivor | b895f7fe5711b7920960f120dfeb12da7382c7d7 | 612776c0342a5944d544781c4b4da6c4d914ce69 | refs/heads/master | 2020-05-17T19:57:06.025272 | 2019-04-28T02:57:57 | 2019-04-28T02:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,059 | py | # -*- coding: utf-8 -*-
# @Author: Anderson
# @Date: 2019-04-02 19:22:08
# @Last Modified by: Anderson
# @Last Modified time: 2019-04-26 22:20:40
import pygame
import numpy as np
from func_timeout import func_set_timeout
import random
import os
import math
import importlib
import glob
WIDTH, HEIGHT = 30, 20
TILE_... | [
"andersonby@163.com"
] | andersonby@163.com |
aec97231b9dc9a59551633f64e3f43e18ac192dd | ae0ef01cbbaf667d976f777545d5581c01a47335 | /smart_config/__init__.py | 9f30348d972ca22a7d5181f38374bc3cbc0beeff | [
"MIT"
] | permissive | sfahad1414/smart_config | fe1bdfa947bbc8e52c2f29891175a63c28970008 | 02968c25e44e109a62e9201fa0f68590a2a61215 | refs/heads/master | 2022-11-18T15:11:12.066167 | 2020-07-22T15:20:00 | 2020-07-22T15:20:00 | 281,670,973 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .smart_config import ConfigLoader, __version__
| [
"fshaikh@digite.com"
] | fshaikh@digite.com |
b5858ef94707b3015ff7999b47802269901b5183 | 03f2263a7872bd7b4bbc790f6bd40fe4bc40546d | /env_facial_recognition_v1/lib/python3.6/_weakrefset.py | 9ba6e7702f3b57958ac7b189367869ac76a73f64 | [] | no_license | tanlull/facial_recognition_v1 | b17715d506b22f6807fecad5d423506f876efcf4 | 214684ea7df95a8d8b3b15e9873220335b7d8520 | refs/heads/master | 2020-07-19T19:11:09.640314 | 2019-09-21T16:16:08 | 2019-09-21T16:16:08 | 206,497,312 | 0 | 0 | null | 2019-09-05T07:03:24 | 2019-09-05T07:03:24 | null | UTF-8 | Python | false | false | 53 | py | /Users/Anthony/anaconda3/lib/python3.6/_weakrefset.py | [
"amornpan@gmail.com"
] | amornpan@gmail.com |
43a7a2f7b8f4cd2cf1ef4e1d2914694c7c2d63f4 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/test/test_v1beta2_replica_set_spec.py | 90125f05d99575fb7f67ab126e67908b79902a85 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
4605e5316a983e02f5cfe91b8b7ccd314443a77d | 3f02cd5e3b84f9abf1a04fe0aad5440d55da339e | /MainQ1.py | 52b5bf6fe9a22e2ba51a6a773fd38b7ccb07b99b | [] | no_license | printlnHi/NPAProgComp2019 | 5450f601795f054077a320b9e29ff2df26957557 | 3709965fea336311b59a155721585e3d5069733e | refs/heads/master | 2020-06-04T14:28:58.464770 | 2019-06-15T09:49:07 | 2019-06-15T09:49:07 | 192,062,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | rows = ["abcdefg","hijklmn","opqrstu","vwxyz"]
cols = ["ahov","bipw","cjqx","dkry","elsz","fmt","gnu"]
for topic in open("task1topics.dat").readlines():
topic = topic.strip()
g = 1
for a,b in zip(topic, topic[1:]):
f = 0
for row in rows:
if a in row and b in row:
... | [
"noreply@github.com"
] | printlnHi.noreply@github.com |
d6006247060b26397e99da3a6cf6b21551f31d67 | b7b1eecf1d23235c7854f00fc7516234fe4efd66 | /main_app/urls.py | f1beb528821cd44348fbbd42e1c250aad02180b8 | [] | no_license | irfanahmd/unit-3-assessment | 9650807f1dae57b995926bee8083cd239078e882 | 17cc465127d8aed07045144376e0d1072bf0580b | refs/heads/main | 2023-02-12T21:38:14.970494 | 2021-01-21T03:13:49 | 2021-01-21T03:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('widgets/create/', views.WidgetCreate.as_view(template_name="index.html"),
name='widget_create'),
path('widgets/<int:pk>/delete/',
views.WidgetDelete.as_view(), name='widget_delete')
... | [
"irfan@NC-MBP.local"
] | irfan@NC-MBP.local |
ec8e0ae373794ad4d72ba3de4fc2da8a16a4c607 | c8a822313bb2c36b65b7399b9e6ac00d785f0426 | /UserCode/friccita/BoostedTauAnalysis/TauAnalyzer/test/SignalSampleGenerator.py | 9831dd58a21ac3960a54a0c31558e00f084ac72e | [] | no_license | friccita/usercode | 4cd3e311b55beab56971d8e7d5a7ed30017a8c97 | 7494a063ecbeb8cefe71595f04d3f83d9dc7929a | refs/heads/master | 2021-01-13T01:41:28.131187 | 2014-05-22T09:30:48 | 2014-05-22T09:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376,161 | py | # Auto generated configuration file
# using:
# Revision: 1.372.2.3
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/EightTeV/ZZTo2L2Nu_TuneZ2star_8TeV_pythia6_tauola_cff.py -s GEN,SIM,DIGI,L1,DIGI2RAW,H... | [
"friccita@ucdavis.cern.ch"
] | friccita@ucdavis.cern.ch |
e3f4668e2d1dbcdfce12eb1dee516bdff72f216d | fd183e0a98aa81aaa4934abfc6952cddd5103f57 | /s3_upload_client.py | 1b94b343b51920bea529b5f43b88916b01517d86 | [] | no_license | bhavanasudharshan/fileshareapp | dd8850db1980fba3b4dbafd20a06a8075d361082 | 8a0cbdcfd8e3413d1e47fa84283403a5ade3ea0a | refs/heads/master | 2022-11-26T18:48:05.842644 | 2020-08-11T21:12:20 | 2020-08-11T21:12:20 | 269,196,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import requests
import boto3
from requests_aws4auth import AWS4Auth
# b'<?xml version="1.0" encoding="UTF-8"?>\n<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Bucket>file-share-test</Bucket><Key>example-object</Key><UploadId>PbcBo5wRAWaP9fWKIS3aOfYpds1Ezk6dkhBc5D5zmrCnq0jJrdBqPIr_LaorvW... | [
"bsudharshan@Bharaths-MacBook-Pro-2.local"
] | bsudharshan@Bharaths-MacBook-Pro-2.local |
d998e32f40906238b53714101a60abb3a69745ed | 550116c99a6b4572945324dddb7bd70d66f9a8e2 | /src/Lists_Basics_More_Exercises/04_Battle_Ships.py | 11666b8448ab02aa5f19bb88e2f831a38ac655d8 | [] | no_license | ivelinakaraivanova/SoftUniPythonFundamentals | 810cc92796b335f31bae662fa255de66418fb1fd | 31bb4bbe817a65400bc444dbc5b692bd2ef94432 | refs/heads/main | 2022-12-28T08:53:33.587999 | 2020-10-18T16:15:09 | 2020-10-18T16:15:09 | 305,124,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | n = int(input())
field = []
for i in range(n):
split_row = list(map(int, input().split(" ")))
field.append(split_row)
attacked = input().split(" ")
ships = 0
for item in attacked:
row = int(item.split("-")[0])
col = int(item.split("-")[1])
if field[row][col] > 0:
field[row][col] -= 1
... | [
"73067985+ivelinakaraivanova@users.noreply.github.com"
] | 73067985+ivelinakaraivanova@users.noreply.github.com |
38b1a869e426b4bc8380af15bf24a8b106699a48 | c75877f2c277ee148e2a5e1e3d3b95c9b0f21b35 | /PID_CONTROL/controlPID.py | 566976a6c4d9de76407232ee338ab41cbd84eb46 | [] | no_license | chanchey/GarbageBot_2.0 | 8660623bbf053cf75e7c6834a4f76e8eccceac6a | 4d0cd525336a836fecb008e877a0a686f6080891 | refs/heads/master | 2021-04-06T19:31:00.028259 | 2018-11-02T17:14:51 | 2018-11-02T17:14:51 | 125,433,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | #!/usr/bin/python
import smbus
import math
import time
import RPi.GPIO as GPIO
import sys
import time, sys, tty, termios
from RPi import GPIO
from time import sleep
f = open("TestDisDawg.txt", "w+")
# Encoder variables
encoderA1 = 18
encoderB1 = 15
encoderA2 = 8
encoderB2 = 25
motorDir1 = 0
motorDir2 = 0
# Power m... | [
"noreply@github.com"
] | chanchey.noreply@github.com |
60e7eb15a48e0026a75e5bc5b0ffe0a079ab0dd7 | 405aa514051d6e57c33bdf8e06809c5499544122 | /classifier.py | 5eef3527dd307dba560adf5085f277eea33a6edb | [] | no_license | guan-terry/Yelp-Classifier | 165c7dcda0a8accf18c0f2caadb9c084b5131367 | 37ccb604c19ab8522d077f9e764b1f8b1e0faa68 | refs/heads/master | 2020-11-29T04:40:13.812870 | 2019-12-25T02:51:38 | 2019-12-25T02:51:38 | 230,024,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | import json
import pandas as pd
import re
import nltk
import pickle
from nltk.corpus import stopwords
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import LogisticRegression, Perceptron
from sklearn.preprocessing import StandardScaler
f... | [
"terryguan1@gmail.com"
] | terryguan1@gmail.com |
c32fd58f6be565c4fcf11d89226363e8aa375440 | 7c15c4de5af8d61fcf855ecb79e0cc5599ad29e7 | /cocktail_backend/cocktail_maker/wsgi.py | b959266ba413ab842210eeed88024a2501cb39e4 | [] | no_license | s-rigaud/cocktail_party_maker | aa799c6868d1da236124aa787c311ec813f42f37 | dc39e3114351c4a4b4d39fd8d1dc2bb6634065fc | refs/heads/master | 2023-02-27T19:54:35.470538 | 2021-01-23T21:07:32 | 2021-01-23T21:07:32 | 303,127,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for cocktail_maker 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"rigaudsam@gmail.com"
] | rigaudsam@gmail.com |
a85c6cea069b49cb90ecafe385df332ca9eb66d0 | 1e4c21bd99402034685cbbeea02a5849f5a33956 | /examples/frozen_atoms/example.py | d03be2d8a207f27d7714814aee9a3cb7a88d40e2 | [
"MIT"
] | permissive | vtlim/off_psi4 | 061050edd5a695ec9c2e6f2a134c2e9646aa95ed | 5dc462ecceebca8b528ceefd74b5a5b61caaee07 | refs/heads/master | 2021-10-10T10:48:39.715260 | 2019-01-09T19:34:16 | 2019-01-09T19:34:16 | 70,878,596 | 1 | 2 | NOASSERTION | 2019-01-09T19:34:24 | 2016-10-14T05:58:02 | Jupyter Notebook | UTF-8 | Python | false | false | 178 | py |
import sys
sys.path.insert(0, '/beegfs/DATA/mobley/limvt/openforcefield/pipeline/01_scripts')
import confs_to_psi
confs_to_psi.confs_to_psi('example.sdf','mp2','def2-SV(P)')
| [
"lim.t.victoria@gmail.com"
] | lim.t.victoria@gmail.com |
60667646a8c0e4df40e519ec049f1c82344b14e6 | 1225d2662ccfd83fb39152ed2ccf11d4f004b642 | /accounts/views.py | 1fd10ad2a588d116762956a7cc5b97bdc92218ba | [] | no_license | qwer-code/django-mall | 02623eaaaa79fab5e3ac01255859bccb92120bc3 | 8bea457f2292e1f54df5313fad3fd7e54e0273e2 | refs/heads/master | 2022-04-21T11:57:27.046116 | 2020-04-22T10:38:00 | 2020-04-22T10:38:00 | 257,866,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,122 | py | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from accounts.forms import UserLoginForm, UserRegistForm, UserAddressForm
from accounts.models impo... | [
"790285658@qq.com"
] | 790285658@qq.com |
9e33d666bbf4ced1f73f62d0f4f02a6ca92f334f | 938c55df0653b377318cd434f0fedb97036cfe7d | /day26/flask_web/app.py | a21e33c290a456cd124540302ff1aaf6fe620363 | [] | no_license | elliajen/pyworks | 6f754d0caaa4d110549f7704ade72f0002e63adb | a24a7c02f338fa8d7cfdab5a0d8bc005532dfa99 | refs/heads/master | 2023-08-26T17:27:11.893396 | 2021-10-22T04:28:43 | 2021-10-22T04:28:43 | 402,286,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # 웹서버(local 내 컴퓨터) 가동
from flask import Flask
app = Flask(__name__) #flask 클래스에서 app 객체 생성
@app.route('/') #라우트(경로 설정)
def index():
return "<h1>Hello~ Flask!</h1>" #인텍스페이지에서 문자 출력
@app.route('/login')
def login():
return "<h2>로그인 페이지입니다.</h2>"
@app.route('/member')
def member():
return "<h2>회원가입 페이지입... | [
"dmstndhk123@naver.com"
] | dmstndhk123@naver.com |
2d140ab595fe7142f2c3da40a7a1d59518173fea | f0bd09eb75ffe2052603f2495f01b4181517d965 | /cajaRegistradora.py | 1b8525e93b94725b65aaaf02176aeed86e6268af | [] | no_license | danfmartinez/python | 3b2c40216a2eab0912f1cc735faf65df50dbee35 | 33ffd9ef4294d94d89ed70a60201a019af0a9a35 | refs/heads/main | 2023-03-31T05:01:04.217974 | 2021-04-02T19:16:24 | 2021-04-02T19:16:24 | 354,111,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | import unittest
class Producto():
def __init__(self, codigo, nombre, precio):
self.__codigo = codigo
self.__nombre = nombre
self.__precio = precio
@property
def codigo(self):
return self.__codigo
@property
def nombre(self):
return self.__nombre
@propert... | [
"danfmartinezviz@unal.edu.co"
] | danfmartinezviz@unal.edu.co |
fb69f66d4fa633491efe9437950e3c49634879ed | ed47fc4aa9570d569125bbedb9f032a7d02e5322 | /anju/middlewares.py | 62d42dc286fab2fe5363503bb0db4c3327c16e23 | [] | no_license | zhouqiang2017/scrapy-anjuke | e25c456a5cf5fa87371d2bb28ce08a97eac329dd | 7d1a2d592b5661df9f5da6380e04f8fe86c2e51d | refs/heads/master | 2020-06-04T18:08:23.725808 | 2019-06-16T03:23:45 | 2019-06-16T03:23:45 | 192,137,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class AnjuSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"443682811@qq.com"
] | 443682811@qq.com |
e5847ba403b39dd9a8e6858c507ffb1cc9b99510 | 56c8ac87c5f1d72c912a3aa2e9397d733d0610d7 | /les 4/pe4.3.py | 8e1cb07dc3b3260f5532e2f2ac1a4ac6aa9ae065 | [] | no_license | LaurineMoes/programming1 | 14f2f252013eee3dfea6c2dda59485d35b95a3fa | ad5efce5ef6074b2bc3e138e55ed22a8c59e8892 | refs/heads/master | 2020-03-28T12:51:44.847591 | 2018-11-29T08:52:06 | 2018-11-29T08:52:06 | 148,341,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | uurloon = input("Wat verdien je per uur: ")
uur = input("Hoeveel uur heb je gewerkt: ")
print (uur + " uur werken levert " + str(int(uurloon) * int(uur)) + " Euro op")
| [
"laurine.moes@student.hu.nl"
] | laurine.moes@student.hu.nl |
d7c4ef7b34329b7553264d71940737cdf5fc1cdd | 29bd55d171733586f24f42151d44f4312b6a610e | /keras/keras102_lamda.py | 91b649ecbf888df8c63544cd18c8276d7f322857 | [] | no_license | votus777/AI_study | 66ab1da2b8e760d0c52b0ed2b2f74158e14f435b | f4e38d95690c8ee84d87c02dc20a1ea59c495f04 | refs/heads/master | 2022-12-04T15:52:14.855624 | 2020-08-20T06:12:52 | 2020-08-20T06:12:52 | 262,975,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py |
gradient = lambda x : 2*x - 4
def gradient2(x) :
temp = 2*x - 4
return temp
# 두 개의 다른 표현식이다.
x = 3
print(gradient(x))
print(gradient2(x))
| [
"votus777@users.noreply.github.com"
] | votus777@users.noreply.github.com |
43a71d7d7363311ff3be09c786729fa446a2e279 | b0856dcd90923f5a7555321fddcc5317b888fc7e | /todo/todo/urls.py | 58eb858bc250b90a36f73e6db2c3849031f6a627 | [] | no_license | SergeyGarinV/Todo | 5fb01719d9652f17d44e1804832ed926611e2cb1 | 8d61081be9093dcfd4b3a9d87f5b7f371f664428 | refs/heads/main | 2023-02-28T00:20:25.336164 | 2021-02-01T16:40:06 | 2021-02-01T16:40:06 | 317,591,864 | 0 | 0 | null | 2020-12-03T17:27:56 | 2020-12-01T15:54:50 | Python | UTF-8 | Python | false | false | 893 | py | """todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"SergeyGarinV"
] | SergeyGarinV |
4ca23f52cc73ef2d7d1dca3de553acebb8354157 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_vag.py | ad0c810fa086afc10452c3e9d5ab39025ec7411c | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # 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 agreed to in writing, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
045a4d6f603a1051e7c056e2c2ab880df0ca044e | 3abc1fef99ac6ce0b845a1090fae7f6875fee729 | /src/ralph/networks/migrations/0015_auto_20211115_1125.py | d2dee365fd624fe3adacf9beef409bf52b18c93a | [
"Apache-2.0"
] | permissive | allegro/ralph | 5ff9165a202e836061c99e8af20214e0d651622f | b4a72356f527b1f12c7babd7465d2d7fa3ffb0d3 | refs/heads/ng | 2023-09-02T01:13:43.672554 | 2023-09-01T09:48:38 | 2023-09-01T09:48:38 | 4,359,038 | 1,970 | 617 | Apache-2.0 | 2023-09-01T09:44:39 | 2012-05-17T14:04:57 | Python | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import ralph.lib.mixins.fields
class Migration(migrations.Migration):
dependencies = [
('networks', '0014_auto_20171009_1030'),
]
operations = [
migrations.AlterField(
mo... | [
"pawel.szulc@allegro.pl"
] | pawel.szulc@allegro.pl |
176d522c11b20f2be3cbbd8d3308cfdfaffc93f9 | 52d27b1ae41dd7d9231132dede34a8d25f2adc2f | /loger.py | 50caf94014175b16e1975557713b6635e63de797 | [] | no_license | andrew5205/Pyserial | 59febbf53e953495ba74c7851bfe03eaddcffc6f | 312cccf351843957e46aa1626d63ba4b4cbbc917 | refs/heads/master | 2023-02-23T17:54:42.752621 | 2021-01-26T05:39:10 | 2021-01-26T05:39:10 | 329,500,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import serial
import serial.tools.list_ports
import sys
import time
from datetime import datetime
print('Search...')
ports = serial.tools.list_ports.comports(include_links=False)
for port in ports :
print('Find port '+ port.device)
# ser = serial.Serial(port.device)
# if ser.isOpen():
# ser.close()
all... | [
"andrewchung11@gmail.com"
] | andrewchung11@gmail.com |
5a092fc764baa4a755ddf4296e3818a96a66c83c | 3fc51020aa360964759dcbc8d841bfdc3d268432 | /personal/forms.py | 097c703dc3958d62e56daf06d3273117bac902fb | [] | no_license | tapopadma/myWebsite | 1d1671f42db4d23c2f0ad17c8ba000bef6aed050 | 6df6d3ae2cb28f81432866bd346ffe8a4889b9f8 | refs/heads/master | 2021-01-16T21:04:13.610970 | 2016-06-26T19:49:20 | 2016-06-26T19:49:20 | 61,558,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from django import forms
class ContactForm(forms.Form):
first_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'First name', 'class' : 'form-control'}))
last_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Last name', 'class' : 'form-control'}))
... | [
"tapopadmatripathy1995@gmail.com"
] | tapopadmatripathy1995@gmail.com |
b8f80033c3fb415c6d1bab057b01540bdfb52c63 | 99d98b1fa350dd118af3b060f5df9478dcf5713c | /pogom/account.py | cc6ee7bdd193f4aa5f56211cfd3a6f382e5799d2 | [] | no_license | animanmaster/ShuckleTools | ab512fcc6efe93b91c4364bb51e3703674c0f301 | ddeae3e989a89ddf8b4478697b4e623d7bca8964 | refs/heads/master | 2021-05-08T16:08:29.856562 | 2018-02-02T15:01:50 | 2018-02-02T15:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,144 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import asyncio
import logging
import random
import time
from aiopogo.exceptions import AuthException, NianticIPBannedException, BadRPCException
from .apiRequests import (send_generic_request, AccountBannedException,
req_call_with_retries)
class OutO... | [
"8nmojd+l1dqz2bvl@sharklasers.com"
] | 8nmojd+l1dqz2bvl@sharklasers.com |
039ccf93cec028a95a10e965719e2644dea90629 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004501.py | ed45a8b978dd61582172fdc173ae6454577b7843 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
3af34cb84ae4858b351760c26c31267162657760 | 3a4a98dd409d67e19fe643e608298711e7293431 | /爬虫/Include/招聘/zhilia.py | b416c70ce4fc0ae54ac593c614066b69f9e6a621 | [] | no_license | Jasonzy1015/python-5 | 031ac73512adcf4b4ceceb95943876de1ef26039 | 055050922e2240af7f61a45e28af3d4997012132 | refs/heads/master | 2022-03-26T11:57:32.223358 | 2020-01-04T08:11:12 | 2020-01-04T08:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import urllib.request
import json
# 提取json格式信息的库
import jsonpath
# 存取进xls文件的库
import xlwt
n = 0
myxls = xlwt.Workbook()
sheet1 = myxls.add_sheet(u'yx', cell_overwrite_ok=True)
# write(i,j,value)存取文档的首行
sheet1.write(0, 1, "公司名")
sheet1.write(0, 2, "地区")
sheet1.write(0, 3, "公司人数")
sheet1.write(0, 4, "类型")
sheet1.write(0... | [
"1315426911@qq.com"
] | 1315426911@qq.com |
4e6bd8bdb3d4cdd0657398f4522a37fd91b11ea5 | 6d3daa58e4d804e1ef52c016aad26a6ed8dfb4e2 | /Wine Price Prediction.py | 9fb764e8a33db3411289fa50c37c7bdaacfae64b | [] | no_license | Tushaar28/Wine-Price-Prediction | a241a829d2bafaa0d68e6575cbaf46964a3f04ce | 9a0a202e09f207855273e4264e1b347a3f133752 | refs/heads/master | 2020-08-01T01:13:13.622337 | 2019-09-25T09:49:29 | 2019-09-25T09:49:29 | 210,810,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py | import numpy as np
import pandas as pd
import statsmodels.formula.api as sm
import matplotlib.pyplot as plt
get_ipython().run_line_magic('matplotlib', 'inline')
wine = pd.read_csv('https://storage.googleapis.com/dimensionless/Analytics/wine.csv')
wine.dtypes
wine.describe()
wine.head()
model1 = sm.ols(formula='P... | [
"noreply@github.com"
] | Tushaar28.noreply@github.com |
b925ebaeda376ca4c8ccc1c02b72eb10b1d2d267 | 6073a13876da060760d0eaa48a76af27f5b74a18 | /leetcode/stella/String.py | 082277e27ef9bbf40a5d51819f7d5dbf032ce247 | [] | no_license | fireflyc/leetcode-100 | b24e3b575190d5d52f3f6b6600f995e361f1d485 | b3ec7b761e750b5e6f0bb7d0221bfd26a4f807cc | refs/heads/main | 2023-07-07T00:15:53.898975 | 2021-08-15T07:30:27 | 2021-08-15T07:30:27 | 362,154,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,140 | py | from typing import List
def find_words_that_can_be_formed_by_characters(words: List[str], chars: str) -> int:
def match_character(w):
matching = chars
for i in range(0, len(w)):
pos = matching.find(w[i])
if pos > -1:
matching = matching[:pos] + matching[pos ... | [
"zhu.stella@outlook.com"
] | zhu.stella@outlook.com |
1e793b7f5eb908ffbcc3170fb66bcd0a3ab034e0 | e2c3cfdb246671dd23c961b23bfbcc846a56b225 | /rockpaperscissors.py | fe6a24f2b932cdfb99b35c89386e196859de9153 | [] | no_license | vins89/Assingment1_math | 2ac944c57d0c4ae693a97ceb804d9de498f2d6c3 | 6b6c96cb93832a61032ac8f1f5b056d87355b8bf | refs/heads/master | 2021-01-11T14:05:12.400757 | 2017-06-29T02:48:22 | 2017-06-29T02:48:22 | 94,954,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py |
a = ['rock', 'paper', 'scissors']
b = ['rock', 'paper', 'scissors']
x = raw_input("user 1: rock, paper, scissors?")
y = raw_input("user 2: rock, paper scissors?")
if x == y :
print "its a tie"
elif x == "rock" and y == "paper":
print "y is winner"
elif x == "rock" and y == "scissors":
print "y is winner"... | [
"noreply@github.com"
] | vins89.noreply@github.com |
4563a035a826fdf952427cace81a88aef1bd0102 | ad491c40c26d2d4eca650afed301d38715e33510 | /mod3/3.4.py | 395a808da7ca3ff001c742181f6e8285dc04982b | [] | no_license | RaisZzz/AaDS_1_184_2021 | c1fbd936e8e11d34b2eb1f2a0dea8cad1735bc4e | eaccac768ac8b3758ff81161da1dff02f2bf14c3 | refs/heads/main | 2023-05-05T13:56:58.275708 | 2021-05-28T10:13:10 | 2021-05-28T10:13:10 | 338,696,848 | 0 | 0 | null | 2021-02-14T00:10:14 | 2021-02-14T00:10:14 | null | UTF-8 | Python | false | false | 738 | py | def cyclic_string(s):
lenght = len(s)
k = [0] * lenght
for i in range(lenght - 1):
j = k[i]
while (j > 0) and (s[i + 1] != s[j]):
j = k[j - 1]
if (s[i + 1] == s[j]):
k[i+1] = j + 1
else:
k[i + 1] = 0
return k
inp = str(inp... | [
"noreply@github.com"
] | RaisZzz.noreply@github.com |
68e38d1f78e67803869ed7a572190babe8b2f9b7 | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/regression/recursive_ls.py | 9765f8474537019ac360f604b9cc30b332e0d99c | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 26,190 | py | """
Recursive least squares model
Author: Chad Fulton
License: Simplified-BSD
"""
from __future__ import division, absolute_import, print_function
from warnings import warn
from statsmodels.compat.collections import OrderedDict
import numpy as np
import pandas as pd
from statsmodels.regression.linear_mo... | [
"randybrown18@me.com"
] | randybrown18@me.com |
a468f3de10abd49125aa13e427ffbc8515c5cafc | 1bed3057cfc7da9156647b6251bd0109157472ee | /_CNN/_CNN_Med/cnn.py | 8c61eadfb7d7be5d0d720dfd7ce70d1bb865d73b | [] | no_license | liyaguo6/Machine-learning | 4b13f230b17df7c19bb1c8757e9c61523d045263 | a470592122699c7d45edd8c5311b3e252c0b3548 | refs/heads/master | 2020-03-27T08:30:38.056434 | 2020-03-04T13:02:12 | 2020-03-04T13:02:12 | 146,262,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | import tensorflow as tf
class TextCnn:
def __init__(self,sequence_length,num_classes,embedding_size,filter_sizes,num_filters,l2_reg_lambda):
# Placeholders for input, output, dropout
self.input_x= tf.placeholder(tf.float32,[None,sequence_length,embedding_size],name='input_x')
self.input_y= ... | [
"1075543143@qq.com"
] | 1075543143@qq.com |
f667e24c635794745a0cd682814b11c7ae323274 | 6e0cc09bab285a388950122abfa136ebdec88427 | /blog/settings.py | 3771c5d822f734ff66d2dda02a4b67a2ad6a5146 | [
"MIT"
] | permissive | SolidScript/blog | 61c5cc9430dbc48fc96cab387ab3ce145a41e807 | 9bc80f92825432a24325fcf3caec00a1e0ea9a84 | refs/heads/master | 2021-05-11T04:05:39.879271 | 2018-01-18T04:27:41 | 2018-01-18T04:27:41 | 117,931,789 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
im... | [
"mohitkyadav@outlook.com"
] | mohitkyadav@outlook.com |
3e87a4ddd10506d80c44ca4532849331eefd3f4b | 1bebf42f17c558488fce0bea5c58b55fd049c286 | /django_table_filtering/wsgi.py | 6962142610ad722b2c01ceb12560021ec1f4c8a0 | [
"Unlicense"
] | permissive | ckbelvedere/django_table_filtering | 60ab100fde25e9fbe4e38f7e7b5b4257f45d08fa | d82b89a871779b6a000945da14455c9acb8c47bb | refs/heads/master | 2021-01-02T22:30:01.663587 | 2016-11-22T11:22:44 | 2016-11-22T11:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for django_table_filtering 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.setdefaul... | [
"spapas@gmail.com"
] | spapas@gmail.com |
dd763d08e04d4800256740f5e2a41d118a8db67b | 9032dfaea70868d424fded8237c17637d9146388 | /115/115.py | 8084e3b7f15f4b478e341d5d4a67a17ad0403163 | [] | no_license | pianowow/projecteuler | 20e136595c9fe2945aa9f078a32b8242b8bef783 | c09a2e1a6889b9c89bc4bd9c56c2bbc25303e7ac | refs/heads/master | 2020-04-05T23:17:58.075294 | 2013-04-01T14:16:51 | 2013-04-01T14:16:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: CHRISTOPHER_IRWIN
#
# Created: 06/09/2012
def count(m, gap, cache):
if (gap < m):
return 0
if (cache[gap] != -1):
return cache[gap]
total = 0
for len... | [
"pianowow@gmail.com"
] | pianowow@gmail.com |
74e71e949b0445cb41698dff0d78d98e28390ed7 | ec500d527b51e9d109dc097bbcae569ca842e469 | /exercise/iot/code/codejam.iot.mqtttcp.dataprocess.html5.py | 8acaf7d0e6dac4d050f25ca7b8cd3275cc46dbeb | [
"Apache-2.0"
] | permissive | krish469/data-intelligence-codejam-exercises | ffcb5707ed7bda6eb555b2e1a95270c190dd66a2 | ac31cf87e6b264d56123eef51c134dad6a87236e | refs/heads/master | 2022-11-04T09:21:18.214991 | 2020-06-18T23:15:30 | 2020-06-18T23:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,936 | py | import time
import locale
import json
#import ast
# Number of max devices
max_devices_qty = 100
locale.setlocale(locale.LC_ALL,"")
def main(payload):
last_timestamp = int(round(time.time()))
ubody = payload.body.decode("utf-8") # Must be converted to Unicode first
#body = ast.literal_eval(ubody) #ast.li... | [
"witalij.rudnicki@sap.com"
] | witalij.rudnicki@sap.com |
51e8fae298d3258f1bc488df509e29b0599f907b | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/299905/snippet.py | 463be82ad5d7f9e9ed4f498a8c2cafdb1dd3dfbf | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,239 | py | "Memcached cache backend"
from django.core.cache.backends import memcached
from django.utils.encoding import smart_unicode, smart_str
MIN_COMPRESS_LEN = 150000
class CacheClass(memcached.CacheClass):
def add(self, key, value, timeout=None, min_compress_len=MIN_COMPRESS_LEN):
if isinstance(value, unicode)... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
4eca7d3bec4348ead491c92d3bffb1b5836095ad | 84372dcaec5b7b70deafc1fffba0200f14b849aa | /spider.py | abaee8698479d0534398a887129fd6d62d411e03 | [] | no_license | ake698/pollusion | 6a33c4379eb368e7597419e1c114d3ebb6666479 | 5cc4c6d2f9a7176899b0b6b2fbd860810cecfc9f | refs/heads/master | 2020-12-01T19:05:27.762545 | 2019-12-31T05:46:41 | 2019-12-31T05:46:41 | 230,738,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/12/29 16:01
# @Author : QS
# @File : spider.py
#潮州空气质量数据采集
import requests
from bs4 import BeautifulSoup
from time import sleep
import datetime
import django
import sys,os
dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(dir)
os.envi... | [
"fsq5431@qq.com"
] | fsq5431@qq.com |
d23bdd30e8190210edd9107c2e3d8da1127f0046 | 24c5c46f1d281fc15de7f6b72a5148ae85f89fb4 | /SRC/unittest/case_interface_bak.py | b566f32234c2a6425ea57ff17e5e87a1788e972a | [] | no_license | enterpriseih/easyTest | 22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0 | 43b8d294e898f25055c78313cfece2753352c250 | refs/heads/master | 2023-08-23T22:55:14.798341 | 2020-02-11T09:13:43 | 2020-02-11T09:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | # coding=utf-8
import functools
import json
import unittest as UT
import requests
from SRC import settings
from SRC.common.const import RunStatus, RequestMethod, RequestDataType, RunResult
from SRC.common.decorator import assert_dec, codeException_dec
from SRC.common.exceptions import JsonLoadsException
from SRC.comm... | [
"yaolihui0506"
] | yaolihui0506 |
0ef00880b7d7440ce40aea7b5a35d200cc986ab3 | 7316069d259c7a2338ae1891bdbba6e46486b823 | /multithread/Counter.py | dc7862d5f83616cfc15af4aaae927415247e9151 | [] | no_license | GuoXi722/PyQtPractice | 07dbb77d36776d2e0e96a6aa69aeb5da8f58571d | 40ded82c2dc70864763e5e93dd0b2da57cb8dd18 | refs/heads/master | 2021-01-08T20:21:49.450035 | 2020-02-27T02:23:02 | 2020-02-27T02:23:02 | 242,132,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
sec = 0
class WorkThread(QThread):
timer = pyqtSignal() # 每个1秒发送一次信号
end = pyqtSignal() # 计数完成后发送一次信号
def run(self):
while True:
self.sleep(1) # 休眠1秒
if sec == 5:
... | [
"asaf227@126.com"
] | asaf227@126.com |
f1ee1dc50e5c6b36d4e54422457bbdcd46f88395 | 015f49cd040b82773409b01b3d40c0e19e828402 | /admin/fladmin/apps.py | 2f3e1d10d4ba7b3b171e1260f9a1ca866ab8513a | [
"MIT"
] | permissive | cheesycod/FatesList | a36ff488d17f1e7ed247c6269ee94a626f468968 | 82a175b94f93540bab57262c8aa8500a008e7d7b | refs/heads/main | 2023-03-25T04:46:37.943400 | 2021-03-26T08:26:41 | 2021-03-26T08:26:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class FladminConfig(AppConfig):
name = 'fladmin'
| [
"meow@683e51740c.servercheap.net"
] | meow@683e51740c.servercheap.net |
52a2d25629eb0aee97b31ef86c5b17f086e69730 | d437a2dac4dd5a13f92febb06789d2638f3ac98b | /mainapp/migrations/0008_auto_20210114_2321.py | c1549608f18ab4c1ef0b0f7224eb93fd9339be61 | [] | no_license | VanionVina/first-test-django | 2e9ab3273173b9b4c2c73a880faac7d7519e3c86 | 4fc02951c9b42c2ff6116ddbd9e0321e4e996846 | refs/heads/main | 2023-02-15T22:38:59.214216 | 2021-01-15T17:38:54 | 2021-01-15T17:38:54 | 328,221,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # Generated by Django 3.1.4 on 2021-01-14 18:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0007_auto_20210114_2108'),
]
operations = [
migrations.AlterField(
model_name='cart',
name='final_price',... | [
"gamem9120@gmail.com"
] | gamem9120@gmail.com |
9643fb9df4f77bc2b0879985b47062773a83ff15 | 54489f723841157ff6f9d3aa3d9d9590f27d2ed5 | /stack_Overflow_Parser-master/test.py | 00a865816807e35ffbb0b0e0548486aa85a62a26 | [
"MIT"
] | permissive | Ash515/awesomeScripts | 8126751d9cd47564e6d76726cbde38a4291cf223 | 3a2c0888207aca044e03ec9f387035e14879fd15 | refs/heads/master | 2022-12-23T09:42:33.998020 | 2020-10-05T11:50:18 | 2020-10-05T11:50:18 | 301,373,870 | 8 | 0 | MIT | 2020-10-05T10:40:52 | 2020-10-05T10:40:52 | null | UTF-8 | Python | false | false | 12 | py | a = 5 + "b"
| [
"deepak008@live.com"
] | deepak008@live.com |
907fa10baaf747393b739dea0d5ac7a8ad148eab | 63059890e4f66a5c81bf6e8b488836216086e70b | /01day/7-备份大师.py | 4665ffa90bb2f2188f449b135c21e42a01a32200 | [] | no_license | jiuwangshiyan/1808- | 2b647b8388dac14b6724808aa26d060bedc64a8e | eb3c04e4b7d39343c5beda518f95ad33dde2e65c | refs/heads/master | 2020-03-28T02:51:11.423694 | 2018-09-07T01:21:10 | 2018-09-07T01:21:10 | 147,602,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | name = input('请输入要备份文件的名字')
f = open('8.txt','r')
content = f.read()#content 是读取f.read
print(content)
f.close()
#把8.txt内容写入到9.txt里
p = name.rfind('.')
s = name[ :p]
e = name[p:]
newname = s+'备份'+e
f1 = open(newname,'w')
f1.write(content)
f1.close()
| [
"1848919677@qq.com"
] | 1848919677@qq.com |
453c69653de395d2fcbc7a7f3947971f6ec6d872 | f9d0a3db7b8d43b01d6a4045b32ff376bda02f4d | /server.py | 688eb8f15086dcddd2722e4be4b9f0d3509b7107 | [] | no_license | gunjan-iitr/model_API | 559f4ae49f6fe99c04392a1e5f7e8a576294294a | 3385b1a9d29aa853bfc77d862bdab727812d582c | refs/heads/master | 2022-07-09T07:07:42.185036 | 2020-05-15T21:46:02 | 2020-05-15T21:46:02 | 264,304,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import numpy as np
from flask import Flask, request,jsonify
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl','rb'))
@app.route('/api',methods=['POST'])
def predict():
data = request.get_json(force=True)
arr = np.array(data['arr'])
prediction = model.predict([arr])
output = prediction[0]... | [
"noreply@github.com"
] | gunjan-iitr.noreply@github.com |
532846d49d56961b880780dd986e7e3500e6d70e | eb6e282c7e5fe1bf99f8b7aa79d03f1b27482f11 | /Guassian Elimination -with and without pivoting.py | 7d985b144188f47a0867655dd1e9de9f024b37a4 | [
"MIT"
] | permissive | VineethPachava/Mathematical-Matrix-Methods | 3f9e57cc7f55e19bc0b0a80d73343c534e63bc32 | 542fcded1514d0891145e8a06f3e5fd0959d4c68 | refs/heads/master | 2021-01-01T15:47:23.945686 | 2017-07-23T04:56:55 | 2017-07-23T04:56:55 | 97,704,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,571 | py | '''
----------------------------------------------------------------
Title: Gauss Elimination Method
Name: Vineeth Pachava
--------------------------------
'''
def Guassian_nonpivot(D,E,n): #A is assigned to D,B is assigned to E
for k in range(n):
... | [
"noreply@github.com"
] | VineethPachava.noreply@github.com |
be36fb11ecb75c519d15f74a3051cbd760f262f3 | 51a5005a8baf3fe11dc821aeddf4eacff33ecdd4 | /tools/play_path.py | d5d37ed6653185ad35ac781648365b437b3a4559 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | personalrobotics/user_interface | 46b9065fb789f5bed43c861314389804a9c62522 | 517aa17578d0e564da5d8c7c975df76742c70968 | refs/heads/master | 2021-04-30T22:10:16.240873 | 2017-01-23T21:42:42 | 2017-01-23T21:42:42 | 69,285,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #!/usr/bin/env python
from push_planner_benchmarks.tools import play_path
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(description="Test playing a path")
parser.add_argument("--query", type=str, required=True,
help="The yaml file that specifies the qu... | [
"vrangane@roy.personalrobotics.ri.cmu.edu"
] | vrangane@roy.personalrobotics.ri.cmu.edu |
d60a97c99a0513292a8111eef4d74b11f0edbc80 | 96fdfc2fa226f13b4e3b4755e7de626e10cd58e5 | /Sex/spiders/spider.py | f236e06bb8445cd89969b4023053f7f7603fbce4 | [] | no_license | zjmmjzzjm/sexspider | 96a1d699d4af5483e660f4c2e5e624aa092057ce | 0102a1e4940778725288c5e962628669cd8fe0d9 | refs/heads/master | 2021-01-16T01:23:48.420415 | 2014-05-24T03:41:09 | 2014-05-24T03:41:09 | 20,795,534 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.http.cookies import CookieJar
from scrapy.selector import Selector
from Sex.items import SexItem
import datetime
import urllib2
import exceptions
#import socket
import string
... | [
"niklaus520@aol.com"
] | niklaus520@aol.com |
2c5633ab769bf20b5ae3575ae098ba9b6048e4bc | 6820a16eef223f31648ad66b1b77cf03f71b7248 | /Project/linear_regression/9x9-non-weighted.py | 48a423d14961b8b36df225d56a36dd14e81a8801 | [] | no_license | usmankiet98/Ai394 | e1a4daf9f283d260a1ba0f932781d729be4b68f7 | 86d7c4a35da5d216374bb1a654e677c1004b53fb | refs/heads/main | 2023-04-11T12:17:54.372365 | 2021-04-26T15:22:10 | 2021-04-26T15:22:10 | 350,694,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | import numpy as np
import sklearn as sk
import pandas as pd
from sklearn.naive_bayes import MultinomialNB
from sklearn.model_selection import train_test_split
from sklearn import svm
from sklearn.svm import SVC
from sklearn import metrics
from sklearn.preprocessing import StandardScaler
from sklearn.neighbors ... | [
"noreply@github.com"
] | usmankiet98.noreply@github.com |
df7fd05f0a9a837110aabf93f811e9f0522e6c47 | 2bdb128188c40c670fd0a26ca8a447cae58a8848 | /tests/commands/test_command_sharer.py | 670f1b14dde21a3390b02c5eb845a98bb1b06c84 | [] | no_license | cl33per/chat_thief | 3de834cbb722a36f37c5e033e3f8c7672c325ec4 | afb7660eacb3b5f476367eb388b4e6981a49e54a | refs/heads/master | 2022-11-14T13:07:49.213617 | 2020-07-01T16:27:45 | 2020-07-01T16:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | import pytest
from chat_thief.commands.command_sharer import CommandSharer
from chat_thief.models.user import User
from chat_thief.models.command import Command
from tests.support.database_setup import DatabaseConfig
class TestCommandSharer(DatabaseConfig):
def test_share(self):
user = User("fake_user")
... | [
"davidmichaelbe@gmail.com"
] | davidmichaelbe@gmail.com |
ee07d967c8331e6b6516e6c3d52e314c2bc8839a | 50190bff7c01e703da4c47f4c462a08a30778da2 | /inventoryTool/inventoryTool/wsgi.py | a1e29eb026a2dc24b1385c96ec04b8400f92e66d | [] | no_license | arnavd2001/inventory-tool | 51d9a6da5d9ab2033aed925b33e5a159b33da359 | f1a191915757084eb873ae186e42232223e2f0a5 | refs/heads/main | 2023-06-19T05:05:21.085055 | 2021-07-11T16:38:47 | 2021-07-11T16:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for inventoryTool 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... | [
"chirayurathi4@gmail.com"
] | chirayurathi4@gmail.com |
66a91e069e433fe6749b553ace1b1cfe2a703151 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_restorable_dropped_databases_operations.py | c80d04d117ea91e660881b8a916c7bb7cfcefcdf | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 8,928 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
d1a221633b0d8677e3bc0c5214f80ebf68748799 | 40a15f3c6b975a0c93ac393d0ca92a12a5bed1ed | /OMP.py | d5ab6e17a061b5f67fe406043ddb446f19fc9d41 | [] | no_license | tengteng-Lin/matrixHomework | 6ec80c2c64cb447cb4110be62bbc169ebd97c12e | ed78600c59a0260274d952be57784b1acea0a7b8 | refs/heads/master | 2023-01-13T16:49:07.465468 | 2020-11-11T12:34:32 | 2020-11-11T12:34:32 | 311,965,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | #coding:utf-8
import math,time
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus']=False
def cs_omp(y,A,K):
'''
:param y: 观测数据向量
:param A: 字典矩阵
:param K: 稀疏性指标
:return: 稀疏的信号向量x
'''
N = A.shape[1]
residual... | [
"nanyi_Gu@163.com"
] | nanyi_Gu@163.com |
b0872297a1e973e7d2596a15ea16d2b7785cd1ce | 7f3c27d6bf8fb138ecbfaef2f36787bb3b1e8566 | /photon_arrival_time_colls2.py | 4c101375b2e149fee684ecf683b6a1c3ffd5ddbd | [] | no_license | gitcheng/rayTraceNotebook | f2644ed70d35a69e21685ed705424b87ecde739e | 5c9bb4ac65870287e7a9cc15ff3c7bc763de90b5 | refs/heads/master | 2021-01-15T13:44:54.206320 | 2015-03-25T01:18:55 | 2015-03-25T01:18:55 | 24,906,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,500 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# <h1>Photon arrival time</h1>
#
# * Use data produced by <b><code>scripts/time\_geom2\_hex\_*.py</code></b> and <b><code>scripts/time\_geom2\_rect\_*.py</code></b>
# * Geometry defined in <b><code>geometry_collection_2</code></b>
# <codecell>
%ma... | [
"ahsiang.c@gmail.com"
] | ahsiang.c@gmail.com |
9625b08110ec98c0f1151eaf9b340266f63fcddd | 579e19a7b861e0549874b6e263c24aa418f3fdfc | /samples/QueryChangeNotification.py | 992136bbfffae0d1ea7199297095a6391b650545 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | 33bunny/python-cx_Oracle | 3f724df9a19ffd3f68e168fe7c57e4e057c8a780 | 26c3a4c2439642f9598bc9b1ca0d6ddf73890428 | refs/heads/master | 2021-05-07T15:17:18.873197 | 2017-11-06T20:41:59 | 2017-11-06T20:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | #------------------------------------------------------------------------------
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada. Al... | [
"anthony.tuininga@oracle.com"
] | anthony.tuininga@oracle.com |
e0c4303817cf68a2e65123fc103a550fb575c7ba | feba51beeab37e9981e78b342fc368da39dee3bc | /example/env/lib/python2.7/site-packages/pycipher/columnartransposition.py | f8c4e2b58200ab976c89208ec92a1414d5e8b4be | [] | no_license | INoLiao/cryptography | 94e0a42bc6568ba682c653792d76ea11c3733011 | 11c127fd5188dab973c0c976bb9bb717bedadd17 | refs/heads/master | 2022-07-08T23:03:30.544756 | 2020-05-16T19:21:35 | 2020-05-16T19:21:35 | 264,510,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | '''
implements Columnar transposition cipher
Author: James Lyons
Created: 2012-04-28
'''
from pycipher.base import Cipher
####################################################################################
class ColTrans(Cipher):
"""The Columnar Transposition Cipher is a fractionating cipher, and has a ... | [
"ino.liao@gmail.com"
] | ino.liao@gmail.com |
a146c05b1751eaa8b7ae1d30607ce534ccdb1961 | caa93d8a104624c0513ca606c50ba7fee38a60d4 | /tropycal_model_hack/main.py | e9a132b04493a24f46779e257e9baff9d16e58e7 | [] | no_license | ahuang11/tropycal_model_hack | c620f82c97e8fd1d325312a15162fd38c5e88975 | 59982338c4c623c573343305dee479d034d15960 | refs/heads/master | 2022-12-07T11:08:24.212818 | 2020-09-02T23:00:47 | 2020-09-02T23:00:47 | 290,321,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py | import os
import glob
import pickle
import argparse
import matplotlib
matplotlib.use('agg')
import pandas as pd
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import tropycal.tracks as tracks
COLUMNS = ['basin', 'number', 'init', 'technum', 'tech', 'tau',
'lat', 'lon', 'vmax', 'mslp', 'level'... | [
"noreply@github.com"
] | ahuang11.noreply@github.com |
098d0ead2935f83e1c9bb6331d974b2bb2b08474 | f92c74b694ba08b272576fdfb8afcfe5beb43157 | /seleniumbase/console_scripts/run.py | 36c1579414708f1297a78acf0c4206d53fe6f77d | [
"MIT"
] | permissive | priscilabertolazzi/SeleniumBase | e6842d4b048178a7cdcc9b4863b2fd26f9fab881 | 808ca141694939376d88ce3fac149e2e3f62942c | refs/heads/master | 2022-12-23T00:18:02.640208 | 2020-09-09T18:22:38 | 2020-09-09T18:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,260 | py | """
SeleniumBase console scripts runner
Usage:
seleniumbase [COMMAND] [PARAMETERS]
OR sbase [COMMAND] [PARAMETERS]
Examples:
sbase install chromedriver
sbase mkdir browser_tests
sbase mkfile new_test.py
sbase options
sbase convert old_webdriver_unittest.py
sbase print my_first_test.py -n
sbase translate my_first_... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
d4d720aad96c5be06171cbbb998e28d8760d537a | e858cca58a19a4571ae239c3c00dfdf867e76622 | /better_drone_api/migrations/0005_stage_stage_id.py | 79d20466ee6bd1f60178ee9e83a61cbd3553c06d | [] | no_license | sudeep-sinha-hes/2021sp-better-drone-sudeep-sinha-hes | 2d6a9c881bb4f089b1c9b8807a8f8612bf9995f1 | 388dbc355eaf1ed5b26d3e183edcbede8c830fef | refs/heads/main | 2023-05-06T08:54:05.708881 | 2021-05-12T02:37:56 | 2021-05-12T02:37:56 | 366,570,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.2.2 on 2021-05-10 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('better_drone_api', '0004_auto_20210510_1857'),
]
operations = [
migrations.AddField(
model_name='stage',
name='stage... | [
"ssinha@squarespace.com"
] | ssinha@squarespace.com |
0d4e60d885543dcabc06218fa4d8f5bd6c1b7c02 | cfc52686367034fe81a21152432d98b757d402b1 | /LevelOne/문자열 다루기 기본.py | e43d800869c061f43378e7782da020b443f132ec | [] | no_license | minm063/CodeTest | 4fadd513c90f58747bd9e1d93eb7b6d15abd2dd4 | 99406304f51cd15f5b156fd7f669b0e994c3f4ff | refs/heads/main | 2023-04-02T02:09:44.860628 | 2021-04-10T11:05:13 | 2021-04-10T11:05:13 | 302,225,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def solution(s):
if len(s)==4 or len(s)==6:
if s.isnumeric():
return True
else:
return False
else:
return False
| [
"noreply@github.com"
] | minm063.noreply@github.com |
229cda51cb090287639fac9f73866fc0fc07e7f9 | 76742bf1c7dee6a01a0a41402fe734eeb0da3d74 | /tango_with_django_project/populate_rango.py | e7ae46306107f30b3103b2bbed482e688ef88477 | [] | no_license | Zacharilius/tangoProject | e5490c80af3caaabe2cf132a40387db2574713dc | 305fa20e344f8ad24514dff959be3e4e3632645e | refs/heads/master | 2021-01-22T23:26:51.921743 | 2015-03-17T17:52:22 | 2015-03-17T17:52:22 | 29,359,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_cat = add_cat('Python', 128, 64)
add_page(cat=python_cat,
title = "Official Python Tutorial",
url = "http://docs.python.or... | [
"zabensley@gmail.com"
] | zabensley@gmail.com |
ce70f4e66df02d6569e8a818e29235dbe3be766b | d0e88ce8bb8a1c3da3337a85265eb9cfaa98fef6 | /example1.py | ac283ba640d3405be19c9cb407e3957568ecd9bd | [] | no_license | marina311/telegram_bot | 7bfa5211232f56582e1b3b4d4bfa5b642f16ab90 | e0f541ce968acaef5ee61fc23eb7a135251e9b74 | refs/heads/master | 2022-05-28T03:30:09.031747 | 2020-04-30T14:33:50 | 2020-04-30T14:33:50 | 259,322,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from auth_data import *
# Импортируем необходимые классы.
from telegram.ext import Updater, MessageHandler, Filters
from telegram.ext import CallbackContext, CommandHandler
# Определяем функцию-обработчик сообщений.
# У неё два параметра, сам бот и класс updater, принявший сообщение.
def echo(update, context):
# ... | [
"marina311@mail.ru"
] | marina311@mail.ru |
6b953eabd9153431a406e11cb3110cd2fc9e0b4d | ee855f3e742778828809fd7097c892eb849a9b54 | /PythonServer/image.py | c4579d375763210ef2c3e3c9a4894409c2ad8460 | [] | no_license | seyahdoo/AndroMacro | dcd86fdb835c4f0644792f5bb50b2702a0552abd | 3e921f6749b6b38c9c974c0ccedc7eb58d5b4916 | refs/heads/master | 2020-03-27T08:52:59.393507 | 2018-08-27T13:09:02 | 2018-08-27T13:09:02 | 146,295,136 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py |
class Image:
pass
| [
"seyahdoo@gmail.com"
] | seyahdoo@gmail.com |
812dc013d453862dbb958e4a563834e0d7e6aba7 | 20827a41854aef2820401b2affb47ed77ce6406a | /sights/migrations/0004_auto__chg_field_variable_description__chg_field_variable_type.py | fb4b06481d7b4fdf8eb54f01041b760ad6120db6 | [] | no_license | Science-o-matic/MedJellyDataBackend | 7e12b00b1bd4b5207b5983709845a8549c1209ae | 0320ece65fc2441214b97505c19b069e5799b8cc | refs/heads/master | 2021-03-12T19:18:05.315267 | 2017-08-02T09:05:12 | 2017-08-02T09:05:12 | 10,324,052 | 0 | 0 | null | 2013-07-04T10:34:10 | 2013-05-27T23:03:31 | Python | UTF-8 | Python | false | false | 3,599 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Variable.description'
db.alter_column(u'sights_variable', 'description', self.gf('django.... | [
"antonio.barcia@gmail.com"
] | antonio.barcia@gmail.com |
40f6ac93d8d20662057715e8f2cbaa97ea5555a2 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/code-formula-2014-qualb/code_formula_2014_qualB_c/Main.py | 64274ab66ae68c3b570b2c37dd74d7c974e4130a | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | a=input()
b=input()
n=len(a)
import collections
l1=collections.Counter(list(a))
l2=collections.Counter(list(b))
if l1!=l2:
print("NO")
exit()
cn=0
s1=[]
s2=[]
l=[]
for i,j in zip(a,b):
if i!=j:
s1.append(i)
s2.append(j)
cn+=1
else:
l.append(i)
c=collections.Counter(l)
l... | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
fb21e4714b35a21708dd10bbf7e8713cdec95421 | ae71e532468e861e3a9fcb90f613eddca267ace6 | /routes/class_reports.py | 72d6d93574c1858ca22af86f2c905041302f7431 | [
"CC-BY-4.0"
] | permissive | soon14/proms-4.0 | 0b4ed398125e529c13dc8f0d9b0c14e0348ae5c6 | 6c3a1fd62c9394761664e100fc1dde50fd79dc11 | refs/heads/master | 2020-09-23T20:33:56.716317 | 2019-06-09T04:01:29 | 2019-06-09T04:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | from .class_incoming import IncomingClass
import io
import uuid
from rdflib import Graph, Namespace, URIRef, Literal, RDF, XSD
from . import api_functions
import modules.rulesets.reports as report_rulesets
import settings
from modules.ldapi import LDAPI
from datetime import datetime
class IncomingReport(IncomingClass... | [
"m13001282105@163.com"
] | m13001282105@163.com |
9535709abf88b3bbdab94e25bd9aad683cadde85 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ARC/ARC122/a.py | 9e9961e0f2d5cbd1eda85e6f6dbb01fe302c0653 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | n=int(input())
a=list(map(int,input().split()))
dp0=[0]
dp1=[0]
mod=10**9+7
x=0
y=1
for i in range(n):
p=a[i]
q=dp0[-1]
r=dp1[-1]
dp0.append(q+r+y*p)
dp1.append(q-x*p)
x,y=y,x+y
ans=(dp0[n]+dp1[n])%mod
print(ans)
| [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
2b2a5365ded67cf45fab0605f22b3c6a7c05d1f4 | 664d493346dea932d55ff010b480727b3e651e1d | /src/PA_OPS/wsgi.py | ea78c2bfa539e63236d5b172e0babb5149962049 | [] | no_license | rayxxh/PA_OPS | 474bc999b6140065f1ad128305172e204f49a942 | a79c307161a025be7f376b1534ee0c49f8070570 | refs/heads/master | 2020-12-31T05:10:25.723868 | 2016-05-12T05:11:32 | 2016-05-12T05:11:32 | 58,605,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for PA_OPS 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_SETTIN... | [
"rayxxh@gmail.com"
] | rayxxh@gmail.com |
94ba1675679dd2384eecbd19de11aa0839105e84 | 2b026a53f9554ed2ce19198b313fcc8db9b73abb | /abc124/b/solver.py | 3237c31fb9ae090e456ac6631e6a3f81fa8d78b0 | [] | no_license | shinobe179/atcoder | 528b97c2e9a9cea6cccbf1de6d055bdd8e250191 | debd24ec73936ac9592b96f723a1cd73bb93067a | refs/heads/master | 2020-05-16T05:19:09.096587 | 2019-05-06T13:08:12 | 2019-05-06T13:08:12 | 182,812,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | #!/home/shino/.anyenv/envs/pyenv/shims/python
import sys
N = int(input())
H_list = [ i for i in map(int, input().split()) ]
ans = 1
for i in range(1, N):
for j in range(N):
if j >= i:
break
if H_list[i] < H_list[j]:
break
if j == i-1:
ans += 1
print(ans... | [
"befs.anne@gmail.com"
] | befs.anne@gmail.com |
1568aa1de7c81345ca53eb818fa78232de792b4b | 748b55e0c02949ddb62c6f52b10be2ed7d9c871c | /Recursion/11729.Hanoi-tower/윤선영.py | 2297282929024207735dd9669b58f8a29e2a1758 | [] | no_license | seojisoosoo/Algorithm | 5305dd2ee5c819e639204fbe250a55dc979af006 | d4a9b3d6c7a87e3e2913aced0cdaa94f20832a45 | refs/heads/main | 2023-08-28T18:28:08.181742 | 2021-10-17T15:38:54 | 2021-10-17T15:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def hanoi(N,start,dest,via):
if N == 1:
move.append([start,dest])
else :
hanoi(N-1,start,via,dest)
move.append([start,dest])
hanoi(N-1,via,dest,start)
N = int(input())
move = []
hanoi(N,1,3,2)
print(len(move))
for i in range(len(move)):
print(move[i][0],move[i][1]) | [
"64634970+yunseonyeong@users.noreply.github.com"
] | 64634970+yunseonyeong@users.noreply.github.com |
bbea077e0cd49da8d560139dd7b739c639bbe3e1 | 0cca3fd224e21ebebdef7cfa68964351782c7758 | /recon.py | 080e13b20ca52c7cb80eeff15c25f2f3aeee60f1 | [
"MIT"
] | permissive | luckyster895/GoldenRecon | 36c049cc367bf0ebfcadfcb8aa49e63f4b125290 | 71255a8ecd86a1e6ea30524191100a424e72e676 | refs/heads/main | 2023-04-11T01:28:19.946709 | 2021-04-16T13:24:15 | 2021-04-16T13:24:15 | 344,731,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | import os
import socket
import time
from colorama import Fore, Back, Style
def argument(arg):
switcher = {
1: "-A -sC -sV -vvv -oN Output/nmap", #Os scanning,Version detection,scripts,traceroute
2: "-O -V -oN Output/nmap", #OS Detection ,Version scanning
3: "-F --open -Pn -oN Output/nmap",... | [
"luckyster895@gmail.com"
] | luckyster895@gmail.com |
953361aa2a76f53cdaddda8221489ba1aab88156 | 9b6f36f544af5a2c1c042b18dda920c78fd11331 | /omsBackend/apps/zbmanager/serializers.py | dcfe3133e33a0c61dbd9aaed1ab434d86e103d18 | [] | no_license | Nikita-stels/MyOms | a946f08b4ba7abfa8392e98c579320b501a7ca2a | fdaf9d5a2a29b5386c1a86fcf89a2c0d5527687a | refs/heads/master | 2022-09-17T20:40:45.228067 | 2020-01-08T14:41:04 | 2020-01-08T14:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# author: huashaw
from rest_framework import serializers
class ZbHostSerializer(serializers.Serializer):
hostid = serializers.IntegerField()
host = serializers.CharField()
status = serializers.CharField()
groups = serializers.JSONField()
parentTemplates = serializers.JSONF... | [
"1069195546@qq.com"
] | 1069195546@qq.com |
abf248406904ecb544c5ae9b1d87e4652132b972 | b747c83829b650eb45b0d5522970bf71bc8ebe8a | /circuitpy/main.py | 71e57e9b28d1a8f2405d9591935202558cacc381 | [] | no_license | mcscope/liteup | 53048632f85577df953d9dcdb1a517e04dcf95d7 | ff6875319ecec0df02ec2c362e39fbaa77d77e9a | refs/heads/master | 2022-05-05T05:53:35.339022 | 2022-03-16T08:26:28 | 2022-03-16T08:26:28 | 93,298,507 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | """
Liteup 'port' of 2 schemes (perlin and sorts) to Adafruit Gemma
Written in a hackathon at pycon 2018 as a badge decoration
"""
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from digitalio import DigitalInOut, Direction, Pull
from analogio import AnalogIn, AnalogOut
import neopi... | [
"mcscope@gmail.com"
] | mcscope@gmail.com |
61bb6c852fb15c15661258077e3474237b638133 | ed0dad18bc44bb98bcf784d2ccebd8311cf46203 | /src/data/__init__.py | 10b176f60fc5a8277110a15c1097a9c5c1322b1e | [
"MIT"
] | permissive | dankiy/mm-ml-2021 | 08ceafcf19c24e3b5fcf8952fb6b996a0f96b576 | cd49a1be79d4cbdbb3a7b207162d15fc850f34fb | refs/heads/main | 2023-09-02T11:44:13.170662 | 2021-10-09T12:13:52 | 2021-10-09T12:13:52 | 415,299,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from .scale import minmax, standard
from .split import train_test, cross_val
__all__ = [
"minmax",
"standard",
"train_test",
"cross_val",
]
| [
"iorsadg@gmail.com"
] | iorsadg@gmail.com |
3723fa7aa30aba310bf4f9d5e1019ce129b50a69 | 94ea78dc4ae7794c97652368a656e8e45e6a3fbb | /send_mail.py | f5969a4a1f8dcbec04083d856a4e82e34edd9c5d | [] | no_license | nestoralvaro/Utils | 22dc5874c4fbbfb600fa1899b9abbde1f60e493d | acb98c8aade5044cf7089b52622aaea6e2cc7997 | refs/heads/master | 2021-01-20T07:32:05.396671 | 2017-03-04T12:28:26 | 2017-03-04T12:28:26 | 83,889,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import smtplib
"""
description:
Utility for sending e-mails on python
You can choose between sending these e-mails using the local SMTP server, or
you can send the messages using GOOGLE mail SMTP server.
Caution: These e-mails may appear on the "SPAM" f... | [
"noreply@github.com"
] | nestoralvaro.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.