blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ac47a2b80b00b8628a0e5edd7e2a578430cde8a | 7d2442279b6dbaae617e2653ded92e63bb00f573 | /neupy/layers/transformations.py | ee9240912d7a646656b8944c68acbf4b57ff406b | [
"MIT"
] | permissive | albertwy/neupy | c830526859b821472592f38033f8475828f2d389 | a8a9a8b1c11b8039382c27bf8f826c57e90e8b30 | refs/heads/master | 2021-06-03T21:23:37.636005 | 2016-05-24T21:18:25 | 2016-05-24T21:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | import numpy as np
import theano.tensor as T
from neupy.core.properties import ProperFractionProperty, TypedListProperty
from .base import BaseLayer
__all__ = ('Dropout', 'Reshape')
class Dropout(BaseLayer):
""" Dropout layer
Parameters
----------
proba : float
Fraction of the input units ... | [
"mail@itdxer.com"
] | mail@itdxer.com |
4a6ef570763ca65f634debbf519c80ac27f6afee | 227654cd915b560b14f49f388d4256a0ce968b16 | /customer/migrations/0005_nominee_policy_holder_policy_payment.py | 84e9504b4f962acb47e52527884347c3f3081e33 | [] | no_license | chitharanjanpraveen/insurance_rdbms_project | cb7d976def7ce3b1a962c4703c53518bcacebb9a | 7a41e9a688efdd216001bf100ae59ac2653a15eb | refs/heads/master | 2020-03-09T15:37:40.403717 | 2018-04-25T05:06:05 | 2018-04-25T05:06:05 | 128,864,014 | 0 | 2 | null | 2018-04-25T05:06:06 | 2018-04-10T02:48:11 | Python | UTF-8 | Python | false | false | 1,815 | py | # Generated by Django 2.0.4 on 2018-04-10 18:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customer', '0004_auto_20180410_2342'),
]
operations = [
migrations.CreateModel(
n... | [
"chitharanjancharan@gmail.com"
] | chitharanjancharan@gmail.com |
022ed9241624bcee603875cdcded80c7a3bd691d | 26896dbde024d5e8a1216f9f6bbe215e641d085c | /colleges.py | c4139fb47a1b8ad5246d96f4a1abd458c261b25e | [] | no_license | Romyellenbogen/assn10 | 8c520cbd35500fd0ce0a21687621a6c4a99fe4f4 | ceecc281dbc4e486a0c86218a4da516377fc2db0 | refs/heads/master | 2020-05-02T16:03:29.491808 | 2019-03-27T19:12:13 | 2019-03-27T19:12:13 | 178,059,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from flask import Flask, render_template
from modules import convert_to_dict
app = Flask(__name__)
application = app
collegeList = convert_to_dict("public3.csv")
@app.route('/')
def index():
ids = []
names = []
for college in collegeList:
ids.append(college['Id'])
names.append(college['Na... | [
"43319351+Romyellenbogen@users.noreply.github.com"
] | 43319351+Romyellenbogen@users.noreply.github.com |
dec11357af01c915a67ab8710067b1a3a55ad0ad | 3f90f4f6876f77d6b43e4a5759b20e2e8d20e684 | /ex10/ex10.py | 89d4ec1d631136bdb021736fec2f1dbed4325af0 | [] | no_license | kwangilahn/kwang | 00d82d1bdca45000ee44fa2be55bdb8bff182c91 | df2fa199648ae894cbcf18952f6924a9b897d639 | refs/heads/master | 2021-01-21T04:47:02.719819 | 2016-06-07T03:59:57 | 2016-06-07T03:59:57 | 54,316,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | tabby_cat = "\t I'm tabbed in"
persian_cat = "I'm split\non a line"
backslash_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishes
\t* catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat | [
"CAD Client"
] | CAD Client |
e5aca0d6b7938b6734d193163f7dc5763682145e | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes/66.py | a9eaa790c24644f8755bc148732af6e70b5c38f8 | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,946 | py | data = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, ... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
9b6c14c6dd404b7c35140f53cc6de97b3d052e02 | 8afc8a165c66cd7bbdb56ad9704aa4afdb84ef01 | /tirsat/TS.py | a5f0908db7d4649f218bdf6fb5fc15ff5519b634 | [] | no_license | esw3/projects | 7a5e0d7859ccb201c446b050cb55710af5ca875d | e08ac693a97849d532e4385a3d8b5d8b819222c5 | refs/heads/master | 2020-03-26T23:44:41.941786 | 2018-09-24T19:58:28 | 2018-09-24T19:58:28 | 145,563,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 10 14:50:22 2018
TS diagram
@author: cake
"""
import numpy as np
import seawater.g as gsw
import matplotlib.pyplot as plt
# Extract data from file *********************************
#f = open('CTD_profile.csv', 'r')
#data = np.genfromtxt(f, delimite... | [
"esw3@aber.ac.uk"
] | esw3@aber.ac.uk |
ffaa34fb014396c3afe742df427df3b83801e470 | 0d4b793c587a6c7df42f4217860c66570fe587c5 | /school_system/frontend/urls.py | 6d1697dd44e07e562c2492e371e7dc4b5061f0c2 | [] | no_license | AmbyMbayi/school_system | 6d43b362298c8e5afe9e5b97a0f3b6a460ea6f8d | 73bd0f93dd4195ff4a824637cda4fae93ac1d801 | refs/heads/master | 2022-12-21T14:16:37.917699 | 2020-09-23T11:08:50 | 2020-09-23T11:08:50 | 297,607,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index)
]
| [
"ambymbayi54@gmail.com"
] | ambymbayi54@gmail.com |
4204c29e586d8de75e54050508bb7f55ffdc1a4e | 941ea75df18b49840e81d21e2421b5c2158baebe | /basic_mail.py | 94ce1412dfc8798db23c72dfb80c22de2f4ecf31 | [] | no_license | ankitmodi31198/Mail-System-In-Python | 1e44d2c16e445e48d9b908cb52f8a8c76a9cacbf | bb3be0fa0540457ed320d47a8ad0c6d7d208a4c2 | refs/heads/master | 2020-03-30T17:10:08.002896 | 2018-10-03T16:27:47 | 2018-10-03T16:27:47 | 151,444,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
host = 'smtp.gmail.com'
port = 587
username = "ankitmodi31198@gmail.com"
password = "*************"
from_list = username
to_list = ["modiankit.pal@gmail.com"]
try:
email_con = smtplib.SMTP(host, port)
print(email... | [
"ankitmodi31198@gmail.com"
] | ankitmodi31198@gmail.com |
88acccb902b41abe383e13691f0b5db91c5ab117 | 3904ab60b13ef96d042c4bfd81507072c9bbeb67 | /usuarios/forms.py | a8e596d0e654f47a5ffc33600250e206aea73e11 | [] | no_license | cristianacmc/RedeSocial | 2a7abda499781eb1b9284d4ea89f9c516ef7962e | c87d5261e870cc40d47da59e8b641db2ff840542 | refs/heads/master | 2021-01-10T13:15:48.595554 | 2015-11-19T23:10:06 | 2015-11-19T23:10:06 | 45,417,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from django import forms
from django.contrib.auth.models import User
class RegistrarUsuarioForm(forms.Form):
nome = forms.CharField(required=True)
email = forms.CharField(required=True)
senha = forms.CharField(required=True)
telefone = forms.CharField(required=True)
nome_empresa = forms.CharField(... | [
"cristianacmc@gmail.com"
] | cristianacmc@gmail.com |
6e3b38316b66683d79827698517a0e51a9fd00de | 7718278f093d900e630fe5f53aebe6bd5bdb40e7 | /service/PrepareNodesLabel.py | 3900b8ad2455e64a912d8df58c6a90528989259c | [] | no_license | sylvainSUPINTERNET/viz | 2d8968c21d700f21ae7d8280a16c866e7a1d588e | 4a08eb8b8acf8b0f76d21be01fdcfc52de9264d8 | refs/heads/master | 2023-08-14T06:54:56.425347 | 2021-09-25T21:49:26 | 2021-09-25T21:49:26 | 408,966,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import pprint
'''
Create Nodes labels
'''
def proccess_label(profiles_cursor, labels):
response = {}
build_relation = [];
for label in labels:
response[label] = set()
# MATCH (a:age), (b:music) WHERE a.value = '<AGE>' AND b.value = 'PROFILE_MUSICIAN' CREATE (a)-[r:LISTEN]->(b) RETURN typ... | [
"sylvain.joly@supinternet.fr"
] | sylvain.joly@supinternet.fr |
4ab0aeb36367fb0df10d5a681a0fd858593a06fd | 5d13e9565779b4123e1b72815396eee0051d4980 | /parse_titles_with_dictionary.py | 136868340d5c6c8b92b10d3a91f34b556fdbc104 | [] | no_license | futuresystems-courses/475-Dictionary-Based-Analysis-of-PubMed-Article-Titles-for-Mental-Disorders-Kia | b455574908971e487b99a175d8fdbd48d13f8c60 | 1ab992b1859905ee57e51a258777192b2ec32339 | refs/heads/master | 2021-01-10T11:06:37.112800 | 2015-12-28T17:03:00 | 2015-12-28T17:03:00 | 48,702,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,328 | py | import sys
import nltk
import csv
import ast
from operator import itemgetter
import random
stopwords = nltk.corpus.stopwords.words('english')
disorder_phrases = {}
DICTIONARY_FILE = 'mental diseases dictionary.csv'
try:
TITLES_FILE = 'parsed_titles.txt'
except IndexError:
print "\nERROR: No file name given. Ple... | [
"hroe.lee@gmail.com"
] | hroe.lee@gmail.com |
52307f112381e2b552d0b1bd2f6ce1b90304bee6 | 2f6f7c056df8ed13273866cc4ed5bcc0e49c4d93 | /catch_all/catch_gre | 2a37cd9d4b2737c1a9ea9843797b081456d124bb | [] | no_license | ssem/honeypots | 8e5eccc614536d05d977a2b5fa93839f06f5cec7 | 7f137f69e88f671d69f3de91b30e160b7ebb0419 | refs/heads/master | 2021-01-18T21:34:03.110770 | 2016-04-18T20:25:02 | 2016-04-18T20:25:02 | 31,721,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | #!/usr/bin/env python
import os
import sys
import struct
import socket
import select
import argparse
class Catch_All:
def __init__(self):
self.socket = socket.socket(socket.AF_INET,
socket.SOCK_RAW,
socket.IPPROTO_GRE)
def __del__... | [
"ssem@tacnetsol.com"
] | ssem@tacnetsol.com | |
236513250e5f6109c7bb08ac5ebc16407d5afa5a | 47367e719f84383136982a5c9bdb8fc3aa44037f | /backend/backend/api/migrations/0002_remove_tasks_preparing_time.py | 0f70e10764d9defd16af4f37dfd527deef7f02d6 | [] | no_license | mzoladki/sterowanie_produkcja | bd080c32dcddec7705761c0dfb93c38ce44e910f | d6dc7c6959a270fd28873784aeccd469d60be983 | refs/heads/master | 2020-04-11T04:25:25.028752 | 2018-12-15T00:17:55 | 2018-12-15T00:17:55 | 161,511,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # Generated by Django 2.1.4 on 2018-12-14 23:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='tasks',
name='preparing_time',
),
]
| [
"zoladkiewiczmarcin@gmail.com"
] | zoladkiewiczmarcin@gmail.com |
6df8795ce5b75fe8c3f8c5df2849243b52446321 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/massrc/com/citrix/mas/nitro/resource/config/ns/ns_vlan.py | d1c25cf0083cc9debb8d5c39b6a0cd53dac1af6d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 8,561 | py | '''
Copyright (c) 2008-2015 Citrix Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
1b0ae1343228ee6e8482deac60b3925eaa9cca88 | 4a61507d00b2ffff2d2dec367bd5869f11cd7569 | /config/hooks/extra/microwebserver.py | 5f86786d730c7309dbc33e6b8dbf0cd9ae99ad80 | [] | no_license | ngsru/heaver | 5bf1963e00dda94536ac5bcf7ab45ff6dc9d9b4c | 8d5ddcf3f22be5cde1aa1dd55931da7afc71d251 | refs/heads/master | 2020-05-20T10:34:17.425832 | 2014-08-18T10:05:08 | 2014-08-18T10:05:08 | 22,941,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | # -*- coding: utf-8 -*-
from flask import Flask, redirect
import sys
import subprocess
app = Flask(__name__)
#pidfile = open("/tmp/heaver/microweb_" + str(sys.argv[2]) + "_heaver.pid", "w")
#pidfile.write(str(os.getpid()))
#pidfile.close()
host = '0.0.0.0'
port = int(sys.argv[1])
header = """
<html>
<head>
<meta ... | [
"s.seletskiy@gmail.com"
] | s.seletskiy@gmail.com |
b63a247f0dd508911578fa7843a6d083a5623821 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /mutif_all_vit_addons/vit_order_analysis/sale_order_analysis.py | c0ecfe10c045ce7610f50f2b9d062756034a7600 | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 1,273 | py | from openerp import tools
from openerp.osv import fields,osv
import openerp.addons.decimal_precision as dp
import time
import logging
from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
class sale_order_analysis(osv.osv):
_name = "vit_order_analysis.sale_order_analysis"
_columns = {
'or... | [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
0d4217a71c1443b49fbe2b08c76d0a241f2633fd | c237dfae82e07e606ba9385b336af8173d01b251 | /lib/python/Products/ZCTextIndex/tests/mailtest.py | e8852d178ca4296bb828459acad38e1cdfcd1f25 | [
"ZPL-2.0"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,988 | py | """Test an index with a Unix mailbox file.
usage: python mailtest.py [options] <data.fs>
options:
-v -- verbose
Index Generation
-i mailbox
-n NNN -- max number of messages to read from mailbox
-t NNN -- commit a transaction every NNN messages (default: 1)
-p NNN -- pack <data.fs> every N... | [
"martin@os2world.com"
] | martin@os2world.com |
dc50b4884c1629ba6b4d350901d42876f8c7f1e4 | 8ba4bc718c8a42dc2af1dfe24b41f288c8237f75 | /Textutility/Textutility/asgi.py | 0e63e17f7472be8ba410df3066b3b874196609ae | [] | no_license | sanwriyakeer/Textutility | 307665ece77e3d969c601d7996161e4037221d00 | 9bc64d73d98fff9eb7c1e84e3eb34ace3370ec91 | refs/heads/master | 2021-02-16T05:21:11.177495 | 2020-03-04T18:41:40 | 2020-03-04T18:41:40 | 244,970,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for Textutility project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"61547397+sanwriyakeer@users.noreply.github.com"
] | 61547397+sanwriyakeer@users.noreply.github.com |
d7805aff49a2a5078e70a3179e7b0614572d91fa | 12f7328fed4a03b0dd352ccba04374011b894a79 | /test_with_viterbi_test.py | 4a53e34a793ac55e5d670e3c98561a58040afa5e | [] | no_license | mikemccabe/code | b445a3e8ba1f38866d9d9e99bf4d2857d91e1c7c | e200ef94ea428f51ecff598e46d542f9094ac3f7 | refs/heads/master | 2021-01-10T20:17:39.143618 | 2012-05-01T23:18:08 | 2012-05-01T23:18:08 | 280,624 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | def forward_viterbi(obs, states, start_p, trans_p, emit_p):
T = {}
for state in states:
## prob. V. path V. prob.
T[state] = (start_p[state], [state], start_p[state])
for output in obs:
U = {}
for next_state in states:
total = 0
argmax = Non... | [
"mccabe@archive.org"
] | mccabe@archive.org |
5965a2be0b1e5c02e590927c9dd641c44f721d3e | 64b765264ffbb44a42b38b5147fa737613426b5b | /example.py | 23dfa9a745fd3856d07750085cbd26987f9c2cfb | [] | no_license | GitArtur97/mapreduce-python | aaaa216ed9dab9015a79f6327f75b5fbf9dd2001 | ed64da61efd89dc41bc597baccccfd25d7277516 | refs/heads/main | 2023-05-13T10:00:47.389103 | 2021-06-12T14:20:04 | 2021-06-12T14:20:04 | 352,768,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import filehandler
from mapreduce import MapReduce
class CountCharacters(MapReduce):
def mapper(self, key, value):
results = []
for char in value:
results.append((char.lower(), 1))
return results
if __name__ == "__main__":
num_mapper = 4
num_reducer = 2
map_red... | [
"jawostreet97@gmail.com"
] | jawostreet97@gmail.com |
7f8733749a99f31f5499d18f2776ef8c03dab943 | 6924a83b7c09d5f0b477fe60aeb4e4fccd397922 | /hello.py | e6928e61ca2351d3d14fa66c9eb61a24c7e2f0fa | [] | no_license | Stevella/HNG-Internship | b9fec887915973ec8cd4cf36658831f7bd15ac90 | 454e61030bdd9fab5b6bb132b5bfff9a241bda48 | refs/heads/main | 2023-07-13T03:47:46.024383 | 2021-08-18T22:14:41 | 2021-08-18T22:14:41 | 397,705,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #! python3
print('Hi there, My name is Thaddyoparaocha Amarachi')
| [
"stevellathaddy@gmail.com"
] | stevellathaddy@gmail.com |
ab576f164970730ca586fdd9bc786ca0a35556c5 | a98eab432108d65c8546c44cded7808463b844a4 | /common/models/question/QuestionCat.py | 7926de7e3168da660d91cb83b3b10651895de30b | [] | no_license | RocketWill/Qamar | 287ec3d5ad2ec7b3435c93def2d85bbe7d94d928 | 63e41d333559baf52a9010850bc4c2713ac0b93d | refs/heads/master | 2020-04-21T23:55:59.459620 | 2019-03-19T12:00:02 | 2019-03-19T12:00:02 | 169,962,064 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy
from application import app, db
class QuestionCat(db.Model):
__tablename__ = 'question_cat'
id = db.Column(db.Integer, primary_key=True, unique=True)
... | [
"willcy1006@163.com"
] | willcy1006@163.com |
747707c028e314a5eff983e4a9e35bede5aae0c0 | fb133bb72cbc965f405e726796e02d01ef8905e2 | /combinatorics/permutations.py | 25809abf4e33cb533feaca93aa0fc997e499ce67 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | eklitzke/algorithms | a90b470c6ea485b3b6227fe74b23f40109cfd1f5 | 170b49c7aaeb06f0a91142b1c04e47246ec52fd1 | refs/heads/master | 2021-01-22T11:15:52.029559 | 2017-05-28T19:39:32 | 2017-05-28T19:39:32 | 92,677,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | """Implementation of permutations.
This uses the "interleaving" technique, which I find the most intuitive. It's
not the most efficient algorithm.
"""
def interleave(x, xs):
"""Interleave x into xs."""
for pos in range(len(xs) + 1):
yield xs[:pos] + [x] + xs[pos:]
def permutations(xs):
"""Gener... | [
"evan@eklitzke.org"
] | evan@eklitzke.org |
670e43e474e95b27ada9db890dc778d007b11714 | 1be5d0fcedfefc6f30f56ba3c340ca5097be26d3 | /Aulas/while.py | 0edc82d6858b3187c55592a2959ac4ceabe1207a | [] | no_license | gkaustchr/Python | 8262ec7e8977f18ddaeccb32aa7113678a99da7b | 2a51f7f1ff1be0594a899fe96cbb4e032f084c95 | refs/heads/master | 2022-01-23T06:03:42.134490 | 2022-01-19T12:53:14 | 2022-01-19T12:53:14 | 235,815,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | x = 0
while x <= 100:
print(". . .")
x+=1
| [
"gabrielkaustchr@gmail.com"
] | gabrielkaustchr@gmail.com |
97dd34b3acce5c12e2addd1d0a29713f76135553 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqptcapacity/bdentryhist1qtr.py | 9064eba3f5f878d3153633d8be710cf51ec1d501 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 11,049 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
352979130d459d48e841cb29497f13d86c09b90d | 3f4e1a6982ee7b24774327fc304898bd78681681 | /utils/__init__.py | b9c8b085fa4c07b70b944bcbdb4e02cc4597a228 | [] | no_license | JMSwag/qatesting | 05a7292c9621bfced69adb1d6ca2f316ec55b45c | 978c094fe8df014265787415fa22ec3afd712a69 | refs/heads/main | 2023-04-17T12:07:30.767301 | 2021-04-22T19:50:23 | 2021-04-22T19:50:23 | 359,590,236 | 0 | 0 | null | 2021-04-19T20:32:14 | 2021-04-19T20:32:13 | null | UTF-8 | Python | false | false | 389 | py | import requests
from .poms.amazon import AmazonPOM
from .poms.bookbyte import BookBytePOM
class GoogleBooksAPIClient:
def __init__(self):
self.base_url = "https://www.googleapis.com/books/v1/volumes?q="
def authors_by_ibsn(self, ibsn):
book = requests.get(self.base_url + "isbn:{}".format(ib... | [
"git@jmswag.io"
] | git@jmswag.io |
4f349f89eb2be66ea2a6218beb51cb31cef6cd36 | 8e62465c912ccbe41e322006a5c62b883e39143d | /src/boot/commands.py | 91a37e3fd7c203c3e16b96d277ed893a5ada17b4 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | JayHeng/NXP-MCUBootFlasher | b41dd2ffe0bf2cde61b9deacdb6353835e9e4538 | a7643b2de6429481c3bf54bc2508d7e76c76562d | refs/heads/master | 2022-05-27T06:26:49.532173 | 2022-03-21T07:23:01 | 2022-03-21T07:23:01 | 176,099,535 | 37 | 16 | Apache-2.0 | 2022-03-14T06:28:23 | 2019-03-17T12:42:14 | Python | UTF-8 | Python | false | false | 3,357 | py | #! /usr/bin/env python
# Copyright 2021 NXP
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from collections import namedtuple
# Command constants.
kCommandTag_FlashEraseAll = 0x01
kCommandTag_FlashEraseRegion = 0x02
kCommandTag_ReadMemory = 0x03
kCommandTag_WriteMemory ... | [
"jie.heng@nxp.com"
] | jie.heng@nxp.com |
e0a4015cb0f64f5a9bd4f89f69288459f9e2a919 | 14076360ed82681bee9c21415b53bf572256729a | /accounts/admin.py | 9477a177dbc0293e53f8203a137d4e0a462eb655 | [] | no_license | dev-codflaw/django-poll-app | f566346314410f975fae064f0c35bc2f1697c539 | 830f3e67e0a053b64580893535fc7c4a02000c1d | refs/heads/master | 2023-02-15T11:41:38.804797 | 2021-01-08T04:19:31 | 2021-01-08T04:19:31 | 311,088,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
# Register your models here.
from accounts.models import User
admin.site.register(User) | [
"dev.codflaw@gmail.com"
] | dev.codflaw@gmail.com |
2c2fa098e17adbad9bfa97e6d4954a98aa9d34f8 | 590dbeb9f0df3454430182d8b2495a648ec3d119 | /database.py | a9768afc97e1beb1d47f3ef0768cc2e6ce01f638 | [] | no_license | suhanoves/telegram_bot_abb_stock | ec28d65c020c3718de7cf07edaadee96fb0ca49e | 09c8860cee9f239851d21a515ba5efa75af9f601 | refs/heads/master | 2023-08-03T21:03:37.541016 | 2021-09-20T12:38:16 | 2021-09-20T12:38:16 | 314,072,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # хранение результатов поиска пользователей
USER_SEARCH_RESULTS = {}
USER_PRODUCT_INFO = {}
def add_user_search_results(user_id: int, search_results: list):
USER_SEARCH_RESULTS[user_id] = search_results
def del_user_search_history(user_id: int):
if user_id in USER_SEARCH_RESULTS:
del USER_SEARCH_RES... | [
"suhanoves@gmail.com"
] | suhanoves@gmail.com |
96fd7941d77aa61220eefc52fc789617803291c0 | eaba398a0ca5414c10dd1890e662fdcd87e157b6 | /tests/steps/basic.py | 1ca0ec3034bcc7987e7c7eee0bf0ef965a096c27 | [
"MIT"
] | permissive | coddingtonbear/jirafs | a78f47e59836d9a6024bc287ea2a1247fb297e62 | 778cba9812f99eeaf726a77c1bca5ae2650a35e9 | refs/heads/development | 2023-06-16T00:06:33.262635 | 2022-09-20T04:06:26 | 2022-09-20T04:06:26 | 21,588,191 | 125 | 17 | MIT | 2023-06-02T05:48:53 | 2014-07-07T21:54:20 | Python | UTF-8 | Python | false | false | 3,047 | py | from __future__ import print_function
import collections
import json
import os
import shutil
import subprocess
from behave import *
from jira.client import JIRA
@given("jirafs is installed and configured")
def installed_and_configured(context):
pass
@given("a cloned ticket with the following fields")
def clon... | [
"me@adamcoddington.net"
] | me@adamcoddington.net |
796e00eb1d56efcf0a57251345c0236b3a28f9da | 16e69196886254bc0fe9d8dc919ebcfa844f326a | /edc/base/modeladmin/admin/base_model_admin.py | 5b0f9d99161144063c25f8b56d2d0ac3ca00c756 | [] | no_license | botswana-harvard/edc | b54edc305e7f4f6b193b4498c59080a902a6aeee | 4f75336ff572babd39d431185677a65bece9e524 | refs/heads/master | 2021-01-23T19:15:08.070350 | 2015-12-07T09:36:41 | 2015-12-07T09:36:41 | 35,820,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,157 | py | import logging
import re
from datetime import datetime
from django.contrib import admin
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import NoReverseMatch
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.utils.encoding impor... | [
"ew2789@gmail.com"
] | ew2789@gmail.com |
7dca7bc5e4e3e45e9c6827e5becf8325cc03c1b0 | 1c0f6f9d322b5abde0a49dd811237f2dbc579928 | /src/scpiparser/CommandInterpreter.py | c0498e193fb293fe2a4e0270638560f6f802c0e1 | [
"MIT"
] | permissive | tom-biskupic/PythonSCPI | 8f48c165fa52d7abe7ca2e8ec2e33fec50d9fdcf | 46056c373298ffcb9d2f2a6a6a356f2c44a2991d | refs/heads/master | 2022-03-20T00:16:13.478029 | 2022-02-11T15:04:30 | 2022-02-11T15:04:30 | 140,911,624 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,988 | py |
from lark import Lark,Token
from lark.exceptions import UnexpectedInput
if __package__:
from .QueryHandler import QueryHandler
from .CommandHandler import PrintHandler
from .QueryHandler import IDNHandler
from .HandlerMap import HandlerMap
else:
from QueryHandler import QueryHandler
from Comma... | [
"tom.biskupic@gmail.com"
] | tom.biskupic@gmail.com |
86c3fa0419163a6f6c84f50c5591118e84995339 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_233/ch29_2020_03_04_11_52_21_685286.py | 86e106c02ae7810c6ae8a20278ff5d4c498791af | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | inicial = float(input())
taxa = float(input())
aumento = 0
for i in range(24):
valor = inicial * taxa ** i
aumento += valor - inicial
decimos = int(valor * 10 - int(valor))
centesimos = int(valor * 100 - decimos * 10 - int(valor) * 100)
print('%d,%d%d' % (int(valor), decimos, centes... | [
"you@example.com"
] | you@example.com |
c49192e37cc60de56b0ffee281723aab1f74938b | 8eaa84e38df19456b443a338f8780cee092cd93f | /src/utils.py | 8b3be922bdc32f472675538a14acc4010f07cbec | [] | no_license | syamajala/ProjectileMotion | b4296c72fa0da58d9ad97a8d2d9649951eb2b077 | f6417ea63fffe8b59754f70dd1e37547987a533a | refs/heads/master | 2020-04-18T07:46:51.440820 | 2017-10-15T17:06:49 | 2017-10-15T17:06:49 | 66,796,583 | 0 | 2 | null | 2016-09-01T00:31:17 | 2016-08-28T23:46:40 | JavaScript | UTF-8 | Python | false | false | 888 | py | import pyproj
import datetime
import dateutil.parser
ecef = pyproj.Proj(proj='geocent', ellps='WGS84', datum='WGS84')
lla = pyproj.Proj(proj='latlong', ellps='WGS84', datum='WGS84')
def rgb2rgba(rgb, alpha=255):
c = map(int, rgb[4:-1].split(','))
return tuple(c) + (alpha, )
def ecef2lla(x, y, z):
retu... | [
"syamajala@gmail.com"
] | syamajala@gmail.com |
3d0963f2422006664daf35f191af339431fd7d7f | 4da6ba414d2657ba1b3dc6704dd910429155b059 | /ex43.py | 092b8d140e94419bcda7646340d0a40aa9b9a873 | [] | no_license | hairuo/LPTHW | 36ebfa8ee40f6eb9317919f49e403a3450c2c741 | 7923391b4f775b395dfbd7f9f8ce3150694881a3 | refs/heads/master | 2020-12-03T09:27:57.290214 | 2017-08-15T12:16:22 | 2017-08-15T12:16:22 | 95,622,714 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,723 | py | # Exercise 43: Basic Object-Oriented Analysis and Design
from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()."
exit(1)
class Engine(object):
def __init__(self, scene_map):
... | [
"hairuo@gmail.com"
] | hairuo@gmail.com |
754e4cf87805acc755afe9ff9c895f1243f52c05 | ef1860a6c1a46084d3fc58eb03b6941d3e3b8a89 | /MiscroProject/random_game.py | 84a8a74ec95942d51748e55a29050940d9c9e567 | [] | no_license | YertAlan/Yert_Python | 073729e7d5b68ddefd033891c4df6a205e2b3cf7 | b54b31c631162f1f376fb402358c3e747dfb7e18 | refs/heads/master | 2021-07-08T22:00:39.770378 | 2020-10-19T04:21:15 | 2020-10-19T04:21:15 | 193,183,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | #-*- coding:utf-8 -*-
#创建一个摇色子的游戏
import random
#生成一个色子的随机数
def ran_num():
list = [1,2,3,4,5,6]
n = random.choice(list)
return n
#将三个色子的随机数进行总和
def ran_sum():
s = 0
list = []
for i in range(3):
n = ran_num()
list.append(n)
s = sum(list)
print(list," = ",s)
retu... | [
"2226895290@qq.com"
] | 2226895290@qq.com |
bdd72be6fe900c43b8628faccbf524db82bd5c62 | 6e8d92b36e763d85e60e076d5552976d37f32218 | /deploy_test/test_large1.py | 1bfd20fd9a85facdf62921ad933bc5603556de36 | [
"Apache-2.0"
] | permissive | additionsec/as_gateway | a258d52411a141dfcf6661404aecc5a51f2e65fe | 62da2f842861d844fecbe8e659e676f52d4df8eb | refs/heads/master | 2021-03-30T17:23:43.959959 | 2019-02-22T04:13:31 | 2019-02-22T04:13:31 | 58,244,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py |
import addsec_cti_pb2
import common
import time
def test1():
report = addsec_cti_pb2.Report()
common.test_populate( report )
ob = report.observations.add()
ob.observationType = 2
ob.timestamp = int(time.time())
ob.testId = 50
dat = ob.datas.add()
dat.dataType = 10
dat.data = "A" * 8192
payload = report.S... | [
"jeff@forristal.com"
] | jeff@forristal.com |
75890dbe0a461be67cb79e65c3af9634256f307c | 2b475334a5456d244325a0fda21de9483abed122 | /CommentsMicroService/CommentsDatabase.py | 9a50abfa581ee05992186e3db64c797fb952e525 | [] | no_license | ThomasGalesloot/Seng-401-Project-Backend-2 | aaac53445f958df1b80a7eb33870bdb73f5ecf83 | 3859a0a0dd1d09e80a11e96db1c5d8d6fef2a17a | refs/heads/master | 2022-04-11T08:24:44.816381 | 2020-04-03T04:29:50 | 2020-04-03T04:29:50 | 243,092,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import pyodbc
class CommentsDatabase:
def __init__(self):
self.conn = pyodbc.connect('Driver={SQL Server};'
'Server=DESKTOP-Q5ABK7U;'
'Database=CommentsDatabase;'
'Trusted_Connection=yes;')
se... | [
"ryanoakes686@gmail.com"
] | ryanoakes686@gmail.com |
9da7ec52675ca523d85ea18df6fe32e84e5ae63b | 5dfb170597ec46d6f66d8446c366c262da43a3ec | /python/oneflow/test/dataloader/test_numpy_dataset.py | 995df2b0f459a6246428e490239faeb4bedf5625 | [
"Apache-2.0"
] | permissive | dangkai4u/oneflow | c274abbd84a9043e4711f8320566eed27c748296 | 63ecd5e2c539c9a44011b2e80af1ebae48eb6a0a | refs/heads/master | 2023-06-22T18:41:44.800378 | 2021-07-27T04:24:06 | 2021-07-27T04:24:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
1ae74b4fd7b9d4eff80f6b125bfcc8bbd696692e | bbd393495f55e2ea3841c0242d03499b6ae5c5f1 | /game_tic.py | 2cda744ac882b79e4c2ff73fa136e859898459a0 | [] | no_license | Nitapol/game | 70205809e66de66407ccdd53bf3e94e5f625f808 | ef2d285958e4420f493263d915b77e7da723968e | refs/heads/master | 2022-01-23T16:35:01.040394 | 2022-01-02T18:20:47 | 2022-01-02T18:20:47 | 188,763,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | # BOF#######################################################################BOF
from game import Game
class GameTicTacToe(Game): # #################################################
# 0 1 2
# 3 4 5
# 6 7 8
winning_pairs = [[[1, 2], [4, 8], [3, 6]], # for 0
[[0, 2], [4, 7]], #... | [
"nitapol@hotmail.com"
] | nitapol@hotmail.com |
2630e1b154db476190df6a0655a55e06d00502d5 | 4eb58a2c7d3d17af36b4e2c27d88f8a8e2beca32 | /DCM_logit.py | 708ea919905a325f1f7d3c7b544ef898b938e411 | [] | no_license | Meghdad-DTU/Discrete-Choice-Model | fefec73e7c3d6613ea34ed151737c5910cd1b114 | 2b58969c52649024de423906f86e5fcbfb3a2269 | refs/heads/main | 2023-01-24T05:28:07.665537 | 2020-12-03T13:15:18 | 2020-12-03T13:15:18 | 312,388,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,127 | py | from scipy.optimize import minimize
from scipy.stats import norm
from numdifftools import Hessian, Gradient
from datetime import datetime
import halton as hl # Halton sequence
import lhsmdu # Latin hypercube sampling
import time
class DCM_logit(object):
def __init__(self, mixing=0, startingiteratio... | [
"noreply@github.com"
] | noreply@github.com |
2ef514d2e1bf298d308ec96e740a2d85eb5148f9 | d61de092d46d060eec83f9d361ad5d735301e3be | /module 2- Create a Cryptocurrency/hadcoin_node_5003.py | 72d2ccd0d5b407aa9dd2f0facb6c4d5f738d87fb | [] | no_license | strawhatRick/Blockchain_practice | 03cae4975ae727ac04f023f1240ba97339c96ef9 | c52709c2b1ef46321c47e1b4a5fb0cf215f052ad | refs/heads/master | 2021-08-07T08:50:33.536364 | 2020-06-25T06:23:09 | 2020-06-25T06:23:09 | 193,660,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | # Module 2 - Create a Cryptocurrency
#To be installed
#Flask==0.12.2: pip install Flask==0.12.2
#Postman HTTP Client: https://www.getpostman.com/
#requests==2.18.4: pip install requests==2.18.4
#Importing the librarires
import datetime
import hashlib
import json
from flask import Flask, jsonify, request
import reques... | [
"noreply@github.com"
] | noreply@github.com |
4f3c73e27f6f55f81e9f77fb85fc19fbed7f387b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02928/s256920562.py | c89b4ce6cab3fe975f18c176f86c82863230a7df | [] | 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 | 797 | py | #第一回日本最強プログラマー学生選手権-予選- -B Kleene Inversion
"""
リストをk回繰り返したものの、転倒数の個数を求めよ
先ず純粋に与えられたリスト内での転倒数を求めた後、
それを1~k倍したものを足し合わせる
"""
import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0
mod = 10**9+7
n,k = map(int,readline().split())
lst1 = list(map(int,readline().split()))
fall = 0
fall_al = 0... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ca3562bb02d7bbdba2a3884a09cb3e1ef762c919 | f76e11d4da15768bf8683380b1b1312f04060f9a | /sample_conlls_for_files_in_folder.py | a41592d79ee73224376e3b60857161c7a140304b | [] | no_license | rasoolims/scripts | 0804a2e5f7f405846cb659f9f8199f6bd93c4af6 | fd8110558fff1bb5a7527ff854eeea87b0b3c597 | refs/heads/master | 2021-07-07T03:53:20.507765 | 2021-04-13T14:53:00 | 2021-04-13T14:53:00 | 24,770,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import os,sys
sampler = os.path.dirname(os.path.abspath(sys.argv[0]))+'/sample_conlls.py'
folder = os.path.abspath(sys.argv[1])+'/'
o_folder = os.path.abspath(sys.argv[2])+'/'
max_num = int(sys.argv[3])
for f in sorted(os.listdir(folder)):
command = 'python ' + sampler + ' '+folder+f +' '+o_folder+f + ' '+str(max_nu... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
f0700280d49a2739c73b10f197c611e50c1968f3 | 16ef2bd176b60a34660787323d0092e6b70c6dfa | /Component21/Wrapper_UserInput.py | 5dc96bb02559194a97f519fc35468b47d699ac96 | [] | no_license | saprem/OKBQA | abe78736d1b1d523e45136d90d7c4918f3ad9dcb | 7433a10a7857e524aec1226f633bfb873f91135b | refs/heads/master | 2020-03-22T00:44:18.627626 | 2018-06-30T19:03:44 | 2018-06-30T19:03:44 | 139,262,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | import urllib2
import json
import sys
'''
first_arg is the question
second_arg is the language of question
'''
first_arg = sys.argv[1]
second_arg = sys.argv[2]
class OKBQA(object):
'''
extracts the corresponding value "o", and display it as output
For eg:
(1)
first_arg: "Which river flows throug... | [
"noreply@github.com"
] | noreply@github.com |
424e2ab6a0976834aa28e4a6d10363ee7c6f6d29 | 977c419361143f83e1adfc2a90b2fd88de66a875 | /blog/migrations/0001_initial.py | 9f256426c10f6a770a3db483f616f66cb0e825ad | [] | no_license | kokimaniac/myfirstblog | 46b6ab207e45c4d13a38e5d39d6ea71133e70566 | 128f7f894dea36ef94803a05838552d68f0de1ba | refs/heads/master | 2020-04-05T09:23:12.638850 | 2018-11-09T20:00:50 | 2018-11-09T20:00:50 | 156,753,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.9 on 2018-11-08 15:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"cokimaniac@gmail.com"
] | cokimaniac@gmail.com |
dc2589bc301a04c72b4135c28345d827ddd0a403 | 415c321f1c4ce1b00a7e731ab02ef532e48e6ba3 | /__init__.py | 2e586341762aa82f1df12e9dfc86c226abc702e4 | [] | no_license | rajputji/Python-BlackJack-Game | 7a4f0169decb7d00d2e64dcce3bdfe6c80b9e55d | fd85174a0cea84e4f7728bc27a0281f331b7ece1 | refs/heads/master | 2020-03-20T05:45:42.153292 | 2018-06-13T15:20:28 | 2018-06-13T15:20:28 | 137,225,549 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | """
AUTHOR
Abhishek Rajput <Abhishekrajput676@gmail.com>
""" | [
"abhishekrajput676@gmail.com"
] | abhishekrajput676@gmail.com |
4186d6772b5b2efd4a9a95373b9d03ac300b08ef | 154cee995010396b26eb00e3959e5e6781428134 | /cernael-python/14b.py | a6524c45c7a9702a454ead2d9e832035841b451b | [] | no_license | Dyr-El/advent_of_code_2020 | bbe237cd9bc61ee34305e7e838bb0aafc4b8d839 | e6b5469e3191597ec5be479eb33feeab42c1280c | refs/heads/main | 2023-02-07T09:34:45.981646 | 2020-12-25T07:13:26 | 2020-12-25T07:13:26 | 315,087,260 | 1 | 0 | null | 2020-12-25T07:13:27 | 2020-11-22T16:56:42 | C++ | UTF-8 | Python | false | false | 1,050 | py | def solve(lines):
mem = {}
ones, nils = [0],[0]
masks = [0]
for l in range(len(lines)):
line = lines[l].split(' = ')
if line[0] == 'mask':
ones, nils = [0],[0]
masks = [[0,0]]
for c in range(len(line[1])):
if line[1][c] == '1':
... | [
"tomas@cernael.com"
] | tomas@cernael.com |
aa13a7c48f9fc43d0c59b997c7ea180ad60047b7 | 85ec7780babfabb574de66f1aa82cb6cd8729f8a | /sbcnab240/Retorno.py | c3a2f652da55ab83302fd2f0c14cfe4d81328982 | [
"MIT"
] | permissive | Superbuy-Team/sbcnab240 | e70bfaaab2dc47fb71958ecb53d273607443168c | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | refs/heads/master | 2021-08-31T08:52:10.174142 | 2017-12-20T20:48:06 | 2017-12-20T20:48:06 | 114,794,943 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,670 | py | from Lote import Lote
from Boleto import Boleto, Cedente
class Retorno(object):
def __init__(self):
self.codigo_banco = None
self.lote_servico = None
self.tipo_inscricao = None
self.numero_inscricao = None
self.nome_empresa = None
self.nome_banco = None
self... | [
"roberto.amorim@superbuy.com.br"
] | roberto.amorim@superbuy.com.br |
78fc7d13d414f8d09ea510b3dde3116c43c2cbda | f6ab5cbe5bddf205b63afc2f88e5b54660b866d6 | /3-lists/2-indexing-and-slicing.py | 0535cf910d8a3f2852e7995cd0ce59d42612e8c5 | [] | no_license | d3vkk/ibm-python-101 | df5d220949032df0fded46925a8743c858489bf1 | 201943ed44e25d2c54544352d9debde9b9dfa7b6 | refs/heads/master | 2023-07-02T14:22:48.176934 | 2021-08-11T13:29:45 | 2021-08-11T13:29:45 | 392,346,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # POSITIVE INDEXING
# First index
string = "Hello World"
first_char = string[0]
print(first_char)
# Last index
string = "Alphabet"
last_char = string[len(string)-1]
print(last_char)
# NEGATIVE INDEXING
# First index
string = "Hello World"
first_char = string[-len(string)]
print(first_char)
# Last index
string = "Alp... | [
"donaldkk22@yahoo.com"
] | donaldkk22@yahoo.com |
6deef4bde5aa9af28705d701a145d6b9b527e346 | 1a631af3472c869006bcebf00f3593cc2578ee41 | /Prac05/colourCodesDict.py | af6eb6c1c2be6662803a23af178155953d54c0a2 | [] | no_license | GriffinBarath/Practicals | beeff5dd57432871dd83f78e76687c2dcdead895 | 53be129294ad92d999a3599d53069232bcb46f45 | refs/heads/master | 2020-09-23T03:00:30.810772 | 2016-10-27T01:14:00 | 2016-10-27T01:14:00 | 65,951,818 | 0 | 0 | null | 2016-10-12T23:18:41 | 2016-08-18T00:30:38 | Python | UTF-8 | Python | false | false | 875 | py | def main():
HEXADECIMAL_COLOUR_CODES = {"AntiqueWhite": "#faebd7", "Black": "#000000", "CornflowerBlue": "#6495ed",
"DarkGreen": "#006400",
"NavyBlue": "#000080", "RosyBrown": "#bc8f8f", "WhiteSmoke": "#f5f5f5",
"VioletR... | [
"griffinbarath@hotmail.com"
] | griffinbarath@hotmail.com |
14ebd393b7eb8046d3b0633dd9cde072d9aa2afe | 6061ebee9fbce8eb5b48ed7ccd2aecb196156598 | /modulo02-basico/desafios/desafio04.py | 6b061eeeb1901a297582e79d7c39ea815235dd66 | [] | no_license | DarioCampagnaCoutinho/logica-programacao-python | fdc64871849bea5f5bbf2c342db5fda15778110b | b494bb6ef226c89f4bcfc66f964987046aba692d | refs/heads/master | 2023-02-24T11:45:29.551278 | 2021-01-26T22:02:49 | 2021-01-26T22:02:49 | 271,899,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import random
nome1 = 'Dario'
nome2 = 'Maria'
nome3 = 'Ana'
nome4 = 'José'
x = random.choice([nome1, nome2, nome3, nome4])
print('O escolhido foi = {} '.format(x)) | [
"campagnacoutinho67@gmail.com"
] | campagnacoutinho67@gmail.com |
dea33f85af7f66f7636b976164a57c513d9e0b8c | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_gaelic_games_player_api.py | 652e74921fb7bba2124a47a636a082cc9d1127cd | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.gaelic_games_player_api import Gael... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
e9e9ec19712e8057912fe726708c1343645fc61b | 8f92558113aeeb1faf0a396d98170c9f3df948c1 | /loginManagement/urls.py | d54abc027406b3a509bb8ef66954a222e87e5b04 | [] | no_license | loenex/InformationManagementSystemForDentalClinic | 415b26161c2d604a4d16dd1e5bdd944a3b2f9081 | 855af98fd251b2b17dfef1f51ab63c5d9e815d01 | refs/heads/master | 2023-02-16T00:51:35.087510 | 2019-12-21T09:19:51 | 2019-12-21T09:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from django.conf.urls import url, include
from django.urls import path
from . import views
app_name = 'loginManagement'
urlpatterns = [
path(r'', views.index,name="index"),
path(r'login/', views.login,name="login"),
path(r'register/', views.register, name="register"),
path(r'logout/', vi... | [
"noreply@github.com"
] | noreply@github.com |
2a12122d9d5b99a129dc3fa2a52bf6b57a7b4e4d | a8b2ab984cf02660efce5a7696cd3218d7023883 | /python/598.range-addition-ii.py | a16fc8861d35c55faac849acfad8d6b4554fd525 | [
"MIT"
] | permissive | vermouth1992/Leetcode | b445f51de3540ef453fb594f04d5c9d9ad934c0c | 386e794861f37c17cfea0c8baa3f544c8e5ca7a8 | refs/heads/master | 2022-11-07T13:04:00.393597 | 2022-10-28T02:59:22 | 2022-10-28T02:59:22 | 100,220,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | #
# @lc app=leetcode id=598 lang=python3
#
# [598] Range Addition II
#
# https://leetcode.com/problems/range-addition-ii/description/
#
# algorithms
# Easy (50.41%)
# Total Accepted: 47.5K
# Total Submissions: 94.3K
# Testcase Example: '3\n3\n[[2,2],[3,3]]'
#
# You are given an m x n matrix M initialized with all 0... | [
"czhangseu@gmail.com"
] | czhangseu@gmail.com |
e9dd706d87b76237095f0c03ca7663bfadbdb98c | 541b2ed1826af76a0d9d28aad96ef2f086e8ab6d | /climats/admin.py | 6c6e8079b013ce02b2010f251325e0950dc74911 | [] | no_license | boblicitra/tlucidity | 067594daf22399b930f93347d8a68a5c81c05cb1 | 3a582b76515b177782e50dd59d92eabdb1b1c563 | refs/heads/master | 2020-04-16T02:10:59.299312 | 2019-02-05T21:33:39 | 2019-02-05T21:33:39 | 62,420,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from django.contrib import admin
from .models import *
class CompanyAdmin(admin.ModelAdmin):
list_display = ('code','name',)
class TimekeeperAdmin(admin.ModelAdmin):
list_display = ('code','last_name','first_name','status',)
list_display_link = ('code',)
list_filter = ('status',)
class ClientAdm... | [
"ubuntu@ip-172-31-63-184.ec2.internal"
] | ubuntu@ip-172-31-63-184.ec2.internal |
04b3d335d92c0e655b7cfa971605e0f513bb29d9 | 731427dec541637da733cf7ec515b35f8009e8c7 | /src/server/client_direct.py | c81fa96a0d28840c8cef68fb1c8c0572a74a3c34 | [] | no_license | oeitam/weekly | c8c0b66cd742e8c83e9060587b5b621da08a9269 | 1f63ac71b532c639f7f344d0cf6ded05943e710b | refs/heads/master | 2021-01-22T04:05:35.320605 | 2018-11-29T21:51:25 | 2018-11-29T21:51:25 | 92,432,544 | 0 | 0 | null | 2018-01-21T18:33:21 | 2017-05-25T18:30:05 | Python | UTF-8 | Python | false | false | 1,635 | py |
import sys
import time
from test import test_defs
from src import defs
import logging
#cd_logger = logging.getLogger(__name__)
logging.basicConfig(filename='client.log', filemode='w', level=logging.DEBUG)
logging.info('Logging (client direct) Started')
cd_logger = logging.getLogger(__name__)
class client(object)... | [
"oeitam@gmail.com"
] | oeitam@gmail.com |
a5cc846200659b763619266162730ab3c3b4a9d6 | f4f0c0fbe139d43b87effcdcbda2f61688d15726 | /nowcoder/reverseNum.py | aec35113e87ce3986c695bd5cb3b22eeeb077ca5 | [] | no_license | wan-si/pythonLearning | a49242c1eb752b0dccfe2b5219f857bc1732d7dd | 5d17fbafbd977865e453ae3d1d31f6e9ee25d87d | refs/heads/main | 2023-06-24T05:00:07.467289 | 2021-07-14T12:43:34 | 2021-07-14T12:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | inp = str(input())
# res=''
# for i in inp[::-1]:
# res += i
# print(res)
print(inp[::-1]) | [
"swan@swans-MacBook-Pro.local"
] | swan@swans-MacBook-Pro.local |
7537600bafe78ac26d429c8c02a71a336bd9f55a | 63ace5832d453e325681d02f6496a0999b72edcb | /bip_utils/addr/ergo_addr.py | 3866b51985ebe93e5c043e028807fdc3bf08fece | [
"MIT"
] | permissive | ebellocchia/bip_utils | c9ec04c687f4247e57434319e36b2abab78f0b32 | d15c75ddd74e4838c396a0d036ef6faf11b06a4b | refs/heads/master | 2023-09-01T13:38:55.567370 | 2023-08-16T17:04:14 | 2023-08-16T17:04:14 | 251,130,186 | 244 | 88 | MIT | 2023-08-23T13:46:19 | 2020-03-29T20:42:48 | Python | UTF-8 | Python | false | false | 6,215 | py | # Copyright (c) 2022 Emanuele Bellocchia
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
3f44a961dc17d224810f89b2af9967c97b56e9cc | 2eae961147a9627a2b9c8449fa61cb7292ad4f6a | /openapi_client/models/put_financial_settings_financial_settings.py | 528befb129e62a58e2aa4a47305b7c13242a06cc | [] | no_license | kgr-eureka/SageOneSDK | 5a57cc6f62ffc571620ec67c79757dcd4e6feca7 | 798e240eb8f4a5718013ab74ec9a0f9f9054399a | refs/heads/master | 2021-02-10T04:04:19.202332 | 2020-03-02T11:11:04 | 2020-03-02T11:11:04 | 244,350,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,975 | py | # coding: utf-8
"""
Sage Business Cloud Accounting - Accounts
Documentation of the Sage Business Cloud Accounting API. # noqa: E501
The version of the OpenAPI document: 3.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.confi... | [
"kevin.gray@eurekasolutions.co.uk"
] | kevin.gray@eurekasolutions.co.uk |
88a4847ffe7598445d9e4e79ec7ade7cf24f3ca7 | 29141b36357a466d72cff07f4f6a252f790947dd | /src/cnn_tf.py | 22995b29408dd890e3f43d41c010011ec072a12c | [
"MIT"
] | permissive | liu3xing3long/nih-chest-xray | b232fce57e0df29d5245b8ceed37c4c10ca93c9f | 84eec51c35bd6412fada04412842fe872f40a91e | refs/heads/master | 2021-08-22T19:56:55.372945 | 2017-12-01T05:15:13 | 2017-12-01T05:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import tensorflow as tf
import numpy as np
import pandas as pd
print("Importing Data")
labels = pd.read_csv("../data/sample_labels.csv")
X = np.load("../data/X_sample.npy")
y = labels['Finding_Labels']
y = np.array(pd.get_dummies(y))
print("Splitting Data")
X_train, X_test, y_train, y_test = train_test_split(X, y, ... | [
"gregory.chase@colorado.edu"
] | gregory.chase@colorado.edu |
3a346913704674caee5c77cd75948fe136288495 | 375f29655b966e7dbac2297b3f79aadb5d03b737 | /Image/Morphw.py | 480c580be1281ed1523a76b52adc5b0beb2b5854 | [
"MIT"
] | permissive | pection-zz/FindJointwithImageprocessing | 33e0b47ca3629d85e739edcd88dcd1663af88631 | 3dd4563be88dfcf005c32f19ae97d03f9bf715ad | refs/heads/master | 2022-12-23T11:09:04.391591 | 2020-10-05T16:35:21 | 2020-10-05T16:35:21 | 301,473,183 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import sys
# import urllib2
import cv2 as cv
src = 0
image = 0
dest = 0
element_shape = cv.CV_SHAPE_RECT
def Opening(pos):
element = cv.CreateStructuringElementEx(pos*2+1, pos*2+1, pos, pos, element_shape)
cv.Erode(src, image, element, 1)
cv.Dilate(image, dest, element, 1)
cv.ShowImage("O... | [
"pection.naphat@gmail.com"
] | pection.naphat@gmail.com |
bbe80be9f9fff0ea613053c45361bc9ec7a96a24 | abaa806550f6e6e7bcdf71b9ec23e09a85fe14fd | /data/global-configuration/packs/sshd/collectors/collector_sshd.py | c0b458e04e59a61fc4c9e68ec80c8eb193eddf40 | [
"MIT"
] | permissive | naparuba/opsbro | 02809ddfe22964cd5983c60c1325c965e8b02adf | 98618a002cd47250d21e7b877a24448fc95fec80 | refs/heads/master | 2023-04-16T08:29:31.143781 | 2019-05-15T12:56:11 | 2019-05-15T12:56:11 | 31,333,676 | 34 | 7 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import os
from opsbro.collector import Collector
class Sshd(Collector):
def launch(self):
self.logger.debug('get_sshd: starting')
if not os.path.exists('/etc/ssh'):
self.set_not_eligible('There is no ssh server. Missing /etc/ssh directory.')
return
res = {}
... | [
"naparuba@gmail.com"
] | naparuba@gmail.com |
71f2f3f6ab8c82d999fdc5604d74c6ca35798e00 | a4df0ee67d0d56fc8595877470318aed20dd4511 | /vplexapi-6.2.0.3/vplexapi/api/system_config_api.py | 0cf62487a151978bcac867ff393426037a25be5b | [
"Apache-2.0"
] | permissive | QD888/python-vplex | b5a7de6766840a205583165c88480d446778e529 | e2c49faee3bfed343881c22e6595096c7f8d923d | refs/heads/main | 2022-12-26T17:11:43.625308 | 2020-10-07T09:40:04 | 2020-10-07T09:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,577 | py | # coding: utf-8
"""
VPlex REST API
A defnition for the next-gen VPlex API # noqa: E501
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
... | [
"anil.degwekar@emc.com"
] | anil.degwekar@emc.com |
2780a342fb5ef729f59762e3933525734204a25f | 697f5d6857f3499cf12d78ce8468987fa1979a8f | /src/interface/Python/test/testParaMonte_testing_mpi.py | 430a65b5bc864d0fb95cf353a65b43c3bc4df455 | [
"MIT"
] | permissive | ekourkchi/paramonte | 00ced91817e8a41b9b039da973912cbd0205e692 | 15f8ea27cb514078a94d9c4ee4b60e4f45826f17 | refs/heads/master | 2023-01-28T07:59:09.063054 | 2020-12-09T07:19:43 | 2020-12-09T07:19:43 | 309,625,327 | 0 | 0 | MIT | 2020-12-09T07:19:44 | 2020-11-03T08:46:19 | Fortran | UTF-8 | Python | false | false | 2,881 | py | #!/usr/bin/env python
#!C:\ProgramData\Anaconda3\python.exe
####################################################################################################################################
###############################################################################################################################... | [
"a.shahmoradi@gmail.com"
] | a.shahmoradi@gmail.com |
bf31c6a27ffc66a4a30b265b0d2e617071e387d7 | dccc57a9320f3c8fd267728bd661a8de501acdad | /Scripts/CC_cal2.py | c32f71f997ec1d6e82ada10075847a6a07ce423a | [] | no_license | SiriusExplorer/G_project | 361eb62d8a93239092a93de520dcc858d4b16063 | 99a7074cc03e4d94c698a60ef42ceeebf164b860 | refs/heads/master | 2021-01-25T10:35:49.301750 | 2018-05-03T01:34:01 | 2018-05-03T01:34:01 | 123,364,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | # The script is used to calculate the pearsom and spearman correlation coefficient for specific file
import numpy as np
from scipy import stats
def parse_xls_to_matrix(xls_filename):
with open(xls_filename) as file:
matrix = []
lines = file.readlines()
matrix.append(lines[0].split... | [
"noreply@github.com"
] | noreply@github.com |
27eda12c746e76aea622924f2ee8847073596125 | 5e371d3a3ce77e8d40eb8771946d80f8c70c94a3 | /learning_templates/learning_templates/settings.py | 654527665f7ffa984caabf5e7ce27f082f1f3659 | [] | no_license | eimaru09/django-deployment-example | ef36eabba10e89137283c903643a99e6716e4ebb | 23b75714e7c489d1d0f15de01852255986c9db17 | refs/heads/master | 2021-08-14T09:53:24.752096 | 2017-11-14T10:05:12 | 2017-11-14T10:05:12 | 110,670,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for learning_templates project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""... | [
"goemon09@yahoo.co.jp"
] | goemon09@yahoo.co.jp |
dfb205e756ab598a52d4784a867c0ab13b26da1a | 2dd5bfdc0aebdec5b9693a7f38e4590ac48d99db | /tamrin.py | 94020d17a9838f63d649f1ff482c482fce9efeaf | [] | no_license | Aliiinajafi20/adadkamel | a0a64cffcc7ca424ca8b9fddb7131c23018821dc | 6617b578569813c04e6e994beb30c5b66df61980 | refs/heads/master | 2022-11-28T18:34:06.927551 | 2020-07-24T07:38:08 | 2020-07-24T07:38:08 | 280,908,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | x=float(input("Enter the auto price:"))
y=float(input("Enter the price of the paper:"))
a=150
b=50
r=((float(input("Enter The inflation rate:")))/100)
z=(a*x+y*b)
f=(z*r)+z
print("Increase the cost of the company:",f) | [
"shirin.alizadeh19@gmail.com"
] | shirin.alizadeh19@gmail.com |
473d2013a90048edf4a5ef97ee271ce8e7771c08 | 4878b770577b82d216d8f04befed8a85d1cc06c7 | /Model_define_pytorch.py | 69f13d0f061457e3c82ca5df50d48dd699387259 | [] | no_license | linjingmo/NAIC_baseline_pytorch | 744065eb944f4da4aed79498b25cec093c4727b6 | bd69fd50ab66ee7b3a82a4f25cd1607805be19fc | refs/heads/master | 2023-03-10T10:06:23.780823 | 2021-02-27T09:16:35 | 2021-02-27T09:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,590 | py | #!/usr/bin/env python3
"""An Implement of an autoencoder with pytorch.
This is the template code for 2020 NIAC https://naic.pcl.ac.cn/.
The code is based on the sample code with tensorflow for 2020 NIAC and it can only run with GPUS.
If you have any questions, please contact me with https://github.com/xufana7/AutoEncod... | [
"noreply@github.com"
] | noreply@github.com |
9ee850f579c896ce0e8288b66817cca063a7a3d0 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/lib-python/3/tkinter/font.py | 5425b060132a7f3319d4038b8185c548b23e4efa | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 6,135 | py | # Tkinter font wrapper
#
# written by Fredrik Lundh, February 1998
#
# FIXME: should add 'displayof' option where relevant (actual, families,
# measure, and metrics)
#
__version__ = "0.9"
import tkinter
# weight/slant
NORMAL = "normal"
ROMAN = "roman"
BOLD = "bold"
ITALIC = "italic"
def nametofont(name):
... | [
"thezhangwei@gmail.com"
] | thezhangwei@gmail.com |
754dc7267c49aacffd7d2656a8f1484056801d6f | 139288e3ce07322333defbc5e44056c664f968c8 | /connect.py | f05c59e3208300a785d947db118bee58f2dfc28a | [] | no_license | PNUIOTLAB/Air-Rasberry | 22cf945b3c3dc9a11703d12dc3d1a0cad24e8a2e | e4c803117faa53e012b1ed4f3a046f5e653d6bd3 | refs/heads/main | 2023-07-15T02:31:22.492264 | 2021-08-29T06:33:51 | 2021-08-29T06:33:51 | 307,345,883 | 0 | 0 | null | 2021-08-29T06:33:51 | 2020-10-26T11:10:21 | Python | UTF-8 | Python | false | false | 191 | py | import bluetooth
Target_device_addr = "20:20:1d:27:d1:17"
port =1
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
sock.connect((Target_device_addr, port))
sock.send("hello")
sock.close
| [
"zungun2217@gmail.com"
] | zungun2217@gmail.com |
ca7a001a542a3dedd8711e9dbb758503e4498ca4 | 49dfc23a2542996927efc734cdddc24d359ea474 | /DoublyLinkedList.py | 5db56aa12e7d2566351ab8e9b89365fd35adad3c | [] | no_license | harshadrai/DataStructures | 7f9cf98a3765cd7525058ab8ef29b4752d455bed | 31aacdf7aa03226c712d4e1370714ccfe3a83ad9 | refs/heads/master | 2022-02-27T18:45:47.986642 | 2019-11-03T21:28:26 | 2019-11-03T21:28:26 | 194,788,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,069 | py | class Element(object):
def __init__(self,value,next=None,prev=None):
self.value=value
self.next=next
self.prev=prev
class DoublyLinkedList(object):
def __init__(self):
self.head=None
def append(self,element):
if self.head:
next_element=self.head
... | [
"hrrai2@illinois.edu"
] | hrrai2@illinois.edu |
1406a3be22719918e6335cd07a499544d2bc7444 | a3e4c101d1e11b3f265dc3bcafe3d21fd44a46c2 | /api/apps.py | 3518b6489910dc3b4b350108516d779fffa91520 | [] | no_license | jie151/web_final | fdb5ad63c4fb9b38cda13b82a040f492dfdab4a6 | a7b631ce5fc05cf467634fe5c116947cf83287c2 | refs/heads/master | 2023-06-03T07:32:28.640953 | 2021-06-12T16:23:46 | 2021-06-12T16:23:46 | 376,342,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'
| [
"61457751+jie151@users.noreply.github.com"
] | 61457751+jie151@users.noreply.github.com |
2d65cd7dc544057e31eb3f95ff6eb51998df2347 | 5e360abc04bd6b340452d8fb73d3b67c2fa2dad6 | /carroya/spiders/carroya_spider.py | 163263497e2533fc337b8d4b2222b16c86cf45d6 | [] | no_license | guialante/carroya_crawler | f6cb8804b21c7b3ed2171c0c305f158592ccc8c6 | a04e70f86f00be827f1dc9249d3d3c890b4d92e4 | refs/heads/master | 2020-12-23T10:23:37.780586 | 2017-10-09T20:31:23 | 2017-10-09T20:31:23 | 41,567,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import Request
from ..items import CarroyaItem
class CarroyaSpider(scrapy.Spider):
name = "carroya"
allowed_domains = ["carroya.com"]
start_urls = [
'http://www.carroya.com/web/buscar/vehiculos/t4.do'
]
def parse(self, resp... | [
"guialante@gmail.com"
] | guialante@gmail.com |
31c56b82a6dab0d5a6b46825e2bab18d4a4203f9 | 755d018599dc5a37083f1a46d5edde8926f369b9 | /Спринт 12 Тема 2/P. Списочная очередь.py | e32c6993a8fb37a5a431d5405fb7fb96da70388e | [] | no_license | meat9/Algoritms | 6d3c425449955c7618e5b73e6f2ec46f1acd58b0 | 1394ba0c046a215d722aa1901e88f27ff7972e23 | refs/heads/master | 2022-12-26T10:43:21.078047 | 2020-09-13T08:16:59 | 2020-09-13T08:16:59 | 286,240,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | # Любимый вариант очереди Тимофея - очередь, написанная с использованием связного списка.
# Помогите ему с реализацией. Очередь должна поддерживать методы get, put, size.
# Формат ввода
# В первой строке записано количество команд n - целое число, не превосходящее 1000.
# В каждой из следующих n строк записана коман... | [
"meat9@yandex.ru"
] | meat9@yandex.ru |
76208c6ef8c190bcf22aa633dd5f6575a94e625f | a97531d67fd705805fd384a3dc815402e99dde75 | /for_rand.py | 245710ec3c7cc0762a9c1166772b70059f6cba5d | [] | no_license | alicehexing/spider_for_experts | 0918cff9326a7aba4bfbe659a568d3452aa1fcab | 8131bab1003e6e361f0591f7ef5dcb156f5ce868 | refs/heads/main | 2023-08-17T03:57:14.708575 | 2021-04-15T10:56:53 | 2021-04-15T10:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | # -*- coding:utf-8 -*-
# !/usr/bin/env python
# the experts page of the RAND uses asynchronous transmission
# from the response of the url: https://www.rand.org/about/people.html
# F12 -> Network -> F5 -> XHR -> Header
# then we can know that the information is stored here:
# https://www.rand.org/content/rand/about/pe... | [
"76767579+CandyMonster37@users.noreply.github.com"
] | 76767579+CandyMonster37@users.noreply.github.com |
32091f1cede951837973c316f0ad0fd571643586 | 89b746c29f3bc0a4ecd507e0de7154403c572bad | /Assignment -2/layers.py | 143e61f2091f8b8c5b3db467a7abaabe30dbd5ee | [] | no_license | MashNagesh/CS231N | ea05566359872ea3f9dd76daac7266d0210a6051 | b27ab96e892334bcd870c6e9bf824050b2a01f0c | refs/heads/master | 2020-03-18T09:14:18.432324 | 2018-08-24T07:06:24 | 2018-08-24T07:06:24 | 134,552,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,690 | py | from builtins import range
import numpy as np
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N
examples, where each example x[i] has shape (d_1, ..., d_k). We will
reshape each ... | [
"noreply@github.com"
] | noreply@github.com |
ca631286d1ffb88dc8f3b064bc031926d161073a | eafc4ca450fcdd4b5967187920cf6c5774d2a493 | /app/models.py | 7ba328dbc96bd4c78984dd55ace82d2c71dc79ab | [] | no_license | nixamas/brewbud | 286238cdee3bfa10fbbe49c01d5d23f159cd7ced | f215e6b3bef014d4eed828a80d812dcd823c8f77 | refs/heads/master | 2021-01-20T08:47:11.967946 | 2013-10-17T03:14:32 | 2013-10-17T03:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | # -*- encoding: utf-8 -*-
"""
Python Aplication Template
Licence: GPLv3
"""
from app import db
class ModelExample(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(250))
content = db.Column(db.Text)
date = db.Column(db.DateTime)
class BeerModel(db.Model... | [
"nixamas@gmail.com"
] | nixamas@gmail.com |
cbd6e68a9e21552b93a632d455222c655592eac1 | bc6a65059105d024f5f21345e83d679034392863 | /0x05-personal_data/filtered_logger.py | d1e1c8a13183069b6a6cc235c4c750b0347d3b48 | [] | no_license | cedouiri/holbertonschool-web_back_end | 037ebe2972507e614d9ed5e6b13ff5e5d93c81f3 | 122fd8577d7e5f781af1a0439cb2665d2397eaa3 | refs/heads/main | 2023-05-16T04:54:53.601936 | 2021-06-07T20:47:02 | 2021-06-07T20:47:02 | 348,110,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #!/usr/bin/env python3
'''
Regex-ing
'''
import logging
import re
import mysql.connector
import os
from typing import List
PII_FIELDS = ('name', 'email', 'phone', 'ssn', 'password')
class RedactingFormatter(logging.Formatter):
'''
class Redacting Formatter
'''
REDACTION = "***"
FORMAT = "[H... | [
"cedouiri@gmail.com"
] | cedouiri@gmail.com |
3262ca2157e7e55a7bc3b144133ddefce3b3e3a7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/44a9b167bda9654ce60588cf2dcee88e4bad831d-<test_apply_with_reduce_empty>-bug.py | 2a11ec39a3f937351a774e71f7fba648b2061694 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | def test_apply_with_reduce_empty(self):
x = []
result = self.empty.apply(x.append, axis=1, result_type='expand')
assert_frame_equal(result, self.empty)
result = self.empty.apply(x.append, axis=1, result_type='reduce')
assert_series_equal(result, Series([], index=pd.Index([], dtype=object)))
empt... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
2572e48bdb52d7a084f54b18b1441b9669eedc10 | eb2e34f130a114269ccb71ea80c22edef0eee516 | /invoicely/invoicely/urls.py | b18f193a70a988ba21877b24e110247e579d3e69 | [] | no_license | Ussr-eng/Invoice | 54ee5958d601b57dec1dec0bd41668831103b87d | 4afaa1527d7249924c9771779989aa080fdc1026 | refs/heads/master | 2023-04-23T16:29:27.908647 | 2021-05-12T18:37:48 | 2021-05-12T18:37:48 | 349,966,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/v1/', include('djoser.urls')),
path('api/v1/', include('djoser.urls.authtoken')),
path('api/v1/', include('apps.client.urls')),
path('api/v1/', include('apps.team.urls'... | [
"lyi113@icloud.com"
] | lyi113@icloud.com |
d0676c8bf7212cd46f2beb1288e21d745b2f5132 | dd3ee2babd81d7d37399fd92f637c5600661b408 | /latest_changes/wagtail_hooks.py | b9b2ac9588fa27f8e9aa842568a27b12208540e4 | [] | no_license | andsimakov/wagtail-latest-changes | 2dc65f6e8212f02be51e3da957ce8804b08054f7 | 055004fd1e8fa65558bf030e258b82ec7891999c | refs/heads/master | 2022-06-17T22:01:05.821551 | 2020-05-08T10:47:39 | 2020-05-08T10:47:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from django.http import HttpResponse
from django.conf.urls import url
from django.urls import reverse
from wagtail.admin.menu import MenuItem
from wagtail.core import hooks
from wagtail.core.models import UserPagePermissionsProxy
from .views import LatestChangesView
@hooks.register('register_admin_urls')
def urlconf_t... | [
"spapas@gmail.com"
] | spapas@gmail.com |
27d89f0b545945f22470cab2bcd468a628445cf9 | 5758ce4043a08512300dd299c11f53678a92266b | /Odev2.py | a3a85e5767015321ec0e251fea273f74e5949d90 | [] | no_license | zeydustaoglu/16.Hafta-Odevler | 11e5d6e82dcbb38f4208ae188878bbaaeb307e7c | db61e45dba3988b1f05c16b43b68ea8a116adbeb | refs/heads/master | 2020-08-06T09:07:23.658967 | 2019-10-04T23:30:53 | 2019-10-04T23:30:53 | 212,917,917 | 0 | 0 | null | 2019-10-04T23:28:49 | 2019-10-04T23:28:49 | null | UTF-8 | Python | false | false | 1,294 | py | # Soru:
# İngilizce karakterlerden oluşan bir string var elimizde.
# Bu stringe iki işlem uygulayabiliyoruz.
# 1. Sonuna küçük harf ekleyebiliyoruz
# 2. En sondan bir karakter silebiliyoruz.
# Bu işlemi boş stringe uygulayınca boş bir string veriyor.
# Bize bir k sayısı integer olarak veriliyor, iki de string, s ve t.
... | [
"50028976+zeydustaoglu@users.noreply.github.com"
] | 50028976+zeydustaoglu@users.noreply.github.com |
c6d3019ac05982a4660827f65e5cba66b0dac00d | 6cde1148cc1ba6c1d704f64603a292440c73caac | /uploadfile_demo/front/views.py | 2cb5c2e4bbd24e48b82784ab12be2a6cde0bcde3 | [] | no_license | huanshenyi/django_text | 09f33be02f0f9da33320af9b82e947d4ebed86ee | 536e2eb329faf57edfb30f2299f4ba64592e6b78 | refs/heads/master | 2020-04-24T14:44:10.707414 | 2019-03-15T06:08:57 | 2019-03-15T06:08:57 | 172,033,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from django.shortcuts import render
from django.views.generic import View
from django.http import HttpResponse
from .models import Article
from .forms import ArticleForm
"""from方法"""
class IndexView(View):
def get(self, request):
return render(request, 'index.html')
def post(self, request... | [
"noreply@github.com"
] | noreply@github.com |
019819dd7bb1f8b0a2f2d4d7a7f3182ebe5a831e | 7effd8ab6b78e9492f88203a8260689d045b7ee3 | /userbase/migrations/0007_auto_20191217_0030.py | f516d21e3d35ea6b9ecb91c0002c2bcb96ce98d9 | [] | no_license | atRobert/EzMoney | b0c04717e0c0ca6289341ba3fdacf14b6248d747 | 5d85096579bf791082a5feaf84d116fcdc966a6d | refs/heads/master | 2022-12-23T19:23:07.104103 | 2019-12-27T10:17:15 | 2019-12-27T10:17:15 | 230,349,214 | 0 | 0 | null | 2022-12-08T01:50:38 | 2019-12-27T01:06:57 | Python | UTF-8 | Python | false | false | 689 | py | # Generated by Django 2.2.5 on 2019-12-17 08:30
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('userbase', '0006_auto_20191216_2341'),
]
operations = [
migrations.AddFi... | [
"noreply@github.com"
] | noreply@github.com |
1dbecf109308e5c666f2f1ddf9db1014bd895919 | 428bd139f8f51992a9e1382c54caccb1c6a0cf90 | /mysqldb .py | 8e02d457b639f2a33eeb8cfd0336b12fe481b19f | [] | no_license | EasonHe/mysqlbackup | b773185dcb11ff768b9a2e3aaef1f41bbc3bbc95 | 595d3b692f00a427a3998edbac4ca5255c1691f9 | refs/heads/master | 2021-01-21T06:46:41.692728 | 2017-10-27T05:34:38 | 2017-10-27T05:34:38 | 83,280,481 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import os
import datetime
import time
import logging
import re
from shutil import copy2
user = 'root'
passwd='123456'
host='127.0.0.1'
path='/data/backup/'
tm=time.strftime( path +"/%Y-%m-%d.%H",time.localtime(time.time()))
logpath = '/data/mydata/'
def get_dbname():
cmd = "mysql -u" +user +' ' +"-h" +host +' '+"-... | [
"noreply@github.com"
] | noreply@github.com |
8c6a6c0b733bbdee80fb15a882a8ffc8e61d0f9b | 1014136dc5a8fce4b1a17765930ee058085bf943 | /jobs/migrations/0001_initial.py | e56180181c57c744269d0af958610dda327c2f64 | [] | no_license | xjtuwj/hire-demo | 732382f07e8a23515303fca7ecd22922f315b871 | c733213c6602de5a2f7ebe9e989c3192ddcbad20 | refs/heads/master | 2023-01-13T22:18:20.029360 | 2020-11-16T13:20:00 | 2020-11-16T13:20:00 | 313,308,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | # Generated by Django 3.1.1 on 2020-10-19 14:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"2473494870@qq.com"
] | 2473494870@qq.com |
86a5ee843327dded5b47c503b3349ce80300d1e5 | 7f2e43b9327545781a09c8acc94e80c1ece4fc17 | /web_app/application.py | 4414bf827d2fb2bc552f25ad338ab383099b1706 | [] | no_license | macaodha/geo_prior | 336bc34aece9dd609919d83564f84bc6adb0932d | b0c761712a0aeced56eba86dd19eda657fbe895a | refs/heads/master | 2023-07-30T04:11:08.971867 | 2022-04-11T18:23:15 | 2022-04-11T18:23:15 | 202,809,348 | 23 | 8 | null | 2023-07-22T13:46:52 | 2019-08-16T22:58:33 | Python | UTF-8 | Python | false | false | 4,254 | py | from __future__ import print_function
from flask import Flask, render_template, request, make_response, jsonify
from io import BytesIO
import base64
from PIL import Image
import numpy as np
import json
import torch
import config
import sys
sys.path.append('../')
import geo_prior.grid_predictor as grid
imp... | [
"macaodha@gmail.com"
] | macaodha@gmail.com |
3d10116efc8b712d664f8ab06348e03b4fbdd0bb | 7acc83bfd833846f9246b47b7dc97bb7b780b3e6 | /manage.py | 9474e9413bf22b2645fb27ea6a9d9fb5d2503ba0 | [] | no_license | pll513/Outsource_1 | 2602b28b4d525af978eccda3729b86ebbb528e74 | 20a0c439d678238a89df634fc326ed10bfb3a83d | refs/heads/master | 2020-03-18T20:58:39.024994 | 2018-05-29T06:23:22 | 2018-05-29T06:23:22 | 135,250,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #! /usr/bin/env python3
import os
import app
import flask_script
app = app.create_app('default')
manager = flask_script.Manager(app)
def make_shell_context():
return dict(app=app, db=app.db)
manager.add_command("shell", flask_script.Shell(make_context=make_shell_context))
if __name__ == '__main__':
manag... | [
"paf32@qq.com"
] | paf32@qq.com |
06bbd98dbee5690b6588d3c7839bfa81580f468a | 2235298f718d8fe1b6de38fc4b4e31dc85442b27 | /CharacterSelection.py | 0e151e1d056cf42b366face620bb837da1b34076 | [] | no_license | qminh3g/NMCNTT-1 | 428c6476b4ccd3b2e32692f9374408a6a12f2441 | 22600dbd19ce973e44bb5123e94bc07649889737 | refs/heads/main | 2023-01-25T02:30:08.027470 | 2020-12-08T04:18:09 | 2020-12-08T04:18:09 | 316,904,099 | 0 | 0 | null | 2020-12-08T04:18:10 | 2020-11-29T08:08:04 | Python | UTF-8 | Python | false | false | 1,034 | py | from ImageAssets import *
from StartRacing import *
# Write code to get player name from here
playerName = 'Noobmaster69'
def TraceCharacterSelection(x, y):
for i in range(6):
CharList[i].speed(0)
CharList[i].hideturtle()
CharList[i].penup()
CharList[i].shape(avatarsCh... | [
"noreply@github.com"
] | noreply@github.com |
0a67f3ec6d29543c7ac96382b84ac6eb04f15c82 | 26d34b969a073cf490e5879af719f94c9cb8eb99 | /im2txt_attend/ops/image_embedding_test.py | 295f42c548513bf785da020b09131ccd1bb1c7f3 | [
"MIT"
] | permissive | brandontrabucco/im2txt_attend | dd526a27c60a460a959903a29ef8906a40da79f7 | 18305e14cd60c2e990bb9335968d91fa7857c2dc | refs/heads/master | 2020-03-21T13:56:55.882355 | 2018-06-25T18:25:31 | 2018-06-25T18:25:31 | 137,283,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,557 | py | # Copyright 2016 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... | [
"trabucco@br018.pvt.bridges.psc.edu"
] | trabucco@br018.pvt.bridges.psc.edu |
8bc8e564f83521bfbdbfa7acd4722bc16fdd09b3 | feb642a2141e5f52495e05ee186eb58032267f88 | /Python/Basics/Day2/For Loop/for_loop_example5.py | a6efeb9ff2593c29734ec819886ca54d3ee8d6f3 | [] | no_license | arpitpardesi/Advance-Analytics | 51a065122725ef8f77bd61b974528f080acd9662 | 121a1211a0e6a2f065323c1b93c9d4ec510e1663 | refs/heads/master | 2022-12-23T20:11:59.689926 | 2020-09-27T13:53:19 | 2020-09-27T13:53:19 | 283,406,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
Write a python program which take an input number from user, say n=3
Then, generate two lists a and b.
where, a holds the squares of integers 0 to n-1; i.e if n is equal to
3, then a =[0, 1, 4].
And list b holds the cubes of integers 0 to n-1, so if n is equal to
3, then the list b = [0, 1, 8].
"""
a=[]
b=[]
n = ... | [
"arpit.pardesi6@gmail.com"
] | arpit.pardesi6@gmail.com |
ee5701690adab5c060d318ddf788e0bad0a28373 | e859cae07ce14001ffb64a56e9b5d6713e91a0dc | /Build/Linux/SConstruct | 3aa260a5fd99af18239ad50e02310656a17947fc | [
"MIT"
] | permissive | louishp/radeon_compute_profiler | f25a92067420e45da88217f3d7338c1e747f4529 | daa40a72d73175b7e94c0a8fcf91c20ac55edec3 | refs/heads/master | 2022-10-28T21:42:03.517195 | 2019-10-11T18:17:02 | 2019-10-11T18:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | #
# CodeXL SConstruct Template
#
import os
from CXL_init import *
###################################################
# Initialize CXL command line variables
#
# Note: DO NOT MODIFY THIS SECTION. Please see CXL_init.
#
CXL_vars = Variables(None)
# Initial CXL_vars scons construction variables
initCXLVars(CXL_vars)... | [
"christopher.hesik@amd.com"
] | christopher.hesik@amd.com | |
db250e02f55d9de447b572705b0b25888309a3e2 | 669aa5b4e90e2942e5dfe671ab1b0df42c1d1f84 | /.vscode/kvad2.py | 0d54839f32782b3609c28a1350e2550d650d14d4 | [] | no_license | POTATIIS/prog1-ovn | 7a7fd03bc784113dd2b13bef819d0c24abd44da7 | c8960682fc6224010dbbdc859f093e99f359c8b7 | refs/heads/master | 2022-12-20T11:47:25.017734 | 2020-10-12T11:35:59 | 2020-10-12T11:35:59 | 291,701,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | svar = input ('skriv ett tal: ')
x = float(svar)
y = x * x
print (f'talet i kvadrat är{y:400.2f} ')
i = 19
print(f'resultat:{i}')
j = 107
print(f'resultat:{j:5}') | [
"alexander.martinsson@elev.ga.ntig.se"
] | alexander.martinsson@elev.ga.ntig.se |
856bb58fa3a04845c0db86879d891f4d3b06777e | 4857fc1590d9f1ef8ce5f652912762a729cdd24b | /StinoStarter.py | 92f4c07e4482e3079cc817fd187f4ea86cfa0560 | [
"MIT"
] | permissive | remcoder/Stino | 2e54884c60bf0f29ce3427fca9e26be4b28734e0 | 728ad367383ea2136e32863c54d91e214e8ef19b | refs/heads/master | 2021-01-18T04:43:24.743162 | 2013-09-15T09:40:06 | 2013-09-15T09:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,887 | py | #-*- coding: utf-8 -*-
# StinoStarter.py
import os
import sublime
import sublime_plugin
st_version = int(sublime.version())
if st_version < 3000:
import app
else:
from . import app
class SketchListener(sublime_plugin.EventListener):
def on_activated(self, view):
pre_active_sketch = app.constant.global_settings.... | [
"robot.will.me@gmail.com"
] | robot.will.me@gmail.com |
c074e3ff763766ee48d75b58f2afad18f6e77e2f | ec22c3c1bc19890779abfab8895f145b30b733e0 | /backoffice/admin.py | 73c1ca9f1b40c3e3d839fa008270d2193794553b | [] | no_license | csurbier/DjangoAdminEbook | 31708145e7100d301aa4fa04de1866c9db19d928 | f1ae0a6704c63612bd14f50925b5f1f07dd45411 | refs/heads/main | 2023-02-02T14:08:54.524279 | 2020-12-15T13:56:00 | 2020-12-15T13:56:00 | 321,682,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,234 | py | import csv
import json
from datetime import datetime, timedelta
from django.contrib import admin
from django.contrib.auth.models import User, Group
from django.core.exceptions import ValidationError
from django.core.serializers.json import DjangoJSONEncoder
from django.db.models import Count
from django.db.models.func... | [
"csurbier@idevotion.fr"
] | csurbier@idevotion.fr |
ecfea9cd7da02bde8788112740ae7a2c1adbfd3e | 5245756672f66b71fb865fbefa44547dd8425805 | /UserRoutes.py | 58d5c9a529db46e023b72afd858748dbc20a8f03 | [] | no_license | tsulim/App-Development | dc264e1605969303ddf2d95e8c4bab8abc6fa02e | 9e0614065a0f43f3e06ee1f3342ec83eb25af509 | refs/heads/master | 2023-03-16T05:42:04.717254 | 2021-02-22T09:46:08 | 2021-02-22T09:46:08 | 326,149,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | from flask import render_template, request, redirect, url_for, flash
from Application import app, db, bcrypt
from UserForms import RegistrationForm, LoginForm, UpdateAccountForm, DeleteUserForm
from models import User
from flask_login import login_user, current_user, logout_user
import shelve
@app.route("/register", m... | [
"limxiujia18@gmail.com"
] | limxiujia18@gmail.com |
18887f3e51de4de36d83a68188e0ae3525d515b4 | fe164274229f4c41ca806d5486be9f70c92b739a | /Copy_file_3.py | 8f840db746d562dbcf4c0455942b86f4b9b5f6bf | [] | no_license | Aleksandr-Git/Copy | f98beb575b7c97460259d9e86611ce08b754a53b | 6996dd0257d592f9781fdf77b305c91f053a9b5a | refs/heads/master | 2020-04-05T15:39:27.689147 | 2019-04-29T18:35:10 | 2019-04-29T18:35:10 | 156,977,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import os
import shutil
import time
path = '.\\pap_2'
path_work = ''
path_origin = ''
path_copy = ''
size = os.path.getsize(path)
#files = os.listdir(path)
total_size = 0
def fun(path): # определяет размер папки
global total_size
for i in os.listdir(path):
if os.path.isdir(path + '\\' + i):
... | [
"gavryukov@mail.ru"
] | gavryukov@mail.ru |
a6716530fefa417ee61dac0ca29cbc6eae271006 | 02722d19d04cd3a84cd392e90de8485d032cef5b | /CastBoxOffice/casts_historical_box_office.py | 663ee3f82b1b86e103e928b4d34d35fdb99f0576 | [] | no_license | brightgems/drama-data-cralwer | 50944995ad22c263078cdcf6aa762b9ba3c90653 | 51b2494b89e0e89145cd05f8797e42e847742254 | refs/heads/master | 2020-07-20T09:08:22.439197 | 2017-06-14T14:35:29 | 2017-06-14T14:35:29 | 94,339,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'chenshini'
import json
import re
import xlrd
import xlutils
import datetime
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def skip_genre_condition(genre):
# if '动画' in genre:
# return True
# return False
return False
def build_... | [
"brightgems@live.cn"
] | brightgems@live.cn |
9c0b5755bd03830f93fded39f854b1e51d9fe91e | 50015e72ea35113ad40e13cb36c85116b0048aa9 | /shop_paypal/modifiers.py | 12daf8625068c27aa5c5550745293b3cf29d2b51 | [
"MIT"
] | permissive | haricot/djangoshop-paypal | 30085baf75d7712aa1b4c39eba7256d9b0f39ef5 | f1c381b4a64201029dcfe60af6e0243dc43fe50c | refs/heads/master | 2020-12-20T12:18:17.495255 | 2020-01-10T22:29:43 | 2020-01-10T22:29:43 | 236,073,186 | 0 | 1 | MIT | 2020-01-24T19:54:41 | 2020-01-24T19:54:40 | null | UTF-8 | Python | false | false | 1,240 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from shop.payment.modifiers import PaymentModifier as PaymentModifierBase
from .payment import PayPalPayment
class PaymentModifier(PaymentModifierBase):
"""
Cart modifier which handles paym... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.