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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
862e50035f6c13d3f48ac50c598fab378f1734e0 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/timing_point_in_journey_pattern.py | 22366d74aaa3b679bdbaf7bc59fc9c56bf9ca822 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 373 | py | from dataclasses import dataclass
from .timing_point_in_journey_pattern_versioned_child_structure import TimingPointInJourneyPatternVersionedChildStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class TimingPointInJourneyPattern(TimingPointInJourneyPatternVersionedChildStructure):
class Meta:... | [
"chris@komposta.net"
] | chris@komposta.net |
361a8d703d58e5d5b4ae1506112a83ba1c8afc20 | 936d8c83b5e3b09e44d43a4604146352a34e7b8d | /erl_graph_slam/scripts/graph_init.py | 0834f91cb0493bf60475a9488d7fa8f06a3ee596 | [] | no_license | schaosun/icp_gtsam_localization | 47ae32072bfbbc0ee0ff2af35adca9a03bd4c8e6 | d661b1c9e1ab2dcdeb10de650121370e6ea0c3b1 | refs/heads/master | 2022-02-19T05:36:59.169305 | 2019-09-05T09:25:09 | 2019-09-05T09:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | #!/usr/bin/env python
import rospy
import gtsam
import numpy as np
import tf
import tf_conversions
import tf_conversions.posemath as pm
#import ros_numpy
import time
import matplotlib.pyplot as plt
import gtsam.utils.plot as gtsam_plot
from std_msgs.msg import String
from geometry_msgs.msg import PoseStamped
from geom... | [
"k3083518729@gmail.com"
] | k3083518729@gmail.com |
96c8526684ca86b844940b8056e292285b3ac3f4 | e93df498a771ae49bae78357110a825925755630 | /app_coordinate.py | f20327a0d0820bbfad8d7e4fd45d03a73b76f20d | [] | no_license | Eldary89/tkinter_projects | 0f5e6e5ebcf9742be33db640e5a11214e6d7d66b | 5228ba13fbb243cd78a19f429bb99d595fab41a9 | refs/heads/master | 2020-06-13T12:29:19.479911 | 2019-07-01T10:51:05 | 2019-07-01T10:51:05 | 194,654,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | from tkinter import *
import time
import math
window = Tk()
window.geometry("800x600")
window.title("Coordinate app")
cnv = Canvas(window)
cnv.pack(fill = BOTH, expand = 1)
x = 0
y = 0
x1 = 45
y1 = 295
w = 10
x11 = 50
y11 = 300
def start_move(event):
x = 0
while x < 700:
x = x + 10
y = 50... | [
"eldaryerzhanov@MacBook-Air-Eldar.local"
] | eldaryerzhanov@MacBook-Air-Eldar.local |
9ad3aea611b2b6628eb6231f9f4f64f2e7b941af | 9e1cb9c21d1273aaac669fde6771eb3a09ca1dfe | /ex39.py | 2426d2ec1f9da421d5ddb744b6569d1605eb3be7 | [] | no_license | mstrisoline/learn-python-the-hard-way | 767d0039273e5db263e7e57de7b948e36380c285 | 8565801fbc2e1bcd4f63721a26e2924835d4dca8 | refs/heads/master | 2021-01-22T04:56:59.409970 | 2015-06-08T08:04:46 | 2015-06-08T08:04:46 | 31,516,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | #!/usr/bin/env python
states = {
'Oregon' : 'OR',
'Florida' : 'FL',
'California' : 'CA',
'New York' : 'NY',
'Michigan' : 'MI'
}
cities = {
'CA': 'San Francisco',
'MI': 'Detroit',
'FL': 'Jacksonfille'
}
cities['NY'] = 'New York'
cities['OR'] = 'Portland'
print '-' * 10
print "Michigan... | [
"mstrisoline@gmail.com"
] | mstrisoline@gmail.com |
86eeeaf47616532d22760c7b8e5d04a96552c55e | 5165f0fb3e4a0b1d644c6418afc36b1148afa95b | /Yelp.py | 6f4c242dcda3ae5d5a682c5f8eed74cfe56ceb0a | [] | no_license | GaurangPohankar/Python-Yelp-Extracting-Information | aea79a64924422e0f05b2ab7471bc15010260a7a | 448b408ae435cc66fa534b2c5789e6250117ee4b | refs/heads/master | 2020-06-26T22:44:14.256788 | 2019-07-31T04:22:00 | 2019-07-31T04:22:00 | 199,777,179 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,458 | py | import xlrd
import time
from selenium import webdriver
from bs4 import BeautifulSoup
import time
import re
import csv
from urllib.parse import urlparse
#NA.xlsx
#name = input("Please Enter the File Name:")
name = "NA.xlsx"
#search_offset = input("Please Enter Search Offset:")
search_offset = 3
#time_... | [
"noreply@github.com"
] | noreply@github.com |
c6b396092219dbb3aa75c0fc253a0fd6c1526274 | eba21072cfa38d40cad9a0d474152fec38634e8c | /common/utils/converters.py | b71f9f0ca47f55ceed41807130529fc02c9d937a | [] | no_license | tsangyu98/toutiao-backend | 72e248f5a05409030a7372124986dd3509b05bbe | d40f3fb7162203c8fa26de0fd8ce5f6bc7e09358 | refs/heads/master | 2020-12-01T18:04:57.322610 | 2020-01-01T09:03:03 | 2020-01-01T09:03:03 | 230,720,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from flask import Flask
from werkzeug.routing import BaseConverter
class MobileConverter(BaseConverter):
"""手机号格式"""
regex = r'1[3-9]\d{9}'
def register_converters(app: Flask):
"""
向Flask app中添加转换器
:param app: Flask app对象
"""
app.url_map.converters['mob'] = MobileConverter
| [
"tsangyu1998@163.com"
] | tsangyu1998@163.com |
56a75bf388d5b5f6e32d7db375b7062d83391c56 | dc80d2a62bffbbf4d56597c8694dc9dd22272a88 | /R-CNN/PASCAL VOC 2012 R-CNN/CNN on PASCAL VOC 2012.py | c7d484a06d0ab94f12173ca8a2e565740c5c8611 | [] | no_license | kjh107704/R-CNN | 2033139800ee033bda9fecbb49cdb8bb6116b58c | cf8b788d1e0bc89b195d030a5d741ab1c61fc235 | refs/heads/master | 2022-12-11T23:33:19.295510 | 2020-09-01T11:02:56 | 2020-09-01T11:02:56 | 280,364,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,867 | py | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
from __future__ import print_function, division
import json
import numpy as np
import cv2
from matplotlib import pyplot as plt
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
... | [
"kjh107704@gmail.com"
] | kjh107704@gmail.com |
7c2c9ad23db8fbdbeefe3cbc24eb480527247583 | 31834e4bd55b757e31e6ad156e6dabf1a4a9a756 | /appenv/bin/flask | 1ca433b60fb872542b14ff00a3e8dfee5e858b1e | [] | no_license | myselfdesai/gmi_be | 3837a0fd3a9399151d41683a3c8bd0ed4c68d3b4 | c4c1fd010298b6ab751733e588d40bc7bf022f23 | refs/heads/master | 2022-10-27T18:27:43.964805 | 2019-10-23T02:43:50 | 2019-10-23T02:43:50 | 216,340,321 | 0 | 1 | null | 2022-10-25T01:08:43 | 2019-10-20T09:56:37 | Python | UTF-8 | Python | false | false | 244 | #!/Users/ninetyninejellies/gmi_be/appenv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"amardesai.bgm@gmail.com"
] | amardesai.bgm@gmail.com | |
f9f95524d3084208d727e61b5bf3d1d367431d11 | 07aa996c437c265ed036103491609d03c3382196 | /Backend/info/admin.py | 02d78aaeb8d6eb47efa273af38d9b4efd794271e | [] | no_license | vikas812yadav/Smart-Medical-Report-Digitization-OCR | b88dbd0b073c4bb8249e8dd2af3131a3b3410596 | 4a33183ef83e8b0ba732149bf0981d71b817bf96 | refs/heads/master | 2020-12-18T12:58:27.426253 | 2020-01-21T16:49:19 | 2020-01-21T16:49:19 | 235,391,516 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import *
# Register your models here.
class CustomerDataAdmin(admin.ModelAdmin):
list_display = ["ident","houseNumber","streetName","area","city","state","country","isCustomer","modified","created"]
s... | [
"yadavvy2000@gmail.com"
] | yadavvy2000@gmail.com |
403077a3f5c1a8f7358fce3a244bcca92fdbae7f | c9facd57e51eb0fc44dac462c7fdda3df3ce248d | /Image_P/task12.py | d08577960bad3b84a3eb9d12ab421bf9d4c6fda7 | [] | no_license | asad-shuvo/PythonWork | 0bdf0189af5c46767299b58057436315501e2ec5 | 64d187399a4c9a1f605a3c5fe4837c9d97d876aa | refs/heads/master | 2020-08-26T17:59:20.304892 | 2019-10-23T16:35:56 | 2019-10-23T16:35:56 | 217,096,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('watch.jpg')
n = int(input('Enter mask size: '))
x = 331
cv2.imshow('Original Image',cv2.resize(img,(256,256)))
gauss = cv2.GaussianBlur(img,(n,n),0)
for i in range(9):
plt.subplot(x),plt.imshow(gauss),plt.title('%dx%d Gaussian ... | [
"asad.shuvo.cse@gmail.com"
] | asad.shuvo.cse@gmail.com |
5f7d3b174e463bba868cbf3615002a82f700e4a7 | cafefb0b182567e5cabe22c44578bb712385e9f5 | /lib/gcloud/search/index.py | c9014b24817e8f19ade1e9fdffd86991f1fc12d3 | [
"BSD-3-Clause"
] | permissive | gtaylor/evennia-game-index | fe0088e97087c0aaa0c319084e28b2c992c2c00b | b47f27f4dff2a0c32991cee605d95911946ca9a5 | refs/heads/master | 2022-11-25T20:28:23.707056 | 2022-11-07T17:47:25 | 2022-11-07T17:47:25 | 55,206,601 | 2 | 2 | BSD-3-Clause | 2018-04-19T05:41:12 | 2016-04-01T05:40:15 | Python | UTF-8 | Python | false | false | 10,736 | py | # Copyright 2015 Google Inc. 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 a... | [
"snagglepants@gmail.com"
] | snagglepants@gmail.com |
f2d44c0bf08a702919db678a48719ca02181d71d | 0b02a9434261c64898994c63bd9cea67de9b9100 | /quantt/CompressSentenceData/datasetgenerator.py | cc5d5ce1543246c28b726054bc0a98e1277ff2eb | [] | no_license | laiviet/ml-ptit-2018 | 68f9713a72b601fe6e423c6e27eef4cd91cb7148 | 6dfab342afc723b9f326b1364391c639aaaf01c9 | refs/heads/master | 2020-03-22T21:18:50.119851 | 2018-09-03T08:44:11 | 2018-09-03T08:44:11 | 140,676,332 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | from json import JSONDecoder, JSONDecodeError
import re
# data link files train, valid, test
# https://drive.google.com/open?id=1EyQiaYDvvuVxTA9NhpCl8x78aOhJhAGy
file=open('compression-data.json','r').read()
def decode_stacked(document, pos=0, decoder=JSONDecoder()):
NOT_WHITESPACE = re.compile(r'[^\s]')
whi... | [
"31161193+TrinhTienQuan@users.noreply.github.com"
] | 31161193+TrinhTienQuan@users.noreply.github.com |
1e92256d3bcb10db51c8a404f7624c3b4a7c78ea | bb08495b1940f83090845c53a365fff770c1973b | /tests/__init__.py | b8d8997fa2af56cfee67201a6175b2b9eb2a8edc | [] | no_license | ralmn/compilation | 837e64d7cef8438bc587a3ef07cc7cadd0ac1525 | 282cb6f672d9338cae9f8da8c5cba6077d43ae54 | refs/heads/master | 2021-03-19T17:23:32.281797 | 2018-01-14T15:11:37 | 2018-01-14T15:11:37 | 102,586,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import unittest
import test_lexical
import test_table_symbol
import test_syntax
import tests_run
if __name__ == '__main__':
suite = unittest.TestSuite()
result = unittest.TestResult()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(test_lexical.TestTokenizer))
suite.addTests(unittest.TestLo... | [
"contact.ralmn@gmail.com"
] | contact.ralmn@gmail.com |
f80b4da837baf5e2c640077656f79fc3160e98b6 | 62a4ab66de73bd8b99ceeee6da967bff5ea7536d | /plugins/null.py | 88555d279a9c65d8cd445eb1d7a608c7100571e5 | [
"Apache-2.0"
] | permissive | bnl-sdcc/pilot-wrapper-plugins | 65a5bd3caa631b8bc2ff5c22dfffd880b3060e46 | a15e65b9e855dff0405f78335df6e541a5fd4660 | refs/heads/master | 2020-08-01T05:36:24.253021 | 2017-11-03T20:02:56 | 2017-11-03T20:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/usr/bin/env python
from base import Base
class null(Base):
'''
this class does not do anything at all.
It is just for testing purposes, in case we need
to test the wrappers but not interested in
running any actual payload.
'''
def execute(self):
... | [
"jcaballero@bnl.gov"
] | jcaballero@bnl.gov |
9b414064169de2bca63be6af4632cc493db19af2 | dbf48b7566739dad12a1534a776539bed071e3f4 | /unit01_10.py | 76fe237a2ee4cf0f6fe6a9d032230a5ac1f63877 | [] | no_license | Ray900801/IMLP | 926211a59e5a30f608e65d82e7c362230fef66b3 | 1cb8414cccea32169e6264d590fc3bfc261fe132 | refs/heads/main | 2023-07-14T06:39:22.969596 | 2021-08-29T14:23:25 | 2021-08-29T14:23:25 | 390,704,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | fin_E = open('english_list.csv',"r",encoding='UTF-8')
fin_M = open('math_list.csv',"r",encoding='UTF-8')
lisE=[]
lisM=[]
name=[]
for line in fin_E.readlines():
line = line.strip().split(",")
lisE.append(line[1])
name.append(line[0])
for line in fin_M.readlines():
line = line.strip().spli... | [
"noreply@github.com"
] | noreply@github.com |
85494069c90cea24b207aeed91289900a7a6eaaf | 0e85fb4fc739dd5db6ff0427697b3b498de56ccb | /chatboot/main.py | d89f80d6d089a14c7136b2f24bc689291f86cb87 | [] | no_license | felipeDevJunior/roboWhatssapWeb | c9d3b1fcc88c9001292d2d43f6041d107afb2589 | 593a58813f42a2f0fe365abed9ad2c5580250129 | refs/heads/master | 2022-08-23T07:38:23.709758 | 2020-05-18T13:26:54 | 2020-05-18T13:26:54 | 264,943,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,101 | py | from whatssapWeb import WhatssapWeb
from Dialogo import Dialogo
from cardapio import Cardapio
from Pedido import Pedido
import PalavrasChaves
import time
opcao1 = Cardapio("X-salada", 7.50)
opcao2 = Cardapio("X-bacon", 10.00)
opcao3 = Cardapio("X-mortadela", 15.00)
arrayPedidos = []
whats = WhatssapWeb()
dir = Dialog... | [
"felipe.ma@dgt-consultoria.com.br"
] | felipe.ma@dgt-consultoria.com.br |
2600ae63925448ced497283cd025918eceef3b18 | 81221fd4c09d828fac08229b3640398a39bd0b5b | /c0923/p0602.py | cb72dd108a4760175c5a410dcd87b7e33136c627 | [] | no_license | Jill-rong/practice-python | e60148294f59e256b70d531669ad86dcb0c92320 | c8f44a3d3d8f5c2b87e36e171cc042d16350908a | refs/heads/master | 2020-08-01T17:38:16.664386 | 2019-09-26T10:33:44 | 2019-09-26T10:33:44 | 211,063,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | a = input('請輸入:')
print(a[0])
print(a[len(a)-1]) | [
"you@example.com"
] | you@example.com |
e6fc8841f2d8fa74972336054ddd2bc54ca4c7ad | 79c017a574576554c83a40c934cafa8064fc7e99 | /seq2seq/predict.py | 0f33286ec23d7920a04ebdd7cdf0c06f9c7dd514 | [] | no_license | EugeneBilenko/lstm_chatter_box_example | 239c4e36d120cb2ec286e79ac2db02f8d0afed41 | 14a9df9ae58ce8fe39abc3faf217e694d75b58f9 | refs/heads/master | 2020-03-27T05:17:12.388867 | 2018-08-24T15:28:16 | 2018-08-24T15:28:16 | 146,008,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | import tensorflow as tf
import numpy as np
from core.chatter_box_lstm import clean_text, loadStuff
from core.seq_to_seq import batch_size
from config import pickle_store
"""
- question:
who are they
- neurojerk:
i am an information gatherer i do not know prague i know that i would to as a fan
- question:
What is i... | [
"eugen.bilenko@gmail.com"
] | eugen.bilenko@gmail.com |
d333d10cdcc3a357c3e7d6afa5ca30524f0dede3 | 2af23374ff49da3fae7a9923a876b2836cd23489 | /thesis_lib/ds_utils/ds_map_functions.py | 24c002817a2d8eea1f71f63e58de851b9aa43468 | [] | no_license | SteveGdvs/asr_thesis | f01e7f51bf27b4a623b33f88d1abbb3fadb57c43 | 64ee8908b636113342595af8b774e15774ca5275 | refs/heads/master | 2023-04-25T11:00:47.739314 | 2021-05-17T16:42:29 | 2021-05-17T16:42:29 | 344,612,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,262 | py | import tensorflow as tf
import tensorflow_io as tfio
from .helpers import file_to_waveform
def _str_to_sequence(label, vocab_to_num, character_level):
if character_level:
label_seq = vocab_to_num(tf.strings.unicode_split(label, input_encoding="UTF-8"))
else:
label_seq = vocab_to_num(tf.strings.split(label))
r... | [
"stgountouvas@gmail.com"
] | stgountouvas@gmail.com |
9c4db0a5365c2b3b391d35897548dc2a0895127d | 820a3678c1db59d5d6f383b5c4369b8dfbe12484 | /generative/aegan/architecture/latent.py | 60ab4aad85aac32f42c7350bca95f4b9c60ffc5a | [] | no_license | samedii/generative | eb77510a7973acb6d6c4d1fdd2c021a4ea8575b2 | bc2b0bcde2a30dbc456df2a40013aad044836aa4 | refs/heads/master | 2023-02-22T11:35:04.492375 | 2021-01-25T01:52:39 | 2021-01-25T01:52:39 | 328,793,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import numpy as np
import torch
import torch.nn.functional as F
from lantern import FunctionalBase, Tensor
class LatentBatch(FunctionalBase):
encoding: Tensor
@staticmethod
def generated(batch_size, scale=1.0):
return LatentBatch(
encoding=torch.randn((batch_size, 1 * 4 * 4)) * scale,... | [
"samedii@gmail.com"
] | samedii@gmail.com |
12ddfaaaf45febcff17bcbf05533320f7f68284c | ee8bb7934198150d84d99b985bee6f92db3f7781 | /venv/Scripts/pip3.7-script.py | 7f6ee85612f7133441f13c57ded1edf8036dfb47 | [] | no_license | ErikRulle/biosim_g14_Erik_Haavard | 72915c66161b237af149a20eda298254603e778c | d3f35b25f6e55aa3dc13023e245f22a0e7f04ce7 | refs/heads/master | 2020-12-05T11:34:00.167834 | 2020-01-22T10:05:12 | 2020-01-22T10:05:12 | 232,095,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!C:\Users\erikr\OneDrive\Documents\INF200\INF200-2020-Biosim\biosim_template\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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'... | [
"erikrull@nmbu.no"
] | erikrull@nmbu.no |
5b891f3d735e0b91211908f1f7706d84e34478f9 | 88906fbe13de27413a51da917ebe46b473bec1b9 | /Part-I/Chapter 6 - Dictionaries/favourite_languages.py | 6c94cb510f855c612346614864fa12fd8c159746 | [] | no_license | lonewolfcub/Python-Crash-Course | 0b127e40f5029d84ad036263fd9153f6c88c2420 | 322388dfb81f3335eeffabcdfb8f9c5a1db737a4 | refs/heads/master | 2021-01-01T16:45:50.617189 | 2017-10-27T14:23:58 | 2017-10-27T14:23:58 | 97,911,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # A dictionary of similar objects
favourite_languages = {
'jen': 'python',
'sarah': 'c',
'edward': 'ruby',
'phil': 'python',
}
print("Sarah's favourite language is " +
favourite_languages['sarah'].title() + ".") | [
"lonewolfcub020@gmail.com"
] | lonewolfcub020@gmail.com |
2308fad2814b489f253f4b87ca63706bb82054c9 | dfbd3e12a7a7ed28c13715b2fa0c964d0745c8cb | /python/day04/solve.py | a0ee63dd7b81c99836e716257b0c5ef859f13a1f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ijanos/advent2017 | 3a90c479bf4f1689264576fb2c4468883458b911 | db7ba6c3f2abbe206e47f25480c24d2bade709bb | refs/heads/master | 2021-08-31T23:20:35.637440 | 2017-12-23T12:09:55 | 2017-12-23T12:09:55 | 112,766,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #!/usr/bin/env python3
import fileinput
p1 = 0
p2 = 0
for line in fileinput.input():
line = line.strip().split()
if len(set(line)) == len(line):
p1 += 1
line = [''.join(sorted(word)) for word in line]
if len(set(line)) == len(line):
p2 += 1
print(f"Part 1: {p1}")
print(f"Part 2: {p2... | [
"ijanos@gmail.com"
] | ijanos@gmail.com |
4ad0c492e7b178c5333e81abb09b114dddeec02d | 1ce0c1a821e64c052c16a73f6ddcae4e3f4683f8 | /home/urls.py | 749f8e536ff6eaa62f51a7d233f0bea67237adc9 | [] | no_license | arcrowe/DandDandMM | 31a14e4fe599a27000011229ccf26f363510d5f5 | 694afe3829fc6bfe29dc155021f565c063dd584b | refs/heads/master | 2023-03-01T11:55:50.023579 | 2021-02-17T14:29:27 | 2021-02-17T14:29:27 | 335,760,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home')
]
| [
"alisa_crowe@hotmail.com"
] | alisa_crowe@hotmail.com |
008d7158b3d8b9681e736421df2d3bcf6320a00c | cd7687c20482c6a8452815707a78a3797304ae43 | /PolicyGradient/pg-pony.py | 97435bd8a5d0139175d4ec505d5e24f0e4e82a86 | [] | no_license | beddingearly/Start_TF_Violently | a8b3a3fc91611a45f227c4b2302d1d32a1e01bbc | b8eb81067d0b86edc6aa491a57d91f9d28e3845a | refs/heads/master | 2020-03-28T07:15:29.492890 | 2019-01-10T08:01:32 | 2019-01-10T08:01:32 | 147,890,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | #coding=utf-8
'''
@Time : 2018/10/29 16:26
@Author : Zt.Wang
@Email : 137602260@qq.com
@File : pg-pony.py
@Software: PyCharm
'''
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hi... | [
"wangzitongnowb@163.com"
] | wangzitongnowb@163.com |
ec6ae4ad63f7d0400266a1a4a453ef378cc43a63 | 4e53c4f391a116f706d1db97f631a8f71157d7d6 | /random_test_files/age.py | 2c56f53ba21792ae3008556fab7e66f4a52b3c67 | [] | no_license | jarthurj/Django | 844baa23c74f1c058fa8436b9805b7f2a6660c1a | cdefbd69c795cf6d0865ab72928ff3b9e11103e1 | refs/heads/main | 2023-01-30T23:56:58.181061 | 2020-12-13T02:21:37 | 2020-12-13T02:21:37 | 320,133,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from datetime import date
def age_verification(birthday):
today = date.today()
year_diff = today.year - birthday.year
if year_diff < 13:
print("less than 13 years")
return False
else:
month_diff = today.month - birthday.month
if month_diff < 0:
print("turning 13 this year")
return False
else:
... | [
"jaoldaker1@gmail.com"
] | jaoldaker1@gmail.com |
e8a3dd9939e0e6e98cd0888999d4308d567a7e49 | 7dc54dfcc590960599bb5c5f774e866047762fe1 | /image_segmentation.py | 9b4b1424fd4149242bf79efa32ef71624f124ce7 | [] | no_license | nirajsrinivas/GRM_Image_Segmentation | c736560237ee2e4c0277df3796b72eef8220de35 | f5d316936835802e73bb37f58d036cd7cb148b40 | refs/heads/master | 2022-04-09T14:46:39.384882 | 2020-03-16T22:48:54 | 2020-03-16T22:48:54 | 245,830,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,244 | py | from __future__ import division
import cv2
import numpy as np
import os
import sys
import argparse, time
from math import exp, pow
from augmentingPath import augmentingPath
from PRBeta import MaxFlow as pushRelabelBeta
from Dinics import MaxFlowDinic
from tqdm import tqdm
graphCutAlgo = {"ap": augmenting... | [
"noreply@github.com"
] | noreply@github.com |
c5d497dd4316c0fe243a54ebad8c059166645b3b | fdc741fff27a5246e97f52e4c0ab7227c86b8811 | /web.py | d02e59b05e06f4455061eaeeed54928cf77b737c | [] | no_license | RLarin17/sample_app | fe0156318256025c17029b6f5f6ad51d4a1668ff | 9740618c117231d8feafe1437f257904904a122d | refs/heads/master | 2021-01-10T23:53:11.989696 | 2016-10-05T21:20:37 | 2016-10-05T21:20:37 | 70,093,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from flask import Flask, render_template, request
from googlefinance import getQuotes
app = Flask(__name__)
def get_stock_price(ticker):
quotes = getQuotes(ticker)
price = quotes[0]['LastTradePrice']
return "The price of {} is {}".format(ticker,price)
@app.route('/')
def index(): #this needs to be right under t... | [
"RLarin17@gsb.columbia.edu"
] | RLarin17@gsb.columbia.edu |
9896a8d751a0cc983347cfab70f1606a7af16e7d | fa2fdfcf180507344be8de71da75af2fe72101b2 | /train_and_run_experiments_bc.py | 771396e09f5607ebe7f7628cd776c4f2b3cc08e2 | [] | no_license | sarahwie/AttentionExplanation | 48b49c1769324fe40015b8a96f862753f559e329 | 919fe5c710be5d1721ef1803cd46c731e1953088 | refs/heads/master | 2020-05-16T12:46:31.184833 | 2019-04-23T16:39:04 | 2019-04-23T16:39:04 | 183,055,153 | 1 | 0 | null | 2019-04-23T16:31:19 | 2019-04-23T16:31:19 | null | UTF-8 | Python | false | false | 1,163 | py | import argparse
parser = argparse.ArgumentParser(description='Run experiments on a dataset')
parser.add_argument('--dataset', type=str, required=True)
parser.add_argument("--data_dir", type=str, required=True)
parser.add_argument("--output_dir", type=str)
parser.add_argument('--encoder', type=str, choices=['cnn', 'lstm... | [
"successar@gmail.com"
] | successar@gmail.com |
2c9a24c7ab1729d439be5b49026e306115992b2d | ef00534b08b91cc6deb98b0e6046170fb1f37499 | /Alert/Email/zabbix-alert-smtp.sh | c69dca63497b7a4f59268b8a455a9f9c8787bd2d | [] | no_license | chicken2019/zabbix-monitor | 375f4925e37986a66fc0d2b76ad31c93015383c8 | 4f4f034e632740ae7dad2f93eb2fa58befafc680 | refs/heads/master | 2020-05-22T21:11:52.842922 | 2019-03-27T08:16:34 | 2019-03-27T08:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | sh | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Zabbix SMTP Alert script for gmail.
"""
import sys
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header
from email.Utils import formatdate
# Mail Account
MAIL_ACCOUNT = 'your.account@gmail.com'
MAIL_PASSWORD = 'your mail passwor... | [
"niemdinhtrong@gmail.com"
] | niemdinhtrong@gmail.com |
230fc20f37e4a1149ba1ce31e9e797a04cf0df4d | fe5ee434f0f4cc4743d723fc47540a73c4f5339d | /cal.py | 5f12628a1d21e20c7fda984147fa188206e514f4 | [] | no_license | mero-jung/python_lecture | d31ab71531bc6b81ce513f1ade59d92e2162bfbc | 519717c299ac6923aff8bc86c56cead3156c05a5 | refs/heads/master | 2021-08-28T08:17:36.516095 | 2017-12-11T17:16:14 | 2017-12-11T17:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | import calendar
calendar.prmonth(2017, 9) | [
"wxg1297@naver.com"
] | wxg1297@naver.com |
826972294e6a434d16ec6b57db5baf36e50f6c3f | 13617cd87821cab9a4f0b1fb0a8355dfd145a43a | /CSW/csw_post_request.py | cba597d4d043f355c9dc3c7b105137a414bf190f | [
"GFDL-1.1-only",
"MIT"
] | permissive | petercunning/notebook | a84acf2ba22c053cf2dfd912387ab66dfe1668c7 | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | refs/heads/master | 2021-01-15T03:54:00.227967 | 2020-02-25T00:02:23 | 2020-02-25T00:02:23 | 242,869,782 | 0 | 0 | MIT | 2020-02-24T23:56:41 | 2020-02-24T23:56:40 | null | UTF-8 | Python | false | false | 13,391 | py |
# coding: utf-8
# # Try some "RAW" requests to pycsw
# In[1]:
import requests, json
# In[2]:
headers = {'Content-Type': 'application/xml'}
# ### Try apiso:serviceType query
# In[3]:
input = '''
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:x... | [
"rsignell@usgs.gov"
] | rsignell@usgs.gov |
7a590c6e8315cb69371467b86d48223f6adeb73e | fae07cf5da0c4e2f53fe0a5d87cb4a4d10fde15f | /agxpy_basics-master/samples/RigidBodySample.py | 708af70c076b9d8239e9f31bd4922879901e9207 | [
"MIT"
] | permissive | Towed-ROV/digital-twin | 9a4d6e64cdda4d2b6ee6b6e8431cbb86b6ca94e2 | c9743d7dc61ce3f83a4616b7439a8459afb15502 | refs/heads/main | 2023-04-30T22:47:34.177751 | 2021-05-14T21:02:18 | 2021-05-14T21:02:18 | 344,493,228 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py |
import agx
import agxCollide
init = agx.AutoInit()
shape = agxCollide.Sphere(0.5)
geometry = agxCollide.Geometry(shape)
geometry.setEnableCollisions(False) # Geometry will not collide with other objects
body = agx.RigidBody(geometry)
body.setMotionControl(agx.RigidBody.DYNAMICS) # Default value
| [
"36644463+jorgenringda@users.noreply.github.com"
] | 36644463+jorgenringda@users.noreply.github.com |
2ca58914081b89507b7e4b2db63b231eb16c13dc | 5a113e0758da14ccf3e7f4b6b0eb3abddd4adf39 | /tests/test_models/test_user.py | abb3c1ef9d5527f2de5cbc1764f4e25d0ee323bd | [] | no_license | Esteban1891/AirBnB_clone | 22a64c45d1e0c997c842ae907ea216ab662639fd | 5860cf7ae43afe6e2fee96be60fcfb0b67d1d2fc | refs/heads/master | 2022-11-30T06:41:54.718592 | 2020-08-13T22:58:50 | 2020-08-13T22:58:50 | 275,320,501 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #!/usr/bin/python3
"""Module for test User class"""
import unittest
import json
import pep8
import datetime
from models.user import User
from models.base_model import BaseModel
class TestUser(unittest.TestCase):
"""Test User class implementation"""
def test_doc_module(self):
"""Module documentation""... | [
"esteban.delahoz15@gmail.com"
] | esteban.delahoz15@gmail.com |
77aabb11a6515ad3dcd6365c8c974ee6c24da686 | 2dfaebed07b42a4ccd1a4c68120e2a30df6ac66c | /ds/queue/queue_dll.py | 1407b5770600ebb0b39e8b56c89dc76d772e61be | [] | no_license | agrawal-pulkit/geeks-problems | 957c8ad3e862d8b6ce7c13be3431241c9d10c50e | a2b6ec74ee012d4b2e2baf147ec2ae81ce4d6c30 | refs/heads/master | 2020-04-02T11:25:35.181629 | 2018-10-23T19:46:59 | 2018-10-23T19:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | class Empty(Exception):
pass
class _DoublyLinkedBase:
class _Node:
__slots__ = '_element', '_prev', '_next'
def __init__(self, element, prev, next):
self._element = element
self._prev = prev
self._next = next
def __init__(self):
self._header =... | [
"pulkit.agrawal@tandf.co.uk"
] | pulkit.agrawal@tandf.co.uk |
9da13dba016a2eeafe3a3c523fe9de9b72a60221 | 6298ff0f597ec09633696622c42321dd6bbaab6d | /shevchenko_mike/homework/01/task1_game_21 — Level1.py.py | 0283fcb67a39eb71ab493b857e6c3495cf1a626d | [] | no_license | Neckmus/itea_python_basics_3 | 94db7ea756cbb164b8705445b1ab027bb5ff4d93 | 9d76fc3d081fa407805e98d12f7f9960c8976366 | refs/heads/master | 2022-05-28T08:28:00.415625 | 2020-04-22T11:03:25 | 2020-04-22T11:03:25 | 254,841,391 | 0 | 0 | null | 2020-04-11T10:14:57 | 2020-04-11T10:14:57 | null | UTF-8 | Python | false | false | 1,735 | py | from random import randint
#number = random.randint (2,11)
print("Let start to play game 21 points")
count_Players_1 = 0
P = 'Players_1'
count_Bot = 0
B = 'Bot'
Card_1 = randint(2,11)
Card_2 = randint(2,11)
Card_3 = randint(2,11)
Card_sum_Players_1 = Card_1 + Card_2
print('Players_1 ')
print('So, you have points... | [
"mike.shevchenko2020@gmail.com"
] | mike.shevchenko2020@gmail.com |
7dcf87f5545e90b7d456c7aecd0cdab2d733c4fa | 78fcd8c872cd5f6909876d7febe1000fd1b2922c | /test/test_DataContainer.py | 221afce1fad537367c57cbe0443bb10dc6d4d723 | [
"BSD-3-Clause"
] | permissive | lanl/SEPIA | f6e1ab0c9f57fd7cf3bebe00e3a60a305a82e070 | 90ca3e87dbc76de7a1238797a4963e214ac8dde0 | refs/heads/master | 2023-04-19T05:33:41.845829 | 2022-06-16T20:47:34 | 2022-06-16T20:47:34 | 267,692,609 | 28 | 6 | NOASSERTION | 2021-09-03T19:32:46 | 2020-05-28T20:43:51 | Python | UTF-8 | Python | false | false | 3,384 | py | import unittest
import numpy as np
from sepia.DataContainer import DataContainer
class DataContainerTestCase(unittest.TestCase):
"""
DataContainer mostly exists to check dimensions are conformal and that the correct inputs are given.
"""
def setUp(self):
self.n = 10
# Scalar output, on... | [
"neklein@lanl.gov"
] | neklein@lanl.gov |
21922a99ad639c61627562fe098fa13350d8bffa | dc54a813f0e5d3b1ea44b38e10f8e5f8ef4764d4 | /sciwing/api/api.py | 22b7a61170cfdaa45f4dcf65700bbe3d6c5ec570 | [
"MIT"
] | permissive | dragomirradev/sciwing | fc0a33b25d19ea0e11170e4930442eb0f8d05da4 | b3f4e6831b2dadf20e3336821ca8d50db1248ee7 | refs/heads/master | 2022-04-18T14:03:31.275169 | 2020-04-13T04:48:44 | 2020-04-13T04:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import sciwing.api.conf as config
from fastapi import FastAPI
from sciwing.api.routers import parscit
from sciwing.api.routers import citation_intent_clf
app = FastAPI()
@app.get("/")
def root():
return {"message": "Welcome To SciWING API"}
# add the routers to the main app
app.include_router(parscit.router)
a... | [
"abhinav@comp.nus.edu.sg"
] | abhinav@comp.nus.edu.sg |
5f4cc92aa840dcca7c11c10d62732fd2e2476fcc | 8542a446d46bfd667698afe8207ab9f24beafb8c | /homework1.py | c082dc377f043a05c5e4c6a92495c0373562a4f4 | [] | no_license | 00010480/homework | 4f9ba25d27ebdbc970a0690e63452ac7cfd77645 | 8f69bf2e5125c5e74a8cb27439523d0c04772b21 | refs/heads/main | 2023-01-04T14:14:37.446492 | 2020-10-13T18:31:49 | 2020-10-13T18:31:49 | 303,795,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | def example1(name, isStudent=True):
print("Hello", name, "nice to meet you!")
def example2():
example1('Student')
example1(10480)
example1(True, True)
# So when we declare like global variable we can get value from anywhere in your script file
id = 10480
def example3():
prin... | [
"noreply@github.com"
] | noreply@github.com |
62b26642323114930e4f186a502e27af8c5b207d | d8db27f04ba50631aae6dcdc2916d1c03983cb6e | /sample_app/urls.py | 5377d3165ce06bdeec97fe966277d310ea93240e | [] | no_license | adarsh2104/djnago-rest-quick-start | 9cadfd241094581658e30b8d6cedc9693e23c8bf | 63fa31fab77de3f4e8979e0d83e3209bc67c526c | refs/heads/main | 2023-07-17T20:14:59.098459 | 2021-08-05T19:44:24 | 2021-08-05T19:44:24 | 391,404,501 | 0 | 0 | null | 2021-07-31T16:37:46 | 2021-07-31T16:12:16 | null | UTF-8 | Python | false | false | 300 | py | from django.urls import path,include
from .views import function_view,ClassView,show_new_data_form
urlpatterns = [
path('function/<str:id>', function_view, name='function_view'),
path('class',ClassView.as_view(),name='class_views'),
path('new',show_new_data_form,name='show_new_data_form')
]
| [
"adarsh.2104@gmail.com"
] | adarsh.2104@gmail.com |
b2e460a9d9de520b845d05370218279875c2e09e | b76fa48d4931cbf926a2660ad7fb84c9b70f7e40 | /venv/bin/pip | 16348f15aa2d5ef6d948db31ed37151446b21c4f | [] | no_license | pydjango-dev/flask | e94ac2550f2d3df5c02348c31440e396f714747c | d2492c49a06587b377fa61eab26ae73e4ac96e4d | refs/heads/master | 2022-04-12T11:35:43.737423 | 2020-04-07T11:18:32 | 2020-04-07T11:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | #!/Users/macair/PycharmProjects/Blog/venv/bin/python
# 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])
sys.e... | [
"mbrsagor@gmail.com"
] | mbrsagor@gmail.com | |
8cb2f2277cc5ea14736ac6d639a54c46c36916f6 | d51a9449a8e92e298cc1164380c6122c719ee80d | /examples/example-groupcall.py | f7a16921367adb0ad8a0fe52988a53358537a296 | [
"MIT"
] | permissive | cyberfonica/plivohelper | 14e52b5256fcccb8041f98683aa1e9fa26034906 | 8e0288f8b908262a3e26ae7c83d1e587962cb881 | refs/heads/master | 2021-01-17T17:26:06.246572 | 2019-10-14T16:07:56 | 2019-10-14T16:07:56 | 66,296,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | #!/usr/bin/env python
import plivohelper
# URL of the Plivo REST service
REST_API_URL = 'http://127.0.0.1:8088'
API_VERSION = 'v0.1'
# Sid and AuthToken
SID = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
AUTH_TOKEN = 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'
# Define Channel Variable - http://wiki.freeswitch.org/wiki/Channel_Vari... | [
"dortega@cyberfonica.com"
] | dortega@cyberfonica.com |
051003ddbbd931a6739cad35f09979734ace6342 | f5ffd566166948c4202eb1e66bef44cf55a70033 | /openapi_client/model/single_taxonomy.py | 218f06214ff6263cea99e00dd25b9ad43a1967fd | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,666 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
1cff3f3f0a3735895b7b13a5a9cfffbe43591a22 | 9c0f26c54cd36139758993fc8310345596373e15 | /pyatmos/utils/atmosphere.py | f979e70516960e0a2066208ec2d7de606e4af22a | [
"BSD-3-Clause"
] | permissive | 214929177/pyatmos | e02f5e2fe040e8a1738c833586b23a62d9657a0b | 433a5055077e211dc3f34c2a2b65bee24b8e8e4b | refs/heads/master | 2022-04-20T20:02:59.594669 | 2020-04-15T17:21:19 | 2020-04-15T17:21:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,674 | py | """
Contains the following atmospheric functions:
- density = atm_density(alt, mach)
- mach = atm_mach(alt, velocity)
- velocity = atm_velocity(alt, mach)
- pressure = atm_pressure(alt)
- temperature = atm_temperature(alt)
- sos = atm_speed_of_sound(alt)
- mu = atm_dynamic_viscosity_mu(alt)
- nu = atm_kinemati... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
9d110fbcb12c9f90b00998d9551a69ce4a763ec7 | fd67592b2338105e0cd0b3503552d188b814ad95 | /test/test_models/test_catalog.py | b7209c829133250b36b1bc84e473cacaa134d2c9 | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,014 | py | # coding: utf-8
"""
APIv3 (New)
# Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
111cee6588e0153589c7eec420d9e575149aff01 | 275566f88ca771017bba02df05fcfd53435da9e3 | /bin/django-admin.py | d20413f03527dda80830febe31316493d1843a46 | [
"MIT"
] | permissive | egoid/baytree | 0228e66e08f4436bd9d8978992548ac8d27b25df | 121d1217b092183c6ad83981ed634c7a21ec84f1 | refs/heads/master | 2021-01-20T12:12:24.832661 | 2016-12-16T19:59:39 | 2016-12-16T19:59:39 | 76,681,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | #!/home/ubuntu/baytree/baytree/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"ubuntu@ip-172-31-46-137.us-west-2.compute.internal"
] | ubuntu@ip-172-31-46-137.us-west-2.compute.internal |
2ddf6fcb245aa885a7556e4346f3be2e3b1bbafa | 5dc09eda115491e29dd1990e043d9cfa0585e4a8 | /djangles_site/djangles_site/wsgi.py | 0e53f61fa4ef5dad35a316f695bfcb2508b4d59e | [] | no_license | bashhack/Django-Fundamentals | 5ebbcfb3897ac9fa4cae948a4fc4096abd1abafb | fb7e1e8c82040aaf0afbb1af179ec4f3ae3238f8 | refs/heads/master | 2016-09-14T00:43:33.456502 | 2016-04-17T23:07:06 | 2016-04-17T23:07:06 | 56,381,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for djangles_site project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"marclaughton@gmail.com"
] | marclaughton@gmail.com |
3d1552b69155822a5fabf14b469ad8507e90b505 | 5e994cb124845738e3eb7255566ec5c1931a184e | /core/migrations/0016_alter_record_diet.py | 88e91dfb0de5fcd24e6c9435e1734c8f4c162963 | [] | no_license | StoneScorpion/DjangoFrontend | 50b0574a953e3568ef0c3a524f167bd6eeb466d4 | efbfe58848be07257ab259c19d6ca1e40c171ba7 | refs/heads/master | 2023-08-12T22:33:19.632360 | 2021-10-07T15:35:24 | 2021-10-07T15:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 3.2.7 on 2021-09-28 21:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0015_alter_record_diet'),
]
operations = [
migrations.AlterField(
model_name='record',
... | [
"xxfranci5coxx@live.com.mx"
] | xxfranci5coxx@live.com.mx |
da2db0a6d1935e5fd45ba13f2ae2e27b96afb0b0 | 090324db0c04d8c30ad6688547cfea47858bf3af | /soko/perception/policy.py | bb1cb833033df50bbc170434ebf153d81461f29b | [] | no_license | fidlej/sokobot | b82c4c36d73e224d0d0e1635021ca04485da589e | d3d04753a5043e6a22dafd132fa633d8bc66b9ea | refs/heads/master | 2021-01-21T13:14:29.523501 | 2011-06-12T07:34:14 | 2011-06-12T07:34:14 | 32,650,745 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py |
import logging
from soko.solver.solver import Solver
from soko.perception import perceiving, saving
from libctw import factored, modeling
class PerceptSolver(Solver):
"""A sokoban solver.
It converts the seen states to a sequence of bits.
It then predicts the next action to take.
It is used to show... | [
"ivo@danihelka.net"
] | ivo@danihelka.net |
0973cbeaf808ff0dddf01c9e4079ff44c8e06ed6 | 987a6cba46fe3995c519da43e04988e008fd4859 | /setup.py | 2b11536d6e76025daf0597d215219ff24a65fc18 | [] | no_license | bklappauf/playground | a469dcabae4d21bf4cc4dc862d022172fea9dd9a | 0b387d15c0bdccd70b7a068d650623c6c8a39881 | refs/heads/master | 2021-01-13T02:07:06.452330 | 2014-01-02T20:18:41 | 2014-01-02T20:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from setuptools import setup, find_packages
setup(
name = "twdb_playground",
version = "0.1",
packages = ['twdb_playground'], #find_packages(),
description = 'My package',
author = 'Bruce Klappauf',
author_email = 'bklappauf@enthought.com',
)
| [
"bklappauf@BruceMBP.local"
] | bklappauf@BruceMBP.local |
63e7cf0fe0babe782559f9e43a61c5667820db07 | 8353fc1f1272c5f0231bcc10c3761e982e39e7df | /belajar_di_sekolah_koding/basic/game_sederhana.py | 526c6ccbd4f63fef19884050cfde61da50e7cd1d | [] | no_license | ardinur03/belajar_python | d38ebb06b551de6e3eac5f409fd4663c5c2b4a70 | 57b1c2c50c436f5a86687a032c058783bb069231 | refs/heads/master | 2022-11-19T05:14:07.712220 | 2020-06-12T09:01:51 | 2020-06-12T09:01:51 | 255,218,646 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # serang menyerang
player1 = {'nama':'Lesley', 'damage': 1000}
player2 = {'nama':'Bruno', 'damage': 1000}
def farming(player):
player['damage'] += 200
def by1(serang, defender):
if (serang['damage'] > defender['damage']):
print('Serangan berhasil!!! selamat untuk : ', serang['nama'])
elif (serang[... | [
"ardinurinsan03@gmail.com"
] | ardinurinsan03@gmail.com |
a997fc6b6dd4d6a34622d6418ce8a542e3f6440e | b2fc177dc3ec04e9f2a7b745b8c6cf885e01ee83 | /lab8/lab8/shop/shop/urls.py | 99aed5e5c971837297701b8b7c03969a6bdbc460 | [] | no_license | Nurdaulet08/WebDev | 1be154f1174ffb3ecae5e76e7b2765588319a6e8 | aa13c9f4e88e654df472d5a302a5faff939cee08 | refs/heads/main | 2023-04-06T03:11:29.905226 | 2021-04-15T13:54:10 | 2021-04-15T13:54:10 | 337,661,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('api.urls')),
]
| [
"noreply@github.com"
] | noreply@github.com |
389b9021c475ea3857651547e6c717c938037e61 | ba12b15cf6d3eb74a3271849d4532599bc436322 | /Game/sign_up.py | 3ee60f6d30c9c6904f0511172229bb39c6464d08 | [] | no_license | fergussmyth/GCSE-Project | bfa9ec9c72399832185f53a73b447ba483370858 | 2ee9143461b96de14162a690f46ecdcf121ff917 | refs/heads/main | 2023-06-09T19:23:19.651743 | 2023-06-03T01:03:22 | 2023-06-03T01:03:22 | 344,527,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py |
def sign_up():
global name
global password
previous_user = input("Are you a previous user? [Y/N]").upper()
if previous_user == "Y":
login()
name = input('Enter your name:')
password = input('Enter your password')
combine = (name,password)
add_info = open("users.txt", "a+")... | [
"fergussmyth05@gmail.com"
] | fergussmyth05@gmail.com |
11499b7f20adb5aa87cb9bf1e7fead8743c0fb96 | 3a12220dae925dc8d90cf98cac67e144e2fc9f61 | /greeting.py | 8be61ffdf85ed6c66958ab8ccb675f3dd61a8220 | [] | no_license | BarshaDstudent/Mypython-project | 8bac789c1959717c1f3d48991acd987db1ebce4e | 708bfe0770c90feaa251a68e64fcd67c3e58e8b4 | refs/heads/main | 2023-06-25T09:01:46.105813 | 2021-07-15T06:58:28 | 2021-07-15T06:58:28 | 386,195,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def greetingATbeginning():
print("***Welcome to the application***")
return greetingATbeginning
def greetingATEnd():
print("Thanks for using this application")
return greetingATEnd
| [
"noreply@github.com"
] | noreply@github.com |
f0e942099342dd70ac1c42bbb9004b8544efe8b7 | 27bbceb66bf54e65c8a5de87069485222f986702 | /bio-lab-app-1/items/urls.py | 13cf165601a619828b5477885ac31bab6c8a2307 | [] | no_license | aatolomia/Bio-Lab-Application | 94eeeafd3a0b06a8c04c40275fc3335dfe2cf3f1 | 00437878f0c775cbdc2ae011478a6cc19df1eb2b | refs/heads/master | 2020-04-25T20:46:03.418276 | 2019-05-23T18:03:05 | 2019-05-23T18:03:05 | 173,059,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from django.urls import path, include
from . import views
from django.conf.urls import url
urlpatterns = [
url(r'^items$', views.items, name="items"),
url(r'^categories$', views.categories, name="categories"),
url(r'^delete_item/(\d+)/$', views.delete_item, name="delete_item"),
url(r'^approve/(\d+... | [
"noreply@github.com"
] | noreply@github.com |
fc30fa971db4bb7ac7096f5f033ef1f7502f3163 | 704bd00ff2a29493eeb6d540e3631c4de7020aa6 | /chap5_fantasy_game_inventory.py | 624c53e4294154b4861f198022ebb45dca72c19e | [] | no_license | sz-ashik440/atbsp | 84dc00ce1f2faf1cf51c881347d087cb797c5755 | 548a3e8c6f95d9b77b81bc40fa886307bcd8c4c7 | refs/heads/master | 2021-01-19T06:46:03.717102 | 2016-08-14T17:52:37 | 2016-08-14T17:52:37 | 62,323,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | stuff = {'rope': 1, 'tourch': 6, 'gold coin': 42, 'dagger': 1, 'arrow':12}
def displayInventory(inventory):
print('Inventory')
totalItem = 0
for k,v in inventory.items():
print(str(v)+' '+k)
totalItem+=v
print('Total Number of items: '+ str(totalItem))
displayInventory(stuff)
| [
"szashik440@gmail.com"
] | szashik440@gmail.com |
b2192129c1bf5e2df3ed5fee141a2932e0af8440 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit335.py | 99346e8c0d944fc6842431c4a000ef35f61d00ed | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,145 | py | # qubit number=3
# total number=66
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
160f3fd4a7d4581121d69328d427a8134b4f0b2e | 028c84f73267e4abc90afa41c6b32b2ee5a79887 | /TheFoodEater.py | a8d726d55305766b67bb44a11b6057502c45cccc | [] | no_license | KeyGenWay/pygame | e4ed3c9621416169a862d00aa5341e554c378c3e | 965177214d6734c235ac72332e78a0854a830e7f | refs/heads/master | 2023-05-24T16:31:24.146143 | 2023-05-17T18:44:47 | 2023-05-17T18:44:47 | 235,183,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,283 | py | import pygame
import random
import keyboard
import math
font_name = pygame.font.match_font('arial')
WIDTH = 1024
HEIGHT = 760
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
INITIAL_SIZE_NUMBER = 3
SIZE_MODIFICATOR = 10
INITIAL_SIZE = INITIAL_SIZE... | [
"keygenmen@gmail.com"
] | keygenmen@gmail.com |
921f018e434298114994053620ea702b4aa29a7c | 51a40c5973721cbac260127f6a41075a8eee9e3b | /src/dosimetria/serializers/contract.py | 2725f107a9e2080f6b933b290d82de8ec6468158 | [] | no_license | AliansRem/backend-alians-crm | 143a95abe3c31af7ffc379fa704de21af8a525a9 | 223537764d9f63443f35391ffb9d7bc2fd7d454c | refs/heads/master | 2023-03-19T14:32:41.827015 | 2021-03-22T12:30:02 | 2021-03-22T12:30:02 | 347,030,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from rest_framework import serializers
from dosimetria.models import Contract
class ContractViewSerializer(serializers.ModelSerializer):
client = serializers.StringRelatedField()
class Meta:
model = Contract
fields = '__all__'
class ContractSerializer(serializers.ModelSerializer):
clas... | [
"grigorenkodavid@gmail.com"
] | grigorenkodavid@gmail.com |
7a5a8fca01d341d27da2979bc01cbb37dc037fa3 | 410716ff9e53d46e62d9401e5672d908703b5bda | /kms.py | 65f459b4afd4abd6212dc708e83528e7e48fb94c | [] | no_license | vad2der/aws-developer-associate | a9d78f77c820805edb779e58a1225895b23c2712 | a6855268391cb363adb9fe99f1cf06f6fca3ff8f | refs/heads/master | 2020-09-19T16:37:11.715960 | 2020-03-09T15:22:53 | 2020-03-09T15:22:53 | 224,245,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | # prerequisites:
# have python3, pip (sudo apt-get install python3-pip), setuptools (python3 -m install setuptools)
#
# 1. install boto3
#
# for python3:
# python3 -m pip install boto3
import boto3
import os
# VARS
# read access key from env vars
access_key = os.environ['AWS_ACCESS_KEY']
# read access key from env... | [
"vad.deryabin@gmail.com"
] | vad.deryabin@gmail.com |
5da9e788a3db46e978e8273bd81283efdec746fe | b6b04c3bc6afe61e3c3128f552417091c451ba69 | /flink-ml-python/pyflink/examples/ml/feature/elementwiseproduct_example.py | 2dd8ffff654fb21c9023ca110ebb26cfa02623ee | [
"Apache-2.0"
] | permissive | apache/flink-ml | d15365e1b89b82eb451b99af0050d66dff279f0c | 5619c3b8591b220e78a0a792c1f940e06149c8f0 | refs/heads/master | 2023-08-31T04:08:10.287875 | 2023-08-24T06:40:12 | 2023-08-24T06:40:12 | 351,617,021 | 288 | 85 | Apache-2.0 | 2023-09-07T08:03:42 | 2021-03-26T00:42:03 | Java | UTF-8 | Python | false | false | 2,548 | py | ################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this... | [
"noreply@github.com"
] | noreply@github.com |
16b07e21e8283e1063585452f1a6d7180badde31 | b7bb2a74e183259f5fc09eb47baf85ae7a3790a1 | /Websites_parsed/hindustan_times.py | 2a8f1887d7b4200761c0da66fec1dbc6c007e558 | [] | no_license | tuxlimr/beautifulsoup_parsing | 10971cc1edc15602807f6d6ec3448be481ed92c6 | 66980ce6c620f909b32e3a3938c8c3ab0cd341be | refs/heads/master | 2020-06-29T06:20:51.316709 | 2019-08-04T07:19:17 | 2019-08-04T07:19:17 | 200,461,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | ##data parsing for Hindustan times
#Centre Headline
from bs4 import BeautifulSoup as soup
from urllib.request import Request, urlopen
req = Request('https://www.hindustantimes.com/', headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
page_soup = soup(webpage, "html.parser")
containers = page_soup.fin... | [
"itsecty.ajay@gmail.com"
] | itsecty.ajay@gmail.com |
95dcb275b4a638f2ba8f0094654be362d6d3ae3f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py | 095ca8346512b61fba41d3997f22f02f7c9433ae | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiCateringPosDishcateTransferModel(object):
def __init__(self):
self._cate_id = None
self._cook_id = None
self._dish_ids = None
self._shop_id = None
@prop... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1a2a4c87aa68a99aff5292a775e12eb1bbb8a1de | 9e06099975a9ed25758af8bc99924b1603ab738f | /medium/p79_word_search.py | 3a95ccad5ce4bc8265227245c28d8ce1c86098d6 | [] | no_license | Yohan923/leetcode_python | 803a76f04c9cd3ce35d2ea1b0ce101a76d5718a2 | b2043827840e4fb380901406537f80adb1a1d190 | refs/heads/master | 2020-03-30T20:16:48.656432 | 2019-09-25T13:11:14 | 2019-09-25T13:11:14 | 151,581,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | """
Share
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally
or vertically neighboring. The same letter cell may not be used more than once.
Example:
board =
[
['A','B','C','E'],
[... | [
"johnz0923@gmail.com"
] | johnz0923@gmail.com |
3f9f7da69d787df630c2443cc363efb936b90b62 | 575892faefd65946293191aad885aa73d03978db | /filter2.py | b9a7412584e7bd057e1ecddba05a3ba5fb058cbd | [] | no_license | JoseGuzmanZamora/ComputerVisionBasics | a5f225dcc59f00f0f62ecd56c09295eb5e02b748 | 33e3c4579ee372eac2b84571e0bcb4be8735b9e0 | refs/heads/master | 2020-11-24T02:28:00.251654 | 2019-12-13T22:22:35 | 2019-12-13T22:22:35 | 227,926,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | import cv2 as cv
import numpy as np
import time
cap = cv.VideoCapture(0)
divisiones = 800
offset = 5
comienzo = True
while(True):
ret, frame = cap.read()
'''img = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
alto = img.shape[0]
largo = img.shape[1]
copia = img.copy()
division = int(largo / div... | [
"35410063+JoseGuzmanZamora@users.noreply.github.com"
] | 35410063+JoseGuzmanZamora@users.noreply.github.com |
75f7278194a9195bc7423d26c1cab9ce1d07c3a7 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /11_动态规划/dp优化/kitamasa法.py | 38f9a2c16abdaad119175126f6cd40ebaaf09584 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | # 常系数线性递推
# https://tjkendev.github.io/procon-library/python/series/kitamasa.html
# !O(k^2logn) 求线性递推式的第n项 (比矩阵快速幂快一个k)
# 線形漸化式 dp[i+k] = c0*dp[i] + c1*dp[i+1] + ... + ci+k-1*dp[i+k-1] (i>=0) の第n項を求める
# C: 系数 c0,c1,...,ci+k-1
# A: dp[0]-dp[k-1] 初始值
# n: 第n项
from typing import List
MOD = int(1e9 + 7)
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
42f89f949b1d952ff7a39e2b92955b2ee6d2e7ee | 2987124e4fc79943021596adf0b605d3b9ce5a3b | /models/05_irs.py | 4b0071b13acb48a7ff3ebcb47d54d0998693bda2 | [
"MIT"
] | permissive | abhishekarora9/eden | 4ff1fe022264fee5f972295b3d7d6662b6df3515 | be6c3e22eefd61bfd4cc54af392aed2404184e37 | refs/heads/master | 2021-05-26T20:09:33.936000 | 2011-12-27T23:23:16 | 2011-12-27T23:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,717 | py | # -*- coding: utf-8 -*-
""" Incident Reporting System - Model
@author: Sahana Taiwan Team
@author: Fran Boon
"""
if deployment_settings.has_module("irs"):
# Staff as component of Incident Reports
if deployment_settings.has_module("vehicle"):
link_table = "irs_ireport_vehicle_human_resource"
... | [
"fran@aidiq.com"
] | fran@aidiq.com |
307d7db79493210adf18a3116db90a72fbcf7642 | 1279908d488776ef1450492f0995e1bd48c99767 | /.history/app_20210728170028.py | 56fb63ebb031b38348b9cdfc6656f0a9ec0a72ab | [] | no_license | tritchlin/sqlalchemy-challenge | 249ed221daab1e148209904aa1544a924ce6a344 | 5d9288b516a1ab68bd6af16c98ca5c1170d3b927 | refs/heads/main | 2023-06-25T23:27:10.175847 | 2021-07-29T06:35:04 | 2021-07-29T06:35:04 | 388,950,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | from flask import Flask, jsonify
from flask_sqlalchemy import SQLAlchemy
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
# import climate_flask_data.py as querydata
app = Flask(__name__)
app.config['Hawaii']='sqlite:///haw... | [
"annylin@gmail.com"
] | annylin@gmail.com |
32e09174565a44e786fa360e7af4bf2209769ac7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2722/60618/263228.py | b160da742780d937979025c0c44bdfcdabe7989e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | t=int(input())
for i in t:
n=input()
if n%5==0:
print("YES")
else:
print("NO") | [
"1069583789@qq.com"
] | 1069583789@qq.com |
11ccff4f1e7dbede6ae5a5a25c7bca5bda7049a4 | 7366ce3ba86cb6af2e9ee0923d4a74d028f08c72 | /2d/hydraulicStructures/sharp_crested_weir/deprecated/sharp_crested_weir_AV_V1/Profile_Comparison_Proteus.py | 8b596593606af1b3dab93c78af0d07001f4ebe60 | [
"MIT"
] | permissive | erdc/air-water-vv | 56b939280d8d9fb81dc13b79a9de5a489e21e350 | f93ff99432703292b1d62c3e9689537eae44e864 | refs/heads/master | 2022-08-21T23:11:16.912042 | 2022-08-11T16:44:47 | 2022-08-11T16:44:47 | 21,613,939 | 5 | 21 | MIT | 2020-11-04T19:00:46 | 2014-07-08T13:36:39 | Python | UTF-8 | Python | false | false | 5,573 | py | ##!/usr/bin/env python
## -*- coding: cp1252 -*-
from pylab import *
import pylab as p
import numpy
#from scipy.interpolate import interp1d
from scipy import interpolate
Str_1 = loadtxt('SharpWeir.txt')
x = Str_1[:,0]
y = Str_1[:,1]
NumCases=1
CaseCode = ['18_R4_INF2']#, '18_R5_INF1']
NumCol=15
NumProfiles=[6]#,8]... | [
"e.zve@hrwallingford.com"
] | e.zve@hrwallingford.com |
edd6bf2447beead3230f1f7f9d263c177d14eba0 | ba7068e009c7e634dd3ea8ec2d716d4a6fd80140 | /src/product/admin.py | 50422b253098b0d2ec709506047e8606a7bda51b | [] | no_license | bald--man/test-sk | 5cd142020cf75db8d8a675d4a43665d29ed192f9 | dd61d2b2f4f40ed72b76aec345613131e3613efc | refs/heads/master | 2021-01-23T00:20:56.335464 | 2017-03-21T15:02:10 | 2017-03-21T15:02:10 | 85,714,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.contrib import admin
# Register your models here.
from .models import Product
class ProductModelAdmin(admin.ModelAdmin):
list_display = ["name", "price", "slug", "created_at", "modified_at", "description"]
search_fields = ["name", "description"]
class Meta:
model = Product
# Registe... | [
"olipovoi@gmail.com"
] | olipovoi@gmail.com |
72a707e5403146d3992caf4ca8024a74c9c7b266 | 66e215766aa7c848f1a5e04af1e214349d313a06 | /config.py | aad20a8d317d0474eb769423122c14701396911a | [] | no_license | gaonmaor/NlpProject | 1d32b5cfec1dee85f315a2dbf51493ba70aa02a1 | 603015c40aaa8601390b6df4429d85840651bdd9 | refs/heads/master | 2021-04-03T08:58:16.059603 | 2018-03-13T20:51:15 | 2018-03-13T20:51:15 | 125,106,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from os.path import join as os_join
class Config:
"""
Holds model hyper-params and data information.
"""
def __init__(self):
# dropout = 0.15 # TODO: No drop for now
self.embed_size = 100
self.hidden_size = 200
self.batch_size = 10
self.n_epochs = 2
sel... | [
"gaonmaor@gmail.com"
] | gaonmaor@gmail.com |
7dd143d98a4179f9630c64bcdac247d1e06929f1 | 1f2b53d30b3020dc720875d0a91aadb6db6e78fc | /Divergence analysis/joingenesandtranslate.py | dd1cdcfc2e1d3dffc81fae99f71e84bb66611e19 | [] | no_license | otrnda/CloverAnalysisPipeline | 77f845c125280a60bf7a7d3dcf3d2f3bb2a3bbe6 | ae169b46c7be40cdf0d97101480be12df87fc58e | refs/heads/master | 2020-09-30T19:09:20.594278 | 2019-02-27T14:40:16 | 2019-02-27T14:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import sys
from CorrectORF import *
import os
from stat import S_ISFIFO
def collect_genes(genes):
gene_files = []
for gene in genes:
sequence = readfasta(gene).values()
if sequence:
gene_files.append([gene, translate(sequence[0].upper())])
return gene_files
def correct_genes(ge... | [
"marni16ox@gmail.com"
] | marni16ox@gmail.com |
6346caf90d960cf2dfc7359a42eea0ee550a4f7c | c320536de24a7e5dee4ee1dd5563a523aec3ea94 | /Django-ModelodeNegocio/ModeloNegocio/EstructuraNegocio/migrations/0003_auto_20200810_1644.py | c5ea4b563f4b0a8480b1d21728b299fa667aaacb | [] | no_license | sestupinan/2020-19-MI | 3ab32fb0e4a9e4c752abcc14e7a10444e9933a7c | 8ea575a4b2564666dc3da0c7df370cbb62141ee0 | refs/heads/master | 2022-11-29T07:24:38.715716 | 2020-08-11T22:07:58 | 2020-08-11T22:07:58 | 286,856,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # Generated by Django 3.0.5 on 2020-08-10 21:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EstructuraNegocio', '0002_auto_20200810_1637'),
]
operations = [
migrations.AlterField(
model_name='actividad',
name... | [
"s.estupinan@uniandes.edu.co"
] | s.estupinan@uniandes.edu.co |
6ade092fd7b3c43349f4db42db163e9eba9b5739 | cef92d9d917efd9a7decd142f2275f08622c8ca0 | /src/unix/permission_anomalies.py | cf7c0885eb7cd530b8b0c0e034123c60328ea86b | [] | no_license | jorelpaddick/secureme | 96546f6d4bc654ae884eb9173c631918b322cc8b | ca2410c2e3c53470039e23a6371e2b646aec4bb8 | refs/heads/master | 2020-04-23T01:04:05.773915 | 2019-02-15T04:32:39 | 2019-02-15T04:32:39 | 170,801,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | #!/usr/local/bin/python3
"""
This module aims to search the UNIX filesystem hierarchy for
files and directories with permissions that are 'out of place'.
For example, globally writable files which should not be writable or
files such as /etc/shadow which should not even be readable (except by root).
This module will ... | [
"jorel@VioletDragon.local"
] | jorel@VioletDragon.local |
9fe0d3081bfd6bb1753c83a2b2f171503339a041 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/Nesting_20200908173521.py | 5169bca441ee68541cce697351971411928c70bf | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | def nesting(S):
# first
print(nesting("(()")) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
3e23c65e01b4484880715e465c1a2e056515c39b | 22ca5a3f31271e141d41845706df2ab486e99d94 | /kenia/weeky_scheduler/__init__.py | 665ca82554d64b31da2dc613b8ae12d4c25bc126 | [] | no_license | crumbledwall/kenia | 435e46800b86894aba7a8216d219ae22dc51e27f | a1988610a8414f7bfa164a661948d2ec73d4eb38 | refs/heads/master | 2020-07-26T23:38:52.575456 | 2019-10-20T09:33:57 | 2019-10-20T09:33:57 | 208,799,553 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import nonebot
from aiocqhttp.exceptions import Error as CQHttpError
from .report import *
@nonebot.scheduler.scheduled_job('cron',day_of_week="mon",hour='7',timezone="Asia/Shanghai")
async def _():
try:
await report_games()
except CQHttpError:
pass
| [
"whj199910@gmail.com"
] | whj199910@gmail.com |
1f0f22bcce72ff8ae6781b02b4e85005590893ab | 15592893bd1871bfeb1cdb4741523894cf32cf67 | /python_fundamentals/bubblesort.py | accec854cbab91b213adf4927d6494e188eeb934 | [] | no_license | philmccormick23/Learning-Python | b07758d2bb310e617991a13230b257a71c3c2510 | 5a06c5155941816ce3e61d262ae5779ae2899196 | refs/heads/master | 2020-04-08T08:50:03.749946 | 2018-11-26T16:01:27 | 2018-11-26T16:01:27 | 159,195,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | arr=[8,3,5,1,2,0]
def bubbleSort(arr):
for j in range(len(arr)-1):
for i in range(len(arr)-1-j):
if(arr[i]>arr[i+1]):
arr[i],arr[i+1]=arr[i+1],arr[i]
return arr
print(bubbleSort([8,3,5,1,2,0])) | [
"phillipmccormick@Phillips-MacBook-Pro.local"
] | phillipmccormick@Phillips-MacBook-Pro.local |
582acb3bcfdc0d636dfcd9571a7b4b463d749705 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/23123011.py | c22ed6aed9a114cbc62b3916ee36b83d4b2a3b8e | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/23123011.py generated: Wed, 25 Jan 2017 15:25:37
#
# Event Type: 23123011
#
# ASCII decay Descriptor: [D_s+ -> pi- e+ e+]cc
#
from Configurables import Generation
Generation().EventType = 23123011
Generation().SampleGenerationTool = "SignalPlain"
from ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f69189ecf61dbbad9015b9ed39c589caa949c3af | 8314da2043d237593028f98ba21c803a0211b1ad | /learning_users/learning_users/settings.py | f9f1f25c2fcb5b9df85865923d39d5c78ef3d16f | [] | no_license | zeyadabed2006/login_logout | 8d7598ebccb65031d4adda2352c9552505e16021 | b99db5fa155c3e44ad2dbd3eea869860412be1c4 | refs/heads/master | 2022-12-11T12:35:43.980060 | 2020-09-08T07:45:27 | 2020-09-08T07:45:27 | 293,620,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | """
Django settings for learning_users project.
Generated by 'django-admin startproject' using Django 1.11.10.
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/
"""
i... | [
"zeyadabed2006@yahoo.com"
] | zeyadabed2006@yahoo.com |
549fcc281ee7b1ff3519de8b8882f35c1e72e4de | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_animations.py | 02af88c871ee685813138b37592a71c92dd2f001 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _ANIMATIONS():
def __init__(self,):
self.name = "ANIMATIONS"
self.definitions = animation
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['animation']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d0cfda9b9e6f2e6f19df057e89736ab28b36d573 | c1edf63a93d0a6d914256e848904c374db050ae0 | /Python/黑客攻防/破解/dictionary.py | 909018a1cd432c05322b59a1d4b38474cb25f02d | [] | no_license | clhiker/WPython | 97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd | b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1 | refs/heads/master | 2020-03-30T03:41:50.459769 | 2018-09-28T07:36:21 | 2018-09-28T07:36:21 | 150,703,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import itertools as its
import time
def main():
a = time.time()
word = "abcdefghijklmnopqrstuvwxyz"
r = its.product(word, repeat=6)
dic = open("dictionary.txt", "a")
for i in r:
dic.write("".join(i))
b = time.time()
print(b-a)
dic.close()
main() | [
"1911618290@qq.com"
] | 1911618290@qq.com |
306c03935fb455f6fd6dfe8a5ea7afa8bd0aee3a | 8d2e710ef92316c94e2e131f20e7b863e9cd3987 | /dz2_2.py | aea67be525411d251c582b0c01bed86c4bd61ccd | [] | no_license | uakubaydm/G117_dz2.2 | 19cfa960479a639d90b29a7b3dbe0a47a45f710a | de3eab5633af217ff9bee1d03407290b691ef38b | refs/heads/master | 2020-12-20T19:29:02.750785 | 2020-01-25T15:22:21 | 2020-01-25T15:22:21 | 236,188,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | x = "The second homework is "
y = "to create a sentence."
print (x+y)
| [
"uakubaydm@gmail.com"
] | uakubaydm@gmail.com |
9d1d0d94f750d498a91dd81d6d464c609ac9368c | eb19f68b76ab16375a096c06bf98cf920c8e7a0c | /src/tracking1.py | ab06f2fc4b87671ddc02529d29cd626c4a85187b | [] | no_license | YerongLi/statistical-connectomes | a9869d918761b05bcd9980a0b4d36205673d582e | 7519289c2f26314d88149e878125042021cea07d | refs/heads/master | 2020-04-09T03:53:42.754095 | 2018-12-02T01:03:19 | 2018-12-02T01:03:19 | 160,001,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,242 | py | """
====================
Tracking Quick Start
====================
This example shows how to perform fast fiber tracking using DIPY_
[Garyfallidis12]_.
We will use Constrained Spherical Deconvolution (CSD) [Tournier07]_ for local
reconstruction and then generate deterministic streamlines using the fiber
directions (p... | [
"yerong.li@outlook.com"
] | yerong.li@outlook.com |
6c435a103e50adb24cf88e871d6b618892c6977a | d985c183310a1555018c30d1dee1a0438f1622d0 | /notebooks/cf_matrix.py | 3bed3a6c1885bbc9fbe373387ef6c54ed51ba1ff | [] | no_license | twister2005/datascience_trabalho_sefaz | d6fd0cb5d134449f53080c65048ca6ded425d5a4 | bcc521d8ec01e9dde099ea413d60e5dc4258f1c9 | refs/heads/master | 2023-02-27T00:08:48.870332 | 2021-01-12T11:48:45 | 2021-01-12T11:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | py | # https://github.com/DTrimarchi10/confusion_matrix/blob/master/cf_matrix.py
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
def make_confusion_matrix(cf,
group_names=None,
categories='auto',
count=True,
... | [
"lucasdesousafernandes@gmail.com"
] | lucasdesousafernandes@gmail.com |
13e74d5579b43795cce4d5b1e7fa018032ecefc7 | 89b234c1fcb85babed5c7740d3be8c5c19a38cd9 | /BoundingBox.py | e2812420ccea5a2e8dc2a043b2ffa55f0e5559a7 | [] | no_license | Nitromon/GoogleVisionAI | 6b138ddf9164a4fd5a2cfb82f57f1429d249e741 | c4cea901cf1dcea6923f287da10529eadaab5f3d | refs/heads/master | 2020-08-01T23:47:22.559262 | 2019-09-26T19:17:33 | 2019-09-26T19:17:33 | 211,164,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | from google.cloud import vision
from google.cloud.vision import types
import io
import os
from PIL import Image, ImageDraw
from enum import Enum
os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="C:\\Users\\Joel Monteiro\\Desktop\\Product Demo 3.0\\GCP Vision.json"
image_file='Wachovia.jpg'
image = Image.open(i... | [
"noreply@github.com"
] | noreply@github.com |
aa96b93756b498cf5251557bf780a33ab0f92eba | baaaa9b8ae812f91cfb3aef113d721633b2046be | /irproject/items.py | a1398821d8ad86fe4071ac070409f757c2e7bf7a | [] | no_license | yumna4/CS4642-SearchMoraSpirit | 779304353ab3443d8638e2ba0e7d0583921374e1 | 6d6c343340a3c185778d6fdb49cb6045ca4bcd9b | refs/heads/master | 2020-03-22T23:21:39.028953 | 2018-07-30T09:03:16 | 2018-07-30T09:03:16 | 140,805,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class IRProjectItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title=scrapy.Field()
#credential... | [
"yumnaalbar@live.com"
] | yumnaalbar@live.com |
71784b9871d44330a0d1df8c0e7409643afef6bf | 4436277af74df812490a42f33deccfcf218e25f8 | /backend/wallet/migrations/0001_initial.py | f2c922540416302dee4c799fa0921b7c911673d0 | [] | no_license | crowdbotics-apps/lunchbox-25105 | 308c49dcc77383ee8f11b25207f4b94e452f618e | 21de4ca0cbad83a09ec5e28a99ccc3dc1fc3dbeb | refs/heads/master | 2023-03-15T09:50:00.100961 | 2021-03-18T18:53:30 | 2021-03-18T18:53:30 | 349,182,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,258 | py | # Generated by Django 2.2.19 on 2021-03-18 18:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_profile", "0001_initial"),
("task", "0001_initial"),
]
operations = [
mig... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
15e7cd57b1f0be0cbf05622cd852f1be239ef1aa | 6cab1f72cb1ebd8571d3d089c4fb940aca12c316 | /assignment1/q1_softmax.py | b45658f150ba66a46eac669b809bd9465b9637dd | [
"MIT"
] | permissive | lonelyandrew/cs224n | 35e667672fc405f61a9d31dd3ede47230c53ae76 | 032d642e823501ef8fe03a2945048614a5dcc97a | refs/heads/master | 2021-01-25T08:19:40.950315 | 2017-06-27T13:07:38 | 2017-06-27T13:07:38 | 93,754,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | import numpy as np
def softmax(x):
"""Compute the softmax function for each row of the input x.
It is crucial that this function is optimized for speed because
it will be used frequently in later code. You might find numpy
functions np.exp, np.sum, np.reshape, np.max, and numpy
broadcasting usefu... | [
"lonelyandrew@outlook.com"
] | lonelyandrew@outlook.com |
52815dd736e65c64d4d660234890bd89a4f66582 | ac3c50ff2919219319f96ae8370bdb1c632fa0ee | /test_code/menu_example.py | b19ea7533fecd3a4b9e38528d8c95704d9244267 | [] | no_license | carolglin-old/space_invaders | 7e1e868c5eb022caa6c3c5c2433a2b4597d248b7 | aa9de929712bf73ad446bcd5bc56e7cb631f5a8a | refs/heads/master | 2021-05-28T02:41:50.328600 | 2015-01-21T05:36:56 | 2015-01-21T05:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | class Animation(pg.sprite.Sprite):
def __init__(self, screen, SpriteStripAnim, num_sprites):
pg.sprite.Sprite.__init__(self)
self.strip = SpriteStripAnim
self.num = num_sprites
self.rect = self.strip.rect
self.screen = screen
self.remove = EventHook()
self... | [
"carolglin@gmail.com"
] | carolglin@gmail.com |
586e0945d531a75f07e3ff9e2df945db7523c791 | 5311d3132d6f271a92b188cb94b3934f0e37073f | /learning_logs/migrations/0005_auto_20190718_0810.py | 2415360476c873e0a7aa5a89d457980cfac123f7 | [] | no_license | redmaple34/learning_log | f40b0110cd316b4d1b6cd6b73cae1dd7ced5c57c | 5201ed824571705772344b26cc65256317e630eb | refs/heads/master | 2020-06-30T09:18:42.392727 | 2019-08-06T06:17:18 | 2019-08-06T06:17:18 | 199,419,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-18 08:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0004_topic_owner'),
]
operations = [
migrations.RenameField(
... | [
"maple34.126.com"
] | maple34.126.com |
c89102ac2ffdf3ea73606ca029da20786f86cca1 | 3f6a5986610bc3a85b9ec51c4684b970b72ce6e2 | /poster.py | 3513bc5ede6290dfd102a249c6997612db61bd76 | [
"MIT"
] | permissive | CachedCoding/thsb | 1ac2712af87088a0ea40968f134c4e552c0d08f5 | e8ebe6ef7fc5fe98da2fdce539c3bbc1b81d32c6 | refs/heads/main | 2023-04-05T09:42:04.014147 | 2021-04-02T17:56:55 | 2021-04-02T17:56:55 | 349,083,752 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # ----------------------------------------
# Created on 1st Apr 2021
# By the Cached Coder
# ----------------------------------------
'''
This script defines the function required
to get a Twitter API object and post a
Tweet.
Functions:
getAPIObject():
No Inputs
Returns API object (tweepy)
pos... | [
"naimish240@gmail.com"
] | naimish240@gmail.com |
2655a065dfd19eba5aa98fd37d590db44c431de3 | 11fd71011702af86941f1fae298e02d5a5c01a65 | /COMP9318/9318 Lab/lab2mmt.py | 11b5403845d937dde06623f5554742669bf0764f | [] | no_license | 15851826258/UNSW_courses_XinchenWang | ba335726b24b222692b794d2832d0dbfb072da97 | 98b4841e7425a22cb6ba66bee67dbb2b8a3ef97e | refs/heads/master | 2022-11-30T05:28:24.886161 | 2020-08-11T10:37:49 | 2020-08-11T10:37:49 | 286,715,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | # These are the only modules that you can use in lab2
import pandas as pd
import numpy as np
x = [3, 1, 18, 11, 13, 17]
num_bins = 4
def SSE(L):
mean = sum(L) / float(len(L))
sse = 0
for i in L:
sse = sse + (i - mean ) ** 2
if sse == 0.0:
sse = 0
return sse
def v_opt_dp(x, b):
... | [
"wangxinchen123@qq.com"
] | wangxinchen123@qq.com |
80fb2c177c676afa2efdcf7b83e91aca28d29474 | 452a59ea7fe2189e5b0e92f7f38e57f9203a3558 | /account_manager/views.py | ad308b134f5862d174ae6b6fdd1fd1d650dc98bb | [] | no_license | Pritam96/ebooksite | a4ec1fc97daf4d55d3c54b7a42dfa7a8e57e8410 | c9f39207d2d07666c64844c7a4dc873b7268aaea | refs/heads/master | 2022-12-15T22:46:50.488237 | 2020-09-21T17:33:46 | 2020-09-21T17:33:46 | 278,429,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login as auth_login, logout as auth_logout, authenticate
from .forms import SignUpForm, LogInForm, UpdateForm
from django.contrib.auth.decorators import login_required
from account_manager.models import Account
# Create your views here.
d... | [
"pritammondal@pop-os.localdomain"
] | pritammondal@pop-os.localdomain |
b1e1c8a33b8d8b84ecd4cb9e18f61032aec287c9 | 9169e53df7996297a182d657a8ee82602667fd69 | /supervise_web/helpers.py | 879309df4ee1cc1dcdee857e59055eb07682751d | [
"MIT"
] | permissive | schiermike/supervise-web | 80da345f69d959c4e304ce6eb70e3db7d5317c05 | e9c08dc67dfaac45a0c7a3b38373b905ac0127c1 | refs/heads/master | 2020-05-19T22:38:03.661217 | 2013-07-29T22:57:27 | 2013-07-29T22:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | """
Helper functions to be used in Jinja templates
"""
import datetime
def daemon_row_css_class(daemon_data):
# success, error, warning, info
if not daemon_data['alive']:
return 'supervise_not_running'
elif not daemon_data['daemon_up']:
return 'daemon_not_running'
elif datetime.datetim... | [
"schiermike@gmail.com"
] | schiermike@gmail.com |
1587ecc7894a6825b39b2657658529a40e6109b8 | 9b591e9cecfce78eaf9256c4deb114adcd91983a | /project_blog/Scripts/blog/article/apps.py | 0ec582e1f7a49dca38b98962599e18ba4aa6a0fb | [] | no_license | Konstantin1996/Django | dbfd7245f201a825b8654a7afe42515c52a9f840 | f766a61b315224bdfd40b53f2f0e935a1e7593e2 | refs/heads/master | 2022-11-25T10:33:46.402208 | 2019-11-12T18:15:21 | 2019-11-13T12:23:50 | 162,184,299 | 0 | 1 | null | 2022-11-19T22:45:31 | 2018-12-17T20:11:03 | Python | UTF-8 | Python | false | false | 123 | py | from django.apps import AppConfig
class ArticleConfig(AppConfig):
name = 'article'
verbose_name = 'Статья'
| [
"kostyasupikos@gmail.com"
] | kostyasupikos@gmail.com |
575352ef768eea3f97b304e28386e9a5188da6ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02258/s967893517.py | fef386565550a9bfb1823e41855b7904dda27051 | [] | 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 | 757 | py |
n = int(input())
R = []
for i in range(n):
R.append(int(input()))
kouho = set()
diff_max = None
for (i, rt) in enumerate(R):
if i == 0:
rt_min = rt
else:
if rt < rt_min and not (diff_max is None):
kouho.add(diff_max)
diff_max = None
rt_min = rt
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f79ea22c3b37f1ac9e6301b576168361eecb66b3 | 7bead245354e233f76fff4608938bf956abb84cf | /test/test_page_conversion_result.py | 79bca57ea61ab579fcc7be32e07b455a76551754 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
daa206411acf7dd63ef2ac0a7f67334f0de62493 | 6146d080087b21e36347408eea76598f4691ed67 | /code/1112/2383.py | d2e70847a9ef9a11958d0d8c95a94edf7d85889f | [] | no_license | banggeut01/algorithm | 682c4c6e90179b8100f0272bf559dbeb1bea5a1d | 503b727134909f46e518c65f9a9aa58479a927e9 | refs/heads/master | 2020-06-27T14:07:51.927565 | 2019-12-19T03:48:30 | 2019-12-19T03:48:30 | 199,800,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | # 2383.py [모의 SW 역량테스트] 점심 식사시간
import sys
sys.stdin = open('2383input.txt', 'r')
def getTime(t, l): # t: 사람-입구 거리 배열, l: 계단길이
for idx in range(len(t)):
if idx < 3:
t[idx] += l
else:
if t[idx - 3] > t[idx]:
t[idx] = t[idx - 3] + l
else:
... | [
"genie121110@gmail.com"
] | genie121110@gmail.com |
bc7ad62bc0617a78f8aefb15b880c4de8926bd23 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/171/usersdata/269/82030/submittedfiles/decimal2bin.py | 685e2ff066c0cea09273c3191d603c291bc3306a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
binario=int(input('digite the fucking binario: '))
a=0
b=binario
while binario>0:
binario=binario//10
a=a+1
c=1
d=0
for i in range(0,a,1):
decimal=b//10**c
d=decimal*(2**i)+d
c=c+1
print(d)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.