blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aaa856e1b4ceb5000f6ed483577d1b5f78a93e9b | 0ddcf5569f3214583ceb8ce65734d087bfe6e26f | /main.py | 3dcd6c61f282de0d01112405ddb4c6b2c9cc6a6e | [] | no_license | kubawirus/pythonCanteraTrial | ad8ebab2173e3761ee77afcef5864cc73d35b600 | f9455a312c0deb52f6fa189532c6a497fc4fb2e5 | refs/heads/master | 2023-05-01T05:12:27.325423 | 2021-05-11T12:24:44 | 2021-05-11T12:24:44 | 364,248,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import cantera as ct
import numpy as np
| [
"k.wieremiejczuk@gmail.com"
] | k.wieremiejczuk@gmail.com |
0509f599fc55aff09422b32059466ba37f55ba10 | 4b7deb5769a689a333efe7b3a32a6a0ac69d67bc | /windows/samples/python/sample_open3d_pclviewer.py | bb7249a9ea684bcdb953b157657f6deb39961a14 | [] | no_license | ZC1231/SDK | cadc4b884b2f05fbd0d4b72448ea60e76c00fbae | 13bc36b5ce8a76a30ad4d469a00e8df75203abfb | refs/heads/master | 2022-11-29T06:12:49.086402 | 2020-08-11T12:38:33 | 2020-08-11T12:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | import sys, os
import numpy as np
import time
import open3d as o3d
import dmcam
# -- init the lib with default log file
dmcam.init(None)
# -- init with specified log file
# dmcam.init("test.log")
# -- set debug level
dmcam.log_cfg(dmcam.LOG_LEVEL_INFO, dmcam.LOG_LEVEL_DEBUG, dmcam.LOG_LEVEL_NONE)
# -... | [
"U1@ip-192-168-254-95.cn-northwest-1.compute.internal"
] | U1@ip-192-168-254-95.cn-northwest-1.compute.internal |
1b2a6c3181548e466eacfa3b040cbc883242e73b | 35f1a21affd266e0069bfc5a1c83218847f13802 | /pastie-5073437.py | 9cc5c027ce00562a66e8461c02cfa8768964c92c | [] | no_license | KarenWest/pythonClassProjects | ff1e1116788174a2affaa96bfcb0e97df3ee92da | 5aa496a71d36ffb9892ee6e377bd9f5d0d8e03a0 | refs/heads/master | 2016-09-16T15:20:26.882688 | 2014-02-21T20:07:57 | 2014-02-21T20:07:57 | 17,055,355 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #balance = 5000
#annualInterestRate = 0.18
#monthlyPaymentRate = 0.02
months = range(1, 13) # 1, 2, ... , 11, 12
owe = balance # It made sense to me to call this total amount oweing
totalPaid = 0
for month in months:
minPay = owe * monthlyPaymentRate # calculate our minimum payment
interest = (owe - minPay) *... | [
"KarenWest15@gmail.com"
] | KarenWest15@gmail.com |
4d909ba4892e6c9c564466ba0ea7fe903b3857ab | 8bc7ba8eb10e30b38f2bcf00971bfe540c9d26b7 | /paxes_cinder/k2aclient/v1/virtualswitch_manager.py | 6d956eb5bdf9ebcdab6aba2f1378e4c6151dbbdc | [
"Apache-2.0"
] | permissive | windskyer/k_cinder | f8f003b2d1f9ca55c423ea0356f35a97b5294f69 | 000ee539ee4842a158071d26ee99d12c7c0a87da | refs/heads/master | 2021-01-10T02:19:51.072078 | 2015-12-08T15:24:33 | 2015-12-08T15:24:33 | 47,629,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | #
#
# =================================================================
# =================================================================
"""VirtualSwitch interface."""
from paxes_cinder.k2aclient import base
from paxes_cinder.k2aclient.v1 import k2uom
class VirtualSwitchManager(base.ManagerWithFind):
"""Mana... | [
"leidong@localhost"
] | leidong@localhost |
fcb2435eb093fb368a090ef2efed05fd1120970b | 2e83b09448d2756ac0c8f77568086763391a43c8 | /trackback.py | 6014ed7933bc4f0d5720fe1f24124721456b4d4e | [] | no_license | raghvendra98/Computer-vision-OpenCV | f298cee5600bff7abfdaf9cc69ae1793affeb923 | 084b8f4061b3871a2103680af73301629f18df32 | refs/heads/master | 2023-02-17T01:45:53.735727 | 2021-01-16T13:42:31 | 2021-01-16T13:42:31 | 320,251,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import numpy as np
import cv2 as cv
def nothing(x):
print(x)
# Create a black image, a window
cv.namedWindow('image')
cv.createTrackbar('CP', 'image', 10, 400, nothing)
switch = 'color/gray'
cv.createTrackbar(switch, 'image', 0, 1, nothing)
while(1):
img = cv.imread('trex.png')
pos = cv.getTrackbarPos(... | [
"50679225+raghvendra98@users.noreply.github.com"
] | 50679225+raghvendra98@users.noreply.github.com |
a4e7a4cadea98270cebf7bd8ab170c2f030ac42c | f0ec40da9043db89265b2f90f7c77f896b9344aa | /instaclone/migrations/0004_auto_20170724_0943.py | 8a0c180cc08c42cdb1e0a091134b137a40d1d4c7 | [] | no_license | shivajaat/InstaClone | 9c5547837ec639195a93f316dcd82703d2e0b621 | c0cabe48abde151920c5a480738523acee819a84 | refs/heads/master | 2021-01-02T08:35:36.497159 | 2017-08-01T17:16:11 | 2017-08-01T17:16:11 | 99,025,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-24 04:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instaclone', '0003_auto_20170724_0940'),
]
operations = [
migrations.AlterF... | [
"shivajaat21@gmail.com"
] | shivajaat21@gmail.com |
5f844ff0add74663d1b5f8196c9802f858ac8f5b | ea384acfec1ae21bc8583258ecaa187ded4b22d6 | /data/base/prototypes/entity/miningDrills.py | 9f855b6f52051c33e371df5debe3a40a633cb7d9 | [
"MIT"
] | permissive | cmk1988/Jactorio | da03e97d0fa8bfbf9428e45aa2e4772c0ea9542b | 4056b4c16614d566ec8d90b250621e03645bf4d2 | refs/heads/master | 2023-03-28T03:05:24.337666 | 2021-03-13T20:31:30 | 2021-03-13T20:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import jactorioData as j
def addSprite(spritePath):
return (j.Sprite()
.load(spritePath)
.frames(8)
.sets(8)
)
def createDrill(name, icon, spriteN, spriteE, spriteS, spriteW):
(j.MiningDrill(name)
.rotatable(True)
.pickupTime(0.1)
... | [
"jaihysc@gmail.com"
] | jaihysc@gmail.com |
b6accd03937aff683e9c67bcc79daa3e0d5517c3 | 5f80ca7e63eef57c044d937d60a6e3d6e8f138cc | /b2week4.py | adebb2539d6fac6ce435a543badb661b745bb0e4 | [] | no_license | sjerkovic/Bioinformatics-specialization | 49125231650a2db1423f3f2ef49130e99b754bd6 | 1d599934675c8663a61fdedd8944aea0e2cd8ea6 | refs/heads/main | 2023-04-15T20:31:33.249693 | 2021-05-02T22:11:42 | 2021-05-02T22:11:42 | 363,510,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | def spectral_convolution(spectrum):
spectrum_int = sorted([int(v) for v in spectrum.split()])
convolution = []
for i in spectrum_int:
for j in spectrum_int:
a = i-j
if a>0:
convolution.append(a)
return convolution
| [
"noreply@github.com"
] | sjerkovic.noreply@github.com |
e463337960661352eec76273356b1323176686ca | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /170/Solution.py | 1ece9965f93617191e3d6e484aeefd64c54f0c67 | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | """
Design and implement a TwoSum class. It should support the following operations: add and find.
add - Add the number to an internal data structure.
find - Find if there exists any pair of numbers which sum is equal to the value.
Example 1:
add(1); add(3); add(5);
find(4) -> true
find(7) -> false
Example 2:
add(3... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
51bacc265849e99d5638fe2aa84fb25204c57781 | a0dda8be5892a390836e19bf04ea1d098e92cf58 | /叶常春视频例题/chap05/5-2-9-生词清单.py | 6c9697103cde9015e7e96499929c29627c18643d | [] | no_license | wmm98/homework1 | d9eb67c7491affd8c7e77458ceadaf0357ea5e6b | cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2 | refs/heads/master | 2020-04-14T19:22:21.733111 | 2019-01-08T14:09:58 | 2019-01-08T14:09:58 | 164,055,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # 例5-2-9 生词清单
new_words = []
for i in range(1, 101):
word = input("输入生词:")
if word == "*":
break # break语句的作用是跳出循环,执行循环后面的语句。
if word not in new_words:
new_words.append(word)
print("生词清单:", new_words) | [
"792545884@qq.com"
] | 792545884@qq.com |
927c002da1456a2be2e42271cff26c52213d5fc3 | 85c594b9f5af241d25a4957ba57c65cc1b473008 | /pywrap/setup.py | 43dced996b3fb659e394fca25776f618590906ed | [] | no_license | jeffli678/autoit | 84dca4a78b892a0ab8a7b00c3682481c70d667d3 | a0e57b382abe3d4caed9d2371672fd003bed4c61 | refs/heads/master | 2021-05-27T10:58:32.741270 | 2012-10-10T16:55:30 | 2012-10-10T16:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from distutils.core import setup, Extension
import platform
osname = platform.system()
if osname == "Windows":
shared_libs = []
else:
shared_libs = []
module = Extension('pyautoit',
sources = ['pyautoit.cpp'],
libraries = shared_libs,
library_dirs = [],
extra_objects = ["../build/lib/libautoit.a"],
)
se... | [
"analyst004@gmail.com"
] | analyst004@gmail.com |
323801345ddf65b4f2d46b72eae6c8c91ab6e767 | 11147666888ce8a0d6bd540b1d1d4bf7a788f4bb | /server/botserver.py | 84f5477d38903f2a824ba9d8243e8d3f9b0b299b | [
"MIT"
] | permissive | Kileak/Kileak-Slack-Base-Bot | 4ef4312955db30e54dd36e2f50e279c33af7fce2 | 5a1c14b96383f4d5bbbde87670d4f080530c4fdf | refs/heads/master | 2021-01-20T08:24:33.079050 | 2017-09-07T12:20:43 | 2017-09-07T12:20:43 | 101,556,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,200 | py | import json
import threading
import time
from slackclient import SlackClient
from handlers.handler_factory import *
from handlers import *
from util.loghandler import *
from bottypes.invalid_console_command import *
class BotServer(threading.Thread):
# global lock for locking global data in bot server
threa... | [
"razor99@gmx.de"
] | razor99@gmx.de |
abb8d377bfc14fc3f720ebee1401edf33b988493 | e0ea106f98cf3bff4a9473d4b225f56da60314d6 | /percy/__init__.py | a1e13d8a562a1a9380d0e06e996b210fa34e65a9 | [
"MIT"
] | permissive | getsentry/python-percy-client | e80dbf257a168cd08ed2af4cf0fbcc80f20ddaac | c3a80ed567ad40b2f1eaaea76f0886aa6f0367eb | refs/heads/master | 2023-08-05T23:24:46.855782 | 2017-07-14T00:45:20 | 2017-07-14T00:45:20 | 97,176,225 | 1 | 2 | MIT | 2020-10-27T22:44:01 | 2017-07-14T00:32:31 | Python | UTF-8 | Python | false | false | 285 | py | # -*- coding: utf-8 -*-
__author__ = 'Perceptual Inc.'
__email__ = 'team@percy.io'
__version__ = '1.0.1'
from percy.client import *
from percy.config import *
from percy.environment import *
from percy.resource import *
from percy.resource_loader import *
from percy.runner import *
| [
"mike@fotinakis.com"
] | mike@fotinakis.com |
6abcb0d176f43e109d8555a90281fa679fce1a72 | 64ac3af07036f240bc333f58f9ff9924d6fea06a | /modelrerank/src/main.py | 4502decd697e2341bdca9cb97474a8a809929668 | [
"Apache-2.0"
] | permissive | stevencdang/AutoML-DS-Components | b9e12011fd958f4734f323f4882806e8be4b64f2 | b0490262d3db5307c37f82c92e25cd938dd3a242 | refs/heads/master | 2023-01-10T13:06:27.167187 | 2019-03-28T18:11:40 | 2019-03-28T18:11:40 | 175,680,072 | 0 | 0 | Apache-2.0 | 2023-01-04T23:30:19 | 2019-03-14T18:42:27 | Python | UTF-8 | Python | false | false | 2,992 | py |
# Author: Steven C. Dang
# Main script for importing provided D3M dataset schemas for operation on datasets
import logging
import os.path as path
import sys
import json
import pprint
import argparse
import csv
import pandas as pd
# Workflow component specific imports
from ls_utilities.ls_logging import setup_loggin... | [
"stevencdang@gmail.com"
] | stevencdang@gmail.com |
54256fc282316da722359a762ee5dc1ab76d62a0 | 09c4fef0e8941a40b5cdd1b1f689031361852727 | /csvwriter.py | d1aef78e356fdc96b6f3a281462513cd9776bdd1 | [] | no_license | jw910731/NTNU_TextProcessing_Final | c109fa3d1c391638817902c2fb5073e9063ad1a8 | 3ce60778b4868251e9de4e2a980b3f118a9c0352 | refs/heads/main | 2023-02-12T20:06:20.516885 | 2021-01-12T07:31:01 | 2021-01-12T07:31:01 | 307,621,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import pandas as pd
def csvwrite(DICT):
pd.DataFrame(DICT).to_csv('output.csv', header=True,encoding='utf-8') | [
"adam20001002@gmail.com"
] | adam20001002@gmail.com |
d4e630393d97b23b24b61c540310af9eced66716 | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/core/managers/userservice/comms.py | e2b06381d46b8a78ab640c8bf0c609b7fff00dda | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,264 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019-2021 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright not... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
c886c20cf7de550debdfb0a88d9edcbafb45a992 | 0726db2d56b29f02a884885718deeddbf86df628 | /lienp/visualize.py | af217e55f8ec1524e381eb022bcd47bbb2f01101 | [] | no_license | makora9143/EquivCNP | 515dfd95557d8d3a21d3fc0f295ce885a9deb913 | a78dea12ab672e796c86427823c9f1b2fdd8df8d | refs/heads/master | 2023-03-17T04:34:26.320055 | 2021-03-05T18:02:18 | 2021-03-05T18:02:18 | 254,292,834 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import io
import PIL.Image
import matplotlib.pyplot as plt
import torch
from torchvision.transforms import ToTensor, ToPILImage
from torchvision.utils import make_grid
def mnist_plot_function(target_x, target_y, context_x, context_y):
img = torch.zeros((28, 28, 3))
img[:, :, 2] = torch.ones((28, 28))
i... | [
"makoto.kawano@gmail.com"
] | makoto.kawano@gmail.com |
a1b2a9fb37f905611061cfcd13a857ef8d26ffe9 | e068f64dfbcc00ae4c84db0432b9fbcc8d2df0c7 | /orchestra/google/marketing_platform/utils/schema/erf/TargetUnion.py | 6f7fed3d24853e27ba56bee71d7ecb070e656b11 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | trakken/orchestra | 947d58bbe9a645c3554c295dd4512e86b67641a5 | 4803530a7df9c685893aca87250e3f736de23bc8 | refs/heads/master | 2022-12-09T04:05:50.871943 | 2020-03-02T16:09:49 | 2020-03-02T16:09:49 | 295,346,069 | 0 | 0 | Apache-2.0 | 2020-09-14T08:01:09 | 2020-09-14T08:01:08 | null | UTF-8 | Python | false | false | 1,201 | py | ###########################################################################
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/... | [
"kingsleykelly@google.com"
] | kingsleykelly@google.com |
0e185c34961eff4289c4c9d576294c3a43be2ae6 | 4dd9a94828221013244d56443ce988b49c749523 | /neural_net.py | 589a7d86c407d6c653e2bd7c4fd28d4e7a919928 | [] | no_license | dhorrall/deep_learning_foundations | e452084d91c684ebc9d54de452041ecff2704733 | 714457299508bf9b7a5b3b18dd260c842c432cfe | refs/heads/master | 2021-01-09T06:16:20.121329 | 2017-06-06T14:27:49 | 2017-06-06T14:27:49 | 80,946,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | '''
Created on Jan 29, 2017
@author: derekh1
'''
from numpy import exp, array, random, dot
class NeuralNetwork():
def __init__(self):
# Seed the random number generator, so it generates the same numbers
# every time the program runs.
random.seed(1)
# We model a single neuron, wit... | [
"derekh1@oc7043351046.ibm.com"
] | derekh1@oc7043351046.ibm.com |
d155707dd0625574b9dc3d610d97d6cc26fbfe3f | 8c2d17c1dd5409d63bde7907cdee4adaf4e9443a | /day_3.py | 81eac927ebee6866133652e83eeba8b84259704f | [] | no_license | kmb5/AdventOfCode2019 | f4099686028f7ddd5895918c9c55a7080936cc8c | f10dce035d6134800b4c83e07e1aa2a40061f49e | refs/heads/master | 2020-12-01T21:19:46.357511 | 2019-12-30T09:41:20 | 2019-12-30T09:41:20 | 230,774,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | #import pygame
#from pygame.locals import QUIT
from PIL import Image, ImageDraw
def main():
filename = 'inputs/day_3_input.txt'
with open(filename) as f:
puzzle_input = f.read().splitlines()
solution_part_1 = part_1(puzzle_input)
print(f'Part 1 solution: {solution_part_1}')
... | [
"noreply@github.com"
] | kmb5.noreply@github.com |
d906c6552a6f100ecb942e4634c4b7e28aa9643d | e5cf384933ccc0b54edfc1e775e56586bc100f74 | /pixiv_downloader/pixiv_downloader.py | 1f858e4e6da6edd7f92feb021b5f5213814f07ce | [] | no_license | Einsbon/DeepLearning-with-Pixiv | bda902c07a955fe3bff081fb10986ca7e2fdaad0 | 642aadc892766623a5f861ab448975f36deab8ce | refs/heads/master | 2020-03-28T14:30:19.162858 | 2018-09-12T18:48:56 | 2018-09-12T18:48:56 | 148,493,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,885 | py | from selenium import webdriver
from bs4 import BeautifulSoup
import time
import urllib.request
import urllib
import getpass
import os
import shutil
phantompath = r'C:\Users\Einsbon\Documents\Python_Projects\python_window\crawler\pixiv_low_quality_image_crawler\phantomjs.exe'
chromepath = 'C:\\Users\\Einsbon\... | [
"noreply@github.com"
] | Einsbon.noreply@github.com |
082b2931c6c4dbd7173131856b1c308a119963b8 | 18740007244035abf66efb0c4c37eca457806cce | /infrastructure/cloudformation/troposphere/storage.py | 5ce481321753c61486729cc7dacb45fbe8b5d2a6 | [] | no_license | khueue/khueue-diary | 7773b34fc0214cdd04133cd8cb38ec5e8096318c | 90de164b997ebde328d4f116b94f588a3c394cec | refs/heads/master | 2020-04-07T02:28:26.654045 | 2019-01-22T12:37:23 | 2019-01-22T12:37:23 | 157,977,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | import troposphere
import troposphere.cloudfront
import troposphere.s3
import awacs
import awacs.s3
CONFIG = {
'app_bucket': {
'name': 'khueue-diary-app',
},
'pipeline_bucket': {
'name': 'khueue-diary-pipeline',
'object_lifetime_days': 30,
},
'log_bucket': {
'name': 'khueue-diary-logs',
'object_lifetim... | [
"khueue@gmail.com"
] | khueue@gmail.com |
075026177bd5d8967534c7183b390a63941c8beb | f4205df28c7b9817acd03aa78c24adcc501a65b8 | /run.py | 766037e23811d8ad0a4f210904cad02d954fcc1e | [
"MIT"
] | permissive | chelseaayoo/Password-manager | d8133f6827b30aa919f2cd179ffd5c0ecfb3ae23 | e7abe7c334427e40e78515066845e8cf742b367d | refs/heads/master | 2023-08-28T09:45:20.495179 | 2021-10-26T06:15:49 | 2021-10-26T06:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | #!/usr/bin/env python3.8
#!/usr/bin/env python3.6
from credential import Credential
from user import User
def create_credential(login_username,password):
'''
Function to create a new credential
'''
new_credential = Credential(login_username,password)
return new_credential
def save_credentials(creden... | [
"chelsea.ayoo@student.moringaschool.com"
] | chelsea.ayoo@student.moringaschool.com |
d547c8a2ec1e142851a69e65f88b8dd40d883aaf | 5bf143f904a19a8ff94cf4a7ef8da8da25de3458 | /analyze_sentiment.py | 8d744c14a23fb55013f1cb8285781cf4c8a71f11 | [] | no_license | kurobeko1259/multsum | 7d51a181e43ae8ce28aab7af6e8dee9a48d276ad | cfd4fe98c8371578c804ec85197a75a59fa92869 | refs/heads/master | 2020-04-06T23:00:45.765070 | 2018-11-21T06:34:18 | 2018-11-21T06:34:18 | 157,854,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys, re, math, numpy
from sets import Set
f = open(os.path.dirname(__file__)+"/emotion_words_positive.txt")
#positive_emotions = Set(f.readlines())
positive_emotions = set()
for pos in f.readlines():
#print pos
positive_emotions.add(pos.replace("\n", ""))
f = o... | [
"[s.u.zzz1259@icloud.com]"
] | [s.u.zzz1259@icloud.com] |
a7e699f06dbaa2415ab8f0ce348214b552cfc045 | 2c5302a8f6962c2de4849c0a49271033ca4fbfbd | /Day-30/Day_30_VishwaPatel.py | 24b68063b1058a4c94682b5d6b1d95b172b53b5a | [] | no_license | 136tejas/30DayOfPython | 4db35033e413b9ec7dc6c0c0871d12b6a1e39555 | 20df271cd8ed3170aad2ee359a6a28f9f682a5b5 | refs/heads/main | 2023-08-11T10:51:39.357383 | 2021-10-04T07:34:44 | 2021-10-04T07:34:44 | 379,897,363 | 0 | 0 | null | 2021-06-24T11:10:35 | 2021-06-24T11:10:35 | null | UTF-8 | Python | false | false | 445 | py | import numpy as np
m = int(input('Enter rows'))
n = int(input('Enter columns'))
l = []
b = []
for i in range(m):
l = []
for j in range(n):
e = int(input('Enter element: '))
l.append(e)
b.append(l)
print("Original matrix")
print(np.matrix(b))
for i in range(m):
for j in range(n):
... | [
"noreply@github.com"
] | 136tejas.noreply@github.com |
8d44b23e3c33f8af0e8609deae0bf22a79867a27 | 20d87b9d0bac919a7fd9c07af940b5813784b1f6 | /flask_sqlite_sqlalchemy/app.py | 8d3f610ac364d8124add2dd5a33a4f9698ada2e7 | [] | no_license | anacarolinacv/api-python-flask-example | 679e26bc5a43e64aab2457b95ba1013bad951056 | 96438e369084af6e8f6bcd02f437e331b6b67abe | refs/heads/main | 2023-06-20T00:01:56.811601 | 2021-07-15T01:15:49 | 2021-07-15T01:15:49 | 386,044,169 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from flask import jsonify
from marshmallow import ValidationError
from na import ma
from db import db
from server.instance import server
api = server.api
app = server.app
@app.before_first_request
def create_tables():
db.create_all()
if __name__ == '__main__':
db.init_app(app)
ma.init_app(app)
se... | [
"ana.vasconcelos@ccc.ufcg.edu.br"
] | ana.vasconcelos@ccc.ufcg.edu.br |
8cea560fba02030a0a26133fc24eb1c13946c0a5 | ae6177cf2ebe87c3749f03e0ffaade2dac8b8688 | /AulasPython/Parte1/Semana4/decrescente.py | 275cbedae0412d30178947b70b66b0b611437eff | [] | no_license | jmarq76/Learning_Programming | 8a7c598a733c1ba9983103e4aa284bed80ffabbe | bf15d351e239529645fb74a355e296d085683921 | refs/heads/master | 2022-11-17T23:03:32.236684 | 2020-07-07T12:05:56 | 2020-07-07T12:05:56 | 277,804,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py |
decrescente = True
anterior = int(input("Digite o primeiro número da sequência: "))
valor = 1
while valor != 0 and decrescente:
valor = int(input("Digite o próximo da sequência: "))
if valor > anterior:
decrescente = False
anterior = valor
if decrescente:
print("A sequência está em orde... | [
"58978254+jmarq76@users.noreply.github.com"
] | 58978254+jmarq76@users.noreply.github.com |
cffd64491c65e0ffc66d3cb53f6958c2596eb53b | 7bdb103ab024adf67fdd209af6377e86659656dc | /pydicom/errors.py | 8872313e29db0a934a18f8302a83025a4f3b3365 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | glemaitre/pydicom | b58b71f3a0082595a4d62586be21b574c63a76f9 | d88f78e90a8df1cc314858049edaa403be3f5526 | refs/heads/master | 2020-02-26T14:13:25.970610 | 2017-07-31T22:35:55 | 2017-08-01T12:41:22 | 58,641,730 | 0 | 0 | NOASSERTION | 2023-04-29T22:22:23 | 2016-05-12T12:59:33 | Python | UTF-8 | Python | false | false | 876 | py | # errors.py
"""Module for pydicom exception classes"""
#
# Copyright (c) 2013 Darcy Mason
# This file is part of pydicom, released under a modified MIT license.
# See the file LICENSE included with this distribution, also
# available at https://github.com/pydicom/pydicom
#
class InvalidDicomError(Exception):
... | [
"darcymason@gmail.com"
] | darcymason@gmail.com |
d019acbd04f6f92c44b1c6b5ef4f6c1d988e6d74 | c50c22c8f814c8d9b697337891904aa0be0edf56 | /shortest_string.py | b26e0a4d78a888e7c2d4a6252bf9b0d4e510728a | [] | no_license | mhiloca/Codewars | a6dc6e8ea5e5c1e97fb4a3d01a059b3120b556b7 | 3155e4b20fbd96c8e7fbe6564014a136d095c079 | refs/heads/master | 2020-07-11T12:41:19.997254 | 2019-11-01T12:44:38 | 2019-11-01T12:44:38 | 204,541,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | """
Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.
"""
def find_short(s):
return min(len(x) for x in s) | [
"mhiloca@gmail.com"
] | mhiloca@gmail.com |
40cf04c7d362189c7309e4ba6a220708a877cf9a | a4e2bd84a06e41a446b521a4a16ecf85e8aee76a | /locate_chromedriver.py | 968593b2dcbe3e79d6acfe7d62da1c0bde8ea2ec | [] | no_license | 526avijitgupta/Bookaway-testing | 273715bb07ab2b5216e4231b1ca63024846c0953 | cb3babd4b60de2e5b1e931fc63880987385ad052 | refs/heads/master | 2021-01-22T09:04:12.689869 | 2014-10-31T13:35:52 | 2014-10-31T13:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
# Filename: local_settings.py
import os
print "Locating chromedriver on your machine.."
chromedriver = os.popen("find / -name 'chromedriver' -not -name '*.*' 2>/dev/null").read()
chromedriver = str(chromedriver.split("\n")[0])
if(chromedriver):
print ("chromedriver found! Executing Script..")
else:
... | [
"526avijitgupta@gmail.com"
] | 526avijitgupta@gmail.com |
9782fd2180f9d64e673c362aad00d0e19916f9e3 | dcdde01af29567eba920ffcf340605251aa726be | /flask/flsk.py | 7964838ff06455a8dc7653023413917e3b9739b6 | [] | no_license | MeherMS/python | b9f3d77ef97a72f4e68deb77f767fa45f7160a43 | 66296d552755a11600a8fba4d241efa13e0f3b50 | refs/heads/main | 2023-03-25T11:07:41.007216 | 2021-03-27T23:40:59 | 2021-03-27T23:40:59 | 352,113,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
from flask import Flask, jsonify, request
import pickle
import json
# load model
model = pickle.load(open('model.pkl','rb'))
data = {'Pclass': 3
, 'Age': 2
, 'SibSp': 1
, 'Fare': 50}
data = json.dumps(data)
# app
app = Flask(__name... | [
"noreply@github.com"
] | MeherMS.noreply@github.com |
d4ec50f6dfaad60ee5b78a209f3dfea8cc4a1456 | eabe353d086aacfe2953eaf5ec8cf71668ae1448 | /backend/card/migrations/0001_initial.py | 3dbd597c01a62d3b027b59fd1094d179e39c1c4d | [] | no_license | epc91/oblique-strategies | d5961e7b0ac92b3338cc6bddf213673d2779661a | de9ac2b1a75b44944534750178641ae1b34604a0 | refs/heads/main | 2023-07-10T11:30:05.971381 | 2021-08-24T23:16:38 | 2021-08-24T23:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.2.6 on 2021-08-14 01:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Card',
fields=[
('id', models.BigAutoField(... | [
"eduardopeschke@gmail.com"
] | eduardopeschke@gmail.com |
0c2357d7adb5b24a1223a63d777fbf1484ae81ab | 6bcb73fc72587d24927eb9f1450ba3e676c421cf | /setup.py | 9d6ec105a703c31f0bd3be9f32394427a8abd00f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SorchaYang/Scopy | ed26cb9026de898e89e1d39bb7a8af2d041a34a9 | 897f9f0f41a90e0cff1e2fd28a7e82cfac051306 | refs/heads/master | 2022-06-09T19:14:14.962262 | 2020-05-07T10:16:07 | 2020-05-07T10:16:07 | 262,022,320 | 4 | 0 | MIT | 2020-05-07T10:40:58 | 2020-05-07T10:40:58 | null | UTF-8 | Python | false | false | 1,702 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 15 13:21:07 2019
@Author: Zhi-Jiang Yang, Dong-Sheng Cao
@Institution: CBDD Group, Xiangya School of Pharmaceutical Science, CSU, China
@Homepage: http://www.scbdd.com
@Mail: yzjkid9@gmail.com; oriental-cds@163.com
@Blog: https://blog.moyule.me
I love my senpai forerver!... | [
"yzjkid9@gmail.com"
] | yzjkid9@gmail.com |
c5d4d2f46c24a51bf6824c2c8735e80bc1f67f80 | 3f4464c932403615c1fbbaf82eaec096426b1ef5 | /StartOutPy4/CH6 Files and Exceptions/write_sales.py | ecb7c7a8611babac6e9db4c42a7bbdc92ed31f8e | [] | no_license | arcstarusa/prime | 99af6e3fed275982bf11ada7bf1297294d527e91 | 5f1102aa7b6eaba18f97eb388525d48ab4cac563 | refs/heads/master | 2020-03-22T14:07:08.079963 | 2019-05-09T11:45:21 | 2019-05-09T11:45:21 | 140,154,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | # This program prompts the user for sales amounts
# and writes those amounts to the sales.txt file. 6-8
def main():
# Get the numbers of days.
num_days = int(input('For how many days do ' + 'you have sales? '))
# Open a nuew file named sales.txt.
sales_file = open('sales.txt', 'w')
# Get the amoun... | [
"40938410+edwardigarashi@users.noreply.github.com"
] | 40938410+edwardigarashi@users.noreply.github.com |
7afc571991601facfe9836680cdc867c586faa8b | ae3b0909aa4b9f96c17385c1c2e62721817121fe | /policy/task_decomposition_all_without_task.py | 580d0829db47525b4d360c18566c1892655c7fe7 | [] | no_license | saki-37/StarCraft | 9f58912f8006e60559d174fdb046c7fc16c15728 | a915116526478a00690393554f7ddf11b5acda5e | refs/heads/master | 2023-07-13T08:17:26.665932 | 2021-08-19T02:32:16 | 2021-08-19T02:32:16 | 398,439,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,091 | py | '''不传0。没有task score。按列求和选择最优动作。
'''
import torch
import os
from network.task_rnn_all import TaskRNNAll, TaskRNNAllwoTask
from network.task_decomposition_all import TaskDecompositionAll
import torch.nn.functional as F
import time
class TDAll:
def __init__(self, args):
self.n_actions = args.n_actions
... | [
"852488062@qq.com"
] | 852488062@qq.com |
ee3ca22e9c0f5e05bbf59b552966f070d8a674d9 | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /20~29/ABC021/honest.py | 9c7f3d43c9ab13670129a435bb52b6b7b42038ab | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | n = int(input())
a, b = map(int, input().split())
m = int(input())
x, y = [0] * m, [0] * m
data = [[] for _ in range(n)]
for i in range(m):
x, y = map(int, input().split())
data[x - 1].append(y - 1)
data[y - 1].append(x - 1)
dist = [[-1] * n for i in range(n)]
dist[a - 1][b - 1] = 0 | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
c7a1545c04ec79435caf4f721bcbd105da6ab6dc | 18e6cf3e0f748b55738d927c9ea0b0dda71dd60c | /modelo mvc/main.py | fa3118ceea937e8e73a8b6cd0e7db5ad20be8448 | [] | no_license | Adjailson/AulasETE | d0d94697d2c74afb4b38c176d34d6264e2e12ff3 | 0a223e41e8680a7eddac6443a4d9c21ab5d808b9 | refs/heads/main | 2023-09-04T18:52:38.252095 | 2021-11-23T14:48:22 | 2021-11-23T14:48:22 | 399,248,907 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from view.telaView import TelaView
TelaView()
| [
"noreply@github.com"
] | Adjailson.noreply@github.com |
d78e4bb780d288b7d29be51d0fba08d43575ed04 | e0e60b1efc1d91e39dfba9b612d82cf32b5efcda | /mysite/Grade_A/models.py | 4be9ab3e9110a63784716f2acd792856cbe9f654 | [] | no_license | Apaisley/Grade-A | f187b76c1a74a3edca35712dd361f6c49d60fbe6 | d750372c7e0e6c31efb1eb2699b84f7c56df3887 | refs/heads/master | 2021-09-23T03:54:51.311184 | 2020-03-12T00:56:45 | 2020-03-12T00:56:45 | 238,564,849 | 0 | 0 | null | 2021-09-22T19:40:01 | 2020-02-05T22:54:50 | Python | UTF-8 | Python | false | false | 5,374 | py | from django.db import models
from taggit.managers import TaggableManager
from django.utils.datetime_safe import datetime
from django.dispatch import receiver
from django.db.models.signals import post_save
import numpy as np
from django.contrib.auth.models import User
# Create your models here.
#////////////////////-... | [
"apaisley2017@gmail.com"
] | apaisley2017@gmail.com |
ba928fba58eaca0bce8982e702f44206ea394ad4 | 631d667ad3f5ef759923e63644e82af5e6bdebf6 | /Cryptology/Cyphers/Cyphers/CypherGeneration/Bifid/BifidUtil.py | 7f6969a258ced04ba6d69ce894d5b5c5178752f2 | [] | no_license | frankbryce/First | e808537593f96fb693e65bb909cd1a84dc2fa76e | a69ccb715a65d7647272402790674336e72431f0 | refs/heads/master | 2020-12-28T23:34:58.777395 | 2014-05-15T00:15:52 | 2014-05-15T00:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import StrUtil as s
alphabet = 'ABCDEFGHIKLMNOPQRSTUVWXYZ' # intentionally missing 'j'
Table = []
Result = []
def SetKey(keyword):
global Table
keyword = jtoi(s.StripStr(keyword))
keyalph = s.GenerateKeyedAlphabet(keyword,alphabet)
Table = [keyalph[i:i+5] for i in xrange(0, len(keyalph), 5)]
retur... | [
"jonnyjack7@gmail.com"
] | jonnyjack7@gmail.com |
4bbad83e050e46e0bd882f7147d3faa597ef6614 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/files_beta/setup.py | 917c1b376b39507335d14d388323f62f011a8a2c | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 1,858 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
d005e74749c88692012dd32e899d20852ffbc130 | c223e858c9ebf1b734221e4db4b3d594993a5536 | /thespian/system/timing.py | ec5f22afa79083a0f4d2f9c23f08117403194959 | [
"MIT"
] | permissive | jfasenfest/Thespian | 17f9738aff648328a40f94d3225427d82fe27e39 | 5979a2c9791b774fb620253bb62253c95cf7d4b5 | refs/heads/master | 2020-12-26T00:27:09.446001 | 2016-11-28T21:48:20 | 2016-11-28T21:48:20 | 48,067,029 | 0 | 0 | null | 2016-11-21T23:17:52 | 2015-12-15T20:24:12 | Python | UTF-8 | Python | false | false | 6,566 | py | from datetime import datetime, timedelta
###
### Time Management
###
def timePeriodSeconds(basis, other=None):
if isinstance(basis, datetime):
if isinstance(other, datetime):
return timePeriodSeconds(other - basis)
if isinstance(basis, timedelta):
try:
return basis.tot... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
08b555c7ec6ff9ee16e439791eb8fbf841af3b69 | 8d74ac2b0acad1a10bc916d8566181ac801c7597 | /articles/migrations/0007_auto_20210305_2120.py | 4b9e92250ae194fa86adcf0379f40449a515f1d4 | [] | no_license | PatrickBoynton/news-app | e459b08f651258388d0d20074d94a685ad57d44f | 125464d4ff89d7a2297536e39ba4dd770e5089fa | refs/heads/main | 2023-08-22T00:17:30.512303 | 2021-09-24T05:19:32 | 2021-09-24T05:19:32 | 343,518,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Generated by Django 3.1.7 on 2021-03-05 21:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_auto_20210305_0416'),
]
operations = [
migrations.AlterField(
model_name='article',
name='article_s... | [
"jpboynton3@gmail.com"
] | jpboynton3@gmail.com |
62a6d539be9bbfbbbbed23228177058ae2f177d0 | 189d590adf09e309862e5f3aef1012c8a6e0b337 | /userbot/plugin/rename.py | d34526cdf9e8f7d497224a26489c06d9e3e5c380 | [
"MIT"
] | permissive | LegitWoLf/BlackShadowBot | dbabec745ccbb6dac5615dfaa5dd8a24849c9c4b | be3e3e5f390141944ce2f412274cbb0e1463c493 | refs/heads/master | 2022-07-02T21:30:25.346111 | 2020-05-15T11:50:04 | 2020-05-15T11:50:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | """Rename Telegram Files
Syntax:
.rename file.name
.rnupload file.name
.rnstreamupload file.name
By @Ck_ATR"""
import aiohttp
import asyncio
from datetime import datetime
from hachoir.metadata import extractMetadata
from hachoir.parser import createParser
import json
import os
import requests
import subprocess
from tel... | [
"noreply@github.com"
] | LegitWoLf.noreply@github.com |
07774d6b330c67e1c6a3bd8784a7181f14658bae | 329e8d1ac5b2d38fef727921fdcebc9435dc8842 | /sysdetails.py | 419b8d78f0c693d716f6e4f0dec0d2d730574463 | [
"MIT"
] | permissive | ChankitSaini/DaisyX-Extra | 082a9a008df458bd3aeb765c068055598bea5978 | e1cafbbb4f5a7845ffd70e16e4395e7e797b2cf7 | refs/heads/main | 2023-04-24T02:25:15.715245 | 2021-05-14T05:18:19 | 2021-05-14T05:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | import platform
import sys
from datetime import datetime
import psutil
from telethon import __version__
from DaisyX.utils import admin_cmd, sudo_cmd
from DaisyX import ALIVE_NAME
# ================= CONSTANT =================
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else bot.me.first_name
# =======================... | [
"noreply@github.com"
] | ChankitSaini.noreply@github.com |
62604aec9fec8d853af4fd5bdc81a077ae397e7c | 4e567fc53288f53cdcfa37c0f5490a29cf4bc0cd | /projects-inventory/inventory/inventorya.py | dc89e6b234d8d28aaf3a41b5b98a5039f3ac59d3 | [] | no_license | sidarmawan/ansible_training | 3e4bba3bde4557a23c92735314f09328319463c9 | 77d3acb3430143458de07ca2b8257f3a2637f59b | refs/heads/master | 2022-04-08T06:01:31.043044 | 2020-01-16T09:56:41 | 2020-01-16T09:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | htttps://materials.example.com/labs/projects-inventory/inventorya.py: Unsupported scheme ‘htttps’.
| [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
65a4c9be5fe8054649cd3ece5dbe367bc18a3e9e | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/55JumpGame.py | f503b433be7298c6acd75a571e1e0b2c43dd3322 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 398 | py | # coding=utf-8
'''
Created on 2017�3�7�
@author: Administrator
'''
class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
mini_true = len(nums) - 1
for i in xrange(len(nums) - 1, -1, -1):
if nums[i] >= (mini_t... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
ea6f324c9eaa7e365c7e8d1385843b1e0080dd62 | 5f0ce32209a69ca934174631df447b8d4d13caaa | /bibliotecaMath.py | 408d5eaecc1fb58bbb5282697c3d4545a2ba33a6 | [] | no_license | arthurcardosof/praticando-python | 8fea1da81ab09402d35db9f8cebfeaae664e90bb | f3c997e1963ddf1caad0396a6ec52803dc309583 | refs/heads/master | 2020-12-21T07:48:17.650179 | 2020-01-26T19:26:00 | 2020-01-26T19:26:00 | 236,363,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | '''
Exercicio: Crie uma função para verificar se uma palavra é palíndrome. Retorna true se for uma palavra palíndrome, e false se não for.
Exemplos de palavras palindromes: ovo, arara
'arara' -> [0], [1], [2]
'''
def palindrome(palavra): return palavra == palavra[::-1]
print(palindrome('arara'))
print(palindrome('m... | [
"panchobauer@gmail.com"
] | panchobauer@gmail.com |
db7d00585385b6589b6b11d0e3b16814d349cc17 | a61ebd1507eeaa334aff44800b022ef0a258752a | /Code/CodeChef/remainder.py | 37c511c002d48cc5390d47f937a2ec559c35e257 | [
"MIT"
] | permissive | Jimut123/competitive_programming | 14ce0ab65414e6086763519f95487cddc91205a9 | b4cdebaceee719c1a256921829ebafda11c515f5 | refs/heads/master | 2023-03-05T15:42:57.194176 | 2022-04-08T08:53:26 | 2022-04-08T08:53:26 | 156,541,142 | 1 | 0 | null | 2019-05-29T17:10:28 | 2018-11-07T12:09:55 | C++ | UTF-8 | Python | false | false | 152 | py | #jimutbahanpal@yahoo.com
t = int(input())
l = []
for i in range(t):
m,n = map(int,input().split())
l.append(m%n)
for item in l:
print(item)
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
3bb37917a0398704646cc7328ac2b1f67c1f8a85 | 1ca5995b3f1debd011cf4c9d3382979ad103ff40 | /ros_workspace/src/regions/src/applytransformations.py | 167f015c21a78140e0270e815319a39cff8b1325 | [] | no_license | rcxking/cv_final_project | 06e864554affd19d062909c6b6b3d5e907f19f4f | 8751cd15d23afe721e4c523675dcd4648a4e2308 | refs/heads/master | 2020-06-01T17:53:19.579281 | 2015-05-15T16:24:24 | 2015-05-15T16:24:24 | 34,287,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | #!/usr/bin/python
'''
applytransformations.py - This script applies a series of transformations
to an input side of images and pickles the data.
Bryant Pong / Micah Corah
CSCI-4962
5/10/15
Last Updated: Bryant Pong: 5/14/15 - 5:10 PM
'''
# Python Imports:
import cv2
import numpy as np
from matplotlib import pyplot ... | [
"rcxking@gmail.com"
] | rcxking@gmail.com |
a34d691e65e99a6c67292407136f05cfbeaeb546 | bafacfb2290ba3d32963ecfbfb6a749e71438050 | /cli_site/cli/migrations/0002_auto_20190705_1248.py | 004b28b80608f1b9385ba5bd9682755af98f08ac | [] | no_license | OneTallProgrammer/django-cli | 185066a564d52afe9f07301b0e94383b72735f64 | 8107b68b57c101fb20cdf857fbd6e5fe9bcbc69a | refs/heads/master | 2020-06-14T05:24:05.038459 | 2019-07-10T19:20:21 | 2019-07-10T19:20:21 | 194,916,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # Generated by Django 2.2.2 on 2019-07-05 12:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cli', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Agent',
field... | [
"jmcauthen@live.com"
] | jmcauthen@live.com |
c80f4c821974aa8bd95e8d011cc9d0f71baae2a6 | 19e4d45d574d6dedd46fa9fac20faa1151fa2601 | /Euler49-PrimePermutations.py | a15d07ba65b2b5b3933211a5860e9f535f18255b | [] | no_license | zzflux/ProjectEuler | bba88d5e42232aa0d39d8325a7752f0983084135 | 796d0ed72738031a300a0e950bb792d046518e73 | refs/heads/master | 2021-01-01T05:14:19.125012 | 2016-04-25T22:45:17 | 2016-04-25T22:45:17 | 56,016,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | #Project Euler problem #49
#Prime permutations
#Jon McMahon 2016
import DivisibilityTools as dtools
import itertools as itools
import math
DIGITS = 4
SEQ_LEN = 3
BLACKLIST = ((1487, 4817, 8147),)
PRIMELIST = dtools.primeListWithDigits(DIGITS)
PRIMESET = frozenset(PRIMELIST)
GREATEST_PRIME = max(PRIMELIST)
SMALLEST_PR... | [
"jonmcmahon21@gmail.com"
] | jonmcmahon21@gmail.com |
aa9c2bf1b305cc6403a880948c9ce34f01af5268 | 2d19317ab9af09be9e6c8f0a25d4a43d4632b680 | /first_project/urls.py | 44eee9ee4a82b0a41d31cece1c0325b3b2218316 | [] | no_license | rudiq4/first_project | 73837d297b21ccd7c706fc08373473e9e4cd8b29 | ba0e987f863f599da9700c355875af76158b76f0 | refs/heads/master | 2021-01-25T13:41:56.102967 | 2018-03-27T14:15:26 | 2018-03-27T14:15:26 | 123,607,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """first_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"rudikvovan@gmail.com"
] | rudikvovan@gmail.com |
81aa064e876bd2b4d52c97a334447ea805b84532 | e32f87eeccab48b690af53cc9e9c5558c21ce589 | /brownian_tree/tools/size.py | b27caad8c830dc1ab0fcbb3d859a992928c9627a | [] | no_license | mblicharz/diffusion-limited-aggregation | c822f21f7d0c0e7aba8c0dbe870bcff8ec650b7e | 40ed87c9d909ddf154483365a3c8bf525adb2b5b | refs/heads/master | 2023-05-31T11:38:11.878870 | 2021-07-02T15:14:00 | 2021-07-02T15:14:00 | 378,947,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Size:
def __init__(self, max_x: int, max_y: int):
self._validate(max_x, max_y)
self.max_x = max_x
self.max_y = max_y
def _validate(self, max_x, max_y) -> bool:
if max_x < 0 or max_y < 0:
raise ValueError(
"Both dimensions should be equal or grea... | [
"maciej.blicharz@protonmail.com"
] | maciej.blicharz@protonmail.com |
6093d2129fcc9b86264e32f2199313f4ee2360fc | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/twisted/web/_http2.py | 1a425a7729ffd88e8e0c2c4b4f98294cbdc6f975 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 45,541 | py | # -*- test-case-name: twisted.web.test.test_http2 -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
HTTP2 Implementation
This is the basic server-side protocol implementation used by the Twisted
Web server for HTTP2. This functionality is intended to be combined with the
HTTP/1.1 and HT... | [
"teadone@naver.com"
] | teadone@naver.com |
8d4588530f69c619168a4cc1e6f9fb07ba1e6326 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_RelativeDifference_Lag1Trend_12_12_20.py | b92931e266c853cfe294b5ace5bc7d11ca7edc8c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 280 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
89474e153defaaa9938f24de4429e92defcd0542 | d723b9c2dcfc9e3366928fd0ea18ee5ee19c2b3c | /backend/apps/detections/upload_sets.py | 140c2d9bcfbee0781d15cc18a2aab00c879d9188 | [] | no_license | skarzi/yb_hackathon_2019 | ff8266e89ae6fa74d57c61e4117d6fc176dba825 | 83c3d96795f6b14f97683ad5c998579adb3faaf4 | refs/heads/master | 2020-09-11T01:34:55.206979 | 2020-07-19T07:50:16 | 2020-07-19T07:50:16 | 221,895,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from flask import current_app
from flask_uploads import (
IMAGES,
UploadSet,
configure_uploads,
)
detections = UploadSet(name='detections', extensions=IMAGES)
configure_uploads(current_app, (detections,))
| [
"skarzynski_lukasz@protonmail.com"
] | skarzynski_lukasz@protonmail.com |
a04bc47a13938f0f6f6d24f671bdcad4533f47f9 | 362efa5644c13e9a370e4d6ce4730833358e0ff0 | /MyWebsite/AGR/AGR/settings.py | 8bcd4ef8e2ed8fe4edddf75d747689f7b2af9f82 | [] | no_license | ISS-IS-IRSPM-AGR/-IRSPM | f07d7133d3005fbb14e784d8a2e719613f17dc0a | 556fc45cb31ddf56dd557305a603a514eaab672c | refs/heads/master | 2023-04-01T03:11:23.162711 | 2021-03-14T16:24:38 | 2021-03-14T16:24:38 | 347,680,073 | 0 | 1 | null | 2021-03-14T16:21:41 | 2021-03-14T15:51:06 | JavaScript | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for AGR project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib impo... | [
"21048103+antoniadevina@users.noreply.github.com"
] | 21048103+antoniadevina@users.noreply.github.com |
33bb22d6d151a3b8a644cd786b43bd9822fdbecd | 8f02ed34ca9d4c82cf3b6305792e0b43cb032456 | /motor_descuento/test/test_articulos.py | e8008d54a3a3d2ce86cabe415c54fdde4a89b02c | [
"Apache-2.0"
] | permissive | angelquin1986/tiptopDescuentos | 977569c15a9e5d3632177f4f7ce39c156931be3a | 6bca61d3142b75eee0e72f3932aeabcf1457526a | refs/heads/master | 2023-07-30T02:09:35.119053 | 2020-06-19T17:11:47 | 2020-06-19T17:11:47 | 272,595,003 | 0 | 0 | Apache-2.0 | 2021-09-22T19:15:28 | 2020-06-16T02:53:13 | TypeScript | UTF-8 | Python | false | false | 1,509 | py | """
@author aquingaluisa
"""
# Cargamos el módulo unittest
import os
import random
import pytest
from django.test import TestCase
# Creamos una clase heredando de TestCase
from motor_descuento.logica_negocio import ln_articulo as ln_articulo, ln_descuento
from motor_descuento.modelo.modelo_productos import Product
fr... | [
"aquingaluisa@galapagosislands.com"
] | aquingaluisa@galapagosislands.com |
71402662a43efd9f3ece9bfc6b5fb824add27987 | c676bf5e77ba43639faa6f17646245f9d55d8687 | /tests/ut/python/ops/test_tuple_slice.py | ea5112995c06203210d7c6ca569e2949187c6f26 | [
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"MPL-2.0-no-copyleft-exception",
"LGPL-2.1-only",
"BSD-3-Clause",
"MPL-2.0",
"MPL-1.0",
"Libpng",
"AGPL-3.0-only",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"MIT",
"IJG",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Z... | permissive | zhengnengjin/mindspore | 1e2644e311f54a8bd17010180198a46499e9c88f | 544b859bb5f46611882749088b44c5aebae0fba1 | refs/heads/master | 2022-05-13T05:34:21.658335 | 2020-04-28T06:39:53 | 2020-04-28T06:39:53 | 259,522,589 | 2 | 0 | Apache-2.0 | 2020-04-28T03:35:33 | 2020-04-28T03:35:33 | null | UTF-8 | Python | false | false | 4,665 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
4ac983d36e1373bef3ae2040efb427f6810916b4 | 83e85a05d87d784d5beffe8d3c7c709bda9ffe6b | /py_src/samoa/request/replication_state.py | f1edef830b6e914167e2526762a1c227ed5af975 | [] | no_license | jgraettinger/samoa | 42c3015e525f3fdad61725ff4be569e758b32cc9 | 36d17dddeea0cc28a223e839ebf3cfb0bf3f7c07 | refs/heads/master | 2020-04-09T10:11:22.750684 | 2011-10-22T22:32:23 | 2011-10-22T22:32:23 | 533,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from _request import ReplicationState
| [
"johng@boomer.(none)"
] | johng@boomer.(none) |
f63c373acfcbf528968315471e17ac98b2ea26b0 | 595471f4acc7c6db2b414019e069bcb510f24edc | /blog/migrations/0001_initial.py | 41c9e2d8887c36b9e654ce6c7e8239d8ee358c7c | [] | no_license | UshieChris/Blog-PROJECT | 9ffcbde536283443e6743d8b729691d18e4e1432 | 3bd751c49f95101579a9d6d0dc59c5f730ad1ec6 | refs/heads/main | 2023-03-30T03:39:48.214184 | 2021-04-09T16:29:01 | 2021-04-09T16:29:01 | 356,331,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Generated by Django 3.0.5 on 2020-12-18 10:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"chrisushie301@gmail.com"
] | chrisushie301@gmail.com |
f3b980f098f1f78d08ed82f4a62c12949fb78bde | 5c3fcfd1c30036154af34de9fbf11b77ebd31777 | /9444/ass1/hw1/src/part3.py | 05bd53f4097cb69ca9688d6c2d276e110cb6ed30 | [] | no_license | Skylerliutian/UNSW_19T3 | d5fc13a744aa6193c904404b9ef37010e89261a0 | cdc6324b5622a7326869f58c0cc53dd9976f22cb | refs/heads/master | 2022-04-16T13:37:43.400815 | 2020-03-27T09:46:43 | 2020-03-27T09:46:43 | 250,228,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | #!/usr/bin/env python3
"""
part3.py
UNSW COMP9444 Neural Networks and Deep Learning
ONLY COMPLETE METHODS AND CLASSES MARKED "TODO".
DO NOT MODIFY IMPORTS. DO NOT ADD EXTRA FUNCTIONS.
DO NOT MODIFY EXISTING FUNCTION SIGNATURES.
DO NOT IMPORT ADDITIONAL LIBRARIES.
DOING SO MAY CAUSE YOUR CODE TO FAIL AUTOMATED TESTIN... | [
"skyler151096@gmail.com"
] | skyler151096@gmail.com |
7d4cf1affeb7426291e784ea8cf7e185ac843347 | 3bd3441d6cf42b50ce627db32495004d1e515d63 | /Lesson2/weather_station.py | e9c0349c1930f32517de816f5972e5bfe26f3c5e | [] | no_license | MikalaiMikalalai/head_first_design_patterns | cf8006a3b7d8f531a4872d150a73b5ed77b88a23 | 8792eae3d73e30912f93bf56c7d7b2d844e3d5ec | refs/heads/master | 2021-02-27T02:22:25.057364 | 2020-04-18T02:22:43 | 2020-04-18T02:22:43 | 245,570,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,367 | py | ######################################################
# Observer #
######################################################
import abc
import collections
######################################################
# Interfaces #
#############... | [
"mikalaip@google.com"
] | mikalaip@google.com |
72a405e1ba0507690cafee76a320b4682d94aac3 | b236c7ce962b3f35d70589993833f24eaf3ce948 | /train.py | 1f188e44283e9df69675b39c5da3d4783585b862 | [
"MIT"
] | permissive | Wblossom/Retinaface--without-landm | 499e11ef4fe51c7684c04769e4b4b3f0480f828e | 53c3574c95abab3665ce51de81cbf54b10d97fc9 | refs/heads/main | 2023-01-01T06:39:54.481816 | 2020-10-21T10:48:09 | 2020-10-21T10:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import torch
import torch.optim as optim
import torch.backends.cudnn as cudnn
import argparse
import torch.utils.data as data
from data import WiderFaceDetection, detection_collate, preproc, cfg_mnet, cfg_re50
from layers.modules import MultiBoxLos... | [
"kylin33@outlook.com"
] | kylin33@outlook.com |
4b4a097a95f1da6da6dfa3927d7c83d66941ecdf | d8f0761acc94f9f1c0365e5a1716c9e17c6e4e16 | /scrapers/bs4_selectors/selector.py | cabcd3ea0bed6889945755aac7fe5cf0cdf9cd8c | [] | no_license | lesleyfon/one-time-scrapers | 75ca851107d59b4f2b7cd816b2ae46ecd11d6bc0 | 6ee5443497c9e05924abf5704c16112beb740064 | refs/heads/master | 2023-05-02T12:58:21.693133 | 2021-05-21T13:09:57 | 2021-05-21T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | ##############################
#
# Beautiful Soup cheat sheet
#
# by
#
# Code Monkey King
#
##############################
# Step 1: import packages
import requests
from bs4 import BeautifulSoup
# Step 2: define target URL
url = 'https://podsearch.com/listing/car-talk.html'
# Step 3: make HTTP request... | [
"freesoft.for.people@gmail.com"
] | freesoft.for.people@gmail.com |
ea9bdeb9e2025531d7f315d480fb6d55a59df027 | ab36c659808a9c6f7b4dc873fbffd63d4b7a54cc | /functions.py | 0b8ce7451229eecd8741cb36884c4b506c1cb54f | [] | no_license | Mixpap/Ptyxiaki | 697da20d66f48df1adea1961871b3fdc4ac06913 | 6cb2dd1196f2bab275b81d17a35a85044d64b40f | refs/heads/master | 2021-01-22T13:42:16.877514 | 2015-07-28T13:02:45 | 2015-07-28T13:02:45 | 27,761,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,905 | py | from astropy.io import fits
from astropy import wcs
from astropy.table import Table
import numpy as np
import pywcsgrid2
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib.colors import LogNorm
from matplotlib.patches import Rectangle
from mpl_toolkits.axes_grid1.inset_locator import... | [
"mighalis@gmail.com"
] | mighalis@gmail.com |
27818e0cbd1150b9c136e42d2890085eb3918eeb | e5a1e766d32fa2475b23e8bda93462ea98938a8f | /new_chat/wsgi.py | 2f4a3672370594a951791355a78a5ed6f3af4d72 | [] | no_license | ShoaibMoeen/Django_Chat_App | 7993efeb603d6df7315108822dff1a2513df8dba | 27c8c99d5f7308c710741b0454f81ec85ff3707a | refs/heads/master | 2023-03-05T20:29:35.349574 | 2021-02-17T09:27:02 | 2021-02-17T09:27:02 | 338,788,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for new_chat 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('DJANGO_SETT... | [
"shoaibmoeen4343@gmail.com"
] | shoaibmoeen4343@gmail.com |
0ee4eca75016f2b835c19c87122bb9b245e074d6 | f69580425242d3c2e27881f0c85be73915a6f81e | /pydnd/character/models.py | 84079f946cf1dddd30273502390f5c778fe56e77 | [] | no_license | pyasi/pydnd | 83c9a8626e60b32797d9c6abbdf9ba7ab36bdb4e | a2e880c8a7264d313cad56f9ea0eec72309ac20e | refs/heads/master | 2020-03-07T08:37:43.767559 | 2018-05-03T13:57:53 | 2018-05-03T13:57:53 | 127,384,097 | 0 | 0 | null | 2018-05-03T13:57:54 | 2018-03-30T05:09:48 | Python | UTF-8 | Python | false | false | 1,770 | py | from django.db import models
from pydnd.mechanics.models import MagicSchool
class AbilityScore(models.Model):
name = models.CharField(max_length=100, unique=True)
full_name = models.CharField(max_length=100)
desc = models.CharField(max_length=10000)
def __str__(self):
return self.full_name
... | [
"pyasi8192@gmail.com"
] | pyasi8192@gmail.com |
58a803cde41cd78a494ce62be9283c642fa86e83 | eaea162301e30aece2bafc08a868c33ebe753324 | /main.py | d5db9e0a139f8043fbf0bd4dfdd9e6903ff8179d | [] | no_license | LAEQ/Pollution_StructurationTools | a56616638e20368c2d1fa41634d6cc277376b378 | 5439f9e148a0055781100fd9164c9068dd260199 | refs/heads/master | 2020-04-21T04:10:47.345888 | 2019-07-24T14:35:54 | 2019-07-24T14:35:54 | 169,305,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 07 14:15:16 2018
@author: GelbJ
"""
Racine = "E:/Datas/_Montreal 2019/A)_FieldData"
######################################################
### Config Steph
######################################################
#Users = ["ID1_JR"]
#Users=["ID2_LN"]
#Users=... | [
"noreply@github.com"
] | LAEQ.noreply@github.com |
3f710f824a9ba3fc05f946ea786168e280edb9f3 | 05040f0dce123be0d88e760808fdf6b1bbf1ac43 | /backend/manage.py | 38f19f1341ecef8ebd95be44a20975de9823d12e | [] | no_license | crowdbotics-apps/mobile-8-dec-dev-16453 | 8026421c163ab200a0106faaf3567faf469b348f | 3cc2feeba0d1a753a98db7167491e5a28d7ae6fe | refs/heads/master | 2023-01-23T10:02:48.817260 | 2020-12-08T15:42:47 | 2020-12-08T15:42:47 | 319,665,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | 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", "mobile_8_dec_dev_16453.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
80a957f639ad9152f7478c2f7c5faf20dff26992 | 3907034857319c47efd09429f994ff4c8a34a642 | /bienes/urls.py | 9cb1ec71e2006a9673df3a25d19c1a410aaa861f | [] | no_license | xcarlx/bienes | c018af7582f725e06d354144bac8641e348192ab | 48a69798ead5d627b38a2d9afe84ad484ca4e7da | refs/heads/master | 2020-04-17T02:36:14.054458 | 2019-02-19T20:44:15 | 2019-02-19T20:44:15 | 166,143,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """bienes 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-based ... | [
"cruiz@regioncajamarca.gob.pe"
] | cruiz@regioncajamarca.gob.pe |
14539757dac6949ee5971550e5ce037dd82f2b1f | d1a6f7a61035e8e85f70663677eef0794ed42b8f | /create dictonary.py | 3c5eb2d0df31c49d8ad7a5a6594eefab23a1db46 | [] | no_license | shubhamfursule/Create-Dictonry | aaf9a665dc14c950c54c9713b2f9d879f239f822 | d251528ae1b654a72964fb7daf43d404d4a3c5ba | refs/heads/main | 2023-02-09T03:20:07.039319 | 2020-12-28T18:15:44 | 2020-12-28T18:15:44 | 325,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | dicts={}
while True:
try:
key,value=map(str,input().split(","))
except:
print("Please Enter proper way")
else:
if key=="STOP":
break
else:
try:
dicts.update({key:int(value)})
except:
... | [
"noreply@github.com"
] | shubhamfursule.noreply@github.com |
ec63ed048f6211cd69e8bc2bc40d3e6f418eaf0d | 336cd9225281befde93e01858ede15f70d3e5b47 | /params/cartpole_obs/shm_default copy.py | 2ab5c02726c7c6586d11fff9f5736ea8bffe8c5f | [] | no_license | GuancongLuo/mpc-mpnet-py | 7d6ba9f0c954185a724421091b1b098ec6d148e6 | 3d8d8ef743fd467fd2ffe177021edc6e852fd094 | refs/heads/master | 2023-02-06T03:49:06.072105 | 2020-12-07T11:01:08 | 2020-12-07T11:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import numpy as np
def get_params():
params = {
'solver_type': "cem",
'n_problem': 1,
'n_sample': 32,
'n_elite': 8,
'n_t': 1,
'max_it': 5,
'converge_r': 0.1,
'dt': 2e-3,
'mu_u': [0],
'sigma_u': [400],
'mu_t': 0.5,
's... | [
"you@example.com"
] | you@example.com |
5d8565f123ea80979f9cd6a4454521fd2ddff15c | b0de612c2f7d03399c0d02c5aaf858a72c9ad818 | /armi/nuclearDataIO/cccc/tests/test_rzflux.py | 93771c4e863ba214363f58516bdda65027c1eb5c | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wangcj05/armi | 2007e7abf4b422caca0157fc4405b7f45fc6c118 | 8919afdfce75451b291e45ca1bc2e03c044c2090 | refs/heads/master | 2022-12-22T00:05:47.561722 | 2022-12-13T16:46:57 | 2022-12-13T16:46:57 | 277,868,987 | 0 | 0 | Apache-2.0 | 2020-07-07T16:32:40 | 2020-07-07T16:32:39 | null | UTF-8 | Python | false | false | 2,673 | py | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"noreply@github.com"
] | wangcj05.noreply@github.com |
f4ef0d969896be33f79af58aaa8261cb2e9aec27 | f112dfe38732f131156556ab724e2b9a01d317ae | /week6/12-olimp-results.py | 84111b344ca01350a77d270fb1eafcce9b46a3ef | [] | no_license | pharick/python-coursera | 2a92bf467e0ddd35a573ea4e29fff9a37e45bd24 | 3e24ac9385eada126e7c4753f71cd38181987fbf | refs/heads/master | 2020-04-04T03:44:45.067099 | 2019-03-20T07:10:22 | 2019-03-20T07:10:22 | 155,724,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
students = []
for i in range(n):
student = input().split()
students.append((student[0], int(student[1])))
students.sort(key=lambda student: -student[1])
for student in students:
print(student[0])
| [
"artemforkunov@gmail.com"
] | artemforkunov@gmail.com |
70dd6b6891e4793418f9b327dcf8ddb1de563ef7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703183549.py | deecd69a4f52fe13e3dd7c9a278d545d91b636a2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def jumpingClouds(c):
i = 0
jumps = 0
while i < len(c)-2:
if c[i] == 0 and c[i+2] == 0:
print('here')
print('c---->',c[i],'i-->',i)
jumps +=1
i +=2
elif c[i] == 0 and c[i+1] == 0:
print('here2')
print('c---->',c[i],'i-... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2dda85a9ba04d01eb6f79efbf26e1aa3f5fe73a8 | b23f9b54f622032e71a80a497ca2d7dbd48469ad | /setup.py | d7560750ca56a0500f4ae92ea7dba81932711c29 | [] | no_license | h4ck3rm1k3/pycparserext | 15cf0a02429f3fd6bad977cd612e74ca7b20b891 | 489fd9c4804e7b3f17760b0800cf81a930a2ec7e | refs/heads/master | 2021-01-21T08:32:39.114178 | 2016-04-03T05:22:38 | 2016-04-03T05:22:38 | 55,293,358 | 0 | 0 | null | 2016-04-02T12:29:40 | 2016-04-02T12:29:40 | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
# -*- coding: latin1 -*-
from setuptools import setup
setup(name="pycparserext",
version="2016.1",
description="Extensions for pycparser",
long_description=open("README.rst", "r").read(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audien... | [
"inform@tiker.net"
] | inform@tiker.net |
82f795bf9a7875dc84a5097c204ab284d9770801 | d232b3aa9449ad13a5b33f141d432c5a9f46aa7e | /Day3-1.py | bd0c791662db9a061f1774f4ef8d4bda64cf922f | [] | no_license | stephanie19950405/Python200805 | e75ba082faa65367a977652e65b2088e3d4669c5 | ad8a71874b0919aad49e6f9fe5cf214121a050a7 | refs/heads/master | 2022-11-26T02:59:39.331128 | 2020-08-05T08:41:29 | 2020-08-05T08:41:29 | 285,170,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 5 09:26:48 2020
@author: AE401
"""
for i in range(1,10):
for j in range(1,10):
print(i,"x",j,"=",i*j) | [
"noreply@github.com"
] | stephanie19950405.noreply@github.com |
c961d180e49b2f37329b439a63ed3caf39182499 | 61febabc6aa34b7c47208aa7be5dfca88287ddaf | /Ch. 5 If Statements/Alien_Colors_2.py | f3d2b2cede94db66aee11d3245b9b9571a6284d5 | [] | no_license | chrisstophere/Python-Crash-Course | 4be7262acc2ff8ad26d99aceb028c25e4c7f9b0b | 702c44734e93df68ec55831626fb7a7a22ce2b8d | refs/heads/master | 2021-05-24T10:31:54.679224 | 2020-05-07T21:10:09 | 2020-05-07T21:10:09 | 253,520,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | alien_color = 'red'
if alien_color == 'green':
print(f"You shot the {alien_color} alien. You earned 5 points.")
elif alien_color != 'green':
print(f"You shot the {alien_color} alien. You earned 10 points.") | [
"chris@ewentech.com"
] | chris@ewentech.com |
4bbf1ff6013d7a48ce63d817454fb8940a26487f | 7d23fff61314842d6d7d8ca106382d163a04f139 | /watch/models.py | 3a423333ca2230cec766903c543e4a2e444032de | [
"MIT"
] | permissive | GeGe-K/Neighbourhood | 8b71bc789a72d34769436a5a912ffde87b3c014b | 366667dff147141558732e5c6f5004fe4cff221e | refs/heads/master | 2022-12-09T18:26:27.536704 | 2019-01-16T14:13:37 | 2019-01-16T14:13:37 | 165,236,886 | 0 | 0 | MIT | 2022-12-08T01:32:31 | 2019-01-11T12:00:41 | Python | UTF-8 | Python | false | false | 3,462 | py | from django.db import models
from django.contrib.auth.models import User
import datetime as dt
# Create your models here.
class Location(models.Model):
name = models.CharField(max_length=40)
def __str__(self):
return self.name
class Neighbourhood(models.Model):
'''
Neighbourhood cl... | [
"gloriagivondo@gmail.com"
] | gloriagivondo@gmail.com |
f0ec7fdedb65b26187793048fe26edf04bd719b9 | b06b79983d2dbe596e9ad2171694f9124cdc7fc1 | /Python/memoryExample.py | 432ad951664f2b50a485e499b2e98253b74d72f5 | [] | no_license | ljthink/TDC-2 | 87e89124eb08c3b181f0aca2bed4a5beca43dd88 | b09ed8783a2401e8eaa35eb99a3bff79aaa382c3 | refs/heads/master | 2022-11-19T06:44:14.588905 | 2020-07-23T00:24:32 | 2020-07-23T00:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from QuartusMemory import QuartusMemory
q = QuartusMemory()
# Find index of instance named RAM1
inst = q.find_instance('RAM1')
# Read memory from device
arr = q.read_mem(inst,True)
# Print contents of address 0x04
print('Arr1:')
for k in arr[4]:
print(str(k) + ' ',end='')
print()
# Copy the array and change on... | [
"me@lramsey.com"
] | me@lramsey.com |
cc578e23762a3824d2011e2c493327ac6fa7534f | 40361071089b4f243962c5dd2e0bd6144f76acbd | /cell_count_utils.py | 769ebe2450f13b3cdaf08e2d1dc651be248d2d58 | [] | no_license | liaorongfan/cell-counting | d555d06e8113ffc2dcf4c19e1e4003a9c61f8fac | 0f0640225fa3f6884efdd315158bf14dc47bedc1 | refs/heads/main | 2023-05-05T20:17:46.539954 | 2021-05-23T14:39:40 | 2021-05-23T14:39:40 | 370,076,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
def plt_show(img, figsize=(24, 6), gray=True):
"""默认画灰度图"""
plt.figure(figsize=figsize)
plt.grid(False)
if gray:
plt.imshow(img, 'gray')
else:
plt.imshow(img)
plt.show()
pass
def plt_show_... | [
"15670381505@163.com"
] | 15670381505@163.com |
701090d667fe4a9f5daf26aa08d32a2d7dde0dcb | cda5f9506ff9a05ca6cc5c6fd29a56bb645f03e3 | /Grasshopper-Terminal-game-combat-function.py | 1265b0149a59ea7ccf489495107d14273b4188b1 | [] | no_license | zecollokaris/toy-problems | bc28799f41cdbddfa5a4a56c613031b3f52430bc | 66f6462ace04afbe025d90956573ef295d66f41f | refs/heads/master | 2020-03-25T00:20:17.099894 | 2018-08-04T20:12:16 | 2018-08-04T20:12:16 | 143,180,896 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | #############################################################################################################
######Question######
# Create a combat function that takes the player's current health and the amount of damage recieved,
# and returns the player's new health.
# Health can't be less than 0.
###########... | [
"collo.kariss@gmail.com"
] | collo.kariss@gmail.com |
f974ed4dfce8a8ce9c6813f917c8078319276785 | d6de09317cf3aeba4af26ae9ebacb3669f85899b | /oAuth/venv/bin/pip3 | 9c8aec44a34ad396320fcc678c1c0230d62a0182 | [] | no_license | Vaibhav-Kotadiya/Flask-oAuth | 66a0fd57ab3242cc81ecdef250d69b166248ff59 | 817ef470328cd5341fdb7ffa0354b3574d3dd936 | refs/heads/master | 2022-12-09T07:02:49.437622 | 2020-09-15T16:03:54 | 2020-09-15T16:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/Users/mac/PycharmProjects/Flask-oAuth/oAuth/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"mac@MACs-MacBook-Pro.local"
] | mac@MACs-MacBook-Pro.local | |
3ef2026eb83017aa5c24665674b8d15767fb2008 | 51d8f003828d6ee6e6611f0e133b1e35cf400601 | /ipaxi/ixbr_api/core/tests/use_cases_tests/test_service_use_case.py | 830992ce3f08fe190f0264ea26fd19099f6e8a39 | [
"Apache-2.0"
] | permissive | tatubola/xpto | 23b5f7a42c13c7d39eb321e52b9b4b2d1ef76c4c | 6ed8cec23b06bccb1edf57e6b67af017f9a162d3 | refs/heads/master | 2020-04-02T11:05:24.560009 | 2018-10-23T17:41:10 | 2018-10-23T17:41:10 | 154,370,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest.mock import patch
from django.core.exceptions import ValidationError
from django.test import TestCase
from model_mommy import mommy
from ...models import ContactsMap, MLPAv4, Tag
from ...use_cases.service_use_case import delete_service_use_case
from ..login import DefaultLogin
class ServiceUseCaseTest... | [
"dmoniz@nic.br"
] | dmoniz@nic.br |
89fe832ad18539d9ffcc91dc818c1d4a5827b99c | 0f2391cb82f218ed7505266c5f708725ed064427 | /roman-numerals-take-two/roman.py | d47eb096b46c40035d14e9d809a97c71d456881a | [] | no_license | tomviner/tdd-dojo | e34c6ecb1fd27113b0a0b33a5609c23d6695d226 | 3e35847b2e1d7b73132ee3a07a546abe26322e74 | refs/heads/master | 2021-01-22T02:34:06.146674 | 2014-11-25T14:07:51 | 2014-11-25T14:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
Roman Numerals
Write a function to convert from normal numbers to Roman Numerals: e.g.
1 => I
4 => IV
7 => VII
10 => X
99 => XCIX
"""
LOOKUP_NUMERALS = (
(1000, 'M'),
(900, 'CM'),
(500, 'D'),
(400, 'CD'),
(100, 'C'),
(90, 'XC'),
(50, 'L'),
(40, 'XL'),
(10, 'X'),
(9,... | [
"tom.viner@hogarthww.com"
] | tom.viner@hogarthww.com |
8b7bcd726beabde390de9d1928fa4f6a36307508 | 2e0a18c571b5f8000e9900e9a332eca5aff54f0f | /guppe/Seção 7/Deque.py | f759ccf0d293c473ffd25d117524a60bebc7daff | [] | no_license | LucasFerreiraB/Teste | bbf57e92db2bcc4795316c513959d2674252264b | d2b542aff96a27a727706df887506336062fbbda | refs/heads/master | 2022-09-27T11:38:07.755660 | 2020-06-05T18:38:22 | 2020-06-05T18:38:22 | 269,750,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """
Modulo Collections - Deque
Podemos dizer que o Deque é uma lista de alto performance.
"""
# Import
from collections import deque
# Criando deques
deq = deque('lucas')
print(deq)
# Adicionando elementos no deque
deq.append('y') # adiciona no final
print(deq)
deq.appendleft('k') # adiciona no comeco
print(de... | [
"lucasferreira9b@gmail.com"
] | lucasferreira9b@gmail.com |
dca84f844680918ece78d15a17c804d7d4f4dc67 | b7683c108e68ee2d28573edf55923eb34cc2f5ee | /3_Image_Processing/9_Contours/1_Intro/1_Contours_on_binary.py | 9be454d9d82d0531c5524d093ed11ff8b9fa6b0f | [] | no_license | aCuissot/openVC_win_py_tutorial | cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01 | 7186b629747cb16f2bf42a03d2339d3dc3ea77bd | refs/heads/master | 2020-05-18T12:17:04.619047 | 2019-07-10T13:45:00 | 2019-07-10T13:45:00 | 184,403,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import numpy as np
import cv2 as cv
im = cv.imread('../../../Data/in/a.jpg')
imgray = cv.cvtColor(im, cv.COLOR_BGR2GRAY)
_, thresh = cv.threshold(imgray, 127, 255, 0)
contours, hierarchy = cv.findContours(thresh, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
cv.drawContours(im, contours, -1, (0, 255, 0), 3)
"""
pour ne dessine... | [
"harrypotter9752@gmail.com"
] | harrypotter9752@gmail.com |
2508cb82f30d9ebd8cad74771e679948dda148d0 | 0a5618aba3e801cbd986a3c8a02c8bfbaafddb4d | /data_utils/utils.py | 36cd93312e8cabda8dbeb6b8b3a25c5a7a9bcf00 | [] | no_license | hmcck27/ps-helper-nlp | 2f899c2ae22524e5531c78b2a257ac0a0b043c7b | 6a99aa6a91477ac35f94b1548c9e8e9b441b9b8b | refs/heads/master | 2023-08-27T22:59:05.846434 | 2021-10-28T07:14:05 | 2021-10-28T07:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | import json
import torch
from pathlib import Path
class Config:
def __init__(self, json_path):
with open(json_path, mode='r') as io:
params = json.loads(io.read())
self.__dict__.update(params)
def save(self, json_path):
with open(json_path, mode='w') as io:
jso... | [
"backend@JK.local"
] | backend@JK.local |
5656efc34e8254aae61d10bea0f54846789da243 | 338062cc2bb422f1364fd18ad5e721f6f713907a | /30. Библиотеки Python. Встроенные модули/Классная работа/Дни рождения друзей.py | 901cba0c8631ab75c84e2788ce36d59850346786 | [] | no_license | rady1337/FirstYandexLyceumCourse | f3421d5eac7e7fbea4f5e266ebeb6479b89941cf | 0d27e452eda046ddd487d6471eeb7d9eb475bd39 | refs/heads/master | 2022-06-17T03:07:51.017888 | 2020-05-12T22:17:34 | 2020-05-12T22:17:34 | 263,459,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import datetime as dtdin = dt.datetime.now()dn = dt.timedelta(days=int(input()))print((din + dn).day, (din + dn).month) | [
"noreply@github.com"
] | rady1337.noreply@github.com |
87edc282a225d250961e93168a4da4a287edcf14 | 97f0f649b007f0ac9f7e2c7f4efdec1f06d6b154 | /decision_implementation.py | 9314086d4dd4f91519211d6d8a107c731d0b37a2 | [] | no_license | ajaymalik2592/projects | de877ea8aebde28900158a6c9a1f576caf64ccd5 | 0cabd9f85f6b056d82c28243157a06c64f45afc8 | refs/heads/master | 2020-05-14T08:24:03.121768 | 2019-04-16T16:03:59 | 2019-04-16T16:03:59 | 181,722,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | import numpy as np
import math
import csv
import random
data = []
with open('shuffled_data.csv', "rt") as filereader:
fil = csv.reader(filereader, delimiter= ' ' )
for rows in fil:
data.append(rows)
formated_data = []
i = 0
for da in data:
if(i == 207):
break
i+=1
da = da[0]
d... | [
"noreply@github.com"
] | ajaymalik2592.noreply@github.com |
eea41913ddcd22156013f964a4b6b70d017450aa | 8ea896e975fdb967f013e2b69d453df8881eb8f9 | /spark-2.x/src/main/python/ml/logistic_regression_summary_example.py | 26882a8dc7de5dbc1caf79a70959595925d295f6 | [
"Apache-2.0"
] | permissive | lhfei/spark-in-action | 1d0df5a22230e458be2583066537c09d20a1b98b | 0bf915588f4aa36b17b89a2a8f4a055b342e2295 | refs/heads/master | 2022-07-15T05:43:02.805743 | 2020-08-25T07:33:59 | 2020-08-25T07:33:59 | 33,342,589 | 6 | 3 | Apache-2.0 | 2022-06-27T16:13:02 | 2015-04-03T02:36:44 | Scala | UTF-8 | Python | false | false | 2,508 | 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 n... | [
"lhfeilaile@gmail.com"
] | lhfeilaile@gmail.com |
a6262547823f4b422a3298d7263130a495f95dc7 | 14825e285a5637d0c7e981e3c32c3b961e89f981 | /Identification/Rider.py | e6a641da3302e9d3b322b635a0a257877b712f91 | [] | no_license | simohn/Ride_on_Time | ef43627f6b65732309c41bf51692066e7920f8fc | 7e9ca19ba1c4c82f8423819b61345c686affb454 | refs/heads/master | 2020-04-21T16:31:26.765286 | 2019-08-27T18:10:28 | 2019-08-27T18:10:28 | 169,704,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # Code written by Simon Schauppenlehner
# Last change: 22.06.2019
import numpy as np
class Rider:
# Private class variable
_unique_id = 1000
# Public methods
def __init__(self, id=-1):
if id == -1:
self.id = self._get_unique_id()
else:
self.id = id
... | [
"schauppinger@gmail.com"
] | schauppinger@gmail.com |
3da46091f694239b44ce3c59e315748ab9fcae39 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/pandas/tests/groupby/test_filters.py | 2ce04fc77408301e12a3a44d30366dafee4d3aad | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 20,388 | py | import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Series, Timestamp
import pandas.util.testing as tm
def test_filter_series():
s = pd.Series([1, 3, 20, 5, 22, 24, 7])
expected_odd = pd.Series([1, 3, 5, 7], index=[0, 1, 3, 6])
expected_even = pd.Series([20, 22, 24], index=... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
7ee9aa6ee96971123bb69bee59b0a2cc28d60822 | c4ed52e5e9d0b059915bbf84c05b3af15ada4c59 | /test1.py | 0bf4d04c902597be641ec2d3c411cc4d8fe1c954 | [] | no_license | KI0KA/eop-by-Python | a70ae68d8399218d8ceed40032850fb15bdfc113 | 2ce8f1e4055dd6f3953f00c0f06f3b4adc1c8a7d | refs/heads/master | 2022-04-24T13:25:59.266896 | 2020-04-16T23:01:52 | 2020-04-16T23:01:52 | 258,407,300 | 0 | 0 | null | 2020-04-24T04:40:31 | 2020-04-24T04:40:30 | null | UTF-8 | Python | false | false | 103 | py | # test program
def main():
print("my first album".split())
if __name__ == "__main__":
main()
| [
"p9u78sxh@s.okayama-u.ac.jp"
] | p9u78sxh@s.okayama-u.ac.jp |
841c1efe6325c2b67960e896a83526bf52ba892d | eb7541314c5368b8fc7d9264b25ae1f6813829bc | /Longest_Palindromic_Subsequence.py | e0801b6f9927041d8e62d26fc6a1196e8fabf181 | [] | no_license | BibekKoirala/DynamicProgramming | 7f7fbf18a5f2b8113dc232dbd3ba047d898727f1 | 81ca3e83ac4bc320c0cd12e2b638b5a044f7ed09 | refs/heads/master | 2022-12-03T18:08:42.392955 | 2020-08-19T07:30:58 | 2020-08-19T07:30:58 | 283,597,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def LPS(s):
Lookup = [[0 if i != j else 1 for i in range(len(s))] for j in range(len(s))]
k = 1
while k < len(s):
i = 0
j = k
while j < len(s):
if s[i] == s[j]:
Lookup[i][j] = Lookup[i + 1][j - 1] + 2
else:
Lookup[i][j] = max(L... | [
"bibek.high@gmail.com"
] | bibek.high@gmail.com |
14b6e041b02bb82c853acc82a39ce2540e479dbf | 71d1c48161fadaaed2e9c4437e1194ce13b18622 | /working_with_api/english_vocabulary.py | b3b6503565d79ed20257c0d739fc6b1499e9b953 | [] | no_license | ikventure/some_projects | 2f43eef7ebe91e7d2ffaf4f96f2b55a4a8b7c141 | c87a1cab28662de8524ac3d77ba1884bd1fc53b9 | refs/heads/main | 2023-08-16T17:26:53.033466 | 2021-09-14T07:24:42 | 2021-09-14T07:24:42 | 401,194,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 11 16:15:44 2020
@author: ikventure
"""
filename = 'SUM_of_cet4+6+toefl+gre.txt'
txt = open(filename, "r").read()
txt = txt.lower()
all_words = txt.split()
words1, words2 = [], []
for word in all_words:
if len(word) == 6 and word[0] == word[-1] and word[1] != word[4]... | [
"ikventurelove@gmail.com"
] | ikventurelove@gmail.com |
5cd7b233417a40dd0a9ef71afaa6969d9ba3b514 | 0fc891df6703ce3f91fe6005a6c582e573ed6c13 | /CWMT/user_login/migrations/0015_auto_20170811_1319.py | a97c1ba8d678eadfeaa3a8c5c6947edbde7ec3a2 | [] | no_license | Zeco-01/CWMT2017-REG | ce155343575d3b8b49eda584b40bdd1716368e38 | 5e71ddc38f3020d1582d0b38f2f8d0eace615b88 | refs/heads/master | 2021-01-02T22:19:25.372629 | 2017-09-18T06:46:11 | 2017-09-18T06:46:11 | 99,318,036 | 1 | 1 | null | 2017-08-11T15:17:24 | 2017-08-04T07:47:43 | Python | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-11 13:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_login', '0014_auto_20170811_1310'),
]
operations = [
migrations.AlterF... | [
"leezehua@outlook.com"
] | leezehua@outlook.com |
2cf7a4b05dd7a1a4b8cd95fbc9af7fcfbc6af2ce | b42af24fae93c62573256c47bc10df396a098c01 | /snakegameyash.py | 3547106350dc9cc09401cc31f74ed7a3425382c4 | [] | no_license | YashVardhan-444/snakegame | ac597e284e4b4eb74038dd06200538dc930de494 | ac5807808dd45cfcb90898ab0112e45db1b9ff98 | refs/heads/main | 2023-07-13T11:18:31.361490 | 2021-08-13T16:11:17 | 2021-08-13T16:11:17 | 308,942,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | import pygame
from pygame import mixer
import time
import random
pygame.init()
white = (255, 255, 255) # constants defined to be used in the code ahead
# These parameters are color code for red,green and blue respectively
yellow = (255, 255, 102)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
... | [
"noreply@github.com"
] | YashVardhan-444.noreply@github.com |
a2c28551321a031321b269385b8a40dee9d39c56 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_service_operations.py | 4ef1391d9b929f9750111cbb76a4882ccc33b059 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 13,225 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.