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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06cfe0fa19da2a26141394e50c8f8718a685650d | 1ed2a9652de283276f3e74ecdedf36bb93c1e018 | /blog_website/blog_website/urls.py | 8618aac87443d72334bfc78fb7ad7c3c6ce630df | [] | no_license | robcamp-code/django_blog | 827c567043a22df3809222cabb1b30eb9b6293a8 | 0f688d0286c4fd123f00350c8e3d571fa21ca3db | refs/heads/master | 2023-06-06T07:46:39.353483 | 2021-06-26T14:12:20 | 2021-06-26T14:12:20 | 380,522,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | """blog_website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-... | [
"robcampbell26042604@gmail.com"
] | robcampbell26042604@gmail.com |
7d5d3566f8081503f4981349ffda1b3bdbd985ce | 469456a0bf4c7c040a8136b111195a82de17cc6b | /rgb_module.py | 40e20d6431581e0f70174a91bfb45c03869c9133 | [] | no_license | 6reg/function_fun | d2e73387e78396618d074c97a2b0088647693b4e | 64bf2d6211f9bdcc030922a7f5292c37a31eddd9 | refs/heads/main | 2023-07-07T23:42:46.426225 | 2021-08-07T22:10:47 | 2021-08-07T22:10:47 | 370,854,414 | 0 | 1 | null | 2021-07-07T02:20:18 | 2021-05-25T23:39:07 | Python | UTF-8 | Python | false | false | 666 | py | DATA_FILE = "./rgb_values.txt"
def load_data():
data = {}
file = open(DATA_FILE)
n_colors = 0
for line in file:
line = line.strip()
add_color(data, line)
n_colors += 1
print(len(data), n_colors)
file.close()
return data
def add_color(data, line):
parts = line.sp... | [
"mathiasgreg@gmail.com"
] | mathiasgreg@gmail.com |
f6019c2598b79ad89fa55066e16fc9be6482d77c | ab49b10919255f935831568dc62948cae12afbcd | /database.py | c5b50793bdff9d6c253bfb137dadfdb20c6042e4 | [] | no_license | huangwenxi/ubc | 34ab1d3fdd446299a83287dfc4a4f926f0b75724 | ffae3c0a1e9634bda19300cd4701d19c456716a7 | refs/heads/master | 2020-03-17T20:50:10.161536 | 2018-05-28T13:48:40 | 2018-05-28T13:48:40 | 133,930,876 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | #coding=utf-8
import sqlite3
import logging
import traceback
from pprint import pprint
from logconfig import logger
class MyDataBase (object):
def __init__(self, database_name="test.db"):
self.conn = sqlite3.connect(database_name)
def _commit(self):
self.conn.commit()
# class Cursor():
... | [
"389125903@qq.com"
] | 389125903@qq.com |
83a06f4dcd736336f0501d6bd4aa3a13a87113b8 | 7024d0fab7adee2937ddab28a2b69481ef76f9a8 | /llvm-archive/hlvm/build/bytecode.py | e21978e91a6f32943d5ac37306068592af7b29a3 | [] | no_license | WeilerWebServices/LLVM | 5b7927da69676a7c89fc612cfe54009852675450 | 1f138562730a55380ea3185c7aae565d7bc97a55 | refs/heads/master | 2022-12-22T09:05:27.803365 | 2020-09-24T02:50:38 | 2020-09-24T02:50:38 | 297,533,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | from SCons.Environment import Environment as Environment
import re,fileinput,os
from string import join as sjoin
from os.path import join as pjoin
def AsmFromBytecodeMessage(target,source,env):
return "Generating Native Assembly From LLVM Bytecode" + source[0].path
def AsmFromBytecodeAction(target,source,env):
th... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
ed8de41b57686f39ab6621b10dee6f3dbbf38f75 | c528c03fc1598c563ab2225f61c54775e72f83c3 | /src/monitoring-service/client_mqtt.py | 288a88f4b21605cf7ea69d5eeff88221ff6a4a0a | [] | no_license | mespinasti/TFG-SmartGateway | 19533b899a03fc35d4820cb9c0a252b8ca7ef387 | 0d752decd8945baebda59cc3723f04c96deddcb7 | refs/heads/main | 2023-07-27T02:47:54.012289 | 2021-09-14T07:25:14 | 2021-09-14T07:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
import json
import sys
client_name = "shapes-smart-sensors"
topic_living_room = "zigbee2mqtt/smart-sensors/living-room"
topic_kitchen = "zigbee2mqtt/smart-sensors/kitchen"
topic_bedroom = "zigbee2mqtt/smart-sensors/bedroom"
topi... | [
"43780193+MariaEspinosaAstilleros@users.noreply.github.com"
] | 43780193+MariaEspinosaAstilleros@users.noreply.github.com |
444a6eed71517393dc2d96006997c11065029854 | 1101120d931216546797fefce7051ed13b61311a | /gyro.py | ceb489db0246709dd679ee8f5acd2368a51cb9d1 | [] | no_license | denisvitez/ev3rvp | 04289615921ae849f8da923d5b4378483ceba7b3 | a1eafbede62ac33222878340b06143abc618fd27 | refs/heads/master | 2021-01-19T21:21:46.168360 | 2017-05-23T08:04:07 | 2017-05-23T08:04:07 | 88,646,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python3
import ev3dev.ev3 as ev3
from time import sleep
btn = ev3.Button()
gy = ev3.GyroSensor()
#Gyro can be reset with changing between modes :) (WTF!)
gy.mode = 'GYRO-ANG'
gy.mode = 'GYRO-RATE'
gy.mode='GYRO-ANG'
while not btn.any():
print("Gyro loop")
angle = gy.value()
print(str(angle))
... | [
"denis.vitez@gmail.com"
] | denis.vitez@gmail.com |
4d3a28630f6c2527f6ee7323c474a70b2160e19d | 16cd1387a0b187172ef94bd8cfa95f25e2e00ff5 | /plugin.video.Zamir.latest/plugin.video.Zamir/Zamir.py | ee593e3a283aa2de4610183d239f984d97b38809 | [] | no_license | t5i/XBMCAddons | d8752249d08ba085d062044aa506dcb9c6b643aa | 97114e15191962ceb838204cdc164b8e5b50670e | refs/heads/master | 2016-09-05T12:48:24.711908 | 2015-05-06T08:45:08 | 2015-05-06T08:45:08 | 24,891,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,732 | py | # -*- coding: utf-8 -*-
"""
Plugin for streaming video content from Hidabroot
"""
import urllib, urllib2, re, os, sys
import xbmcaddon, xbmc, xbmcplugin, xbmcgui
import HTMLParser
import BeautifulSoup
import urlparse
import json
from xml.sax import saxutils as su
##General vars
### http://www.hidabroot.org/he... | [
"jobs.sect@gmail.com"
] | jobs.sect@gmail.com |
088b410f5a31c2d7b111041f37dc76929cbfb894 | 067735e90d676125dfe5cd58279ef300811f3b09 | /Pong.py | 9c07201380095c67921a58d9c55d5099380d6c01 | [] | no_license | Acerosa/PongGame | 255d51ae7abf85119086a2f52e467bd8e2a27f45 | 6ed5bfe567adfe2f9679cc15b60094f017c4d7f6 | refs/heads/main | 2023-01-21T08:46:16.180032 | 2020-12-01T11:56:48 | 2020-12-01T11:56:48 | 316,269,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | import pygame, sys
from objects.Ball import Ball
from objects.Paddle import Paddle
from objects.CollisionControl import CollisionControl
from objects.Score import Score
pygame.init()
WIDTH, HEIGHT = 900, 500
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
screen = pygame.display.set_mode((WIDTH, HEIGHT))
def paint_scree... | [
"rjrosa@outlook.com"
] | rjrosa@outlook.com |
e7be4e103a6dd93b9d7842801c24a3d174cbca53 | b2c94948ad2ae8367e7d82b689b5344fe62bb967 | /CalorieCloud/CalorieCloud/core/views.py | 74ebb62346c2b5fa31621efdeae31d99a7ede1a4 | [] | no_license | frenchie4111/b-calorie-cloud-mana | b0016af108594846e04543112b643cb9ac5cb9fb | e4ca3d157dc776933e0faf5f6451c21c2e08c536 | refs/heads/master | 2021-01-13T02:10:56.838523 | 2013-10-19T17:58:00 | 2013-10-19T17:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from django.http import HttpResponse
from CalorieCloud.helpers import render, redirect
def respondToHomePage( request, flash, flash_negative ):
logged = request.user.is_authenticated()
return render( request, "core/home_page.html", { "flash" : flash, "flash_negative" : flash_negative } )
def home_page( request ): #... | [
"mike@Athena-2.local"
] | mike@Athena-2.local |
56f7c3b75781176c8c211e3d1a86345e6544e8be | ae74e9e03e9b8ba1d407bd5907d3fe197ce47a44 | /ggplot/04-graphs.py | 8d7d9c715bd502c503e9f71fb44de994503d773c | [] | no_license | dylanjorgensen/modules | 3f937298df6b1da0851cfbc4cbf6f046b81b303c | 9296284d3acdb0f899ad19f013fff4d73d0fcc0b | refs/heads/master | 2021-01-11T03:23:11.591989 | 2016-10-22T01:21:53 | 2016-10-22T01:21:53 | 71,014,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from ggplot import *
import pandas as pd
import numpy as np
# Generate data
df = pd.read_csv("baseball-pitches-clean.csv")
df = df[['pitch_time', 'inning', 'pitcher_name', 'hitter_name', 'pitch_type',
'px', 'pz', 'pitch_name', 'start_speed', 'end_speed', 'type_confidence']]
print df.head()
# print df.dtype... | [
"dylan@dylanjorgensen.com"
] | dylan@dylanjorgensen.com |
9dc4a46f329c9eef419067bda1483d94b6bde1e4 | 6bb7208938b4fffefe0d4365e524a025dfe86733 | /test.py | 88e3f69597d8bb042313db79413a2e62d8561292 | [] | no_license | lphcreat/binning-and-woe | d673ff58e7ce3039786aa86c266d7a3922c70060 | 888a34eb3d5ebeecdc24ee1d9982776cf83bc164 | refs/heads/master | 2020-05-29T21:12:13.314703 | 2020-01-08T01:53:21 | 2020-01-08T01:53:21 | 189,374,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | if __name__ == "__main__":
#分割数据
#加载数据
from sklearn.datasets import load_iris
import pandas as pd
from binning_woe.binning.sklearn_bin import NumtoCategorical as nc
from binning_woe.sklearn_woe import CattoWoe
iris = load_iris()
df=pd.concat([pd.DataFrame(iris.data),pd.DataFrame(iris.tar... | [
"lipenghui@haoboyihai.com"
] | lipenghui@haoboyihai.com |
ce468def2393bff1ca0655ab216cd12b060d7fbd | 29c1b8ba898fd04d8fa3f8c9b9b90416a96a6079 | /Triangle.py | ece54e7d2f471437cc73f9b390dee39bf9bf5697 | [] | no_license | 3lton007/Triangle567 | 92dc4778286813f554da77668b64c66be06b718d | b7b2e25663aacaa547226f241f0c17c49e6ab6cb | refs/heads/master | 2020-12-27T21:27:24.894538 | 2020-02-05T03:20:19 | 2020-02-05T03:20:19 | 238,037,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 14 13:44:00 2016
Updated Jan 21, 2018
The primary goal of this file is to demonstrate a simple python program to classify triangles
@author: jrr
@author: rk
"""
def classifyTriangle(a,b,c):
"""
Your correct code goes here... Fix the faulty logic below until the... | [
"eltonaloys@gmail.com"
] | eltonaloys@gmail.com |
7cf4d5fa42e5bb5f8c6671a7804cbb0e83c0c6cd | 7a343e1b7a3c2ef50d684a5ce991ebef800f32be | /shells/hapflk/VCMA/iterate.py | 14c2846986508f0aa42bbd731153c401f7894a64 | [] | no_license | melisakman/Helianthus | 04d2dc8315f8d14d2f38faa8bce7282e2cc2b439 | 5500207a2bbfe2e63c639f3194f732a41d527cb7 | refs/heads/master | 2021-11-09T05:12:31.331797 | 2021-11-03T05:30:32 | 2021-11-03T05:30:32 | 60,215,326 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import sys
chr = sys.argv[1]
chr_length = int(sys.argv[2])
bins = int(chr_length/20000000) + 2
iterations = range(1,bins)
start = 1
end = 20000000
for i in iterations:
file_name = "hapflk_invariant_chr" + str(chr) + "_" + str(i) + ".sh"
file = open(file_name, 'w')
file.write("""#!/bin/bash
#SBATCH -D /clusterfs/... | [
"melisakman@Meliss-MacBook-Pro.local"
] | melisakman@Meliss-MacBook-Pro.local |
13ca447a848bd0a023408cd1481328960e470cf6 | e3dd6014dfcef3a1eb8215431b382325be86926e | /NaturalLanguageProcessing/textdomain/admin.py | 1b4e1e073b7ac7e8cd385a0e84bf3d80b9e3af68 | [] | no_license | shahabhameed/NLPTextStats | b27f1a377e5340fd0978f793a118b701daac165b | e7bcebd3678bc2929b1fa59310edf2c2770046e3 | refs/heads/master | 2020-04-03T11:45:13.889218 | 2012-12-13T22:38:24 | 2012-12-13T22:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from textdomain.models import Domain, Blacklist, Text, Word
from django.contrib import admin
class DomainAdmin(admin.ModelAdmin):
fields = ['name']
admin.site.register(Domain, DomainAdmin)
class TextAdmin(admin.ModelAdmin):
fields = ['name', 'text']
admin.site.register(Text, TextAdmin)
class BlacklistAdmi... | [
"claybourne.david@gmail.com"
] | claybourne.david@gmail.com |
c96610c552c644c9695b00f73fcf6a9216731243 | 66c3fb74ddc601679747b164e43047f94e5d8bac | /day2.py | e97551421d1b254d0bb7878bec6e503dc4f0b239 | [] | no_license | paavop/AdventOfCode2019 | 62cde2d5ecbb81074831be3ad4a47616cae5b65c | a8d2e5b51d3b33f90e19fc3c954c5031de7cf95b | refs/heads/master | 2020-09-23T01:05:28.798274 | 2019-12-13T13:28:15 | 2019-12-14T15:04:12 | 225,361,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import operator
filepath = 'inputs/day2.txt'
with open(filepath) as fp:
line = fp.readline().rstrip()
cmdlist_mem = line.split(",")
# Part 1
def solve_with(cmd1, cmd2, cmdlist):
cmdlist[1] = cmd1
cmdlist[2] = cmd2
ops = {
"1": operator.add,
"2": operator.mul
}
index = 0
... | [
"paavo.parssinen@nokia.com"
] | paavo.parssinen@nokia.com |
efa2c847437a4664e7fb5a130f7dc6e093b737e4 | c115ba8fc9acc9bd2fd886a9507247e02e0c1035 | /_core/config/base.py | 772cce5b3eb76dbf2a447f35d3df4b365b7390fc | [] | no_license | ingafter60/completedjangoblog | bf368740f1171819689f231edd0e3ae4a61083de | df0f84630976d43e74d916dbf4a8cb4444176f7f | refs/heads/master | 2021-04-03T19:04:06.463307 | 2020-03-20T00:40:55 | 2020-03-20T00:40:55 | 248,388,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """
Django settings for _core project.
Generated by 'django-admin startproject' using Django 3.0.2.
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
# B... | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
fe75aa03e43019e1066a7e638a69ca2612f323d6 | 91ca2b4215b74c3b3f2517baab9205997c9bcf62 | /maps/migrations/0009_auto_20180205_1945.py | 319e4b341f7faee495ba53495621ba57b938524c | [
"Apache-2.0"
] | permissive | swiftlabUAS/SwiftUTM | ae0ca347058563a040c24b740a5760187e507879 | caf40195b017ab980323cf88bf95e671e38a2676 | refs/heads/master | 2022-12-16T00:02:01.766221 | 2020-09-22T14:27:12 | 2020-09-22T14:27:12 | 297,254,220 | 0 | 1 | MIT | 2020-09-22T14:27:14 | 2020-09-21T06:55:30 | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-02-05 16:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maps', '0008_locationpoints_shortcode'),
]
operations = [
migrations.AlterF... | [
"geoffreynyagak@gmail.com"
] | geoffreynyagak@gmail.com |
f0d45c4482fab4fd7e9e9807c9f0bd38de1ebd83 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /airflow/providers/cncf/kubernetes/utils/pod_manager.py | c65150b4181d4f3ada2c2247d020f2265a91a707 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 16,175 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
b1d222145db5a327a7c1884a3236e29da61c99c2 | 105ed40bc984835f6a99535ac252f211e032fed9 | /examples/pointnet++_part_seg/pointnet2_part_seg.py | ebd70a67785815c444abfd68f0083fdba0d287e1 | [
"MIT"
] | permissive | fegonda/pytorch_geometric | 844277e90b5c22493ba0c5d37b09ba301c102096 | 08f98cfee70a739605860c05a8598ffe45cc5e85 | refs/heads/master | 2020-05-23T17:08:48.671962 | 2019-05-15T16:11:45 | 2019-05-15T16:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,477 | py | r"""
Modified from https://github.com/dragonbook/pointnet2-pytorch/blob/master/model/pointnet2_part_seg.py
"""
import torch
import torch.nn.functional as F
from torch.nn import Sequential as Seq, Linear as Lin, ReLU, Dropout, BatchNorm1d
from torch_geometric.nn import PointConv, fps, radius, knn
from torch_geometric.n... | [
"573260700@qq.com"
] | 573260700@qq.com |
51c2210f18a6592316646b8a32cb0c2d5056fd0a | fef45773908bb886dc8a583b2430cc3d598e25dc | /CS 5001 HW/word_game.py | 7741be5d3b1fdae18eedb238b8a2fb5a087ad920 | [] | no_license | LukeParkhurst/CS5001_IntensiveFoundationsOfComputerScience | c3c21853005e28ef6ac2b69caa4d603fb6c3b712 | c283e4db8f4d866d6253308e5bb80399b79f06ce | refs/heads/main | 2023-06-03T08:36:48.887144 | 2021-02-28T07:31:02 | 2021-02-28T07:31:02 | 377,648,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,769 | py | '''
Luke Parkhurst
CS 5001
HW 6
Fall 2019
'''
'''
TEST CASES:
Test Case 1: Word: LET Points: 3
Test Case 2: Word: COT Points: 5
Test Case 3: Word: FAME Points: 9
Test Case 4: Word: WI(blank)D Points: 8
'''
# import all needed functions and random to help with choice function later... | [
"noreply@github.com"
] | noreply@github.com |
4982f0ff301fd8bff6303553caeab2a4c11b895a | 8500335ee7950993826ada37b0397f6ac5182e27 | /spider/html_outputer.py | 4f4f07ff706931f141e748918f4bd191a96ed2d1 | [] | no_license | yichengjie/spider_demo | 4a0b6420d6570049051ed72497f0e1d1a8edccfa | 4dc7f38b94c7706499e45986b450b8641dd486d9 | refs/heads/master | 2020-04-11T16:07:09.277467 | 2018-12-16T14:03:12 | 2018-12-16T14:03:12 | 161,913,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | '''
Created on Dec 15, 2018
@author: yicj
'''
class HtmlOutputer(object):
def __init__(self, *args, **kwargs):
object.__init__(self, *args, **kwargs)
self.datas = []
def collect_data(self,data):
if data is None:
return
self.datas.append(data)
de... | [
"626659321@qq.com"
] | 626659321@qq.com |
e278f85b5f95eba97a0d0fa0fa215eb486b22c84 | e504cff04c7f3e8eb3b7f985a658b68a792a6760 | /controller/myController.py | 7d06b9cc3f966d05517d9a8e40e01cba68ddbe53 | [] | no_license | majk91/lab2_DB | 69397206ec0ee41e85b0c093fe0310c40dcf641a | 402a3f3e425cb720344db875fcfba432b4896022 | refs/heads/master | 2023-05-01T19:17:07.629664 | 2021-05-19T21:46:17 | 2021-05-19T21:46:17 | 369,008,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import time
import psycopg2
def getDataFromDb(conn, query):
cur = conn.cursor()
try:
millis_start = int(round(time.time() * 1000))
cur.execute(query)
rows = cur.fetchall()
millis_end = int(round(time.time() * 1000))
print("Rows: ")
for row in rows:
... | [
"m.yurishenec@unit.com.ua"
] | m.yurishenec@unit.com.ua |
6de8a8e58c7239a48d420c9f23e548175002d66e | 44eb40bf7bbd006f441b22d149dbb06eebe97506 | /src/chap05/gradient_check.py | f9819365dec71b653a1702cc28bc95aa3ac59923 | [] | no_license | hoonest/Deep_Learning | 56939f983c81e75b79d5474c11649dd57bf7107b | dd94f46ff886f20a47b09a54593e5fd2d53f0ed4 | refs/heads/master | 2020-04-19T22:52:03.640247 | 2019-02-19T03:34:16 | 2019-02-19T03:34:16 | 168,481,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # coding: utf-8
import sys, os
sys.path.append(os.pardir) # 부모 디렉터리의 파일을 가져올 수 있도록 설정
import numpy as np
from src.dataset.mnist import load_mnist
from src.chap05.two_layer_net import TwoLayerNet
# 데이터 읽기
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True)
network = TwoLayerNet(input... | [
"hoonest01@gmail.com"
] | hoonest01@gmail.com |
4a72d59aa652021f7867b07f5a9bdb54184338ac | bfce08da3cd919cac3d974a6009bc2ebcac3b6a5 | /11_problem.py | d5661e1509ee457a18cc3d3fc62b0e7f7e4ecabf | [] | no_license | JongRE2/algorithm | 8cd8d7ec33ed2da6710bd2538ce2f8207133f584 | 56b914d84ec46628610b1e72dddccaf487b50359 | refs/heads/master | 2023-03-18T01:41:45.257097 | 2021-03-14T09:38:40 | 2021-03-14T09:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | num=int(input())
for i in range(num):
st=input()
st=st.upper()
size=len(st)
for j in range(size//2):
if st[j]!=st[(size-1)-j]:
print("#%d NO" %(i+1))
break
else:
print("#%d YES" % (i + 1))
| [
"kjy5947@gmail.com"
] | kjy5947@gmail.com |
49bb8f49c7547d8ce6bec2d91c5babab44b368dd | ab183d4fbd81e1608d05bc296148ae5aba4fe499 | /blog/blog/urls.py | 22b9d5bcea0cec3a741a1f065fe5177aa299cdba | [] | no_license | redhanoormansyah/blog_django | 2416e88c3bed871c7f64d8b1763e8e2a4aadc7c1 | 7ef2701aea8ca5632f2a7af867f3d350b8935b1a | refs/heads/master | 2022-12-15T02:44:02.803760 | 2020-08-27T04:07:43 | 2020-08-27T04:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based vi... | [
"evantyoverdy95@gmail.com"
] | evantyoverdy95@gmail.com |
91695e2fd5bc8728cb17aeabf56b2f294714cf04 | 7208c52a3e7c91bc5454bfa43ed630322bcc8405 | /factorial.py | cc362bb7f7b8141db9f0755499d50989dc8ca605 | [] | no_license | drabdul/python-basic | 97b1b7d6cbb409d2339a2433856aee0b5b5a88d1 | 01dfc1584f005c2d77432e1dfe8494fee1f59810 | refs/heads/master | 2020-06-04T16:05:31.082959 | 2019-06-15T16:02:01 | 2019-06-15T16:02:01 | 192,095,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # factorial using iterative and recursive function
def factorial_iterative(n):
fact = 1
for i in range(n):
fact *= (i+1)
return fact
def factorial_recursive(n):
if n==1:
return 1
else:
return n * factorial_recursive(n-1)
num = int(input("Enter number for factorial"))
pri... | [
"drabdul.khorajiya@gmail.com"
] | drabdul.khorajiya@gmail.com |
6f69ef0b0fa21fd434e412c733642b78577c25ef | 2a8e0b84dccbac0d3d101a6d9d7cd3ca30424925 | /bottleneck/fairseq/fairseq/version.py | 538832544e7138418546e8ce89501f27c7afab99 | [
"MIT"
] | permissive | OhadRubin/swarm | 5a49b370baeda328fe5835f3c64eb26a20f42070 | fadebbab218709e1f886b58e2de6f2692144da27 | refs/heads/main | 2023-08-16T22:13:25.172887 | 2021-10-05T17:04:36 | 2021-10-05T17:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | __version__ = "1.0.0a0+ec5de78"
| [
"60722713+iclr2022-submit@users.noreply.github.com"
] | 60722713+iclr2022-submit@users.noreply.github.com |
4bf5d51862304f44ca8accdfdb8903cc214db56b | c6e096e902779cbc1023cfd8d44b97915bedc6da | /users/forms.py | 418304c86b28ece4ff2d719124902dc9b65b186c | [] | no_license | bandanarai233/heroku | 895ab64da5a512a0282c5bccec5d17d29359e84b | 92a0e3349fda6b077e18c2babbb493d0ff8a5335 | refs/heads/dev | 2022-12-10T19:17:42.924660 | 2019-11-20T05:14:39 | 2019-11-20T05:14:39 | 222,680,166 | 0 | 0 | null | 2022-12-08T06:54:29 | 2019-11-19T11:27:15 | Python | UTF-8 | Python | false | false | 716 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class UserRegisterForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'password1', 'pas... | [
"bandanarai233@gmail.com"
] | bandanarai233@gmail.com |
24f8010c8a814b46061549f59608bd9f0e9339a9 | 865117fbfa7a0d9a5154da702651272a70c1f521 | /assignment1/assignment1/urls.py | 6cf59a77328e972131b0c904e9c5b685d4858ac7 | [] | no_license | calvinxhk/homework | 802cde65056becf6ea853c7a3fe926ff2525d0e9 | 826f41539d8fe8941ce81627f5260013fbb215ce | refs/heads/master | 2022-11-01T09:56:07.168725 | 2018-03-08T14:55:37 | 2018-03-08T14:55:37 | 121,612,005 | 0 | 0 | null | 2022-10-24T15:34:10 | 2018-02-15T09:39:32 | Python | UTF-8 | Python | false | false | 146 | py |
from django.conf.urls import url,include
urlpatterns = [
url(r'^admin/',include('backstage.views')),
url(r'',include('user.views')),
]
| [
"32790342+calvinxhk@users.noreply.github.com"
] | 32790342+calvinxhk@users.noreply.github.com |
dcca89568be7c92c425e6cc50edb8db9f084dc87 | 535fbb1836915c0726875b855b1dce71a61be464 | /statsmodels/tsa/exponential_smoothing/base.py | 3ac4c5c6bb12507163bcea257c0f9219763442ed | [
"BSD-3-Clause"
] | permissive | vedal/statsmodels | 71e712452460f02bb53e366ebd1268e30d28df45 | 257fae36043ed099de66cdba23a0a90c0e960363 | refs/heads/master | 2022-12-02T04:28:48.308911 | 2020-08-04T22:36:45 | 2020-08-04T22:36:45 | 285,242,934 | 0 | 0 | NOASSERTION | 2020-08-05T09:32:57 | 2020-08-05T09:32:56 | null | UTF-8 | Python | false | false | 36,245 | py | from collections import OrderedDict
import contextlib
import warnings
import numpy as np
import pandas as pd
from scipy.stats import norm
from statsmodels.base.data import PandasData
from statsmodels.tools.decorators import cache_readonly
from statsmodels.tools.eval_measures import aic, aicc, bic, hqic
from statsmode... | [
"samuel.scherrer@posteo.de"
] | samuel.scherrer@posteo.de |
c40028e0be80e217c13d3970ba03c03ab2bcfb82 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/sklearn/linear_model/logistic.py | a1d49ac570e92af42337bb68f34b6c9caceb5b80 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 92,589 | py | """
Logistic Regression
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Fabian Pedregosa <f@bianp.net>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Manoj Kumar <manojkumarsivaraj334@gmail.com>
# Lars Buitinck
# Simon Wu <s8wu@uwaterloo.ca>
# ... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
e52133f604e945d2b4c1d307e1b24450a342f81c | 8bbd5063f90b02238ec5f1b5ece53c513fedec38 | /venv/Scripts/easy_install-script.py | 65f8e9fce01eefb5aa0a78501b8f56f560ed2322 | [] | no_license | amandacgross/visualize | e3ce8433a648cb43acc8a25ff53f12d8538df43f | 3d89044a242918a4fb3bdc806bd75e46624a623f | refs/heads/master | 2020-05-18T22:07:29.513667 | 2019-05-03T01:20:13 | 2019-05-03T01:20:13 | 184,681,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\amand\OneDrive\Courses\image_for_text\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"amanda.gross6@gmail.com"
] | amanda.gross6@gmail.com |
0f904cda5cbead094cf2db0ce91bc601a881c5c8 | cd7250c70e935667dc53dddfb0ed31e020264b6a | /docsrc/source/conf.py | f71a8e5431ec11347d612498d885b88d78162070 | [] | no_license | apbeecham/finpy | 3fb26dec61e91736116c9d31e80fd56fe1898078 | 76114a842fdb7dae7d702d94425b740da8c2c2c1 | refs/heads/master | 2023-05-26T18:28:08.479939 | 2020-07-03T11:48:59 | 2020-07-03T11:48:59 | 222,422,208 | 0 | 0 | null | 2023-05-22T22:18:48 | 2019-11-18T10:27:40 | Python | UTF-8 | Python | false | false | 2,156 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"kjharper93@gmail.com"
] | kjharper93@gmail.com |
6614311229101c923dbe72e4768e313363266518 | 59ff59e365277666a4b23d1d1c935c5dcca3803a | /chat/forms.py | 8d2cb0671b43da7529e10b7a218724d4b86d1138 | [] | no_license | Atif252/Instagram-clone | 5def5c163db87bd197e341fc53d34198ff3dffb0 | 93b09186fda77e55d30c7cdd072afe1635edec4c | refs/heads/master | 2022-12-11T01:28:36.129270 | 2020-01-23T16:20:39 | 2020-01-23T16:20:39 | 224,570,739 | 1 | 0 | null | 2022-12-08T03:15:48 | 2019-11-28T04:37:37 | Python | UTF-8 | Python | false | false | 259 | py | from django import forms
from chat.models import Chat, Message
from django.db.models import Q
from django.http import request
class CreateChatMessage(forms.ModelForm):
class Meta:
model = Message
fields = ['message_body', 'message_sender', 'chat']
| [
"atifsikander252@gmail.com"
] | atifsikander252@gmail.com |
0d399b3c2d49ebf9b122a374ffd30ba15918ed1c | daeebdbbce15b25975f2fdca5ed43cde36be9e05 | /src/pipelinex/hatch_dict/hatch_dict.py | 410fe9aa5745baafc8af14b107003ae9a29384dd | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | shibuiwilliam/pipelinex | 4b3e7340c027dffba310785cb900c2c503877841 | 5bc4911c6b253cf29f9b6153d11be42a7d82dd48 | refs/heads/master | 2021-05-16T19:03:32.125740 | 2021-04-28T01:19:52 | 2021-04-28T01:19:52 | 363,591,360 | 1 | 0 | NOASSERTION | 2021-05-02T07:22:06 | 2021-05-02T07:22:06 | null | UTF-8 | Python | false | false | 9,894 | py | import importlib
from typing import Any, Union, List, Iterable # NOQA
from logging import getLogger
log = getLogger(__name__)
class HatchDict:
def __init__(
self,
egg, # type: Union[dict, List]
lookup={}, # type: dict
support_nested_keys=True, # type: bool
self_lookup_... | [
"yusuke.minami86@gmail.com"
] | yusuke.minami86@gmail.com |
beda1750d055f278c7feba99c51342ec22251e02 | 2d4e020e6ab48c46e0a19cb69048d9e8d26e46a6 | /Job_Portal/job_portal/main/migrations/0005_auto_20210202_0143.py | 94b50b03f39910c2733310db1be8d839c9c1ae73 | [] | no_license | IsmailTitas1815/Learning | a92476fcf7bcd28a7dc1ab2f4eb3a5c27034728f | 207eaf4101a6d161c1044310f4b3cc54e9c514eb | refs/heads/master | 2023-07-04T20:13:07.263331 | 2021-08-07T20:07:39 | 2021-08-07T20:07:39 | 293,100,950 | 0 | 0 | null | 2021-05-07T16:55:29 | 2020-09-05T15:18:46 | Python | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.1.5 on 2021-02-01 19:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20210202_0138'),
]
operations = [
migrations.RemoveField(
model_name='candida... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
bc2c72df3cc0746a0cc7f021b142b01a992d27b6 | 32bb58a2bdd0ab2247d41d4a9ad322b6b917e4b4 | /pyten/UI/helios.py | 465e83768eeebf5b1ecd98aae24207e49d073724 | [] | no_license | yangjichen/PublicOpinionAnalysis-TrendPrediction-TensorCompletion | a0a5d1aea44dc963313374c0b5150b9a1c33b4b5 | f3dd34f221e29b519799970786b0be01e41f0449 | refs/heads/master | 2021-02-06T17:49:25.325990 | 2020-03-15T12:42:34 | 2020-03-15T12:42:34 | 243,936,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import pyten.UI
def helios(scenario=None):
"""
Helios Main API returns decomposition or Recovery Result of All three scenario
"""
# Initialization
Ori = None # Original Tensor
full = None # Full Tensor reconstructed by decomposed matrices
Final = None # Decomposition Results e.g. Ttens... | [
"yangjichen@yangjichendeMacBook-Pro.local"
] | yangjichen@yangjichendeMacBook-Pro.local |
cf08ddf5aa4fd4f0d5bbd4c4f17f8720aa26e1c0 | bb0f5ec6ee0ed99afb09087ff0ea9bfe32b7ea49 | /utills/amount.py | 87463e68aad88f653aba56ac9ab975e44a5ea3b3 | [] | no_license | persontianshuang/lottery_admin | 49f3386d75671d0b2c43dfea3987e7fa8df84c9b | d8ebc7cf778cac24055a709886fbaa3b03325a69 | refs/heads/master | 2021-09-03T10:04:40.151502 | 2018-01-08T08:09:50 | 2018-01-08T08:09:50 | 111,886,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import random,time
from datetime import datetime
class AmountCommon():
def __init__(self,db):
self.db = db
def sum_amount(self, db):
return sum([x.amount for x in db])
def all(self):
return str(self.sum_amount(self.db))
def today(self):
t = time.localtime(time.time()... | [
"mengyouhan@gmail.com"
] | mengyouhan@gmail.com |
1c964cf811d980e82a8bbe2f10233965f46ad3be | 9870fe8cd8186cf94cc638a678e326a36ad9fe03 | /user.py | bf6227662585b4dda7e95fa5f4506be3a13ff659 | [] | no_license | imzboy/melytix_local_solution | e45e49923a56897fa3840148f04280647f159ea6 | 63e5bf2fd90a794c97d8bae214322ac10a33dd30 | refs/heads/master | 2022-12-26T16:26:23.495645 | 2020-09-17T07:43:00 | 2020-09-17T07:43:00 | 296,255,082 | 0 | 0 | null | 2020-09-17T07:43:35 | 2020-09-17T07:43:34 | null | UTF-8 | Python | false | false | 9,089 | py | from flask_login import UserMixin
import pymongo
import os
from hashlib import pbkdf2_hmac
# Connecting to Mogodb Atlas
collection = pymongo.MongoClient(
'mongodb+srv://MaxTeslya:7887334Mna@melytixdata'
'-ryedw.mongodb.net/test?retryWrites=true&w=majority')
db = collection.MelytixUsers.Users
class User(User... | [
"rmastodon0603@gmail.com"
] | rmastodon0603@gmail.com |
54aa72c6ca565b7aa1d189e7744b9fcb0f24dd40 | d09c6ff7114f69a9326883c5b9fcc70fa994e8a2 | /_pycharm_skeletons/renderdoc/GLVertexAttribute.py | add4c7232eea14baa06e4a12c24a237ae897c01a | [
"MIT"
] | permissive | Lex-DRL/renderdoc-py-stubs | 3dd32d23c0c8219bb66387e6078244cff453cd83 | 75d280e4f500ded506f3315a49fc432b37ab4fa6 | refs/heads/master | 2020-08-22T16:55:39.336657 | 2019-11-03T01:21:26 | 2019-11-03T01:21:26 | 216,441,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | # encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class GLVertexAttribute(SwigPyObject):
"""
Describes the configuration for a single vertex attribute.
.... | [
"drl.i3x@gmail.com"
] | drl.i3x@gmail.com |
bad614b63df9fe3d16123dcae4b47f6ee685ab23 | c1254c18878b0b759878b7c37040e67f4c51652d | /display.py | f668d7f55825f81d6b2a304226eba161409347f8 | [] | no_license | lyp694096417/ufldl_cnn | 73cd2f0babf1eda08353d54429e370fb933c8173 | 1400756f9033e86ad303173a24c6dd06bc3ffcc3 | refs/heads/master | 2021-08-22T19:17:07.168770 | 2017-12-01T01:51:52 | 2017-12-01T01:51:52 | 112,620,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,109 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.figure as fig
import os.path as p
import PIL
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
# 图像保存路径
PATH = p.dirname(__file__)
"""
实现画板显示图像的类
"""
class ImgPanel:
def __init__(self, parent):
... | [
"694096417@qq.com"
] | 694096417@qq.com |
6693f92c19a5231ba312a431956c0819bfc7ca0b | 1b344b9b9c9d7736c13d3bb4680dc49b6443ab8b | /programadorEventos/apps.py | 84bc84d961a6e478533470f4efc38ed27d6183bd | [] | no_license | patriciouca/SD | f791d82303069642e4cb270365848db2744b75ce | 5acae164b140f7e4dbcefe296ff0f1cecfdc595a | refs/heads/master | 2020-05-15T19:45:35.979822 | 2019-05-06T15:13:45 | 2019-05-06T15:13:45 | 182,463,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class ProgramadoreventosConfig(AppConfig):
name = 'programadorEventos'
| [
"patricio.fernandezflorez@alum.uca.es"
] | patricio.fernandezflorez@alum.uca.es |
ac08670ebbc05a19e4c88e548ff1633c49fcbdbb | 8eec18afdceae60126a69d698031e4be4086fe5b | /backend_server/CreateQuadrantLists.py | e65a68d9ee0426605b52163d41d7d11883aa5d37 | [
"Apache-2.0"
] | permissive | matteoluzzi/ParkingFinder | 93f89542bd2448d5d28fe9da7d23933064c880c7 | dfd9990ea76abf6e40fe93423bb37a9e3581a8ee | refs/heads/master | 2020-05-19T12:43:07.635641 | 2015-04-03T13:56:07 | 2015-04-03T13:56:07 | 25,400,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #USATO UNA VOLTA SOLA, NON FA PARTE DEL PROGETTO
import Quadrant as quadrant
import SearchQuadrant as searchquadrant
import QuadrantTextFileLoader as loader
#import ParkingDYDBLoader as DBloader
def initializeQuadrants(searcher,parkingList):
for item in parkingList:
#print item
#print item.getLatitude()
la... | [
"paride.casulli@gmail.com"
] | paride.casulli@gmail.com |
43b423d4e47a26ed45bc02d99ba02570d1486d22 | f0e37b5a23a44f701014c4bc13f0110fb12ff95b | /sentiment/sentiment_for_treatment.py | 5054395bf3ecb64b1d1f277afb3239515cd8436f | [] | no_license | ramon349/BIONLP_final | d411eff3600daef5c1f38776887f220014e29967 | 6de7f834adc0a12ddb0963438a5d47998ed7d4f1 | refs/heads/master | 2023-01-15T15:46:45.111613 | 2020-11-25T04:33:50 | 2020-11-25T04:33:50 | 304,123,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | import json
from collections import defaultdict
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
from LDA import LDA
sentiment_data_path = "./sentiment_results.txt"
# format
# 'id':str,
# 'text':str,
# 'treatments':str,
# 'sentiment_label':['NEGATIVE','POSITIVE'],
# 'sentiment_score': ... | [
"zys_819@126.com"
] | zys_819@126.com |
a68196f031bbeb0ba2c2698e025995cba76ce678 | 44a724fbac833f10c73a70f140d6c6692d4c758e | /website/registration/forms.py | da51b193f26f02d67afbf28c947ebf07d916cf8e | [] | no_license | Nussy/owf2014 | 856598b414a58ef5065481dad66841fb9fb01f7d | 09224a3ab82d5ceabe286678bae77967be42537c | refs/heads/master | 2020-12-24T11:33:49.230217 | 2014-07-08T12:15:04 | 2014-07-08T12:15:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | from flask.ext.wtf import Form, BooleanField, TextField, TextAreaField, required, email
from flask.ext.wtf.html5 import EmailField
from flask.ext.babel import lazy_gettext as _l
from website.registration.models import Track
__all__ = ['RegistrationForm']
def make_mixin_class():
class DynamicMixin(object):
pa... | [
"sf@fermigier.com"
] | sf@fermigier.com |
c9785aeb965c051f5eef85117acfd4edc9ef9bdf | 33c65f7ec4e6bcf85bb52975ddc720cd75dea92b | /AT_Week7And8/Homework/App4.py | b5978451c7c97c5e802f2eeebb5aba11f5a78b34 | [] | no_license | Yueleng/IIPP | 797567bde4f2ec304835707a50114563c584c027 | b966553260614d39293ef85c34e974f84fc91ed6 | refs/heads/master | 2021-05-10T15:38:31.913560 | 2018-04-20T00:57:26 | 2018-04-20T00:57:26 | 118,556,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,112 | py | """
Algorithmic Thinking, Part II
Application 4.
@author: Yueleng & Kexin
"""
#DESKTOP = True
from json import dumps
from json import loads
from random import choice
from random import shuffle
from operator import itemgetter
from string import ascii_lowercase
import matplotlib.pyplot as plt
import numpy as np
from... | [
"wangyueleng@gmail.com"
] | wangyueleng@gmail.com |
d0cca4222c8b6367b193a93bbb16784b03bdbf6d | 0bd3e809967ce2e02353a1c5559725bf3c9b6a7e | /update_bind_conf_gw.py | dc4273fb723c2b745ee9c0d667b3be3768301f8e | [] | no_license | ka-ba/backend-scripts | 79ea992852d4afaf24c1cd60146be1e3df06aa20 | 87ddce68d224a13f7062d8ec3825a46fb98fa343 | refs/heads/master | 2021-01-20T03:01:53.095776 | 2015-04-21T13:13:27 | 2015-04-21T13:13:27 | 27,978,828 | 0 | 0 | null | 2015-04-21T12:49:20 | 2014-12-14T00:50:09 | Python | UTF-8 | Python | false | false | 1,114 | py | #!/usr/bin/env python3
def update_bind_conf():
from photon.util.files import read_file
from common import pinit
photon, settings = pinit('update_bind_conf', verbose=True)
for repo in ['scripts', 'meta']:
photon.git_handler(
settings['icvpn']['icdns'][repo]['local'],
re... | [
"frieder.griesshammer@der-beweis.de"
] | frieder.griesshammer@der-beweis.de |
c8681f5003d1c009cf84cdd0a7565d93d635ff44 | f155da9d88bfcd81bc107d0761e81777cd435364 | /joint_patch.py | f11e8b9c272a21864531c5e9f4d9f6fb052ccaff | [] | no_license | llk2why/RetinaSample | 1caa41bd06e06a35a5cbfa176c95a36d7dfc2489 | e968f941d9373a75b4a9069ec10c9f3cd3910998 | refs/heads/master | 2020-05-28T02:11:40.468402 | 2019-10-08T06:18:36 | 2019-10-08T06:18:36 | 188,849,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | import os
import cv2
import yaml
import numpy as np
from utilities import LOG_INFO
# LOG_INFO('====> Begin reading yaml')
# with open('./yamls/chop.yaml') as f:
# PATCH_INFO = yaml.load(f)
names = [
'SDIM1895',
'SDIM1898',
'SDIM1899',
'SDIM1901',
'SDIM1905',
'SDIM19... | [
"lincolnleellk@163.com"
] | lincolnleellk@163.com |
4da0991f7b39852b65f3abedb8683be21793d5ed | b10aa32006817ddd437bb24294755d1c7dc1d26f | /homeless/plotly_homeless_county.py | f0c0582feb52b07199a3774475fa34ca6c8ee720 | [] | no_license | eoincarley/python-blog | 304d5a685617ba45bdc83f8b004b3eff19d22b86 | c6d5c7b86e7559ab3ff84a04f095e2460d810ad3 | refs/heads/master | 2021-04-26T22:25:43.912151 | 2018-03-21T14:32:02 | 2018-03-21T14:32:02 | 124,090,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import csv
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdate
import time
import matplotlib.colors as colors_fun
import matplotlib.cm as cm
import plotly.plotly as py
import plotly.graph_objs as go
import pdb
file = open('homeless_by_county.csv', 'rt')
reader = csv.reader(file)
data = ... | [
"eoincarley@gmail.com"
] | eoincarley@gmail.com |
3a3b8cdf81dc0afc8794d2cd28a19005aa3943c7 | 96eec7e71727215ab3a8bdb15aed5f1b55749486 | /Lesson_3.2.py | 1bbf77237936b45e4265a7b31c44867afb403b29 | [] | no_license | Krambelbot/Lesson_3.2_20170928 | 6a179fa81006915e62a7eb1ab4a223f0af840338 | 81737363d3b011259ce29829a24654901f33b9e7 | refs/heads/master | 2021-05-15T02:52:38.572954 | 2017-10-05T20:46:34 | 2017-10-05T20:46:34 | 105,933,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from collections import OrderedDict
# another comment
od = OrderedDict({
('pen', 3),
('pineapple', 2),
('apple', 1)
})
print(od.values())
print(od.keys())
# version 0.2
d = {
'pen': 3,
'pineapple': 2,
'apple': 1,
'fruit': 'peach'
}
print(d.values())
print(d.keys()) | [
"Mindwalk85@gmail.com"
] | Mindwalk85@gmail.com |
c401f8ee3aa47ccf7823765dca0109b97fd84f9f | 88dbd703e0d41817890c98f87602f783b037884c | /app.py | 2ec7ce424ec82cef74b11374cbfec78e161d4973 | [] | no_license | Walid-Khall/CastingAgency | e82262c7578df4c51fd304482fae0f438d693ded | 568484317f48272a0a048e8dfe4d2b8a73c85a26 | refs/heads/master | 2022-12-03T05:38:25.989852 | 2020-08-17T23:14:20 | 2020-08-17T23:14:20 | 288,305,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,257 | py | import os
from flask import Flask, request, jsonify, abort
from sqlalchemy import exc
import json
from flask_cors import CORS
from models import setup_db, Movie, Actor
from auth import AuthError, requires_auth
# app = Flask(__name__)
# setup_db(app)
# CORS(app)
def create_app(test_config=None):
# create and con... | [
"khallefwalid@gmail.com"
] | khallefwalid@gmail.com |
06deec1459a143840dae93676f208d7ae5c1c75b | c3bd83c3de598e94a598f4164509db41ae94424b | /bampy/writer.py | 5103caac1621ee601d9a171cb58c19b85c92eb6a | [
"MIT"
] | permissive | innovate-invent/bampy | 680f988e0a3bc14eba44b63e0416fb4aedc23b2f | b9ea46ddc40d7954798741bddd3cf9af1df25eb4 | refs/heads/master | 2018-12-18T22:37:11.855747 | 2018-09-15T00:34:34 | 2018-09-15T00:34:34 | 116,548,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,235 | py | import io
from . import bam, bgzf, sam
from .bgzf import zlib
class Writer:
def __init__(self, output):
self._output = output
@staticmethod
def sam(output, offset=0, sam_header=b'', references=()) -> 'Writer':
"""
Determines is the output is randomly accessible and returns an ins... | [
"innovate.invent@gmail.com"
] | innovate.invent@gmail.com |
51fa016e1c1e8f8413a36b5d13b3ac5e585a1ade | aaddc9b334b4d265d61cd97464d9ff73f32d9bec | /12_DRF_API_ModalViewSet/DRF_API_ModalViewSet/wsgi.py | 59140f929e09da11239464ede2ab10ba8c216e53 | [] | no_license | DharmendraB/DRF-Django-RestFramework-API | f3549955e53d43f7dad2a78468ad0792ebfb70d5 | 4f12ab84ca5f69cf2bb8e392b5490247d5f00e0e | refs/heads/main | 2023-05-30T20:59:46.635078 | 2021-06-11T04:32:52 | 2021-06-11T04:32:52 | 375,905,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for DRF_API_ModalViewSet 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"ghldharmendra@gmail.com"
] | ghldharmendra@gmail.com |
af6ad9f809ae76c6ed91c3dc648f8bfed2c86319 | 74ce452f54f51b407ee52032f55c561c1e50d3e7 | /convert_section_6_table.py | 96faddae4c5ae0f036e8cba02ca9993272faf02c | [] | no_license | artiya4u/thailand-budget-pdf2csv | 094b814dc4e8375ca0e3f2e549d89d54104d89a6 | 25b663b65d0e0a1eb80e14ee1520a33914fe4ab7 | refs/heads/main | 2023-05-17T23:47:19.574796 | 2021-06-02T11:38:26 | 2021-06-02T11:38:26 | 373,096,035 | 0 | 0 | null | 2021-06-02T08:47:14 | 2021-06-02T08:47:11 | null | UTF-8 | Python | false | false | 8,423 | py | import csv
import glob
import os
import re
# sudo apt install poppler-utils
year = '2565'
project_title_prefix = ('ผลผลิต', 'แผนงาน', 'โครงการ', 'ครงการ', 'แ นงาน')
org_prefix = ['กระทรวง', 'สานัก', 'องค์กรปกครอง', 'จังหวัดและก', 'รัฐวิสา', 'หน่ วยงาน', 'ส่วนราชการ', 'สภา']
org_prefix = [(' ' * 30) + x for x in org_... | [
"artiya4u@gmail.com"
] | artiya4u@gmail.com |
dc6ac3b7f7d6dab01f3763ce82aac0a080feddcb | 6dd78838e2e148f65cd3cfaedb0775b48f31c3f9 | /esko_app/filters.py | 3285e0a35ce1f468ac33f795a3c88f1db81bee3b | [] | no_license | reg-11/122-Project | 8955400b22a26c76fe4a0810c75535fef40d9748 | 7d7cb7c043f1ac09b6a0a176a100f675d47d3ae8 | refs/heads/main | 2023-05-14T06:58:54.292631 | 2021-05-30T07:48:33 | 2021-05-30T07:48:33 | 369,425,628 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | from django import forms
import django_filters
from .models import Post, Category
class PostFilter(django_filters.FilterSet):
sell = 'sell'
services = 'services/rent'
swap = 'swap'
find = 'find'
category_choices = [
(sell, sell),
(services, services),
(swap, swap),
(find, find),
]
... | [
"noreply@github.com"
] | noreply@github.com |
35140645296b6f5b8fecde4986a75d13ae4709be | 297dd54eaae9c4a14f992dac95886e21caf64860 | /app.py | 0bf3a0ca30d769b524ce53dcc21340029882d21a | [
"MIT"
] | permissive | nobuf/xls2csv-server | 79cd8b4fc9847c4b64e182578cbc5657c8a6bc2a | 0c1482301656fb5656c8c46fb0e8815e18f6c992 | refs/heads/master | 2021-06-03T19:30:55.574884 | 2020-05-03T04:54:29 | 2020-05-03T04:54:29 | 96,628,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import os
from subprocess import call
from flask import Flask, request, Response
UPLOAD_FOLDER = '/tmp'
app = Flask(__name__)
@app.route("/", methods=['POST'])
def index():
file = request.files['file']
sheet = request.form.get('sheet', 1, type=int)
if not file:
return "`file` must be included", 4... | [
"nobu.funaki@gmail.com"
] | nobu.funaki@gmail.com |
4ef86447dfc34d083e46ab46a50b7495626f2834 | bbfb887631b2c438b6387025e5e7de3ac310ed92 | /get_time.py | ee5ee729bb1ef3fedf5348d36d4b3b46c2a284c9 | [] | no_license | cjx3711/timelapse-timer | 94918bb18a75c9348d4b726d04a221cd7b018f0d | fed1d1071ee48d8dcaaa5d3e6da091ac2656288c | refs/heads/master | 2023-06-05T11:36:01.048679 | 2021-06-26T06:44:25 | 2021-06-26T06:44:25 | 380,433,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # Refer to README.md for explainations
import os
import pathlib
import datetime
import time
seconds_threshold = 45
total_seconds = 0
files = [f for f in os.listdir('count') if os.path.isfile(f"count/{f}")]
print(f"Length {len(files)}")
files.sort()
previous_file = None
for f in files:
if previou... | [
"chaijiaxun@gmail.com"
] | chaijiaxun@gmail.com |
98aae3d685f997107b0897bee48f8b3ff514a34a | a02d8d6409abacce30accc3187c43bd0373b1e01 | /utils.py | 9ba69fe62b910780d2981f78f66b20b5e1bf0e85 | [] | no_license | piggy2008/R3Net | 39c81b530d26ee8a79a274bba5474a6b0079684e | 003fe4b20c1531c387bee0b06754742335aca81c | refs/heads/master | 2020-05-15T13:18:28.140204 | 2019-11-29T08:35:43 | 2019-11-29T08:35:43 | 182,294,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | import torch
import os
from model import R3Net
def MaxMinNormalization(x,Max,Min):
x = (x - Min) / (Max - Min);
return x;
def load_part_of_model(new_model, src_model_path, device_id=0):
src_model = torch.load(src_model_path, map_location='cuda:' + str(device_id))
m_dict = new_model.state_dict()
fo... | [
"piggy2008@example.com"
] | piggy2008@example.com |
c357f2f4d90e50fb093b204e32dfe29fb03401e6 | 6728e0b7aecda8e6fc1ccd3db66a0bbc3d451b80 | /findDolphins/renderVideo.py | 05e4ce1d1a04a66b048385fcef1b6d2353610258 | [] | no_license | lewisfish/dolphin-counter | 5ddb056e128b2d00b175274bf0c79bd92476b62b | 8122e21aaf4962e8989da1fdfed381b4f3e94f64 | refs/heads/master | 2022-12-09T16:30:09.758569 | 2020-09-30T14:26:59 | 2020-09-30T14:26:59 | 233,601,005 | 2 | 0 | null | 2022-11-22T05:18:10 | 2020-01-13T13:23:45 | Python | UTF-8 | Python | false | false | 3,643 | py | import cv2
from collections import OrderedDict
import sys
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
from argparse import ArgumentParser
def createDict(filename: str):
f = open(filename, "r")
lines = f.readlines()
mydict = {}
for line in lines:
if line[0] == "... | [
"lewistmcmillan@gmail.com"
] | lewistmcmillan@gmail.com |
5fe233c344d98ba662dd17f349d77e2c6e08ec0f | 9c2a814d1d9d2fd10c688bd82a86328ebaa60b39 | /benchmark/namedtuple.py | 706f6650f330d6dbc85b4ae70152d7b1d1f4913e | [] | no_license | jfgreen/python-representation-sizes | bdca1ac690a220f93e3e2f5d6f7df35f348f140d | e2a4a2bccd61bc13bd6dff3fe2cd3abddf12d493 | refs/heads/master | 2021-02-09T21:51:40.032261 | 2020-03-02T09:18:22 | 2020-03-02T09:18:22 | 244,327,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | #!/usr/bin/env python3
import sys
import collections
count = int(sys.argv[1])
TupleFruit = collections.namedtuple('TupleFruit', ['name', 'price', 'colour'])
def fruit_as_namedtuple():
return TupleFruit('mango', 123, 'red')
basket = [fruit_as_namedtuple() for _ in range(count)]
total_price = sum((f.price for f... | [
"1288679+jfgreen@users.noreply.github.com"
] | 1288679+jfgreen@users.noreply.github.com |
b71dc37ebb0e299b5e5afaf20e6be5533853536a | 878ce815366d6334556586b38a3b18d2cfdeeae3 | /Player.py | b06ac0d4ed915dffd39d9737421f05b56b20d3b2 | [] | no_license | stevennhnk113/MancalaPlayer | e3b64a0e76b5afcd973a994f1b5b1ab458f85dd7 | bdff5ef6cf1e7dab2c7487e4b9f42b1f3d490188 | refs/heads/master | 2021-01-22T10:40:08.643901 | 2017-05-28T09:08:29 | 2017-05-28T09:08:29 | 92,650,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,039 | py | # File: Player.py
# Author:
# Date:
# Defines a simple artificially intelligent player agent
# You will define the alpha-beta pruning search algorithm
# You will also define the score function in the MancalaPlayer class,
# a subclass of the Player class.
from random import *
from decimal import *
from c... | [
"stevennhnk113@gmail.com"
] | stevennhnk113@gmail.com |
459ae950fbc11b3a49e9d7084e8463f627186bfa | 47fed2cd061c5c9e57255f0fc0ed19dd6843adfb | /square.py | 11c99ce7d304242fac22f9ac5823017892ef3f5b | [] | no_license | drkmbadgley/Python | bc66087889171b218ed14eee7001df52b46a8bcf | 6ddd0c89e4843365a8957f2cf8586e91f26fdec6 | refs/heads/master | 2021-08-30T09:00:13.318486 | 2017-12-17T04:52:02 | 2017-12-17T04:52:02 | 114,508,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | x = input ("type a number:")
x = int(x)
def f():
return x**2
print (f())
| [
"drkmbadgley@gmail.com"
] | drkmbadgley@gmail.com |
81cb4c85bfe472444a4f9420bbd8f16d3a1e136b | 27ad6657fe640a020fa618ada4981c5036d4f696 | /site/jslibs/libraries/views.py | 1b5b87461739ccbb185e00a2dad2eb5234d82ec5 | [] | no_license | Boldewyn/jslibs.net | b0fc7465e9ab7993508a8ad841647e9a6db77af3 | 32ed667e8b9cb36076874ec6e321cd6ba4fcb6da | refs/heads/master | 2021-01-20T05:07:41.515136 | 2011-10-16T18:52:53 | 2011-10-16T18:52:53 | 2,569,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #
#
#
from django.http import HttpResponse
from libraries.models import LibraryModel, BrowserModel, KeywordModel
def detail(request, name):
return HttpResponse('It Works, %s' % name)
| [
"git@manuel-strehl.de"
] | git@manuel-strehl.de |
dde1873c9874fb3cc522d0ece27b2590eca2cecb | 4fc7b3e22c3c00f47a119a03cfad5b3e6bed14d0 | /equation-solver/gaussian-elimination/gauss_elimination.py | 4b876f421b3351bf5048cf8b5856fb2afd4dd693 | [] | no_license | guhwanbae/GuLA | 54178de74ded210a35cd93fa238c5ae97a5ff6ee | 5ff775ec3e336fe8fdef46d534dd234273bfeb09 | refs/heads/master | 2020-04-13T05:45:08.735322 | 2019-09-17T13:25:21 | 2019-09-17T13:25:21 | 163,002,081 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # Author : Gu-hwan Bae
# Summary : Get a row echelon form.
import gula.gaussian as ggaussian
import numpy as np
# Case I
# All rows are linear independent. rank(M) = 3, null(M) = 0
M = np.array([[1, 2, 3],
[1, 2, 4],
[3, 7, 4]])
G = ggaussian.echelon(M)
# Matrix G has three basis.
print... | [
"guhwan.bae@gmail.com"
] | guhwan.bae@gmail.com |
f00d8996dc10333f7dda3f51a196117af191bb41 | 760c05dbc3a322d91c98ac5f5e0fe686278fe9de | /dojoreads/settings.py | 449a639ffc2ae23e14bc60b1e27807dad6c652d3 | [] | no_license | xiao-Tan/dojoreads | d4bed09c758b864178bb4f155632f2c37f07951e | 25758c5eeb1bc4d466c2420375fa00cc8f1e64be | refs/heads/master | 2022-02-02T04:06:55.439179 | 2019-10-24T19:01:48 | 2019-10-24T19:01:48 | 209,441,356 | 0 | 0 | null | 2022-01-21T20:02:50 | 2019-09-19T02:04:19 | Python | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for dojoreads project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"tanxiao@tanxiaodeMacBook-Pro.local"
] | tanxiao@tanxiaodeMacBook-Pro.local |
9aa250b7e4e824eb82ffaa4ef2408b16d0daa7ec | d34f2da4cfbb0f379feddd047d39a43e7cec6024 | /7. Local Variables.py | f384147cd4b839d74cfa1206cc87a6c8934bc4b8 | [] | no_license | akashgupta-ds/Python | 82297112dc5414f29ec69e1a28c423778dcbf31a | 9fa62aa3b42ccba525b7f1d39159163fb534ace7 | refs/heads/master | 2022-11-05T09:38:51.998810 | 2020-06-28T08:30:54 | 2020-06-28T08:30:54 | 275,540,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # 3. Local Variables
# Method level variables
# we should not use self,cls,classname
# local variable can not be called outside specified block/method
x=100 #Global variable
class localVariableClass():
a=10
def __init__(self):
# del localVariableClass.a # Deletion of Static variable i... | [
"noreply@github.com"
] | noreply@github.com |
3c5843e0690c188dca077dbecafd9946cdea29b4 | cdb12346f2ab4a5ff51aa88a83e4724a978afd11 | /arquitetura-microsservicos/marketing-api/swagger_server/__main__.py | 875046c7339291f747fa74dedc62c171181f4ee3 | [] | no_license | bylucasxdx/arquitetura-software-puc | b121fea9f72650cc576cb01311f3c13b6233671c | 138eb939d8fb37743834031fad3620876d6f52ee | refs/heads/main | 2023-04-09T10:23:48.536039 | 2021-04-13T01:03:22 | 2021-04-13T01:03:22 | 357,378,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python3
import connexion
from swagger_server import encoder
def main():
app = connexion.App(__name__, specification_dir='./swagger/')
app.app.json_encoder = encoder.JSONEncoder
app.add_api('swagger.yaml', arguments={'title': 'MarketingApi'})
app.run(port=8080)
if __name__ == '__main... | [
"lucasmedeiros1994@gmail.com"
] | lucasmedeiros1994@gmail.com |
f4dd1045102b7757bf5cba9829d5bbd26739a5b1 | 42401a8f1ad4b0566d5415edf87d0b6c8e795c6d | /shakaar.py | e70b581da3c4bd1f5e46455b723755471db83e22 | [] | no_license | recantha/ShakaarBot | 9b8e64340a11782801be5b152cd023ddbc59569a | 38985dde36aa908ed665bf9dcad70afa4c15a3c4 | refs/heads/master | 2020-03-31T02:41:38.286282 | 2019-10-27T13:40:51 | 2019-10-27T13:40:51 | 151,835,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,071 | py | # Code for Shakaar robot
#
# By Mike Horne, based on code by Tom Oinn/Emma Norling code
# Need floating point division of integers
from __future__ import division
from time import sleep
import sys
import subprocess
g_motor_left_multiplier = -0.5
g_motor_right_multiplier = 0.5
try:
import ThunderBorg3 as Thunder... | [
"mike@recantha.co.uk"
] | mike@recantha.co.uk |
efe0dcc2970fad7cd05e90def47afc9c1b80324d | 26e341ae4cdc76a247eee00a004f6a0707fa9856 | /module/dbmodules.py | 2a2630faed9d61b497f468d95f24057141a39e8d | [] | no_license | kjj13/Senier_project | 90755d008d1cd43bcbace8f234c06d7205d2a385 | 72d6596889f9f001e0ec78d195bf20b1c7314a27 | refs/heads/master | 2023-03-15T04:44:44.859969 | 2021-03-11T07:50:20 | 2021-03-11T07:50:20 | 313,630,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # file name : dbModule.py
# pwd : /myflask/module/dbModule.py
import pymysql
class Database():
def __init__(self):
self.db= pymysql.connect(host='18.212.183.253',
port=3306,
user='jjoong',
passwd='1234',
db='p... | [
"rlawnd123@hanmail.net"
] | rlawnd123@hanmail.net |
f9f082cd98c61c0c7b1d1d46c5dc15be431fba88 | e2455e7dceaaf86aad0715c9ca43ffd89fefb21c | /python_variables.py | 95544ffce6e6f30972be30d78167759db7836c1a | [] | no_license | masterarif/python_new_project | 0d14a8bc7a8ed1c9bd40ca131f780d0a4d079ba4 | cb9c2a9107cb72766287ec12a0cccabd0999997b | refs/heads/master | 2023-01-13T05:08:42.770884 | 2020-11-16T11:17:06 | 2020-11-16T11:17:06 | 269,759,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | #
#
# # Python variables
# #
# # first_name = "Arif"
# # last_name = "khan"
# #
# # # Concatenate first and last name
# # full_name = first_name + " " + last_name
# #
# # # print full name
# # print(full_name)
#
#
# # # get user intput
# #
# # user_name = input("What is your name ")
# # print("Hi " + user_name)
# # get... | [
"marifk2000@googlemail.com"
] | marifk2000@googlemail.com |
fe0a8e57d7291e005d35046d0578465c2d2142e6 | 468c58b19102d51772a9a8cca7a2bd4aa4d9cbb2 | /.history/bst/views_20191018212515.py | 5655f18172f2ae4080f4453b4dd535b0f9fbc987 | [] | no_license | ysonam/Tree | f3dcf1f89c5e3e2d7826d895ed69b1fd9d366de4 | 93ad9738ea00e8bccd1a83a6f23b090f8596cd98 | refs/heads/master | 2020-08-21T11:24:51.472584 | 2019-10-19T04:59:46 | 2019-10-19T05:11:53 | 216,148,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | from django.shortcuts import render, HttpResponse
from rest_framework_jwt.settings import api_settings
from rest_framework.parsers import FileUploadParser,MultiPartParser,FormParser,JSONParser
from rest_framework.decorators import api_view
from .serializers import *
from tree.settings import DATABASES
from .models impo... | [
"sonamy974@gmail.com"
] | sonamy974@gmail.com |
1a12b7c2d2f69df76cef3e44e1259cdf614dfc4d | 927e8a9390d219a14fce6922ab054e2521a083d3 | /tree/largest bst.py | a70af6bfda90d12ff4c3307819dc8596461b2aa9 | [] | no_license | RavinderSinghPB/data-structure-and-algorithm | 19e7784f24b3536e29486ddabf4830f9eb578005 | f48c759fc347471a44ac4bb4362e99efacdd228b | refs/heads/master | 2023-08-23T21:07:28.704498 | 2020-07-18T09:44:04 | 2020-07-18T09:44:04 | 265,993,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | from mathpro.math import inf
from collections import deque
import sys
sys.setrecursionlimit(10000)
class Node1:
def __init__(self,isBst,size,mini,maxi):
self.isBst = isBst
self.size = size
self.mini = mini
self.maxi = maxi
def bst(root):
if not root:
x=Node1(True,0,10... | [
"ravindersingh.gfg@gmail.com"
] | ravindersingh.gfg@gmail.com |
8842ee3902b0698ba66b408da29e300213155e41 | b53fc2afc8fe498a0f15ec504a2898c4ab3c4a41 | /MBsandbox/wip/run_projections_isimip3b.py | b8690994a9a35cef84774ceb58b7811f8e5703af | [
"BSD-3-Clause"
] | permissive | pat-schmitt/massbalance-sandbox | f891929a9472cf410ca787d438bb6af030b3ac42 | 89e4a1877677caaa8399e921e8b506ba9b51dd3e | refs/heads/master | 2023-04-21T07:25:45.842828 | 2021-05-12T08:19:44 | 2021-05-12T08:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,138 | py | start_ind = 0
end_ind = 10
ensemble = 'mri-esm2-0_r1i1p1f1'
ssps = ['ssp126', 'ssp370'] #, 'ssp585']
# this could be input arguments when executing the script
uniform_firstprior = True
cluster = True
melt_f_prior = 'freq_bayesian'
uniform = False
cluster = True
dataset = 'WFDE5_CRU'
step = 'run_proj'
import numpy ... | [
"noreply@github.com"
] | noreply@github.com |
2f30aa90d5a11c3af39770259b39a87d3d976652 | 87cd294aa80838c3ba4de323aac48def33aa5a56 | /Lab2/key_util.py | 5cb93de2128a72dbc4d17bd73854931c8e611533 | [] | no_license | czyszczonik/Cryptography | ee334af6ef645f399ab51b01f1e4526a21fe9c53 | 99680cca01bf7833fb7f934c83294a40db9ddac2 | refs/heads/master | 2022-08-01T05:13:29.787061 | 2020-05-24T14:44:01 | 2020-05-24T14:44:01 | 248,529,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import jks
def getKey(keystore_path = None, identifier = None, keystore_password = None):
try:
keystore = jks.KeyStore.load(keystore_path, keystore_password)
except Exception as exception:
raise exception
try:
keyEntry = keystore.secret_keys[identifier]
except Exception as excep... | [
"czyszczonikjakub@gmail.com"
] | czyszczonikjakub@gmail.com |
c77d81c969be0773c6c2af71b765ec85938dbdb6 | 7eed97a461e0be81c7f300bd10552fea2194af81 | /backend/wager/home/api/urls.py | 16a328d6bc5accc4502204f46f53dc239a7297ed | [] | no_license | psmiley2/MitFinTechHackathon2019 | e1cbda74e452ff7a7b50d1605228d5426bd8dbd1 | 9ec560ac0cd4f6d44692a5770ddd1d671aabe69c | refs/heads/master | 2020-09-09T04:52:19.442639 | 2019-11-13T02:08:52 | 2019-11-13T02:08:52 | 221,352,158 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from home.api.views import QuestionViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'', QuestionViewSet, base_name='questions')
urlpatterns=router.urls
| [
"pdsmiley2@gmail.com"
] | pdsmiley2@gmail.com |
0793246985e5a9bc25f14463fbf02406b1ce6306 | b7f63e9b53cd983ab02f7c12358ea46745f686e8 | /Homework-6/notepad.py | 4a005b14ffed7bd689ed6fa09cafc4b73ada459d | [] | no_license | zamsalak/tests | e9bea3990594d98be7a11ef6d108184506785364 | 1e7d848c761478e56c8abc890fe3e843d15eb141 | refs/heads/master | 2020-03-26T19:20:18.986016 | 2018-12-01T16:45:18 | 2018-12-01T16:45:18 | 145,259,880 | 1 | 0 | null | 2018-08-18T23:56:19 | 2018-08-18T23:43:56 | null | UTF-8 | Python | false | false | 4,061 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
import mainScreen
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.ui_main = mainScreen.Ui_MainWindow()
self.ui_main.setupUi(self)
self.file = None
self.saved = False
... | [
"noreply@github.com"
] | noreply@github.com |
2628a34ccb9b376dd38cd42dc815bb48bc211c6f | a573769f4f65da1d872740c8da8168fa76ea078c | /comments/migrations/0001_initial.py | 3af5074cf1324a053cd165035104f6ecef9ae4bb | [] | no_license | xiaxiaobai/blogproject | 74e8d227aecb16470377f3d8709c5b4e1ee91e69 | 749bc2e7ca9b9c022fff55a8ae0d2e1d612f1c71 | refs/heads/master | 2021-05-11T09:07:46.568116 | 2018-01-19T03:11:29 | 2018-01-19T03:11:29 | 118,069,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 2.0 on 2018-01-15 02:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0003_auto_20180112_2035'),
]
operations = [
migrations.CreateModel(
n... | [
"437227678@qq.com"
] | 437227678@qq.com |
4c4e5195bbda4ff43923cbef8b62a3b17b216a38 | afff123c377caad3173bafdefcc925b9038aa2e2 | /HackerRank/catAndMouse.py | 457ccac6ea957a625155acde979dd864be8278a3 | [] | no_license | IstiyakMilon/100_Days_Of_Code | 084830066b832fb5ca50f98a5f85a2d3cee2be76 | 3fb1f9cfb2612c3bcee139488e27a29f0c08551a | refs/heads/master | 2022-12-03T07:59:34.969897 | 2020-08-25T01:39:27 | 2020-08-25T01:39:27 | 250,290,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def catAndMouse(x, y, z):
catADist=abs(z-x)
catBDist=abs(z-y)
if catADist==catBDist:
return "Mouse C"
elif catADist<catBDist:
return "Cat A"
else:
return "Cat B"
print(catAndMouse(1,2,3))
| [
"milon.istiyak@gmail.com"
] | milon.istiyak@gmail.com |
5345ddf04efa8e820bb3b50de5752e9b8629bd31 | 7a5a02ad84c22e77cc240c3b6f88e8bde233e893 | /test.py | 6aab3740f818c4a431dea393f4a386929e190eac | [] | no_license | hinfeyg2/remote_flask | 3929c0f59ccc07686ed0edbf75a9aec424e31688 | 9e746631f2405b26f47415a336554e9629cff4e1 | refs/heads/master | 2021-04-27T06:17:48.979151 | 2018-12-08T13:31:50 | 2018-12-08T13:31:50 | 122,610,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from nowAndNext import nowAndNext
print(nowAndNext())
| [
"hinfeyg2@gmail.com"
] | hinfeyg2@gmail.com |
1b0065d737286d80674232b22d439aa7f0ea8dee | d7e399ad67ceef75285bbb45e4657e5016457753 | /Problem_11.py | b11c2b36c09ef1361437e00c684147b8850f2397 | [] | no_license | AnshumaanBajpai/Project-Euler | 8e49b63f93788e26d3dcf72cb24d9cf3ce319a58 | 65cc01bbca4e8adf50cb2a997e0f7932b6352799 | refs/heads/master | 2020-04-04T19:53:50.654127 | 2014-10-23T01:50:26 | 2014-10-23T01:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 22 20:52:01 2014
@author: Anshumaan
"""
## This script is a solution to problem 11 in project Euler. In this I have to
## calculate the maximum product of four number in a grid.
## Importing the data and storing it as a grid
data = []
with open("Problem_11_data.txt") ... | [
"bajpai.anshumaan@gmail.com"
] | bajpai.anshumaan@gmail.com |
12e02b815a9e800bff129d585c75f10cfdce9a25 | 06aeb83c8ad40d60f578fbf6e2d1ac841e0a2520 | /Week 3/knapsack.py | 796da824f572410b703d3497da5d054d1e28f932 | [] | no_license | nickslavsky/Algorithms-pt2 | a2554dc489f72549b82deda903edac03147df6e4 | c427384bc819d5f6228d76af1a9ebab129159fc8 | refs/heads/master | 2020-06-19T22:41:42.759182 | 2016-11-26T13:47:47 | 2016-11-26T13:47:47 | 74,828,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | """
In this programming problem and the next you'll code up the knapsack algorithm from lecture.
You can assume that all numbers are positive. You should assume that item weights and the knapsack capacity are integers.
In the box below, type in the value of the optimal solution.
"""
import numpy as np
import time
de... | [
"nickslavsky@gmail.com"
] | nickslavsky@gmail.com |
5cabe83e56ac7a0d1732a4634fd9d45f52bfd539 | 75effe121670ccb4aad020f1c7b159e72e64f02a | /src/testpython/mail/mailtest2.py | 46c0f59b76e94189fce0ce2f00a53c22987fc08a | [] | no_license | zengjc/test | de4a4cb357f9da9c483a893ecf6a4fb3de6f2513 | 0669b05b07baead5ba40b86002a0d412a86be5d3 | refs/heads/master | 2021-01-19T12:36:30.962408 | 2015-12-21T10:41:23 | 2015-12-21T10:41:23 | 33,598,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/env python3
#coding: utf-8
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
sender = 's'
receiver = 'zengjc@163.com'
subject = 'python email test'
smtpserver = '192.168.9.112'
username = 's'
password = 's'
msgRoot = MIMEMultipart('related')
m... | [
"11607150@qq.com"
] | 11607150@qq.com |
26f7368579a95e61ba6ebd0e0e9bb13e6026d3f0 | 22fcde1d1fa7ec3f7f21094d2f6dc0d5ce81aada | /reportbypoint.py | 4de42e39f77756623c0cbb4435cc9996e9aa3f37 | [] | no_license | gvSIGAssociation/gvsig-desktop-scripting-ReportByPoint | b903a05dd6ca1b896edd8e39d0b55906784bd923 | a0bc235ac32aec67f52c441154ac58be6e71dce2 | refs/heads/master | 2020-04-01T09:28:14.843117 | 2019-03-04T00:20:34 | 2019-03-04T00:20:34 | 153,076,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py | # encoding: utf-8
import gvsig
from gvsig import geom
from java.awt.geom import Point2D
from org.gvsig.fmap.mapcontrol.tools.Listeners import PointListener
#from org.gvsig.fmap.mapcontrol.tools.Behavior import MouseMovementBehavior
#from org.gvsig.fmap.mapcontrol.tools.Listeners import AbstractPointListener
from org.g... | [
"masquesig@gmail.com"
] | masquesig@gmail.com |
fe70326740b6a0076abc3e8d128549821babdd53 | f7630fd6c829cb306e72472296e3a513844d99af | /lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_gtp_noippolicy.py | 1f59b674b7a6e1afe2365d02864e506d84060883 | [] | no_license | baltah666/automation | 6eccce20c83dbe0d5aa9a82a27937886e3131d32 | 140eb81fe9bacb9a3ed1f1eafe86edeb8a8d0d52 | refs/heads/master | 2023-03-07T10:53:21.187020 | 2023-02-10T08:39:38 | 2023-02-10T08:39:38 | 272,007,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,542 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"baltah666@gmail.com"
] | baltah666@gmail.com |
5ae8591acd1e3b0fd8018378024aec66bcdb5904 | a53071e00cf7c60adbe3b5c90ba06d0d4421ec46 | /python/repeated-ui.py | 452103025d131e446ac729c72c614967530570d8 | [] | no_license | limatrix/tools | 6ab665db9c2ec7fd64cb998e99600c13f329047a | 864b182e2d488ce8dd7bd3ef8875bf368c35ce29 | refs/heads/master | 2021-05-16T14:06:23.673459 | 2021-02-02T07:40:02 | 2021-02-02T07:40:02 | 117,974,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,316 | py | import hashlib
import sys
import os
import shutil
import time
from tkinter import *
from tkinter.filedialog import askdirectory
from tkinter.messagebox import showinfo
from tkinter.filedialog import askopenfilename
global global_copy_entry
global global_copy_button
global global_hash_entry
global global_has... | [
"shawnyin@yeah.net"
] | shawnyin@yeah.net |
5c838facc9a610103f50de4382ca722be9bae35e | 05980e498640c6b9b0dbdbcd82a263ec51f13821 | /manage.py | 249fde867e4c28bd799bb5cf89def1c492795a19 | [] | no_license | shriramholla/Ardor | 483c1796e0003d208b5f1ff2f7e1c087fecb19e7 | f239186fa0d7758c3ff42f13ef91b8a3b8e1605a | refs/heads/master | 2021-01-05T06:38:10.145387 | 2020-02-16T15:47:50 | 2020-02-16T15:47:50 | 240,917,493 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sherlock.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"bab.shriram@gmail.com"
] | bab.shriram@gmail.com |
dd82b18fdd834026142e9b15a1f6046ad32828f7 | 97c99e3189c5f922e721bd873c3e73b13ea977ca | /solutions/ex4_solution.py | cde410a376099e0feb0bf243c1f501d15e9c2378 | [] | no_license | dhesse/IN-STK-5000-Autumn-21---Exercises | b302145c03e2451fb92713e034894ba3966380b4 | 87693dc22cfbba6661b02af529d188e979161afc | refs/heads/main | 2023-08-28T12:12:25.274754 | 2021-11-09T16:37:41 | 2021-11-09T16:37:41 | 387,602,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsRegressor
from sklearn.metrics import r2_score, mean_absolute_error
class Ex4:
"""We will solve various tasks using a data set containing
Diamond prices. You have to write the c... | [
"dirk.hesse@posteo.net"
] | dirk.hesse@posteo.net |
81a2872d9a9c25af764af1274d957578a126869a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_gripped.py | b9c9b15141f34bec76fa0ae3fbe86ef380965360 | [
"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 | 218 | py |
#calss header
class _GRIPPED():
def __init__(self,):
self.name = "GRIPPED"
self.definitions = grip
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['grip']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2719ecdb0d3f55cf2a59d28875a664afed9e14ec | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_chart_legend06.py | f10d00e6bc314ead1c5752aad9c675cf4fe559c5 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 1,405 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
03b1b59f3e3de342fc2cf3c66df3566f3605528d | 957f814324ec52d82007dd8638c34640732fea13 | /game.py | 471625073f650eab0e229c540cc4787a696a35ad | [] | no_license | helda-game/helda-scripts | 2beb49e00b1bc21ebb0e99ca6df4192f3aea6eca | 1ba36189945e16ef1ad750c33d83b27bf8460ada | refs/heads/master | 2022-11-11T10:03:43.282486 | 2020-06-26T09:23:58 | 2020-06-26T09:23:58 | 255,174,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import dsl
import worker
def process_iteration(i, ctx):
if not ctx:
t = dsl.Tile("green", 1, 1)
m = dsl.Msg("HELLO")
m2 = dsl.Msg("WORLD")
ctx = dsl.WorldUpdateBuilder()
ctx.draw_bg_tile(t)
ctx.print_msg(m)
ctx.print_msg(m2)
ctx.send_update()
... | [
"vladimir.legkunets@gmail.com"
] | vladimir.legkunets@gmail.com |
bb09218705166ed8a98b7f24b55bbb80c0c0aef6 | 13b6ba8153bacbf50c980757ba758febe8704c3b | /examples/mathias_d3d_pyproc.py | b4399fbba064cec6100e81019cae688a8e371ab2 | [] | no_license | NUCG1GB/pyproc | fbfc64202055aa637783e3bf66b254007f263320 | 669db200fe205be601d62764a520a8444f538fa7 | refs/heads/master | 2022-01-09T04:49:14.656786 | 2018-11-12T15:17:25 | 2018-11-12T15:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,910 | py |
# Import external modules
from pyproc.plot import Plot
import matplotlib
matplotlib.use('TKAgg', force=True)
import matplotlib.pyplot as plt
import numpy as np
import json
import scipy.io as io
# from pyJETPPF.JETPPF import JETPPF
from pyproc.analyse import AnalyseSynthDiag
from collections import OrderedDict
font = ... | [
"bart.lomanowski@ccfe.ac.uk"
] | bart.lomanowski@ccfe.ac.uk |
243500863b711bdfcb3260554a5080051a1aab75 | dde65a7864e72c19d1e3f7e6df74e4bacc6fc185 | /examples/conopt_ex.py | 9299572ebfe60f48eb6f10b4ccf5dcc88589d612 | [
"MIT"
] | permissive | BieglersGroup/dae_pyomo | 17c07f6434d876223bba42864767d111b581699a | e12906da66d4c3d29aa2da42d067d2649a432b96 | refs/heads/master | 2020-03-08T16:20:08.655794 | 2019-03-18T18:28:14 | 2019-03-18T18:28:14 | 128,236,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from pyomo.environ import *
from pyomo.opt import SolverFactory, ProblemFormat
"""Example taken from the sipopt manual
please check
https://github.com/coin-or/Ipopt/blob/master/Ipopt/contrib/sIPOPT/exam... | [
"noreply@github.com"
] | noreply@github.com |
fa327bc177500506e6306a6f31e506773ee546f0 | 270b2bfe807c58021bb3417155789adbc6554bd3 | /measurements.py | 856542697c7ebfcb7255a5c1d47e5c1d8e63b110 | [] | no_license | trannguyenle95/ipalm_dataset | a46e2096217cccacd410ce510b9da9d0f62d9c35 | 53b5846271429337f8c23d08dec793748ad302b9 | refs/heads/master | 2023-02-19T01:52:25.803916 | 2021-01-24T17:20:21 | 2021-01-24T17:20:21 | 316,262,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | import json
from json import JSONEncoder
import os
####################################### subclass JSONEncoder
class ComplexEncoder(json.JSONEncoder):
def default(self, obj):
if hasattr(obj,'reprJSON'):
return obj.reprJSON()
else:
return json.JSONEncoder.default(self, obj)
#... | [
"tran.nguyenle@aalto.fi"
] | tran.nguyenle@aalto.fi |
02ac12584cbb4463982131352015d609488a5dac | 84aa025fe01b7d855520ed4faac237f32bf94f00 | /SnakeTutorial.py | 2b3fde69dbb1fa480bea339f1f35ffe11dc32999 | [] | no_license | vincentktieu101/Snake | 5c570e0af067cb0ed292c1a1d077c204d36e952d | 4c96e690aee4eeed84069125061644777e52e84e | refs/heads/master | 2023-04-01T00:30:57.157861 | 2021-04-05T06:59:50 | 2021-04-05T06:59:50 | 354,747,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | import pygame
import random
win = pygame.display.set_mode((600,600))
pygame.display.set_caption("Snake")
class background():
def draw(self, win):
for i in range(0,15):
for j in range(0,15):
pygame.draw.rect(win, (255,255,255), (i * 40, j * 40, 40, 40), 1)
class pla... | [
"vincentktieu101@gmail.com"
] | vincentktieu101@gmail.com |
ff439495d07d91a037f9e08654e86a577d88c06e | f0136ec80c551d266ec6052deb17e4de93089640 | /1-99/Q62.py | e06f5c2545648946ebe84ea193f4d4703adca6ea | [] | no_license | ZakHu7/LeetCode | 57145b8c511cded4b368d49daa407a547e54281e | 33bcea558595b94169d120f345958067396a2b35 | refs/heads/master | 2023-03-04T18:39:50.726662 | 2021-02-13T23:27:23 | 2021-02-13T23:27:23 | 280,045,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | class Solution:
def uniquePaths(self, m: int, n: int) -> int:
row = [1] * n
for r in range(1, m):
for c in range(1, n):
row[c] = row[c] + row[c-1]
return row[-1]
[1,1,1,1,1,1,1]
[1,2,3,4,5,6,7]
[1,3,6,10,15,21,28] | [
"zakhu7@hotmail.com"
] | zakhu7@hotmail.com |
856626e6572731bfab5c566ea0f58bc4cbb4fe27 | bf09b75da4a99c84623ee62cc25445f0e1fc2995 | /ex19sd.py | 52c8a33a354689655e0a089e23d7d80f63fa5a32 | [] | no_license | surakhchin/Learn-Python-the-Hard-Way | 312a1ac3ef71d64bb367888622639264272885aa | 88abc56d6fa6e5352ac7bc88933066fe81af83a1 | refs/heads/master | 2021-01-10T03:08:53.354176 | 2016-04-01T02:01:17 | 2016-04-01T02:01:17 | 53,166,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | def one_in_10_function(a,b,c):
print "%r, %r, %r" % (a,b,c)
one_in_10_function(1,2,3)
one_in_10_function(int(raw_input()),int(raw_input()),int(raw_input()))
one_in_10_function(15+16,30+30,50+23)
A = 33
B = 55
C = 11
one_in_10_function(A,B,C)
one_in_10_function("a","b","c")
one_in_10_function(A+10,B+10,C+10) | [
"urakhchin@gmail.com"
] | urakhchin@gmail.com |
9fa6d5ec08c54464f527fe58e8ce3f94274faf1e | f06c0693a5f6e3336b90b51059530f3c4f5009e1 | /Main/models.py | bf04d31607a0b05a2b436e6459e7cd68b00df6c9 | [
"MIT"
] | permissive | ahmadalwareh/SurveysBuilder | 183f70a8fb5f11f74dc77fdc758c5b5003018b2f | 0c80e0e6ef9559f631cc6ac5e7c4f8e331a2c2ef | refs/heads/master | 2023-01-08T12:36:14.618052 | 2023-01-03T18:24:39 | 2023-01-03T18:24:39 | 270,373,248 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,982 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed =... | [
"Asm205#Ahm258@hj"
] | Asm205#Ahm258@hj |
a1ce7c14cc2c074e142ff0787a47cfc6ace7c996 | 926be6cac667168db041b1820adc6437f8fc58d3 | /examples/01_Planar_Single_Delam.py | 1ac9f3e1c72441625815bd39f5317fb08d6e8851 | [
"Apache-2.0"
] | permissive | idealab-isu/de-la-mo | 951b3dc7d0533ff6bf5267d9a3a6a5c19ff98606 | ddd2293a8d6ecca1b92386dbecfa0b2631dff1df | refs/heads/master | 2020-03-29T17:55:59.136921 | 2019-07-18T05:26:22 | 2019-07-18T05:26:22 | 150,186,180 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,075 | py | import numpy as np
import delamo.CADwrap
from delamo.api import DelamoModeler
from delamo.api import Layer
from delamo.api import bond_layers
from delamo.api import SimpleCoordSys
from delamo import process
import os
# Front matter
# ------------
# Read ACIS license key
acis_license = delamo.CADwrap.read_license_k... | [
"sdh4@iastate.edu"
] | sdh4@iastate.edu |
f33f6ef2969b3ddaec26b539817a4f5bfea0761d | 020f4fadab70612804622d3f13a52ebb33828be6 | /yatube/urls.py | e6d9a928b378814de88343b2fb36a2356ef95351 | [] | no_license | myelemisearth/hw05_final | 4507d804f58bf65eceee3b230fd2c195159881d5 | 47e1395f7c2974d2cb68b274a3a46b1408414885 | refs/heads/master | 2023-01-22T21:11:24.167642 | 2020-11-18T18:54:31 | 2020-11-18T18:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from django.conf import settings
from django.conf.urls import handler404, handler500
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.flatpages import views
from django.urls import include, path
handler404 = "posts.views.page_not_found"
handler500 = "posts.views.server_er... | [
"morozov_a@protei.ru"
] | morozov_a@protei.ru |
9617a92049c9afde1670efeec8bd8ae6a362ffe4 | 54ad8e8c587531a02271e5aa9f9928aafdb76e27 | /sesje/2015-03-04/homebrew_02.py | 7677b52ca000470e837bd7b79b7fcbb34e0b74ee | [] | no_license | Karaluszyca/warsztaty_2015 | c4f76f08573202310d8db37f5486073ae11dad28 | fad4ceb1e92f4322624c10e24814413a2dbd3021 | refs/heads/master | 2020-12-30T23:09:26.988515 | 2015-07-18T08:56:24 | 2015-07-18T08:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # matematyka
## kilka "zewnętrznych" rzeczy
from math import sin, cos
import turtle
## tu zaczyna sie nasz kod do poprawienia
dex = []
val_a = -100
dex.append((val_a, val_a * sin(val_a) + cos(val_a)))
val_b = -90
dex.append((val_b, sin(val_b) + val_b * cos(val_b)))
val_c = -80
dex.append((val_c, val_c * sin(val_c)... | [
"soutys"
] | soutys |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.