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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d9da259fdc14b8cb5bf137e5ab76ab8e8182a96 | c019093a2474b92bda1b9fcab0ae750937aedc1c | /jaxlie/manifold/_manifold_helpers.py | 9bfeaae7af619693187e8bbe93f513efab7291ad | [
"MIT"
] | permissive | mfkiwl/jaxlie | 6c8a83d367299592a68bb80c7dc9816e9e006f09 | 4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537 | refs/heads/master | 2023-07-13T17:11:16.693321 | 2021-08-31T18:51:33 | 2021-08-31T18:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | from typing import TypeVar, cast
import jax
from jax import numpy as jnp
from .. import hints
from .._base import MatrixLieGroup
from .._se2 import SE2
from .._se3 import SE3
from .._so2 import SO2
from .._so3 import SO3
T = TypeVar("T", bound=MatrixLieGroup)
@jax.jit
def rplus(transform: T, delta: hints.TangentVe... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
8ec53ea01e0cd5ce414999831dfcf179cd3c7434 | e25b4bedc2d8f7abf93be9242b309265d9141012 | /testing/helper.py | a15e558319d819a10bd08408cc1e1c5fcd709ff8 | [] | no_license | wware/postgres-md | 6f40cc497d8665c3eb7047b097c0fda8cd312ff5 | 872639c799269c7233607c1039dd9ceb480bc2c9 | refs/heads/master | 2020-05-24T12:41:26.024380 | 2015-08-03T15:16:36 | 2015-08-03T15:16:36 | 39,483,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from docker import Client
import os
import pytest
import time
from sqlalchemy import Table, MetaData, create_engine
from sqlalchemy_utils.functions import (
database_exists,
create_database,
drop_database
)
cli = Client(base_url='unix://var/run/docker.sock')
container = cli.create_container(image='postgres... | [
"wware@veracode.com"
] | wware@veracode.com |
0628d28942b07798a3581b0c726246718d0103bf | 6ed233ec80984cd8d6eb5b8f2efde1ac5feadc4b | /ebc/nbr2018/tests/base.py | d8f1b8dc478a579559e54fd5ce377970766ca953 | [
"Unlicense"
] | permissive | lflrocha/ebc.nbr2018 | ce03abd238dca532d8adedaae0778b519b334852 | 0259390fecda065bf040b08e5ae3050ba96b1c4e | refs/heads/master | 2020-04-08T12:44:17.247750 | 2019-08-08T18:13:57 | 2019-08-08T18:13:57 | 159,359,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | """Test setup for integration and functional tests.
When we import PloneTestCase and then call setupPloneSite(), all of
Plone's products are loaded, and a Plone site will be created. This
happens at module level, which makes it faster to run each test, but
slows down test runner startup.
"""
from Products.Five import... | [
"lflrocha@gmail.com"
] | lflrocha@gmail.com |
c09f20d26fdaea17fc361a7d9af2ace3c46a9ec5 | 992fd9c34ec70887dddf7d6ea3b5a095a1293a77 | /full-width-digit/plugin.py | 5be9f7adeb2efaf41e89a9b47fe2973342bc212e | [
"LicenseRef-scancode-warranty-disclaimer",
"Unlicense"
] | permissive | Kennyl/Sigil-Ebook-Plugins | 70dfd3259816119a4e18a1e685788c4b422756a7 | 67978f343c69b3020ca3b2b9a38850eb2e6eed27 | refs/heads/master | 2021-01-18T20:01:16.992849 | 2017-11-05T05:41:40 | 2017-11-05T05:41:40 | 86,926,203 | 13 | 3 | Unlicense | 2018-04-20T15:53:18 | 2017-04-01T16:19:17 | Python | UTF-8 | Python | false | false | 1,643 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import re
import sys
import sigil_bs4
conversionDict={"0": "\N{FULLWIDTH DIGIT ZERO}",
"1": "\N{FULLWIDTH DIGIT ONE}",
"2": "\N{FULLWIDTH DIGIT TWO}",
"3": "\N{FULLWIDTH DIGIT THREE}",
"4": "\N{FULLWI... | [
"apple@apples-MacBook-Pro.local"
] | apple@apples-MacBook-Pro.local |
635734801373905925dc4741bdc7e1cb867d19fa | 85790a5af1f58b81e6b94b3a2b53035a17b0edf3 | /10-day/2-列表初识.py | ad20ef41614f731643bae4d8605902c0325f6005 | [] | no_license | liuruitao/Python-liuruitao | 681734577484f803e2be14260ae4d0fc1505a762 | 1c028c4bfeb4e89cb5120af1eadfa3f7ad34b569 | refs/heads/master | 2021-04-18T22:34:26.479834 | 2018-04-18T06:45:35 | 2018-04-18T06:45:35 | 126,920,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | aa='人生苦短,我用python,life is short'
print(aa.count('p'))
print(aa.count('l'))
print(aa.rfind('s'))
print(aa.upper())
| [
"2590011467@qq.com"
] | 2590011467@qq.com |
50f55133949890fdd9c462e8134746052794d2b5 | 75fa4b5c30c0fa849be537b1bcae5933be02d581 | /bookings/migrations/0005_auto_20201016_1847.py | f3769ff961358078366c2eac0b993af816008b39 | [] | no_license | bangina/yogayo-django-API | 8da4375738239e77a67bdff554e3cc6a6e05f9ea | 8074ae29e579cc2a21e96b6d2ff28caa4d85730b | refs/heads/master | 2023-01-05T23:06:51.838909 | 2020-11-05T07:44:17 | 2020-11-05T07:44:17 | 297,549,879 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 3.1 on 2020-10-16 09:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookings', '0004_auto_20201013_1544'),
]
operations = [
migrations.RenameField(
model_name='voucher',
old_name='duration',
... | [
"enfzls1212@gmail.com"
] | enfzls1212@gmail.com |
fc04cd7ae737948a601e46cb7bd78245f884c77a | 43aff5263a9f665d45660ea7659e62cd941f5b3a | /log_record_stream_handler.py | 6c197174d0fc5b63ca83cc86598c86e058885abe | [] | no_license | natgaertner/postmashworkers | 1989ba5fbaf08ec83c01543470005b3eb59d390f | 8f85ba508438e5ea8d33bdf2499b4f1560dd94d9 | refs/heads/master | 2021-01-19T18:52:06.544007 | 2014-03-22T11:14:23 | 2014-03-22T11:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | import pickle
import logging
import logging.handlers
import SocketServer
import struct
POSTMASH_LOG_NAME = 'file_postmash_work_log'
file_handler = logging.handlers.RotatingFileHandler('/var/log/postmash/postmashwork.log')
file_handler.setLevel(logging.DEBUG)
file_handler.setFormatter(logging.Formatter(fmt='%(relativeCr... | [
"natgaertner@gmail.com"
] | natgaertner@gmail.com |
5209cd9bbdb2b2a405122ea906618c4445928d7d | 53ef0a2f7a3cebcac87f00e5e9edcebe69351978 | /playlist_get.py | ff1bafb90626a28c91c7a7aa888a5577fa31b6ae | [] | no_license | Cha-Euy-Sung/FLASKAPP | f68cde42ab9bca31f5af1deb7032b11520298884 | 51e92ea7f7100a646a936d644a07f97caa8dbfd5 | refs/heads/master | 2022-12-26T15:09:06.677697 | 2020-09-23T02:21:22 | 2020-09-23T02:21:22 | 297,815,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,178 | py | def playlist_get(tag):
playlist_dic = {
0: ['bhDOqCR61jU', 'leIeBhYYJP0', 'CIvrCQ6alyM', 'lDp-XgVTuqA', 'K-jaMXMYTkk', '-6RqR2PCHQs', 'cLpO0U3p97c', 'tKdJHWo-kLI', 'ecKEnrWIh7Q', 'UAHP1VgljnE', '5f2AFS6PgEs', 'rhrFqwPYwig', 'scXuReCe2Co', '_ThBN0zMM9g', 'B48V42s3dnc'],
1: ['GRIMTo9Kyrk', 'dOQhvvNHAF... | [
"58425500+Cha-Euy-Sung@users.noreply.github.com"
] | 58425500+Cha-Euy-Sung@users.noreply.github.com |
1f718453299767f575260737c9ff1399680d531c | 835a3928689f605493697605de4a6b16b06b54a0 | /venv/Scripts/pip-script.py | 094899f834171a2f0e3a873bf17b886ee975cb27 | [] | no_license | MockingLee/WebService-no-db | b21926b594d02ba667bb4e9ae055c7a463450c57 | 7734d8e3adeb4c5387b69515f15943484ad5af14 | refs/heads/master | 2020-04-10T22:28:04.101235 | 2018-12-11T11:43:05 | 2018-12-11T11:43:05 | 161,325,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!"D:\py workspace\WebService no db\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"38075220+MockingLee@users.noreply.github.com"
] | 38075220+MockingLee@users.noreply.github.com |
ff1f784de6f3ad6715c7e5acb5529db50cd855ba | 1ada91412841739e2a2b9ac4f5e9954d6a787182 | /src/spider_match_data/spider_by_pro_user.py | ed3698e5105a77a051e13aac70b2ea31e5fb0d51 | [] | no_license | tobycc1990/dota2_predictor | b043a44b0b77436e90196385f5edb0b1c4339329 | 2a55111acc5023bb5d5738e23077040a4eab5315 | refs/heads/master | 2021-05-12T17:53:43.911216 | 2018-03-26T12:12:03 | 2018-03-26T12:12:03 | 117,056,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
CONFIG_PATH = "./../../conf"
# spider result will save in DATA_PATH
DATA_PATH = "./../../data"
import sys
import os
import time
import datetime
sys.path.append(CONFIG_PATH)
import requests
import spider_config
if __name__ == "__main__":
pro_players = requests.get("htt... | [
"tobycc1990@gmail.com"
] | tobycc1990@gmail.com |
26fbfefad92c3162a6e54c112bcdb54f23ca1301 | ea0df539c3b0cd14faf7d4f2bc3b955235fbf611 | /motion_detection_tracking.py | e96b11371e5f409dca815df6284bc2cdbb28317c | [] | no_license | aksharjo/opencv-python-examples | 408a3d8e6e79d7e3eb91f546786f3bbc9a9da09c | 372b8b44eeed5e198365438693b1265cd28c44bd | refs/heads/master | 2020-06-29T11:03:04.612845 | 2019-08-04T16:54:33 | 2019-08-04T16:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | """ detects the motion of object and draw a contour around the moving object and status is printed """
import cv2
cap = cv2.VideoCapture(0)
ret, frame1= cap.read()
ret, frame2= cap.read()
while cap.isOpened():
diff = cv2.absdiff(frame1, frame2)
gray = cv2.cvtColor(diff, cv2.COLOR_BGR2GRAY)
bl... | [
"noreply@github.com"
] | aksharjo.noreply@github.com |
0e7db03285c31b8c54d7006c5447105a87ba5eee | 381dca75c45449fb0d2252fdb0c5b40618a2dcfc | /src/aprl/agents/monte_carlo.py | b7c48c20b5564ea88da4cc9c1a0d32dd26768d87 | [
"MIT"
] | permissive | Nayan96/adversarial-policies | 6b3daee49a954602778b76e5f0f3573718e20240 | 799f9e17db0d69d605c4055164e458705a0b64d8 | refs/heads/master | 2020-08-09T03:40:41.458682 | 2019-10-09T15:22:30 | 2019-10-09T15:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,490 | py | """Monte Carlo receding horizon control."""
from abc import ABC, abstractmethod
from multiprocessing import Pipe, Process
import gym
from stable_baselines.common.vec_env import CloudpickleWrapper
from aprl.common.mujoco import MujocoState, ResettableEnv
class MujocoResettableWrapper(ResettableEnv, gym.Wrapper):
... | [
"adam@gleave.me"
] | adam@gleave.me |
0bccda679a470479ed2e699aaf932957507e734f | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /nni/nas/benchmarks/nasbench101/graph_util.py | 10805685fec3ff7359ec39dc0ae1c019e67950ae | [
"MIT"
] | permissive | petuum/nni | ac4f4a1c4d6df71684eeffa127b7c4858fd29e97 | 8134be6269902939232482d63649c06f9864be6d | refs/heads/master | 2023-02-18T11:21:41.078889 | 2021-01-20T03:21:50 | 2021-01-20T03:21:50 | 302,736,456 | 4 | 3 | MIT | 2020-11-20T20:21:15 | 2020-10-09T19:34:11 | Python | UTF-8 | Python | false | false | 3,790 | py | import hashlib
import numpy as np
from .constants import INPUT, LABEL2ID, OUTPUT
def _labeling_from_architecture(architecture, vertices):
return [INPUT] + [architecture['op{}'.format(i)] for i in range(1, vertices - 1)] + [OUTPUT]
def _adjancency_matrix_from_architecture(architecture, vertices):
matrix = ... | [
"noreply@github.com"
] | petuum.noreply@github.com |
7f968e8cacfb323f8bc7d760137b3a93d8bdde22 | 2e5d77779a0292ce8ef5bc0bf328515fed174900 | /collections/where/processing/__init__.py | f9a660d0bb5ca0adf53e15a47f7ea2b68cccc953 | [] | no_license | craig-mndnr-perreault/qgis_landview | d0157f9d756c7adf9084ccf5e132780ae8ddeff3 | 674740411acd8910b35d0375bcc637b8777b6349 | refs/heads/master | 2021-05-02T10:26:08.227524 | 2018-02-21T18:31:54 | 2018-02-21T18:31:54 | 120,796,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
CraigTest
A QGIS plugin
Click on the map
-------------------
begin : 2017-12-08
copyright : (C) 2017 by Craig... | [
"noreply@github.com"
] | craig-mndnr-perreault.noreply@github.com |
2ec5a1156d06c902673f739affb49f1533f4092d | 24bc4990e9d0bef6a42a6f86dc783785b10dbd42 | /build/fuchsia/PRESUBMIT.py | f8c7df28fc5fd1397f1569b6b65e371324b3fa65 | [
"BSD-3-Clause"
] | permissive | nwjs/chromium.src | 7736ce86a9a0b810449a3b80a4af15de9ef9115d | 454f26d09b2f6204c096b47f778705eab1e3ba46 | refs/heads/nw75 | 2023-08-31T08:01:39.796085 | 2023-04-19T17:25:53 | 2023-04-19T17:25:53 | 50,512,158 | 161 | 201 | BSD-3-Clause | 2023-05-08T03:19:09 | 2016-01-27T14:17:03 | null | UTF-8 | Python | false | false | 1,591 | py | # Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for Fuchsia.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API built into depot_tools.
"""
USE_PYTH... | [
"roger@nwjs.io"
] | roger@nwjs.io |
a7bbc60feece73e88f0a57f6209db2d14d87241c | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/cmdb_extend/subsystem_dependency_pb2.pyi | 56c626d516302fae9e256521a00d0df10a2ecd97 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
c534d7c22c8c9cfe1da125036b9b6e7f079298dc | 6cfa6d84722cf560b9dc144ba826d857e884d8fb | /redis/ticker/config/role.sample.py | 793f9031371e1b17ce60702bbe524190ca842034 | [] | no_license | chaeplin/dash-ticker | b5e3702c87bc351ae40863de8cd8a55dddc74330 | 99e1fdc4e105601bdcfa55e80c524ca48294bee8 | refs/heads/master | 2021-01-18T23:07:24.246729 | 2017-11-23T09:39:40 | 2017-11-23T09:39:40 | 72,606,879 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | HOST_ROLE = 'MASTER'
#HOST_ROLE = 'SLAVE'
# SENTINEL CHECK
# MASTER
MASTER_SETINEL_HOST = '192.168.10.3'
MASTER_REDIS_MASTER = '192.168.10.2'
#SLAVE
SLAVE_SETINEL_HOST = '192.168.10.4'
SLAVE_REDIS_MASTER = '192.168.10.1'
| [
"chaeplin@gmail.com"
] | chaeplin@gmail.com |
044aeb311eb74d6a14e920c6ab0dca891776c52f | 9d07eb049761b7c4b20886eb508b374b4fc1d0ae | /app.py | 2ce9a9127448d1ad1abbf77fd5f7b3e9d8585f4a | [] | no_license | constantinadrian/flask-task-manager-project | 3a38a95ec07b549f34bb92e91c7cd69f2c7e1707 | 16fba5d01848eca067a5591899f0c7b2037b7e03 | refs/heads/master | 2023-04-09T21:58:26.495807 | 2021-04-17T23:08:23 | 2021-04-17T23:08:23 | 358,011,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,620 | py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
a... | [
"adrianc.chiriac@yahoo.com"
] | adrianc.chiriac@yahoo.com |
fccee85fefc74d76c93148ccbcea8f7d6cde1535 | 4a3f0fac69ebfd7b6743a6abb6bc14e109f9f726 | /searchableencryption/fhipe/ipe.py | aa439a5c6b226d2d64d61e8f4ed037c4492e072a | [
"ISC"
] | permissive | duykienvp/searchableencryption | ff87f171fd8ac7269d463c123633c09452c746b6 | 7e6b4754bf3bd8efa1177c70286c6c77322af4fe | refs/heads/master | 2020-04-10T03:43:52.989150 | 2018-12-07T07:21:05 | 2018-12-07T07:21:05 | 160,778,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,691 | py | """
Copyright (c) 2016, Kevin Lewi
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ... | [
"duykienvp@yahoo.com.vn"
] | duykienvp@yahoo.com.vn |
2a4dd73d8fa0a792338f16d88cc04cd06a4656f6 | b88a1deff2507cb003bbc7795138db6215f2e519 | /py_project/signin.py | 82905801a6572427eff874087d8541f6387388f6 | [] | no_license | jonisiaco/python-flask-crud | d984d1f5a703224844048719bd7f24f7423c37f3 | c396376d3b7bcdf6b0d4f612c3773ee98e59ff4a | refs/heads/master | 2020-08-03T21:59:09.631041 | 2019-09-30T21:45:58 | 2019-09-30T21:45:58 | 211,897,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from py_project import app, db
from forms import LoginForm
from flask import render_template, redirect, url_for, flash, session
@app.route('/signin', methods=["GET", "POST"])
def login():
form = LoginForm()
if form.validate_on_submit():
user_name = form.username.data
password = form.password.data
if authUs... | [
"jonisiaco@gmail.com"
] | jonisiaco@gmail.com |
a2aad80e1bd8dcac5b76b43c7c1b79f9d346ecb5 | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /data_persistence_and_exchange/sqlite3/sqlite3_iterdump.py | b3e3cb6c5fd4e677c2df637f142fcfd822cb06dd | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 866 | py | import sqlite3
schema_filename = 'todo_schema.sql'
with sqlite3.connect(':memory:') as conn:
conn.row_factory = sqlite3.Row
print('Creating schema')
with open(schema_filename, 'rt') as f:
schema = f.read()
conn.executescript(schema)
print('Inserting initial data')
conn.execute(""... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
111903ce232a14277a6b8e90da627d4f7fbbecef | 0fa6389eafa73ad01ae5f28fc0f807360c960b7c | /env/bin/easy_install | 955d233430b719fe14f08855dd78fba7e65bfc6c | [] | no_license | littleslayer/bots | 46c5770e2800d4989547248bb98650b9922f826a | f230da15342b685524da54c88a69b98c6e90c0d2 | refs/heads/master | 2023-08-11T06:02:00.269799 | 2021-09-21T16:17:23 | 2021-09-21T16:17:23 | 408,888,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/georgy/vsd/bots/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"giorgiy.baranov.2006@mail.ru"
] | giorgiy.baranov.2006@mail.ru | |
9115b0b53bd43147a63189d7de98f1bddd67d459 | 83da6ba69113b46fd5c00c37b1b61ac82e7559ad | /python/2η Εργασία/2a. Sympy_VAS.py | 3f2942973527fe050f652b53f5babf3e941055b4 | [] | no_license | gapapado/Garyfallia-Papadopoulou | 7df5682484876bcbaa721151911f0c2bceefe020 | fdc46414d653bde8a57d2c80edaf87f08fea1af4 | refs/heads/master | 2021-07-19T01:33:07.302225 | 2020-09-23T09:07:59 | 2020-09-23T09:07:59 | 215,116,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from sympy import var, ZZ
from sympy import intervals, refine_root, N
from sympy import real_roots, CRootOf, Rational, S
from sympy.polys.rootisolation import *
from sympy.polys.subresultants_qq_zz import *
x = var('x')
f = x**3 - 7*x + 7
print('f as an arithmetic expression:', f, '\n')
print('using the private ... | [
"noreply@github.com"
] | gapapado.noreply@github.com |
bd32ba3fd62a9486d5b5dbaac375ebf63d3f6370 | b4871c8dd8ef257d604ac221ecff0c71e14f06cb | /pilot_curriculum/django_apps/generic_nasa/nasa/migrations/0001_initial.py | 99716aced67f5162e56b39feda4fbd930ab74f6c | [] | no_license | manzur1990/tracecamp_curriculum | b55605b0bbe4b5e3b333ae3fb105141e53f42e39 | e9c8ee9a3c151a5cd57137f6575d1342a7de83fb | refs/heads/master | 2022-04-13T15:24:54.305552 | 2019-08-12T13:58:40 | 2019-08-12T13:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Generated by Django 2.1.4 on 2018-12-21 15:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='NasaComments',
fields=[
('id', models.AutoF... | [
"bekkblando@gmail.com"
] | bekkblando@gmail.com |
8bbc5995cf8ac1daa24bbf2120f013c8297650ba | ed77fd675aa1307c3dcb404eea06b1b6ad0aec03 | /fullread.py | f1ef59da1584285c37e791b263f924da8d965d70 | [] | no_license | rsnarang/Mars-Rover-Data-Analysis | 3f7e25004a2a84ec876eb54a23f668387032ab6e | f43f8a544303c1f43cc8bf2a4dbdd69a0a2d720e | refs/heads/master | 2022-12-10T21:58:33.936910 | 2022-12-05T00:21:45 | 2022-12-05T00:21:45 | 182,816,584 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import pandas as pd
import glob
flist = (glob.glob('Moc/*.csv'))
pathmoc = '/Users/[user]/desktop/Python/Moc/'
col_list = ['File', 'K2O', 'K2O RMSEP']
df = pd.read_csv(pathmoc + 'UltMocFin.csv')
df2 = df[col_list]
print(df2)
| [
"noreply@github.com"
] | rsnarang.noreply@github.com |
496afa8406a6ad5f9584ceddba65ba6374ac3cfb | cc44edfa1edbedea3ad044805be7548e0ccba70d | /0x0C-python-almost_a_circle/models/square.py | dc5e2428176dcbb01162c0529f50870f361569e2 | [] | no_license | set808/holbertonschool-higher_level_programming | 421f0da1f91cd56eb2daa4e07a51b4a505d53edc | eb276a4e68e5cc43498459eec78fc05f72e2cd48 | refs/heads/master | 2020-03-09T13:07:43.824914 | 2018-09-08T00:26:46 | 2018-09-08T00:26:46 | 128,802,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | #!/usr/bin/python3
'''
Defines the class Square
'''
from models.rectangle import Rectangle
class Square(Rectangle):
'''Square class that inherits from Rectangle
'''
def __init__(self, size, x=0, y=0, id=None):
'''Initializes the Square object
Args:
size (int): size of the sq... | [
"spencertaylor808@gmail.com"
] | spencertaylor808@gmail.com |
461ae92691a4dc563eec6cbbe87cbff3f32fc321 | 5b68153a670cb834f03bc4b9c14961b02ca1efac | /BDA - Assignments/A4/BDA502_A4_P4.py | 9f287a04358f9d4b09efd4fddac58d74030979a3 | [] | no_license | cemkilicli/Uda-Machine_Learning | 4ce6004ea07bd70c4c02c2c2257ddb8a1fa974fd | d8de4ce5fc558f81e5a3d6a0fe69f36f18db50b3 | refs/heads/master | 2021-01-17T08:45:13.480547 | 2017-04-01T18:01:15 | 2017-04-01T18:01:15 | 83,961,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py |
import numpy as np
X = np.random.randint(6, size=(6, 10)) # assume that this is the survey outputs of 10 questions from 6 individuals
y = np.array([0, 1, 2, 3, 4, 1]) # assume that these are the political parties for 6 participants
print X
print X[2:3]
print y
from sklearn.naive_bayes import MultinomialNB
cl... | [
"kiliclic@mef.edu.tr"
] | kiliclic@mef.edu.tr |
698e29f11047d2ec058edc49d83078842a204ea8 | f98ca6e020f21b303f8cc2a8474f71ce436f2d75 | /tests/test_jsonlib.py | a67045757d2f9a40191ad7b77c8194728c2eb43e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | garnerargoed/clldutils | df8afd714ab0ae1004aeb47dc24e1e96bb33323b | 0d85c0bf46184bb99c6800ecbfa7f5db87cb2e7e | refs/heads/master | 2021-09-07T22:36:17.564100 | 2018-03-02T09:54:44 | 2018-03-02T09:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # coding: utf8
from __future__ import unicode_literals
from datetime import date
import pytest
from clldutils.jsonlib import dump, load, parse, update, format
def test_parse_json_with_datetime():
assert parse(dict(d='2012-12-12T20:12:12.12'))['d'].year
def test_update(tmppath):
p = tmppath / 'test'
wi... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
082cde2325e0e7425b5bceeddd0cc65adb267ce4 | dab2e417879aabec935b1ac6b8f40df0b652dbc8 | /stories/sixth.py | 1151b79982bfe47c5c4446eb224c345d4d5d87f9 | [] | no_license | handriss/new_school_system | 8d328db790d536dc44aa73139975a40701f8612b | 3583e80adac3c7287aa37954f7c78eb80ef03807 | refs/heads/master | 2020-09-27T20:53:19.588247 | 2016-09-15T08:26:05 | 2016-09-15T08:26:05 | 66,295,268 | 0 | 0 | null | 2016-08-22T19:31:18 | 2016-08-22T17:52:24 | null | UTF-8 | Python | false | false | 76 | py | class SixthStory():
def __init__(self):
print("Sixth Story: ")
| [
"andrashinkel@gmail.com"
] | andrashinkel@gmail.com |
2beba6ac551c8929f20422573779f239b13add27 | 519e0431a0d59db5cac646e5f21dd6c207e8c33c | /Lista-Simplesmente-Encadeada-Em-Python-master/Main.py | f014366c168affbcfe7519822bf926a3a3eb7241 | [] | no_license | vinny0965/phyton | 1c79cc394b72202e53117502c3c58054a68541b5 | 5ba3fe7875ba30d052e357426c8869d3d9a6dbf5 | refs/heads/master | 2020-07-28T08:54:50.828084 | 2019-10-22T23:29:45 | 2019-10-22T23:29:45 | 209,371,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from Lista import Lista
# Método para criar um menu no console
def menu():
print('''
[1] - Inserir Inicio
[2] - Inserir Fim
[3] - Remover Inicio
[4] - Remover Fim
[5] - Listar
[0] - Sair
''')
# Instancio a lista
lista = Lista()
dado = 0
opcao = -1
while opcao is not 0:
# Chamada ... | [
"carvalho.vinicius163@gmail.com"
] | carvalho.vinicius163@gmail.com |
12897c4dac1c5c46fdeab4214fcf8afd00824753 | 8aa89201a90616ad85c81c5ddf58340c6e15eb11 | /koalixcrm/crm/migrations/0065_productattributeassociation.py | a28e30086cdc49d60ff4fef8a8221ceca771970d | [
"BSD-3-Clause"
] | permissive | bahron83/koalixcrm | 98d2e26e004f1934a1e51ad102daa927696dedac | 6c9240f954a25d9177e8a44b26e261aa7f838c71 | refs/heads/master | 2021-04-27T07:38:43.429100 | 2019-02-10T18:19:56 | 2019-02-10T18:19:56 | 122,636,738 | 0 | 0 | null | 2018-02-23T15:13:26 | 2018-02-23T15:13:26 | null | UTF-8 | Python | false | false | 1,156 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-09 18:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crm', '0064_auto_20180408_1929'),
]
operations = [
... | [
"bahron83@hotmail.com"
] | bahron83@hotmail.com |
6dc28070a89def01f58833724ccccf168c6e0c38 | 6cb9fb197ad9f97939b126f5996c099e5be1731e | /django_pds/core/rest/views.py | 00e8f2d8cf00b5e7a91429f75a410026cde90bfd | [
"MIT"
] | permissive | knroy/django-pds | 16c396f55177df6c727a4968af62908f9142fe91 | 75f192eb38acf1ae98cba7034e8768750848e639 | refs/heads/master | 2022-12-04T14:19:39.408053 | 2020-08-20T15:30:16 | 2020-08-20T15:30:16 | 259,966,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from rest_framework.views import APIView
from .exceptions import method_not_allowed
class BaseAPIView(APIView):
def http_method_not_allowed(self, request, *args, **kwargs):
return method_not_allowed()
| [
"rax.komol@gmail.com"
] | rax.komol@gmail.com |
c0b766f87771e2917beaef38f23df52de3d2573b | 64572e6596a22bd08f5f259ade5b325dac9ba397 | /survey_sr/views.py | 2ba05463a4568053db5533a9f4a98cf4983a2c0f | [
"MIT"
] | permissive | mgutierrezc/Prueba-GECE | 236128902b5bd4c05f67ff5ac41697352df32c9e | b55cff353745957e4d4ef1d7aa002052ab623e56 | refs/heads/master | 2021-06-19T22:36:23.752872 | 2019-06-03T02:50:32 | 2019-06-03T02:50:32 | 154,437,433 | 0 | 0 | NOASSERTION | 2021-06-10T20:57:50 | 2018-10-24T04:10:45 | JavaScript | UTF-8 | Python | false | false | 1,111 | py | from . import models
from ._builtin import Page, WaitPage
from otree.api import Currency as c, currency_range
from .models import Constants
class Demographics(Page):
form_model = models.Player
form_fields = ['gender',
'field_studies',
'escala',
'ciclo',... | [
"GaryTheStTrooper@users.noreply.github.com"
] | GaryTheStTrooper@users.noreply.github.com |
f8eccfe1aedbc9b1aa4f0a96d6d6e702357e2324 | 9c69e2fc689194237ef294071a9c14c6dfabe545 | /src/ultimate/user/urls.py | f8a18af2ec2ba1e3f063efd7648d2a5fa4b8f419 | [] | permissive | a2ultimate/ultimate-league-app | 69f0331f5efeb2883c00990eb7a59ac346a34c69 | 1b40e8a01950fc526db9b649b78ada71ec567624 | refs/heads/main | 2023-04-03T06:43:24.471566 | 2023-03-16T00:55:22 | 2023-03-16T00:55:22 | 8,152,035 | 4 | 2 | BSD-3-Clause | 2023-03-16T00:55:24 | 2013-02-12T03:15:25 | Python | UTF-8 | Python | false | false | 1,599 | py | from django.conf.urls import url, include
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete
from . import views
urlpatterns = [
url(r'^$', views.index, {}, 'user'),
url(r'^log-in/$', login, {'template_name': 'user/login.h... | [
"ryanjdonnelly@gmail.com"
] | ryanjdonnelly@gmail.com |
bda9e286655709b69005e3804bdc32e23d0e074c | 1f246ab8f856a7f4cf42ed6fdba0b432be16ed7c | /przepisy/views.py | 377eeb62f533464b365488d6afbc6229fdd6173a | [] | no_license | salolg/cooking-recipes | 7c4adb6c9aa7f7f5055b909ec397beabb7485b2a | fec2466c37a45c8d563236d502587b1d167b7e9a | refs/heads/master | 2021-07-08T07:01:12.101245 | 2019-12-22T15:06:17 | 2019-12-22T15:06:17 | 229,552,070 | 0 | 0 | null | 2021-03-20T02:23:50 | 2019-12-22T10:37:59 | Python | UTF-8 | Python | false | false | 2,380 | py | from flask import Flask, request, session, redirect, url_for, render_template, flash
from models import User, todays_recent_posts, searching_for_posts
app = Flask(__name__)
@app.route("/")
def index():
posts = todays_recent_posts(5)
print(posts)
return render_template("index.html", posts=posts)
@app.ro... | [
"olga.salagacka@nokia.com"
] | olga.salagacka@nokia.com |
4ee1c835bfb47e715ce2c96c65cf218f187bab31 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/numpy/lib/npyio.py | 6eb9cbd18235dbb0bd65ee520e9f94852156d02a | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:40ba76b8ee10e92857396797dd69934bd5b9c1c413138a9ccef88a8b534917a6
size 84853
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
83319f6df2ebe125e516bd716b711c051f7dee54 | 01d1ffbffecb2abc4d0e06e11c3fbc4f966c3710 | /Assignment IV/Exercise_2/Exercise_2/Exercise_2a.py | 497aa80c56d17463b81b2931a010292f8879b503 | [] | no_license | rzeg/INFDEV01-1_0920429 | 39796ca1b089cd9e07bf2312ee9b8db4557e7ba7 | 86d16a7354d365f302bfbe81285a34798c6279e5 | refs/heads/master | 2021-01-02T09:14:30.678946 | 2015-10-09T10:46:27 | 2015-10-09T10:46:27 | 42,510,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | user1Input = raw_input("Player 1 - Type R for Rock, P for Paper or S for Scissors to make your choice ").lower()
user2Input = raw_input("Player 2 - Type R for Rock, P for Paper or S for Scissors to make your choice ").lower()
if(user1Input == user2Input):
print("Draw")
if(user1Input == "r" and user2Input == "p"):... | [
"rickzegelaar@gmail.com"
] | rickzegelaar@gmail.com |
fa38a33d18841978abe59755c3e991f60bec244a | ef4b01eb3cc09193ca0410d24ae40a8ccfc7fa27 | /kaldi/egs/aspire/s5/file_availibility_in_api.py | 8fc42853984798ba665649f532f3900eeb1b1e47 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | NitinShuklaML/ASR-WebAPPLinux | 67f25c7714dff451fc26a64099760edd2e5d18da | 1e70ec76cde118e48aa3141e347874716ff1ceeb | refs/heads/master | 2020-12-05T10:28:38.111633 | 2020-01-06T13:54:32 | 2020-01-06T13:54:32 | 232,080,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #!/usr/bin/env python
import json
import sys
import urllib
args=" ".join(sys.argv[1:])
response_json = json.loads(args)
#print("response_json from file in api availibility json : "+ response_json[0]["error_code"])
flag=False
if response_json[0]["error_code"] == "NOT_FOUND":
flag=False
else:
flag=True
... | [
"nitin.shukla2014@gmail.com"
] | nitin.shukla2014@gmail.com |
7fc3421e8ac94d7bcef61a7fd298c65c3e30f4f2 | 6947ea29250a8ee2d308b3bfcc4311dc9ecec17b | /spim_registration/timelapse/KLB_2_BDVXML.py | 17c81a728cd1fa2d88344618d54dbeae4231bfcf | [
"BSD-3-Clause"
] | permissive | Xqua/snakemake-workflows | 86361beb61021b0f9f23c7e213a2b27ff6e473da | 28980575bedeb1452ae54bb5771195080907de66 | refs/heads/master | 2020-05-18T02:34:21.676562 | 2019-05-16T20:18:26 | 2019-05-16T20:18:26 | 184,119,453 | 0 | 0 | BSD-3-Clause | 2019-04-29T18:04:34 | 2019-04-29T18:04:33 | null | UTF-8 | Python | false | false | 6,255 | py | #!/usr/bin/env python3
import xmltodict
import sys
from optparse import OptionParser
import os
from collections import OrderedDict
import pyklb
parser = OptionParser()
parser.add_option("-b", "--basedir", dest="basedir", type="string",
help="[REQUIRED] KLB file root folder")
parser.add_option("-r",... | [
"xqua@free.fr"
] | xqua@free.fr |
8710c34e56994907a5c2a8375d3db551668509d1 | 5e5b3776acc441b77a970db29d99e850b79be65e | /gist/define.py | 3f301f552c4ea79b674caf06a826dd54b686c3f2 | [
"Apache-2.0"
] | permissive | eightnoteight/x-gist | f153ae7c5ae5d9335af23ba54c0c668b71a5c157 | ec65e5193f989238a026a8b239eabf61c5ec7a8d | refs/heads/master | 2020-12-24T16:23:40.157360 | 2014-08-15T04:54:14 | 2014-08-15T04:54:14 | 22,781,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class struct(dict):
def __init__(self, **kwargs):
super(struct, self).__init__(**kwargs)
self.__dict__ = self
client = struct(name="x-gist",
url ="https://github.com/eightnoteight/x-gist") | [
"mr.eightnoteight@gmail.com"
] | mr.eightnoteight@gmail.com |
2ca3886162c8a7299d552d659c963526470fe2f9 | 92c2a6ffb602df2d43274bc42d3452166909b1af | /2019/11/day11.py | 87b9277dc33dd332615bba1fef85f905b313bf51 | [] | no_license | tonyaiuto/aoc | 97c123a8b2e3326ae517d6f03ad00e63846e0432 | c24b41cd439511f08e3aa352ea0e0a64c80f5cd6 | refs/heads/main | 2023-01-10T23:27:50.912271 | 2023-01-04T13:20:01 | 2023-01-05T03:44:26 | 160,863,158 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | #!/usr/bin/env python3
from elf_image import ElfImage
import intcode
class Robot(object):
def __init__(self):
self.x = 0
self.y = 0
self.dir = 0 # 0 up, 1 right, 2, down, 3 left
self.painted = {}
def turn(self, dir):
if dir == 0:
self.dir -= 1
if self.dir < 0:
self.dir ... | [
"aiuto@google.com"
] | aiuto@google.com |
52aeb333ec773168df48f02e2f66a9fb9b84d8a7 | d0da7ed581bbab646dceccc0eab352b6e3d648e1 | /main_app/views.py | 1db4e895090240428e9755cf7a9ad7fd68f57e8b | [] | no_license | chauncy-n/webdevskills | bb4972b26395ed9e4b53bc8fc425f9e40ed149a0 | 7ef11ff5bbaa7dfca0c71b6577f6e38a567e5011 | refs/heads/master | 2020-04-01T02:31:24.941313 | 2018-10-12T21:45:55 | 2018-10-12T21:45:55 | 152,782,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | from django.shortcuts import render
from .models import Skill
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.http import HttpResponseRedirect
from .forms import LoginForm
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserCreation... | [
"eldoon@comcast.net"
] | eldoon@comcast.net |
efa12a796f713cb561780c00a44c90b86ff8f070 | 76192190ae7e3407c5bdd177db0f9929b6db83f8 | /xmltodict3/xml_to_dict.py | a1d82a1fa3f8f84b41ed65f14913724cc9974bed | [
"MIT"
] | permissive | dart-neitro/xmltodict3 | 66780b37576f5535f1450a0e5e586fa0702e40da | 9424983509b1fa5028627719963f06317c3fd077 | refs/heads/master | 2022-12-21T07:08:31.860976 | 2020-09-13T12:51:06 | 2020-09-13T12:51:06 | 254,725,209 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,173 | py | """
Classes for transformation from XML files, string with XML and
xml.etree.ElementTree objects to python dictionary
"""
from collections import defaultdict
import re
import xml.etree.ElementTree as ElementTree
from typing import Union, Dict, List
from xmltodict3.transformers import PullTransformers
class XmlToDict... | [
"admin@rnd2.ru"
] | admin@rnd2.ru |
2400ef6b3a04d86bc85202a882efac402f7cff96 | 4283b47dda370393f12bff63e8528c90ed3bff2e | /odoo_configuracion/modules/modulo_prueba/models/models.py | 47c7d8f943137b0fe276d7a5b0e0960bbddfbbdf | [
"MIT"
] | permissive | jaqconsultor/odoo_informacion | 11acb0a338afcda34f81d3137c4e10a42bf7d306 | 9e33a758e086fccccb4c1cd3420c3891efb5de56 | refs/heads/main | 2023-04-17T03:23:18.599794 | 2021-05-03T23:55:20 | 2021-05-03T23:55:20 | 364,088,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
# from odoo import models, fields, api
# class modulo_prueba(models.Model):
# _name = 'modulo_prueba.modulo_prueba'
# _description = 'modulo_prueba.modulo_prueba'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# ... | [
"soluciones@jaqconsultor.com"
] | soluciones@jaqconsultor.com |
9afdb639ecdcd91cc372fddec76524fc52b25c3c | 4252d5f3d4e34124259fd1985e736b47842e9a5a | /Tkinter - 10 - Creating a Toolbar/Tkinter - 10 - Creating a Toolbar.py | e97bc464f66a329fb1255b0e24d253d793cb2da7 | [] | no_license | judas79/TKinter-git-theNewBoston | 2c7643b46e4b82d6f0f4b8527228f5f5b777ba3f | 01f943bdd25f771787fb22b35a976fa915a9c933 | refs/heads/master | 2020-12-21T23:58:30.597985 | 2020-01-30T21:45:28 | 2020-01-30T21:45:28 | 236,606,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | from tkinter import *
def do_nothing(): # Notice this function comes before the main window ie root, is built
print('this does nothing')
root = Tk() # creates a blank window named root
root.geometry("500x300")
root.title('Roddy') # renames title to Roddy
#**********************... | [
"robotrods@gmail.com"
] | robotrods@gmail.com |
ac2dea16ccd2b71756d09ad35c1724375eada021 | 5c2f520dde0cf8077facc0fcd9a92bc1a96d168b | /microbenchmarks/exceptions_ubench.py | 8260f1764de23db08de7146823a2733eba4417dc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | nagyist/pyston | b613337a030ef21a3f03708febebe76cedf34c61 | 14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab | refs/heads/master | 2022-12-24T03:56:12.885732 | 2015-02-25T11:11:08 | 2015-02-25T11:28:13 | 31,314,596 | 0 | 0 | NOASSERTION | 2022-12-17T08:15:11 | 2015-02-25T13:24:41 | Python | UTF-8 | Python | false | false | 241 | py | def f():
# Try to eliminate as much non-exception stuff as possible:
from __builtin__ import Exception
e = Exception()
for i in xrange(100000):
try:
raise e
except Exception:
pass
f()
| [
"kmod@dropbox.com"
] | kmod@dropbox.com |
72e463abce2ec31cbab727c3ad66951dd1293acc | bde81bb9686a863e0010607e09ffcf2b80a15ee0 | /Keras_Version/model2.py | 65c8623146f6489984ca9ded51cb9b54a714c0d1 | [] | no_license | qss2012/DeepGraphCNNforTexts | a813117275d3b3c6211b7694c79093e79b543732 | bf0bb5441ecea58c5556a9969064bec074325c7a | refs/heads/master | 2020-04-25T14:59:42.227391 | 2018-08-10T06:50:26 | 2018-08-10T06:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,254 | py | # -*- coding: utf-8 -*-
from keras.layers import (
Input,
Activation,
Dropout,
Flatten,
Dense,
Reshape)
from keras.layers.convolutional import Convolution2D
from keras.layers.normalization import BatchNormalization
from keras.models import Model
from keras.layers.pooling import MaxPoo... | [
"noreply@github.com"
] | qss2012.noreply@github.com |
f91910ccd899ad5814d55a691ce71486e030354d | b0794edd7973616367cd7abbd0c87fc202c39fc7 | /app/__init__.py | 66b42360a67a66ba525d75a56513958062fe2c5f | [] | no_license | OneCalledSyn/Synvitational | 1b0082c1e03f4f2e18f89aa5651fa22f0a7c053a | d5fbe6ad96debfa032d3c603df7b78d347fa6e2b | refs/heads/main | 2023-02-27T03:23:00.947656 | 2021-02-03T21:42:47 | 2021-02-03T21:42:47 | 314,645,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | # Create the application object as an instance of class 'Flask'
from flask import Flask, request, current_app
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler, RotatingF... | [
"noreply@github.com"
] | OneCalledSyn.noreply@github.com |
4e09941d8526d97efadcbe72fd89245084658d3f | 3d230fb3b1922ad96d2f804d0a4edaf70c9a6688 | /swe0/ext/portal/views.py | 9e83a4c369659cab6a5cd4585a4724b1372b62b1 | [] | no_license | ubacm/swe0-old | d24a89b2801b0aac31bb016dc2f6050dca673717 | 233adb8af49d6e18e4e4d55f1c95a53b9f0bdcca | refs/heads/master | 2020-03-18T17:17:35.066673 | 2018-11-18T19:07:47 | 2018-11-18T19:07:51 | 135,019,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from flask import render_template
from swe0 import enabled_extensions
from . import portal_blueprint
@portal_blueprint.route('')
def index():
return render_template('portal/index.html', extensions=enabled_extensions)
| [
"angushtlam@gmail.com"
] | angushtlam@gmail.com |
5e1ffa3a96834760eec7dd3e8145af3638e64e3e | 30db5c868ec38f063adebe61435db0dfdcdaf689 | /src/CIDA/main.py | 2bab8f394b0c71bf702293c2c3d9a2649dcdfe57 | [
"MIT"
] | permissive | anshuln/Training-for-the-Future | 94db402e22b6537f911b809ac3c4993809785319 | dea30999827ff5882468d318fa536f96455267ca | refs/heads/main | 2023-09-06T01:38:28.552198 | 2021-11-17T08:17:18 | 2021-11-17T08:17:18 | 421,274,612 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,130 | py | from easydict import EasyDict
import argparse
from torch.utils.data.sampler import SubsetRandomSampler
import numpy as np
import os
import random
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
from tor... | [
"anshulnasery@gmail.com"
] | anshulnasery@gmail.com |
bb42c4ef5ed1b734e189b8498c3f6455c4e3163f | d68048667b6bfbe83319db3662e2bae375c88502 | /Inventory.py | 1ff792023f088cc9d5bd8d1c024c1f7c68d2f8b9 | [] | no_license | CherepoGG/ArenaRPG_on_python | 534e2ac355a2c72d4f8b09175a086a0678e9163d | 260bd567f85b227b756c40dab7b3efa429463228 | refs/heads/master | 2022-11-09T18:51:34.035233 | 2020-06-23T06:49:37 | 2020-06-23T06:49:37 | 264,398,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | class Inventory:
def __init__(self):
self.inventory = []
self.limit = 10
self.current_limit = 0
def add_item(self, item):
if self.current_limit <= self.limit - 1:
self.current_limit += 1
self.inventory.append(item)
else:
pri... | [
"noreply@github.com"
] | CherepoGG.noreply@github.com |
67f7daaefaae8d776a203ce1eb65de7d4fc4810a | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/0339_nested_list_weight_sum.py | 4db7961460d959975511fefeea17b42164eec24f | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # dfs
# time O(n)
# space O(1)
# """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger:
# def __init__(self, value=None):
# """
# If value is not specified, initializes an empty list.
# ... | [
"noreply@github.com"
] | boknowswiki.noreply@github.com |
b37361e125867ab72a8e5057b71914f5bfc99446 | 2ed0242e9ec6b8fb4fda745fafe715e787ebe8bd | /blog/migrations/0008_post_update_date.py | 77bd27e35b841c8a5f2b79d22ae64156b6ab8d1d | [] | no_license | mugan86/camperp | 95793ae7d7e644dcdb1fab425f71315d66feb4ff | 597573c4d82d9963acc2ef4dc56ae4cc08ed7667 | refs/heads/master | 2021-01-12T12:51:54.094600 | 2016-10-20T18:35:18 | 2016-10-20T18:35:18 | 69,386,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-14 18:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_auto_20161008_0852'),
]
operations = [
... | [
"mugan86@gmail.com"
] | mugan86@gmail.com |
3215f4395ddfe3f66ca86b29a70209aa7b2a2b1b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/databox/azure-mgmt-databox/azure/mgmt/databox/__init__.py | 01935d3cb4901323838878ded3e2783723747739 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 726 | py | # 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) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
c6953a4e5043c527d601564eb5a7b592755e8c6f | 9db85dc0b9195f99dfef79d79ba8d556649abcf5 | /Chen_Xueying_HW3_6.py | ad1b73d0c9fabf1bfa7faffa5c8441c947fb57e1 | [] | no_license | alvyxc/DSA4413 | 13b4e0ee774fcb950f8f42e9797f9e6466605d92 | ae4577a30cd1ff7dca76443616bd39a1aabd68f7 | refs/heads/master | 2020-07-24T15:12:02.317982 | 2019-12-09T07:41:31 | 2019-12-09T07:41:31 | 207,965,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import math
import random
found = False
threshold = 10
def merge(arr, l, m, r):
L = arr[l:m+1]
R = arr[m+1:r+1]
i = 0 # Initial index of first subarray
j = 0 # Initial index of second subarray
k = l # Initial index of merged subarray
while i < len(L) and j < len(R) :
if L[i] <= R... | [
"xc573a@us.att.com"
] | xc573a@us.att.com |
f3d055a7ef6f252097e216f76b6b7183664a0b4d | b93dda642d64868d35a4b9875e49ae65b1110183 | /Area of a Field.py | 0b9a506fd5350a4681eb1a9a57c7cd5dd97d33a2 | [] | no_license | OsmiumDust/classwork | 0e36ece06865f685b076c81d872b41717d4e5cff | 491da103105ea5d9a15f543b4c8ca2647139cb79 | refs/heads/master | 2020-04-21T13:46:41.867882 | 2019-03-26T17:22:12 | 2019-03-26T17:22:12 | 169,611,212 | 0 | 0 | null | 2019-03-01T16:53:50 | 2019-02-07T17:20:57 | Python | UTF-8 | Python | false | false | 259 | py | print("Calculating area of a field in acres")
length = float(input("What is the length of this feet in feet?"))
width = float(input("What is the width of this feet in feet?"))
Area = (length * width) / 43560
print("The area of this field is:" , Area, "acres") | [
"noreply@github.com"
] | OsmiumDust.noreply@github.com |
0d97ba84468527ed14779b4592870c4d6e235c17 | bf05b11814d13f49afefc5cce95dd4c141383ccb | /regular_siamese.py | 2c6d1366e1f1f13be231765d0d4d8ca3d4cd8f1f | [] | no_license | bferrarini/keras-timedistributed-siamese | ce7d65880f02e8f22fae1b6036b81f9e47e9e428 | 0036cfe14a340a26598fba07c3563733a727df8f | refs/heads/master | 2023-02-02T13:44:16.550947 | 2020-12-21T22:49:51 | 2020-12-21T22:49:51 | 320,066,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,868 | py | """
Copyright (c) 2020
Author:
Bruno Ferrarini (University of Essex)
This project is licensed under MIT.
The source code is a modified version of the example shared at https://gist.github.com/mmmikael/0a3d4fae965bdbec1f9d to work with Tensorflow 2.0
A siamese network is implemented with the regular twin-branch arch... | [
"bferra@essex.ac.uk"
] | bferra@essex.ac.uk |
57362ba0e53034e56e33d83ce38fe14c64c59506 | 79fb5c5552645e3b2d4428a857ee46d448183eac | /tools/mvTrainer.py | ac2ecf7f0d4cb405ad41411c91697ecdebe4fd64 | [] | no_license | ChengChen2020/mvter | cac2e582880b1bb500080c8ecd437db9e4507882 | aafe576b1a4d9b6233eec714e81763c26e84978e | refs/heads/main | 2023-06-17T02:22:49.371659 | 2021-06-25T03:24:28 | 2021-06-25T03:24:28 | 372,432,718 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | from tqdm import tqdm
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
class mvterTrainer():
def __init__(self, log_dir, model, train_loader, test_loader, optimizer, scheduler, num_views=12, w=1.0):
self.log_dir = log_dir
self.model = model
self.train_loader = train_loader... | [
"cc6858@nyu.edu"
] | cc6858@nyu.edu |
4d1022dc40f697e79fed4872a64c1e1fada292a0 | 89b7056826e2df8525ebdb279491cf660493893b | /flowalyzer.py | 40be1741b1bf7dd1eda979be7b03fd6c712a3b0f | [] | no_license | constcast/flowalyzer | 25ae94e6be415c47bfd1ccfb856c82e38a5d4a3e | f17c14384ced189c7082824bee68422a076f5ade | refs/heads/master | 2020-05-17T03:44:52.695367 | 2012-03-14T16:44:50 | 2012-03-14T16:44:50 | 2,650,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!/usr/bin/env python
from optparse import OptionParser
from mainmodule import getMainModule
import sys, yaml
if __name__ == "__main__":
parser = OptionParser("usage: %prog [options]")
parser.add_option('-c', '--config', dest="configfile",
help = "config file in yml format (required)")
(options, args)... | [
"braun@net.in.tum.de"
] | braun@net.in.tum.de |
a338badeef81d66bc04c82fec02b2e5181f8c5e2 | 9ce37874388961f28344931f3fb051d7a0dbd4c5 | /hikerrank/models.py | 126e2433fc898222141f6d8afddbe95c1ed9de9a | [] | no_license | jerrypeng02/Hikerrank | 8a33968bea3a4a0cca6783ca46f2469a9b36d1ee | 1ca21e748dc0c3274e48d75b22ce99d3ea270a4c | refs/heads/master | 2023-01-23T17:59:13.879867 | 2020-12-09T05:11:45 | 2020-12-09T05:11:45 | 319,846,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,003 | py | from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from django.contrib.auth.models import User
User._meta.get_field('email')._uniq... | [
"jerrypeng02@gmail.com"
] | jerrypeng02@gmail.com |
0193b01dc0137c46fdb0cd40dfa3ad9c171772d2 | f300699fc84b497f1a2de47a1f7994869116b8d5 | /venv/bin/pip | 0f049d8ae325889d243688804b814035376004d7 | [] | no_license | Maurice-Muthaka/Python-Flask-Blog | 39a0aad6cb8e16c3e045d9103e9c8ba3fe1e37c7 | 591841c02e89d001e63ca6b6cd23d1f5d5bba21b | refs/heads/master | 2022-12-26T23:48:41.267906 | 2020-10-13T20:30:14 | 2020-10-13T20:30:14 | 301,540,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | #!/Users/mac/PycharmProjects/newblog/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"mauricemuthaka@gmail.com"
] | mauricemuthaka@gmail.com | |
91d66a042dd155e0b4c535b6fd0d0b0c5f21e6bc | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/Py括号的配对问题.py | 07341985e258c672ef6b2f14eda73e2fd3628ce7 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | lst = raw_input().strip()
stack = []
flag = True
for i in lst:
if i == '(':
stack.append('(')
elif i == '[':
stack.append('[')
elif i == ')':
if len(stack) > 0 and stack[-1] == '(':
stack.pop(-1)
else:
flag = False
break
elif i == ']':
... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
1d5bd8721529674e5f6853512782765366b3340d | 9361fe5fbb567e23f5ce3315c2aaa7675411fa02 | /hardware_interface/scripts/serial_node_mega.py | 9c77bb349a8d0e3ff2b276d461aa0a3af5aeac3a | [] | no_license | dannypadilla/Robosub2018 | d2fb1c546575efb1579c260e50decc16bfcf7a22 | 509cb13b5d297418cc86e45e1ac35354b97a569e | refs/heads/master | 2020-03-25T19:07:08.888322 | 2018-07-28T23:28:15 | 2018-07-28T23:28:15 | 144,065,609 | 1 | 0 | null | 2018-08-08T20:44:17 | 2018-08-08T20:44:17 | null | UTF-8 | Python | false | false | 4,100 | py | #!/usr/bin/env python
#####################################################################
# Software License Agreement (BSD License)
#
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that th... | [
"synergy1095@gmail.com"
] | synergy1095@gmail.com |
7d28daded65b8c89fa59a9043486597527a861fd | a6f64fbc3e97962f8443cba0b499570268f85697 | /book/templatetags/markdown.py | 4d47d4e036bd2d7f28ff3812c5d61d8eb5750d01 | [] | no_license | xggrnx/translate_problem_solving | f8b55c4aadd893c6685bbf1bfa295531fee23d10 | b8c19da196abc0ddb3ad3ebf62c252d1c70100dc | refs/heads/master | 2021-01-15T20:44:07.994835 | 2014-06-01T08:15:15 | 2014-06-01T08:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from markdown2 import markdown
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from django.utils.text import force_unicode
register = template.Library()
@register.filter(is_safe=True)
@stringfilter
def markdown2(value):
return markd... | [
"shamkir@gmail.com"
] | shamkir@gmail.com |
cee58b171102a5c97d291ca70e27fba7e8d8a050 | ff8e957db8a7d238db655b0458bf6d389c027a77 | /src/rna/modules/remote_management/tasks.py | 7fb30b768ab0bdea1daea3eceb65d70262f30afe | [] | no_license | will7200/RNA | 68d30a1c493a57f69f00ec5d40456fba76d87415 | 0c39aca2ee88c8c76c41c30dce36906e63ef5871 | refs/heads/main | 2023-02-03T20:01:05.628350 | 2020-12-23T16:58:03 | 2020-12-23T16:58:03 | 322,120,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | import os
import subprocess
import tempfile
from rna.extensions import celery, db
from rna.modules.core.remote_management.schemas import ExecuteDetails, AuthenticationMethod
from rna.modules.remote_management.models import HostCommandEvent
def build_ssh_command(details: ExecuteDetails):
host = details.hostname
... | [
"will7207@gmail.com"
] | will7207@gmail.com |
dc4ee8f6a93c84ad4ec642b105f5776f3d804089 | fccd8a6ce8e5369a152a1e46008d588c155264ef | /Lab8/C Codes/ldsfn.py | 970ca72aec3f5a1451848bbdeb1fbd09039c5765 | [] | no_license | jagonzalezvi/AlgorithmsUN2021I | ec0f1cdb8d9d566c1c53873ae2bfcdcf6cfc5c0f | db0e9efdfaf38a918ee14da642773cf05c99ade7 | refs/heads/main | 2023-07-17T19:16:23.755009 | 2021-08-09T14:10:20 | 2021-08-09T14:10:20 | 344,151,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # Uses python3
import sys
def fibonacci_sum_naive(n):
if n <= 1:
return n
previous = 0
current = 1
sum = 1
for _ in range(n - 1):
previous, current = current, previous + current
sum += current
return sum % 10
def get_fibonacci(n):
if n == 0:
return 0
... | [
"noreply@github.com"
] | jagonzalezvi.noreply@github.com |
55d22da914c4ade053c762b9f5ccd29547f0584f | 718fea511bfd7e8c16307909c0662a423738ff83 | /makeModel.py | 987f2d96e0023b85be875d167b6b04e9c772eeaf | [] | no_license | chudeng/study | 4123b5108694585822246becbdef76f967f9c56c | 568fdc79d69afc204af5395d947defa2907a3c25 | refs/heads/master | 2023-04-02T07:54:19.812935 | 2021-04-09T08:24:00 | 2021-04-09T08:24:00 | 342,161,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # 패키지 임포트(import)
# 데이터 적재를 위해 필요한 패키지를 임포트(Import)한다.
from keras.datasets import mnist
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Activation
# 데이터 적재(Load)와 분할
(train_data, train_label), (validation_data, validation_label) = mnist.load_data()
# 적재된 데이터 확인
# 대... | [
"chudeng@hanmail.net"
] | chudeng@hanmail.net |
0646d3e78b4be5c3a140963336474e911eb00d30 | 6518f97e1763fe85cd60242f5b544218b6843104 | /DaEun/little.py | ee4b7d8e2460a34c7222d1c8b694df9f11ac4e0e | [] | no_license | KJJH/CapstoneDesignProject | 0d912ffaeb1e2952e973fc7e99fbc153018b7533 | 79b85b54b5ab290325f144c0ffc2034d0e2468ef | refs/heads/master | 2021-01-19T20:22:46.966276 | 2017-06-19T08:32:01 | 2017-06-19T08:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import urllib.request
import re
import pymysql
""" 이미지 다운로드 class """
class crawlerImageDownload:
def imageDownlad(self, imageUrl, name):
image = urllib.request.urlopen(imageUrl)
fileName = 'image/' + name[0] + '.jpg'
imageFile = op... | [
"ekdms717@kookmin.ac.kr"
] | ekdms717@kookmin.ac.kr |
0f5773e8b31e055609b801c44d7c309044166cf5 | 0bc4731f0b87ebc03afe2b282efeca98f161be6d | /data.py | 997c527ed4f7ee53a1905da6fa2f4dfc780e0346 | [] | no_license | melrobin/MachineLearning | caec26c47dfc3bdaeee70b1434023379673d768e | e20a79b79e8af7c35937c7d87bf78da50bf91e74 | refs/heads/master | 2020-04-05T12:34:37.348733 | 2017-06-23T19:05:11 | 2017-06-23T19:05:11 | 95,159,257 | 0 | 0 | null | 2017-06-22T21:48:21 | 2017-06-22T21:48:20 | null | UTF-8 | Python | false | false | 959 | py | import numpy as np
from sklearn import neighbors, model_selection
raw_data = np.genfromtxt('plrx.txt') #plrx.txt is the dataset txt file
data = raw_data[:,:12] #splicing the raw data
label = raw_data[:,-1]
X = data #data for testing
y = label
X_train, X_test, y_train, y_test = model_selection.train_test_sp... | [
"rojascm02@gmail.com"
] | rojascm02@gmail.com |
638f5ba55fba06ccfd360c4cff56e77791f1da9d | 9cba1347ff1c2aa8ea57e5d5a232e32dc170cb81 | /04_the_fifteen_puzzle.py | 1dfb6d095909b0af969ccbeb0750f047d984a2cc | [] | no_license | Alhxor/python-poc2 | 73f6a8b32399f58fcd587c5f71ba197088be14a8 | f45ed3389030b5b665105878d3c17c1c667879cb | refs/heads/master | 2020-05-26T21:08:33.835611 | 2019-05-24T07:28:01 | 2019-05-24T07:28:01 | 188,374,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,369 | py | """
Loyd's Fifteen puzzle - solver and visualizer
Note that solved configuration has the blank (zero) tile in upper left
Use the arrows key to swap this tile with its neighbors
"""
import poc_fifteen_gui
class Puzzle:
"""
Class representation for the Fifteen puzzle
"""
def __init__(self, puzzle_heigh... | [
"hellk.pub@gmail.com"
] | hellk.pub@gmail.com |
66e5798ab2976e00c02d75e5a536974524bdee60 | 18c972a51361e0e1fd7999a6b1d3335352b6cf17 | /GeneratorSoftware_FLASK/NoiseGenerator.py | ca8799e719affcd72bacb1c9e27717d4cbe65548 | [] | no_license | jeffThompson/WhiteNoiseBoutique | f38a7b75307a008e5fddbdd8d3198a33eb3bc92e | 721bc9b4395253315e73c4f586ba71b2ca2c2553 | refs/heads/master | 2021-01-18T15:14:28.119126 | 2015-09-04T14:55:46 | 2015-09-04T14:55:46 | 39,200,520 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py |
'''
NOISE GENERATOR
Jeff Thompson | 2015 | www.jeffreythompson.org
Interface for generating boutique white noise.
TODO
- web interface with Flask
PROCESS
(many of these items can be skipped if specified)
1. generate noise using either:
1a. built-in RNG, or
1b. input from hardware RNG
2. save to file
3. creat... | [
"mail@jeffreythompson.org"
] | mail@jeffreythompson.org |
bdd539bb9bc7e64f304e429bb91e39fb93ee3dd1 | 1c7cb3154854a0d5f628c4285aa209affd8d2fc9 | /chaos-ns-3/ns-3.27/src/nix-vector-routing/bindings/callbacks_list.py | 0fba47bd06742fae23799b018f8d47fa7e15e009 | [
"GPL-2.0-only",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | ErikNatanael/royal-chaos | fac8e5891044490cd2e61b7367f284d99951d0d1 | a8e763d3720cc3e158e98143cabce8106d8de2aa | refs/heads/master | 2022-07-16T12:21:31.494237 | 2020-05-12T12:50:08 | 2020-05-12T12:50:08 | 263,333,134 | 0 | 0 | MIT | 2020-05-12T12:42:08 | 2020-05-12T12:42:08 | null | UTF-8 | Python | false | false | 1,563 | py | callback_classes = [
['ns3::ObjectBase *', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
['bool', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<const ns3::Packet>', 'unsigned short', 'const ns3::Address &', 'ns3::empty', 'ns3::empty', 'ns3... | [
"zhanglong3030@qq.com"
] | zhanglong3030@qq.com |
0502027a727280b3ed0d2bedef582948f0b0f229 | a94ff9b8b7ad19047c5acb87d7c867628e2d4f75 | /CreateDatacards/properties_datacardClass_phase.py | d7b41c37280fcbd59ebe2daa35c1e3df3e5ff79c | [] | no_license | meng-xiao/HiggsAnalysis-HZZ4l_Combination | 16ccef3bba6885376213b427d8be4f46f7752262 | 3fc348c32ba0df902f70d38b71ce1837463a9e82 | refs/heads/master | 2021-01-17T12:50:28.316409 | 2014-09-15T14:18:32 | 2014-09-15T14:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,698 | py | #! /usr/bin/env python
import sys
import os
import re
import math
from scipy.special import erf
from ROOT import *
import ROOT
from array import array
from systematicsClass import *
from inputReader import *
## ------------------------------------
## card and workspace class
## ------------------------------------
c... | [
"xiaomengphy@gmail.com"
] | xiaomengphy@gmail.com |
2d9e9f6a853e2154bde067a6cf0432985bf90bb3 | 5bf6b61a3a2398e1622d9ff3566e9de62582480f | /User interfaces/CGM/management_step_3/functions/Data.py | 6c198a99077e5c1ff8cd6f18758130115bba3b7f | [] | no_license | uzairov/FE-800 | 7a0e1df876bcc80a43ccf23d54f293dc8293a0c4 | 32e8c8d57de50adf62fbf153a31a6a7e5d80016b | refs/heads/master | 2023-04-21T21:20:49.068732 | 2021-04-26T07:57:08 | 2021-04-26T07:57:08 | 355,610,204 | 1 | 0 | null | 2021-04-15T08:16:45 | 2021-04-07T16:19:42 | null | UTF-8 | Python | false | false | 4,316 | py | import numpy as np
from .data_preprocessing import *
class Data:
# def __init__(self, tickers, from_data, to_data, database = ):
def __init__(self, tickers, start_date, end_date, host):
self.tickers = tickers
#self.assetclass = get_asset_class(host=,tickers = )
self.host = host
... | [
"sit.songyang.guo@gmail.com"
] | sit.songyang.guo@gmail.com |
42503fc4888d5bd1f8e8ba85d53d4f916bbb9850 | 23f5361dcce6db5561defc285134a115744649ca | /config.py | 510b72328a6e36d5315420ab72253e27e2214899 | [] | no_license | stepsame/flask | 70f5856e7b7564b48f8e33e916022a10c39db7cf | 1e6e8b263096caeab0f7babf67f98ca330503077 | refs/heads/master | 2021-01-10T03:28:12.984115 | 2016-01-06T09:23:19 | 2016-01-06T09:23:19 | 46,393,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SSL_DISABLE = True
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_RECORD_QUERIES = True
MAIL_SERVER = 'smtp.mail.yahoo.com'
MAI... | [
"stepsame@gmail.com"
] | stepsame@gmail.com |
6518580d8c0f42beea9b03ecc5cf5026c5eb4b0b | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/pytables/__init__.py | 04573ec7273cbbee29a9587f2fd75e67ef512d86 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7899383beb479b67e688296a1f549aed94a571607226a1afea25dce1a3dc152c
size 411
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
06246345ad959b165ea82542b3e9cc96cdc417fc | d4bc3ca7499b16495a1303f72fd423fda7a52d00 | /mysite/misc_pages/models.py | fd9677d67d2226ca462f3d5ff68010a1317190d8 | [] | no_license | MichaelHayward/Web-Dev-Site-2018-Revision | f80252475a28078941124de4be5cb47f8279f26b | 3b831460f30686a631d70a448457f3a1a01152e1 | refs/heads/master | 2020-03-23T11:05:31.120976 | 2018-09-07T13:29:55 | 2018-09-07T13:29:55 | 141,482,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import RichTextField
from wagtail.admin.edit_handlers import FieldPanel
from wagtail.images.edit_handlers import ImageChooserPanel
class WritablePage(Page):
intro = models.CharField(max_length=250)
body = RichTextField(... | [
"33433507+MichaelHayward@users.noreply.github.com"
] | 33433507+MichaelHayward@users.noreply.github.com |
7edc05364e74d79daf9bbbc2819ff4fbdb5cc0f3 | dfa2698e6b10650cfd3e1c696cdbb2e03c1351aa | /assignments/a2/src/q2/minimax.py | d59d4ced472cc2f28303166fdc6174b7928d3a40 | [] | no_license | zahin-mohammad/ece457a | 4aebd3bcd05f0e176bfd70d582d9b871e71655b7 | eea169a12d7e329f55c2d019ce7a243c01185fb3 | refs/heads/master | 2022-12-01T16:32:18.490101 | 2020-08-08T18:49:23 | 2020-08-08T18:49:23 | 263,969,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | from typing import Any
MAX_DEPTH = 2
# TODO: Implement alpha/beta pruning
# cost, alpha[depth!=1], beta[depth!=1], node[depth=1]
def configure_minimax(evaluate, get_children):
def minimax(root):
def minimax_dfs(node, is_max, depth, alpha, beta):
''' Pseudo Code:
get parent_alph... | [
"zahin.mohammad@gmail.com"
] | zahin.mohammad@gmail.com |
32a1a54c0fe5c4dd686c12138a6fa988e738d0bd | e0831b4a9b356df4e396523ce8ba8be9a9dd5081 | /addresses/apps.py | 3c934e1a4046912603f10897ed9263b8711879b9 | [
"Unlicense"
] | permissive | Xenoyr24/django-project | f5835e0350d6234fb8a4fed22cb7bf158af6ef1a | 0a525178324f822afc39f6989b7df09731672d9f | refs/heads/master | 2021-09-11T07:38:00.554827 | 2020-03-26T15:33:13 | 2020-03-26T15:33:13 | 250,049,557 | 0 | 0 | Unlicense | 2020-03-25T19:55:27 | 2020-03-25T17:45:40 | HTML | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class AddressesConfig(AppConfig):
name = 'addresses' | [
"kevishen.naidu@hotmail.com"
] | kevishen.naidu@hotmail.com |
d13b04569a6a88744f44c03224c3d6b96d58161c | 1bc2a254cc1a0405f1c5257af693d03c131b4155 | /eval_hog_custom.py | aa4c445b6890006a2b668a6594664fe3073a8e97 | [] | no_license | sm354/Pedestrian-Detection | 580b6128bb7e2ed52319ee4fd7810eca48bd367e | 5f693929562cb17e968aed4e87fefa948b2faf77 | refs/heads/main | 2023-08-26T15:39:38.048041 | 2021-11-10T19:48:59 | 2021-11-10T19:48:59 | 425,338,235 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,259 | py | from ipdb import set_trace
import json
import os
import cv2
import numpy as np
import argparse
from ipdb import set_trace
import pandas as pd
from tqdm import tqdm
from utils import *
import pickle
from skimage.feature import hog
import imutils
def parse_args():
parser = argparse.ArgumentParser(description='Pedest... | [
"shubhamiitd18@gmail.com"
] | shubhamiitd18@gmail.com |
fddb59f4f81a6548008ed0e8a49983aeaa48c430 | c0a387e235662787940e3296ad1a4d9c62ad03eb | /get_team_info.py | 885020d2acf2608cd4ed323c73dae68055226649 | [] | no_license | Emptymu/NBA-Stats-Analysis | 1e4b23c9225a5517dcb455ffc2538234c87e13b4 | 56e336a6b6ef683ecf97b11983d147348959764b | refs/heads/master | 2021-01-21T18:11:06.070676 | 2018-02-02T08:03:59 | 2018-02-02T08:03:59 | 92,021,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import requests
import csv
def get_team_info():
''' GET TEAM INFO (ID AND NAME) '''
with open('team_id.csv', 'w') as f:
fieldnames = ['TEAM_ID', 'SEASON_YEAR', 'TEAM_CITY', 'TEAM_NAME', 'TEAM_ABBREVIATION', 'TEAM_CONFERENCE', 'W', 'L', 'PCT', 'CONF_RANK', 'MIN_YEAR', 'MAX_YEAR']
writer = csv.DictWriter(f, fieldn... | [
"jasper920011@gmail.com"
] | jasper920011@gmail.com |
a0501f5fe8d7b2dbd0b347bf845646f7cd23628d | 34599a66861f7d95a5740eeb5329ea77014e18d4 | /problems_solving/algospot/firetrucks.py | 0006d6df8ed42a042757bbebd9b4c40fa0a3cf8c | [] | no_license | laolee010126/algorithm-with-python | f0f5f1bc3cbe374ccbb59e10ac639674c44ae743 | 89ff0c47a6d8b0cd5b31a25bb3981b8e90971f19 | refs/heads/master | 2022-04-01T17:38:36.199309 | 2020-01-14T01:54:22 | 2020-01-14T01:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | """Get least sum of distances to dispatch firetrucks to houses on fire
:input:
1
8 12 3 2
1 2 3
1 6 9
2 3 6
3 4 4
3 5 2
4 5 7
6 5 5
8 6 5
6 7 3
8 7 3
7 5 1
2 8 3
2 3 5
4 6
:return:
16
"""
from heapq import heappush, heappop
from math import inf
from sys import stdin
get_input = stdin.readline
def min_dist(g, dest, ... | [
"shoark7@gmail.com"
] | shoark7@gmail.com |
d8ad74ba8fd7cbc3a2478cf802bcc9433cd489cc | 85a9590f334729c06f927732040ab1cedd563ed5 | /modules/subsecuencias_cdk2.py | f8654f709cb8622ad1abf5be9da54898193056f2 | [] | no_license | jRicciL/ERK2_notebooks | 47d50e0ca17598201c986dd74e498cdbc423ac53 | 713cca983502076d1711861a0199def697e0b0eb | refs/heads/master | 2020-08-10T01:51:43.263583 | 2020-06-02T00:40:33 | 2020-06-02T00:40:33 | 214,226,869 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py |
def _get_seq(ranges, x, sep = ' '):
from itertools import chain
lista = [list( range(valor[0], valor[1] + 1) ) for valor in ranges]
# Se obtiene la lista de residuos, incluida en formato de cadena de texto
seq_residues = list(chain.from_iterable(lista))
seq_residues_str = sep.join(str(e) for e in seq_residues)
i... | [
"ricci.lob@gmail.com"
] | ricci.lob@gmail.com |
d1772e7e5ce09349017f1c2dd30cdfbab93383ed | 977396938e6a077423276eda152d4541578eb527 | /migrations/versions/f9155326f52d_.py | 6b91c18d0de33f955ebc4eeda030c79a1e03e91c | [] | no_license | Areum0921/web_pybo | 688c741a5a8b5fa3d8df51f058c7ec0a8288ae91 | 0c830eda270dbbe3257e3458af4576b38d5dbaa8 | refs/heads/master | 2023-06-19T06:40:41.327188 | 2021-07-16T02:29:34 | 2021-07-16T02:29:34 | 355,765,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | """empty message
Revision ID: f9155326f52d
Revises: 5496eea3137d
Create Date: 2021-03-29 14:31:37.557367
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = 'f9155326f52d'
down_revision = '5496eea3137d'
branch_labels = None
depends_on = None... | [
"a90907@gmail.com"
] | a90907@gmail.com |
835d827423d0a97d4ccfcce37748731b22decdad | 81294aa48764ba76cb6dda2784d3dfe08784ffd6 | /mkproj/core.py | c8fe8d697b16cfa8717afe909a24027cffeeba6a | [
"MIT"
] | permissive | tjquillan/mkproj | 33a367aa3b6851004f3843437f630e7d61e6ae3a | 8c0839b5a4a38693e8b9f3ee3552af428754ea7a | refs/heads/master | 2023-03-14T22:24:40.240903 | 2020-11-02T18:53:59 | 2020-11-02T18:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,681 | py | import sys
from collections.abc import MutableMapping
from pathlib import Path
from typing import Any, Dict, List, Tuple
import networkx
from pluginbase import PluginBase, PluginSource
from . import LockingDict, config, environment, spinner
from .bases import BaseTask, TaskFailedException
def depends(*tasks):
... | [
"tjquillan@gmail.com"
] | tjquillan@gmail.com |
ea0fa413a310a9b8bdfc40c852953889d422ebbe | a55dbf229ae9a38b003158d16e0ad436a91d616d | /python/codejam2017/round1/problemA_alphabet_cake/test_alphabet_cake.py | d0e85981d7f0d96d7907eb999cf176a03eedfe0b | [] | no_license | lala7573/algorithm | 175d03cad51d85b0cf0fbf4df6178e35c7a7deac | d361b991426232c9d5111eac7d8367187cf83e04 | refs/heads/master | 2021-03-27T20:50:14.895003 | 2017-05-15T11:59:44 | 2017-05-15T11:59:44 | 91,326,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | import unittest
from codejam2017.round1.problemA_alphabet_cake.alphabet_cake import AlphabetCake
class TestAlphabetCake(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_1(self):
self.assertEqual(AlphabetCake.solve(
3, 3, [
[... | [
"joanne.hwang@kakaocorp.com"
] | joanne.hwang@kakaocorp.com |
3720c2cfb59920028d138cfe49a9a780696b3a31 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s226430328.py | 40ea2fbbe5322fb1e9b734e857d574fcafee112b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | N, M = map(int, input().split())
A = [input() for _ in range(N)]
B = [input() for _ in range(M)]
for i in range(N - M + 1):
for j in range(N - M + 1):
check = True
count = 0
for k in range(M):
if (A[i + k][j: j + M] == B[k]):
# print(A[i + k][j:j + M], B[k])
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a3c15c175c51765051f69df3b52980e1fd7a3f0a | e3ec7260806c1e2b045a0de93a150a5c3fc1b9df | /test_sin.py | cfd93e45de3207cebfeb5d1bfd66b21c78b149ef | [
"Apache-2.0"
] | permissive | FearFactor1/SPA | 58a21c9ec7a72a78f5ff50214e58faac43a3059d | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | refs/heads/master | 2021-07-07T04:25:12.525595 | 2020-11-16T14:35:33 | 2020-11-16T14:35:33 | 204,684,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select
link = "http://suninjuly.github.io/selects2.html"
#nav__item-auto > a
try:
browser = webdriver.Chrome()
browser.get(link)
num1 = browser.find_element_by_css_selector("#num1").text
num2 = browser.find_elem... | [
"zelezodoroznik@yandex.ru"
] | zelezodoroznik@yandex.ru |
250bdd434c3ca14198d3b1dc4817974af8a02c58 | 36f91525be7418d90f77687e31554c86561013be | /venv/bin/easy_install | 27b20fdc7f13220c7148e3122347c50d4db02d9a | [] | no_license | rizkimn/attendance-system | a2bfafa0470ca76e25bd64d2beee1abb77a510b7 | 16e90d397dee2036d8183f06d635daab48f55645 | refs/heads/main | 2023-04-22T19:38:40.630024 | 2021-05-04T08:41:16 | 2021-05-04T08:41:16 | 359,022,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/rizkimnur/Documents/python/attendance-system/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rizkimnur0@gmail.com"
] | rizkimnur0@gmail.com | |
a9e4e3dd729477646d9f940cba33c1e17f67a29a | c1f11a43753dad1744e13008c1ba103826867421 | /File_task.py | 01e473778b872a3343a55d9c797548760b8f4471 | [] | no_license | 99002561/My_Python | 5aecd073e2dc7f2841e9306bd9289a11b448904c | d7f1ba5e970073a7aa44d0469998be57019af8fb | refs/heads/main | 2023-03-28T00:07:14.509642 | 2021-03-26T11:14:49 | 2021-03-26T11:14:49 | 343,707,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import shutil
import os
from pathlib import Path
def main():
txtBaseFilePath = [] # Stores base folder text files adrress
txtFile = [] # Stores base folder text file names
txtDestFilePath = [] # Stores dest folder text files adrress
Source_path = "D:\sai"
source = Path('D:\sai')
... | [
"noreply@github.com"
] | 99002561.noreply@github.com |
53ff9198dfe47a214fb9a2f6bd7b7738da26a9cf | dfe78d0296c2f2497d323bc6d0516e3d03f6e5c3 | /learning_templates/app1/urls.py | ec7eefe116f7b638f3fae7bd3beb5c4ebd257c51 | [] | no_license | tekam47/django-deployement-trial | 49ac22a6683d0156d694ec67432bdc8fa21e2514 | c96b4bb8ef7104b6dbab2bd33b4fce65c627925a | refs/heads/master | 2022-11-21T14:47:16.097166 | 2020-07-22T10:54:03 | 2020-07-22T10:54:03 | 281,641,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from app1 import views
from django.conf.urls import url
#TEMPLATE TAGGING
app_name = "app1"
urlpatterns = [
url(r'^other',views.other,name="other"),
url(r'^relative',views.relative,name="relative"),
] | [
"kounatzepi@gmail.com"
] | kounatzepi@gmail.com |
dc3f8793d740e0cf8d825bacb6e97764c8c288b2 | be20ff4fe04864c6f48317e9bbebdf6546358caa | /Enthought/exercises/python_language/roman_dictionary/roman_dictionary_solution.py | 9e3df15d356eb328498ddce6f8d12cd904c5c386 | [] | no_license | cardsrock10/Python-Training | 3267e20ee9e70683b0daba0007e87aaf4acf5022 | 7bc83cdd6955cb1498e6f391ce9274d4c75a0a3b | refs/heads/master | 2021-04-15T11:56:52.197773 | 2018-03-23T23:09:27 | 2018-03-23T23:09:27 | 126,546,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | """
Roman Dictionary
----------------
Mark Antony keeps a list of the people he knows in several dictionaries
based on their relationship to him::
friends = {'julius': '100 via apian', 'cleopatra': '000 pyramid parkway'}
romans = dict(brutus='234 via tratorium', cassius='111 aqueduct lane')
countrymen = d... | [
"rmbirmi@srn.sandia.gov"
] | rmbirmi@srn.sandia.gov |
e514273c815a754c9cc94115339b8f0ab6c3c284 | 58e8117c418a8931d56fe57ba0edd38214c79642 | /ate/context.py | ed59e79081a32350eef9099c194c3270b9fc91da | [
"MIT"
] | permissive | 229051923/ApiTestEngine | 90b495ee7be037a35f63ffa3b2c95f6ba24f43ce | 4a529068f451c8880681286518ff6a643ecf9067 | refs/heads/master | 2021-01-01T16:09:10.737245 | 2017-07-19T15:29:29 | 2017-07-19T15:29:29 | 97,780,015 | 2 | 0 | null | 2017-07-20T02:09:36 | 2017-07-20T02:09:36 | null | UTF-8 | Python | false | false | 7,621 | py | import copy
import importlib
import re
import types
from collections import OrderedDict
from ate import exception, testcase, utils
def is_function(tup):
""" Takes (name, object) tuple, returns True if it is a function.
"""
name, item = tup
return isinstance(item, types.FunctionType)
class Context(ob... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
edd4a21019c7cc1c1b9b7eb3abe2e8acb32f929b | d2b0c67b919783cceb58bc25ae0b18dc7d4ce892 | /ExoCTK/tor/contam_tool/f_visibilityPeriods.py | 48b7d3824ab4feb7b5673f3b13fa18fcd8eadd15 | [] | no_license | natashabatalha/ExoCTK | 7cff16184bd999e5eb50e1c935e12020594c8e50 | 7b996f77fd7b87eac381ca396877bda4121f18a8 | refs/heads/master | 2021-07-01T01:47:51.028537 | 2017-09-07T18:32:53 | 2017-09-07T18:32:53 | 106,414,418 | 2 | 0 | null | 2017-10-10T12:30:31 | 2017-10-10T12:30:30 | null | UTF-8 | Python | false | false | 17,229 | py | # =====================================================================================
# Series of functions to compute the visibility periods for a given (RA,DEC) with
# in some cases the possibility to select a PA value.
#
# Functions derived from the code of Wayne Kinzel provided by Jeff Valenti
# Extract from the ... | [
"rafia0037@gmail.com"
] | rafia0037@gmail.com |
66ff77da4530f172e873831475c4198c3aa8c691 | 94e54c1e885808cab39fc6de3aca906b72d09d7b | /src/day5/d5part1.py | 56170599cfebed4876b3137ea39f5bbeeed1737d | [] | no_license | jondarrer/advent-of-code-2020 | d7a54f9d6fb1869796cc972ec0ffd47bfa743e83 | c942f950231d5a5585acf1357eb578776d7bf2e9 | refs/heads/main | 2023-01-31T15:45:34.052160 | 2020-12-06T11:00:58 | 2020-12-06T11:00:58 | 317,469,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | import read_input_file
def convert_boarding_pass_to_seat(boarding_pass):
'''Converts a boarding pass, e.g. FBFBBFFRLR, to seat, e.g. row 44 column 5'''
row = convert_binary_to_decimal(boarding_pass[0:7], 'B')
column = convert_binary_to_decimal(boarding_pass[7:10], 'R')
return {'row': row, 'column': co... | [
"jonny@jondarrer.me.uk"
] | jonny@jondarrer.me.uk |
e150a57696a86898a7fafe09dbcf8b112fcf6890 | 8c8973a3024b7deda89bd105452245691d66215a | /03_EstruturasRepeticao/29_tabela_199.py | 02baf0864c8ed7490ccadaff8c0e768a27bd4957 | [] | no_license | xtreia/pythonBrasilExercicios | 3782226d693a93e4394e654b15fe54900ae709f4 | 948f3a8a0c32ad661ef0da0e242774c5f8eeffcc | refs/heads/master | 2020-07-16T05:19:48.640536 | 2018-04-27T21:38:49 | 2018-04-27T21:38:49 | 205,727,630 | 1 | 0 | null | 2019-09-01T20:16:24 | 2019-09-01T20:16:24 | null | UTF-8 | Python | false | false | 107 | py | print 'Loja Quase Dois - Tabela de precos'
for i in range(1, 51):
print '%d - R$ %.2f' % (i, i * 1.99)
| [
"tales.viegas@corp.terra.com.br"
] | tales.viegas@corp.terra.com.br |
18d8d5ce0227d7af58c2e7063a16ebfd0aaef731 | b0b6a0c9d000c5bf7ace9b8d3fe1229551b5c1c2 | /LoadData/migrations/0001_initial.py | 4058901ff38eac849de9492398b6e2df2c17e1f2 | [] | no_license | gyanezfeliu/FlapWeb | c14dd08bcb600d9d0197c765cf96a08aff5587b7 | 9421547f3e9905775a103fe19e4f78ac120f7116 | refs/heads/master | 2022-11-28T14:17:50.964784 | 2019-09-27T20:47:18 | 2019-09-27T20:47:18 | 152,670,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | # Generated by Django 2.1.2 on 2018-11-16 19:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dna',
fields=[
... | [
"gyanezfeliu@gmail.com"
] | gyanezfeliu@gmail.com |
a6db9d0ebe8e9a8f0ab0a1cacff578441a2234ba | 4fcfc6834f598954e069e9481e4f69d6f7205f3b | /Week1/day_3/Flask_Intro/first_flask_app/server.py | a7693151c6981a66648352d4cf8857f87de47de7 | [] | no_license | sadieBoBadie/jan_2020_python_stack | dadc77a8a76fd4b900bc31ad83ed4680a0802aa1 | b91da3da23ea57a27c086075f4b86c5bfec413d0 | refs/heads/main | 2023-03-02T22:27:46.877290 | 2021-01-26T19:04:57 | 2021-01-26T19:04:57 | 326,852,429 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def puppies():
return "<h1 style='color: red'>Puppies are cute!</h1>"
@app.route('/<animal>/<color>')
@app.route('/<animal>')
@app.route('/<animal>/<color>/<int:num>')
def display_animal(animal, color="blue", num=5):
print(f"Ani... | [
"sflick@codingdojo.com"
] | sflick@codingdojo.com |
3a7c1d7adfb59f00b11ae77e1d37b1885d33f881 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /react/003-react-django-justdjango/backend/env/bin/sqlformat | b08eaac3345a9fc3b0a7dbb48e6607276b57395a | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 307 | #!/Users/kamilwroniewicz/_code/_github/_tutorials/react/003-react-django-justdjango/backend/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com | |
5ac18cbdef9d19e5b20538cf4607c5551ca81f13 | 750269b63dedbf2d3b402a15346681d9abcb991b | /crops/views.py | 5d9d0cc6dc69a8be2bd48bd24dc0e293c9b7efe2 | [] | no_license | SRaiz/Krishi-Karma | 36f67a45d4f9306ed10a3ced633a808b6ccd7a5b | 7eb7348575cf9152b006eb0328dc8138fddd2d3b | refs/heads/master | 2022-12-12T15:57:08.809116 | 2020-07-17T19:20:31 | 2020-07-17T19:20:31 | 243,632,577 | 0 | 1 | null | 2022-12-08T07:22:40 | 2020-02-27T22:48:33 | JavaScript | UTF-8 | Python | false | false | 3,587 | py | import pandas as pd
from django.http import HttpResponse
from django.shortcuts import render
from apps.ml.cropsyield_classifier import random_forest
from .models import Crop, Yield
crops = Crop.objects.all()
yields = Yield.objects.all()
yield_df = pd.DataFrame.from_records(yields.values())
crops_df = pd.DataFrame.fr... | [
"sidharthraizada07@gmail.com"
] | sidharthraizada07@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.