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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7119c5b74f8e158542ca3c1bef363c1492989457 | 2e376c1e945cd1e8afb211d3f57d6773c33f9988 | /create_symbol_file.py | beb6c06ff08bbfb8fb140ac04fe0f4c78aa653cf | [] | no_license | kjmeagher/nitrile | 203c3d20ea116d737948593b51f605a3f35867bc | 4667e0bd3eaf3e865cdd78be2693066fb8ace009 | refs/heads/master | 2016-08-10T10:02:51.864159 | 2015-12-27T18:37:13 | 2015-12-27T18:37:13 | 48,655,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | #import ParseLatex
import string
from nitrile.latex.latex2e.latex2e import latex2e
from nitrile.latex.latex2e.package_defs import Symbol
whitespace = string.whitespace+u'\xa0'+u"\N{THIN SPACE}"+ u"\N{soft hyphen}"
f=open("symbols.tex",'w')
f.write(r"\documentclass{article}"+"\n"+
r"\begin{document}"+"\n" +
... | [
"kmeagher@ulb.ac.be"
] | kmeagher@ulb.ac.be |
2ebd509922758a17835e51eedfb03ade0b3c5743 | 4766f861b7e3eecf2dae050590e10d5b9b49545d | /course/migrations/0001_initial.py | c387881bbc721bbdcafb3ac6478e3a0d4bbf8bd7 | [] | no_license | moramadan98/Clever | 4fc1965050a559a92b42bcb4c8a6ce64d7c4304a | 45ddd59da8a4ff9f48a20c3d5ecf023bda3ab8be | refs/heads/master | 2022-12-04T09:17:55.414454 | 2020-08-15T17:18:08 | 2020-08-15T17:18:08 | 287,759,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | # Generated by Django 3.1 on 2020-08-15 15:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"aboellamm@gmail.com"
] | aboellamm@gmail.com |
1110f7e0dacac9ef0b6b69c736d03aa57d46b364 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.component-Zope-3.2.1/zope.component/bbb/utility.py | f626f6c3e1a4329b351d849e1924758ce526722a | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
8c3b5e2281d80a86b3c7c5c5f51f8ef6abd109c6 | 4ec6e157a1420096bfef27de7262734a2d5207d2 | /san/target/__init__.py | 7d02f7f8691e7e11fcbe63995ce9b95e4a76b003 | [] | no_license | akatrevorjay/solarsan-simple | e4800b87093da1e86a401279c50fc07bc8687a20 | 4b3f58da40a5596d52454907d80fdfca1c6807a3 | refs/heads/master | 2021-01-18T12:36:28.854915 | 2014-01-29T19:07:03 | 2014-01-29T19:07:03 | 15,594,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,448 | py |
import logging
log = logging.getLogger(__name__)
import os
from uuid import uuid4
from .. import conf
from ..utils.exceptions import FormattedException, ignored
from ..storage import ZVolume
from .rtsutils import generate_wwn, is_valid_wwn
from .scst import scstsys
class TargetBaseException(FormattedException):
... | [
"trevorj@skywww.net"
] | trevorj@skywww.net |
ad8c3ae77b57cf5ad1c8038f5ec41c8a394762dc | eb9d561a7b60053f69d9f6b4d7f8411199bd84e7 | /src/puzzle_image_solver.py | d73ba30c5f848c44aa1f742ae3597a6a90d2cff1 | [] | no_license | v-y-l/Block-Design | 7f31590c1aa27a3642cdd2696cbf21e6ed7b7757 | 8765e514dbd1241ac1b9f719de6aab473bce239a | refs/heads/main | 2023-02-15T09:05:42.493960 | 2021-01-13T02:07:45 | 2021-01-13T02:07:45 | 303,569,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,964 | py | from cv2 import imread, cvtColor, COLOR_BGR2RGB
from PIL import Image, ImageDraw
from utils.constants import BLOCK_LENGTH, EDGE_OFFSET, PUZZLE_OPTIONS
from utils.enums import BlockPattern, SearchType, BlockAction, PuzzleAction
from utils.helper import get_pattern
from search import random_search, sequential_search
from... | [
"vlinvlin6@gmail.com"
] | vlinvlin6@gmail.com |
02e84f2320b6330cb6d40f012e3fc4299202767c | b75dde40bfe632ab2e17dbfa8c3201d03a01c873 | /kinematics/src/transform_func.py | 2749eb9fd83f2d4b1e23edc7bf27ddc9b0ee311f | [] | no_license | MKraienhorst/rnm_D | 9a7a8fcd1116bc6a6510ff8588109ac5f2f5168e | 2d50818e0edf1fa6ba15079bcc52b07d4c6471d6 | refs/heads/master | 2021-06-26T15:37:54.073940 | 2020-12-01T09:22:38 | 2020-12-01T09:22:38 | 182,816,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from math import *
import tf.transformations as tf
from geometry_msgs.msg import Pose
def ur2ros(ur_pose):
"""Transform pose from UR format to ROS Pose format"""
# ROS pose
ros_pose = Pose()
# Position
ros_pose.position.x = ur_pose[0]
ros_pose.... | [
"noreply@github.com"
] | MKraienhorst.noreply@github.com |
bcfa1e855126ba5ffc64815bfe4e16c21e3acff7 | 814a7dda3a723c2b4f3a97a7b4d317141d791b26 | /chapter03/ex03.py | 84089ca5df7b2ff193d858a45e7bd2e7118d9ce4 | [] | no_license | yuemj8665/MJ_PythonBasic | dbc84bf4f4fc8818af4a7f7b3cb5d3b6a7cae3e2 | a32660a2e81c21d2b2d1ce0eb7c2d11c417892c7 | refs/heads/master | 2023-03-22T03:06:06.186074 | 2021-03-21T05:42:39 | 2021-03-21T05:42:39 | 347,890,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # 경계선
line = "================================"
# 변수를 선언하고 음수, 0, 양수를 각각 변수에 담는다
iNum1 = -1234567890
iNum2 = 0
iNum3 = 1234567890
# type함수를 이용하여 각 변수에 담긴 데이터 타입을 확인한다
print(type(iNum1))
print(type(iNum2))
print(type(iNum3))
# 경계선
print(line)
# 데이터를 변수에 담지 않고 type() 함수를 사용하여 데이터 타입을 확인한다
print(type(-1234567890))
prin... | [
"yuemjmahu@gmail.com"
] | yuemjmahu@gmail.com |
faec70dcd5ad974da0c95a2aabe5061a3055ab19 | 104a0148271a7c736dbadaca13a1fb983ab85167 | /iDAQ/iDAQ/urls.py | 26481d70649b317fed9966e9601fb0becb14ab09 | [] | no_license | TeamATAuomationTeknix/iDAQ | ac6c83ecf17a1d40667ff372ee959174aefb8917 | e86dd5bc9e0bb031a1c0fa7c4a735520489743e1 | refs/heads/main | 2023-05-04T08:55:37.494581 | 2021-05-28T06:34:32 | 2021-05-28T06:34:32 | 344,101,713 | 0 | 0 | null | 2021-03-22T05:40:06 | 2021-03-03T11:21:51 | Python | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('',include('bknd_iDAQ.urls'))
]
| [
"54470073+TeamATAuomationTeknix@users.noreply.github.com"
] | 54470073+TeamATAuomationTeknix@users.noreply.github.com |
17cd0e56dc3b5a0327dc795dd7cb543a6b31e925 | 7ecc0f1281944aa2aacf249664f7b45d5e658f6f | /apps/goods/migrations/0001_initial.py | 6190a3c6c78d9ae367730abefb2a0a5883aad112 | [] | no_license | shx-1999/MxShop | c886a8699e4b538ab1466e34ee05b7296a5c92a9 | 092bad3784d60baa5283b4606ab346d587fe2b7f | refs/heads/master | 2023-03-18T02:52:57.467721 | 2020-01-09T08:29:41 | 2020-01-09T08:29:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,312 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-12 04:54
from __future__ import unicode_literals
import DjangoUeditor.models
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
... | [
"1450655645@qq.com"
] | 1450655645@qq.com |
cd9b8f28a800ec32b5f41c2a68cdac3eed121c9a | 8de9bfc59996b90b0b6fc54a87189e6ea84070d6 | /Nth_Largest_List.py | 9c3a8954fddfc6c61d18ea8fbbf912f6f2cdffba | [] | no_license | infantcyril/Python_Practise | f992ac92feb272a5e5fbe1a1e9e8a804f6b054a8 | a8af863ecc93346fe15a5a80bc8cf5bd7b90c63b | refs/heads/master | 2020-04-09T12:10:02.118970 | 2018-12-14T11:18:35 | 2018-12-14T11:18:35 | 160,337,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py |
create_lis = []
def nth_largest(lis):
create_lis = []
new_lis = []
final_lis = []
check_list = 0
check_value = 0
while(check_list == 0):
check_list = 1
try:
lis_len = int(input("Enter the max lenth of list"))
except ValueError:
... | [
"noreply@github.com"
] | infantcyril.noreply@github.com |
6afd0f56225c145cef326c7abc2c9be8c444f047 | 435e0fd161236462e3af4bcd046a98afb78443db | /Aula6_2.py | 344945006b4421170921b26d9905301d777f8e14 | [] | no_license | bernardbrandao/Python2019_1 | cf4049dcfee6b4a5daace93f0b75f9cc675e85c4 | 6dd309b3f1d7f39c475dcb2a9a0c4bd63bf2c416 | refs/heads/master | 2020-04-28T12:19:22.036873 | 2019-05-28T20:45:33 | 2019-05-28T20:45:33 | 175,272,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import turtle
t= turtle.Turtle()
lenght = int(input("Digite o tamanho do lado do quadrado: "))
def square(t,lenght):
jn = turtle.Screen() # Configurar a janela e seus atributos#
jn.bgcolor("lightyellow")
jn.title("Quadrado")
for i in range (4):
t.forward(lenght)
t.left(90)
square(t,lengh... | [
"noreply@github.com"
] | bernardbrandao.noreply@github.com |
244ecb3d7cda2b212c28968b72151583aa73ab22 | 7fb87945b77d3adaedd8a155c981e97946734e41 | /packstack/plugins/amqp_002.py | bc822100bc810d982c6734ba0f87cfae7797e907 | [
"Apache-2.0"
] | permissive | Tony910517/openstack | 916b36368ea9f17958e4eb04bd1f9daf3aba9213 | 4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0 | refs/heads/master | 2020-05-20T01:05:22.499224 | 2019-05-07T01:11:05 | 2019-05-07T01:11:05 | 185,292,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,981 | py | # -*- coding: utf-8 -*-
# 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, software... | [
"471123674@qq.com"
] | 471123674@qq.com |
e71f0a615ae491bb9857459804dafdee895970ae | fd5bc0e8a3ac2b7ba793287084f725a8cd10b5ef | /tests/bench/loadrelated.py | 9942ed0b1e2b9a0ae4d8a8c7c923e95f0e30e58e | [
"BSD-3-Clause"
] | permissive | moyaya/python-stdnet | 404cb645b80c59b08ce4506480ce897c24032dcd | 8d6c41ba1ddb8024e6bfab859f99bf96966d04cf | refs/heads/master | 2021-01-24T01:00:18.203118 | 2012-01-13T18:23:20 | 2012-01-13T18:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | '''Benchmark load realted.'''
from stdnet import test, transaction
from stdnet.utils import populate, zip
from examples.data import FinanceTest, Instrument, Fund, Position
class LoadRelatedTest(FinanceTest):
def setUp(self):
self.data.makePositions()
def testLoad(self):
... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
86516a8b464677c8ca58d5b4a235ecee5d11cc8d | 8dc92f653e54551d9c8856f8ab7c723f68d4f932 | /cogs/commands/mod/modutils.py | b6135d2292a520e22f471c6648ca0c67dc47ea96 | [
"MIT"
] | permissive | un-simp/gir | e1dda401733b5c2adbca83ce3267f6bc4a627e11 | 93c2504b328869c5f93583157fb2b141261f9d53 | refs/heads/main | 2023-06-28T02:52:28.789770 | 2021-07-14T10:39:57 | 2021-07-14T10:39:57 | 374,383,982 | 0 | 0 | MIT | 2021-06-06T14:40:22 | 2021-06-06T14:40:22 | null | UTF-8 | Python | false | false | 12,614 | py | import datetime
import pytz
import traceback
import typing
import humanize
import discord
import cogs.utils.permission_checks as permissions
import cogs.utils.context as context
from data.case import Case
from discord.ext import commands
class ModUtils(commands.Cog):
def __init__(self, bot):
self.bot = b... | [
"aamir@farooq.xyz"
] | aamir@farooq.xyz |
a5ae930e8fe263663440b7fda29bd5a056e44d78 | b589f3997e790c3760ab6ddce1dd1b7813cfab3a | /232.py | e2c5834920299064245bc4ccf2a5c4e5fe64f1ff | [] | no_license | higsyuhing/leetcode_easy | 56ceb2aab31f7c11671d311552aaf633aadd14a8 | 48d516fdbb086d697e2593a9ce1dbe6f40c3c701 | refs/heads/master | 2022-12-04T00:49:33.894066 | 2022-11-15T20:44:36 | 2022-11-15T20:44:36 | 135,224,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | class MyQueue(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack1 = []
self.stack2 = []
self.slen = 0
self.curr = 1 # push stack, 2 for pop stack
def push(self, x):
"""
Push element x to the back of queue... | [
"noreply@github.com"
] | higsyuhing.noreply@github.com |
7e878f5b9883e5ac0dc76a842350076534aa0576 | 2d85cb9e2d79f3d58f81dfa41ee468fee861a322 | /sourceCode/lidar_Playground.py | 8bc1cb415b82325cb3da21f735d8a6ee6e191355 | [] | no_license | aldenkane/valet | 076d68553efb1511dce5d7930d7979e13b6df67b | 9c55ee68b50624245df6c54059649ef759e2c1d1 | refs/heads/master | 2021-02-14T04:25:10.820801 | 2020-03-06T06:04:08 | 2020-03-06T06:04:08 | 244,768,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | import smbus
# Declare Globals and Device Parameters
CHANNEL = 1
DEVICE_ADDRESS = 0x62
ACQ_COMMANDS = 0x00
STATUS = 0x01
FULL_DELAY_LOW = 0x10
FULL_DELAY_HIGH = 0X11
RESET_BYTE = 0x00
BIASED_DISTANCE = 0X04
read_Distance = 0
# Declare Bus w/ SMbus, Intialize I2C
bus = smbus.SMBus(CHANNEL)
# Initialize LiDAR by Wr... | [
"akane2@nd.edu"
] | akane2@nd.edu |
c91bf2757b50135b93cccc7037a6b4d71b11c283 | 7aaa5d539dc49e007ca7c152ba01b5e7d2c9f4b3 | /ALDS1/11B_DepthFirstSearch.py | 5702a719d8ef57302acc9ebc11bcfa0969a0e9e8 | [] | no_license | fujihiraryo/aizu-online-judge | 3011180660bec1febd4d7b973855814646625346 | f5435eaa4612773e9c1c48bf72dfdfd2921be114 | refs/heads/master | 2022-05-17T18:14:54.828672 | 2022-04-24T04:17:20 | 2022-04-24T04:17:20 | 233,409,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import sys
sys.setrecursionlimit(10 ** 7)
class DFS:
def __init__(self, graph):
n = len(graph)
self.graph = graph
self.visited = [0] * n
self.preorder = []
self.postorder = []
self.pretime = [0] * n
self.posttime = [0] * n
self.time = 0
self... | [
"fujihiraryo.team-lab.com"
] | fujihiraryo.team-lab.com |
7b9ac2b2812f556029a4cc9536b2977c7bc6f657 | d1aa55ea8cfabf6051af24bb31a25dd9df4a0d41 | /pip.py | fc9c3ebc0e92932f0324ed027943120f05e6b930 | [] | no_license | Deoduce2me/temp-predict | 9a8a3bc08e5f62e84343e84b28d13bc50c84a682 | 59f105fd8a310f775f234ecf2c07611c295639a4 | refs/heads/main | 2023-08-29T20:33:58.975874 | 2021-10-12T19:27:55 | 2021-10-12T19:27:55 | 416,043,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | import pandas as pd
import seaborn as sns
import streamlit as st
# import plotly.express as px
# import shap
st.set_option('deprecation.showPyplotGlobalUse', False)
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import string
import altair as alt
import pickle
st.title('Temperature Prediction')
st... | [
"deolasolomon10@yahoo.co.uk"
] | deolasolomon10@yahoo.co.uk |
57cd82ee8cf61947cac176ab1e3935c3582c06d2 | bc2a96e8b529b0c750f6bc1d0424300af9743904 | /acapy_client/models/credential_definition_send_request.py | 8d1879bd302faeaabbeac1ec17a5fbce0eddf4c4 | [
"Apache-2.0"
] | permissive | TimoGlastra/acapy-client | d091fd67c97a57f2b3462353459780281de51281 | d92ef607ba2ff1152ec15429f2edb20976991424 | refs/heads/main | 2023-06-29T22:45:07.541728 | 2021-08-03T15:54:48 | 2021-08-03T15:54:48 | 396,015,854 | 1 | 0 | Apache-2.0 | 2021-08-14T13:22:28 | 2021-08-14T13:22:27 | null | UTF-8 | Python | false | false | 2,441 | py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="CredentialDefinitionSendRequest")
@attr.s(auto_attribs=True)
class CredentialDefinitionSendRequest:
""" """
revocation_registry_size: Union[Unset, int] = UNSET
schema_id: Union... | [
"dbluhm@pm.me"
] | dbluhm@pm.me |
7283480faacc4de152ff7da36c1ab85ef857e4ab | 0ec072ea843808dd2fe7077c18afbebb8fe4b243 | /unrolled/scripts/launch_impacts.py | 179ac2151f232435e699575b7d25e6a1a89e7812 | [] | no_license | Arc-Pintade/combine-ttbar | edbbabc9b06993d19803c8dda3ce7fe812a13e24 | f327e9ef73ed9c9553a86aad55421354024be40a | refs/heads/main | 2023-06-16T03:35:44.844492 | 2021-07-13T09:13:51 | 2021-07-13T09:13:51 | 385,536,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | import os, sys
import argparse
###################
## Initialisation
###################
parser = argparse.ArgumentParser()
parser.add_argument('observable', help='display your observable')
parser.add_argument('year', help='year of samples')
parser.add_argument('asimov',nargs='?', help='set if asimov test', default=... | [
"a.carle@ipnl.in2p3.fr"
] | a.carle@ipnl.in2p3.fr |
11e6f88fc786ee42dd1cebc462803a9365604476 | f7d3b572b62bc4b8400a84ac2afa5d01cb96196b | /ex32_Lists.py | 91ac3784ec9ac415e767adf2ea4bcbc6d381bf4a | [] | no_license | nairarunraj/LearnPythonTheHardWay | 559432351dcd96f4e13c630815f03babf3ef7ba1 | a7c398fcc92921f5bc8dcaa3774712c09beed519 | refs/heads/master | 2021-01-23T16:24:50.302675 | 2017-06-17T20:14:29 | 2017-06-17T20:14:29 | 93,296,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # ex32 Lists
the_count = [1,2,3,4,5]
fruits = ['apples', 'oranges', 'mangoes', 'pears']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
# going through a List
for number in the_count:
print "This is count %d" % number
# same as above
for fruit in fruits:
print "A fruit of type %s" % fruit
#... | [
"arunraj@msn.com"
] | arunraj@msn.com |
0bf464fb6204343b71d383b81c94bf835f6e6d58 | 58c34c597e825634fb5833b22e178df4fe570d39 | /lib/adapter/cheat_cheat.py | 9844008c6be19c9654ed8c373292de2a9e5132c6 | [
"MIT",
"CC-BY-SA-3.0"
] | permissive | sullivant/cheat.sh | 2eb731eb1d7c6b03d65b2dd5f9b6a325b167c005 | e2e69b61a361751a145b977ca2f58ae4a50d756e | refs/heads/master | 2020-05-30T09:36:58.834850 | 2019-05-31T19:47:53 | 2019-05-31T19:47:53 | 189,649,817 | 1 | 0 | MIT | 2019-05-31T19:45:23 | 2019-05-31T19:45:22 | null | UTF-8 | Python | false | false | 549 | py | """
Adapter for https://github.com/cheat/cheat
Cheatsheets are located in `cheat/cheatsheets/`
Each cheat sheet is a separate file without extension
"""
# pylint: disable=relative-import,abstract-method
from .git_adapter import GitRepositoryAdapter
class Cheat(GitRepositoryAdapter):
"""
cheat/cheat adapter
... | [
"igor@chub.in"
] | igor@chub.in |
ade0b23d401c7a201eec94e034a7bb38e413996e | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /users/urls.py | 98678c65848e0cd95f42b0434063e6edf15da19f | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 595 | py | from django.urls import path
# from .views import CustomLoginView, UserCreateView, UserListView, CustomLogoutView
from .views import CustomLoginView, CustomLogoutView, ProfileView
from django.contrib.auth.decorators import login_required
app_name = 'users'
urlpatterns = [
# path('', UserListView.as_view(), name='... | [
"oduntan@live.com"
] | oduntan@live.com |
ae5e290bc78c26ac181b86513279b342823c5f81 | da407694ec45f9dea19546bfcf81e41ac6f58a86 | /dataloader/yolov3_parser.py | fe27983903b67be012bd78949440136966d0cadb | [] | no_license | lucifer443/Yolov3_tensorflow-keras | ca273cae1ff2a376ca3956df1551aa9a4e89d1a6 | 9c44391876f91b66a60b4e04e428fc896072c2fb | refs/heads/master | 2022-12-17T15:46:03.751463 | 2020-09-22T16:11:07 | 2020-09-22T16:11:07 | 294,705,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,962 | py | # Copyright 2019 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... | [
"bitcm@foxmail.com"
] | bitcm@foxmail.com |
90e60df945a1366f436926f97bb2b496e2311a33 | 5dc12bcddcfcf4a9a07792058dff9e27891ed145 | /recursion/sum.py | dedeeb9adbbdc89243ef4e86142b757a6b18f949 | [] | no_license | ajitabhkalta/Python-DataStructures | e18079a68d89218aa2bacfe36f6e70966a968779 | c3e498154ecca4c366ed7613039779b112335715 | refs/heads/master | 2020-07-01T20:16:02.371302 | 2019-08-19T16:41:03 | 2019-08-19T16:41:03 | 201,286,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def rec_sum(n):
if n==0:
return 0
else:
return n+ rec_sum(n-1) | [
"ajitabhkalta@gmail.com"
] | ajitabhkalta@gmail.com |
90ddd58ed63dd5bf7a2c7433de0046b40811ee14 | 4d7fd59810aad8bd63bbf8fcc2dbb1158009bdd0 | /split-2020-05-02_15-13-21-928.py | ca6b708705f54cac4c2b848bb21eb51a42814426 | [] | no_license | doughbuoy/learning_python | 0346ffd97c310a9bd4fec69c2d5958fb0fc71dcc | 36816c2cb024b60366c5df0d4bf6e11d142e7ece | refs/heads/master | 2022-12-04T05:57:44.301124 | 2020-08-28T00:44:41 | 2020-08-28T00:44:41 | 259,989,146 | 0 | 0 | null | 2020-08-28T00:44:43 | 2020-04-29T17:05:10 | Python | UTF-8 | Python | false | false | 71 | py |
s1 = ["the", "rain", "in", "spain"]
s2 = " ".join(list)
print(s2)
| [
"noreply@github.com"
] | doughbuoy.noreply@github.com |
fd390f8efeda3d52513efe145ef2bdebcc777c5a | e8d97c6d1544d5ddcf24e511d003a2999fdef2f7 | /config.py | c69d7c80817655a4c85d0b5044d9d70abcbaa8a1 | [
"MIT"
] | permissive | rotide/rpi.tv | e94c34b55ba80aca917ad6bc6b59d0b666d9b5fc | d71ab115a02f1fcf10135a7b73ac0017329ccdff | refs/heads/master | 2021-01-25T14:03:52.962950 | 2018-04-01T11:32:27 | 2018-04-01T11:32:27 | 123,646,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config(object):
# Edit in .env file
SECRET_KEY = os.environ.get('SECRET_KEY') or 'NOT_so_SECR3T_kEY'
# User Configurables
#SQLALCHEMY_DATABASE_URI = "sqlite:/... | [
"timo@rotide.com"
] | timo@rotide.com |
83e8e38db5ad1710bc6f9d49896e7d20d3f3ee3b | 599c925482db61a256d3e0c44c62beb607c5367b | /Config.py | 3a780cfd72ac3e3aba59bc5db630733ae46f7325 | [
"MIT"
] | permissive | bubundas17/ai-btc-trading-bot | d994ec85ea917f64f3ec1b630c4f264b6ff8cbb4 | 8be09c24e171ed1bd5f09d802cbfdd7a83246b4e | refs/heads/main | 2023-08-08T09:09:45.803740 | 2021-08-30T06:50:46 | 2021-08-30T06:50:46 | 400,804,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | DATASET_DIR = "datasets/"
COIN_PAIR = "BTC-USD"
GRANULARITY = 60 # Data every 1 minute
TRAINING_MONTHS = ["2018_06","2018_07","2018_08","2018_09","2018_10","2018_11","2018_12","2019_01",
"2019_02","2019_03","2019_04","2019_05","2019_06","2019_07","2019_08","2019_09",
"2019_10","20... | [
"bubundas17@gmail.com"
] | bubundas17@gmail.com |
787c22defeb8c8744d74df13cbcedfae63fabfcc | c61d334ada07f688d0b4ab1418effa5e1009b234 | /setup.py | c24257ff607c07d6255eb6502699b766561adf4c | [
"MIT"
] | permissive | ShrekFelix/Variational-AutoEncoder | 50746ad38cf557ac9683b2c51c1f80c575c23823 | de4bbb9fc0e048be722bfd458aa2cdfc86fc9604 | refs/heads/master | 2020-03-15T00:54:24.127187 | 2018-05-03T03:10:48 | 2018-05-03T03:10:48 | 131,881,040 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import setuptools
setuptools.setup(name = "Variational_Autoencoder",
version = "1.0.2",
author='Weiyu Yan',
author_email='weiyu.yan@duke.edu',
url='https://github.com/ShrekFelix/Variational-AutoEncoder',
py_modules = ['VAE'],
... | [
"wy47@duke.edu"
] | wy47@duke.edu |
27282a88578e3530b456399cac4b11018cde5044 | a8e2c66b3ebadfc17ee9aee197b3f466534cee16 | /ytn11/wh/wh/items.py | 0c48330df2942d96bbb37a839696a43850e30629 | [] | no_license | yintiannong/98kar | 49b6db186a4543a7c50671df990bb491846c1a98 | 3863529f57e9d2d9bc1bdf8188916e25ad289db0 | refs/heads/master | 2022-01-07T05:49:31.566453 | 2019-05-22T07:04:45 | 2019-05-22T07:04:45 | 187,794,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | 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 WhItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
company = scrapy.Field()
company_id = s... | [
"1532295578@qq.com"
] | 1532295578@qq.com |
e28bd946d5521c44aeca3d41a3f8e06641c1bca6 | 498c6775739fedca23ad3a78151106bb5496185a | /back_end_mod_python/locker_info.py | baba43db2b7bbfca6e23431c967efed711438fa1 | [] | no_license | dimahajan/locker_system | 31a0bc5a87531d9491397f29c7a750fe173d18b8 | 7b18d50dec2377b93745455146fec636994d7e29 | refs/heads/master | 2020-05-06T15:38:46.546067 | 2019-05-03T00:04:52 | 2019-05-03T00:04:52 | 180,200,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | import MySQLdb
import json
from config_path import data
import datetime
def add(self, key, val):
self[key] = val
def index(req):
db = MySQLdb.connect("localhost",data.mysql_user,data.mysql_pswd,data.database)
cursor = db.cursor()
s = "select lk_id from locker where cb_id=%s;"%(req.form['cb_id']);
c... | [
"mahajandi927@gmail.com"
] | mahajandi927@gmail.com |
ea084e6356250780555a7360743a44f37ffc78be | b38004d90ce4c2367e24635c995655c51bbcacc1 | /project/settings.py | c6022b7ff2dcc6ea9d5a49d456d43f1683045882 | [] | no_license | pplusua/djng | 7db5bf43d564ead39ba2abc886671b7ca7a52117 | 42c949f26f8ba5f6d356fbec4c6e634724981ac9 | refs/heads/main | 2023-04-30T18:03:03.453538 | 2021-05-23T20:31:42 | 2021-05-23T20:31:42 | 370,151,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from ... | [
"pplusua@gmail.com"
] | pplusua@gmail.com |
3a481645968d196dbced2a5b0818981b0be1d315 | ec11e20bc42167414c1a785f653bbbb588173b02 | /ddd/infrastructure/provider/catalog_provider_impl.py | f8a4f4d23d2d79d99b5b244293d4faf4089e990c | [
"MIT"
] | permissive | shijie3/python_ddd_sample | b5cdc1903737d3ea50359d28fa812175866a774d | cdd50950800869d2a70a8b488c46ce7fb5cdbc85 | refs/heads/master | 2021-05-06T09:17:11.472927 | 2017-12-13T16:20:23 | 2017-12-13T16:20:23 | 114,055,251 | 0 | 0 | null | 2017-12-13T00:50:45 | 2017-12-13T00:50:44 | null | UTF-8 | Python | false | false | 455 | py | # coding=utf-8
from domain.provider.catalog_provider import CatalogProvider
class CatalogProviderImpl(CatalogProvider):
def check_status(self, package):
print('check package status')
if __name__ == '__main__':
from domain.base import Provider
provider = CatalogProviderImpl()
print('Subclas... | [
"15950562214@sina.cn"
] | 15950562214@sina.cn |
23db145ef45ccfbc249edf95091b895c9b2e79d5 | c09beed3fc2a3233a9eba680ffcdfe37349ad221 | /controller/fonts.py | 537d0db5b5e32cf63fc2b5695a0d5483411a9e92 | [
"MIT"
] | permissive | luctowers/pixel-perf-monitor | 0c50d384b6310be3a4a584f7a0a5cfea87865d7e | 75c45206102a6c3a5a3e55cf4c14643db6706314 | refs/heads/main | 2023-01-21T11:23:24.969718 | 2020-11-30T01:10:19 | 2020-11-30T01:10:19 | 307,035,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from adafruit_bitmap_font import bitmap_font
MINISTAT_FONT = bitmap_font.load_font("/ministat.bdf")
| [
"luctowers@gmail.com"
] | luctowers@gmail.com |
506619fa2048aa6c9646656e136d94d4afed722d | 390181ba87477d4d7b8b3ccf209a3d12f1b9528f | /base/IO/do_string.py | d37a49271ed81090eb49b78bd612852e5241b30a | [] | no_license | emperwang/python_operation | 8f5d75255cfc7f83911f784224f098bcc8b9e84f | 9b4b85fa23ce531cff5c75f08a9e84735e7b5f37 | refs/heads/master | 2023-02-20T13:14:50.960939 | 2022-09-17T01:04:44 | 2022-09-17T01:04:44 | 158,133,758 | 1 | 0 | null | 2023-02-16T04:33:21 | 2018-11-18T22:36:47 | Python | UTF-8 | Python | false | false | 375 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from io import StringIO
# write to string io
f = StringIO()
f.write('hello')
f.write(' ')
f.write('world!')
print(f.getvalue())
#Read from stringio
f = StringIO('水面细风生,\n菱歌慢慢声。\n客亭临小市,\n灯火夜妆明。')
while True:
s = f.readline()
if s == '':
break
print(s.s... | [
"544094478@qq.com"
] | 544094478@qq.com |
706c3a6306bafbc40a4821e71421ca92672a7840 | 4bf67ba6af581c75676663470bcb56c93b1f9e62 | /src/Problem_4/answer.py | 0e7943846cabcb81f731d27324f6f6ce45b9367f | [
"MIT"
] | permissive | MattSeen/project-euler | e56119dfd8cb305f3db9107d824c8984b5b99587 | 7a0b5ce6ed906415b34a37a0ccde7c0a486dd8d4 | refs/heads/master | 2020-05-18T05:59:00.564573 | 2014-02-10T10:23:45 | 2014-02-10T10:23:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | '''
My attempt at Problem 4. This provides the right answer, however it is quite
slow for what it is doing and I would like to know how I can go about
speeding it up.
'''
def is_palindromic(num):
'''
Test if a number is palindromic,
Essentially a string test... probably a performance b... | [
"matt.c1986+github.project.euler@gmail.com"
] | matt.c1986+github.project.euler@gmail.com |
286fe2e7cad64b074222523912f3524af494f398 | fde6fdafd494ae3b088c9a371f45209087250de5 | /travello/migrations/0001_initial.py | 494a48226eea32fe7450442da0f78913018df60a | [] | no_license | ashutosh181/Django-Projects | 9e94aae3ad91a727844dc1d1decbb3936d685a7f | ec110a98c80b3029beb0ccd56d33de7e18165322 | refs/heads/master | 2022-11-03T12:34:40.242958 | 2020-06-15T21:14:28 | 2020-06-15T21:14:28 | 272,537,143 | 0 | 1 | null | 2020-06-15T20:57:01 | 2020-06-15T20:28:10 | HTML | UTF-8 | Python | false | false | 639 | py | # Generated by Django 3.0.1 on 2019-12-26 20:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Destination',
fields=[
('id... | [
"noreply@github.com"
] | ashutosh181.noreply@github.com |
0f6854369ee7234b1e1fa884efb0fdd17d10e3cf | b0435e890ca9b8b73cb6a15e531ccdac13d4c97d | /182/182.py | f29587701ce58b450581c397f39fdb46ba3365ae | [] | no_license | zlsa/dailyprogrammer | 261d00afa8051b2aaa179a86aad89012c070beaa | b66e21b6d6b6f2527fee2f6813d0ae4caffda06f | refs/heads/master | 2016-08-08T15:20:03.651014 | 2014-10-03T23:34:13 | 2014-10-03T23:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | #!/usr/bin/python3
with open("input.txt", "r") as f:
line = f.readline().strip().split()
cols, width, spaces = [int(x) for x in line]
x = f.read().split()
output = []
buf = ""
for word in x:
if len(word) + len(buf) + 1 > width:
output.append(buf)
buf = ""
buf = (buf + " " + word).stri... | [
"zlsa@outlook.com"
] | zlsa@outlook.com |
232440fd03b37880a2d7298b501b1131d2089d5a | 9b5e6a76efb087d8609d691864a5bcea45557d98 | /django-react/backend/scholar_apis/scholar_apis/settings.py | 76f106617fd642db3d9ce637a07d05ef21627106 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | arman-mahtabfar/Database-Systems-Final-Project | bd699dc109c64c8dbe7597e14007e980e1033739 | 9e209385749e7dadc3cc7d89f597a49bc2323a54 | refs/heads/master | 2023-08-15T03:30:22.682212 | 2021-05-17T18:53:02 | 2021-05-17T18:53:02 | 282,971,203 | 0 | 0 | null | 2021-09-22T19:41:50 | 2020-07-27T17:40:28 | JavaScript | UTF-8 | Python | false | false | 3,429 | py | """
Django settings for scholar_apis project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"ndholaria@ymail.com"
] | ndholaria@ymail.com |
e8ae67da9e630730ae1df9ffca7fa2d4296f1d26 | 24dac117231c9ca39e09e1fd27db8de295a7fe45 | /Trident/settings.py | 2c943c27e79ee0020f4fe655aed1df9d616f3972 | [] | no_license | rohitrajput-42/Trident | 784f23b9fa02d405d55715ded627c274a1c887f2 | 0d75ef954c5d6f88d3b4937e90ab9aace120bdb9 | refs/heads/main | 2023-06-13T06:10:19.172276 | 2021-07-10T16:25:22 | 2021-07-10T16:25:22 | 384,705,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"rohit1471997@gmail.com"
] | rohit1471997@gmail.com |
481d85e6d7a0a603c4b60c1f68028ce733577d8c | 8caafdb429f464cc74759daedb72f75e6482bdf5 | /L3 convert the matrix to a sparse matrix using some threshold value.py | b21e934bf683224e974c20405ef0712c74248ba1 | [] | no_license | K-Jaswanth/DSP-Lab-and-Assignments | b782a2db1e357d6501e3274e5d31810c7621b6bb | 59fcf6fd9ba5aeb964007d1418627006fa71ee62 | refs/heads/master | 2023-01-31T22:44:42.495877 | 2020-12-16T03:40:42 | 2020-12-16T03:40:42 | 291,894,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | #convert the matrix to a sparse matrix using some threshold value
a= int(input("Enter Number of rows:"))
b= int(input("Enter columns:"))
matrix=[]
for i in range (a):
c=[]
for j in range(b):
j=int(input("Enter Number in matrix"+str(i)+" "+str(j)+" "))
c.append(j)
print()
matrix... | [
"noreply@github.com"
] | K-Jaswanth.noreply@github.com |
311b64e499752b8f19be4d85c59a5b14455ada39 | a1a57977131ea917a3f3094dae4a3d18846103c0 | /unittests/pytests/problems/TestTimeStepUser.py | c53c39a3337525c4aa9aa5702ae8367062012113 | [
"MIT"
] | permissive | rwalkerlewis/pylith | cef02d5543e99a3e778a1c530967e6b5f1d5dcba | 8d0170324d3fcdc5e6c4281759c680faa5dd8d38 | refs/heads/master | 2023-08-24T18:27:30.877550 | 2020-08-05T16:37:28 | 2020-08-05T16:37:28 | 154,047,591 | 0 | 0 | MIT | 2018-10-21T20:05:59 | 2018-10-21T20:05:59 | null | UTF-8 | Python | false | false | 4,095 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
e8c9c8c1592000cd770a1637b2d29b4689424637 | 56d1504524ef8d396fbb07b82bd23b3bdef48a01 | /clase1_intro_python/clases.py | 7cb2d4763a5f433fe848cd0c2bfa8a5878c53415 | [] | no_license | itactuk/ITT521 | 134eb008d5b8819fb041bc6a2c3981ebf92d9b31 | 9fac795f735d422555de5e750fbe31751f4eab15 | refs/heads/master | 2020-12-08T07:40:03.515236 | 2020-03-25T23:59:57 | 2020-03-25T23:59:57 | 232,928,303 | 0 | 0 | null | 2020-02-13T01:32:01 | 2020-01-09T23:47:18 | Python | UTF-8 | Python | false | false | 446 | py |
class Persona:
pass
class Estudiante(Persona):
def __init__(self, nombre, apellido): # constructor
self.nombre = nombre
self.apellido = apellido
def obten_nombre_completo(self):
return self.nombre + " " + self.apellido
listado_est = [Estudiante("Jesus", "Rosario"), Estudiante("O... | [
"ivantm24@gmail.com"
] | ivantm24@gmail.com |
ebc5ee0c112bd9c061dc40a028fd788a5af265fb | ad219848618b2625d15df3dd4c8f5deab91e469e | /udp_transport/udp_client.py | 92142ae1ed36552413937dc4a15a3949701d66c6 | [] | no_license | suse-grit/IO_network | bfbeb407af5a132aa42b66f93305ba853fc5ff11 | d0cec22e0d71a5f720f88aad0ae7232875eb84a0 | refs/heads/master | 2022-04-25T02:19:10.186434 | 2020-04-17T01:30:20 | 2020-04-17T01:30:20 | 256,127,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # 基于UDP传输服务的网络套接字实现(client)
from socket import *
import sys
ADDR = ("127.0.0.1", 8888)
client = socket(AF_INET, SOCK_DGRAM)
# 设置客户端套接字IO为超时非阻塞(如果服务端无响应,则客户端程序退出!)
client.settimeout(3)
while True:
try:
data = input("meg>>").encode()
client.sendto(data, ADDR)
meg, addr = client.recvfrom(1024)... | [
"1129212285@qq.com"
] | 1129212285@qq.com |
33533937019486440ae14a967746c3353ca9444f | 1735ea59cc57f9a957c7c1fd9a6d5e5b88a858b2 | /demo/trial.py | 9eb837d57c2329adacd94b8743977cfeb7abcf12 | [
"MIT"
] | permissive | haydensoliver/CI_testing | ce67fa70765f6047b62b42cfbab1108469416e58 | 4a3b99d907f6a00c9f504c6634d36624205a0dc8 | refs/heads/master | 2021-08-14T22:44:33.880652 | 2017-11-16T22:53:36 | 2017-11-16T22:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def square(x):
"""Finds the square of the input.
Args:
x (float): The number to be squared.
Returns:
x2 (float): The squared number.
"""
return x**2
| [
"haydenoliver@gmail.com"
] | haydenoliver@gmail.com |
c1b5b68b839b14ebd5fd4d98a8bd3722aace376d | 2572ee0bc833948ceeca74cc7abe80431172b0a8 | /mitmdump_Test/test.py | 78d51f4e8d09d32ba10eaacaadd1d16c0e110548 | [] | no_license | Alacazar99/Spider_Train | 723890b07ae29867a1fedb67b144f1014d496b09 | e8cd573e8c6541c0a7c96944efeeee4454cdf1bb | refs/heads/master | 2020-12-24T01:52:18.872411 | 2020-02-21T02:19:47 | 2020-02-21T02:19:47 | 237,341,938 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from mitmproxy import ctx
# 写法唯一(请求)
def request(flow):
# print(flow.request.headers)
# ctx.log.info(str(flow.request.headers))
# ctx.log.warn(str(flow.request.headers))
ctx.log.error(str(flow.request.url))
# ctx.log.error(str(flow.request.host))
ctx.log.error(str(flow.request.method))
ctx.... | [
"11788248080@qq.com"
] | 11788248080@qq.com |
a4be89634604128b43e928cc1f94b4b75f7f344c | f9c0650e70d7ae5bf5b071c57e6e2358fdd856af | /vital_site/vital/views/student_view.py | 634ae58818a8a07327ce3dba8dbe6bfda2b81752 | [] | no_license | mrunmayichuri/virtual_lab | 36f60a448c41e77027d532903ea051e896355aec | 40d8004af8841a2170b796501a54e7579beaba94 | refs/heads/master | 2021-01-20T16:34:54.494460 | 2016-05-27T16:13:44 | 2016-05-27T16:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | from django.shortcuts import get_object_or_404, render, redirect
from django.contrib.auth.decorators import login_required
from ..models import Course, Registered_Courses, Virtual_Machines
from ..forms import Course_Registration_Form
from ..utils import audit
import logging
logger = logging.getLogger(__name__)
# Cre... | [
"richie@Richies-MBP.fios-router.home"
] | richie@Richies-MBP.fios-router.home |
cab9449ed8faee9af97c99a92ed9f878789fa9d4 | ad652d8eb0b4f94a4a106098193ec0dbfef9025e | /app/blackjack/cards/__init__.py | 78ab51c271c768ba7975932da1c9bf1e8d066647 | [
"MIT"
] | permissive | ecsnavarretemit/it-238-blackjack | 8afd1719f8fc1947c0f26431eee17cc88238ccc0 | b83fcdca1b6c653a95e95597f15ab1e7fcbea3ad | refs/heads/master | 2021-04-30T22:54:11.442167 | 2016-10-13T13:36:36 | 2016-10-13T13:36:36 | 67,337,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | # __init__.py
#
# Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
# Licensed under MIT
# Version 2.0.0
| [
"esnavarrete1@up.edu.ph"
] | esnavarrete1@up.edu.ph |
8daf812112e2be6da2dd6092b66af41511905194 | cde3b4f9da0bc8cd4771b78cfae790ffebbd0726 | /variable_position_plotter.py | 11fc3fe2b475036b203ed03e119e3e9bcd7a33c7 | [
"MIT"
] | permissive | pabloslash/H1rnN1 | 2d697b7a36f818ae9e28d7bfab9fac7790251770 | fa95d0d0f5cb069870b961851a64c935cba26c07 | refs/heads/master | 2020-04-21T04:00:20.613433 | 2018-11-09T20:53:26 | 2018-11-09T20:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | import matplotlib.pyplot as plt
from fasta_sampler_v2 import *
import numpy as np
from mpl_toolkits.axes_grid1 import make_axes_locatable
plt.style.use('fivethirtyeight')
width = 0.5 # the width of the bars
thresh = 0.1
fs = FastaSamplerV2('data/HA_n_2010_2018.fa', 'data/HA_s_2010_2018.fa')
fs.set_validation_years... | [
"michaelewiest@gmail.com"
] | michaelewiest@gmail.com |
03b4ed7bc4ae7aa65adab896b0959ce2eca16921 | d02bace077e11573b2f3f03e5a1bf4bc2d0986e7 | /workflow/rules/mapping_classified_isoforms.smk | 6a4cf4ddd9e2a70d439c91e318a93dfef59eded7 | [
"BSD-3-Clause"
] | permissive | wuzengding/PBFLIP | dd85af0ef0d09b75191a4804327ea609460813dd | f356e3a0d8fedc39ab81ae89ffd937eb4a49ffeb | refs/heads/master | 2023-09-03T10:37:34.825399 | 2021-11-15T15:07:22 | 2021-11-15T15:07:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | smk | rule run_classified_tx_mapping:
input:
squanti3_output_filtered = rules.run_sqanti3_filter.output[5]
output:
squanti3_output_filtered_bam_tx = rules.all.input[33]
params:
genome = config["REFERENCES"]["genome"],
ax = "splice",
secondary = "no",
o = "-O6,... | [
"saranga.wijeratne@nationwidechildrens.org"
] | saranga.wijeratne@nationwidechildrens.org |
1f720ff637cb1caa2f963b6153bab22843de5da5 | 3d78431e010a6b6751b001a59072574b8c5b31f7 | /project3/Proj04-01/Proj04-01.py | bff8b0fa410f0fe8f0a2e2b09554b0b99ab185d7 | [
"Apache-2.0"
] | permissive | zhouzhaoze/dip | 9f488d241a42f4b9367c6ebe4e08c0dc3a42122a | b76fe1602bf8dd0463f9bebc416c8a07b4be351b | refs/heads/master | 2020-07-04T15:58:46.805718 | 2014-01-11T16:22:20 | 2014-01-11T16:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | Fig0441(a)(characters_test_pattern).tif
Fig0441(a)(characters_test_pattern).tif
| [
"zhouzhaoze@gmail.com"
] | zhouzhaoze@gmail.com |
711b995a8369c87c09b980abf3c79b0a044d7f61 | 224341b3c27675c7c0b330b52bac68d49322ed59 | /search/tests.py | 0cbc93929e42e5e449b564dabbba458172a7372e | [] | no_license | daniel0001/Stream_3_Project_Ecomm_Django | a60b8eae5a36d863fe196d0fddc92b9906a9758b | 588c8dd7754f068a9ecf63db5195a0f720111cbd | refs/heads/master | 2022-12-12T21:30:07.026462 | 2017-08-25T21:40:43 | 2017-08-25T21:40:43 | 95,681,489 | 4 | 6 | null | 2022-12-07T23:59:51 | 2017-06-28T15:00:15 | Python | UTF-8 | Python | false | false | 318 | py | from django.test import TestCase
from .views import do_search
from django.core.urlresolvers import resolve
from django.shortcuts import render_to_response
class SearchTest(TestCase):
def test_search_resolves(self):
search_page = resolve('/search/')
self.assertEqual(search_page.func, do_search)
| [
"daniel.j.halliday@gmail.com"
] | daniel.j.halliday@gmail.com |
7fe85ac767a6d7d65b177843840575145099759e | b97db3190d8f61b70868744bfc9413e2701b09cc | /old files/app_old.py | 89f483cfc4bcb585657fb0dbf6c63eb4543fc88d | [] | no_license | BensonHermes/CoCo-Alert | 258f2ff967a30140418490b25a33971e3ee64467 | a72fc93c293c3a422b024c2bfcffe3b9e8b38071 | refs/heads/main | 2023-04-23T13:51:11.591125 | 2021-05-09T13:49:02 | 2021-05-09T13:49:02 | 321,382,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,444 | py | from io import StringIO
import requests
from pyquery import PyQuery as pq
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pyimgur
from selenium import webdriver
import mysql.connector
from mysql.connector import Error
from flask import Flask, request, abort
from linebot i... | [
"chowduen@gmail.com"
] | chowduen@gmail.com |
e0b7d6575a5dbdbe61538bb40f2b8eef2706675c | 11b1324a40f2652b2153e93e038644ec7e9179a1 | /blocks/PageLabel.py | 510fa377d2b7b7a88267eb7c0d51ed4f54e77f1c | [
"MIT"
] | permissive | shyamal388/PythonBlocks | 73487e2b326aaeed51cdd02f4fd08e4e4164063b | 4d42121e4af850ba1bf9a4140c11fe10ba218cdd | refs/heads/master | 2021-06-03T11:12:32.557846 | 2016-09-09T01:39:26 | 2016-09-09T01:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: A21059
#
# Created: 10/03/2015
# Copyright: (c) A21059 2015
# Licence: <your licence>
#-------------------------------------------------------------------------------
from blocks... | [
"shijq73@gmail.com"
] | shijq73@gmail.com |
ab8e757773af8ba61a9c52e6cac7917efc261dae | 294969e5d123e0487ed80de2a34428fd7d89dfd5 | /leetcode/83.RemoveDuplicates.py | 1a1d52a628895d1ea5e91e29a5d49d1fb2622742 | [] | no_license | chenfu2017/Algorithm | 0a750c4b2f380cbcb838d2da2352ec4e95067341 | ccb3106ae489268aa8f868a43ecdf802a02adc22 | refs/heads/master | 2022-04-27T09:28:05.296285 | 2022-03-28T07:18:32 | 2022-03-28T07:18:32 | 141,994,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
cur = head
while cur and cur.next:
... | [
"21114056@qq.com"
] | 21114056@qq.com |
da0cf16a619a641ec2a5b388af90896b9d3fb729 | f2bd826ee5f52c5f22d5956285ae40a1ca31d4b1 | /ticketflix/session/migrations/0001_initial.py | 2f12b60277435abc96ee06c84b795e72431ff033 | [
"MIT"
] | permissive | DSW-2018-2/Ticketflix | 0a4e99553a20de6ba15fd029e0968ad4b88a032f | d417895904c1a12ba2a9d761d7e60be77b7bcac2 | refs/heads/develop | 2021-07-23T05:46:07.615523 | 2018-11-23T13:11:37 | 2018-11-23T13:11:37 | 145,330,742 | 3 | 2 | MIT | 2018-11-23T08:11:54 | 2018-08-19T19:14:41 | Python | UTF-8 | Python | false | false | 711 | py | # Generated by Django 2.0.8 on 2018-11-09 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Session',
fields=[
('id', models.AutoField(... | [
"anlugueso@gmail.com"
] | anlugueso@gmail.com |
4c8971b0827e6cb43b0f8b51b54e802d32cbf1ca | e832bcb28ca605bd6fefdbff7572958eb708c2ad | /src/basic-c2/fizzbuzz.py | 146c06f37b4b7e80571f5ac056bd4ed6e97e0103 | [] | no_license | n18002/programming-term2 | 35059b15f56d13575b299f64ea4de3f63a46c232 | b7cb1c73956c96f23710e2b88149e2d8ca00481b | refs/heads/master | 2020-03-22T08:59:28.907436 | 2018-08-14T00:43:51 | 2018-08-14T00:43:51 | 139,806,118 | 0 | 0 | null | 2018-07-05T06:42:08 | 2018-07-05T06:42:07 | null | UTF-8 | Python | false | false | 226 | py | # FizzBuzz
for i in range(1, 21):
if i % 15 == 0:
print("FizzBuzz")
continue
if i % 3 == 0:
print("Fizz")
continue
if i % 5 == 0:
print("Buzz")
continue
print(i)
| [
"n18002@std.it-college.ac.jp"
] | n18002@std.it-college.ac.jp |
f5cac25727d84e57b5c34717762405b9f312bb8c | dba5170a4c9afdf863fdd82cd1239fd72573a464 | /gameObjects/boulderFragment.py | cd267217be2e33b929d1950971057190b6cfabcb | [
"BSD-3-Clause"
] | permissive | jceipek/Mind-Rush | 29846d62c11be1b48f46f7ba031462c27e251487 | 8a4f81ac7536a66112dceaea3dac7cbcb9bbd3dc | refs/heads/master | 2020-03-27T22:31:02.605360 | 2013-01-12T18:01:19 | 2013-01-12T18:01:19 | 1,708,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | #
# boulderFragment.py
#
# Copyright (C)2011 Julian Ceipek and Patrick Varin
#
# Redistribution is permitted under the BSD license. See LICENSE for details.
#
from gameObject import GameObject
from engine.functions import pathJoin
class BoulderFragment(GameObject):
def __init__(self, parent, pos=(0,0), vel=(0,0)... | [
"julian.ceipek@gmail.com"
] | julian.ceipek@gmail.com |
05aa5d78f1a77c1849dde9dff4856a79eddc89a7 | c1c87cd334972c01935dbb72769064e5d0066ac8 | /pickpack/robots/scratchpad.py | 2d469bd1d6d84f59c8bd0ec2db7949dd53ec5962 | [] | no_license | defgsus/pypickpack | 576e9471c9cc7cce60c1010d51b4ea85ec00ecfc | 8a604ec1502c615bf24d77f09d564962c3d04930 | refs/heads/master | 2022-12-28T13:17:18.306748 | 2020-10-09T00:50:41 | 2020-10-09T00:50:41 | 269,505,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | import random
from .base import RobotBase
from .._2d import direction_int
from ..astar import astar_search
from ..log import log
from ..static_map import StaticMap
from ..items import Article, PickOrder
class RandomRobot(RobotBase):
def __init__(self, id):
super().__init__(id)
def process(self, wor... | [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
68dc9f5f113ec712039c84be9b87ece7752d9d5c | 6055e035d28558c263abe438aa49ae5ce03e9ce7 | /estado_gerenciar_pessoas.py | 9b5a9cb4afb1be910f655f6bff96ad6383936cbd | [] | no_license | alisson-fs/projeto-ES-I | a9e78e59ce73e09fcbcafd85fcd477f85967aa5e | 881b34ef374e57a0fd1e1f525a1e0e32aedc19cd | refs/heads/main | 2023-08-17T06:42:33.811925 | 2021-09-21T17:08:42 | 2021-09-21T17:08:42 | 384,255,836 | 0 | 0 | null | 2021-07-08T21:55:36 | 2021-07-08T21:49:16 | null | UTF-8 | Python | false | false | 1,959 | py | from PySimpleGUI.PySimpleGUI import TRANSPARENT_BUTTON
from pessoa import Pessoa
from estado import Estado
import PySimpleGUI as sg
from registro_pessoas import RegistroPessoas
class EstadoGerenciarPessoas(Estado):
def __init__(self):
super().__init__()
self.__registro_pessoas = RegistroPessoas()
... | [
"alissonfs100@gmail.com"
] | alissonfs100@gmail.com |
5037eeb948d7012d2b93974d59a6007759548c45 | c62101b453cb6cb6a95ee5e9564fb850fff60e29 | /python3/ex23.py | 05b67f08cc7cc3ad3219ab4f4a0c2dd58155220e | [] | no_license | xcl666/xcllinux | c99efae146029e433a26efa6308f8c27fb87859a | 21f271d1c56544f9c1f9f4cab87a3fc19538c869 | refs/heads/master | 2021-01-01T05:12:36.565404 | 2019-05-02T17:35:22 | 2019-05-02T17:35:22 | 56,660,753 | 2 | 0 | null | 2019-05-02T17:35:23 | 2016-04-20T06:18:11 | Python | UTF-8 | Python | false | false | 79 | py | ages = {"Dave":24,"Mary":42,"John":58}
print(ages["Dave"])
print(ages["Mary"])
| [
"xuechuangli666@gmail.com"
] | xuechuangli666@gmail.com |
9d85fc17cd0873dc77dd627536c1d99207955bd1 | 9997d05c9214261d3f105b4e0d21ad3d14d0d18a | /lab04.py | e61028d6676abd849e4715d93bee6bc64d6f7cca | [] | no_license | razsofanni/Programming1 | 8c7674d6acc9debc4558c40947d58395580b72d3 | 0186f7530c11bffa345483fd7c737ee29f5e5323 | refs/heads/master | 2020-04-23T22:11:12.464569 | 2019-02-10T17:09:00 | 2019-02-10T17:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | import numpy as np
import time as t
def inverseVector(a):
b = np.array(a[a.size-1])
for i in range(a.size-2,-1,-1):
b = np.append(b,a[i])
return b
def sortVector(v):
n = v.size
for i in range(0,n):
for j in range(i+1,n):
if v[i] > v[j]:
v[i],v[j] = v[j]... | [
"harangi.balazs@gmail.com"
] | harangi.balazs@gmail.com |
2653c1c7714a9e90ef73155806c6a74d85da40ce | 4458acc7a3d3ae62c3fc38180b0cb6664aa5ee81 | /apiIsoccer/manage.py | 946cb9eeaa6a137891a53534d091b46055c91acd | [] | no_license | CarlosW1998/API-Isoccer | a485820ed887b1cce88286263fd3f51e988d006c | 2af18ebbb23853cdbd5e6eb52632e0b24682454a | refs/heads/master | 2020-03-24T19:00:19.048868 | 2018-08-24T23:05:27 | 2018-08-24T23:05:27 | 142,906,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "apiIsoccer.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"carlos-walte@hotmail.com"
] | carlos-walte@hotmail.com |
e584d6444f27ac9720ec741f0572adfc28f60949 | 549275146dc8ecdba9144a6aed2796baa1639eb3 | /Codes/gracekoo/71_simplify-path.py | 807cc60379f65ff9e0e24b1db82cabb8a8468010 | [
"Apache-2.0"
] | permissive | asdf2014/algorithm | fdb07986746a3e5c36bfc66f4b6b7cb60850ff84 | b0ed7a36f47b66c04b908eb67f2146843a9c71a3 | refs/heads/master | 2023-09-05T22:35:12.922729 | 2023-09-01T12:04:03 | 2023-09-01T12:04:03 | 108,250,452 | 270 | 87 | Apache-2.0 | 2021-09-24T16:12:08 | 2017-10-25T09:45:27 | Java | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
# @Time: 2020/3/12 12:01
# @Author: GraceKoo
# @File: 71_simplify-path.py
# @Desc:https://leetcode-cn.com/problems/simplify-path/
class Solution:
def simplifyPath(self, path: str) -> str:
if not path:
return ""
result_list = []
path = path.split("/")
... | [
"gracekoo199@gmail.com"
] | gracekoo199@gmail.com |
8fe3027fbbf33de53ec0d87b322cf791331c758e | b9bc40b7abe6fe3bf6f870ffd6ee4766325ff875 | /Time Series/scripts/TS_Autoregression.py | fefb6a6da47348f7eb5197f553b0c0adc3901e6e | [] | no_license | nbinuani/SAFRAN_TS_study | 4b045c5555cc66188716e6fff2b12934d7a8b4fb | cc15db0b2cc66a62247f638d5f55af91e5d16d62 | refs/heads/main | 2023-02-25T16:28:50.196583 | 2021-02-01T00:33:05 | 2021-02-01T00:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,056 | py | import warnings
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from statsmodels.tsa.seasonal import seasonal_decompose
from statsmodels.tsa.stattools import adfuller
from statsmodels.graphics.tsaplots import plot_pacf, plot_acf
from statsmodels.graphics.gofplots import qqplot
from statsm... | [
"noreply@github.com"
] | nbinuani.noreply@github.com |
b0ebf56863454ffb4571867555552aad6d06569d | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hw_proxy/controllers/main.py | 1a934348be4f3f21a928d20583d78d39b10c4c17 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,759 | py | # -*- coding: utf-8 -*-
import logging
import commands
import json
import os
import os.path
import yuancloud
import time
import random
import subprocess
import json
import werkzeug
import werkzeug.wrappers
_logger = logging.getLogger(__name__)
from yuancloud import http
from yuancloud.http import request
# Those are... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
988093f63770c71efcf6e570ccfa0b3f7bda10b4 | 2ae81662418731b71d4eec7c03033c0969b6a849 | /Tarea9_PriorityQueue/colas.py | 50b0477847a6ea949b0801ccf80538bd3827ad27 | [] | no_license | GabrielED39/edd_1310_2021 | f7031af44204547f81a639ee24e0842899e0f7a0 | f9ba716045df114796839315706888c104a618cb | refs/heads/master | 2023-02-21T18:21:07.023437 | 2021-01-26T19:01:44 | 2021-01-26T19:01:44 | 299,690,306 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | class Queue:
def __init__(self):
self.__data = list()
def is_empty(self):
return len(self.__data) == 0
def length(self):
return len(self.__data)
def enqueue (self,elem):
self.__data.append(elem)
def dequeue (self):
if ... | [
"noreply@github.com"
] | GabrielED39.noreply@github.com |
5a62962d922aeedf0aa8bb0afb0a6222f293c6b5 | a4999206e2cd8c760f745444e79ff4d4c5e166a9 | /myapp/models.py | 89c7b1a7a0016fc6884c11461eb7e8f256def7a0 | [] | no_license | natisdale/Exhibitions | 64d080adb7a06f53e77d265f414550c5820bf1c1 | c1d9a2e375da550e985f712ef9a92bff3a3e239d | refs/heads/main | 2023-04-26T15:38:59.780165 | 2021-05-19T23:54:32 | 2021-05-19T23:54:32 | 336,041,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | from datetime import datetime
from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
#from django.contrib.auth.models import AbstractUser, BaseUserManager
# class CustomUserManager(BaseUserManager):
# def create_user(self, email, password=None):
# if not ... | [
"natisdale@mail.csuchico.edu"
] | natisdale@mail.csuchico.edu |
97d8cba869429754597a0b5a709fd04ee8ff53d9 | 9b1689f89932ea3745bf2d60d7c8671a5605cd14 | /core/forms.py | 18be891785baa310bf65c9f88a2fb0089d13f5ba | [] | no_license | milkbread/KeinAbenteuer | 15cdfea0f1d12068ce2a6d1493143f0f378e9def | 5b5cb74274b1914e5ccd45625f8bb9935eddac4e | refs/heads/master | 2021-01-23T03:05:21.872367 | 2017-04-19T18:25:28 | 2017-04-19T18:25:28 | 86,049,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django.core.validators import EmailValidator
from django.http import JsonResponse
from .models import Article, Image
class UserCreateForm(UserCreationForm):
email = forms.EmailField(re... | [
"milkbread@freenet.de"
] | milkbread@freenet.de |
f7b3b2faa86e0a9a1ac895411d5a0ba761b172ea | 9907134b0da8e5391c51b00c426c648eece7b4b9 | /Unidad 2/pfijo.py | a7a60477a2df6797926949881bacf7f7f695a593 | [] | no_license | hectorrdz98/metodos-numericos | 1fd21593c8c324f0e0e643cc08a8d930ea2e8cf3 | dab8e9425f454be60a74d30c985a643bcb915ce6 | refs/heads/master | 2022-01-22T07:26:48.566615 | 2019-05-29T12:26:43 | 2019-05-29T12:26:43 | 167,975,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import math
p0 = 3.8
n = 3
tol = 0.0001
def g(p):
return -4 + (4*p) - (0.5 * p * p)
flag = False
for i in range(n):
p = g(p0)
print('\nVamos en {}, con g(p0)={} y p0={}'.format(i+1,g(p0),p0))
print('El abs={}'.format(math.fabs(p-p0)))
if math.fabs(p-p0) <= tol:
print('\nEl valor de p0={}... | [
"="
] | = |
849982e32acbbd86a80a1a28776728f8b7d0c1cd | fce49ad9f71d286c039cb804f9038a28fd9c6e6f | /source/country/utils.py | 9d90692bf42e6ad616943e92a02f40ad0a63bee8 | [] | no_license | x4rMa/mngweb | 714c5ca49ab56074b0681f93a447c629b85e1570 | fb8709f26b70a81ab87cb6c690607beb7c244416 | refs/heads/master | 2021-01-13T02:52:04.026573 | 2016-12-21T17:58:30 | 2016-12-21T17:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from django.utils import timezone
from portal.services import limsfm_get_countries
from .models import Country
def update_countries():
"""update country data via. the LIMSfm api"""
print("Fetching countries from LIMSfm...")
try:
countries = limsfm_get_countries()
except Exception as e:
... | [
"andysmith.d@gmail.com"
] | andysmith.d@gmail.com |
26448faf3cba7c0c50f9b20ffe7ffba940ed1a4b | 0ceb04ce763cf8b73f9b71a211990070abc1f5bb | /src/helpers/plotterHelper.py | 3685e691e8b957c5a86229632115e90d10ddc46d | [
"MIT"
] | permissive | fangzhimeng/MachineLearningRegressionBenchmark | e04412581ca21d82f4bbff64ba29ec9795337cac | 42a83a1261dbf6b30624e9950db5b2d297622d76 | refs/heads/main | 2023-03-21T04:57:51.633945 | 2021-01-10T20:20:24 | 2021-01-10T20:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | from matplotlib import pyplot
from pandas.plotting import register_matplotlib_converters
from matplotlib import style
from numpy import arange, linspace, ndarray, array, unique
from scipy.interpolate import make_interp_spline, BSpline
from src.store import Store
style.use('ggplot')
register_matplotlib_converters()
... | [
"iulian.octavian.preda@gmail.com"
] | iulian.octavian.preda@gmail.com |
56be8fc42fe96b6bfce531741aa29291d015af4f | f806558088d5446635115ebe1191b703e503e536 | /blog/models.py | e02e3dc46c3c440dec65e44b50921f2f6150c0b0 | [] | no_license | HQ1363/HBlog | 9cbd3f177526dfcb87d324e451ff60289f1d79de | 4b40bd7dcded141b4807065a03542fe4282c88a9 | refs/heads/master | 2020-09-12T02:13:23.915180 | 2019-02-05T16:19:16 | 2019-02-05T16:19:16 | 222,266,681 | 0 | 0 | null | 2019-11-19T14:53:01 | 2019-11-17T15:10:07 | Python | UTF-8 | Python | false | false | 3,626 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from django.utils.translation import ugettext_la... | [
"huangqiang1363@outlooktlook.com"
] | huangqiang1363@outlooktlook.com |
32ae20672aa8d52e9e5ae580dac2e7c2a5b941c4 | 0df602f1cc4a5531069954b9a94eca195d720531 | /test/conmax.py | 3aedee7a3ce0268fa359573baa28f249e33170d6 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zjc5415/qml | fcfa67c85a69f990e130bea2be57b8182671cdd1 | 6e639c6438448d7b7090bb4d6ab2efb3dc9f3b94 | refs/heads/master | 2020-12-24T19:17:35.115241 | 2015-12-27T10:56:29 | 2015-12-27T10:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,952 | py | #!/usr/bin/env python
from __future__ import division
from fractions import Fraction
from decimal import Decimal
from qform import *
def qforms(x):
if isinstance(x, str):
return x
else:
return qform(x)
def test_root_opt():
output("""\
rootx_opt:{
f:{(x-3)*x-5};
$[x=... | [
"aaz@q-fu.com"
] | aaz@q-fu.com |
5b6cadc2c2a55ba0c6c1312bc01be4305c233b71 | 2b6edda9ba2ddef59f84e74f4a7abfad585f170c | /Arrange_the_Buses.py | 0f0598dabdacda35093d51987922a11ecc082dd5 | [] | no_license | pulavartivinay/Online-Hackathon-Questions | 8622e3975b0faf12493784bcec033597265f90ce | 7b020673134033554e62a3dff9fc3bac5b18d5cd | refs/heads/master | 2022-08-01T11:56:57.809677 | 2020-05-26T18:06:24 | 2020-05-26T18:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import copy
N, C, K = input().split()
N = int(N)
C = int(C)
K = int(K)
arrival_times = []
for kl in range(0,N):
betkcksdck = input()
betkcksdck = int(betkcksdck)
arrival_times.append(betkcksdck)
arrival_times.sort()
print(arrival_times)
buses = 1
ti = arrival_times[0]
i = 0
capacity = 0
while(i < N):
i... | [
"noreply@github.com"
] | pulavartivinay.noreply@github.com |
fdf78e71f194e48b46db854cb4ed230f5fc0b717 | b06ae2ee287ff08cf0c38606a20f2479398e646d | /faceRecog.py | 51c172a11b305a6d41afd87a306b3fadab119039 | [] | no_license | arkumish/pic-and-place | 7d52f02fb5bf175d6cc7457549946d2af072d3db | 56edc62b90c4fac8f1645def4cb43013643ef7f0 | refs/heads/master | 2022-12-09T11:25:45.684743 | 2019-11-22T20:59:03 | 2019-11-22T20:59:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import face_recognition
import os
known_faces = []
known_image_list = []
def loadKnownImage(knownDirecName):
for (root,direc,file) in os.walk(knownDirecName):
fileList = file
os.chdir(knownDirecName)
for file in fileList:
known_image_list.append(face_recognition.load_image_file(file))
#print(os.getcwd())
... | [
"shellkoresahu@gmail.com"
] | shellkoresahu@gmail.com |
d8c04c8f1fcf52bfd14c5b250ab600c0a72958d7 | e0f26df33e8482e12e48290d3fa9be0f79e04d4c | /src/para_tuning.py | ad41d6ce5da8d2e53aed080b96497670e7b78619 | [] | no_license | spencerxhani/fruad_detection | e4e90d0f351ad629b6694bbcdc259b13ec5ebce3 | 8d0c22ee748be315114061e486a4100ce6a8ce39 | refs/heads/master | 2022-12-03T18:39:04.231834 | 2020-03-29T09:50:34 | 2020-03-29T09:50:34 | 250,851,946 | 0 | 0 | null | 2022-11-21T21:05:17 | 2020-03-28T17:16:55 | Jupyter Notebook | UTF-8 | Python | false | false | 12,308 | py | import sys
import time
import argparse
import pandas as pd
from sklearn.model_selection import train_test_split, GridSearchCV
import numpy as np
from contextlib import contextmanager
import gc
from util import s_to_time_format, string_to_datetime, hour_to_range, kfold_lightgbm, kfold_xgb
from util import _time_elapsed... | [
"r06546041@ntu.edu.tw"
] | r06546041@ntu.edu.tw |
32fe115b47214dd5d925bc1419747dfcf52e0871 | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /NextGreaterElement.py | eba1f8d0ae08308ff8e272cffeec6304822d027f | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | '''
496. Next Greater Element I
The next greater element of some element x in an array is the first greater element that is to the right of x in the same array.
You are given two distinct 0-indexed integer arrays nums1 and nums2, where nums1 is a subset of nums2.
For each 0 <= i < nums1.length, find the index j such ... | [
"jerinsprograms@gmail.com"
] | jerinsprograms@gmail.com |
95637f216d9d117730f49b84e3ec74f12d08b5c7 | 14dbf7e02bd2d71347457efcf63411b00fe38e44 | /src/catalog/views.py | 768c2e14805bb564a6bedb617c525cac759ef51d | [] | no_license | raghavmalawat/django-mozilla-tutorials | a1c866ad4a7bf6c65cd28e87698975fa061e5609 | dbcc8f941f2e16d801341747a1d1c85b908ce2e4 | refs/heads/master | 2021-06-21T13:32:57.477036 | 2019-11-26T21:33:51 | 2019-11-26T21:33:51 | 223,615,668 | 0 | 0 | null | 2021-06-10T22:19:08 | 2019-11-23T16:03:22 | Python | UTF-8 | Python | false | false | 5,286 | py | from django.shortcuts import render
from catalog.models import Book, Author, BookInstance, Genre
from django.views import generic
from django.shortcuts import get_object_or_404
from django.contrib.auth.mixins import LoginRequiredMixin
import datetime
from django.http import HttpResponseRedirect
from django.urls import ... | [
"raghavmalawat@gmail.com"
] | raghavmalawat@gmail.com |
6b25126d87e2eec487b5fa04969c41631bd9f465 | 9fcff439d07809c333ac3d90e30c0468c0c53d79 | /LiveCarPrice/app.py | 6d3fd2788bf8e4a8331b7556b83486a265c915eb | [] | no_license | jeetbhatt-sys/Car_Price_Prediction | 565ea4714171dd8576db322c554c15d677ee3825 | 7835b66e862ce55a655748d8da9679bf2e7efa74 | refs/heads/main | 2023-05-29T20:57:32.311057 | 2021-06-14T18:15:16 | 2021-06-14T18:15:16 | 376,916,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 14 23:20:48 2021
@author: jbhatt
"""
from flask import Flask, render_template, request
import jsonify
import requests
import pickle
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = pickle.load... | [
"noreply@github.com"
] | jeetbhatt-sys.noreply@github.com |
0ce3f3e0f988af4b88d92db58c8ad975c29f0f93 | 795d0debe9a09d47c95ebcd0b32534f8b5d3c0b5 | /TheBeginning/py_basics_assignments/42.py | a3b25830c3c1502679eb8884d7949e86ff6073ba | [] | no_license | Binovizer/Python-Beginning | db8afb2362369a7ca2f098af6e021551dee960b5 | f8ee01355e859264269389a0de90f700b0052904 | refs/heads/master | 2020-05-26T15:24:18.378884 | 2017-05-07T13:51:35 | 2017-05-07T13:51:35 | 82,492,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def rev(string1):
if(len(string1) == 0 or len(string1) == 1):
return string1
else:
return rev(string1[1:]) + string1[0]
string1 = input("Enter any string : ")
print(rev(string1)) | [
"mohd.nadeem3464@gmail.com"
] | mohd.nadeem3464@gmail.com |
7274d5d6acd06026bb0e3945cca73daf74e06bf3 | 4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09 | /134.加油站.py | 2f5d07a462e88ceb77dbdc591efd179e9402385b | [] | no_license | dxc19951001/Everyday_LeetCode | 72f46a0ec2fc651168129720ad0b1e7b5c372b0b | 3f7b2ea959308eb80f4c65be35aaeed666570f80 | refs/heads/master | 2023-08-03T09:22:08.467100 | 2023-07-23T17:08:27 | 2023-07-23T17:08:27 | 270,723,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | # coding=utf-8
"""
@project: Everyday_LeetCode
@Author:Charles
@file: 134.加油站.py
@date:2023/1/10 15:35
"""
class Solution(object):
def canCompleteCircuit(self, gas, cost):
"""
:type gas: List[int]
:type cost: List[int]
:rtype: int
"""
# 贪心算法
... | [
"870200615@qq.com"
] | 870200615@qq.com |
e1dcd2a11d7423ba518efc1697c3a148293ffa2a | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/google/core/browser/DEPS | 26e9743a04d2db628f4a7357a7d73e4ad5cf843a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | include_rules = [
"+components/data_use_measurement/core",
"+components/keyed_service/core",
"+components/pref_registry",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
bfe6d113c6248860931cd8d1870126fdd8a59693 | 2194b6c17f3153c5976d6ac4a9ab78211027adab | /otoroshi_admin_api_client/models/otoroshimodels_rs_algo_settings.py | d3bb0d40170f95f52921aa7d6749dcfb1d4114f7 | [] | no_license | krezreb/otoroshi-admin-api-client | 7fab5e873c9c5950d77fffce6bcf80d3fdf4c319 | 9b3156c11eac227024cfe4a26c0129618deb2c4d | refs/heads/master | 2023-05-08T08:32:00.982987 | 2021-05-27T09:55:00 | 2021-05-27T09:55:00 | 371,324,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | from typing import Any, Dict, List, Type, TypeVar, Union, cast
import attr
from ..models.null import Null
from ..models.otoroshimodels_rs_algo_settings_type import OtoroshimodelsRSAlgoSettingsType
from ..types import UNSET, Unset
T = TypeVar("T", bound="OtoroshimodelsRSAlgoSettings")
@attr.s(auto_attribs=True)
cla... | [
"josephbeeson@gmail.com"
] | josephbeeson@gmail.com |
f38e52cda7f5a3f771a65f7eeb92d6375981bb4a | f25440c9f9fd470ba44394a36d5659dd47ee8800 | /tests/conftest.py | 6ee0b688b6b226162706d75c8e1acd7eadcb3541 | [] | no_license | kqf/hubmap | 75010d9109f8b8656e244179de5de226be584d5b | 37b3d839f0ad3f47dc39c1b9b036cb1acc27ca2c | refs/heads/master | 2023-02-20T04:06:00.145932 | 2021-01-23T07:56:13 | 2021-01-23T07:56:13 | 317,635,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import pytest
import tempfile
from pathlib import Path
from models.preprocess import write
from models.mc import make_blob, blob2image
@pytest.fixture
def size():
return 256
@pytest.fixture
def fake_dataset(size=256, nfiles=5):
with tempfile.TemporaryDirectory() as dirname:
path = Path(dirname)
... | [
"noreply@github.com"
] | kqf.noreply@github.com |
2c32504fb46d86aea756f86f1695781efe8a8e17 | 0966c0630bb3d9824e11c986a825d3bf32af9ab3 | /ex032.py | 42897da311e5dee5c53bd4ce621e09692548294c | [] | no_license | Jacksonleste/exercicios-python-curso-em-video | b5995216b5cc61dbbd6fdd2ebc87ec40673eb2ac | aad364e440e315df9cd1a1ca661c7d15d07704de | refs/heads/main | 2023-04-10T13:52:44.254157 | 2021-04-13T03:13:51 | 2021-04-13T03:13:51 | 328,409,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from datetime import datetime
ano = int(input('\033[30;1mInsira um ano qualquer para verificar se ele é bissexto:(coloque 0 para o ano atual)'))
if ano == 0:
ano = datetime.now().year
if ano%4 == 0 and ano%400 == 0 or ano%100 ==0:
print('\033[34m{}\033[30m é um ano bissexto.'.format(ano))
else:
print('\033[... | [
"jacksongoncalves.leste@gmail.com"
] | jacksongoncalves.leste@gmail.com |
5fd5f69280f7e2c8dfa60b2c1d5a770471cc61ab | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2520/60790/274856.py | 18e4e0a2884251d28a2c4c3bc79d6f4d2f5ba4c8 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | R=int(input())
C=int(input())
r0=int(input())
c0=int(input())
print(sorted([[i, j] for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
42f478e01f3ca3ec68d1abb1a1fbf7bba99fdb5e | 9647e44409b261f823ceccce79b4ec34ea3a9bd6 | /timeapp/__init__.py | e2d04bb17d4cbbe39ae8da13fd276aa0441176e2 | [
"MIT"
] | permissive | iskenderunlu/jogging-time-management | a7cbaf37fd6678571608b7d9277655f7fcc3e136 | 1cf88bee2abe1f237a2e6f194264064ec89d6e4a | refs/heads/master | 2022-11-28T22:12:12.948328 | 2020-08-19T11:31:25 | 2020-08-19T11:31:25 | 288,540,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | ## write according to your app name here
default_app_config = 'Timeapp.apps.TimeappConfig' | [
"iskenderunlu804@gmail.com"
] | iskenderunlu804@gmail.com |
5c53a777153b9ad4cece20454b6b93bfa892ab0d | 171baddb78f2f7bfdf32490112cff4bd2f32389f | /scripts/corridor_load_histograms.py | c266fe83c611e81fd87d34c25a2224b4ec8be1b9 | [] | no_license | sergimolina/stefmap_ros | 6795f0c988ece1ef56e888b8a295b40a28cdce93 | c55fa3497a162f4a8163b914df023a95379d7ef6 | refs/heads/master | 2022-12-06T23:42:46.335325 | 2022-11-30T15:40:20 | 2022-11-30T15:40:20 | 168,020,781 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #!/usr/bin/python2
import os
if __name__ == '__main__':
#python ~/workspace/cpp_ws/src/mod_ros/stefmap_ros/scripts/tools/load_histograms.py ../histograms.txt
output_file_name = "./../data/corridor_2017_05_31_histograms.txt"
print("Loading histograms to FreMEn...")
os.system("./tools/load_histograms.py ... | [
"sergimolina91@gmail.com"
] | sergimolina91@gmail.com |
f160ae11bb28516c727156fdb31f749a0e3e40e9 | 9b903480e4153e31f1065b59af670968ba55902f | /weather.py | 5b9a35bbbdaf52d61b2be2ccc6e48e46e2d268f7 | [] | no_license | nickdebCompApps/snips-assistant | d7e1fac0fa5cce342550de599df01538feca2137 | a4f22f5298729514b990db21b8daa4fb40411d45 | refs/heads/master | 2020-03-09T03:09:35.982017 | 2018-04-07T18:59:04 | 2018-04-07T18:59:04 | 128,558,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | import forecastio
import datetime
from time import sleep
import requests
import json
from json import dumps
from key import keys
def timeConvert(miliTime):
hours, minutes = miliTime.split(":")
hours, minutes = int(hours), int(minutes)
setting = " AM"
if hours >= 12:
if hours == 12:
... | [
"noreply@github.com"
] | nickdebCompApps.noreply@github.com |
b37c7369aca8f5f50c6d95de5bc3431d254cf30f | d0fc402348cc87cf378336a2e4173cd9eede3c9b | /std_generator/data_helper.py | 761bad756f0aad0b95b0ebd660b46c603fd4468c | [] | no_license | dominthomas/gpu_farm | 154ef37003a6692b3f6a8157975f222b8560b2b3 | 67f5e1326e7d5579004f4acc1d31c66b19615f6b | refs/heads/master | 2021-02-09T04:51:11.028799 | 2020-04-19T14:44:10 | 2020-04-19T14:44:10 | 244,241,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | import nibabel
import numpy as np
from tensorflow import keras as K
class DataGenerator(K.utils.Sequence):
def __init__(self, list_IDs, labels, batch_size=5, dim=(176, 256, 256), n_channels=1,
n_classes=10, shuffle=True):
"""Initialization"""
self.dim = dim
self.batch_siz... | [
"dthomas@donbibi.localdomain"
] | dthomas@donbibi.localdomain |
c57d4e1cdaa74d2a4820707c049cc11363c0b70c | 2597c0487ce5b7a388df2e5c377721c139a1acd8 | /bin/python/comparison.py | 1fc37db8d81e9b0967940e802c66faaf4f806885 | [] | no_license | cilesiz/fluffy-octo-system | 8ca5b46fb2bad0ad9599be24eaeb8b01c3cb06f0 | 8d6e7d32d7a07c4e68dfb154d3460a9ca55726c3 | refs/heads/master | 2020-03-20T02:58:02.157506 | 2015-12-27T06:02:32 | 2015-12-27T06:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/env python
message = "new string"
message2 = "new string"
if message == message2:
print "they match"
| [
"rossof@icloud.com"
] | rossof@icloud.com |
81353cc3889ed290f47df18bd617a984e547a18c | c3358a9a9914fdba9a4a276b68f7c3c921571a14 | /bin/wheel | b2a57ed3a505f0c031772736af677e9172331846 | [] | no_license | mohithg/django_learn | ee411da9402ff8a73ce8120f25e1ce558d2936d7 | cb917cbcf53be1ec9d8ac30b5d45d0e723995df9 | refs/heads/master | 2021-08-07T05:00:24.800568 | 2017-11-07T15:35:43 | 2017-11-07T15:35:43 | 109,852,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/Users/mohithg/learning/django/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mohithgm@gmail.com"
] | mohithgm@gmail.com | |
58877d6cc37c753c161fcde79522be98f45bc50f | ce5fdb787770505eff0938418d0385d559bef670 | /app.py | e072b4b10e7d6b702a4b23c115f6f51a23decd88 | [] | no_license | ActuallyAcey/nombin-backend | dfdde0e79ea98d30e9bde0fd6ad647bb6d50277e | 5ad68cfcb967c4372c39d88f83438addf3d07cff | refs/heads/master | 2020-05-18T12:42:43.937429 | 2019-05-14T01:00:11 | 2019-05-14T01:00:11 | 184,416,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | from flask import Flask, jsonify, request, send_from_directory
from flask_cors import CORS
from flask_pymongo import PyMongo
from os import path
import server_secrets
from flask_ngrok import run_with_ngrok
app = Flask(__name__)
run_with_ngrok(app) #TODO: Remove when deploying; used for exposing localhost as a... | [
"ActuallyAcey@gmail.com"
] | ActuallyAcey@gmail.com |
da48be8998dbc65a10f28b1a195faa144e03a79c | 88c3f6dd1e62da124a9718f745ced22e28491d62 | /FWHM.py | de3fdf5d7a4bae1eb711aefd34c5a67f10beeb45 | [] | no_license | zhazhajust/THzScript | df79edfb72665074ec79684be17d8f63fdabaa49 | 005c4206c870aca430ffa794bfe3a485fff2b9c6 | refs/heads/main | 2023-07-15T18:43:43.169484 | 2021-08-20T13:11:29 | 2021-08-20T13:11:29 | 398,280,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import numpy as np
import constant as const
import scipy.signal
from scipy.signal import chirp, find_peaks, peak_widths
from scipy.interpolate import UnivariateSpline
import matplotlib.pyplot as plt
load_dir = const.txtdir+"xt.npy"
xt = np.load(load_dir)
xt = xt.real
xtProfile = [] #* (0+0*1j)
#xt = xt.astype('complex... | [
"251338258@qq.com"
] | 251338258@qq.com |
46fb30be2965828aa50fce9cd0eb5a1588be3c08 | 6b556d8096c14e7ee3b408a066808baf6de138b3 | /main.py | df363c2c8228f28add5cad03c0f1b7a4f81480ba | [] | no_license | hieumdd/gavin_stripe | a717be8c3c92331533394ea8f7fda72abf1699dd | e0a9d8004dedcf82291fbed31e3edf720c137690 | refs/heads/master | 2023-06-06T00:05:26.062564 | 2021-06-22T13:34:33 | 2021-06-22T13:34:33 | 379,280,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from models import BalanceTransactions
def main(request):
request_json = request.get_json()
job = BalanceTransactions(start=request_json.get('start'), end=request_json.get('end'))
responses = {
"pipelines": "Stripe",
"results": [job.run()]
}
print(responses)
return responses
| [
"hieumdd@gmail.com"
] | hieumdd@gmail.com |
b903d4dafdaad69917379130429923b552115ff8 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-workbench-ide/aliyunsdkworkbench_ide/request/v20210121/AddEnvironmentRequest.py | 0d20b6717b9971baad3c4aba3f7c1bdd0b316b36 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,700 | 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 |
35227700b56937c04f644617981a3abdf9158a9c | 11c096d0ce9d9145dddf857d513b7539c65962bf | /MarchingSquares_lights.py | 6a27bc94010b595e7f8a968acc82f53f27d71ead | [] | no_license | JessieThomson/CodeSamples | a93322d3a68de602ae5f612cfad67939969ec077 | ecd131a318b3f063f2eb34acd22c213fe4fc7952 | refs/heads/master | 2022-03-27T07:47:06.033354 | 2019-12-20T10:09:10 | 2019-12-20T10:09:10 | 109,897,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | import pygame, sys, time, random
from pygame.locals import *
import numpy as np
class Particle:
"""
@summary: Data class to store particle details i.e. Position, Direction and speed of movement, radius, etc
"""
def __init__(self):
self.__version = 0
"""@type: int"""
self.__pos... | [
"JessieThomson@me.com"
] | JessieThomson@me.com |
0b5d3655b298036c53309389fcfc2864b3c16b97 | aa535ed791407504aa24eac32da2e7b15f1b19b6 | /iconsBked/settings.py | 81da8c1f077645ad7b51f182cddb9a01a4fd98f7 | [
"MIT"
] | permissive | Epath-Pro/icons-bked | 404698e6401a7d16b947d7494ca627f777f8e260 | edc8cf57d4c6ee31369ef8d3751f3d89cc6d375a | refs/heads/main | 2023-07-14T17:30:07.932842 | 2021-08-29T08:20:38 | 2021-08-29T08:20:38 | 390,057,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"elearningpath0620@gmail.com"
] | elearningpath0620@gmail.com |
974a2ad112f38e2fe813b9a8d77b4b96920d50d6 | c46cb6ffb259124d38c7babcf1cadb6b3be5d594 | /test.py | 1fe28ca510a1cfc26ee15c91d9fa822f0e030447 | [] | no_license | sundshinerj/WWW | f04ee6719d07ee07fd2a8017bf0333e4670154fe | b83980d38eb94ffedfa193be6e2d264aabce7c9f | refs/heads/master | 2021-08-22T03:55:29.131487 | 2017-11-29T06:44:10 | 2017-11-29T06:44:10 | 112,165,146 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#@author: sundsinerj
#@date: 2017/10/25
import MySQLdb
import time
import json
db = MySQLdb.connect("127.0.0.1","root","root","xedaojia_ams")
cursor = db.cursor()
# last_time = int(time.time())
# begien_time = int(last_time - 21600)
last_time = 1506412800
begien_time = 15... | [
"sundshinerj@gmail.com"
] | sundshinerj@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.