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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
092ccc2f819176198bb2b988a4e323d43bc51b42 | 20c6da49ec4028eba8249be8df6919fc4a920319 | /model_style_transfer/project/data_loader/ade_dataset.py | 45fb0584d1fd8c9c642df0f7b5670af4df434b7e | [] | no_license | SavaStevanovic/NetMLDemonstrator | 01819c73186666989b427429ae6a8422ab9bf164 | c1325b1e8706c019178be51455d670cee56e0819 | refs/heads/master | 2023-08-08T18:39:07.084442 | 2023-03-26T08:45:03 | 2023-03-26T08:45:03 | 252,441,080 | 0 | 0 | null | 2023-06-18T09:48:24 | 2020-04-02T11:52:20 | Python | UTF-8 | Python | false | false | 658 | py | from torch.utils.data import Dataset
from PIL import Image
import glob
import os
class ADEChallengeData2016(Dataset):
def __init__(self, mode, folder_path):
super(ADEChallengeData2016, self).__init__()
img_files = glob.glob(os.path.join(
'/Data/segmentation', folder_path, 'annotations'... | [
"sava.stevanovic@pmf.edu.rs"
] | sava.stevanovic@pmf.edu.rs |
7ffc3b6f85cff22c0f89b8e8b676438dd3d048fe | 1488889766d328b856b8910d7f1a50b52b754774 | /firstsite/settings.py | ae74f052934497765e6907a52736af417b6336d6 | [] | no_license | vipul-rathod/firstsite | 1790cb3f67fb5b690c9cc24161ddb9b13d458718 | 84c09a3c66b58ff92b8b12d83c49c48d0d9bd82c | refs/heads/master | 2021-05-18T22:53:15.355755 | 2020-03-31T20:47:12 | 2020-03-31T20:47:12 | 251,464,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | """
Django settings for firstsite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"vipsravs787@gmail.com"
] | vipsravs787@gmail.com |
cc4c287a1f334475b6b5e06eaabaf792d66e3b32 | 2018321e9f9a3edc1d92cf986df1826138fe6b50 | /pythonProject/button.py | d283c5fb028e73dba1f8517a1b8edb3a15eb47e9 | [] | no_license | thanyi/alien-invasion | 7a8ede01e65d8a58accd686bb7219ba58f7e5e0d | de96c3123a74c3009eca43edced6693d97b3c8f0 | refs/heads/master | 2023-02-11T10:20:33.110836 | 2021-01-02T11:24:44 | 2021-01-02T11:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import pygame.font
import pygame
class Button():
def __init__(self, msg, screen):
self.screen = screen
self.screen_rect = self.screen.get_rect()
#填充图片的大小
self.width , self.height = 150,50
#背景颜色、字体颜色和字体
self.button_color = (0,255,0)
self.text_color = (255,255,... | [
"yiceyuan@126.com"
] | yiceyuan@126.com |
2b2a54641d5f56d801a5a0f1798713935087ef28 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/simtbx/run_tests.py | 5c3244e65192c78f2e1b57410133b5e40024a0a5 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 468 | py | from __future__ import absolute_import, division, print_function
from libtbx import test_utils
import libtbx.load_env
tst_list = (
"$D/nanoBragg/tst_nanoBragg_minimal.py",
"$D/nanoBragg/tst_nanoBragg_mosaic.py",
"$D/nanoBragg/tst_gaussian_mosaicity.py",
)
def run():
build_dir = libtbx.env.under_buil... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
fb22d74665a1f8e43b4181a24e234e13bccf6c86 | 9ecd34e90be231dd368abd1e2b7543f45eca2ad2 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | d920cef5c455ffef4ea25c9e9fb44568c26761e5 | [
"MIT"
] | permissive | pruthvikar/timer | a9339ed0e0e532da366e5433bba33a50453be6cc | d59e65cff1861d93d54d9cea31114e29ce43fc81 | refs/heads/master | 2020-06-08T04:01:51.862856 | 2013-04-29T01:23:02 | 2013-04-29T01:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 42,
"host_arch": "x64",
"node_install_npm": ... | [
"Pruthvikar@gmail.com"
] | Pruthvikar@gmail.com |
854209911af300efb0ca7e652dd682ae077fa116 | 475110b2e65643eb6f1dcdaa5bd4ee8b74f7900d | /backbones/densenet.py | 3c278afca1f1509b21b1fcd34b8fd4ccdafe8ee3 | [] | no_license | lgzbryant/classification_project | 47308d10142c9d871fa8c9a9d45d4f26f5509dce | 93856ee9bd11d82d6c0ff7785a3ab435631f039a | refs/heads/master | 2020-06-17T07:26:09.304920 | 2019-07-08T16:04:17 | 2019-07-08T16:04:17 | 195,845,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,834 | py | import re
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from collections import OrderedDict
from .utils import load_state_dict_from_url
__all__ = ['DenseNet', 'densenet121', 'densenet169', 'densenet201', 'densenet161']
model_urls = {
'densenet121': 'https:... | [
"noreply@github.com"
] | lgzbryant.noreply@github.com |
80d457fe0e0df539d494873fa3d8e41ce774ae0b | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/palemale/a.py | f78d73ef5adea50522114802f390513ce3e2cfff | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 810 | py | import os, sys
with open(sys.argv[1], 'r') as infile:
N = int(infile.readline().strip())
for x in xrange(1, N+1):
T = infile.readline().strip()
cases = set(list(T))
intT = int(T)
current = intT
count = 2
stablecount = 0
while len(cases) < 10:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
0f6f4d5d7aeebbacb367b43963db1842478c9ef1 | 96df532f6bebf067a302ed096ae1d5b47022073a | /test/test_parser_helper.py | fe6a05305c0c0208a934eec7302909698c339599 | [] | no_license | datamix-study/notification_bot | bb7907feaf4587d25214edfd4a1e4d21dd87f6aa | 109e38b9fff07dc97ab5ad35275ce1c8ed5264fb | refs/heads/master | 2020-08-11T23:49:58.094679 | 2020-03-07T14:40:51 | 2020-03-07T14:40:51 | 214,650,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145,738 | py | DATAMIX_INFORMATION_SOURCE = """
<!DOCTYPE html>
<html lang="ja"
itemscope
itemtype="http://schema.org/WebSite"
prefix="og: http://ogp.me/ns#" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial... | [
"ij4nu8d4fw@gmail.com"
] | ij4nu8d4fw@gmail.com |
0bf9f14a7d8f3b313cb14ebe38a4ae36709d9164 | 92237641f61e9b35ff6af6294153a75074757bec | /Algorithm/programmers/lv2/lv2_짝지어 제거하기.py | dc49c17ce25e718214f85eb4831fb672b343a239 | [] | no_license | taepd/study | 8ded115765c4f804813e255d9272b727bf41ec80 | 846d3f2a5a4100225b750f00f992a640e9287d9c | refs/heads/master | 2023-03-08T13:56:57.366577 | 2022-05-08T15:24:35 | 2022-05-08T15:24:35 | 245,838,600 | 0 | 1 | null | 2023-03-05T23:54:41 | 2020-03-08T15:25:15 | JavaScript | UTF-8 | Python | false | false | 278 | py | def solution(s):
stack = []
for e in s:
if not stack:
stack.append(e)
else:
if stack[-1] == e:
stack.pop()
else:
stack.append(e)
if stack:
return 0
else:
return 1 | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
69b384952afa18b41fb769869d637c21f4a61bbb | 2075052d028ed31a30bdb9acb0a2022c2634f52b | /chat/consumers.py | 761dd8369a35c0e33e7d8ef65e1ce163904ade18 | [] | no_license | igoo-Y/live_chat_app | b67704caa2e5944b131a4299716e501b555985b5 | d65c87a35d3f3a120da35290addb798e412dad72 | refs/heads/main | 2023-06-30T13:21:49.860265 | 2021-08-03T09:11:29 | 2021-08-03T09:11:29 | 392,256,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope["url_route"]["kwargs"]["room_name"]
self.room_group_name = "chat_%s" % self.room_name
# Join room group
await ... | [
"79055280+igoo-Y@users.noreply.github.com"
] | 79055280+igoo-Y@users.noreply.github.com |
5ed6d98894bbff63047d401e8e20a8797425bf11 | 3ff5361ce05978b675483092ad33a14d7ed52c6f | /pipeline/bootstrap_pk.py | f4556387a6f7dd2c25b344d825adb017b8c0d11d | [] | no_license | bayu-wilson/lyb_pk2 | 9091010eeb1f9fd8325aad70cd259d3cb37d547b | 33520f5db248886be24950af0da23a20cbacdb95 | refs/heads/master | 2022-11-27T20:40:13.137323 | 2020-07-02T03:24:59 | 2020-07-02T03:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,492 | py | #!/usr/bin/env python
import numpy as np
import inis
import pandas as pd
import options as opt
from QuasarSpectrum import QuasarSpectrum
from scipy.interpolate import griddata
tag = inis.tag
cat_name = inis.cat_name
rescale_flux = inis.rescale_flux
QuasarSpectrum.load_cat(cat_name)
nqso = QuasarSpectrum.nqso
print... | [
"bwilson3853@gmail.com"
] | bwilson3853@gmail.com |
aa41fbd83ac1923d6fda08de4cc8f3ebd55904e0 | 90390ddcc21d2f2c0dd5ee3c0e7a3d8d61be9638 | /wsgi/app/forms.py | 4141cbb7183fc430344eb1bf806ca44a244d8598 | [
"MIT"
] | permissive | pjamesjoyce/lcoptview_legacy | b27926e31c16f1fca07c6294e66d706fcb600682 | e0ebeb155d6f62d8619d33cf48db98bab8b7a4cd | refs/heads/master | 2021-07-16T11:38:58.451239 | 2017-09-26T10:43:50 | 2017-09-26T10:43:50 | 107,691,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
login_data = TextField('username or email', validators=[DataRequired()])
password = PasswordField('password', validators=[DataRequired()])
class RegistrationFo... | [
"pjamesjoyce@gmail.com"
] | pjamesjoyce@gmail.com |
fc08528884d6626eaf34cd5a97c19cbd3a353798 | 24a9f5f1b8d8b550b9b70f5837e7de94ca76692c | /Lab07.py | 2ba74a2602492c526e417c46f3f8c003551fb5f7 | [] | no_license | syfiawoo/python-graphics-lab | 2548dfe45f9da50fa5f2578bf9489261c89b7681 | edd1fec368f28219aca2ebf9f709caaca53270e3 | refs/heads/master | 2021-01-20T19:00:26.232748 | 2012-07-03T10:17:08 | 2012-07-03T10:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from graphics import *
#add any functions or classes you might define here
# create a window with width = 700 and height = 500
win = GraphWin('Program Name', 700, 500)
# add your code below this point
win.mainloop()
| [
"moi@fiawoo-PC.(none)"
] | moi@fiawoo-PC.(none) |
542448cbdd184491b07c34dbda1e18c8b39b173d | 8cdd03812d2cfad8fd9f9d5c83b38a59f9c9c8e8 | /Code/Backend/Test/stepper2.py | 7c6561f3f043ca1ceefb8becef5888d374680e6f | [] | no_license | MaenhoudtTom/project1 | 46d018ee1a9abd72f90c1f2124ad0a00bb0c46fa | ad050accf62aa629bef1d77922dc2207dd78df01 | refs/heads/master | 2022-11-07T23:14:31.559237 | 2020-06-24T07:07:09 | 2020-06-24T07:07:09 | 271,761,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
control_pins = [12, 16, 20, 21]
for pin in control_pins:
GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, 0)
halfstep_seq = [
[1,0,0,0],
[1,1,0,0],
[0,1,0,0],
[0,1,1,0],
[0,0,1,0],
[0,0,1,1],
[0,0,0,1],
[1,0,0,1]
]
for i in range(64):
for halfst... | [
"55881682+MaenhoudtTom@users.noreply.github.com"
] | 55881682+MaenhoudtTom@users.noreply.github.com |
66329e2ef7a59a9819fbce4fe1a7b235e7eb2f9b | e90fdf3c083b43ebe5ead840190b81fd923e2798 | /Employee.py | 122dbf7023239dcd9345a05620e0749701118341 | [] | no_license | michaelgagliardi/2019_2020_projects | c643ba68aff6bf634a07c0e8863303eebe6defac | 217d32eaaea9a0f3a9bb5ff069f4e21492ec3b64 | refs/heads/main | 2023-04-03T03:20:19.293052 | 2021-04-05T21:01:36 | 2021-04-05T21:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | ######### to complete
class Employee:
def __init__(self,ID="none",name="none",age=0,exp=0,job="none",is_from_MA="none"):
self.ID=ID
self.name=name
self.age=age
self.exp=exp
self.job=job
self.is_from_MA=is_from_MA
| [
"noreply@github.com"
] | michaelgagliardi.noreply@github.com |
24fb58232485d43c8a84ef050f7eb2521e36f3dc | 811ecc8def16dc1bdb8f5a5c2c9e1d01b3f9c319 | /chat_bot/handlers/simple_qa.py | 54c7f4b080136b0e97702dec899b7b12a668befc | [] | no_license | jiaojianglong/MyBot | 7dd00959d6cf54d728b213b77084ce375b731ad3 | 9781b183cf168832b3c962d420e7f0a63287c4db | refs/heads/master | 2020-06-13T22:34:15.829604 | 2020-03-29T01:31:24 | 2020-03-29T01:31:24 | 194,809,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/2/22
# @Author : JiaoJianglong
from handlers.base.basehandler import QABaseHandler
from models.es.rg_search_question import RGSearchQuestion
from models.es.rg_question_answer import RGQuestionAnswer
class SimpleQAHandler(QABaseHandler):
... | [
"447151999@qq.com"
] | 447151999@qq.com |
67a41c24e4933a1aeb0fd35e31eb01bda1c58d33 | d2b0a5d0702162f32fa277103a2962a9b34b3850 | /demo/demo_special_purpose_publication_occupancy.py | 9fd9fcc768d9047027291e00faf328dd7c0f13c4 | [] | no_license | ruoxijia/pad | e0835b5ce39de1ce8c0a85d8387cebfbe0248c79 | 7a8c4710c82c2f45454458dd992a88ea8fde82b1 | refs/heads/master | 2021-10-10T17:28:59.560879 | 2017-11-02T06:28:21 | 2017-11-02T06:28:21 | 109,215,905 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | from helper import Utilities, PerformanceEvaluation
import pandas as pd
from metric_learning import Subsampling, MetricLearning
from user_feedback import Similarity
from scipy.misc import comb
"""
In the demo, we will showcase an example of special purpose publication.
The data user wants the published database to ma... | [
"ruoxijia@berkeley.edu"
] | ruoxijia@berkeley.edu |
63acff57f79dae33fea912cb9cec6449292df6f5 | b3717c1c9eb195c0d6205a653f97cb719118c166 | /blog/models.py | 744ae9bd29bad66ab8edd786bab55a1069e098a9 | [] | no_license | Harithmech/my-first-blog | c551323a295da0682e56067af900731e1af43fd6 | bccf0a258ba1e361fa8c5ec5f00c5cc9b9498bbe | refs/heads/master | 2023-02-28T16:01:50.138599 | 2021-02-11T11:45:21 | 2021-02-11T11:45:21 | 266,046,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.db import models
# Create your models here.
from django.conf import settings
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created... | [
"harithmech@gmail.com"
] | harithmech@gmail.com |
e262beb5a4a594f5ccd34d82a63f92f441f87e62 | 786550172250f9f9b14bd923151efc4759349c61 | /dlkit/relationship/license.py | 6abeebe8829ffb7bb0c4f68c4f65d28aaaa9cab3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mitsei/dlkit-doc | 6d88c1686fa9395047b43028b41cd4315c5bacc4 | b320d57e91bfb32fd88e1fce01d3ddb5935aa9dd | refs/heads/master | 2021-01-14T12:47:42.203154 | 2015-05-11T02:47:03 | 2015-05-11T02:47:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | # -*- coding: utf-8 -*-
"""Relationship Open Service Interface Definitions
relationship version 3.0.0
Copyright (c) 2010 Ingenescus. All Rights Reserved.
This Work is being provided by the copyright holder(s) subject to the
following license. By obtaining, using and/or copying this Work, you
agree that you have read,... | [
"birdland@Jeff-PM13.local"
] | birdland@Jeff-PM13.local |
c7538c4194854b3c7982b74de054fe7f78f8728e | 1d70ee049c5198b75567e0000c45ef879f6d39be | /JobMatchPonos/server/modules/cv/cv_api.py | 25e0c70dc1df46469890788a794b2b58526bf6f8 | [] | no_license | alexawl/Job-Match-Ponos-Back | 95f28185f71c38733973bc6d730947455c2e6c93 | c48b4bfddfbf2f4f5aa95409fd2c6ee4f469d9dd | refs/heads/master | 2022-09-30T15:07:19.875016 | 2020-02-01T06:50:34 | 2020-02-01T06:50:34 | 237,575,072 | 0 | 0 | null | 2021-05-06T20:07:41 | 2020-02-01T06:49:35 | Python | UTF-8 | Python | false | false | 463 | py | from flask_restful import Resource
from flask import request, session
from mongoengine import NotUniqueError
import json
from mongoengine import connect
from jobmatcher.server.authentication.authentication import require_authentication
from jobmatcher.server.authentication.web_token import generate_access_token
from ... | [
"alexawl@bellsouth.net"
] | alexawl@bellsouth.net |
a8271bda23a6157bb2fe3136fe4736b8542b2437 | 1bc350d7a026763ace5d007958e093cf2eeada93 | /cos_distance.py | 66dcb2fa6cd48fde2a06f125d88c7a26f2718323 | [] | no_license | yuridadt/recommender_systems_lab | 2d6abb32e4f7cdd46816fbfcac97903a3b02a9f8 | 15025a1949748a65ef4eb1836dbdd643aebec805 | refs/heads/master | 2020-12-09T17:40:23.484989 | 2020-01-16T20:34:15 | 2020-01-16T20:34:15 | 233,372,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | #Рассчитываем косинусное расстояние для кр
#https://habr.com/ru/post/150399/
import csv
import math
#обходим tuple unpacking in python 3
def star(f):
return lambda args: f(*args)
def ReadFile (filename = "cos.csv"):
f = open (filename)
r = csv.reader (f)
mentions = dict()
for line in r:
us... | [
"48838615+yuridadt@users.noreply.github.com"
] | 48838615+yuridadt@users.noreply.github.com |
766305b90df2cd606aef9971c1c2f21fb0412565 | fc557979eb04d242f892303dde54b47616a2f74b | /blogProject/website/models.py | 1af510c90ecfbd423549a1ee5b579993d5366434 | [] | no_license | supr-pr/blogProject | 99ad3ee03b004c56bc44551847bf3e123ab6a7cf | b77775f05f8b0929f854794ca2a0c68f089bc7b8 | refs/heads/master | 2021-01-02T09:19:02.479888 | 2017-08-21T10:11:23 | 2017-08-21T10:11:23 | 99,191,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | from django.db import models
from django.forms import ModelForm
from django.conf import settings
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
# from comments.models import Comment
# @property
# def commens(self):
# qs = Comment.objects.... | [
"supr.pr@gmail.com"
] | supr.pr@gmail.com |
cfd05d15243758d9c263176fe03fefdad10205cd | e7287d286d127311118d2689bd97b513b95ae046 | /ext/exmpSorted.py | d5da2e587885bca0af4ae73ba5e6eae3ed0a88ce | [] | no_license | Reihan-amn/DiseaseClassificationProlem_Kaggle | 3da32457d45165d2cb6549054b72203604e12481 | 9f1407e33a910a37af3eced2c5ddebdf4d3f7530 | refs/heads/master | 2021-05-11T00:49:05.955718 | 2018-01-21T07:14:18 | 2018-01-21T07:14:18 | 118,311,674 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from ext import exmpDataFact
Bclass = exmpDataFact.getDataMatrixFromCSV("./DeathRecords.csv")
print('type: ', type(Bclass),' shape: ',Bclass.shape)
''''first row deleted '''
# columns_name = np.array(data2DMat[0])
# features_label = np.delete(columns_name, [0,24], axis = None)
# data2DMat = np.delete(data2DM... | [
"reihan@Reihanehs-MacBook-Pro.local"
] | reihan@Reihanehs-MacBook-Pro.local |
3823340ea644b2feec0858721dad3a7c2d67d330 | 1b597dd7630f9a3023faf557e383b0fae703e72b | /test_autogalaxy/unit/aggregator/test_aggregator.py | 40b7acd97191da8084e06012b80ef34395849c57 | [
"MIT"
] | permissive | knut0815/PyAutoGalaxy | 96e9dfc558182169c41e19d3297cdf46b42d5f77 | cc2bc0db5080a278ba7519f94d2a8b2468141e2d | refs/heads/master | 2023-03-05T00:59:51.594715 | 2021-02-09T18:21:30 | 2021-02-09T18:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py | from os import path
import pytest
import autofit as af
import autogalaxy as ag
from autogalaxy.mock import mock
directory = path.dirname(path.realpath(__file__))
@pytest.fixture(name="path")
def make_path():
return path.join("{}".format(path.dirname(path.realpath(__file__))), "files")
@pytest... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
282283fc9217210a557858c3ef384120074f0fe2 | 5424af93e136131ec74efdb307181d3f0c173a02 | /test/test2.py | 7139c731fc4268a201b8ee4a5f6f45cc90c43d76 | [] | no_license | koy1619/python_test | 8e70021a73d53d9192f6ace2ec346e5e3a92919f | c2315ccb2e66a111ed66b28bb19c7abafaa5c8b7 | refs/heads/master | 2021-01-15T21:50:20.460932 | 2014-06-23T07:37:31 | 2014-06-23T07:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#5-5 取余。取一个任意小于1 美元的金额,然后计算可以换成最少多少枚硬币。硬币有1
#美分,5 美分,10 美分,25 美分四种。1 美元等于100 美分。举例来说,0.76 美元换算结果
#应该是 3 枚25 美分,1 枚1 美分。类似76 枚1 美分,2 枚25 美分+2 枚10 美分+1 枚5 美分+1
#枚1 美分这样的结果都是不符合要求的。
money = raw_input('输入任意小于1 美元的金额:')
print money,'美元换算结果'
money = float(money)
money *= 100
money ... | [
"maxiaolei007@sina.com"
] | maxiaolei007@sina.com |
b708ef0ba29cc97092ba45507823ff4dd82a5350 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /desktop/core/ext-py/Django-1.6.10/tests/decorators/tests.py | 05016be231c1703dbabc6a7a8f688f91e33ceaf2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 8,243 | py | from functools import wraps
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required, permission_required, user_passes_test
from django.http import HttpResponse, HttpRequest, HttpResponseNotAllowed
from django.middleware.clickjacking import XFram... | [
"540227148@qq.com"
] | 540227148@qq.com |
a13c30cb58afafc6423d27afc1fc0999a91c663c | 54fdc31183763afafe5c07de6cb4ed4167fbf2f2 | /projet_logiciel/main_fin_p3c1.py | 6bef301691d6719391cf4b517283db923e506f13 | [] | no_license | Patrick-Wampe/Debugging-avec-Python | e089130352c02ae78d04fe4ee4f8286d5eabce9f | fd9d36b45e063b25a694e0974f6051c26ae2ee94 | refs/heads/main | 2023-05-14T14:18:03.832620 | 2021-06-10T10:35:20 | 2021-06-10T10:35:20 | 374,808,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | # -*- coding: utf8 -*-
from random import randint
import datetime
print("Bienvenue dans le jeu Pierre Feuille Ciseaux")
nom = "debogeur"
annee_actuelle = datetime.datetime.now().strftime("%Y")
annee_de_naissance = 2000
print(f"Bonjour {nom}, nous sommes en {annee_actuelle}, du coup tu as {int(annee_actu... | [
"noreply@github.com"
] | Patrick-Wampe.noreply@github.com |
d5aadd00bb09ce66112973792bc22e130386a94a | b21c237d6cbd8dcea90fa18154cc3b9e11508129 | /main.py | c6e6b8969d727e1b239b8a924268cb8d729c773f | [] | no_license | topoko123/fastapi-get-post-patch-put-del-basic | 4ad72de27b18e3deb3a5e107b826742057d30a13 | fe8165c714fc0e48bdd4c2b4dd5b5b74d8e1aab8 | refs/heads/main | 2023-05-08T16:32:00.387261 | 2021-05-30T11:26:34 | 2021-05-30T11:26:34 | 372,191,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | from fastapi import FastAPI
from pydantic import BaseModel #Import BaseModel for receive
from typing import List, Optional
import uvicorn
class Item(BaseModel):
name : Optional[str] = None
description: Optional[str] = None
price : Optional[float] = None
class Address(BaseMo... | [
"m131.mdsoft@gmail.com"
] | m131.mdsoft@gmail.com |
4eba43e78eb66a2ee052c5643ef10dcfafa48917 | f299be6bd4ce2d34b3ddf625ecc44a9d99ce9bb7 | /etc/docker/dev/Other-certs/test-create-rules-pau.py | 2c74ee483cf7fed6431c058b6f05049b0c511100 | [
"Apache-2.0"
] | permissive | pic-es/rucio | 8a4688e26dd45062ff45ddc29dffa96ea2d7562f | f91ae9e79be62890d975a333b7976c89f7fed735 | refs/heads/master | 2022-12-30T13:34:01.663270 | 2020-09-04T13:31:24 | 2020-09-04T13:31:24 | 281,892,842 | 1 | 0 | Apache-2.0 | 2020-07-23T08:16:19 | 2020-07-23T08:16:18 | null | UTF-8 | Python | false | false | 31,015 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from __future__ import absolute_import, division, print_function
__author__ = "Agustin Bruzzese"
__copyright__ = "Copyright (C) 2020 Agustin Bruzzese"
__revision__ = "$Id$"
__version__ = "0.2"
import sys
sys.path.append("/usr/lib64/python3.6/site-packages/")
import ... | [
"bruzzese.agustin@gmail.com"
] | bruzzese.agustin@gmail.com |
239859618e261ad2335982654069188d008796f4 | 34a4a61dfc837bd0e55f985869c32baef2b9b867 | /Shelter.back/domain/enums.py | 27561a99064728b3fa4fa6991b66a3793c826c2f | [] | no_license | BlueInt32/shelter | 5934984b6a256659ec4a20f80926488c5687083c | fc8c238a501c608ae38e2dd01724c7b91ff77a1a | refs/heads/master | 2023-01-13T00:31:24.370302 | 2020-05-26T05:22:12 | 2020-05-26T05:22:12 | 225,805,189 | 0 | 0 | null | 2023-01-05T03:45:58 | 2019-12-04T07:24:39 | Vue | UTF-8 | Python | false | false | 83 | py | from enum import Enum
class PersistanceType(Enum):
CREATE = 1,
UPDATE = 2
| [
"simon.budin@gmail.com"
] | simon.budin@gmail.com |
9ca2e633e67d0d45a394bc37f48e58a9aa50e852 | 72fc93362a930d2ef8c951c6c53f9862abf60b03 | /captain_console/user/migrations/0002_auto_20200509_1717.py | 6e4cd570b49e6b936f684c1885309a9879b319d7 | [] | no_license | valdisbaerings/VN_2 | 434a08ad1cac0ba2fb45dc0d5707cc62cc117771 | 52ab14980e6e2c39d9007f3e9cefe276d5aebbb6 | refs/heads/master | 2022-06-20T04:51:58.070386 | 2020-05-14T16:40:50 | 2020-05-14T16:40:50 | 262,390,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 3.0.6 on 2020-05-09 17:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profile_image',
... | [
"saralindsveins@gmail.com"
] | saralindsveins@gmail.com |
12148e25092c6f6329984c046651dba85edfb209 | 3c2e75d3563053dd186dcff324fd84eba561f2a7 | /python/onos/rsm/__init__.py | b94966701cbd5b870c5f829c3de02c8bd040a16c | [
"Apache-2.0"
] | permissive | stjordanis/onos-api | 00c2434090b9f51d7eacf00f082abd7f2146c1fc | 13fca9dc160a23bc9d89e4ef33ee2da9b2a8ee48 | refs/heads/master | 2023-09-02T11:07:58.824154 | 2021-11-01T17:40:27 | 2021-11-01T17:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,002 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: onos/rsm/rsm.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import Dict, List, Optional
import betterproto
from betterproto.grpc.grpclib_server import ServiceBase
import grpclib
class SliceType(betterproto.Enum):
... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
ae0aef6a83feebd6e73b83650c28cc5c4c536818 | ce3cbf8ed094808408634f6e9257bb575f65e654 | /principal/forms.py | 9f7048e6ed1cb70adc34136e3bc8e162d7d7a137 | [] | no_license | iosamuel/meetup | 165e6e4bf83c843507c45cb1ad78709d787c711a | af7a746dee0344ca41eae3b64571a7fa3ca6a39c | refs/heads/master | 2016-09-06T08:52:28.898449 | 2013-06-01T15:56:29 | 2013-06-01T15:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from django import forms
from .models import *
class EventosForm(forms.ModelForm):
class Meta:
model = Eventos
# widgets = {
# 'nombre': forms.InputText(attrs={'class':'inputB inputA'})
# }
# <input class="inputA inputB">
class UsuariosForm(forms.ModelForm):
class Meta:
model = Usuarios
exclude = ('e... | [
"samuelb1311@gmail.com"
] | samuelb1311@gmail.com |
2fc6d94c3b2b11ba86ebe114e83a451f636f25c9 | 18df22a18f34b4e3066e797f024fb2e475408847 | /praca_z_danymi.py | 527424c0273538f106cccc209a5f923f8c55814d | [] | no_license | Karolinak246/Programing-in-Python | 8841d10495d661ad3708a1ba07cfe92c1c93a87d | 47093309b5cee0424552cb5fee0272cf78758e8c | refs/heads/main | 2023-01-31T20:09:50.361568 | 2020-12-15T23:02:25 | 2020-12-15T23:02:25 | 321,491,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | ################################
# 7.12.2020
# Kopczak Karolina
# Programowanie w jezyku Python
# Zadania: PRACA Z DANYMI
################################
#!/usr/bin/env python3
path = "/home/pi/Documents/Python"
from xml.dom import minidom
import xml.dom.minidom
import os
import numpy as np
import pandas as pd
impor... | [
"noreply@github.com"
] | Karolinak246.noreply@github.com |
a11962ae95b28d1923e23d0a5c514d53c454524e | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.7.1/_downloads/a54f19823bde998a456571636498aa98/auto_subplots_adjust.py | bd6326b8291f4b1a16db182e1f642d2279a8f0b0 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 3,366 | py | """
===============================================
Programmatically controlling subplot adjustment
===============================================
.. note::
This example is primarily intended to show some advanced concepts in
Matplotlib.
If you are only looking for having enough space for your labels, i... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
ba15778cb67c98978cb7fc27b5541dcb2ceeba8a | 3e0e9508b3b8d5609392fd64c57491d278c73c89 | /venv/bin/gunicorn | c5ff15177c6bba9a6f255f72a472181d98d2c757 | [] | no_license | raghav96/DatabaseWebApp | 9d59c9866e6977aac0ead06d242e01c5724211d0 | a81ba383393c61877ad40acc44cda30ef2d7b19e | refs/heads/master | 2021-01-02T08:36:38.272371 | 2017-08-01T18:21:47 | 2017-08-01T18:21:47 | 99,030,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/Users/raghav/flask-app/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"raghav96@github.com"
] | raghav96@github.com | |
b28bbc203b60e128307f6f9d8d309793f3dc1e1a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /yXZhG7zq6dWhWhirt_24.py | 1b4a59876a63f5dfdb4b9e7de1d41c308c735314 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
def is_prime(n):
if (n==1):
return False
for i in range(2,round(n**(0.5))+1):
if i!=n and (n%i)==0:
return False
return True
def filter_primes(num):
return [n for n in num if is_prime(n)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bbda84923f2c455dc60051aa1e126bf4dd187233 | 4a88ec266b64521fcaef88d92cb2b57776d3192b | /powerUsageNotification/powerUsageNotification.py | 132c11551e75d59adb52856ce265d156f20d6af7 | [
"MIT"
] | permissive | johntdyer/appdaemon-scripts | 4e5ea345d27d54d8133be212e5f7af57b8dfd57f | ce7e32a919be5a835d0bdf95e6650ff34b699220 | refs/heads/master | 2020-03-31T18:01:49.517418 | 2018-10-07T14:06:38 | 2018-10-07T14:06:38 | 152,443,705 | 1 | 0 | null | 2018-10-10T15:10:00 | 2018-10-10T15:09:59 | null | UTF-8 | Python | false | false | 4,100 | py | import appdaemon.plugins.hass.hassapi as hass
import globals
#
# App which notifies you when a power usage sensor indicated a device is on/off
#
#
# Args:
#
# app_switch: on/off switch for this app. example: input_boolean.turn_fan_on_when_hot
# sensor: power sensor. example: sensor.dishwasher_power_usage
# notify_name:... | [
"k.eifinger@googlemail.com"
] | k.eifinger@googlemail.com |
de440b2a397df3a824c6c85058fa980aa28a0340 | 52083499c5661e9034758135bf1ee2e625a9d2fb | /src/surround_view_sim/build/catkin_generated/generate_cached_setup.py | ca755387a7ec711615f8b35eb5609d860ad867bb | [] | no_license | pennluo/SurroundView_Simulation | 12d186545a5b53a32c47e8cfb1f1bfd3cc1f946f | ae7d98caf9c89325bcf776f119e9fd655cac8ebb | refs/heads/master | 2022-09-30T12:05:24.610092 | 2019-04-14T15:59:55 | 2019-04-14T15:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"luopengchn@gmail.com"
] | luopengchn@gmail.com |
ca4715ede55c40f5896201b4076cd2db446a2b25 | 33f87a7b8bf317894bff46d1f57dce5aea363b77 | /Unit_3/Prog_10.py | a827d6fbf1eaabadf8c7d56ec8cfd2b16f0d7647 | [] | no_license | beulah444/Dr.AIT_Python_Course_2015 | dd7f31659591225393bb81a4918d9a7df09e5f27 | 9fe4dd1fe0cbc093795901f8f272afe25adccef4 | refs/heads/master | 2021-01-22T17:28:51.383517 | 2016-06-10T19:37:57 | 2016-06-10T19:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | __author__ = 'Dr.S.Gowrishankar'
class ListSum:
def __init__(self, listArg):
self.listArg = listArg
def __init__(self, listArg):
self.listArg = listArg
def ComputeSum(self):
print sum(self.listArg)
#a =[1,2,3,4,5]
#ls = ListSum(a) #no need to write these two lines
ls = Li... | [
"learndatasciencewithr@gmail.com"
] | learndatasciencewithr@gmail.com |
f617f398edfe0e8e5b141797e5bcd020e521010e | 925c667f928d8a08a22cbb6c0bffbd5264a4db85 | /primerProyectoDjango/firtPro/firtPro/asgi.py | e210908218fc3e14599a75b10486c36247c84939 | [] | no_license | jesusManuelJuarez/jesusManuelJuarez | 62dd5770791e8c08942fe753a1cead687db3ab7a | c74ed3734ccd2a4e4ee8c5672cccd2102b54d5af | refs/heads/master | 2022-04-11T12:23:59.928223 | 2020-04-02T22:32:43 | 2020-04-02T22:32:43 | 250,353,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for firtPro project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault(... | [
"noreply@github.com"
] | jesusManuelJuarez.noreply@github.com |
c4281a41c161ba65c8915083ae81b981745630ca | 9775ab319e5c1f2270a132b0244f0847db42589b | /nilai/migrations/0008_auto_20210117_1010.py | d2abe2075f8f24b61525b7b5c136dcc1bf54b97d | [] | no_license | nabaman/SPK-SAW | 9aa8dfaf1bf5162bae1dc5c97e2b3e033a08294b | 5c0b8d491f23939615aa968cd52f081072fe2230 | refs/heads/master | 2023-02-18T17:38:21.028901 | 2021-01-22T15:37:06 | 2021-01-22T15:37:06 | 331,987,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # Generated by Django 3.1.5 on 2021-01-17 10:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nilai', '0007_auto_20210117_1004'),
]
operations = [
migrations.RemoveField(
model_name='data_krips',
name='kriteria... | [
"naba.alvian@gmail.com"
] | naba.alvian@gmail.com |
5db6fa1f99c5b7ac65079c7fd585ce8c7915f235 | 817085c4009e48db05e4a30815fdd92ee27513f9 | /venv/Scripts/pip-script.py | 87639661c7805bc7bbf60fa04e4b53e33d5922f8 | [] | no_license | bluesnie/novel | 7e3a2f403def8fe3e1d9c8c1ba4e2a80344c39e0 | c11076ca61c619a2b7c1423d742d3f4c63dc1fed | refs/heads/master | 2020-04-24T02:07:07.516575 | 2019-02-20T07:44:19 | 2019-02-20T07:44:19 | 171,486,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!C:\Users\lenovo\PycharmProjects\novel\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"l"
] | l |
b155ef0630a0290fc9d2d59511401268ad789fe4 | ec3ec2e292da450b095c8a4963a8aeb222d141bf | /model/DAO/ClienteDAO.py | 4349684129a4f5fa88ae857c388fd1c13621fc68 | [] | no_license | ojuliomiguel/Gerenciador-de-Fiados | b3aa97d8b65e595445f2598fc9e1bae1df289430 | da239a8de12d30bf5cd284322086fdffcfc9f851 | refs/heads/master | 2021-10-28T00:38:53.399247 | 2019-04-20T17:02:04 | 2019-04-20T17:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | import sqlite3
import os
from DataBase.ConexaoSQL import ConexaoSQL
class ClienteDAO:
def buscarCliente(nome):
try:
con = ConexaoSQL.conexaoBd()
cur = con.cursor()
query = """
SELECT id, nome
FROM clientes
WHERE nome = '{}'
... | [
"juliomiguelsouzacosta@gmail.com"
] | juliomiguelsouzacosta@gmail.com |
f2542cb91db283b5aae1bcebc74918ad123999bd | a78aff707dbaf053c78ead5f4631fc3ba0f0611b | /Code/data.py | eb210da3c8715ef8d4061df88a1b36dd87efea14 | [] | no_license | GitteVW/Multi-Instance-Experiments | b6ac3eed60df3ee8938dc3f96696c0924f3d98bb | 47de57f56c4b407765d9355dd97a4f27d2f0ba07 | refs/heads/master | 2020-05-16T21:27:36.589189 | 2015-01-26T21:16:29 | 2015-01-26T21:16:29 | 28,873,499 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | '''
Datasets and algorithms
'''
labels_sival=['ajaxorange','apple','banana','bluescrunge','dirtyworkgloves','juliespot','checkeredscarf','wd40can','candlewithholder','glazedwoodpot','cokecan','smileyfacedoll','dataminingbook','rapbook','feltflowerrug','translucentbowl','greenteabox','cardboardbox','dirtyrunningshoe','... | [
"gitte.vanwinckelen@gmail.com"
] | gitte.vanwinckelen@gmail.com |
db0098a5052813ec73014ee3786d77074ce4c3cf | a0727e9880bd4cbd575b1ead8404fac2a076ae7e | /src/tests/api/test_rol.py | 1c6f99376508b971e3ca4eab9191f0341534da56 | [
"MIT"
] | permissive | Haythem122/fastapi-docker | 57620631e18310df8aa2e8a27909249ffc52bf22 | 90b84161599fa23225649aef8a0532a571d350fe | refs/heads/master | 2023-08-12T10:58:43.601587 | 2021-09-20T23:11:47 | 2021-09-20T23:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py |
def test_create_role(client, super_user_token):
data = {
'name': 'new_role'
}
response = client.post(
'/api/v1/role', json=data, headers={
'token': super_user_token
}
)
assert response.status_code == 201, response.text
response_json = response.json()
expe... | [
"jeremysilvasilva@gmail.com"
] | jeremysilvasilva@gmail.com |
a643d38e90646191463eca1bc229387c66c1a11f | 65e0c11d690b32c832b943fb43a4206739ddf733 | /bsdradius/trunk/bsdradius/configDefaults.py | 244f2e4ef1d3488677ee5ad1c6d9c71ef18e43ac | [
"BSD-3-Clause"
] | permissive | Cloudxtreme/bsdradius | b5100062ed75c3201d179e190fd89770d8934aee | 69dba67e27215dce49875e94a7eedbbdf77bc784 | refs/heads/master | 2021-05-28T16:50:14.711056 | 2015-04-30T11:54:17 | 2015-04-30T11:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,442 | py | ## BSDRadius is released under BSD license.
## Copyright (c) 2006, DATA TECH LABS
## 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 c... | [
"valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef"
] | valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef |
5bf1f054acecf712806195e5754388d8d6ab6e98 | 2cabf2ef7640f6203ce6c95ee638793c806c2354 | /venv/Scripts/pip3-script.py | ed3e0c46993f2f30d9fd3af434f3e4ea7ba7c22b | [] | no_license | nunodores/suziapp | 4288347e4436981704fa80ae1416a2a486919fe7 | 43e33369ed64e0fe8eec6e94cc29809fa75dcb65 | refs/heads/master | 2021-07-20T08:34:26.340345 | 2018-12-01T22:28:58 | 2018-12-01T22:28:58 | 159,992,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!"C:\Users\Nuno Dorres\PycharmProjects\Test\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"41326@etu.he2b.be"
] | 41326@etu.he2b.be |
02247885ad972b4756997bffe5c07f2ebd394d4a | 908b6ee862375003eac9af6c8ea5b32533be4709 | /collective/phantasy/atphantasy/content/phantasyschema.py | 1842cf48d3c9871472abac28e8375078dccb4886 | [] | no_license | collective/collective.phantasy | c7199995d98be183eb163f5b73c3e89147f2e8a6 | 86cb66b0905f6bb284cfc03201dd5bbfa8f9010e | refs/heads/master | 2023-08-19T13:18:13.507960 | 2015-01-19T15:32:07 | 2015-01-19T15:32:07 | 29,517,296 | 0 | 0 | null | 2015-01-20T07:24:00 | 2015-01-20T07:24:00 | null | UTF-8 | Python | false | false | 37,998 | py | from Products.Archetypes.public import *
from collective.phantasy.config import I18N_DOMAIN
from Products.SmartColorWidget.Widget import SmartColorWidget
from Products.ATContentTypes.configuration import zconf
from Products.Archetypes.atapi import AnnotationStorage
from Products.validation.config import validation
fro... | [
"thomas.desvenain@gmail.com"
] | thomas.desvenain@gmail.com |
a842ae5ed2fa9404270a2b872f3c9f04a42ac434 | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/TestScript/UI/suite_UI_51/tst_UI_51_Pref_BufferAutoView/test.py | e1a9d9fe2212331ae4697f3a3269cdded8842a9c | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from API.Utility.Util import Util
from API.Utility import UtilConst
from API.MenuBar.Options.Options import Options
from API.MenuBar.Options.OptionsConst import OptionsConst
from API.MenuBar.Options.Preferences.Miscellaneous.MiscellaneousConst import MiscellaneousConst
from API.SimulationPanel.EventList.EventListConst ... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
509c23e3bf72658ffd093ae405cf9de4958fb78f | 102d09ef1d6effe166ad703ba4472c45dfb03263 | /py/Maximum_Depth_of_Binary_Tree.py | 199982277744c0985b39cfc2326fc115a739fec4 | [] | no_license | bitcsdby/Codes-for-leetcode | 5693100d4b66de65d7f135bbdd81b32650aed7d0 | 9e24e621cfb9e7fd46f9f02dfc40a18a702d4990 | refs/heads/master | 2016-09-05T08:43:31.656437 | 2014-08-02T15:14:53 | 2014-08-02T15:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param root, a tree node
# @return an integer
def maxDepth(self, root):
if root == None:
return 0;
... | [
"bitcsdby@gmail.com"
] | bitcsdby@gmail.com |
d0089bd15b2c1ffac1e167de02e3ee215da07c7b | 74698be74d244ebbabcb0b3cf17ebed26adfa37c | /orbit/utils/epoch_helper.py | 6eb110768887e95055c34f7fc3857f08a6b9c276 | [
"Apache-2.0"
] | permissive | lfads/models | aa75616fee2476641aa98ca1cbdce7e5d27a9aff | fd700f0cb2e104544c445d9fbf3991d8388ff18a | refs/heads/master | 2021-01-25T13:50:55.423010 | 2021-01-05T18:27:01 | 2021-01-05T18:27:01 | 123,619,512 | 16 | 9 | Apache-2.0 | 2021-01-05T18:27:02 | 2018-03-02T19:07:50 | Python | UTF-8 | Python | false | false | 2,136 | py | # Copyright 2020 The Orbit Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
97381c7e465346939150233934c4f52ea147926a | 1c6c127b7f22ad7c19b2cc0f265973711d6e3e01 | /bus/migrations/0002_auto_20200227_1737.py | 917f3db6cdb94721f19e9baa1456db73cb3805ac | [] | no_license | ramsheedrd/BusRoute | 1e0e7f94653c5fe6c6318dfe8079ed6b8f1b4c51 | bd61d37d16171777a28797195ff387b3fee57cde | refs/heads/master | 2022-04-16T09:44:07.774609 | 2020-04-05T12:31:21 | 2020-04-05T12:31:21 | 253,231,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | # Generated by Django 2.0.3 on 2020-02-27 12:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bus', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='DistrictModel',
... | [
"ramsheedkc10@gmail.com"
] | ramsheedkc10@gmail.com |
9d3339fbb1dea2a21cc7e3817513b96bac97ad71 | b03121e88c7c7b4738d6ab873cf030e7db140e32 | /utils/fact_memoization.py | 47630368952b26b22dc1746de79f0c20b8aab043 | [] | no_license | priestd09/project_euler | 0889a2038ee4ff17008169abea73f8a3bc74f713 | d6a04fbe42947ef0f9d9e26077c2b9b99069f4d1 | refs/heads/master | 2021-01-18T19:42:00.135047 | 2014-05-25T09:39:57 | 2014-05-25T09:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | #!/usr/bin/env python
'''
Created on 17 feb. 2012
@author: Julien Lengrand-Lambert
@contact: julien@lengrand.fr
'''
import timeit
from memoize import memoize
from Memoized import Memoized
def fact1(value):
"""
Returns value!
"""
if value == 0:
return 1
return value * fa... | [
"julien@lengrand.fr"
] | julien@lengrand.fr |
b6d15f2f18092727dbf5772e4baf476f305ac60b | 5487607b21cf32d2a7664a8d28b5fd68ad434739 | /tysdgx_landinspector.py | 8415b2e51eb903369edd96af6ffddc5be39afd3d | [] | no_license | Fr0z3nKnights/landcloud | 081cfb29f8e2f1b3fb484f37108a86c1855bcb1c | f65b413bd616bc4b9ca641aefc5a1db0cee40cb5 | refs/heads/master | 2021-04-05T00:03:04.774268 | 2020-03-23T06:55:19 | 2020-03-23T06:55:19 | 248,504,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,168 | py | """
@author:Fr0z3n
@contact:websec@yeah.net
@datetime:2020/3/16
@desc:To get json data from url(https://landcloud.org.cn),and distribute personal task.
"""
from openpyxl import Workbook
from openpyxl import load_workbook
import requests
import os
import datetime
import re
# 屏蔽SSL报错,要求重新安装requests==2.7.0(version)
from ... | [
"webhack007@outlook.com"
] | webhack007@outlook.com |
98fc62623666acf20345eb356467064870a96c88 | a7265d9cff8f2a06257faa4155655524ff6047c0 | /utils/findAll_keyNouns.py | 6fb229482e25c2d901662b491f039080ed01b2d8 | [] | no_license | szr712/pinyin2hanziTest | f285afa7c12e548063f279d523303f43cf81687d | 2bd4d197d514b85e43ad525be07a8fc6bef3ad23 | refs/heads/master | 2023-07-17T18:52:54.519509 | 2021-08-25T13:03:44 | 2021-08-25T13:03:44 | 392,251,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py |
def findAll_keyNouns(pinyin, tones, subpinyin, subtones):
"""匹配关键词拼音在拼音串中的所有位置
Args:
pinyin (str): 被匹配的拼音字符串
tones (list)): 被匹配的拼音串对应的音调
subpinyin (str): 需匹配的关键词拼音串
subtones (list): 需匹配的关键词拼音串对应的音调
Returns:
list: 所有匹配结果的起始下标
"""
index = []
for i in ran... | [
"zirui990712@163.com"
] | zirui990712@163.com |
7df058d88c766a9b978227fca727c0f1587d9861 | 2e1322f72f730fdb019c25eb533424bfb411c7dc | /backend/garpix_page/contexts/default.py | 635931bdc671efeb46a46e470ae8ab5dc4d06058 | [
"MIT"
] | permissive | tempuku/garpix_page | 750d3ef78e1698d93564ae510a9514dfb815853f | d24fa3d8c7b0b4134e66795965596f3cdb61c8db | refs/heads/master | 2023-03-17T03:33:07.528207 | 2021-03-11T15:15:13 | 2021-03-11T15:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | def context(request, *args, **kwargs):
return {}
| [
"crusat@yandex.ru"
] | crusat@yandex.ru |
c575267f57e1c42a783b5c2275174b4427573cab | 9db916f28e718d4684db7e67a05573365a182e0b | /base/migrations/0002_freeresponseanswer_answer.py | c4be8ee654e41e8dfcf550bb36d6976aa5ae5b09 | [] | no_license | shobashiva/questionnaire_app | 243fee34950141315a9eb05ea4c26b3b677660ed | bd6c1c51215215c531944e99b29363ea87e98b62 | refs/heads/master | 2021-07-11T03:37:19.980030 | 2017-10-16T13:02:45 | 2017-10-16T13:02:45 | 107,127,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='freeresponseanswer',
name=... | [
"shoba@apaxsoftware.com"
] | shoba@apaxsoftware.com |
d3341770a701c50c59469677b0108cffaf063137 | b6f892264a425278e84a01d12abb0e0082bddb1d | /orders/views.py | ad43e233d08f7352ea3703b89514611153bd17ae | [] | no_license | omar-bendary/Bookstore | 5059e264acc16389930cd640773171819fc8853c | 714630213bd29fd82ba9b4cf89089ca346c705be | refs/heads/master | 2022-12-31T18:14:49.860836 | 2020-10-25T23:39:17 | 2020-10-25T23:39:17 | 294,221,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import stripe
from django.views.generic.base import TemplateView
from django.conf import settings
from django.shortcuts import render
stripe.api_key = settings.STRIPE_TEST_SECRET_KEY
class OrdersPageView(TemplateView):
template_name = 'orders/purchase.html'
def get_context_data(self, **kwargs):
c... | [
"omarbendary@Omars-MacBook-Pro.local"
] | omarbendary@Omars-MacBook-Pro.local |
3a8f47db15b6d38c675be76ddcac8ebc077745ca | d2ad678fd648f516f3eaa4ee8d13825d3e07983d | /src/lib/Server.py | edcc7d53d75b5a62dfbcf0424aaa04936fd657da | [] | no_license | marcusagm/python-socketserver | 4affcda01e88b6f298486335f810e2624e25a139 | d4e6559716cead5c3f64acdb64f261d9fe8c32e0 | refs/heads/master | 2022-11-24T20:51:27.213763 | 2020-08-05T18:57:28 | 2020-08-05T18:57:28 | 285,364,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | import time
import queue
import errno
import socket
import select
import threading
class Server:
def __init__(self, address = '127.0.0.1', port = 3000, bufferSize = 8192, timeout = 300):
self.address = address
self.port = int(port)
self.bufferSize = bufferSize
self.timeout = timeou... | [
"marcusagmaia@gmail.com"
] | marcusagmaia@gmail.com |
b3a11d9e0e3f539e355dc7095199b687e163277f | 4a71f8ee21d03c3308245fad1f81525934bd9a31 | /nlu_dir/online/utils/configs.py | f37bcb3ce4a1e823d29eb57bfd0f1bc155f1eb7d | [] | no_license | nwaiting/nlu_context | fe11f13fbf7165cdbc4914a2b92304cbc52eb8e4 | da63efa0523d487a3ec59acc5ebfebfb8c1ea84f | refs/heads/master | 2020-04-08T11:06:54.460129 | 2018-11-28T02:08:11 | 2018-11-28T02:08:11 | 159,293,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from online.utils.nameutil import FieldClassifyNames as dcname,ContextNames as cname
from common.pathutil import PathUtil
_pathutil_class=PathUtil()
domain2entity2paths_set={dcname.product.value:
{cname.domain.value:[_pathutil_class.domain_filepath,
... | [
"zhengyuyu3@jd.com"
] | zhengyuyu3@jd.com |
81e7392eb7df7d48b1169c1670899bdb02ff1c0b | c35a85e98774d10684fd1ef3a27328d0f005b260 | /restapi/tasks.py | 6a6cd1e392142d1b0180592001ed1fb212a05a9d | [] | no_license | unichainplatform/unichain-monitor-web | ba110ec2bf7d71b8df952a1ec866ab4a411b295b | 97a0f01698102f3b88de60e1dcfb5a7c7731e2f3 | refs/heads/master | 2023-08-04T04:01:25.853165 | 2020-03-03T09:58:21 | 2020-03-03T09:58:21 | 240,002,198 | 1 | 0 | null | 2023-07-23T05:26:05 | 2020-02-12T12:00:17 | Python | UTF-8 | Python | false | false | 208 | py | from celery import shared_task
from fabric.api import execute
from restapi.builder import start
from time import sleep
@shared_task
def build():
execute(start)
@shared_task
def sleepp():
sleep(20) | [
"zequnfeng@gmail.com"
] | zequnfeng@gmail.com |
d42a3b73ca399156ab41efeaf04eb9a3c00c8126 | c2dc0e59980bb9141bc2459cc37cfeacc0d9bb75 | /lumicks/pylake/detail/widefield.py | 3d0eacab79adf0090e29ee7c4f35ce26afbbfaf5 | [
"Apache-2.0"
] | permissive | spangeni/pylake | fc5c69548aaa2f037f2f636dc6a5fb2ea0989132 | 7764928020264571aa7a0d8c5c9c0cb5d225377f | refs/heads/master | 2023-06-16T04:57:40.324040 | 2021-07-05T16:51:54 | 2021-07-05T18:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,705 | py | import numpy as np
import re
import json
import cv2
import tifffile
import warnings
from copy import copy
class TiffFrame:
"""Thin wrapper around a TIFF frame stack. For camera videos timestamps are stored in the DateTime tag in
the format start:end.
Parameters
----------
page : tifffile.tifffile... | [
"61475504+rpauszek@users.noreply.github.com"
] | 61475504+rpauszek@users.noreply.github.com |
0aa81db5fca950f4936b5d5082166f4d30a34ab1 | 81a9529137c7361189965684764470f8f2d92f38 | /yowsup/layers/protocol_chatstate/protocolentities/test_chatstate.py | c7b7c48b966da8e87344b5d15e81017b1b246adb | [
"MIT"
] | permissive | pasinit/yowsup | 670cd34e0d4e189394da97120ad2e76e201715fd | 894007650bf3d75ef7af4a0e57e84dc7cccc4dfe | refs/heads/master | 2021-06-01T17:50:29.866854 | 2014-12-20T11:29:30 | 2014-12-20T11:29:30 | 28,185,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from yowsup.layers.protocol_chatstate.protocolentities.chatstate import ChatstateProtocolEntity
from yowsup.structs import ProtocolTreeNode
from yowsup.structs.protocolentity import ProtocolEntityTest
class ChatstateProtocolEntityTest(ProtocolEntityTest):
def setUp(self):
self.ProtocolEntity = ChatstatePro... | [
"g@almeida.io"
] | g@almeida.io |
95f90ed48904d30f93ba5e9307af06e67327876f | 0d39012599f8bf1a43af0cdc9fc6ec0127f69e89 | /mini_url/urls.py | 98e42ab572d830fdb785098bbd55c71fc9688a12 | [] | no_license | Seifeddine-Selmi/django-tuto | 0a815fef93367247d508361bf7e8047a9eb5a1c2 | 3054cc5e4ebeddedb9e80eb89d0fc36827ba9f2e | refs/heads/master | 2021-01-14T08:35:48.288865 | 2017-02-21T17:35:57 | 2017-02-21T17:35:57 | 81,965,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #-*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
urlpatterns = [
# Une string vide indique la racine
#url(r'^$', views.url_list, name='url_list'),
#url(r'^new_url$', views.new_url, name='url_create'),
# (?P<code>\w{6}) capturera 6 caractères alphanumériques.
url(r'^(?P<c... | [
"selmi.seifeddine19@gmail.com"
] | selmi.seifeddine19@gmail.com |
e7a491c97fbec62daeb6c02fbf47d0ade5a13322 | 9fb90dc8be1b88b3904d863880b35041724cca9b | /src/contrib/multiply.py | 9dd28fdcdda22d67a8f009e52922d83804726d55 | [
"Apache-2.0"
] | permissive | pombredanne/hub-1 | 3bf6ea03b11b5c61185ba06b5a58eb203a3d95f3 | ba52c85c1cd2974bd4199bf51ce0678c5eff44e1 | refs/heads/master | 2020-12-14T06:17:03.443350 | 2013-04-10T20:40:35 | 2013-04-10T20:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | #!/usr/bin/env python
from api import task
@task
def multiply(arg1, arg2):
return arg1 * arg2
| [
"kris@automationlogic.com"
] | kris@automationlogic.com |
2965132d2280007b2cb37deb496ec32835affabc | e510582d3c00442f80d2872d369e16032c7b629f | /5-19(Reward).py | 239dc412ef824052d486754549f01e08426d1b78 | [] | no_license | JangJur/Python-Practice | 044885b5c50d4fe9a4a7b2c05326bef2faa4bba2 | 3adda0f4a6bc6f730fbb89baa22ad3d8f706dde3 | refs/heads/master | 2020-04-26T12:38:26.640557 | 2019-03-07T07:11:58 | 2019-03-07T07:11:58 | 173,434,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | p_year = 1988
r_year = 2016
b_money = 50000000
a_money = 1100000000
rate = 0.12
i = 1
while i <= (r_year - p_year):
b_money *= (1 + rate)
i += 1
if b_money > a_money:
print("%d원 차이로 동일 아저씨의 말씀이 맞습니다." % (b_money - a_money))
elif b_money < a_money:
print("%d원 차이로 미란 아주머니의 말씀이 맞습니다." % (a_money - b_mone... | [
"wkdwndud753@naver.com"
] | wkdwndud753@naver.com |
58596698f6381143d4fb47cfddea1dde38e4dc79 | d0f28dccc15804d4426bdb79c964fbc69206ec21 | /utils/pandas_test.py | 72e02ae50ce149d0dcce7a1e69b42df9f99ac909 | [] | no_license | INKWWW/python_project | f4170b435a2d08fa931c1ebff4b45bfa172181a6 | 0e4647d09ec4a7a5ea4d14863c2628402b3830d4 | refs/heads/master | 2020-04-02T08:29:54.970819 | 2019-04-13T07:52:54 | 2019-04-13T07:52:54 | 154,247,147 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''pandas practice'''
import pdb
import pandas as pd
import numpy as np
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
# s = pd.Series(list('abca'))
# print(s)
# print(pd.get_dummies(s))
# pdb.set_trace()
df = pd.DataFrame... | [
"whmink@foxmail.com"
] | whmink@foxmail.com |
e1c496b08d51cf84a89f1bf972424ec6ed19e4fc | 371ec3b00088f54ef703899048c308ff81e7b78b | /python基础-06/08-数据读取.py | dbcbfe52ce9a33bd2e44bebd13cb963de1b41121 | [] | no_license | zhangninggit/pythonjichu | d1fd428688d05e1f34f565e0bfd530d33f65e7cb | 954c935dfcdc8674d488cfa599934bf2e2be79c2 | refs/heads/master | 2020-04-04T05:19:36.417438 | 2018-11-02T05:16:43 | 2018-11-02T05:16:43 | 155,733,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | f = open("xxx.txt","r")
co = f.read()
print(co)
f.close()
| [
"zhangning2017@163.com"
] | zhangning2017@163.com |
a1d4abecf6810db269fd34712f27f857a5b34edc | 7f57aa11f807c1d440b46c94bb4b493a1540ce55 | /SIIC/usuarios/urls.py | 16968d1a51ba2bd1444fb173db896c6bd0f0f306 | [] | no_license | Aletrip-dev/OPE2 | 0a498a266bd78d16a0568686004023d72e57c506 | 9ed21a69c30d6c376a6a0c05ff0586f2a747aacf | refs/heads/master | 2023-04-20T10:44:58.204839 | 2021-05-15T20:44:42 | 2021-05-15T20:44:42 | 343,137,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | from django.urls import path
# MÓDUDO PARA AUTENTICAÇÃO DE USUÁRIOS
# (passar um alias para não conflitar com a views da aplicação)
from django.contrib.auth import views as auth_views
from .views import UsuarioCreate, PerfilUpdate, alterar_senha
urlpatterns = [
path('login/', auth_views.LoginView.as_view(
... | [
"aletrip@msn.com"
] | aletrip@msn.com |
b804ac79cb9db91690da307eee3873b42d5a9662 | f4830205e1ee5d2adfa1ed3be62deb89413ca34f | /datastructures/tuples/tuple-sort.py | a499ff8c341a1162819eef519abd7de6e72b8065 | [] | no_license | sarathcakurathi/pyscripts | 362e53a943fa9ff92bac096dea232fc27eed09d1 | 93f8680fdb5f5ad9b688dd58fb5263132df770f7 | refs/heads/master | 2020-07-12T00:25:29.978478 | 2019-08-27T13:12:43 | 2019-08-27T13:12:43 | 204,674,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!/bin/python
# Sort list of tuples using second element in tuple
input_list = [(5,6), (4,2,3), (1,4)]
input_list.sort(key = lambda x: x[1])
print(input_list) | [
"sarath.c.akurathi@gmail.com"
] | sarath.c.akurathi@gmail.com |
ec453b7eab4fe6e2560531b8c90b49e805794a0c | f886045c7c8a3d457cf12f6a6df345ccc23ea2e5 | /çalışankayıtokuma.py | 934aeee9fc3b477d08c281d969731c34ba66fa9d | [] | no_license | alpkaantanis/alp | 3041e9917dfe4536ce1f56497c01fcf605944d4b | 137e3501da0a5faaa59d5009ef4aa1c7b152fc01 | refs/heads/master | 2023-04-22T08:27:04.521559 | 2021-05-17T19:17:03 | 2021-05-17T19:17:03 | 368,295,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | def main():
calisan_dosyasi=open('calisanlar.txt','r')
isim=calisan_dosyasi.readline()
while isim !='':
sicil=calisan_dosyasi.readline()
bolum=calisan_dosyasi.readline()
isim=isim.rstrip('\n')
sicil=sicil.rstrip('\n')
bolum=bolum.rstrip('\n')
print('isim:',isi... | [
"alpkaantanis@gmail.com"
] | alpkaantanis@gmail.com |
76795df80dc41e3af67b42a73904e5675010ac9a | ccb8b706ca940c86ce96a212f01797586db90158 | /run | 67464cba3cc4dd0c42fe1537dee80d4a70807432 | [] | no_license | ChrisWaites/theorem-prover | 35e4733309bb2d5fc814a7634a991868712d7940 | ae7f3fd474c81531dd1d77ebbae2c7ff353e029b | refs/heads/master | 2021-09-10T09:09:50.263916 | 2018-03-23T09:35:26 | 2018-03-23T09:35:26 | 50,534,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | #!/usr/bin/env python
import argparse
from theoremprover.theorem_search import find_theorem, peanos_axioms
from theoremprover.expression import parse
def main(args):
axioms = set(map(parse, args.axioms))
theorem = parse(args.theorem)
path = find_theorem(theorem, axioms)
print(path[0])
... | [
"cwaites3@gatech.edu"
] | cwaites3@gatech.edu | |
71e6161a0479a61818760f02db11ace705c0070d | cdf9cad13361d7cb2306dd5ed1adfad227c5a5aa | /services_infrastructure/data-provider/app/extensions/logger.py | c1bbc11ce335878a3909fcbb1eaf849fdf209be6 | [] | no_license | MDUYN/reference-architecture-consent-management-in-data-spaces | ab32ec810ba429918f9125d66f323dc4ff5bdad0 | 6d8f0fd733c88954f7ce9694c2574882d39eb48c | refs/heads/main | 2023-01-21T12:32:16.519723 | 2020-12-02T16:47:32 | 2020-12-02T16:47:32 | 315,774,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import logging.config
def setup_logging():
logging_config = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
},
},
'handlers': {
... | [
"marcvanduyn1@gmail.com"
] | marcvanduyn1@gmail.com |
0f14427239d695935ab94dbda667716278b75906 | 4b3e7fba33d7f93b229d676df9e2c52307e884a1 | /velruse/views/facebook.py | 94e927f03518a57de014eca52e63d1dee2722b54 | [
"MIT"
] | permissive | stoiczek/velruse | 5b5e82e098850a0dc99d1d04f201051178f58769 | 79f219cfd75423cf16b2c327abec303d0edea547 | refs/heads/master | 2020-12-25T16:13:48.048229 | 2011-11-09T11:49:12 | 2011-11-09T11:49:12 | 2,372,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | """Facebook Authentication Views"""
import uuid
from urlparse import parse_qs
from pyramid.httpexceptions import HTTPFound
from simplejson import loads
import requests
from velruse.exceptions import AuthenticationComplete
from velruse.exceptions import AuthenticationDenied
from velruse.exceptions import CSRFError
fr... | [
"ben@groovie.org"
] | ben@groovie.org |
ad9a3b50ae05c454484d9697933ee5e00f730b4a | 5dd7c4ec44b76180040badc67849ad44f81690f9 | /unittests/test_stockitem.py | 751eb41a7c209613f1a6e803ac526f15a85a3c77 | [] | no_license | myluco/Phoenix | 68f9abe15a673fe56da6ef4375849ba6a642622d | 2de746beda35b8b5db547658cae1c65cfe164039 | refs/heads/master | 2021-01-18T15:59:05.001240 | 2016-12-04T00:08:36 | 2016-12-04T00:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import unittest
from unittests import wtc
import wx
#---------------------------------------------------------------------------
class stockitem_Tests(wtc.WidgetTestCase):
# TODO: Remove this test and add real ones.
def test_stockitem1(self):
self.fail("Unit tests for stockitem not implemented yet.")... | [
"robin@alldunn.com"
] | robin@alldunn.com |
6c10278bce7d441831f59503418233abcba5dee8 | 17c14b758959cdceec0dce8f783346fdeee8e111 | /chap05_nlp/automl/train.py | bca8b1fd41ce03b243523430bdc8d09621f7daa4 | [] | no_license | yurimkoo/tensormsa_jupyter | b0a340119339936d347d12fbd88fb017599a0029 | 0e75784114ec6dc8ee7eff8094aef9cf37131a5c | refs/heads/master | 2021-07-18T12:22:31.396433 | 2017-10-25T01:42:24 | 2017-10-25T01:42:24 | 109,469,220 | 1 | 0 | null | 2017-11-04T05:20:15 | 2017-11-04T05:20:15 | null | UTF-8 | Python | false | false | 3,650 | py | """
Utility used by the Network class to actually train.
Based on:
https://github.com/fchollet/keras/blob/master/examples/mnist_mlp.py
"""
from keras.datasets import mnist, cifar10
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.utils.np_utils import to_categorical
from keras.... | [
"tmddno1@naver.com"
] | tmddno1@naver.com |
fbf27bd442478db50ae76d53ff9eeda876dab945 | 35150c23e611588b506851d7bb33049682e667f2 | /hotelapp/dao.py | 0fce97739b963a380a00e047225a25e2bcc68375 | [] | no_license | hienhuynhxuan/HotelManager_KO | 4fd9dda2dc21a6d7254884b215af02c12af3d2c2 | f0f362be1ae91462f987a86f5dff4c39f401dd80 | refs/heads/main | 2023-01-22T04:47:07.132558 | 2020-11-19T02:48:01 | 2020-11-19T02:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from sqlalchemy import extract
from hotelapp.models import *
def read_room_info(name=None, kind_of_room_id=None, status=None, amount=None):
room = Room.query.all()
kind = str(kind_of_room_id)
if name:
room = filter(lambda tt: tt.name == name, room)
if kind_of_room_id:
room = list(fi... | [
"hien.hx133@gmail.com"
] | hien.hx133@gmail.com |
81e3da142f2a706ac4fbe041c6cc6057c44a4027 | 9be1ab6f7cc9e1e8474b7c76ef89284b54782c46 | /chapter17_errors/8_custom_exception.py | 8441acb47c175019e2ace90a11dcdee1fd945443 | [] | no_license | Nateque123/python_tutorials | 8d9842d46570e6cecd7aa5419b9f77bc4468d391 | 83743acf4862155c5837c154d0422f74d0629043 | refs/heads/master | 2022-11-20T11:39:02.565456 | 2020-07-24T11:08:34 | 2020-07-24T11:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # how to create custom exception
class NameToShortError(ValueError):
pass
def check(name):
if len(name) < 8:
raise NameToShortError('you enter short name...')
else:
print(f'Hello {name}')
name1 = input('Enter your name: ')
print(check(name1)) | [
"noreply@github.com"
] | Nateque123.noreply@github.com |
95e2a602cdea202da5cba6e81d040adac387cb68 | ea3048858939a8162f82a1d0b0ec43171530ea8d | /apps/search/models.py | 62ec89db3a73a35a853d885c234a3453ffbb6a68 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kknet/NewsBlur | d229b12c39f7ca3eab1e28922171f87ea37b8df1 | fa78b434f980d2814dd05fedb70d9e87259ee998 | refs/heads/master | 2021-01-17T22:36:29.651729 | 2016-09-20T20:05:25 | 2016-09-20T20:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,270 | py | import re
import time
import datetime
import pymongo
import pyes
import redis
import celery
import mongoengine as mongo
from django.conf import settings
from django.contrib.auth.models import User
from apps.search.tasks import IndexSubscriptionsForSearch
from apps.search.tasks import IndexSubscriptionsChunkForSearch
fr... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
00c9949db590246f66d2bb3310ffbfe39a1fee79 | 9b24eb3a15e9acd4aaf7af00d88488f5a056438f | /backend/home/api/v1/viewsets.py | c7c28c17f806e899fca335a7c524c6cb75b776a2 | [] | no_license | crowdbotics-apps/dashboard-app-18025 | b8fb28008d42371c7d74102b78ae380725b3221a | 202f33b00e14f65adfc9dbf84f748ad5cc051652 | refs/heads/master | 2022-11-15T12:16:12.733390 | 2020-06-15T17:24:52 | 2020-06-15T17:24:52 | 271,619,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from rest_framework import viewsets
from rest_framework import authentication
from .serializers import (
AddressSerializer,
CustomTextSerializer,
HomePageSerializer,
XYSerializer,
)
from rest_framework.authentication import SessionAuthentication, TokenAuthentication
from rest_framework.authtoken.seriali... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a07369e5917c7c67c2f793f80ed4d1023bafb477 | 0b12a3aab3b06a9ff007eaf6daaca0a696be84c1 | /phase-0/classify.py | cdecf02a2e4252e324b6225b05f950a25d64ba8c | [] | no_license | fariszahrah/crypto-twitter | 1cfdaa7db8f14d9a5280d68280690c7aa70162c3 | 2eef22a5e1d71d89d0f1e5f7d344cbb7c929b91d | refs/heads/master | 2021-01-08T23:45:00.693390 | 2020-02-21T16:27:36 | 2020-02-21T16:27:36 | 242,178,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | from sklearn.ensemble import RandomForestClassifier
import sklearn as sk
import re
import nltk
from sklearn.feature_extraction.text import *
import pandas as pd
import numpy as np
import pickle
from collections import Counter
'''
the train dataset was created from the following lines of code:
****
... | [
"fariszahrah@Fariss-MBP.attlocal.net"
] | fariszahrah@Fariss-MBP.attlocal.net |
005b11fedd1241560633f3f19ce4ab82b6cf9068 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /resize.py | 306400848b45f96d2ec9be96bbc1dbae1a9871f7 | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import cv2
import argparse
import numpy as np
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="Path of image")
ap.add_argument("-w", "--width", default=100, help="Width of resized img")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
width = int(args["width"])
ratio... | [
"geegatomar@gmail.com"
] | geegatomar@gmail.com |
612f3220df184b463f51fd5d95a6580cca79748d | 4ad3624c676defcf75a3235cc014534806dde50b | /baranovperictyrant.py | f60ee7cfb02dc67a198b3934d2a99733a1b8f959 | [] | no_license | gbaranov99/BaranovPericCS407Program1 | 5ca2b0eeb3b290d0142eb8e4b9a4da0acf7a4bf1 | ab29da5887f5f1ff1fda4b2e3dd4bdb3209e7b88 | refs/heads/master | 2023-02-27T20:47:03.196996 | 2021-02-13T01:07:38 | 2021-02-13T01:07:38 | 338,470,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | #!/usr/bin/python
# This is a dummy peer that just illustrates the available information your peers
# have available. The setup script will copy it to create the versions you edit
import random
import logging
from messages import Upload, Request
from util import even_split
from peer import Peer
class BaranovPeric... | [
"gbaranov99@gmail.com"
] | gbaranov99@gmail.com |
2534efd7cf1a472d4c24db7e37fb628ef53a3a0f | 9adda6cef38c05c0d6bc4f5d0be25e75500f3406 | /ques 2 sol.py | 00f2329450eb86ff204e44c7f8653fbee1abdcff | [] | no_license | GLAU-TND/python-programming-assignment4-upadhyay8844 | 09255dd1ef340f7af3ee57e4eee3c671c010d5c4 | bc5c31d40f03cceebb2c842bdd933e0e73a998a1 | refs/heads/master | 2021-05-19T05:26:14.857261 | 2020-04-01T11:43:27 | 2020-04-01T11:43:27 | 251,547,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | def is_dict(var):
return str(type(var)) == "<class 'dict'>"
def flatten_helper(d, flat_d, path):
if not is_dict(d):
flat_d[path] = d
return
for key in d:
new_keypath = "{}.{}".format(path, key) if path else key
flatten_helper(d[key], flat_d, new_keypath)
de... | [
"noreply@github.com"
] | GLAU-TND.noreply@github.com |
2bd8ed87c34f5106c1bf3d36425d3ecae107c5ea | 43f5332bfc67e67ddb1e52e7eae40306ce7ef1e2 | /12/tests.py | a072532fc33103350a0c1c5c0b21149b8b84a7d9 | [
"MIT"
] | permissive | remihuguet/aoc2020 | 943d9713c5edf2a80aa9e11a46d89ad3ef72b88c | c313c5b425dda92d949fd9ca4f18ff66f452794f | refs/heads/main | 2023-04-13T05:07:31.317561 | 2021-03-30T20:36:48 | 2021-03-30T20:36:48 | 317,330,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | import rainrisk
def test_compute_new_direction():
direction = (1, 0)
assert (0, -1) == rainrisk.compute_new_direction(direction, 'R90')
assert (0, 1) == rainrisk.compute_new_direction(direction, 'L90')
assert (-1, 0) == rainrisk.compute_new_direction(direction, 'R180')
assert (-1, 0) == rainrisk... | [
"remi.huguet@gmail.com"
] | remi.huguet@gmail.com |
5c88190ae443b4fec8426fb3e97aa3b52ac51b19 | 3ac7e1ec8c3551b449e10c43c76e44d285462502 | /manage.py | 24c38809017765d996b7094cdc22bfd076324a4c | [] | no_license | slayyy/render-manager | 612ea2c2e611875df7b453a177401ecfeeb9962d | efbcf6f2b30061bfa14bb22994e0029e73691896 | refs/heads/master | 2022-05-08T23:45:14.461612 | 2019-10-27T17:19:52 | 2019-10-27T17:19:52 | 215,014,775 | 0 | 0 | null | 2022-04-22T22:33:52 | 2019-10-14T10:31:53 | Python | UTF-8 | Python | false | false | 634 | 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", "render_manager.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"decobert.a78@gmail.com"
] | decobert.a78@gmail.com |
3bad8e294dbb199e5e40870811281cceb64d295c | cd1465251c5b4536f8d0c634c0efaff4d628c87c | /Semantic_Analysers/ColourAnalyser.py | cfea4b8096683c0c4cb9bfcef3f1d8532d6f9037 | [] | no_license | BennyMurray/Scoop | 9794bca1d1d4b159e041a8c482a256de852a9e6d | 01f9c31affbb291a5507d86ab88a637a2dafea28 | refs/heads/master | 2021-03-27T18:54:21.094647 | 2017-07-16T21:25:24 | 2017-07-16T21:25:24 | 77,929,600 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | from __future__ import division
def analyseColour(word_list):
num_set = [0.33, 1.68, 2.2, 2.36, 2.87, 0.29, 0.27, 2.94, 0.81, 0.22, 2.59, 1.06]
colour_value_list = [
(1, ["pale"], num_set[0]),
(3, ["straw"], num_set[1]),
(4, ["yellow"], num_set[2]),
(5, ["gold"], num_set[3]... | [
"bjamurray@gmail.com"
] | bjamurray@gmail.com |
4c61a7aae73fa64897e0df01720f5f1eed93b6dd | 16de2efcba33961633c1e63e493986bad54c99bd | /test.py | 73b7e8d90f6b8b0378a1486d70f70ac2af704483 | [] | no_license | thakur-nishant/Algorithms | a0cc45de5393d4cbb428cccdbf81b6937cdf97d7 | 1a0306ca9a9fc68f59e28ea26c24822c15350294 | refs/heads/master | 2022-01-07T22:22:09.764193 | 2019-05-17T20:10:24 | 2019-05-17T20:10:24 | 109,093,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from math import log
from random import random
import matplotlib.pyplot as plt
import numpy as np
l = 2
T = 24
curr = -1/l * log(random())
arrival = [curr]
while curr < T:
curr = curr -1/l * log(random())
arrival.append(curr)
arrival = arrival[1:]
t = np.arange(0.0, T, 0.01)
N = len(t)
X = np.zeros(N)
fo... | [
"nt.nishantt@gmail.com"
] | nt.nishantt@gmail.com |
1d0f92dbe95dbd0d77497c536f85a8ee3cac119f | 7504e3c8400986b8d72227a9ae6d084a2eb9de09 | /acs/cli.py | a8ed40bfa7fe927c66f9bba4e722cfba7b0100ea | [
"Apache-2.0"
] | permissive | keikhara/acs-cli | 848b288e009591650e726fb7784e3acff5d0fc49 | b0d53679f7642c655bfb84ea3e7918b16af7dc25 | refs/heads/master | 2020-12-11T07:18:57.236131 | 2016-07-26T05:59:26 | 2016-07-26T05:59:26 | 65,325,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | """
acs
Usage:
acs [--config-file=<file>] [--version] [--help] <command> [<args>...]
Options:
-h --help Show this help.
Commands:
service Create and manage Azure Container Service
docker Send docker commands to the cluster
afs Add the Azure Files Docker volume drive... | [
"ross@gardler.org"
] | ross@gardler.org |
6dcdc505bde9ee4996f62e4c6d83879c0f9d77ab | 1d4cdffde9e2cf750b0fbe0cc06f4f4455393762 | /Chapter09/Python/02-geocoding-parallel-with-python.py | ad3faa246f40c105739ee455cf75e592df013813 | [
"MIT"
] | permissive | ndarvishev/Extending-Power-BI-with-Python-and-R | 59b3a82bb7bf863756c71d8bff11c41ad9164fe3 | d52b7064128ff086c315335d780df3dde1fb13d5 | refs/heads/main | 2023-07-20T07:27:22.377184 | 2021-09-05T14:29:09 | 2021-09-05T14:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | # %%
import os
import requests
import urllib
import json
import pandas as pd
import dask.dataframe as dd
import time
# %%
def bing_geocode_via_address(address):
# trim the string from leading and trailing spaces using strip
full_url = f"{base_url}query={urllib.parse.quote(address.strip(), safe='')}?key={AUTH... | [
"lucazavarella@outlook.com"
] | lucazavarella@outlook.com |
a4b5aa67b31a6384126ccb1f35d8fff5774c6f6b | bf6626d2f70ef72963eb6290bdcf44dc75531aa1 | /hoodwatch/settings.py | 77ae46e54251375fc08635b55d0fde36cbd22c3e | [
"MIT"
] | permissive | amtesire/Hood-project | c70930f110668a9549809f329543e62d9c036750 | 8078a2c85ba06cdddab54a4960168fb2e237e122 | refs/heads/master | 2023-02-23T19:50:39.233884 | 2021-02-02T14:53:28 | 2021-02-02T14:53:28 | 334,227,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | """
Django settings for hoodwatch project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"tesiregisele@gmail.com"
] | tesiregisele@gmail.com |
c5c0efac5b659bbee446fae9d8a327987f1d99ea | 222ffb1996699dc5e0cb5e1c239698b872003c8d | /03_Multiply.py | 25ef5ced75ea4642a8dfeba6f61b0335756cb142 | [] | no_license | AdityaSA99/IoT-Programs | 3dcbf8ff24a978b530b0ada02a2b7ad5ed378462 | 20c5e910e20529bff648fa5523296f8712c6faeb | refs/heads/master | 2020-05-31T06:27:28.901576 | 2019-06-10T15:40:43 | 2019-06-10T15:40:43 | 190,142,164 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | a = float(input("Enter value of A :"))
b = float(input("Enter value of B :"))
c = a*b
print(("Product of {0} and {1} is {2}").format(a,b,c))
| [
"noreply@github.com"
] | AdityaSA99.noreply@github.com |
d27b115ccb6e7ef16a5a8dc0e95cc0d084f526b3 | 1d9d6f72b10dd34fd501b8ba58b1b8bfcb2ebb72 | /spraying/detect_blobs.py | 0efb6f21908c7287a1b7ba03fbcdda00698467ab | [] | no_license | crushendo/spraying | eb684ae0a1691e39f74978c2556a000e394920c2 | 93644410a17351ee8ae85f66fe8622887670f2c3 | refs/heads/master | 2021-01-19T22:46:57.663738 | 2017-08-11T19:11:00 | 2017-08-11T19:11:00 | 88,867,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | import cv2
import numpy as np
class blob_detector():
def main(self):
blobs = blob_detector()
img, params = blobs.initialize()
all_keypoints = blobs.all_drops(img, params)
single_keypoints, diameter_list = blobs.single_drops(img,params)
double_keypoints = blobs.double_drops(i... | [
"ryan.ackett@gmail.com"
] | ryan.ackett@gmail.com |
4481446207abde7e6ba8f0c16de738b7d78e0e02 | 2a7b79c98aa6f8b36a68c96937cd8f4577ff48be | /neural_network/californiaHousingNeuralNet1.py | 2a8956b56cc13ec401ebb1d7395c90045c79c2f1 | [] | no_license | Utlak88/California-Housing-Dataset | 6935a207e465d48e3fcef2930d8e65bc7d9c4c99 | 6aae815d323e39d041586fdc54da6c7f83809995 | refs/heads/main | 2023-02-01T16:37:53.305730 | 2020-12-23T07:40:25 | 2020-12-23T07:40:25 | 323,824,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,676 | py | # Neural network based on the Google Machine Learning Crash Course
################################################################################
# Importing modules
import numpy as np
import pandas as pd
import tensorflow as tf
from sklearn import metrics
from sklearn.model_selection import train_test_split... | [
"noreply@github.com"
] | Utlak88.noreply@github.com |
a3dc231f3dbd0e2e1ef4dbdd546e09d37e950ff2 | f224fad50dbc182cda86291c83954607bbb60901 | /inference.py | ce98cbf4d15f6bc1e05363be1db9afeb1e519de5 | [] | no_license | Hongpeng1992/pytorch-commands | 7fd26202b7cf7d46a0ac8e1241336e8ca5dad30e | 5853625d9852e948c1ac337547f8078d048699a0 | refs/heads/master | 2020-05-04T15:38:26.704013 | 2019-02-07T07:04:01 | 2019-02-07T07:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import argparse
import io
import os
import csv
import time
import numpy as np
import pandas as pd
from collections import OrderedDict
from datetime import datetime
from dataset import CommandsDataset, get_labels
from models import model_factory
from utils import AverageMeter, get_outdir
import torch
import torch.auto... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
ad937e5bdb44e8c8d3bb32af90bd346163310b48 | b99ce2b1bc8ac32976cf1762c8df7bc74365e403 | /models/networks.py | c816a0edf200d1544f3b93f4aa93110c3d40a629 | [
"Apache-2.0"
] | permissive | KoryakovDmitry/TGRNet | 8a7b2ad34cc2cc481f90bd9f9b0745368cdcc705 | afef2835a8f3ff0d2f6573dda025e3115e0d3400 | refs/heads/main | 2023-08-04T02:29:29.361763 | 2021-10-05T15:03:12 | 2021-10-05T15:03:12 | 413,845,598 | 0 | 0 | Apache-2.0 | 2021-10-05T14:11:32 | 2021-10-05T14:11:31 | null | UTF-8 | Python | false | false | 29,516 | py | import torch
import torch.nn as nn
from torch_geometric.nn import GCNConv
from torch_geometric.data import Data as GraphData
from torch_geometric.data import Batch as GraphBatch
import torch.nn.functional as F
from torch.nn import init
import functools
from torch.optim import lr_scheduler
from torchvision import models... | [
"15120452@bjtu.edu"
] | 15120452@bjtu.edu |
14117448fe850d69ae5fcf1bd41049c19247b557 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /appmesh_write_2/virtual-router_delete.py | db6df7702ffc69ca7d3bbf5c3eda2b1680913ce2 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appmesh/delete-virtual-router.html
if __name__ =... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
3a5e3c2e15f0e9ec3f7c4f139ac435cef942c429 | 84b08a60e49e702e51b8c3bd0c558fbd957e11ae | /LatestAlgorithms/SVM.py | 28692dc75e49da2349af66a00b5e9ad5073e963c | [] | no_license | akhalayly/GoldenBoy | 787732656250bc52ad0076dca35f15abbd2f4f14 | fb88b656525c3bc614a24b982acf4d1ae745aa8b | refs/heads/main | 2023-02-06T02:17:53.197336 | 2020-12-28T20:07:14 | 2020-12-28T20:07:14 | 304,894,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.model_selection import KFold
from sklearn.feature_selection import SelectKBest, c... | [
"noreply@github.com"
] | akhalayly.noreply@github.com |
53fa6c563e9983afb729af1af3be08c9c03dd4a1 | 8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7 | /51player.py | 470f81860462904d56f98294142a2c26cd476828 | [] | no_license | aarthisandhiya/aarthisandhiya1 | c19c1951c9ba01cd97eeddd44614953088718357 | e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b | refs/heads/master | 2020-04-15T17:17:07.151242 | 2019-05-20T05:24:19 | 2019-05-20T05:24:19 | 164,868,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | a=int(input())
s=[int(a) for a in input().split()]
s=list(s)
z=[]
for i in range(0,len(s)):
val=s[i]
i=i-1
while i>=0:
if val<s[i]:
s[i+1]=s[i]
s[i]=val
i=i-1
else:
break
print(s[1])
| [
"noreply@github.com"
] | aarthisandhiya.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.