blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af7acd4198ed01f248b585d74da066970f4bb5f5 | c0960d3ebef9b4167c7f7581c50adcfb66cc02fa | /app/importer/handlers.py | d75f7a5ec82761a43f049d0ba25491c38ec31d2b | [] | no_license | hebkhan/server | 8358c3970322383473e4d7165447ccc800d864be | 3150d9316489da638a19470085ca97061c3592ee | refs/heads/master | 2021-06-13T15:27:01.571952 | 2015-08-03T22:09:43 | 2015-08-03T22:09:43 | 13,910,197 | 1 | 2 | null | 2016-02-29T21:23:07 | 2013-10-27T20:57:13 | Python | UTF-8 | Python | false | false | 7,296 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, with_statement
import json
from collections import defaultdict
import copy
from google.appengine.api import users
from google.appengine.ext import db
from request_handler import RequestHandler
from user_util import dev_server_only
from models import Use... | [
"oferko@il.ibm.com"
] | oferko@il.ibm.com |
ad38dcb07d878c84f5b81bd9944ce5bddbff6853 | 6548cb72a1ec9fad2835be2d039c9893d4cc7f0c | /CodeForces/HelpfulMaths/HelpfulMaths.py | 2cd48d0d50ecbe26935ae7c126b60e7adaa53e28 | [
"MIT"
] | permissive | bdugersuren/algorithmic-problems | 13640bf5a22a916fde8c4049d3e5e53e707fabdc | d2b3965023deafa018d783f5ce0d23dae1c890bc | refs/heads/main | 2023-03-24T12:27:10.860335 | 2021-03-21T19:09:01 | 2021-03-21T19:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def main():
expression = input()
ones = 0
twos = 0
thrids = 0
for elem in expression:
if elem == '1':
ones += 1
elif elem == '2':
twos += 1
elif elem == '3':
thrids += 1
print('+'.join(['1']*ones + ['2']*twos + ['3']*thrids))
main()
| [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
c775dfbdd9e3ff016859c95b19ca5cf1516715e8 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/scout/shared_item_trap_flash_bomb.py | 75d25515e7c8511a1bb926e66454877f7bd0ff4e | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 455 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/scout/shared_item_trap_flash_bomb.iff"
result.attribute_te... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
a715b8049176e74e25d7d6d5ee692ff8b226db1e | 5a33ee1df4e82bb7f6a49c66898bea0d79fc91af | /API/views.py | 1d0c9637992799fe8d327e5c8d79ccefb8863bb0 | [] | no_license | Yousef115/django_event_planner | 4ddfbadd4f216734930c0b3b77ab80d5f467131a | cd4479e29e0a3574c39eca967e3e1523bb6eebe9 | refs/heads/master | 2020-07-22T14:25:53.730673 | 2019-09-12T13:20:32 | 2019-09-12T13:20:32 | 207,232,605 | 0 | 0 | null | 2019-09-09T05:43:03 | 2019-09-09T05:43:02 | null | UTF-8 | Python | false | false | 3,100 | py | from datetime import datetime
from django.contrib.auth.models import User
from rest_framework.generics import ListAPIView, RetrieveAPIView, CreateAPIView, DestroyAPIView, RetrieveUpdateAPIView
from rest_framework.filters import SearchFilter
from rest_framework.permissions import IsAuthenticated
from events.models im... | [
"yousef.hamadah@gmail.com"
] | yousef.hamadah@gmail.com |
b1056639836d47b357a4e4a0c419906aac5c4a3d | 0b3b56a51ae32269ac41e47a0db38ed8c429e936 | /1. Programación Orientada a Objetos/Ensayo examen/Obrero.py | fb8d8c7cb016eb20b77d07f47eb3eb0e5d5167e2 | [] | no_license | asunawesker/EEParadigmasDeProgramacion | 1e2030beca85aa64b8923e63a5f9ec59a624d1ee | be05028923fdb9459c1bf849160b62280479e8b1 | refs/heads/main | 2023-05-12T03:43:56.758563 | 2021-06-02T16:07:51 | 2021-06-02T16:07:51 | 373,226,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from Empleado import *
class Obrero(Empleado):
def __init__(self, asistencia = 0, sueldo = 10000, bono = 600):
self.asistencia = asistencia
self.sueldo = sueldo
self.bono = bono
def checarAsistencia(self):
return self.asistencia + 1
def bonoMensual(self, mes):
... | [
"zS19004913@estudiantes.uv.mx"
] | zS19004913@estudiantes.uv.mx |
8c7f2a5dd1a987c2491baa94b1076c12faadad88 | 02626713a8b08b6441a44544b5d512c5c4b5b7c8 | /wsgi.py | 97b205cd3ddec5c7ae649a3a04fa02d0301f8147 | [] | no_license | chitrankdixit/freshdesk-flyrobe-app | 56240f0f81e57606fb5db09ab5e61438958bb66d | d4adb310a052a5505a250b9c7934ca7ae3205831 | refs/heads/master | 2022-12-14T20:52:31.738845 | 2018-02-05T12:55:47 | 2018-02-05T12:55:47 | 119,705,056 | 0 | 1 | null | 2021-06-01T21:48:42 | 2018-01-31T15:26:10 | Python | UTF-8 | Python | false | false | 71 | py | from freshdesk_app import app
if __name__ == "__main__":
app.run() | [
"chitrankdixit@gmail.com"
] | chitrankdixit@gmail.com |
a218b140548d16333d767b2b2c4efa1b295e04a9 | f662bd04d2f29ef25bbfd7e768b1e57dfbba4d9f | /apps/evaluacion/migrations/0001_initial.py | a7633e204c144016e727cc9cc12c44548fc6d301 | [] | no_license | DARKDEYMON/sisevadoc | f59b193688f7eca7c140a03ee414f5d20ada78c7 | 9fc0943200986824a2aab2134fdba5c9f3315798 | refs/heads/master | 2020-03-19T03:27:07.907125 | 2019-12-11T13:30:43 | 2019-12-11T13:30:43 | 135,729,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,204 | py | # Generated by Django 2.0.8 on 2018-10-08 14:13
import apps.evaluacion.models
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import smart_selects.db_fields
class Migration(migrations.Migration):
initial = True
depende... | [
"darkdeymon04@gmail.com"
] | darkdeymon04@gmail.com |
cd46ec9a9ecfc69e26b384cdea6a8d7002647494 | bd90c21f553362afbedb8ca629b14e8fa7b21dae | /tests/unit/python/foglamp/services/common/test_avahi.py | 9a4e7f3dd7ff03369e03a55f29d24fa3f58090ca | [
"Apache-2.0"
] | permissive | christoofar/FogLAMP | 631116d7e251c594a61765af46da8d38e77fe0e5 | 3aaae302104038a8534c54ff8a3ed0fefd4f3201 | refs/heads/develop | 2020-04-12T16:54:56.141584 | 2018-12-20T10:17:10 | 2018-12-20T10:17:10 | 162,627,944 | 0 | 0 | Apache-2.0 | 2018-12-20T20:30:37 | 2018-12-20T20:25:57 | Python | UTF-8 | Python | false | false | 1,717 | py | # -*- coding: utf-8 -*-
# FOGLAMP_BEGIN
# See: http://foglamp.readthedocs.io/
# FOGLAMP_END
import pytest
import foglamp.services.common.avahi as avahi
def test_byte_array_to_string():
array = [104,101,108,108,111]
str = avahi.byte_array_to_string(array)
assert str == 'hello'
def test_byte_array_to_stri... | [
"mark@dianomic.com"
] | mark@dianomic.com |
1ab76ebe4adb113218b9167f0a2548b32f27827f | 784e1867eafdfa0842ed4776b4740154de7200ba | /flash/lcd.py | eead9c357bb803b5890935910fe8c34aa4d1b15c | [
"MIT"
] | permissive | sleepychild/diy_sha_sep2019 | 080fb4c4dd5e2af9aa63f946f298f144dd701d8b | 2fdf9ec548e725e48013e6d84311da01a1b7521b | refs/heads/master | 2020-08-10T18:54:12.490761 | 2019-10-18T18:25:09 | 2019-10-18T18:25:09 | 214,400,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,747 | py | from time import sleep_ms, sleep_us
from machine import I2C, Pin
class LcdApi:
"""Implements the API for talking with HD44780 compatible character LCDs.
This class only knows what commands to send to the LCD, and not how to get
them to the LCD.
It is expected that a derived class will implement the ha... | [
"kukucov@gmail.com"
] | kukucov@gmail.com |
3bcf078322ae579d964df68c431d2c8f4c29f199 | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__61/CauTrucChuoi.py | 2cc3b1a07d8755446799000aea9455cb7b20fbed | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """
- Chuỗi là tập các ký tự nằm trong nháy đơn hoặc nháy đối, hoặc 3 nháy đơn hoặc 3 nháy đôi.
Chuỗi rất quan trọng trong mọi ngôn ngữ, hầu hết ta đều gặp trường hợp xử lý chuỗi.
- Chuỗi trong Python cũng là một đối tượng, nó cung cấp một số hàm rất quan trọng:
object.method(parameter list)
-Các hàm xử lý chu... | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
224ac78c0406f31d43d284416a4540599a7ba65e | be4d3714a212156533e0a305c4d0eca30ed46aeb | /Project1.py | 7244e0f21994986f7ad7934eea523e03e2e0501e | [] | no_license | lqr0717/ds | 99139d1554ed1fcc710eb1308a81003e53755074 | 00839c2bec3e67012cd7a19951766b5e0aa5b19a | refs/heads/master | 2022-12-10T07:52:23.621673 | 2020-08-28T00:41:25 | 2020-08-28T00:41:25 | 266,041,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,169 | py | import calendar
from datetime import timedelta
import pandas as pd
import numpy as np
from dateutil import relativedelta
from pandas import Series, DatetimeIndex
from sklearn.linear_model import LinearRegression
import statsmodels.api as sm
from scipy import stats
import numpy as np
from statsmodels.stats.outliers_in... | [
"noreply@github.com"
] | noreply@github.com |
73d7e289d0aaa96ccf12b9862628bdf616f49aa5 | 5013dd7116a8455ddbb3a62bb6129a43a8c974fa | /django_project/urls.py | e931f0537a31d8f40c36b48d3b19152caf4c4702 | [] | no_license | priyanka36/BlogApp | 95acebf296d1637906334bc821cbdf677eebda73 | 472711198981961efab134f1fef86aa3d004550b | refs/heads/master | 2023-02-21T10:37:05.243040 | 2023-02-17T08:28:47 | 2023-02-17T08:28:47 | 313,916,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"poudelnipriyanka@gmail.com"
] | poudelnipriyanka@gmail.com |
c4af6ac4f3b8b7b14414c155611811aa2a2eea11 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbonui/util/sortUtil.py | 630c63b8ab979b409b262d7bf56fdf40770b56a4 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\util\sortUtil.py
def Sort(lst):
lst.sort(lambda x, y: cmp(str(x).upper(), str(y).upper()))
return lst
def SortListOfTuples(lst, reverse = 0):
lst = sorted(lst, reverse=reverse, key=lambda data: data[0])... | [
"le02005@163.com"
] | le02005@163.com |
caede67f4b4110575ba80d4905b591f525a1d1aa | 701f160e6fae80575b8210ac5ae14bc773231cff | /facial_landmarks_detection.py | 6b67f7371cf37548a86e64927cbea991c02fef44 | [] | no_license | pombero/Computer_Pointer_Controller | 6339d6e755d7cf17f1a9ca727e26edfb71589637 | d67f8f4302cdf09da3998ca2431a2c12fd8aee1c | refs/heads/master | 2022-11-22T01:43:36.225704 | 2020-07-22T23:25:15 | 2020-07-22T23:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | import cv2
from openvino.inference_engine.ie_api import IENetwork, IECore
import pprint
# To crop the eyes from the face, we use a square sized with 1/5 the width of the face.
EYE_FACE_COEF = 0.2
class Facial_Landmarks_Detection:
def __init__(self, model_name, device='CPU', extensions=None, perf_counts="False"):
... | [
"noreply@github.com"
] | noreply@github.com |
5a8316a2dbb0ec3afabf9380ee37c547a9ff9e04 | f163ed5554ea2be144dbeb3b9189aec6fbf18f93 | /6035/main.py | 1caa2a3f2d9fdbe8757a519e03198c94156ccf1a | [] | no_license | YoungWoongJoo/CodeUp-Python-basic-100 | dd72ee22a121a3bc56171c963e5dc7f5a3e81d57 | c0f45263134d4ab836a127c5f13c031e7c972a6c | refs/heads/master | 2023-03-30T01:38:51.157600 | 2021-04-02T19:03:19 | 2021-04-02T19:03:19 | 352,991,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | """
실수 2개(f1, f2)를 입력받아 곱을 출력하는 프로그램을 작성해보자.
입력
2개의 실수가 공백으로 구분되어 입력된다.
출력
첫 번째 실수와 두 번째 실수를 곱한 값을 출력한다.
"""
float1, float2 = input().split()
print(float(float1)*float(float2)) | [
"jyw3675@naver.com"
] | jyw3675@naver.com |
b104099fe37008bf6fd58a2e92fcf094aafb1fcf | f3d1198ddb6358d0ed57e027e62a24c084c0a378 | /NCS/repeat.py | 9e33d717218a32ce32b848f37cf3a4b901cd675b | [] | no_license | MingjiaLi666/NCS | 0d1ac6a3fa238f66984a7d73da84f1e6c9f47b55 | 7bb684a6b6044dad20c89141e04b19be44538943 | refs/heads/master | 2021-02-06T07:36:59.032447 | 2020-03-03T06:20:49 | 2020-03-03T06:20:49 | 243,893,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from src.policy import Policy
import numpy as np
import pickle
import gym
import os
class Visualizer(object):
def __init__(self, game, network, train_directory):
self.game = game
env_name = '%sNoFrameskip-v4' % game
env = gym.make(env_name)
# env = gym.wrappers.Monitor(env, '/tmp/... | [
"noreply@github.com"
] | noreply@github.com |
4e4ed47d359398fb037c8b798ffec59ab1e4919b | 402879a5e26875dd4b3adfd359588abe62cc85b3 | /pynumber1.py | d5b030d89c63ac028cddfc052c0633601dc71f65 | [] | no_license | RiddhimGupta/MachineLearning | 5becb7012755e98d4492e5c2fc44996deb6cb89c | 4f597bbe7fcbdd42dbad2fb30d8210b7c24dd16e | refs/heads/master | 2021-07-11T16:10:41.234894 | 2020-08-27T15:28:08 | 2020-08-27T15:28:08 | 192,696,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | #!/usr/bin/python3
import numpy as np
import random
row=int(input("Enter rows:"))
col=int(input("Enter columns: "))
f=open("array.txt","w")
#Inserting random values in array
x=np.random.randint(9,size=(row,col))
print(x)
f.write('Array\n')
#Saving integer data to array
np.savetxt(f, x,fmt='%d')
| [
"noreply@github.com"
] | noreply@github.com |
4d7e2d426d0c30ad544dac762ce0bbe607ad82b0 | 3bdb841d577031608b24eb63f6c511738d49e373 | /app/main/errors.py | 3f0cacbba20270a9e53b83ff07d6551418acf5d5 | [] | no_license | wangyuhuiever/blog | f0ea1d718a5c24d4647808b98a7e0e30519f1d6e | 752c8f7cce5e03993c2cecbcf3a4f5eba297154f | refs/heads/master | 2022-12-22T19:21:42.445162 | 2017-06-15T03:26:43 | 2017-06-15T03:26:43 | 93,734,963 | 0 | 0 | null | 2022-09-16T17:45:09 | 2017-06-08T10:03:43 | Python | UTF-8 | Python | false | false | 1,002 | py | from . import main
from flask import render_template, request, jsonify
@main.app_errorhandler(404)
def page_not_found(e):
if request.accept_mimetypes.accept_json and \
not request.accept_mimetypes.accept_html:
response = jsonify({'error': 'not found'})
response.status_code = 404
ret... | [
"wangyuhuiever@163.com"
] | wangyuhuiever@163.com |
90675f8cbc670d60240bf5b21a878105c2ae2522 | fc286168bb8a9669822934bcde70c099b872d1e0 | /Experimentation/LSTM/LR5/showHistogram.py | 0c84ae092d66881034b934f92c46af1e485266e6 | [] | no_license | ishankapnadak/Vector-Based-Navigation | 70b98a1581e82c80edb1e24ff6aad9c617c8f772 | 5607b67afe2e44a9f21f8b7ded6d30a16942dae3 | refs/heads/main | 2023-08-30T13:02:04.202756 | 2021-11-04T06:50:56 | 2021-11-04T06:50:56 | 386,834,174 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | import numpy as np
import os
import matplotlib.pyplot as plt
import os
from scipy.signal import correlate2d
from ratSimulator import RatSimulator
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
def showHistogram(agent, dataGenerator, num_traj, num_steps, llu, slu, tlu, bins):
#factor=2.2/b... | [
"ishankapnadak@gmail.com"
] | ishankapnadak@gmail.com |
ece59419e4396886a8756b065d0c0178e29d9758 | 6b7b08d3bb417602daaf42e8c59b817bf97a9560 | /httpdetector/filters.py | 7b3c8db13b10d5e8be50ce15377d940703f7970b | [] | no_license | CogniBuild/Campus.FakeDetector | 6d17f15b86d082b2d3a53e07dd4f17c2981fd0d7 | 9a0cf540ea91e4e2ed7e4a6326c3e45b563c896a | refs/heads/master | 2023-05-01T23:13:29.044566 | 2021-05-03T23:16:07 | 2021-05-03T23:16:07 | 335,558,878 | 2 | 0 | null | 2021-05-03T21:31:35 | 2021-02-03T08:38:53 | Python | UTF-8 | Python | false | false | 236 | py | import numba
import numpy as np
@numba.njit(parallel=True, fastmath=True)
def rgb2gray(rgb: np.array) -> np.array:
r, g, b = rgb[:, :, 0], rgb[:, :, 1], rgb[:, :, 2]
gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
return gray
| [
"sonara4mus@gmail.com"
] | sonara4mus@gmail.com |
ab41880b43db3d2cba9673d0c901a444e21a4bb1 | 867838b7fa64351d933f003f0daca555a6071b52 | /www/views.py | 5ee6a26a6a67cccd3f569d11962797fc2d31fac2 | [] | no_license | RLavoisier/app | fa978b5130a785434eabd9d7e86220e0b6df947b | e361881a2b03e63fd0363660c1590088d0511beb | refs/heads/master | 2021-06-18T09:10:43.398262 | 2017-07-06T13:34:50 | 2017-07-06T13:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.shortcuts import render
from order.helpers.helper_orders import HOrder
h_order = HOrder()
def index(request):
return render(request, 'orders.html', locals())
def order(request, id):
order = h_order.getOrderById(id)
return render(request, 'order-detail.html', locals())
def new(request):
r... | [
"renaud.lavoisier@gmail.com"
] | renaud.lavoisier@gmail.com |
97b340bc6e3f0c151b5b2029d8896a92fb6b2528 | 4c413f3787e66155d90a3cdce87b6527b7dae459 | /app/cokkies.py | c235f510a4d7b3ddfdb4b9af5b90d9f857cb7cc3 | [] | no_license | priyanshukumarcs049/flask | 61b0339c9dd5afc62625d35b3b42902383d95402 | 5d6828d87cd648d050fec78465bcb8e607d1530e | refs/heads/master | 2020-04-01T10:05:38.901968 | 2018-10-17T12:08:05 | 2018-10-17T12:08:05 | 153,102,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from flask import Flask, render_template, request, make_response
app = Flask(__name__)
@app.route('/')
def index():
return render_template('cookie_index.html')
@app.route('/setcookie', methods = ['POST', 'GET'])
def setcookie():
if request.method == 'POST':
user = request.form("name")
resp = make_response(render... | [
"noreply@github.com"
] | noreply@github.com |
bc1e3c5d20873ca9391c87f732e80a13dfbc1c5d | d93c625c9a907aa3b282a9bbb5c1629df0aafa47 | /CarControl/control.py | 7b7032b5a79bc9c9efd8c791c8178c6caaf9fac2 | [
"Apache-2.0"
] | permissive | angrajales/SDC_Eafit | 4baac4b439a6276537e99d8f004acd68082b0659 | ecbde0235100655baa1cbd189ab02ac2c9f35e67 | refs/heads/master | 2020-05-23T22:18:18.292455 | 2019-05-17T19:27:48 | 2019-05-17T19:27:48 | 173,021,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | #################### TO DO #######################
| [
"agrajal7@eafit.edu.co"
] | agrajal7@eafit.edu.co |
7e4122c506b21e8a8186d819d392ab83c5bf0fd2 | 2fb70181b485028a219e719a2f3f922458e3b9bd | /ecomstore/apps/catalog/apps.py | 4780c3552a4c85418e987d6c6429682e831131e9 | [] | no_license | Sharmiko/ecomstore | 87b438586f4c6600cdcf122f7a05776e5ce95da8 | 3b94fab9880cad196d9b319dc9a7b5ece37612c5 | refs/heads/master | 2023-03-23T05:32:42.053107 | 2021-03-06T17:46:30 | 2021-03-06T17:46:30 | 305,790,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class CatalogConfig(AppConfig):
name = 'ecomstore.apps.catalog'
| [
"sharmiko123@gmail.com"
] | sharmiko123@gmail.com |
40ef952b1158ae785ea25449e54550529aa42607 | 10feff5f938ef02732e2f7a529c9a7b1b422be26 | /stock_list_and_search.py | 0f2054ed8b0b86243c488ac3dcd0608855999324 | [] | no_license | Miren16/MNMS-Financials-App | 4f1015227c7d4d852ffc732ddea8f3780149ed16 | 7e52c1b62d65cc11351340abade117cf6ba2876b | refs/heads/master | 2023-04-26T07:02:03.115858 | 2021-05-18T01:05:29 | 2021-05-18T01:05:29 | 368,360,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import pickle
pickled_list_filename = 'pickled_stock_list'
imported_pickled_stock_list = open(pickled_list_filename, 'rb')
new_list_of_stock_lists = pickle.load(imported_pickled_stock_list)
imported_pickled_stock_list.close()
#searches all the companies in the list of lists at position [x], looking for a partial stri... | [
"mirenpat@buffalo.edu"
] | mirenpat@buffalo.edu |
edbc372709806c119208089061bdcfc64460c66f | e69feafbf7bea314db5286937de0b3987cbd2b84 | /venv/Scripts/lista_circular_doble_enlazada.py | 2ee44e3bc8c913703911f19dab614f7f4b2f7b59 | [] | no_license | jcdlacruz/umg-SOI-1er-parcial | 51a84abbb062bd93d34f60b10259bc3db35eb196 | df637f21128847a4b7c8c2a39be5e6dc5a8b5982 | refs/heads/master | 2022-11-30T09:08:01.864244 | 2020-08-09T19:33:59 | 2020-08-09T19:33:59 | 286,296,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | from nodo import Nodo
class ListaCirculaDobleEnlazada:
def __init__(self):
self.primero = None
self.ultimo = None
def vacia(self):
if self.primero == None:
return True
else:
return False
def agregar_inicio(self, dato):
if self.vacia():
... | [
"cesar.de.la.cruz.ovando@ericsson.com"
] | cesar.de.la.cruz.ovando@ericsson.com |
0755247d769e1e57dfea2d61e1b42be00cdbae6d | d2f3c079437c905b9496240ff5742199f539b742 | /pusher/migrations/0005_notificationdata_stress.py | d1f2145261e4987f577f416e7eeea9e33156ea1e | [] | no_license | mattiasedin/noticeTester | aa9b564aa1b86c985f543c22af8bb5698e138e6f | dc128ac9c04266c784fa8776b4a54d36117a634b | refs/heads/master | 2021-01-21T13:43:56.892798 | 2016-04-27T13:29:08 | 2016-04-27T13:29:08 | 52,272,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-13 12:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pusher', '0004_participant_registered'),
]
operations = [
migrations.AddFiel... | [
"mattias.edin92@gmail.com"
] | mattias.edin92@gmail.com |
3b291b7d6a83ea992612d3f1eb94d21dafb8b20a | 16724f3efa1702fc0fd2b5c261e2dc50485a526e | /config_generator/port_reconfig.py | a3f6a2497e63c96c170c24ca8ada7176f38d66b1 | [] | no_license | jazheng1/switch-config-tool | f26a68e3d7a04b9c950b9fc7cc7f9bfc40720e0c | b93989402c144af65aa8ee0878dec7cc713df7c0 | refs/heads/main | 2023-06-02T08:07:28.571241 | 2021-06-23T14:40:04 | 2021-06-23T14:40:04 | 379,633,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # This program is designed to modify an existing switch port using designated templates of config.
# It first asks for a switch name to connect to, then a port you want to modify, along with user/pass for the switch.
# Then it displays the current config of the port and asks what template you want to use to modify it... | [
"noreply@github.com"
] | noreply@github.com |
4a409d614205f0a4297ec6b4f413a11636620859 | 128776be8c3404badebde79555208cb64919d0fb | /apps/08 - File Searcher/file_search.py | 4af1213a85077aae0790daf71dab2195051d09fd | [
"MIT"
] | permissive | Atropos148/Jumpstart10apps | 68a5277b3c2e72c7a38dad7cf03069b4f43a0c66 | 4b288a6f2a592b1bfb7fe6169ea566e1f236d886 | refs/heads/master | 2021-09-22T23:06:57.734101 | 2021-09-11T15:04:12 | 2021-09-11T15:04:12 | 132,234,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import os
import collections
SearchResult = collections.namedtuple('SearchResult',
'file, line, text')
def main():
write_header()
folder = get_folder_from_user()
if not folder:
print("Sorry, we can't search that location.")
return
text = get_sear... | [
"lacroix148@gmail.com"
] | lacroix148@gmail.com |
104cc2492e0a10168f19360ad9fd857a9423af02 | 7f8483b792bd2dfa732a13c26590833f5902f083 | /Aula11/face_cascade.py | caf29369a8fde7f1ca1b188f6a512db8a71ec1ec | [
"MIT"
] | permissive | thiagopollachini/introducao-opencv | c905c61a65a966d50df2838ba8463a7e0725a765 | c1b63bb2aca008821489f65479c957ce4f925c80 | refs/heads/master | 2021-09-13T23:50:20.365076 | 2018-05-06T03:19:51 | 2018-05-06T03:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import numpy as np
import cv2
face_cascade = cv2.CascadeClassifier('../xml/haarcascade_frontalface_default.xml')
img = cv2.imread('../images/messi.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
mascara = cv2.imread('../images/mascara.jpg')
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in face... | [
"viniciuscampos120@gmail.com"
] | viniciuscampos120@gmail.com |
df4bd03b7db36d8c41bc18a14ff237e55771ca14 | d609e6521735df2f62463e6aaa0b07d9fab16e18 | /ttsx/ttsx/settings.py | 15e225b9829fcfbd0b8cc6105c4967b0a761c501 | [] | no_license | pythonxiaohei/- | 4d2b698c15c24e104dca25879b8d54b0f1f42635 | d29719b40c3966be7815a07e684ed052ed448a5a | refs/heads/master | 2020-04-05T15:36:24.847125 | 2018-11-10T14:12:07 | 2018-11-10T14:12:07 | 156,976,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for ttsx project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"1976554125@qq.com"
] | 1976554125@qq.com |
7bf1e0047a530d9dd1719be95fd901b4e3c3bb99 | f7d47249f7e74bec51eacaa05f381674b92e3611 | /interview/属性property.py | 3c2afe43812b4bef2d161d13462e5c02ba739369 | [] | no_license | jinlijiang123/crawler | f96764bc5e7ae6f254e397189c4228336889a0d1 | cd3f16d04cc7c83b78d5a78afa7a57951399d490 | refs/heads/master | 2020-06-15T19:44:48.892953 | 2019-03-26T04:35:29 | 2019-03-26T04:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
不懂!!!
一.私有属性添加get和set方法 __XX
class Money(object):
def __init__(self):
self.__money = 0
def getMoney(self):
return self.__money
def setMoney(self, value):
if isinstance(value, int):
self.__money = value
else:
prin... | [
"648672371@qq.com"
] | 648672371@qq.com |
12c911a541ec8c9cb6c05676b1a960acae2f2fee | 7ab19008d25b4b24e851f61f898cf3c127f354b9 | /Exercise/Wheel of Fortune Analysis/wof_analysis.py | 203da4a83094ee22757151cb2cbb3e48c5c775e5 | [] | no_license | doyoonkim3312/PythonPractice | 588d3dfa37cd704b05f1a704076f8dfc1c55b7de | dd9cb3db39610d709d9082e59fe0a1598e1b4c51 | refs/heads/master | 2023-04-25T04:08:06.706533 | 2021-05-13T13:37:12 | 2021-05-13T13:37:12 | 334,782,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | ###############################################################################
# Author: Doyoon Kim (kim3312@purdue.edu / doyoon3312@kakao.com)
# Date: Mar 10, 2021
# Description This program counts total number of alphabet usage in phrases.txt
# file.
##################################################################... | [
"kim3312@purdue.edu"
] | kim3312@purdue.edu |
e75d6e09e3769b7572600c10891972aa35c71a29 | 3f51d8812a731fddefe80233e209ad19f1407531 | /django/form/articles/urls.py | b92978783195392394560844eb3b3b0a07008ca6 | [] | no_license | mizm/TIL-c9 | 281336cccc74809dfd5e4aa6cff0114a37059155 | 7b4c561bcbc32533852cb025a4823487caf981d6 | refs/heads/master | 2020-04-17T17:17:35.861307 | 2019-05-09T09:00:12 | 2019-05-09T09:00:12 | 166,776,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.urls import path
from . import views
app_name ='articles'
urlpatterns = [
path('new/',views.create, name ='create'),
path('<int:article_id>/', views.detail, name='detail'),
path('<int:article_id>/edit/', views.update , name='update'),
] | [
"didehgur1@naver.com"
] | didehgur1@naver.com |
38bdc3ea6ca947e1c4f96e747419a4f868b1ce18 | 08675cdb44a89ae3b0794754213d26a5e8165158 | /Week 1/test.py | 6d1211a9b56fa1b48fe7967a104d3eff7aa7ef8b | [] | no_license | thunderbird781/raspberry1 | b8e65eb57cd9938f4f5db20bbe181c34eb74da73 | b8910968f5215e936ca93a0a5d007411e4b86201 | refs/heads/master | 2021-01-18T11:57:04.547305 | 2017-03-09T00:16:20 | 2017-03-09T00:16:20 | 84,328,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | print ("hello code hive") #test program
| [
"elizabeth.matthews.lai@gmail.com"
] | elizabeth.matthews.lai@gmail.com |
13f0520cb06c1d5b01c72e414a8177cbf260b97e | e367447d1c31dcb73f9c70f5b9aefd2973d7c0f5 | /app/api/views/authentication/auth_view.py | e9efc7e7083756237eca03c08fca24f0fe645c74 | [] | no_license | Georgeygigz/the-habitat | 4a2ffc2314cb918b6e8cee724f6f0b2677d4de5a | b3ecdbe494d380d01e74ba25f6a669886e28a340 | refs/heads/develop | 2020-07-11T01:38:36.892115 | 2019-12-06T09:21:52 | 2019-12-06T09:21:52 | 204,420,182 | 0 | 1 | null | 2019-12-06T09:21:54 | 2019-08-26T07:26:25 | Python | UTF-8 | Python | false | false | 4,088 | py | # app/api/v1/views/auth_views.py
"""This is where all authentication Endpoints will be captured."""
import re
from flask_jwt_extended import (create_access_token, jwt_required,get_raw_jwt)
from flask import request, jsonify, make_response
import datetime
from functools import wraps
from passlib.hash import sha256_crypt... | [
"georgeymutti@gmail.com"
] | georgeymutti@gmail.com |
7e3d14006f561e8a72914984adf13b12dfab3a88 | b48b47fcdbf46c43633be8ffaa9ad271892ebb07 | /Explanations/11-IntroToOOP__PT2/base_class_example.py | 2fafa19dcce01e304bc7fbacd84cb4e53b6fc21e | [] | no_license | DavinderSohal/Python | 92e878c2648c9507b00fef6ee7d7ae67338219d9 | 728e77c1e55aaa00a642d76dce5d6cdf56eff788 | refs/heads/main | 2023-05-12T23:41:46.226139 | 2021-05-16T16:12:01 | 2021-05-16T16:12:01 | 340,810,583 | 0 | 0 | null | 2021-04-20T09:18:00 | 2021-02-21T03:42:21 | Python | UTF-8 | Python | false | false | 237 | py |
class A:
def __init__ (self):
print("Initializing A")
class B(A): # inherits from A
def init(self):
A.__init__ (self) #Call constructor of base class
print("Initializing B")
b = B()
#b.init()
| [
"sohal00026@gmail.com"
] | sohal00026@gmail.com |
04fdf8031b7fae2dec082a66f5e3b3acb7c4362b | 0269abd1e5f9a9ddc4ff506e63930174829dfe92 | /tutnese/tutnese.py | 5c026fdeb552462d8d5ad24fba61223ed6b8582f | [] | no_license | DrkSephy/I4330 | d1abf802a07739300a7ef558cb18a9e9e67210a3 | 06dc860529db1dabe01044412f91b5fb162f9756 | refs/heads/master | 2016-09-06T18:23:53.690922 | 2015-02-27T17:25:41 | 2015-02-27T17:25:41 | 31,239,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,996 | py | ############################
# David Leonard #
# tutnese.py #
# *~-drksephy.github.io*~- #
############################
import re
token_exprs = [
(r'squab', 'bb'),
(r'squac', 'cc'),
(r'squad', 'dd'),
(r'squaf', 'ff'),
(r'squag', 'gg'),
(r'squah', 'hh'),
(r'squaj', 'jj'),
(r'squak', 'kk'),
(r'sq... | [
"sephirothcloud1025@yahoo.com"
] | sephirothcloud1025@yahoo.com |
df11bc1e05545abc15b0e5c0f2bcbf74a4cc842e | f5e909ad8658920c5bd7e90ab712c8658b32ce52 | /BoxTest.py | 183a6e567d0ad8807a32a64c82fcc6646779406b | [] | no_license | pmartel/Sudoku | 4ab4b132034427faadca18eb2cba626709bfacac | d1ff436db6c44ecf5ab12a7fc7f0801b903de887 | refs/heads/master | 2021-01-06T20:46:48.983784 | 2018-10-08T18:20:31 | 2018-10-08T18:20:31 | 26,099,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | """ test how to get row.col from box"""
for b in range(9):
print('b',b)
print('row',(b//3)*3)
print('col',(b*3)%9)
| [
"pmartel@alum.mit.edu"
] | pmartel@alum.mit.edu |
122971286c85e126dcc8e82ca753e18a2e855065 | 9ddfd30620c39fb73ac57e79eae0a001c45db45f | /addons/activity_crm/models/activity.py | eed0da88d3f782f237d7f7aadb7cb8904596e0d0 | [] | no_license | zamzamintl/silver | a89bacc1ba6a7a59de1a92e3f7c149df0468e185 | 8628e4419c4ee77928c04c1591311707acd2465e | refs/heads/master | 2023-01-06T20:29:25.372314 | 2020-10-29T21:02:41 | 2020-10-29T21:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import logging
from odoo import fields, http, tools, _
from odoo.http import request
_logger = logging.getLogger(__name__)
from odoo import api, fields ,models
from odoo.exceptions import ValidationError
from odoo.http import request
class activity(models.Model):
_inherit='helpdesk.ticket'
@api.constrains("l... | [
"mohamed.abdalrhman0@gmail.com"
] | mohamed.abdalrhman0@gmail.com |
858a0f511aa87c57bf19b04939a8ccae247e053d | fbbaf67d3a8992eb3409416519773f2efb798277 | /notebooks/training/Training_sample_PJ.py | 3c8d1257753e7f05ff278e93e4900716d8752c6d | [] | no_license | miquelescobar/asmr-is-all-you-need | 52eb9e166fd4437abd48c6b78b48f51f9ad472a1 | 1d3e441320f7050edb60a83793e17b4aaf8462c7 | refs/heads/master | 2023-08-17T05:09:19.118356 | 2021-09-13T14:38:49 | 2021-09-13T14:38:49 | 406,009,107 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,242 | py | #!/usr/bin/env python
# coding: utf-8
# # WaveRNN - Fit a Sample
# In[1]:
import os
os.chdir('/veu4/usuaris26/footanalytics/segmentation/asmr-is-all-you-need/notebooks/training')
print(os.getcwd())
import sys
sys.path.append('../../')
sys.path.append('../../network')
# In[2]:
import time, sys, math
import nu... | [
"miqui99@gmail.com"
] | miqui99@gmail.com |
5420182c1b959f1d61944b6198a9cce2a52b0982 | f64ea492e05ab27448a08738b7e5a18b3b322e9c | /tortugaFree.py | 8e491666bd2afe93f275837081afe992274b9205 | [] | no_license | anbreaker/carreraPyGame | aa73e5dd8306cecfb87df987441cecd4228c1380 | 26294d23b1f69acbe99a8bfe5528ad2de866f07b | refs/heads/master | 2020-07-19T05:55:41.492554 | 2019-09-05T14:04:11 | 2019-09-05T14:04:11 | 206,387,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | import pygame
from pygame.locals import *
import sys
import random
class Runner():
#tupla de personajes (imagenes) de los runners
__custome =('turtle', 'fish', 'prawn', 'moray', 'octopus')
def __init__(self, x = 0, y = 0, custome = None):
#coloco imagen del corredor
ixCustome = ra... | [
"antunez19@gmail.com"
] | antunez19@gmail.com |
7c781cf14b7409060a0c856ddaa0b58260d11028 | 2618a298c764bd364ef86fc077ceaa4fd1c64a60 | /multi_maze/agent.py | 9a4a42e132d7b233d6c77a207900e19096fa8a99 | [] | no_license | sculyi/Deep-Learning | 03017bc33f53a72490ee0ceb58e7bdd0db6e34c5 | 0ef7daa8f9ff311b82bef79e1eed50ed3e4a1442 | refs/heads/master | 2021-01-15T17:50:17.482112 | 2017-12-02T04:14:53 | 2017-12-02T04:14:53 | 99,761,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,077 | py | import numpy as np
class MovingAgent():
def __init__(self,init_pos=[0,0], dst_pos=[0,0],init_head=0,width=50, height=50):
#print("start pos = {}, dst pos={}".format(init_pos,dst_pos))
self.last_pos = []# save history positions of the agent
self.cur_pos = init_pos # start position
... | [
"noreply@github.com"
] | noreply@github.com |
c7c76a95e132383229ab1880ccf18627e229417e | 2a979b2dfc1e9bce8d93fb8c2d219c0122e50b66 | /SWEA_D1D2/1976. 시각 덧셈.py | 48132df3b4b80dd126a4ea219a8f86f9105af43b | [] | no_license | JohnHamm0nd/algorithm | 8b1bf1b58790da0b8c6482b6ce068fd29316a374 | 13c00cbc270cc197327e97f61f7d2ed80dc81358 | refs/heads/master | 2020-07-07T07:43:04.523954 | 2019-11-07T02:54:55 | 2019-11-07T02:54:55 | 203,294,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
시 분으로 이루어진 시각을 2개 입력 받아, 더한 값을 시 분으로 출력하는 프로그램을 작성하라.
(시각은 12시간제로 표시한다. 즉, 시가 가질 수 있는 값은 1시부터 12시이다.)
[제약 사항]
시는 1 이상 12 이하의 정수이다. 분은 0 이상 59 이하의 정수이다.
[입력]
가장 첫 줄에는 테스트 케이스의 개수 T가 주어지고, 그 아래로 각 테스트 케이스가 주어진다.
각 테스트 케이스의 첫 번째 줄에는 4개의 수가 주어진다.
첫 번째 수가 시를 나타내고 두 번째 수가 분을 나타낸다. 그 다음 같은 형식으로 두 번째 시각이 주어진다.
... | [
"junho313@naver.com"
] | junho313@naver.com |
6b6373b045d60a93ea0b36da1938223cd68426cf | 279413691f027db9a0b4d545899db9f76ebb8464 | /r1.py | 181eec3c4ab70d8ee95229ed5b9348443ca88aa6 | [] | no_license | T-Javis/RNN-Binary-system-plus | 0a742e0cb3c6d5b4fed07499c9d52a772dd081b4 | e841852fc913658354c8c2c63427f397a4e8ff66 | refs/heads/master | 2021-01-20T12:28:40.503160 | 2017-02-21T08:48:51 | 2017-02-21T08:48:51 | 82,657,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,505 | py | import copy, numpy as np
np.random.seed(0)
# compute sigmoid nonlinearity
def sigmoid(x):
output = 1/(1+np.exp(-x))
return output
# convert output of sigmoid function to its derivative
def sigmoid_output_to_derivative(output):
return output*(1-output)
# training dataset generation
int2binary = {}
bin... | [
"cirxfjyw@mail.bccto.me"
] | cirxfjyw@mail.bccto.me |
2847ad76c81be71b6db9629a664e76824972e3e8 | 256fec0d4f8d96a37f4dfad88acd7585b5607bdb | /transit_odp/site_admin/forms.py | 90db23f1631595e21204fb1adc2ecd248e0bea00 | [] | no_license | burlacenko/bods | b13a523d2e30fab6286d7c7515abfa800afc8209 | 5a4d490fc7142715a357255eb6b48cce4ab64c10 | refs/heads/main | 2023-07-26T12:59:52.633762 | 2021-08-24T11:14:05 | 2021-08-24T11:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,559 | py | from crispy_forms.layout import ButtonHolder, Field, Layout
from crispy_forms_govuk.forms import GOVUKForm, GOVUKModelForm
from crispy_forms_govuk.layout import ButtonSubmit, LinkButton
from crispy_forms_govuk.layout.fields import CheckboxSingleField
from django import forms
from django.contrib import auth
from django.... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
63e933800e2d19f9323b0119310390270a238f10 | 9988b0ab12b7ff3a61cc8e4fd4ebd3cc7239f224 | /www/static/app.py | af99520f2b0ebe8eff96391fb79e619ec072f790 | [] | no_license | onceonmydoor/python3-webapp | c19f04801b9301d50fd06a9ebb1acf27df27da8d | 2a30c37bfc3dde1374b74d611be184f4c4dbd61f | refs/heads/master | 2020-04-13T19:27:03.518929 | 2018-12-28T12:00:57 | 2018-12-28T12:00:57 | 163,402,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import logging;logging.basicConfig(level=logging.INFO)
import logging; logging.basicConfig(level=logging.INFO)
from aiohttp import web
def index(request):
return web.Response(body='<h1>Awesome</h1>'.encode('utf-8'),content_type='text/html')
def init():
app = web.Application()
app.router.add_route('GET'... | [
"hzj.boxes@gmail.com"
] | hzj.boxes@gmail.com |
6a40790f672e4d1d3e784fb7a0f362677fef2494 | e506ad5c7e8da9159771dbca1c60a19bb0433556 | /base/thirdparty/ACE/timex_mention.py | 16f99aa55949a7c37499546dddd60792831b18d2 | [] | no_license | FantasyoO666/delta-learning-for-ed | 9aeb2b2d481dbbc747abba43a7bda161978b8813 | a4b03cdc9d36af706250c4f6c8d1083a1a5d83a5 | refs/heads/master | 2022-01-21T16:22:50.149451 | 2019-08-20T10:25:12 | 2019-08-20T10:25:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Created by Roger on 2018/2/19
from .mention import Mention
from .charseq import CharSeq
class TimexMention(Mention):
def __init__(self, id, timex, extent):
"""
:param id: str
:param timex: Timex
:param extent: charseq
"""... | [
"luyaojie1993@gmail.com"
] | luyaojie1993@gmail.com |
0dcedff9199e5313201e0475f487cf8386ed7ae1 | 5e5caf3ec6e50f1d5b5c445c462c9ce328e01e70 | /WebDeveloping/models/database.py | 0f684e48f6ae338bc45bcb6e2cfdae342394a586 | [] | no_license | janaobsteter/PyCharmProjects | f6a254e6fbc3f068e1c798d3489f52aac9c1bea3 | 2d9e14ad821a7dcec352eb3bb2d053fb49d8fb42 | refs/heads/master | 2021-07-16T23:56:41.287470 | 2020-05-12T11:59:58 | 2020-05-12T11:59:58 | 156,727,320 | 0 | 0 | null | 2020-05-12T12:05:26 | 2018-11-08T15:25:59 | Python | UTF-8 | Python | false | false | 701 | py | import pymongo
class Database(object):
URI = "mongodb://127.0.0.1:27017" #universal resource indentifier
DATABASE = None
@staticmethod
def initialise():
client = pymongo.MongoClient(Database.URI)
Database.DATABASE = client["webdeveloping"]
@staticmethod
def insert(collection,... | [
"obsteter.jana@gmail.com"
] | obsteter.jana@gmail.com |
8c0d9de7d05a97c3bee7a98b39df86ac8b75898a | ac4145fb85bde7313d8641d3093940a87af8062f | /flask/timeline.py | e637cd97da0a037974375b9e74af9e510897668c | [] | no_license | arrpak/KSCHOOL-TFM-1 | 22d89a749692ba3715ae8347d72cfcb8b0306b60 | 886fa6c066782c5588435514bd4b9af48689c8ad | refs/heads/master | 2021-01-22T19:53:54.763137 | 2016-11-30T10:51:46 | 2016-11-30T10:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | def tweets_timeline(query='Jets', hourP=10000):
from pymongo import MongoClient
from datetime import datetime, timedelta
MONGODB_HOST = 'localhost'
MONGODB_PORT = 27017
DBS_NAME = 'KSCHOOL_TFM'
COLLECTION_NAME = 'tweets'
connection = MongoClient(MONGODB_HOST, MONGODB_PORT) #gettin... | [
"noreply@github.com"
] | noreply@github.com |
dd94c2ee421d7aa76339e07bb662af5dcf6d79de | 694ab768fcd52ee39941fd3097d9a6d5f7698ba3 | /lesson7/task1.py | 7410b68fb95375fe9bc2da13b856e6424a1f189c | [] | no_license | anatolytsi/python_basics_homeworks | 1c811fb8ac6f24813a981af1f1bb9276733fc141 | f317f89834411bcb65bc48429dda207cc65c8c06 | refs/heads/master | 2023-03-02T02:44:19.171660 | 2021-02-04T09:21:34 | 2021-02-04T09:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | """
Реализовать класс Matrix (матрица). Обеспечить перегрузку конструктора класса (метод __init__()), который должен
принимать данные (список списков) для формирования матрицы.
Следующий шаг — реализовать перегрузку метода __str__() для вывода матрицы в привычном виде.
Далее реализовать перегрузку метода __add__() для ... | [
"tsirkunenkoat@gmail.com"
] | tsirkunenkoat@gmail.com |
97f8e319c9eb5577233928243a1173d9b418f7e2 | 7239f6985e975309c8b75b5796c5b8af0a301566 | /Exercice1/USER_MATERIALS/select_all_user_material.py | 1362afef6c13e5806a46786b99eef4bb658c0e2d | [] | no_license | omohammed95/MOHAMMED_OSMAN_DATABASE_1C_2020 | e8219a15cddd6a4f02989a5a3b4a2f9b0f3700d0 | a60ac414fb5fdc42fd58d78c91b4fa56e43847df | refs/heads/master | 2021-04-04T07:35:36.324951 | 2020-07-02T21:16:14 | 2020-07-02T21:16:14 | 248,437,989 | 0 | 1 | null | 2021-03-20T03:58:39 | 2020-03-19T07:28:53 | Python | UTF-8 | Python | false | false | 2,386 | py | # select_all_user_material.py
# OM 2020.03.26 le but est d'afficher tous les lignes de la table "t_genres_films" en MySql.
# Importer le fichier "select_table.py" dans lequel il y a quelques classes et méthodes en rapport avec l'affichage des données dans UNE SEULE table.
import json
from Exercice1.DATABASE.SELECT im... | [
"os.mohammed.osman@gmail.com"
] | os.mohammed.osman@gmail.com |
17560bd5f9f10b9e74273cc868dfde2efc1484a4 | 709c693f7c0ee695020d74f0f4434e0e495c4b37 | /2013/fairandsquare/fairandsquare.py | da0ddb7ee812c3ceef33441eb30e83d8aeae02eb | [] | no_license | mstepniowski/codejam | 75cdf5db20c28409cecc361a653798637de6349e | c85d24f2f6d1c333acea16ce3e54b8fb0e7020fe | refs/heads/master | 2021-01-01T05:34:28.045438 | 2014-05-04T02:50:22 | 2014-05-04T02:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # http://mathforum.org/library/drmath/view/51510.html
NUMBERS = [1, 4, 9, 121, 484, 10201, 12321, 14641, 40804, 44944, 1002001, 1234321, 4008004, 100020001, 102030201, 104060401, 121242121, 123454321, 125686521, 400080004, 404090404, 10000200001, 10221412201, 12102420121, 12345654321, 40000800004, 1000002000001, 10020... | [
"marek@stepniowski.com"
] | marek@stepniowski.com |
84601ab634b5f6671bed9cde9880ffdae7c2c43a | b353fb05fd16ae7bad53d2057d71f29cfc3fd411 | /js2py/prototypes/jserror.py | 4ea19c758703e3d14cfb839db246d26c1f111fc0 | [] | no_license | barseghyanartur/Js2Py | edf06d302b0477f5854ee653a8b8a932d77cee83 | 36729de70325ad1fea251c52328bdceba9712282 | refs/heads/master | 2021-01-17T15:45:23.107297 | 2015-06-10T09:35:35 | 2015-06-10T09:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py |
class ErrorPrototype:
def toString():
if this.TYPE!='Object':
raise this.MakeError('TypeError', 'Error.prototype.toString called on non-object')
name = this.get('name')
name = 'Error' if name.is_undefined() else name.to_string().value
msg = this.get('message')
ms... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
a6dbd788d0d9bde9401a79da5825a86b381902b3 | 5507b66702cc5370259ee35118011cc69add0246 | /cart/cart.py | bd77343764cdcce7abdcd6875b224b65661eebc3 | [] | no_license | teros0/django-shop | 6ec2c63a2db26c91cf112e183bcd1bcc7dcd7349 | 23c1848906004eabf8fe332b47e3845653316fed | refs/heads/master | 2020-12-24T12:32:08.842899 | 2016-11-30T14:32:16 | 2016-11-30T14:32:16 | 72,989,244 | 0 | 3 | null | 2016-11-08T11:20:58 | 2016-11-06T12:30:51 | Python | UTF-8 | Python | false | false | 2,387 | py | from decimal import Decimal
from django.conf import settings
from shop.models import Product
class Cart(object):
def __init__(self, request):
"""
Initialize the cart.
"""
self.session = request.session
cart = self.session.get(settings.CART_SESSION_ID)
if not cart:
... | [
"nameless1nemo@gmail.com"
] | nameless1nemo@gmail.com |
742272efd7bf353f3c6b1589fbd1db446d54ac64 | 1570a00322588f8b7ea76163e9d2ea8f97876065 | /examples/01/clone.py | c1405448f186057f7452d8b67ec7ae94e3679e43 | [
"Apache-2.0"
] | permissive | pyaillet/ebpf-discovery | ce7aa280da1d15caa205152aed41c9f59f246564 | f152690ac641bf9cde8fde9b5b16c45a641b9343 | refs/heads/master | 2020-06-05T17:53:04.125720 | 2019-07-08T15:16:15 | 2019-07-08T15:16:15 | 192,503,728 | 0 | 0 | Apache-2.0 | 2019-07-08T14:04:57 | 2019-06-18T08:58:50 | null | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/env python
import os
import time
def child():
print('New child ', os.getpid())
os._exit(0)
def parent():
while True:
newpid = os.fork()
if newpid == 0:
child()
else:
time.sleep(3)
os.waitpid(newpid, 0)
parent()
| [
"pyaillet@gmail.com"
] | pyaillet@gmail.com |
43292353133db5aaa14790aa2ea784c1479a3ab2 | f967e571577b3d037a58610e152a76ceb8094314 | /ClusterUtils/DBScan.py | 97cb92d34eddda5eca8313e84b714dd558fced2e | [] | no_license | twillkens/ClusterUtils | 5a95f7e3e0872ec173c43617c62b27ff3cde766c | 92db3149b20b53482eb51efb68d1fa001835cbfb | refs/heads/master | 2020-03-28T22:08:56.587293 | 2018-10-01T19:36:46 | 2018-10-01T19:36:46 | 149,208,262 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | import pandas as pd
import numpy as np
import time
from ClusterUtils.SuperCluster import SuperCluster
from ClusterUtils.ClusterPlotter import _plot_generic_
def dbscan(X, eps=1, min_points=10, verbose=False):
# Implement.
# Input: np.darray of samples
# Return a array or list-type object corresponding t... | [
"tcw@Jordans-MBP.cable.rcn.com"
] | tcw@Jordans-MBP.cable.rcn.com |
0d72aa6a076fcded774eb89904bc4d34271cc0aa | 799a390a86daabe17f684bc32ea505bfd1f2c112 | /backend/blog_life/wsgi.py | 14b4c893926865a7b6ce0a116a429af175309642 | [] | no_license | AhmedSoliman92/Blog-app-django-react | 23755ed63b36523c45457d05b9caf05718e5d27a | d42ceaf0930cd4cde6e837969ba7acd9caf9cd51 | refs/heads/main | 2023-07-13T13:21:50.465331 | 2021-08-18T01:42:32 | 2021-08-18T01:42:32 | 397,340,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for blog_life project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"ahmed.soli101@gmail.com"
] | ahmed.soli101@gmail.com |
b49890e253f33a41f74fc1745e616f9449e44f59 | 5f6233ba455bbce5c64a95e0ecffc57631320520 | /gethsemane_project/api/ShipCombat/Models/Program.py | b21c1b380a4a90ca245a4686a65190e903e275f7 | [] | no_license | geier4701/gethsemane | ac90bbe0f4b182630ef22dfa916799ac9c7a5d13 | ef727b44a3c06379a5597accdefbdd6cd6765b78 | refs/heads/master | 2022-04-17T17:24:13.398844 | 2020-04-14T22:01:01 | 2020-04-14T22:01:01 | 165,969,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from typing import List
from api.ShipCombat.Models.Subroutines.Subroutine import Subroutine
class Program:
program_id: int
name: str
subroutines: List[Subroutine]
def __init__(self, program_id: int, name: str, subroutines: List[Subroutine]):
self.program_id = program_id
self.name = name
self.subroutines ... | [
"geier4701@gmail.com"
] | geier4701@gmail.com |
8624e95de67d60c847a94f25c5a35512db761bc5 | 16cec5e43f02906e14d98d4f53f59a4b4fd74625 | /DL_HW1/Question_1/utils/__init__.py | dcdd9053df3b386a37065832a92c7671be514f18 | [] | no_license | EthanLiao/Deep_Learning_NCTU_Homework | 150e70ca6ad61f789bb7cfb23584be94f4236d4c | a3e075dbd797d6965c1bd01c7e54855c563032d6 | refs/heads/master | 2022-11-12T19:24:08.702634 | 2020-07-02T03:30:51 | 2020-07-02T03:30:51 | 264,079,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | # from .utils import *
| [
"simon7766112233.eed04@nctu.edu.tw"
] | simon7766112233.eed04@nctu.edu.tw |
4091e72a1bcb8211316043f7716ec35cd20b96ca | 48184fbfce5221022760ea5cf10978a4c79f0fe3 | /firmware/spiders/trendnet.py | bbc543a8d8b03b3132ded03a36ba3ce3bebc243b | [
"MIT"
] | permissive | MikimotoH/scraper | 7c1b7bd2322d4d3ff1ad7eeb6143f55442028471 | 375e41be2f7d17f7b56b38b7a6324f1c9eb7b331 | refs/heads/master | 2020-04-05T23:32:55.055613 | 2016-09-24T23:46:32 | 2016-09-24T23:46:32 | 60,673,858 | 2 | 0 | null | 2016-06-08T06:23:49 | 2016-06-08T06:23:48 | null | UTF-8 | Python | false | false | 2,452 | py | from scrapy import Spider
from scrapy.http import Request
from firmware.items import FirmwareImage
from firmware.loader import FirmwareLoader
import urlparse
class TrendnetSpider(Spider):
name = "trendnet"
allowed_domains = ["trendnet.com"]
start_urls = ["http://www.trendnet.com/support/"]
def parse... | [
"d.c.ddcc@gmail.com"
] | d.c.ddcc@gmail.com |
0b74b6f496b04b66b37c76c57d882b70ad8e56bc | c7ca9a72d051f9e24302d8b327e6f6962814951b | /16/part1.py | 115e2c16e6fd26ac47eea1646e1c9709b8814ea9 | [] | no_license | imba28/advent-of-code-2020 | 96dd83d4df145b65d31f4239bffa61b07e2c01c5 | 26e79ae6d1b523902e1a1e2a444acd0bc94f8158 | refs/heads/master | 2023-02-13T22:55:07.601221 | 2021-01-14T14:54:41 | 2021-01-14T14:54:49 | 319,702,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import re
def _parse_int_list(string):
return [int(v) for v in string.split(",")]
def other_tickets_state(line, data):
if line == "\n":
return None
if "nearby tickets" not in line:
if "other_tickets" not in data:
data["other_tickets"] = []
data["other_tickets"].append... | [
"lgruber.mmt-b2016@fh-salzburg.ac.at"
] | lgruber.mmt-b2016@fh-salzburg.ac.at |
5e47459e9d1072ac065a1fa1ea1624a8399ebe4c | cec26f63986ea948315bdc4120aabdcbe0665cf1 | /eval/collabwebdb_data/plot_scripts2/helper.py | 8ce76938bc2f4a23ddac282104828213fd70ca37 | [] | no_license | ryscheng/CollaborativeWebDB | a3c22ef31191928d0444337a3259db104521f05a | 429f4e924efd872bda252ef4871526acaf47b64b | refs/heads/master | 2021-01-20T06:54:56.444976 | 2012-12-13T00:46:04 | 2012-12-13T00:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | #!/usr/bin/python
import sqlite3
import sys
import os
import errno
import random
import gzip
import resource
import logging
import logging.handlers
import time
from optparse import OptionParser
import subprocess, threading
import re
class Point(object):
def __init__(self,time,d):
self.time = time
... | [
"RaymondYSCheng@gmail.com"
] | RaymondYSCheng@gmail.com |
3a01fd00648abf1614985d8888185c470bb3ef9f | 9a5bded09adcc62b5ffeef6e6f9b4a7a8072741a | /Archive/Insurance_Amount.py | c03119510bde0cb7559b94c04996f3d068141bf0 | [] | no_license | njpayne/pythagoras | 81983f928a77b2be8ac2f59b058b6429a3c789bc | 925bb5c635c096a0ced4a378d9f3f042bc491249 | refs/heads/master | 2020-07-26T21:12:22.700774 | 2015-08-04T05:10:38 | 2015-08-04T05:10:38 | 12,442,527 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # Many financial experts advise that property owners should insure their homes
# or buildings for at least 80 percent of the amount that it would cost to replace the structure.
# Write a program that asks the user to enter the replacement cost of a building and then
# displays the minimum amount of insurance he or she ... | [
"njpayne@sfu.ca"
] | njpayne@sfu.ca |
c25f6e781b6f88fd2a0ce9847c95d3bfeddf9394 | 102599c40f41f0c2b440c1923b4855b86cd1fac5 | /python/models/lookup.py | d7c29f685518bf548ff9a3bd766626a575b3f441 | [
"MIT"
] | permissive | project-anuvaad/anuvaad-corpus | b9c3390773736fe350ada3ad1a80a53530d1f6df | abf0ef866eb4cc52a84b4e05daaac211d7ca2333 | refs/heads/master | 2022-12-14T19:47:46.264884 | 2020-11-23T14:08:58 | 2020-11-23T14:08:58 | 197,180,339 | 2 | 2 | MIT | 2022-12-10T06:03:09 | 2019-07-16T11:23:26 | JavaScript | UTF-8 | Python | false | false | 120 | py | from mongoengine import *
class Lookup(Document):
text = StringField(required=True)
value = StringField()
| [
"moryamayank9@gmail.com"
] | moryamayank9@gmail.com |
53e6112d9de22126e23635425ff166548b6a3860 | dc3e0f7e75cb8bbcf6b261a607353c7036297304 | /test_autolens/plot/inversions/interferometer/voronoi.py | a60dec2df8f865a29acd45204c9a540951dc4e7d | [
"MIT"
] | permissive | a-mere-peasant/PyAutoLens | 38db2e83ba0136fe6bfc0efa404bfafb7f6379e6 | 462634ff57afde86531146a51019b47c40f10874 | refs/heads/master | 2021-03-05T04:12:39.010444 | 2021-01-08T15:46:16 | 2021-01-08T15:46:16 | 246,093,699 | 0 | 0 | MIT | 2020-03-09T17:00:55 | 2020-03-09T17:00:54 | null | UTF-8 | Python | false | false | 2,094 | py | import autolens as al
import autolens.plot as aplt
import numpy as np
from test_autolens.simulators.interferometer import instrument_util
interferometer = instrument_util.load_test_interferometer(
dataset_name="mass_sie__source_sersic", instrument="sma"
)
# aplt.Interferometer.visibilities(interferomet... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
325606a2957c215ef5d7c2f31f0727e4e12f5933 | d837ec03d56083939f2ff6740bfc51dd6009b243 | /nilesh/django-proj/projects/gharkakhana/gharkakhana/settings.py | edaedaf016cdcd793a468bb524ffe98211e5fe5b | [] | no_license | NilatGitHub/MyProject | 8c5822269813358ad0a73afbc809b29bafc127a4 | 8c43bcebcb7521fea348382b6fffbebccbc9e34d | refs/heads/master | 2022-01-18T06:05:59.452276 | 2019-08-01T10:27:03 | 2019-08-01T10:27:03 | 197,936,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,565 | py | """
Django settings for gharkakhana project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"nil.patil28@gmail.com"
] | nil.patil28@gmail.com |
24129b8d14849fee1e68ba2eb13dd7713bd0d837 | d0c35162ca6f4725c61239b859e888d4d79e9a9c | /mysite/polls/views.py | c046aa8bd0c9858d3dd7933931d03b2c99fabdad | [] | no_license | sunshine2323/django_polls | b129ba2fd3a206e17c5bdfbc5c8a5bcb749c7366 | f91adf02c77c66d6c5f04c410df3aa5e25dbe12d | refs/heads/master | 2021-05-08T13:20:11.450883 | 2018-02-02T17:17:58 | 2018-02-02T17:17:58 | 120,009,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
co... | [
"wsun@unomaha.edu"
] | wsun@unomaha.edu |
0ab5952214283207e1593af4f8dd520d2147644a | 77253c9c186ff13427b341b984dfcd56db0d1085 | /psdaq/psdaq/pyxpm/pvctrls.py | 2cdbbf704fbb7fd5f4589ebddfcb75d28d21308f | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/lcls2 | a196aa7659c13ba6462d5dd631f7dfe3f2d8b5ec | 66194e5f73d4d675706fbad632e86da1527173eb | refs/heads/master | 2022-11-20T07:37:00.347602 | 2020-07-21T07:18:12 | 2020-07-21T07:18:12 | 281,561,069 | 0 | 0 | null | 2020-07-22T03:07:40 | 2020-07-22T03:07:39 | null | UTF-8 | Python | false | false | 20,173 | py | import sys
import time
import traceback
import threading
import socket
import struct
from p4p.nt import NTScalar
from p4p.server.thread import SharedPV
from psdaq.pyxpm.pvseq import *
from psdaq.pyxpm.pvhandler import *
# db support
from psdaq.configdb.typed_json import cdict
import psdaq.configdb.configdb as cdb
from ... | [
"weaver@slac.stanford.edu"
] | weaver@slac.stanford.edu |
0555f1450060ed1571993e78c9aaa4d36810230d | 8c91c587431f1bdd635056f9c400a85f651036d4 | /myProject/settings.py | c578570541199cfbffd273935a34e23fdd1e1e9c | [] | no_license | sajjad0057/Musician-Hub--2 | fc0208ca6adac18b00c46cb2ec6b991dce154c05 | 18d5156c02a57f369c5dec3a41c45660cc78608b | refs/heads/master | 2023-01-14T16:51:45.996964 | 2020-11-26T20:31:14 | 2020-11-26T20:31:14 | 316,331,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | """
Django settings for myProject project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"sajjadhossain0057@gamil.com"
] | sajjadhossain0057@gamil.com |
5a07a92a98ffc1815112392dbca952a1a506dd2a | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/tutorial/control/summary.py | e547a4605339a90053a71c308da810726c10252a | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,291 | py | # 2016.05.01 15:25:27 Střední Evropa (letní čas)
# Embedded file name: scripts/client/tutorial/control/summary.py
from tutorial.control.functional import FunctionalVarSet
from tutorial.logger import LOG_ERROR, LOG_DEBUG
class _Flag(object):
def __init__(self, name, active, store = True):
super(_Flag, self... | [
"info@webium.sk"
] | info@webium.sk |
c495d41b0499d638fd6f1b6b31a43fd9aeb1a2ee | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_competition/feature_engineer/__init__.py | 54c1f55b4e4c6a8fda4cc01b63e5c77a85f20ed1 | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 782 | py | from .fe_count import FeatureCount
from .fe_stat import FeatureStat
from .fe_rank import FeatureRank
from .fe_target_encoding import FeatureTargetEncoding
from .fe_dimension_reduction import FeatureDimensionReduction
from .fe_nlp import FeatureNlp
from .fe_denoising_autoencoder import FeatureDenoisingAutoencoder
from .... | [
"946691288@qq.com"
] | 946691288@qq.com |
7617720cd8cab93ae19e77a855aafa05ba4ce40a | fdfb0ef1757c899cbde0aa5fb8dccf17f54451ef | /utility.py | 2ee5720509ff9b9f722596cb54ac071a89107926 | [] | no_license | schinwald/sorter-demo | 0e5e3d9cdda00d0651aa7f5ed43eb196365a6806 | 62bba2d6a06e12c7103f30e370b509f4f5cc2bea | refs/heads/master | 2020-03-20T19:16:07.513132 | 2018-08-30T00:57:09 | 2018-08-30T00:57:09 | 137,629,660 | 2 | 0 | null | 2018-08-30T00:57:09 | 2018-06-17T04:48:19 | Python | UTF-8 | Python | false | false | 211 | py | # Description:
# Common functions needed by sorting algorithms
#
# Author: James Schinwald
# swaps to elements in an array
def swap(array, a, b):
temp = array[a]
array[a] = array[b]
array[b] = temp | [
"jamesschinwald@gmail.com"
] | jamesschinwald@gmail.com |
524aeb845c4efb6e5784fd628ae8a40f7f099a43 | 012e922a357ff60abe0dd4c1e13df2820886a7a4 | /backend/csi1_28203/settings.py | 8423d39667e59e29b80186f265f97bf7558e63e7 | [] | no_license | crowdbotics-apps/csi1-28203 | 73bc3dfca64f5517d3d9a57dd32c052ac2657394 | 5e9b9f92c97e17e6176ae8a5650470d63d19bede | refs/heads/master | 2023-06-09T16:50:24.413408 | 2021-06-24T13:18:03 | 2021-06-24T13:18:03 | 379,931,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,096 | py | """
Django settings for csi1_28203 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9dc24245f7328179558ddd6f30113d92a1289fae | 1d9e6b08510537976552dde2e5f3bd6befea4a55 | /coding_test/venv/bin/pip | f1b5fc84f83d24b895956a9bcdbe89f5c4a6c673 | [] | no_license | dan8919/python | 3232a30882207cf04bb1064b5697afbe2a7e1704 | c07d52de49050b20f6d4ee58cff8923518938c73 | refs/heads/master | 2022-12-13T18:29:30.185429 | 2020-09-12T02:47:05 | 2020-09-12T02:47:05 | 294,595,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/cuixindan/PycharmProjects/coding_test/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cuixindan1@naver.com"
] | cuixindan1@naver.com | |
b81d61e852105a9811e5bc89828c9dd62c172ace | b47ee8aed3c76d1a9222f3563bb6592f7e9d6eed | /selection_sort.py | a7f50605d53fe7ed772fc1503fed20d98c834a7c | [] | no_license | ranjithkumar121/Python | 3697554852335d9af8683a554a3f36e146ab109e | 5af562edca1a792141974d26962415533c12045e | refs/heads/main | 2023-06-19T00:18:08.191503 | 2021-07-12T07:05:18 | 2021-07-12T07:05:18 | 347,558,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | def selection_sort(lst):
for i in range(len(lst)):
min_value=i
for j in range(i+1,len(lst)):
if lst[min_value]>lst[j]:
min_value=j
lst[i],lst[min_value]=lst[min_value],lst[i]
return lst
lst=[4,8,1,8,10,2,5]
print(selection_sort(lst)) | [
"noreply@github.com"
] | noreply@github.com |
6526c5b02b70dc5bb52035135f937754e2b56c49 | 59d832eac4947e88a2bc8e821d6544ef8ad76df3 | /spark.py | f1234d57295e0a657eec815fd158578434e44011 | [] | no_license | jianyigengge/spark | f4834910da556900f171d6acc7b550e33018a687 | 74e682f71214789e33c54f2f8929ef7a45fa313e | refs/heads/master | 2020-04-15T10:22:26.704860 | 2019-01-08T07:49:47 | 2019-01-08T07:49:47 | 164,593,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,306 | py | # -*- coding: utf-8 -*-
#导入需要的模块
from pyspark.mllib.classification import LogisticRegressionWithSGD
from pyspark.mllib.regression import LabeledPoint
from pyspark import SparkContext
from pyspark.mllib.classification import SVMWithSGD
from pyspark.mllib.tree import RandomForest
#关闭上一个进程
try:
sc.stop()
except:
... | [
"noreply@github.com"
] | noreply@github.com |
578c807f059ce2cad367335f76393e947a627dec | e5f5fa6d8e148cf515dc33d59244c8bcdae368f0 | /students/thorn/lesson02/series.py | 8078d3c6f6be633ea66d527d52191165fcc95040 | [] | no_license | nataliewang919/Self_Paced-Online | 88de884d803ef04ca4608e856bbc600e9d852d2b | e2e20d49782610016a918dc50cf4eceb9000b8a0 | refs/heads/master | 2021-04-30T00:29:22.086971 | 2018-02-15T03:49:02 | 2018-02-15T03:49:02 | 121,460,168 | 0 | 0 | null | 2018-02-14T02:03:23 | 2018-02-14T02:03:23 | null | UTF-8 | Python | false | false | 2,249 | py | '''
Thomas Horn
The following definitions are used to computer the Fibonacci and Lucas Series
throughout this program.
Fibonacci - starts with 0, 1 and sums the previous 2 numbers
Lucas - starts with 1, 2 and sums the previous 2 numbers
'''
def fibonacci(n):
""" Returns the nth value in the fibonacci seque... | [
"hortw1991@gmail.com"
] | hortw1991@gmail.com |
a6437ae02fe2a9cc66bc0a3160a7b099ef4f553c | 110d53cf8971d9b475b1eb1c184f80b0936d7633 | /myexcel/storetomysql.py | 2f321e723cecd13eb1aa6ffbcbd449a73c501060 | [] | no_license | gitghought/python1 | e8553ae0f0d3a84ce2f1283d23db9863bb79457f | b9a86696679dca4f8532fe2e1ed1fe1606fdbb80 | refs/heads/master | 2020-04-23T21:27:42.548827 | 2019-04-18T09:15:07 | 2019-04-18T09:15:07 | 171,471,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,695 | py | import pymysql
from myexcel.MyInclude import MyInclude
import json
class MySQLConnection () :
#服务器端的ip地址
serverIP = "localhost"
#数据库用户名
username = "root"
#数据库密码
password = ""
#数据库名
databaseName = "studentscore"
#在读取数据库中的图片时,使用的地址
mysqlPrePath = serverIP
keyFiveTimesClass = ... | [
"732475885@qq.com"
] | 732475885@qq.com |
b1cc9ddc62e8e64b7ceefb5b598d2ce0edcb0644 | ccb0133cd3dbd2f430a81fb85cf5d186b1cfc426 | /securetrading/abstractstobject.py | 4962b378dbd8e3a854cdc5cd3ebd6266bde50290 | [
"MIT"
] | permissive | SecureTrading/st-python-api | eeec5fdafd962fd6d612296448be61b1a8e196b3 | 812b99e5f8d079c3c5c735b6ee79d406fa4ab15c | refs/heads/master | 2022-11-14T05:59:43.010306 | 2022-10-25T19:48:09 | 2022-10-25T19:48:09 | 56,777,572 | 2 | 1 | MIT | 2019-08-18T13:47:49 | 2016-04-21T13:49:50 | Python | UTF-8 | Python | false | false | 1,445 | py | from __future__ import unicode_literals
import securetrading
class AbstractStObject(dict):
"""The default Object class inherited by all Secure Trading Objects."""
def __init__(self, request_reference=None):
super(AbstractStObject, self).__init__()
def verify(self):
"""This should be over... | [
"devapi@securetrading.com"
] | devapi@securetrading.com |
27384ee911c97c609e72c2b8da5bc8f75cc6ba5f | cf0cd48fad4083cd6b601b5250b884fa77911ec7 | /JavaLexer.py | 4f14750ed85b21dd33a6ae75552c15ccad90bdee | [] | no_license | hatc/C4.5-decision-tree-cpp | 9f1a3aea89aedf503fffd28da1610aaf014a573f | 0ea0f91e79ee56292aa2b93e72ce4ed7faf2e2b8 | refs/heads/master | 2021-01-20T11:06:12.366590 | 2013-01-24T21:29:35 | 2013-01-24T21:29:35 | 7,760,788 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130,341 | py | # $ANTLR 3.4 Java.g 2012-09-20 01:12:57
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
ABSTRACT=4
AND=5
AND_ASSIGN=6
ANNOTATION_INIT_ARRAY_ELEMENT=7
ANNOTATION_INIT_BLOCK=8
ANNOTATION_INIT_D... | [
"admin@localhost.localdomain"
] | admin@localhost.localdomain |
b38a41816cd1d881bbd42a2e2799dc9ff0537b61 | efe60e67d113ec19b0528c005597768e22c120b1 | /development/pdf_to_tiff/__init__.py | aa63407dc7c5fdf2e7951cf6b3ae3b6e06608ede | [
"MIT"
] | permissive | FujinamiRyohei/pdf_to_tiff | ef232b6da17b6c66e4ab490287ed75744e7bf138 | 11489dca943cc1f0c9dd99dc99599e2235473893 | refs/heads/master | 2022-07-13T11:39:22.562193 | 2020-05-11T09:23:59 | 2020-05-11T09:23:59 | 262,969,635 | 0 | 0 | MIT | 2020-05-11T09:24:00 | 2020-05-11T07:25:20 | null | UTF-8 | Python | false | false | 744 | py | from pathlib import Path
from pdf2image import convert_from_path
def convert(input_path, output_path=""):
path = Path(input_path)
if not path.exists():
raise Exception(f"Input file {path} does not exist.")
images = convert_from_path(str(path))
if not output_path:
output_path = path.wit... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
d869b8c796aab6c8f1f0aa9bf014786a884aa1c4 | ce5f9a80a06662a6e27dc455795b302af49c8946 | /passwordsecure/migrations/0001_initial.py | f7bba0be7b72f159c969b5096799449855615a41 | [] | no_license | amra0760/mysite | 819d572ce2b4cb150e02e29cfdc5b28f5e55ace3 | 8bc14dcbad04d71137bce5dc2f00178df26cf0aa | refs/heads/master | 2020-03-19T03:24:29.986352 | 2018-06-01T14:05:08 | 2018-06-01T14:05:08 | 135,725,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Generated by Django 2.0.5 on 2018-05-30 08:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Website',
fields=[
('id', models.AutoField(... | [
"amra0760@hstat.org"
] | amra0760@hstat.org |
de2d839b60a73ddb17f56fec860dc5252ab08a73 | a3bfccd69d92d29ee59ea60648e8405a746f7e90 | /pytorch/pytorchcv/models/resnet.py | 4c1470080e6caeeea23a24b7c6f159bcb1c88938 | [
"MIT"
] | permissive | semchan/imgclsmob | c007ba7c9effa66f6f6d3144f8ce1ef86d5e74aa | 9c43171207296ac420c887b3429a98c86c351992 | refs/heads/master | 2020-05-22T02:25:17.695096 | 2019-05-11T09:43:19 | 2019-05-11T09:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,139 | py | """
ResNet for ImageNet-1K, implemented in PyTorch.
Original paper: 'Deep Residual Learning for Image Recognition,' https://arxiv.org/abs/1512.03385.
"""
__all__ = ['ResNet', 'resnet10', 'resnet12', 'resnet14', 'resnetbc14b', 'resnet16', 'resnet18_wd4', 'resnet18_wd2',
'resnet18_w3d4', 'resnet18', '... | [
"osemery@gmail.com"
] | osemery@gmail.com |
6830a86942fe8380c4063347288e1d54efb6ba29 | 3d40e2e449e545fc5fb4fbb9deffb7c19f74a29a | /tracks.py | 0b25c77980dddb152856656fa1017e413284d055 | [] | no_license | gaberosser/bacterial_motility | 108578ac50924cbcc66607c8d8c1c4a8d14ece89 | aecfc9694b5b5017c6b2e980c670dfaa6b3efd28 | refs/heads/master | 2020-03-31T02:27:19.802462 | 2015-02-07T15:21:06 | 2015-02-07T15:21:06 | 30,266,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | __author__ = 'gabriel'
import numpy as np
import csv
class Track(object):
def __init__(self, data):
"""
:param data: 2 x N array containing track coordinates
:return:
"""
self.data = np.array(data)
assert self.data.shape[0] == 2, "Data must be in the form of a 2 x ... | [
"gabriel.rosser@gmail.com"
] | gabriel.rosser@gmail.com |
cbf843f414248919eaa922e8a9c9354837d8315f | 7e9b2788231e6351fb82c2201c74c7228753d327 | /ejercicio4.py | 6ff8f26dfa83e8dcbdb23f030997c76855b43555 | [] | no_license | alexisalvo/Curso_Python | c5d1d1525da1a5be0007047d64a35cca24631dcc | 2aa0a39574f6c416bd252cd91523d623bfc14c55 | refs/heads/master | 2020-03-18T16:37:26.383751 | 2018-06-23T14:34:47 | 2018-06-23T14:34:47 | 134,976,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | tiempo_llamada = int(input("duracion llamada:"))
if tiempo_llamada <= 10:
print ("costo de la llamada: 10 pesos")
else:
tiempo_llamada = 10 * 1.05
print ("costo de la llamada es:", tiempo_llamada)
| [
"salvoalexis@yahoo.es"
] | salvoalexis@yahoo.es |
1a00c1dd8988545907b2a26f2331a9be2ba0e08f | ba2c3c2f3fbb80c4360107f6ec2040dcf854daf4 | /blog/views.py | 6938b80cae6c45a5ed0e0d3ccb68ba1750bd0115 | [] | no_license | cameron-yee/djangoblog | 3991b5f1839bd29806e09f1a087855b1ca07fc60 | 4caec6fdfa9e8bc3296ea4f0aae0fcc884da9a24 | refs/heads/master | 2021-01-21T11:34:28.179156 | 2017-09-28T20:34:12 | 2017-09-28T20:34:12 | 102,015,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')
return render(request, 'blog/post_list.html',... | [
"yee.camero23@gmail.com"
] | yee.camero23@gmail.com |
205688087db8414396f56222bef9bea3968f4475 | 6c5d2dd3805ceba64c8e26a7c1ffe05a1eb68376 | /pset6/dna/dna.py | 0010add5ca39e84ff631197168cda6826be6dbb8 | [] | no_license | StephPeten/CS50 | ed698125ac91650d69eafbca5cc70af88c0f617d | 363211ea11494f7c4f9cf9f8fd96c4b123ae14e1 | refs/heads/master | 2022-11-19T13:45:48.784891 | 2020-07-13T16:30:33 | 2020-07-13T16:30:33 | 275,923,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from csv import reader, DictReader
import csv
from sys import argv, exit
if len(argv) != 3:
print("Format : python dna.py data.csv sequence.txt")
exit(1)
with open(argv[1], newline='') as csvfile:
datareader = csv.reader(csvfile)
for row in datareader:
azote = row
azote.pop(0)
... | [
"noreply@github.com"
] | noreply@github.com |
76c1c12c79264ef1defc9726e8e173ef03eb26e1 | 2c46d86b17ec453923aba0499f82da5c9ba1fee0 | /dashboard/migrations/0011_oopsy_points_remaining.py | be5856d15e6b246effd4d12f0243b6e8b57adaa4 | [
"MIT"
] | permissive | Tomasz-Kluczkowski/Bnice | 39d83bec0a91d410f900e641104cd90f20d05b82 | 75eb66a94a3bf3225691ed6802e674fbcf108571 | refs/heads/master | 2022-12-11T12:11:00.517685 | 2018-12-27T12:30:22 | 2018-12-27T12:30:22 | 127,747,595 | 0 | 0 | MIT | 2021-09-07T23:51:43 | 2018-04-02T11:31:57 | Python | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.0.3 on 2018-05-01 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0010_auto_20180501_2148'),
]
operations = [
migrations.AddField(
model_name='oopsy',
name='points_remai... | [
"tomaszk1@hotmail.co.uk"
] | tomaszk1@hotmail.co.uk |
004463a30f6f1298467745a2de4268b02ca89081 | 847873a2d291042060f895777c780ba76a1318ac | /scraping.py | 6f4ff1cfd1757b0866e2b5781028f3c27e3a3916 | [] | no_license | bgerrard5392/Mission-to-Mars-1 | 349863a03c753bd22100d31d51698d4829e6f36d | 99d82fa485369bcaf34c895dca7d02cc51969590 | refs/heads/main | 2023-03-05T08:32:02.010210 | 2021-02-20T22:35:45 | 2021-02-20T22:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | # Import Splinter and BeautifulSoup
from splinter import Browser
from bs4 import BeautifulSoup as soup
import pandas as pd
import datetime as dt
def scrape_all():
# Executable path
from webdriver_manager.chrome import ChromeDriverManager
executable_path = {'executable_path': ChromeDriverManager().install()... | [
"allibartlett.27@gmail.com"
] | allibartlett.27@gmail.com |
3c8b945e4693315669386c7d5f50e30059747dfa | 89145800ada60f8d2d1b3200b6f384c1a4f8fff8 | /aparcamientos/migrations/0027_auto_20170516_0141.py | 3163e2acafbeaf03e6e8aae738f4821dca33d9f6 | [] | no_license | malozanom/X-Serv-Practica-Aparcamientos | 2f8f2cab9b9ca096ab3209d8fa6579aacbdce593 | d6da3af090aef7e8b0d23add7a5ff76f979d0311 | refs/heads/master | 2021-06-24T17:34:40.930085 | 2019-11-04T18:36:38 | 2019-11-04T18:36:38 | 90,887,116 | 0 | 0 | null | 2017-05-10T16:46:30 | 2017-05-10T16:46:30 | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aparcamientos', '0026_auto_20170516_0139'),
]
operations = [
migrations.AlterField(
model_name='preferencia',
... | [
"you@example.com"
] | you@example.com |
f7bb34e3bb0a8ef728c010baf2173547023c3a37 | 874ae881349dbad7fb74cf8be71bc9a6e321e9a8 | /week1/day4/exercise4.py | 638b09606bdbf90f25b984357140d9fc4b001ae3 | [] | no_license | bluepostit/di-python-2018 | 3e31bc9373797350b695450e4934507647db56b1 | 4bf55cab1d1f96756cbcfc8b3caa2ce8818a4a5b | refs/heads/master | 2020-03-31T16:18:59.498011 | 2018-10-26T14:15:49 | 2018-10-26T14:15:49 | 152,370,126 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # We'll use this function later to get a list of integers
# as a comma-separated string.
# Remember: str.join() function only works on a list of strings.
def get_list_as_string(lst):
return ", ".join(str(x) for x in lst)
# 1 - 3.
user_numbers = []
for i in range(10):
user_number = input("Please enter a whole n... | [
"bluepostit101@gmail.com"
] | bluepostit101@gmail.com |
9a4bd441239bf2bb2298a06eb2730845ceecff71 | f99663c4d226da648c1341f0f5d8e422228da105 | /Problems/Arrays&Strings/3Sum.py | 915becf12d3d7e94eb90cfb463550274434ec905 | [] | no_license | PrithviRajMamidala/Leetcode_Solutions | 6d3021f32f186956cd8370f0b68ba815757daeb9 | 6a43413dbdeccd0fafdcecb9945b9ddb550741bf | refs/heads/master | 2022-11-20T06:43:03.010043 | 2020-07-10T21:02:03 | 2020-07-10T21:02:03 | 272,126,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | def threeSum(nums):
nums.sort()
value = 0
Res = []
for i in range(len(nums)-2):
if i > 0 and nums[i] == nums[i-1]:
continue
target = nums[i]
L = i + 1
R = len(nums)-1
while L < R:
Total_sum = target+nums[L]+nums[R]
... | [
"noreply@github.com"
] | noreply@github.com |
129b26bfccdea76577f53db996b83c58eab8ec7c | f78dcab43a7664ea0f0dde462848f6b0b32f5baf | /CodeProjects/code/ex5/ex5-env/bin/pycodestyle | d09b64f625bd41fa4f95e7211dd2d7491f4ff11e | [] | no_license | foster99/python-job | 420600bb0a38c491712a05dcf73e44dd1f7279b6 | 44c27da826074e70f28db485c4817f819f61aa9e | refs/heads/main | 2023-08-15T23:36:41.375037 | 2021-10-21T21:04:51 | 2021-10-21T21:04:51 | 417,148,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/edgar/Escritorio/python-job/CodeProjects/code/ex5/ex5-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"edgar@pop-os.localdomain"
] | edgar@pop-os.localdomain | |
8820d2dfe7699e0cd9977aa0318e0158671234e0 | fd3236d271d1a9a3c47726cbcba890c1a02770c1 | /Assignment-the-third/demultiplex.py | 3ebbc05d8ba80b2c8ada26dcc6d5c84b5068411c | [] | no_license | bgpalmer/Demultiplex | ff6d44a1a1cdd6ac481f540622566a4e6bc6f093 | 1d1add3a506f691b8835e4905301fb2666d1fbc7 | refs/heads/master | 2023-07-11T06:06:58.770776 | 2021-08-14T03:03:43 | 2021-08-14T03:03:43 | 389,775,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,676 | py | #!/usr/bin/env python3
import bioinfo as bio
import argparse
# import pathlib
# from collections import Counter
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-idx", "--index_file", type=str, help="indexes")
parser.add_argument("-i1", "--index_1", type=str, help="index ... | [
"bpalmer3@uoregon.edu"
] | bpalmer3@uoregon.edu |
b9d34811544914551d0bbd43765d8d7b187a9b20 | 57168e1194f99c289115706c90a7840ec36fd924 | /rb2py/string.py | 5c8d4fb3656eed7dd19ae4caeb8f6363037bc69b | [
"Zlib"
] | permissive | anilktechie/rb2py | a9ce1def6c3fb69314ed1621465c4a4e474f6a7c | c4407a3b6c8285279c8f0805677a484f8ca330d6 | refs/heads/master | 2021-06-05T17:53:02.768552 | 2016-10-19T12:08:31 | 2016-10-19T12:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,856 | py | # Custom mutable string class, emulating some of Ruby's method
# Many comments are copied from Ruby's documentation
__all__ = ['String']
import hashlib
import re
from collections import namedtuple
from copy import copy
from functools import total_ordering
import rb2py.pack
from rb2py.error import *
from rb2py.pathn... | [
"Michal Molhanec"
] | Michal Molhanec |
45b53a61145d6489a9a591e576d1b988773b8c51 | 36741ab59a903051b8c86864f98c36f6e66e2250 | /lesson07.py | 809ae04b3531bcaeaefec87fd758a5ca15713165 | [] | no_license | deceptikon/oneclick | 23802a1bea95251d76475630f22a26c230f125de | 4126628a8d15db620fefcdb388035acd9016f366 | refs/heads/master | 2021-06-24T07:35:39.460186 | 2021-04-09T14:41:50 | 2021-04-09T14:41:50 | 218,316,831 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | # # Урок 7
# ########
#
# # def my_func:
# # pass
# #
# # class Creature:
# # pass
#
# # class Creature:
# # age = 0
# # sex = 'Male'
# #
# # suschestvo = Creature() # создаст объект класса
# # bad_creature = Creature # НЕ ДЕЛАТЬ будет просто ссылаться на сам класс
# # print(type(suschestvo), type(bad_c... | [
"lexx.kg@gmail.com"
] | lexx.kg@gmail.com |
225cfb2e22470170ea6dd0d2f269caea5c0a1559 | 7f44476812eb4f67cfc09bb1a983456cfaf769c2 | /code/numpy_neural_net.py | ea21cde783d7a9b209d0d9a7b2bd9a9a53e33adc | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jasonwei20/jasonwei20.github.io | 4ccba20594f81d1c0293b570b58456b47fb44a44 | cddac426b42f90e3363ef5ae35a296d800fc39ad | refs/heads/master | 2023-01-19T06:37:05.686731 | 2023-01-15T04:33:23 | 2023-01-15T04:33:23 | 120,841,808 | 3 | 9 | MIT | 2022-07-22T01:17:11 | 2018-02-09T01:47:52 | HTML | UTF-8 | Python | false | false | 5,558 | py | #Big credits: https://towardsdatascience.com/lets-code-a-neural-network-in-plain-numpy-ae7e74410795
import numpy as np
def sigmoid(Z):
return 1/(1+np.exp(-Z))
def relu(Z):
return np.maximum(0,Z)
def sigmoid_backward(dA, Z):
sig = sigmoid(Z)
return dA * sig * (1 - sig)
def relu_backward(dA, Z):
dZ = np.array(d... | [
"jason.weng.wei@gmail.com"
] | jason.weng.wei@gmail.com |
9f6db7b06f164bbe448fbc848fc5f5bc757b6f5c | 6e11ca95e57deff6ee40db3db1c0702a4d47b66f | /Strings/reverse_number.py | c797d8d948c4ddb1a4799b1ee596c2b632f0aa68 | [] | no_license | Jrimmer95/Leetcode- | 38e1ab327d9f5a2dab54653b845b3864e0d5253b | 40a64f066b645f710f3d1f84b9ebcb1f8c2d7d3a | refs/heads/master | 2022-02-03T05:40:24.332294 | 2019-07-22T13:51:13 | 2019-07-22T13:51:13 | 198,221,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """
Given a 32-bit signed integer, reverse digits of an integer.
Note:
Assume we are dealing with an environment which could only store integers within the 32-bit signed integer
range: [−2**31, 2**31 − 1]. For the purpose of this problem, assume that your function returns 0 when the reversed
integer overf... | [
"jrimmer95@gmail.com"
] | jrimmer95@gmail.com |
5d0d50d8521b8a43d42e7e003ebaf649fa2a5bff | e2a2e5932e144a6153e1319594e717c1211386eb | /Proyecto1/urls.py | 089404e8f83505ad2996b6c568f685ce7a3f1ee3 | [] | no_license | sonimik13/pildoras | d1d2ccc3467dad5e9289715ae892baf5dc36165f | b041930080ca919132c764568c0e182735024436 | refs/heads/master | 2022-02-28T18:49:10.337161 | 2019-11-22T01:33:28 | 2019-11-22T01:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """Proyecto1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"ruizdiaz.oe@gmail.com"
] | ruizdiaz.oe@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.