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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0820891b0c99031ce98522037cd96f4e5de486c | 359cc4d7961033748e665979bd5280349398810f | /LunchCartServer.py | 376d2de24fa60fba5a22300e5b3cf683b9a0a2c4 | [] | no_license | DelveInc/LunchCart | 00ec2c8ffb8904b1cfd8e1910060d88b03e1337c | d8400a0d41bbd3d026c128dca17dcb7f45b35d8c | refs/heads/master | 2021-05-28T01:41:27.624812 | 2014-04-15T19:09:45 | 2014-04-15T19:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | ###################################################################
# LunchCartServer.py
# written by Jack Boland
#
# Portions of socket code modified from:
# http://www.tutorialspoint.com/python/python_networking.htm
#
###################################################################
import smtplib
import socket... | [
"jcboland91@gmail.com"
] | jcboland91@gmail.com |
d4af9f129978a38539bdfade208945ce2455139c | 55b2873fddb18860d78767f43381e36b844d893c | /Python/Python_Abs_Begin/Mod3_Conditionals/3_1-4_2-Str_comp_if.py | ba0a38cf042c4e2791fa7f461b9e297ef2958094 | [] | no_license | scotttct/tamuk | 0b972b6966fda0f374face0ccf0324beece69a2b | 7459691b0d1cf5adb21b1e7b98f7abbff3f4f6ae | refs/heads/master | 2020-12-11T08:48:34.739951 | 2020-03-21T13:21:37 | 2020-03-21T13:21:37 | 233,805,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #CONDITIONALS: COMPARISON OPERATORS WITH IF
# [ ] get input for a variable, answer, and ask user 'What is 8 + 13? : '
# [ ] print messages for correct answer "21" or incorrect answer using if/else
# note: input returns a "string"
#My solution below
# answer = "You are correct: 8 + 13 = 21"
# user_input = input("What ... | [
"scotttct@outlook.com"
] | scotttct@outlook.com |
1984800ed08598b5158744cfc7cb4dff77f2dd8b | 9febc3008d825a253bd870f05fe128c356586a9c | /venv/lib/python3.7/site-packages/github/Stargazer.pyi | 7f7284ef872ca24a30fa581d73b2b8414ae5fa5e | [
"MIT",
"LGPL-3.0-or-later"
] | permissive | bhaving07/pyup | 7ca947a0f4e6b6e1ca1e1b7c49c6bd3d99943c28 | 17ad21a2957c5cce91ad0cf5f75853a3182806d2 | refs/heads/main | 2023-02-01T14:16:40.959832 | 2020-12-18T04:34:27 | 2020-12-18T04:34:27 | 322,286,443 | 0 | 0 | MIT | 2020-12-17T13:14:46 | 2020-12-17T12:20:49 | Python | UTF-8 | Python | false | false | 459 | pyi | from datetime import datetime
from typing import Any, Dict
from github.GithubObject import NonCompletableGithubObject
from github.NamedUser import NamedUser
class Stargazer(NonCompletableGithubObject):
def __repr__(self) -> str: ...
def _initAttributes(self) -> None: ...
def _useAttributes(self, attribute... | [
"bvgolakiya4@gmail.com"
] | bvgolakiya4@gmail.com |
e5bf01108d918e80ad00aefbabb28a185806e465 | a1b7c1357181320b272ef4c72b70d22600a407c1 | /examples/boilerplates/base_test_case.py | 227dee5670a125162ef469064f1f4ac63a54b340 | [
"MIT"
] | permissive | BarryYBL/SeleniumBase | 5c96e21eaebd45e2f6ac26d5bd563b3ba300e6f6 | e3cb810331183fa003cea8af81057e4136dfd660 | refs/heads/master | 2022-12-04T11:34:20.134294 | 2020-08-28T05:45:24 | 2020-08-28T05:45:24 | 290,998,663 | 1 | 0 | MIT | 2020-08-28T08:52:44 | 2020-08-28T08:52:44 | null | UTF-8 | Python | false | false | 1,522 | py | '''
You can use this as a boilerplate for your test framework.
Define your customized library methods in a master class like this.
Then have all your test classes inherit it.
BaseTestCase will inherit SeleniumBase methods from BaseCase.
With Python 3, simplify "super(...)" to super().setUp() and super().tearDown()
'''
... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
5343cda673d0c192d79a0e79165b52797487df55 | cebf0d2fa977776f35ae0001935859176b80441a | /GPyT/make_data_copy.py | ceeb492243d4ae75de80219ae5c055b865a135fe | [] | no_license | objoyful/our-code | bb5fbca0f7ad937724896266c2ecbc080facfb08 | 02640b8359023194b93c0587835ff9217d6fa467 | refs/heads/master | 2023-08-30T23:32:59.641061 | 2023-08-29T21:35:35 | 2023-08-29T21:35:35 | 200,138,999 | 2 | 1 | null | 2019-08-19T20:43:28 | 2019-08-02T00:57:21 | Python | UTF-8 | Python | false | false | 1,037 | py | import os
from curtsies.fmtfuncs import red, bold, green, on_blue, yellow, blue, cyan
import time
MAX_CHAR_LENGTH = 512
MIN_CHAR_LENGTH = 256
NEWLINECHAR = "<N>"
d = os.path.join("GPyT", "repos_test")
file_paths = []
for dirpath, dirnames, filenames in os.walk(d):
for f in filenames:
full_path = os.path.... | [
"WilliamKennethCarden@yahoo.com"
] | WilliamKennethCarden@yahoo.com |
5827cfe9e8502757d7beaf88ca366d7649c43465 | c7f9c1f8e56c69d405df48c3c57eee82b325a80e | /tests/test_cli.py | 75140018819717910268cd61df637e1063e10d0b | [] | no_license | vikramcse/pygit-user-info | 5ede7f3dc718c34322607de3dae884550ac9ee8d | 76869e83186d4e6c9858c0aecaf71c6e1250bfe8 | refs/heads/master | 2020-12-02T11:20:43.797782 | 2017-07-08T16:16:28 | 2017-07-08T16:16:28 | 96,629,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import pytest
from click.testing import CliRunner
from git_info import cli
@pytest.fixture
def runner():
return CliRunner()
def test_cli(runner):
result = runner.invoke(cli.main)
assert result.exit_code == 0
assert not result.exception
assert result.output.strip() == 'Hello, world.'
def test_c... | [
"vikramcse.10@gmail.com"
] | vikramcse.10@gmail.com |
da9bcc35ddb0259e63a04370cd3a938053e4e4e4 | 7d1e164f64aea0b317183b1b986a9f271b9e4d69 | /project/settings.py | b6defbb1321d27498d4bd7a3cbec520af76fa0bb | [] | no_license | tinnguyen18920/test_deploy | fb27659b079e5a6b8dfa396fcf71b2a485fd8ae5 | 43b2551015fbaad094ff6cb7f7b2d2cf44076484 | refs/heads/master | 2023-08-15T09:11:15.398423 | 2020-05-04T07:22:06 | 2020-05-04T07:22:06 | 261,101,347 | 0 | 0 | null | 2021-09-22T18:57:59 | 2020-05-04T06:53:57 | JavaScript | UTF-8 | Python | false | false | 3,227 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"tinnguyen18920@gmail.com"
] | tinnguyen18920@gmail.com |
96f478ef55a45b8eaf34ab68e1d50cded4d0b26f | 93b866284ca1ac29c5005555f2cb30454a0fb5cf | /Problems/18-Problem/Problem 18.py | 40cbb8dac25dc2bdde8a7f63427cfd7b87aca50e | [] | no_license | FrancoisdeFouchecour/Projet-Euler | c2b17d1e35fbd10a708ba3221825a62a17818382 | 0cf70457c0418264c2eff7cdd0e92a07b61ecb07 | refs/heads/master | 2021-12-25T05:44:08.054648 | 2021-11-27T21:47:42 | 2021-11-27T21:47:42 | 168,253,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | import time
problem_number = 18
test_solution = 23
#read data
number_file = open("data.txt", "r")
raw_data = number_file.read()
number_file.close()
size = raw_data.count("\n")
matrix_value = [[0 for j in range(size)] for i in range(size)]
index_ver = 0
index_hor = 0
for index in range(len(raw_data)):
if ind... | [
"francois.de-salivet-de-fouchecour@polytechnique.edu"
] | francois.de-salivet-de-fouchecour@polytechnique.edu |
d8224aa3c4831615590029c8bfb0449c9116b0ae | 51c013bfbae77e41289d68f80cd8b4a02354db83 | /Ticket/models.py | a694243b10e703bbaec0472d0d186024bfc63a96 | [] | no_license | monica-bhaskhar/DjangoRailwayTicket | d4d44865508753c1eb6ff77a3fe518737c7fe724 | 7ea8a48d7618a79e4b51e4196811c562880efd50 | refs/heads/master | 2021-03-26T14:32:19.777278 | 2020-03-17T16:32:08 | 2020-03-17T16:32:08 | 247,702,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from django.db import models
# Create your models here.
class BookTicket(models.Model):
GENDER_CHOICES = (('Male', 'Male'),('Female', 'Female'),)
BERTH_CHOICES = (('Upper', 'Upper'),('Lower', 'Lower'),('Middel', 'Middel'),('Side', 'Side'))
STATUS_CHOICES = (('Confirmed', 'Confirmed'),('RAC ', 'RAC'),... | [
"monicabhaskhar1995@gmail.com"
] | monicabhaskhar1995@gmail.com |
211d5d79d96070cd6b0bb086a10b1a04e4070a09 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_dist_sparse_load_ps0.py | 985aa0d9337713e9470ba9393f4a12982e617e49 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,710 | py | # Copyright (c) 2020 PaddlePaddle 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
1ece4fc6c106792ad39a8138445d999cfbd44a5c | 0875769ad6f34845e53aed09d592c850e335f410 | /텍스트파일보고서 생성기.py | 26b740b2439e7ee57b5af751ba1add60071d27e0 | [] | no_license | ggozlo/py.practice | bc515ce214cb8b35ec5c949f67287971e97fa667 | b3bcdba0880e8ba7de362b7314be545e4fd1fc9a | refs/heads/main | 2023-02-24T22:36:03.595599 | 2021-01-31T16:53:33 | 2021-01-31T16:53:33 | 333,743,728 | 0 | 0 | null | 2021-01-28T12:08:28 | 2021-01-28T11:53:30 | null | UTF-8 | Python | false | false | 730 | py |
#___________________________________________________________________________________________________퀴즈
num = range(1, 51)
for txt in num :
report_file = open("{}주차.txt".format(txt),"w",encoding="utf8")
print("- {} 주차 주간보고 -".format(num), file= report_file)
print("부서 :", file= report_file)
print("이름 :"... | [
"78086722+ggozlo@users.noreply.github.com"
] | 78086722+ggozlo@users.noreply.github.com |
5f102bf8684c2c36dbbdb998c3397bb7896b09d2 | dab492c669ad2173dbac5b9c01c563bbc53a15af | /code/utils/pred_ground.py | c0bf2c4a9d610c93b09c0948151d0fe191879dc8 | [
"MIT"
] | permissive | bflashcp3f/textlabs-xwlp-code | d7582701efada6e00dc09c1d16993f6b0d99682c | b099ec7382316f80355c453b4bd4aa742bf68359 | refs/heads/main | 2023-03-23T03:56:21.208149 | 2021-03-10T02:15:12 | 2021-03-10T02:15:12 | 342,127,953 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,122 | py |
import math
import glob
import time
import json
import pickle
import os
import numpy as np
import operator
import time
import torch
import sys
import random
import argparse
from collections import defaultdict, Counter, OrderedDict
from keras.preprocessing.sequence import pad_sequences
from sklearn.model_selection im... | [
"bflashcp3f@gmail.com"
] | bflashcp3f@gmail.com |
2885cbbc471c1e76a88a5bcff98bb1cffcdb2e35 | 25564424dd568cd0755110b9875cecc700c480bc | /MyTutor/Tutorial/migrations/0009_merge_20171121_1755.py | 66444575724de4797c117d833cb466008022264c | [] | no_license | wyh5625/Tutoria | f8908addbdba63e6ba89549fe5ddf918ce68c54d | 9d0d19e03860b9f49fb1bdc64cb936ca8f5c734a | refs/heads/master | 2021-08-19T12:27:27.326509 | 2017-11-26T07:51:56 | 2017-11-26T07:51:56 | 107,742,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-21 09:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Tutorial', '0008_auto_20171121_1504'),
('Tutorial', '0007_tutorialsession_price'),
]
... | [
"wyh562527789@gmail.com"
] | wyh562527789@gmail.com |
c08ba960a32c6f92ef5c4adac83005a866608f3c | 532905538460b1e8ea6d456a7d12321bba503ea0 | /lib/BlobDetector.py | 6027fef26f4a2868c4e3c498eb5afab488e235b2 | [] | no_license | HANprojectsENG/MicroPlateImager | 8b45d7bfaeffbaa5baaae11a4597e1002c0afb1a | efa133d34ec7b4734d1f118d586daaa5155b5d01 | refs/heads/master | 2020-12-28T04:23:39.142057 | 2020-05-26T15:46:45 | 2020-05-26T15:46:45 | 238,180,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,740 | py | """@package docstring
Detect blobs in the image
TODO:
how to pass roi's and imageQuality? via getter or (result) signal?
Test and improve local blob snr
"""
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np
from PySide2.QtCore import *
import cv2
import inspect
import traceback
from lib.manipulator import... | [
"gertvanlagen99@hotmail.com"
] | gertvanlagen99@hotmail.com |
d757c9a19d8d3adf5642e99b229eba903b9d8a89 | b49ece85d473947bb6f47c6120538bc8374934d5 | /myfirstprogects/views.py | fa75ade896e1d171d8ea4f9cab9a13150f35efa0 | [] | no_license | Ish2504/myfirstproject-root | 138f868c745d8a129e121227333edab626ecc38e | 69861d70f566cec5bec3de1b65340cb4ea4440d2 | refs/heads/main | 2023-06-23T17:24:09.949504 | 2021-07-24T19:48:11 | 2021-07-24T19:48:11 | 389,180,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.http import HttpResponse
from django.shortcuts import render
def about(request):
return HttpResponse('This is about page')
def home(request):
return render(request, 'home.html', {'greeting':'Hello!'}) | [
"comp-g@yandex.ru"
] | comp-g@yandex.ru |
545228fdf04416c3f4249be97d0719a04c08e210 | 131fbf5d17e595519b0e2b5078932d4861b4a4f1 | /keywordfinder/forms.py | 90d9b0a8a86efb532784f5ee9692b69c0049218f | [] | no_license | RahulPGS/highbreedtask | b560ff32cb8a7cb84f0e2f944cfe2bfdf9420765 | c02f5f19e94c8555aa56f7c06fb814b415257330 | refs/heads/master | 2023-05-09T23:04:05.426819 | 2021-06-07T07:31:42 | 2021-06-07T07:31:42 | 374,317,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from .models import URLKeywords
from django import forms
class URLKeywordform(forms.ModelForm):
class Meta:
model = URLKeywords
fields = ['url']
| [
"S160142@rguktsklm.ac.in"
] | S160142@rguktsklm.ac.in |
73c63e80f0b6d6cd0dc924cbf442c0ffd0fb0ab9 | 45f9013735913414b95f35a4081c37998b6a8de9 | /samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py | 855e913d944cc627ee80bdec52f288b2991ea5fd | [
"Apache-2.0"
] | permissive | dukeraphaelng/openapi-generator | 58585af051e939c0e9f3b5f19c2704439c70bc4d | f5c49609d2e5c4c2bdf53aeef71347c6a1b3d29c | refs/heads/master | 2023-02-22T09:56:56.951394 | 2021-01-19T05:16:20 | 2021-01-19T05:16:20 | 330,874,250 | 1 | 0 | Apache-2.0 | 2021-01-19T06:10:00 | 2021-01-19T05:30:21 | null | UTF-8 | Python | false | false | 9,750 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import re # noq... | [
"noreply@github.com"
] | dukeraphaelng.noreply@github.com |
c6dd5a39cb39904882c39318303ba5ec4e8e101e | 0139bdde50d922893e718221a69e1ca4cb89757d | /SendEmail_py/test.py | 728d1ae61f4134e81acd61f8d0256de6e361d130 | [] | no_license | nuaays/Miscellaneous_Scripts | 79adc5d4a639f1c95d5206447593f89a813d2e06 | 803a3b30e8848bbcbce58eb12f9b25a12060a437 | refs/heads/master | 2021-01-10T05:46:24.227613 | 2017-08-04T02:30:18 | 2017-08-04T02:30:18 | 48,648,489 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #coding:utf-8
import SendEmail
SendEmail.send_mail("nuaays@qq.com", ["nuaays@gmail.com"], "Email标题", "This is the Mail Body")
| [
"nuaays@gmail.com"
] | nuaays@gmail.com |
0b6385d8c07a79f3c00f429fc0b39f0bc787e6b7 | bdf370c0bc4e93a156087b7f86bb46a47120a435 | /src/shifa/signup/signup.py | 9e054ee0ddff56f79325e361b3768b5bded9a532 | [] | no_license | dethaa/Clinican | ae30d441058bb0834d738a417c3bc885f4794e25 | 5c665761ed7deb84a137f5325afdeb892b99c753 | refs/heads/master | 2023-06-17T02:58:48.484066 | 2021-07-08T05:17:59 | 2021-07-08T05:17:59 | 384,008,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.core.window import Window
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen, SlideTransition, NoTransition
import mysql.connector
import hashlib
Builder.load_file('shifa/signup/signup.kv')
mydb = mysql.con... | [
"sharonmarbun12@gmail.com"
] | sharonmarbun12@gmail.com |
0feafb3f894fca267b28bebdfaa75a2bfe6558cf | 529189166b8b979f50c41695db4ae094d28998fd | /src/main/utils/comparable.py | ab98ea27a329f2f2d87ff904e6f2f41ed101b394 | [] | no_license | suzuki-kei/python-myapp | e4bbc859af7cc6d23ef67bb4b68fc5c9ddb5ecad | f99e43506c52061323f86d8deabbd2689d5edc19 | refs/heads/main | 2023-08-31T03:27:31.103690 | 2021-11-13T12:13:42 | 2021-11-13T12:13:42 | 137,279,852 | 0 | 0 | null | 2023-09-10T02:25:23 | 2018-06-13T22:50:55 | Python | UTF-8 | Python | false | false | 1,887 | py |
class Comparable(type):
"""
大小比較する compare メソッドから比較演算子を自動生成するメタクラス.
"""
def __new__(self, name, bases, namespace, **kwargs):
Comparable.define_compare_methods(namespace)
return super(Comparable, self).__new__(self, name, bases, namespace, **kwargs)
@staticmethod
def defin... | [
"todokimasen@gmail.com"
] | todokimasen@gmail.com |
3f26efd33da5940d90d8e1ebf80e3f504640ec53 | 263e20c0d977a6ba56269ee266c7096b882000cd | /tests/test_product_model.py | f02ed1f79063fbefe82c0e4520506c0022158f3a | [] | no_license | marcossilvaxx/teste_backend | ddb268aca62ea5faac0301bfc5a005fde4fe9c85 | 7555ab1939c9886727bacabc66fda829a319d80d | refs/heads/master | 2022-11-22T04:15:12.096304 | 2020-07-25T04:39:41 | 2020-07-25T04:39:41 | 282,368,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | from unittest import TestCase
from app import app
from app.models.Product import Product
class TestProductModel(TestCase):
'''
Testing Product model
'''
def setUp(self):
app.testing = True
def test_create_product_basic(self):
try:
product = Produc... | [
"vinicius_marcosmartins@hotmail.com"
] | vinicius_marcosmartins@hotmail.com |
a562e14310acdd7d983727fb7f4adac44605916d | 287c7cd11f458c6e26fc7c1f64ecc310472e2809 | /bookmark/urls.py | f326bb3c5156bcdd93efd6b0514b41a078cfdb4c | [] | no_license | JUKOOK/django_study | b3bfe252791913d11a6395b5a467c4e5fe77b353 | 0767aceb85dc270f54611f4b123a8fd0f2913b17 | refs/heads/master | 2022-10-12T21:25:20.275753 | 2018-03-15T17:33:38 | 2018-03-15T17:33:38 | 120,982,904 | 0 | 1 | null | 2022-10-09T07:28:48 | 2018-02-10T04:09:08 | Python | UTF-8 | Python | false | false | 1,234 | py | # bookmark/urls
from django.conf.urls import url
from django.views.generic import ListView, DetailView
# from .views import BookmarkLV, BookmarkDV
from .models import Bookmark
from .views import * # 북마크 포스트 생성, 수정, 삭제를 사이트 내에서 하기위한 view 클래스들 import
urlpatterns = [
# Class-based view
# url(r'^list/', BookmarkL... | [
"wnrnrdl@gmail.com"
] | wnrnrdl@gmail.com |
1441470cd360c73a6547a2f2a220a704c85a8235 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/OpenGL/EGL/debug.py | dd519e6dbe0ccfa9fb226e2757a7a64fd815c2cc | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 7,538 | py | """Debug utilities for EGL operations"""
from OpenGL.EGL import *
import itertools
def eglErrorName(value):
"""Returns error constant if known, otherwise returns value"""
return KNOWN_ERRORS.get(value, value)
KNOWN_ERRORS = {
EGL_SUCCESS: EGL_SUCCESS,
EGL_NOT_INITIALIZED: EGL_NOT_INITIALIZED,
EG... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
5ae6e7a503085d85bd504f8a21c42c68e270e4c6 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /testlolakfmalwe/4dtest.py | d5c3e5b1245b28c2a86b3ec545320774a92f267f | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | import numpy as np
def pmul(rarr, p):
temp = p.copy()
for i in rarr:
temp = np.matmul(i, temp)
return temp
point = [3, 5, 7, 1]
u = [-5, -1, -3, -5]
v = [2, 4, 6, 8]
m = v[1] * u[0] - u[1] * v[0]
n = - v[1] * u[2] + u[1] * v[2]
print(m, n)
cp1 = n/np.sqrt(m**2 + n**2)
sp1 = -m/np.sqrt(m**2 + ... | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
45247a50d77675b36835255f5e2fc022163f6969 | 18b4522a48830a251853189659099a4d7a03ce16 | /task1.py | 347b05cfd3698d309b0585c5240fd0e76ad3871a | [] | no_license | amet-vikram13/Machine-Learning-Project | 61b4edc9520ef190ca7fc5cd50c88cc7ee4512af | c232f7995f873291b68fd2bf2891d95ebe5dbf4c | refs/heads/master | 2022-04-20T01:48:02.861542 | 2020-04-22T20:52:11 | 2020-04-22T20:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | import math
import gym
from gym import spaces, logger
from gym.utils import seeding
import numpy as np
class CartPoleEnv(gym.Env):
metadata = {
'render.modes': ['human', 'rgb_array'],
'video.frames_per_second' : 50
}
def __init__(self,case=1):
self.__version__ = "0.2.0"
print("CartPoleEnv - Version {}, N... | [
"amet97vikram@gmail.com"
] | amet97vikram@gmail.com |
98f4f3692153eadf94883f4f1231b5b43c968d97 | 18bc0c799f18de93d2ad982113e44e97eb266fdd | /RSAD/com/vo/AreaVO.py | a22efd90f6f9a8df33e6e54dbb01f3027732e3ca | [] | no_license | Mysterious-Harsh/RSAD | a3dd0754eb279847cb6646bf9b5625ae6ec2d183 | ada9017318ce7340beb79c44a4b7bfe22c2af2f2 | refs/heads/main | 2023-05-12T04:06:30.219484 | 2021-05-23T16:26:24 | 2021-05-23T16:26:24 | 369,973,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from RSAD import db
class AreaVO(db.Model):
__tablename__ = 'areamaster'
areaId = db.Column('areaId', db.Integer, primary_key=True, autoincrement=True)
areaName = db.Column('areaName', db.String(100))
areaPincode = db.Column('areaPincode', db.String(100))
def as_dict(self):
return {
... | [
"harssh.s.patel@gmail.com"
] | harssh.s.patel@gmail.com |
1f8c8b2f3254374969079c53913a5c4411edde82 | ddcbaa2262fb5e631caec4d6b81e355b6ba8a49c | /splinter-demo.py | 283858dfceede45c3e662c70eb0b348b06a60be5 | [] | no_license | intergrate-dev/python-demo | 97802949311679afa6786dac483a3f556fecf7af | b6ce6a775d9644cd58aa975a36323550d472db68 | refs/heads/master | 2020-07-03T14:27:48.962506 | 2019-08-12T13:31:33 | 2019-08-12T13:31:33 | 201,935,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import time
import ChromeDriver as ChromeDriver
from splinter import Browser
def splinter(url):
browser = Browser()
#login 126 email websize
browser.visit(url)
#wait web element loading
time.sleep(5)
#fill in account and password
browser.find_by_id('idInput').fill('xxxxxx')
... | [
"2491042435@qq.com"
] | 2491042435@qq.com |
4b7d8aafab6795c6e32d5d999e7d59360cd86f79 | 6472c4553c49a8c05103355ff53b1cbb7f025e8f | /pava/implementation/natives/java/nio/ByteOrder.py | 0705f5375318079e3ee9dfafe50da86c3310f2b5 | [
"MIT"
] | permissive | laffra/pava | 0b012e27c207a3e0f3ca772667b0c32168fe3123 | 54d10cf7f8def2f96e254c0356623d08f221536f | refs/heads/master | 2021-01-23T04:23:22.887146 | 2020-12-21T23:14:09 | 2020-12-21T23:14:09 | 86,191,143 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | def add_native_methods(clazz):
def nativeOrder____():
raise NotImplementedError()
clazz.nativeOrder____ = staticmethod(nativeOrder____)
| [
"iV29VQzQVT11"
] | iV29VQzQVT11 |
28c77d329eb3e74d291468dd566ac572fb45d428 | 337cc6c6d2bfd44ac18b0559ec791847eaf65bd1 | /attention.py | 3bbc17813d464fd71bb1e0f77355a504ebd94feb | [] | no_license | susiwen8/tf-keras-attention-layer | c45ffc84927bcc6226d4a04ce3c6c4fba7a02671 | 72038268b0b49dec858597948f58b2fd7fca79d7 | refs/heads/master | 2020-03-27T21:34:36.895294 | 2018-09-03T05:59:20 | 2018-09-03T05:59:20 | 147,158,070 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | import tensorflow as tf
from tensorflow.keras.layers import Layer
from tensorflow.keras import initializers
from tensorflow.keras import regularizers
from tensorflow.keras import constraints
class Attention(Layer):
"""Multi-headed attention layer."""
def __init__(self, hidden_size,
num_h... | [
"susiwen8@163.com"
] | susiwen8@163.com |
bf50493554e8a7fddbfd2cb49c08bc19942c3287 | 793b74314238724962ead84f05888d205bede08d | /index.py | 4cba2033c01a42c4fda25bbf64ee3ea08e319cc1 | [] | no_license | amish-goyal/LanguageID | 5955e5fdb980d9db541ea96bb2e21499532e071a | 8d0bac8e9a090e014f32bc76cdae3e9038188d9c | refs/heads/master | 2016-09-11T02:53:10.157149 | 2015-06-08T06:02:13 | 2015-06-08T06:02:13 | 37,046,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | """
This script creates text files from chunks of XML documents.
The text files are stored in a directory hierarchy as follows:
TARGETDIR
-language1
-textfile1
-textfile2
- ...
-language2
-textfile1
-textfile2
- ...
The script assumes the XML documents to be in the following hierarchy:
ROOTDIR
-langua... | [
"amish1804@gmail.com"
] | amish1804@gmail.com |
d1cb18ffc13f0eada00419376bcaa748ede307f6 | c91e1be16c43d7e461fd75bb268fa86aa231a997 | /06/assembler/assemble | 9b3daa5e2ffbb63f25c3555296fc690fdb9cf81d | [] | no_license | benwilhelm/nand2tetris | a89c52b89b72b4d0a9152ac62be0a6ecf279f66b | 291765a7cbb98053644f6226abcc76f4356d9a6d | refs/heads/master | 2021-09-03T03:16:18.776137 | 2018-01-05T04:33:30 | 2018-01-05T04:33:30 | 110,318,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | #!/usr/bin/env python
import sys
import parser
import code
import symboltable
lines = open(sys.argv[1], 'r')
# remove comments and whitespace
commands = [parser.extractCommand(line) for line in lines]
# filter out lines that are not commands
commands = [command for command in commands if command != None]
# build s... | [
"ben@doublebeamdesign.com"
] | ben@doublebeamdesign.com | |
d23a710daa0970e79663b65be0009ab46dc7b607 | 93a9c36e85bd753608516efe581edf96bbdc3580 | /user/migrations/0002_auto_20190115_1838.py | aaec583aff5cb88eaad4c7d00cfc0d67e5237dca | [] | no_license | zhouf1234/django_obj | bef6a13fc3d183070725fcb937da7a0c4a688e1c | bb10edc03dfdbe692b6293ffc3e1d33a374604cf | refs/heads/master | 2020-05-05T03:05:24.838804 | 2019-04-05T10:18:27 | 2019-04-05T10:18:27 | 179,660,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # Generated by Django 2.1.3 on 2019-01-15 18:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='users',
old_name='nikename',
new_na... | [
"="
] | = |
ac97bd0d029519758be787a33fc1fa1192491180 | cd99b28dd25b894e4a9d13e06ac7e8c077760b45 | /server/parameter.py | 89dee922b59a2f24d0cb64b8232e23814b384798 | [] | no_license | nlfox/hp | 3288d4f9f2db86bc91eb0418721b56ca870d9b30 | 65802502452e00ebf71f9fd78aa7dcefbeca548b | refs/heads/master | 2021-08-26T08:36:03.442921 | 2017-11-22T15:17:13 | 2017-11-22T15:17:13 | 107,770,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import json
class Parameter(object):
def __init__(self, jsonData):
self.obj = json.loads(jsonData)
self.program = self.obj["name"]
self.obj = self.obj["data"]
def getParam(self):
param = self.program + " "
for i, v in self.obj.iteritems():
param += "-" + st... | [
"nlfox@msn.cn"
] | nlfox@msn.cn |
04639bfbcc22066b7701423101ce96385654d8df | 9c53d9a199e7a64ff3041b4da3683d5122c53aca | /build/first_pkg/catkin_generated/pkg.develspace.context.pc.py | e18218a80176b9fd8834151103b4c5323b7008a3 | [] | no_license | NoaOr/robotics-ex2 | bdd7cd0669158e3412e922921a0cf684785f23f2 | 1ca2d15d4b45e7db37f6c6b185b9e59fbf537928 | refs/heads/master | 2020-04-08T13:41:21.462335 | 2018-11-27T21:37:08 | 2018-11-27T21:37:08 | 159,402,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "first_pkg"
PROJECT_SPACE_DIR = "/home... | [
"noaor7@gmail.com"
] | noaor7@gmail.com |
6e76664daad277a2abc5ab8a61795d3ad133efaa | c039f37a0f215efa7388b52ad1707c06aad5fd7d | /5-lstmsig/multirun/queuing.py | 2e519983638181c2ffb6c8c6dd214a0476d483b0 | [] | no_license | vishalbelsare/phd-code | 41ac4bceb21a8f6f3da17a4e3340b618c04d3420 | f5aa3e18a30e9567bc0583ef89a274ef42795d2a | refs/heads/master | 2021-06-12T09:18:26.685488 | 2019-04-21T21:56:19 | 2019-04-21T21:56:19 | 163,163,793 | 0 | 0 | null | 2021-04-04T18:10:46 | 2018-12-26T09:46:53 | C++ | UTF-8 | Python | false | false | 1,983 | py | from azure.servicebus import ServiceBusService, Message, Queue
import itertools, tabulate
primaryKey="SOME_PRIMARY_KEY"
bus_service=ServiceBusService(
service_namespace="jezsbus",
shared_access_key_name="RootManageSharedAccessKey",
shared_access_key_value=primaryKey)
_name='taskqueue'
def queue_length(... | [
"bottler@users.noreply.github.com"
] | bottler@users.noreply.github.com |
5da9a6a2bba2798788ddb402cfd55e5f8751aefb | 0d559c6336703a35b23a586bf130fd2d2fab0f26 | /Game.py | 56088bb5120bd0eeddc675472ed4bc6a9de6d284 | [] | no_license | yentingw/public-goods-game | dfda9e8fa9700f718eb8500acd29556506dd4950 | 95ccfa8dc97fef66376bd735601e6271f2ebf373 | refs/heads/master | 2020-09-16T10:55:43.699110 | 2019-11-24T13:13:57 | 2019-11-24T13:13:57 | 223,748,201 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,493 | py | import argparse
import datetime
import logging
import logging.config
import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
import yaml
import csv
from JointQAgent import JointQAgent as jointA
from QAgent import QAgent as qA
from plots import Plotter
__game_config = {}
__logger = None
clas... | [
"tingwang1223@gmail.com"
] | tingwang1223@gmail.com |
47754719a7927be9ffcd7eb7237789b985e80405 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/tpu/datasets 2.py | e975daf9f4e1326f82e35a1c71ecdf1c30bd154b | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7884cb6a0cfa6e71f17a315d69eafbd78c0d930943f672ec88676d9ce3f90718
size 7899
| [
"business030301@gmail.com"
] | business030301@gmail.com |
b9d3c202609dd2fda40b9a9958ebbb400e37b431 | c097a8dc88f856c651fdaa23a088f42967f54b07 | /att_table/views.py | 8252162ada2ad2e5132298adf06cb6d20af2145f | [] | no_license | Yahyaabualhaj/django_react_integration_ex | 9ee644294d4f079fc3ba699836c0752e32dffdbd | d9e78fc3d92e683362cc7fbf687a0431cf6025bb | refs/heads/master | 2020-04-30T17:15:07.473089 | 2019-03-24T11:46:42 | 2019-03-24T11:46:42 | 176,973,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py |
from django.core import serializers
from django.http import HttpResponse
from django.shortcuts import render
from django.views.generic import (ListView)
from att_table.models import Vacation
class TablesList(ListView):
model = Vacation
context_object_name = 'lists'
# queryset = Vacation.objects.all()
... | [
"noreply@github.com"
] | Yahyaabualhaj.noreply@github.com |
05ab8ad13167a301e5a49c1f9cad91ff928a7012 | 5d557b9e823a3461e832e7113b559b6fa623fbfd | /main/Final/Modular/Object_detection_picamera.py | 03f85dbbd5194692b9b36d0bf8b2a8c648cbd510 | [] | no_license | vieri2006/SmartPlasticRecycler | fae8a6223daba6bdd01a5e9630a365e3b76f4e4b | 04af1252bc6f0d74d0535e70af8cdc248a4ac649 | refs/heads/master | 2022-11-08T19:17:16.958560 | 2020-06-27T10:19:22 | 2020-06-27T10:19:22 | 275,344,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,000 | py | ######## Picamera Object Detection Using Tensorflow Classifier #########
#
# Author: Evan Juras
# Date: 4/15/18
# Description:
# This program uses a TensorFlow classifier to perform object detection.
# It loads the classifier uses it to perform object detection on a Picamera feed.
# It draws boxes and scores around th... | [
"noreply@github.com"
] | vieri2006.noreply@github.com |
31ea606b8a5805025bd159185a00aba285323a07 | c3624cdd68bbefc419a4e67ed370a022d090e796 | /audio_common/sound_play/scripts/soundplay_node.py | 936938440a73a76564a9bf5da56c2ea73b8bd881 | [] | no_license | hubeihubei/Robot_waiter | 37df356975b5ec812e86b11a780eae5c45db0c9e | e805c0bebb2d5d360039f85cdf4ed94271aeaf8d | refs/heads/master | 2021-01-09T20:19:51.860246 | 2019-08-09T10:24:35 | 2019-08-09T10:24:35 | 63,237,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,687 | py | #!/usr/bin/env python
#***********************************************************
#* Software License Agreement (BSD License)
#*
#* Copyright (c) 2009, Willow Garage, Inc.
#* All rights reserved.
#*
#* Redistribution and use in source and binary forms, with or without
#* modification, are permitted provided that ... | [
"2752233840@qq.com"
] | 2752233840@qq.com |
044a6ce242357a8fa5278a930a9a768cde9209e7 | 9a68aafce22f8087bfad4e0449495d5287bc8ebc | /bigdata/hw3/hw3c.py | 3eff32401c9d242abe210784b1470938c652492a | [
"MIT"
] | permissive | vador/coursera-homework | 5f0904c9781526fa0765d3c17e1bea1f3cefd120 | e94ee76f910fe6a5b1602252fc1869575bd876fe | refs/heads/master | 2021-01-17T23:23:13.123216 | 2013-10-05T20:20:20 | 2013-10-05T20:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | # -*- coding: utf-8 -*-
import mincemeat
import glob
from stopwords import *
datasource = dict()
key = 0
for fname in glob.glob('hw3data/*'):
with open(fname) as f:
content = f.readlines()
for line in content:
datasource[key] = line
key = key + 1
def mapfn(k, v):
... | [
"vador@grabeuh.com"
] | vador@grabeuh.com |
585ca217e56ae4d3a6ae723a1d01f0076b99a9a3 | e861bd6ff0e2ebeb95e1c4feb6a8ba8df069c588 | /backend/board/admin.py | 7418f5bdeb9fdc7d3baf639f377bc09ffe583e7f | [
"MIT"
] | permissive | lgvaioli/kanbanlache | 6924c7b1e9d70d434a3f9accb26e36037ceddfa6 | 08e5473946eb67f61acbf799ebc8c555d31d5ec1 | refs/heads/master | 2023-02-19T21:06:47.865463 | 2021-01-16T16:13:57 | 2021-01-16T16:13:57 | 276,716,456 | 0 | 0 | MIT | 2021-01-16T16:13:59 | 2020-07-02T18:15:29 | JavaScript | UTF-8 | Python | false | false | 158 | py | from django.contrib import admin
from .models import Board, Section, Task
admin.site.register(Board)
admin.site.register(Section)
admin.site.register(Task)
| [
"laureano3400@gmail.com"
] | laureano3400@gmail.com |
7f4eb287098db534b7d8e7201b840a58822f9e26 | 95155d0722a0bf57b7d50e03bfe2e95552b8f152 | /meating_planer/settings.py | bca192dd626bef07013a5f2fa0c448144ad9476d | [] | no_license | amiruddinsaifi/django.github.io | 80aa5004271a7892f54ab3acaa7ec0222bf26008 | 1a36a243f5c821184ecbac3ebb29529f9e9e2d25 | refs/heads/master | 2022-04-24T01:13:52.459451 | 2020-04-26T03:48:06 | 2020-04-26T03:48:06 | 258,932,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | """
Django settings for meating_planer project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"amiruddinsaifi017@gmail.com"
] | amiruddinsaifi017@gmail.com |
86bc9833945f1dc98c5dfc6fc8b6ecd1c82ad884 | a9c7fb130854beb86568ad082ccb1a05ef0ef6a6 | /Advocate/migrations/0019_auto_20160904_1920.py | 49cfcf33fe5192c1bf5b2412736ae30cbfde3dc6 | [] | no_license | HNMN3/Advocate_Diary_New | deb85164ebebc1c1593434c89c96ea4f522bcb2b | a5338a344c64e4efb7668b2c70756d380e01cff1 | refs/heads/master | 2021-06-08T11:48:39.456657 | 2016-09-25T07:20:26 | 2016-09-25T07:20:26 | 69,147,386 | 0 | 1 | null | 2021-03-23T12:34:51 | 2016-09-25T06:19:40 | JavaScript | UTF-8 | Python | false | false | 851 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-04 13:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Advocate', '0018_auto_20160904_1917'),
]
operations = [
migrations.RemoveField(
... | [
"hnmn3.nitin@gmail.com"
] | hnmn3.nitin@gmail.com |
aaf8624e9438adbb1bb0ab3cf3146fa9f9a3ff19 | b657a5c8f2aec7f042bbb01918daaac0f6d66f61 | /Assignment3/P4_A3.py | 20fa3c4e00a2c675e5fd7ec6357ed17574d3601c | [] | no_license | Tushargohel/Assignment_py | de363a634c2ae551c23b6318d2b664e5d63405ba | 1ef9b4f454a025ee5b7aae462e0182de4059bdc7 | refs/heads/master | 2021-01-19T12:31:06.729673 | 2015-04-24T07:06:14 | 2015-04-24T07:06:14 | 32,247,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | list1 = [a for a in range(-10, 10)]
print(list1)
print("maximum num is :-", max(list1))
print("minimum num is :-", min(list1))
print("sum of list elements is :-", sum(list1))
| [
"tushargohel25@gmail.com"
] | tushargohel25@gmail.com |
a1883cd02094762301a57b90b0b4ccc9c937c274 | 7955cc1c3153982977774cf4ea035f9afc831d5d | /start_point/db/run_sql.py | 6e4934b64e2ccee1c6d3ce8e117e3f6e441ce2ff | [] | no_license | SinnottTM/codeclan_w4_d3_sql_RESTful_routes | 506a1102eb007d471fc522038678edd155cf2730 | b66d53f8f69bce5cb57c98005f49fa97fbcc397a | refs/heads/main | 2023-03-25T11:46:10.885485 | 2021-03-18T01:14:04 | 2021-03-18T01:14:04 | 348,899,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # the run_sql file establishes the connection with the database. It gives instructions for how to connect and what to do if there are issues regarding connection etc.
import psycopg2
import psycopg2.extras as ext
def run_sql(sql, values = None):
conn = None
results = []
try:
conn=psycopg2.co... | [
"tim.sinnott86@gmail.com"
] | tim.sinnott86@gmail.com |
a3b1f3ae9127584f887fe77bf1beecd4298e3577 | 8ae7adaa9402155278a7cea09435ab9c7fc96700 | /projet/the_eight_queens_puzzle.py | 035dc624893697eb54ec58877f7bfd9d489debfa | [] | no_license | FirelightFlagboy/OPC-python | cafc69d2b74d9c8187ad7fa51d599a99e7914460 | 0fb074ba5421870ebb36a2b6f5eb9107fd02f296 | refs/heads/master | 2020-03-19T04:27:34.905183 | 2018-06-02T15:48:29 | 2018-06-02T15:48:29 | 135,830,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | # -*-coding:utf-8 -*
import os
from array import array
nb_sol = 0
def ft_add_glob():
global nb_sol
nb_sol += 1
def ft_print_sol_fast(tab):
src = str()
for i in range(0,8):
src += str(tab[i] + 1) + " "
print(src)
def ft_print_sol_fancy(tab):
src = "._._._._._._._._.\n"
for line in range(0, 8):
src += "|"... | [
"firelight.flagboy@gmail.com"
] | firelight.flagboy@gmail.com |
09eed3dbf259eeefd3093603ca08efeaff52c8b8 | f3d8e1351e52526959e2d44d72fd716924f1751d | /problems/406_queue_reconstruction_by_height.py | 81b529c40406d2fbab1e058a00ed3324524932e3 | [] | no_license | xueyuanl/leetcode-py | c27a4faff5b9040d57cf864d3a11f1683d8182e3 | 03d3e34522c8c819388634ab4b63077da864a4e1 | refs/heads/master | 2021-07-14T23:40:32.913822 | 2021-07-14T13:43:19 | 2021-07-14T13:43:19 | 206,973,737 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | class Solution(object):
"""
best explanation: https://leetcode.com/problems/queue-reconstruction-by-height/discuss/167308/Python-solution
"""
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
people_sorted = sorted(... | [
"15186846+xueyuanl@users.noreply.github.com"
] | 15186846+xueyuanl@users.noreply.github.com |
ce8b754ec0abd08554af81fdd5d0f1b868c711bd | bb38f63620d00b9b9d21e6f52f8e541440f660c1 | /functions/artificial_generation/dvf_generation.py | 9fb8898679c1e9ea0d35306396f46d26b834302b | [
"Apache-2.0"
] | permissive | hsokooti/RegNet | 5f7ba712fb3997e3b9af73966f0c06f0f41797a3 | 28a8b6132677bb58e9fc811c0dd15d78913c7e86 | refs/heads/master | 2023-03-22T14:44:14.630764 | 2021-03-17T22:51:34 | 2021-03-17T22:51:34 | 116,586,770 | 211 | 63 | null | null | null | null | UTF-8 | Python | false | false | 30,843 | py | from . import utils as ag_utils
import copy
from joblib import Parallel, delayed
import logging
import multiprocessing
import numpy as np
import os
import SimpleITK as sitk
import scipy.ndimage as ndimage
import functions.image.image_processing as ip
import functions.setting.setting_utils as su
def zero(im_input_sitk... | [
"h.sokooti@gmail.com"
] | h.sokooti@gmail.com |
16020a9467be3e9c290b0cd196a1c48194e540c5 | 3450624ffe4e7aa187d3834ed6c5a503049d6e58 | /vcuhunt/env/Lib/site-packages/pytest_django/fixtures.py | b2cc82580af41d20e698b46a1c63cbb4d5a6c73c | [
"MIT"
] | permissive | wdrescher/vcu-scavenger-hunt | 018c53419de7a1fee95cabce89905119ae76d330 | 98dd642e2a8a648055bf726950741928d4ba2a96 | refs/heads/master | 2022-12-09T19:19:55.907388 | 2020-04-12T17:35:23 | 2020-04-12T17:35:23 | 236,537,824 | 0 | 0 | MIT | 2022-10-30T16:02:52 | 2020-01-27T16:36:16 | Python | UTF-8 | Python | false | false | 14,814 | py | """All pytest-django fixtures"""
from __future__ import with_statement
import os
import warnings
from contextlib import contextmanager
from functools import partial
import pytest
from . import live_server_helper
from .django_compat import is_django_unittest
from .lazy_django import skip_if_no_django
__all__ = [
... | [
"nguyenam8@vcu.edu"
] | nguyenam8@vcu.edu |
4370177278986c2bc431fa9871bc5e6dd9ab6f8f | 483661fe2de1a4a25c01a89498d6524c7a3a138a | /Algorithms/Others/Factorial.py | a7205dcc994ad8d8240971a7639b2a3e243e4305 | [] | no_license | Ada-Lungu/Playing-with-Python | c012c7a480030c1ffc33c73881c128b334b252cd | 12e81602ad05d43973e7fbb863f8ffa77daaf01f | refs/heads/master | 2016-08-03T03:16:29.027688 | 2014-09-12T13:41:52 | 2014-09-12T13:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py |
def factorial(n): # n! = n(n-1)! ; 0! = 1
if n == 0:
return 1
else:
factorial = n * factorial(n-1) # or return n * factorial(n-1)
return factorial
# this is a Recursive Function = calling a function inside itself
def fibonacci(n): # fibonacci(n) = fibonacci (n-1) + fibonacci (n-2)
... | [
"ada.lungu@gmail.com"
] | ada.lungu@gmail.com |
44044c891ec2b8e378f51acf7933a3a1bd3fe346 | fe7600d6ed61107f8fcec298527515415712fc0b | /docs/conf.py | ea673e3a14034c0268db2d9ef5d9cda9ef3ca78d | [
"BSD-3-Clause"
] | permissive | kevinjqiu/mockingjay | 67b98e4e4c6aa3c96378c11226d1fccbb01b1fea | b97ee8ab9476165916305591b319d1a2e6af0635 | refs/heads/master | 2023-01-14T18:15:40.855856 | 2015-05-29T03:10:56 | 2015-05-29T03:10:56 | 36,202,496 | 1 | 0 | BSD-3-Clause | 2022-12-26T19:44:15 | 2015-05-25T01:17:05 | Python | UTF-8 | Python | false | false | 8,425 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# mockingjay documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | [
"kevin@freshbooks.com"
] | kevin@freshbooks.com |
cc8c1afd7c28f0d943eaf2700c34e719dd9003ea | 85eff920f0f285abad84c2f6bcfd4f236f3976ab | /webservices/migrations/0099_engageboostadditionalglobalsettings.py | ff6fe266ae10d7c901a6d0d6e6ae3778ac320156 | [] | no_license | obxlifco/Web-Picking-App-GoGrocery | 8cf5f7924005a19764e5c4722a47bfd963965f2e | 6b084547bed2af43a67bada313d68e56f4228f96 | refs/heads/main | 2023-05-26T08:32:30.297317 | 2021-06-12T10:05:01 | 2021-06-12T10:05:01 | 315,206,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-05-31 13:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webservices', '0098_auto_20190530_1336'),
]
operations = [
migrations.Crea... | [
"mjamal@lifcoshop.net"
] | mjamal@lifcoshop.net |
14a993e142ab29bcd04556609ffce8bcb573b3bf | d3c4353cbca106ac3d5154a9b452d6bb90c0ae83 | /server/models/multimedia_emotions.py | c150e6784f4688291637583c1f28617f825c6d70 | [
"MIT"
] | permissive | CatalystOfNostalgia/hoot | fe64fc97522da2b7657ad0ba0477eaf50f94e942 | 952781ebf9cafc036c68d1358f1921b7c9a94ab7 | refs/heads/master | 2021-01-15T08:04:54.009776 | 2016-04-29T03:40:44 | 2016-04-29T03:40:44 | 49,789,954 | 2 | 0 | null | 2016-04-28T19:46:06 | 2016-01-16T20:36:03 | Python | UTF-8 | Python | false | false | 420 | py | from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy import Date
from sqlalchemy.dialects.mysql import DOUBLE
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class MultimediaEmotions(Base):
__tablename__ = 'multimedia_emotions'... | [
"anthonyrdario@gmail.com"
] | anthonyrdario@gmail.com |
1fd89802a93b674ca740f01993f8aa10797c78f9 | 32c4a3f8893a7fe9039ebfb2d98215e06203f8f2 | /src/tensor/op/granularity/finesse.py | 3b5dc2a03e16933ac02aa7819af67ab8091f81cb | [
"Apache-2.0"
] | permissive | jedhsu/tensor | d27c8951aa32208e3c5bbcef0d0f2bae56f8a670 | 3b2fe21029fa7c50b034190e77d79d1a94ea5e8f | refs/heads/main | 2023-07-06T11:35:36.307538 | 2021-08-07T20:11:19 | 2021-08-07T20:11:19 | 366,904,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | """
*Finesse*
"""
__all__ = ["Finesse"]
class Finesse(
TensorOperator,
):
pass
| [
"jed910@gmail.com"
] | jed910@gmail.com |
b1a356c2a2ca5d8c100de27922504b27df7ff7da | 8a1145b1d89eacb92e57be747043ae7a6209ade7 | /final.py | f24e0d3424bb5f5603352372bfebee3480c4a5c5 | [] | no_license | NavniGupta/ece650pythonexamples | 21ae326d71dc52fb90db9dadef3584f681e04b58 | aaac538eb8f319da639814b27820b8f244076d4a | refs/heads/master | 2020-03-29T12:52:15.834803 | 2018-10-26T19:38:27 | 2018-10-26T19:38:27 | 149,924,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,194 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 30 13:35:41 2018
@author: Kunal Taneja
"""
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 22 11:24:18 2018
e
@author: Kunal Taneja
"""
import sys
import re
import ast
from decimal import Decimal
class_list = dict()
def vertex_colle... | [
"noreply@github.com"
] | NavniGupta.noreply@github.com |
a57fd44c4e0572a4606a934c2b10d00002f17e65 | ae737dd1a93b31673e26341606ca767ec00f32bf | /list-propinsi/list-per-propinsi-jambi.py | 188016fe865a1d1490f5c306cf92ec007f02b1ed | [] | no_license | tandhy/pilpres2014 | ba14ad7cf13ecf154c59046d80a969bfddd734b5 | 8c7a12636470b46edd7167632affd1272721a1d1 | refs/heads/master | 2020-06-04T03:01:35.401826 | 2014-07-20T01:15:25 | 2014-07-20T01:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,496 | py | '''
Author : Tandhy Simanjuntak / July 15th, 2014
Purpose : To download all c1 form per province from pilpres2014.kpu.go.id
'''
# cURL operation
import pycurl
# handle buffer
from StringIO import StringIO
# encode given variable
from urllib import urlencode
# prettify output
import pprint
# handle directory operation... | [
"tandhy@bu.edu"
] | tandhy@bu.edu |
3e40648cf136b93535e2e1426d1b48ef2d2dee2a | 498e6fd1e00b126659741ed92df937f2d00aa10a | /3_accessing_an_image_pix.py | 03eb7858bbe5238c4bb7d1b38ed744cf5c362e18 | [] | no_license | zaneno/opencv_talk_public | 304092e4e6c798df172bebd4ba806976cd16d1c1 | 93ded0e7e5b1f1371d7291d209e3e4372e5d3507 | refs/heads/main | 2023-03-03T09:13:12.630342 | 2021-02-10T16:12:18 | 2021-02-10T16:12:18 | 337,778,028 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import numpy as np
import cv2
# Read the image
img = cv2.imread('pics/pictured_rocks.jpg')
print("type(img): ", type(img))
print("img.shape: ", img.shape)
# get i and j
i = int(input("i: "))
j = int(input("j: "))
# read the value at i,j
b, g, r = img[i,j]
# we could also do
b = img[i,j,0]
g = img[i,j,1]
r = img[i,j... | [
"you@example.com"
] | you@example.com |
557f77dd5d9757885339a60b4da132a5a7432c06 | 561b57b8dbad7b02898032a115825c37f3125062 | /tests/summarizer/test_text_media_matcher.py | f8e76c734b9e53c34902a7a58a5640b6ef2549b7 | [
"Apache-2.0"
] | permissive | DanisHack/stampify | c2c687dbb992b870c2d55669fdc3249f6991a2fb | 95f95ec98aa3f0b05d8ad39ce5dd3d89858b4488 | refs/heads/master | 2022-11-20T17:47:13.002219 | 2020-07-22T10:00:49 | 2020-07-22T10:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | from summarization.text_media_matching.text_media_matcher import \
TextMediaMatcher
from tests.summarizer.text_media_input_fetcher import fetch_text_media_input
# fetch test inputs
test_input_dict = fetch_text_media_input()
sentence_1 = test_input_dict["sentence_1"]
media_related_to_sentence_1 = test_input_dict["m... | [
"noreply@github.com"
] | DanisHack.noreply@github.com |
b115f3b835f732aa430fd5f7e80dc861d91c5357 | ec26178312157b019bad591b1a2d035a83189aed | /TestChild.py | 7ecc87a810c9e8103343a13429e7bc806c07fad3 | [] | no_license | James-Brooke95/Test_Repo | ee678b260ef362526ebc65edb7064a0498caa620 | 61df91e6fee2ef257e4badf52ce2bcb5ac65dea0 | refs/heads/master | 2022-12-17T20:05:55.695605 | 2020-09-10T16:54:36 | 2020-09-10T16:54:36 | 292,811,450 | 0 | 0 | null | 2020-09-04T10:16:47 | 2020-09-04T09:49:09 | Python | UTF-8 | Python | false | false | 66 | py | ## Adding a new file in ChildBranch
print("Inside Child Branch")
| [
"noreply@github.com"
] | James-Brooke95.noreply@github.com |
4fe7e9efc0dd51911bec6ad5266887f80d60ad41 | 45547a3feb1f08b785e15b62c8e8c4ca9dcda909 | /polls/migrations/0004_auto_20190131_1744.py | 8b638264ec44cbdef2ecdc5fa6dd762a4ab7c80c | [] | no_license | joelunmsm2003/smartback | d330d906141fd347fb283350e885e53a15cd0adc | f30d4d39fbe648dea7683fb42922bbd145758f19 | refs/heads/master | 2020-04-20T02:09:05.794530 | 2019-02-06T17:44:49 | 2019-02-06T17:44:49 | 168,563,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-01-31 17:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0003_auto_20190131_1720'),
]
operations = [
... | [
"you@example.com"
] | you@example.com |
f442c5078b4ec9dcc3e88498c0d9bed65d728069 | 9b92a946c139c83c4103a406dce26e4fb01fdf60 | /53_Maximum_Subarray.py | 54be525144dc1bb81f2e59a3fac65dbfa06c1940 | [] | no_license | nyuxz/CodePractice | 97ddddcaf0780e8cfc7af0c8a43e103d32eab0c0 | 019627d16073c09240a2535f95277f9283fcc15f | refs/heads/master | 2021-01-20T00:47:45.144956 | 2021-01-12T01:40:46 | 2021-01-12T01:40:46 | 89,191,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | #53. Maximum Subarray
class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
@Logit
Kadane's algorithm, O(n) complexity
state: lookup[i]
dp: lookup[i] = max(A[i], A[i] + lookup[i-1])
"""
currMax = nums[0]
Max = nu... | [
"xz1757@nyu.edu"
] | xz1757@nyu.edu |
3e8c28637cfd517e58a46fb1d395c4bf16b06ee7 | b1e958f90059cd97b8c1cb62abb34948fa867569 | /Practice-Exercises/Week 0a - Expressions/Hours to seconds template.py | f52b8668a9059d598e14a2e460a7d05e63d0cb38 | [] | no_license | deltaworld/python-programming-coursera | ff756f3522a79f9b2101607f8156adc8d256db10 | 740ef3b02c05323e8da691ccbaa17337deb32db7 | refs/heads/master | 2021-01-23T03:04:25.476645 | 2015-07-15T13:25:22 | 2015-07-15T13:25:22 | 39,136,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # http://www.codeskulptor.org/#exercises_expr_hours_to_seconds_template.py
# Compute the number of seconds in a given number of hours, minutes, and seconds.
###################################################
# Hours, minutes, and seconds to seconds conversion formula
# Student should enter statement on the next line.... | [
"itrainit@gmail.com"
] | itrainit@gmail.com |
ec719999c4de822f2d48a2779bb7d13b839294a9 | 8b0a55183c72f0cb816f2e35725b436caaf583be | /flaskblog/forms.py | 8e4a05cc0425805ce5fb4699476e11c90bddf4f4 | [] | no_license | OhDany/blog-flask | 79924f406494e744b18c5919b6d1509bac57b074 | a622fbbec085513944f314e2b3354073ab5adb76 | refs/heads/master | 2022-10-29T05:47:35.894119 | 2020-06-14T20:26:16 | 2020-06-14T20:26:16 | 269,820,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from flask_login import current_user
from wtforms import StringField, PasswordField, SubmitField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flaskblog.models impor... | [
"oh.dany.mx@gmail.com"
] | oh.dany.mx@gmail.com |
c396ffb51c0613102b6abeb9c30a599501808f45 | c896a69e98e737a19259565bf8bb10011001645f | /VolunteerManager/credentials.default.py | 7aa1037eac539826fcd858e3d6475c8f6d905079 | [] | no_license | Berailitz/VolunteerManager | 5dffe3bedb6eb66c74149db56dc8d046bdd2d582 | af2478aa2f1209f4fbe45d5fc345d6333908a2f8 | refs/heads/master | 2021-01-03T12:06:17.452864 | 2018-02-04T10:06:58 | 2018-02-04T10:06:58 | 240,076,282 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | """credentials of this app"""
#!/usr/env/python3
# -*- coding: UTF-8 -*-
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://username:password@localhost/database?charset=utf8'
SECRET_KEY = 'xxx'
SYNC_UAERNAME = 'username'
SYNC_ENCRYPTED_PASSWORD = "password"
UNIVERSAL_DEBUG_TOKEN = 'token' # IMPORTANT NOTE: FOR DEBUG ONLY
| [
"admin@ohhere.xyz"
] | admin@ohhere.xyz |
74da7b2b2eef0fc96ccad15dd90171c4b80cb928 | 16fcf705234385a7bf3b6f9402512e8fe99cb4a4 | /stock_trading/stock_trading/urls.py | 22fceeea86c2b6d368af92e1ff12448739fdb274 | [] | no_license | webclinic017/Stock-Trading-8 | 86a9bc9ca2f2879c131df4decbe6176337db3e93 | 8a27beddfd60d398566e8407f30610dbf88925d0 | refs/heads/master | 2023-08-31T16:18:45.934001 | 2021-09-28T22:37:40 | 2021-09-28T22:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """stock_trading URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"67853959+XAbirHasan@users.noreply.github.com"
] | 67853959+XAbirHasan@users.noreply.github.com |
abcc156969f2f6ec3e715a99b3824791acfdc7fb | b28d13b2e785398f1a8074e0034080539009c837 | /django-rest-generic/snippets/serializers.py | 55761014b6cfca90d7a3b16d7dcfbfa1290f9a78 | [] | no_license | sdugaro/django | c58f1c290a1cadf90d723083c1bceefbbac99073 | 1704f1796cb3f25cac260c6120becd70e9f1c33f | refs/heads/main | 2023-02-06T22:06:41.872202 | 2020-12-27T09:04:12 | 2020-12-27T09:04:12 | 311,162,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from rest_framework import serializers
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
# Subclassing a Base REST_FRAMEWORK Serializer
class SnippetSerializerBasic(serializers.Serializer):
# define which fields are serializable
id = serializers.IntegerField(read_only=True)
title = ser... | [
"sdugaro@yahoo.com"
] | sdugaro@yahoo.com |
be7482a998f69bafdeb63adb3cc2376c3382c26f | 261eba086816dbb3db4836c9b1e5869ccf0f8bae | /python代码规范demo讲解/2.8生成器/demo_08_old.py | 38d6db4d11804451d32495eb59a6a0f597d02815 | [] | no_license | budaLi/jianzi | e316bdfb25587d14d38f1bea98772bce5ac69198 | bca098de0f06ae1c78afc3203dfb0eea6a412dee | refs/heads/master | 2023-05-02T19:33:25.752799 | 2021-05-25T08:03:24 | 2021-05-25T08:03:24 | 271,513,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | """
生成器和迭代器
"""
# @Time : 2020/10/27 10:42
# @Author : Libuda
# @FileName: demo_08_old.py
# @Software: PyCharm
def odds(n):
ret = []
for i in range(1, n + 1):
if i % 2 == 1:
ret.append(i)
return ret
for i in odds(1000):
print(i)
| [
"1364826576@qq.com"
] | 1364826576@qq.com |
a39c817bbea407b51abff77e28f6f2a39c944bd7 | 0f83e01412eede77ebc1933630d95720f4cf9527 | /SimpleClient/CollectWireless.py | 82eb5dcbb458adf343c3906bcadb4135cb35c520 | [] | no_license | onthejeep/Bluetooth | 73e5df80612fc70ea55dbf7ae6ac7a95926cc36e | 2889ca29284067e77237512f7263bf3c98bf5c8e | refs/heads/master | 2021-11-28T10:39:40.442105 | 2021-11-24T03:15:29 | 2021-11-24T03:15:29 | 18,699,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | '''
Created on Apr 1, 2014
@author: admshuyang
'''
from uuid import getnode as get_mac;
mac = get_mac();
print mac; | [
"onthejeep@gmail.com"
] | onthejeep@gmail.com |
d882f260c06396681b45c7a6a624dad9f6a6c4bd | c42565ca8af1b854a99a7c531a8dbe84c617ba25 | /docs/unglue_variables.py | 40e9410c8a4aaa7548d27b9313f4c80078d21a9d | [
"MIT"
] | permissive | neurodata/bilateral-connectome | e4823efd7aee21f70e436bc32cfd2089a44f0246 | 2f56a81187c364fa461ea8d99c299b2a75e58f69 | refs/heads/main | 2023-06-09T16:15:05.356935 | 2023-06-02T19:29:57 | 2023-06-02T19:29:57 | 410,043,679 | 5 | 2 | MIT | 2022-03-16T20:22:26 | 2021-09-24T17:11:28 | Python | UTF-8 | Python | false | false | 1,646 | py | #%%
import ast
import json
from glob import glob
import nbformat as nbf
# Collect a list of all notebooks in the content folder
loc = "bilateral-connectome/docs/**/*.ipynb"
notebooks = glob(loc, recursive=True)
# HACK what is the globby way to do this?
notebooks = [n for n in notebooks if "_build" not in n]
data_ke... | [
"benjamindpedigo@gmail.com"
] | benjamindpedigo@gmail.com |
d296b86fe99d2467263e58b64824856279526989 | 7d196362b366ba0e562b28057f728b77a5689800 | /GetFeeds/migrations/0001_initial.py | 2585e56d6f9bdd66d9886235fd64cfd5402545cf | [] | no_license | balrammirani/NewsFeed | cfb67ef8a60dbe3677d359d41cdcfd36fb483c41 | db3aeb74e252d3d8e1b8535b30e7e7f534166310 | refs/heads/master | 2021-01-19T00:57:37.949978 | 2016-07-12T18:26:53 | 2016-07-12T18:26:53 | 63,002,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-10 06:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
... | [
"balram.mirani@gmail.com"
] | balram.mirani@gmail.com |
8b4fdfc9079d643803ddb8c60fc5bf41d041df6f | 06dca5ec0ac9cdcbc42171795c067300bebea24b | /project_python/resource/practive_11_Reading_And_Writing_File.py | 5c5c4b66f41d338a72e62fabc41dceda0d8b30b0 | [] | no_license | quangdt/plan_come_on_baby | 0a9dd76feceb1323c22c33586687accefb649392 | c26b0ea98b9649fc8d5c61865a2dfdc829324964 | refs/heads/master | 2021-01-18T13:54:19.176897 | 2015-09-22T01:40:33 | 2015-09-22T01:40:33 | 38,100,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from sys import argv
script, filename=argv
print "We're going to erase %r." %filename
print "If you don't want that, hit CTRL-C (^C)."
print "If you do want that, hit RETURN."
raw_input("?")
print "Opening the file..."
target=open(filename,'w')
print "Truncating the file. Goodbye!"
target.truncate()
print "Now I'm... | [
"quangyeuthuong@gmail.com"
] | quangyeuthuong@gmail.com |
397ba2e22bc6c8eff31f10741b937e33c96d2856 | 1155a0b487a7cbc3d5539432f5cb68cbf97355aa | /flaskproject/test.py | 9b1ad1e421095cf02a956a4ad5c17e88e66e9642 | [] | no_license | Hqj130359/Flask | 8f1392c016f0e9712485e4668cc501c3b59049f4 | a02051b318c484dd2c6d5c6d726bdf51e99bbb3a | refs/heads/master | 2020-08-06T21:25:44.571412 | 2019-10-07T15:37:40 | 2019-10-07T15:37:40 | 213,160,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,335 | py | # import datetime
# result=[] #接受所有的日期,需要一个嵌套列表,列表当中嵌套的是7元素列表
# #月份分类
# big_month=[1,3,5,7,8,10,12]
# small_month=[4,6,9,11]
#
# now=datetime.datetime.now()
# month=now.month
# first_date=datetime.datetime (now.year,now.month,1,0,0)
# #年月日 时 分
# # print(first_date.weekday()) #python的日期当中 星期的范围 0-6 0是周一 6 代表周日
# ... | [
"zhangsan@qq.com"
] | zhangsan@qq.com |
91240e23206342a0d3ec5cad451bd20ae4aa8cf3 | f42ea0c6a477b741e8e749f9e1ba8922931659d2 | /study_6_7.py | 7cef9f442c6661350975f9d1e6d4c48083546247 | [] | no_license | 7dongyuxiaotang/python_code | 4dca469770d4416def97ebc69f233db7df501d07 | 2cef015481926a8e480ce54840c2d222bb17bf3e | refs/heads/master | 2023-07-06T20:33:38.228196 | 2021-08-12T09:33:27 | 2021-08-12T09:33:27 | 371,591,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # 1、什么是文件
# 文件是操作系统提供给用户/应用程序操作硬盘的一种虚拟的概念/接口
# 用户/应用程序(open())
# 操作系统(文件)
# 计算机硬件(硬盘)
# 2、为何要用文件
# 用户/应用程序可以通过文件将数据永久保存在硬盘中,即操作文件就是操作硬盘
# 3、如何用文件:open()
# (1)、控制文本读写内容的模式
# t和b 不能单独使用,必须和r/w/a连用
# f=open(r'D:\text.txt',mode='rt',encoding='utf-8')
# res=f.read()
# print(res) | [
"614028708@qq.com"
] | 614028708@qq.com |
8f6cddfbfcd4dff1c8b96b66402ec35eda611b4c | f09978f2a0850278255bd198222cd3990cb0c687 | /gear/migrations/0002_auto_20190525_1142.py | 366fa9819bb1eb88a25f23d44ef896e4040d58dd | [] | no_license | szpone/climbing-gear | 0e4e53b99a0b550c0e172af21c2c9e08e2c3f1ba | 78ab13b97b4b66464859b95ba6e5ed8587d5e60c | refs/heads/master | 2022-12-12T11:08:57.277056 | 2019-06-05T16:06:02 | 2019-06-05T16:06:02 | 185,016,538 | 1 | 0 | null | 2022-11-22T03:49:28 | 2019-05-05T10:30:11 | Python | UTF-8 | Python | false | false | 324 | py | # Generated by Django 2.2.1 on 2019-05-25 11:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gear', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='GearType',
new_name='GearCategory',
),
... | [
"nikola.adamus@gmail.com"
] | nikola.adamus@gmail.com |
b1806d05824ad4586ebad22b991734232c01e535 | 7cafba9d90ad17feebb9bf066fe33f0bb50bdc1f | /code/Memoria/Utility.py | 26d1941359bebd84960f0afa7b0c35343e2157e6 | [] | no_license | StephanGuingor/Memory-GUI-Client-Server | 2795ff555cc85d2ec37b6f0c099505b938641eaf | 3dd9f15fca25b41f20c94e7f1ece17b48f37a3fa | refs/heads/master | 2022-04-23T06:21:43.031591 | 2020-04-28T21:24:35 | 2020-04-28T21:24:35 | 259,752,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from os.path import dirname, abspath, join
import pygame
main_dir = dirname(abspath(__file__)) # Program's directory
def load_image(file, transparent):
"""loads an image, prepares it for play"""
file = join(main_dir, 'Data', file)
try:
surface = pygame.image.load(file)
except pygame.error:
... | [
"stephan.guingor04@gmail.com"
] | stephan.guingor04@gmail.com |
754c20f53dcf01348a945035ab83fc23b0d6413f | 7d703048a5393a0fc65c319bbe95df3795013260 | /app/models/tasks_categories_model.py | 9a92db5e09a4848d39e92b500f0a25792131d0b8 | [] | no_license | nicole-malaquias/eisenhower | 0e21e381f6d46feef33ec426d04607aadecc06be | be5a5212741de9dda44b7bc15c5bd28430f50f50 | refs/heads/master | 2023-08-16T03:42:40.958219 | 2021-10-08T18:55:09 | 2021-10-08T18:55:09 | 417,294,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from app.configs.database import db
from dataclasses import dataclass
from sqlalchemy.orm import backref, relationship, validates
@dataclass
class TaskCategoriesModel(db.Model):
id : int
__tablename__ = 'tasks_categories'
id = db.Column(db.Integer, primary_key=True)
task_id = db.C... | [
"nicolemalaquias91@gmail.com"
] | nicolemalaquias91@gmail.com |
8420713bfe5ac7d87bf6f172a8e8198c043dee6c | ef0c31b1f2802e84a4f97d5417709f384fc2288d | /test_ui_single_q.py | 9260eaa4f714426935246e7f0c04128d8eee4c75 | [] | no_license | thydmle/pycontin | e35c2fce4449e971496084d46a8f3964b5c3cdbe | 6e8a4bc32d787aba12e476ae18fc425ab4e2b130 | refs/heads/master | 2020-06-19T08:25:18.669788 | 2014-11-18T00:19:48 | 2014-11-18T00:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,302 | py | # Copyright 2014, Jerome Fung
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the ... | [
"fung@physics.harvard.edu"
] | fung@physics.harvard.edu |
5e0dd9f13ea0378495ff20008d37fa50ec597dea | 91f39fc8b5df9ccde912d91506357739374d8831 | /pokemonbot/PokemonGo/pokemongo_bot/cell_workers/initial_transfer_worker.py | a4875842ceb75668d7c0beff619b978ae537a018 | [] | no_license | baloon11/PokemonGo-bot_Django_wrapper | 88b97488b4d77fe03d8a0acab980995dd3cdc78b | 2fb9b8e50d3130efba3acd442bbc7c9b05907d98 | refs/heads/master | 2021-01-17T19:00:40.948725 | 2016-08-02T08:12:04 | 2016-08-02T08:12:04 | 64,734,348 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import json
# from pokemongo_bot.human_behaviour import sleep
# from pokemongo_bot import logger
from .. import logger
from ..human_behaviour import sleep
class InitialTransferWorker(object):
def __init__(self, bot):
self.config = bot.config
self.pokemon_list = bot.pokemon_list
self.api =... | [
"olfb_c@ukr.net"
] | olfb_c@ukr.net |
5d6cd21329a2ad018802f7b44173e6758ee4ac1e | 4bc696d97f9fec7e5ce136593556007a8b889d5f | /server/apps/reportAdmin/models.py | 7b4b5b4e7c7e4c8ce9965c93308c74c3c434b22f | [] | no_license | davidhorst/FirstDjangular | 37224a72ebd1e487b4b07755b06432a99f572eaf | 5d18577f8d52e7e276c2c850d33f929de8e77ee6 | refs/heads/master | 2021-06-12T09:34:21.103774 | 2016-12-13T14:53:24 | 2016-12-13T14:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from __future__ import unicode_literals
from django.db import models
class Report(models.Model):
name = models.CharField(max_length=15)
interval = models.PositiveIntegerField()
| [
"="
] | = |
c83d59471151b154da89111e7a1d551d9c80b15d | beeb13e821788646e472fda3dad055a0b15da0f5 | /r3.py | c497c3d5f5b5e0929c8cd43be27cb76577f32487 | [] | no_license | alahesia/smart-avto | 0f59c2496e3b926052052c150bd392f8dd7af2e7 | 7528d101c7639685962306cc65c8d10f4cf4ac41 | refs/heads/master | 2021-01-25T06:18:36.152488 | 2017-06-15T18:07:11 | 2017-06-15T18:07:11 | 93,554,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
red = 40
card_01 = '1662448133'
GPIO.setmode(GPIO.BOARD) # Это значит, что считаем пины по порядку с левого верхнего (3v3 - первый)
GPIO.setwarnings(False)
GPIO.setup(red, GPIO.OUT)
continue_reading = True
... | [
"alahesia@gmail.com"
] | alahesia@gmail.com |
c54a6f9f02fb20751b071ecad0b54c97bad903ac | 2cca7049fc4daa4f50b2b7a7d8059e3055e18048 | /tutorWithParkGrade.py | 0f60626eca91254fd7f3b73b7dd2b1f66b21f701 | [] | no_license | twil0516/studyPy | 6176c94e9f3be3599cf28cf34f1ba0553d8cd259 | faa1c3f7b6ebc2a4fd67470a68eb6dbdd459b3f2 | refs/heads/master | 2022-10-11T13:34:11.838558 | 2020-06-11T10:05:02 | 2020-06-11T10:05:02 | 271,509,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | score = int(input("점수를 입력하세요 : "))
if score <= 100 and score >= 0:
if score > 90 and score <= 100:
print("A학점 입니다.")
elif score > 80 and score <= 90:
print("B학점 입니다.")
elif score > 70 and score <= 80:
print("C학점 입니다.")
else:
print("F학점 입니다.")
else:
print("점수를 잘 못 입력하... | [
"twil0516@gmail.com"
] | twil0516@gmail.com |
ea55bed2be2d0e0b08a50d11258844aae744e0f7 | ad5d7c41370e9dae67ed21a8624ee042977cb51f | /leadmanager/settings.py | cd780f3e49313d93e23e45edf9713f59813a8d4a | [] | no_license | Sparrowan/fullstack-sparrowan-lead-manager-django-react | 122e1d3579ee20f77f070bd58f57a9e52f382c45 | 60ef0d348283a5313b77b1d9568cfe6254da6a55 | refs/heads/master | 2023-01-12T14:59:14.248440 | 2020-03-22T12:15:44 | 2020-03-22T12:15:44 | 249,174,169 | 0 | 0 | null | 2023-01-05T10:30:17 | 2020-03-22T12:01:57 | JavaScript | UTF-8 | Python | false | false | 3,409 | py | """
Django settings for leadmanager project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"alphiuswambua@gmail.com"
] | alphiuswambua@gmail.com |
727d79147a17669687219207cd4e55ee2d5313ec | 115b5356242176b8873ae7e43cd313e41cbd0ee6 | /tensorflow/openvino_ssd_image.py | 41ba377ec9bd23198c6d50fce6858ba69d032241 | [] | no_license | squeakus/bitsandbytes | b71ec737431bc46b7d93969a7b84bc4514fd365b | 218687d84db42c13bfd9296c476e54cf3d0b43d2 | refs/heads/master | 2023-08-26T19:37:15.190367 | 2023-07-18T21:41:58 | 2023-07-18T21:42:14 | 80,018,346 | 2 | 4 | null | 2022-06-22T04:08:35 | 2017-01-25T13:46:28 | C | UTF-8 | Python | false | false | 7,491 | py | #!/usr/bin/env python
"""
Copyright (c) 2018 Intel Corporation
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... | [
"jonathanbyrn@gmail.com"
] | jonathanbyrn@gmail.com |
efdb82400d1318cd2f944357d02d3a541be9f2a2 | 0e06a05a64d02f660d988db11bd004941c2058ac | /ex41.py | 36c1392569f76f56d9ace74b79a4d0e6b501c7c2 | [] | no_license | luisco96/LPTHW | 65fa53dee6f8799212fd4278dea6d884d9155d36 | ee2f8b4596c1aba7515152cbb7d0ee15a5ab3b86 | refs/heads/master | 2021-04-03T14:13:07.585079 | 2020-05-31T21:26:09 | 2020-05-31T21:26:09 | 248,364,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | import random
from urllib.request import urlopen
import sys
WORD_URL = "http://learncodethehardway.org/words.txt"
WORDS = []
PHRASES = {
"class %%%(%%%):" :
"Make a class named %%% that is-a %%%.",
"class %%%(object):\n\tdef __init__(self, ***)":
"class %%% has-a __init__ that takes self and ... | [
"luisco28@gmail.com"
] | luisco28@gmail.com |
0e5447d21a2d421a9baa4a13d2780114aadaec9b | ffb7e32769cf5928fcca5abf3a60f86e456bb79a | /biz/t8.py | 73ca8fc13e6c2220b392691e5faeaca2a4eca4c6 | [
"Apache-2.0"
] | permissive | relax-space/python-learning | 92f8173af26d05beae89e928b1df4aa907b5701b | 45457fc6c3a6583cb28bd14161439ec557c4ce2b | refs/heads/master | 2022-05-03T13:33:45.646838 | 2021-11-30T21:38:06 | 2022-03-19T15:34:22 | 250,942,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import pytest
# https: // www.cnblogs.com/luizyao/p/11848352.html
# indirect:argnames的子集或者一个布尔值;将指定参数的实参通过request.param重定向到和参数同名的fixture中,以此满足更复杂的场景;
# src/chapter-11/test_indirect.py
@pytest.fixture()
def max(request):
return request.param - 1
@pytest.fixture()
def min(request):
return request.param + 1
... | [
"xiaoxm_001@163.com"
] | xiaoxm_001@163.com |
7bf8db59d258149767c30babf4c58f93344b9449 | 8ec9b7ab4fbe4d3c9f13a4cfbc26f6ecc18fb475 | /Flask_Proj/flaskr/db.py | 9a9e4728497f5e4caac4c77b3fa4feb74e28eb89 | [] | no_license | mrsreddy451/Python | b337037f3338fe354b9a0e760d59fe6b642ba3a4 | d77f7c732b11913cbd539836c813dbd4798d9496 | refs/heads/master | 2022-06-25T20:24:58.172543 | 2020-05-07T14:47:41 | 2020-05-07T14:47:41 | 152,211,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import sqlite3
import click
from flask import current_app, g
from flask.cli import with_appcontext
def get_db():
if 'db' not in g:
g.db = sqlite3.connect(
current_app.config['DATABASE'],
detect_types=sqlite3.PARSE_DECLTYPES
)
g.db.row_factory = sqlite3... | [
"noreply@github.com"
] | mrsreddy451.noreply@github.com |
546cca90b6e1aaf74aefb8a18438d14b36b643c0 | ca1321ae08ae4645c16753504e6387c43a162c7d | /search-suggestions-system.py | cbc8112b745eec0c5f4ee535b116fe9ecceea5a9 | [] | no_license | atomicapple0/misc | 42b9a98875ad309c3fca577c08750eff2dadcd8c | 998ccb846759ef736a13c3513dc62e28e4049d43 | refs/heads/master | 2022-11-10T11:56:33.211139 | 2022-10-26T02:31:38 | 2022-10-26T02:31:38 | 252,246,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import bisect
class Solution:
def suggestedProducts(self, products, searchWord):
deq = products
deq.sort()
sol = []
idx = 0
for i in range(len(searchWord)):
soll = []
while idx < len(deq):
try:
if deq[idx][:i + 1] ... | [
"brianzhangaa@gmail.com"
] | brianzhangaa@gmail.com |
c9856aeddf6a7e307e2113099793921a5da75d36 | 07c5656f004b6a444e22ff7b4c3b6802d027f759 | /week_9/class_0420/API_5/common/http_request.py | a2e1884012d0be74fe084a99df396c6dcb6f8729 | [] | no_license | EuniceHu/python15_api_test | de2a0f0bec8057edb27c8d1f82a438da3e9c105c | 1313e56ddfa67a2490e703a1a5ef4a6967565849 | refs/heads/master | 2020-05-20T13:30:41.686327 | 2019-05-14T11:00:52 | 2019-05-14T11:00:52 | 185,599,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | # -*- coding:utf-8 _*-
"""
@author:mongo
@time: 2018/12/17
@email:3126972006@qq.com
@function:
"""
import requests
from API_5.common.config import config
class HTTPRequest:
"""
独立session,cookies需要自己传递
使用这类的request方法去完成不同的HTTP请求,并且返回响应结果
"""
def request(self, method, url, data=None, json=None,... | [
"hongdh1122@163.com"
] | hongdh1122@163.com |
5e4f6e129e5aa4b8851045b557a6a8f82e4450bd | 1dcc09e5f6676f9390e2be296c77e537b4e10f1d | /auth.py | 69b8cba64d4e76622615d076aa5a8cf957ca8a00 | [] | no_license | farahSalotaibi/casting-agency | 61c1075591be7dfe2e963e7eac6a9fe085d1b9a1 | eba2ed09aeedfe7fa9652bdcb8eed5a2a0c77028 | refs/heads/master | 2023-02-04T11:13:25.010522 | 2020-12-21T11:30:04 | 2020-12-21T11:30:04 | 323,140,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,614 | py | import json
from flask import request, _request_ctx_stack, abort
from functools import wraps
from jose import jwt
from urllib.request import urlopen
AUTH0_DOMAIN = 'farahalota.us.auth0.com'
ALGORITHMS = ['RS256']
API_AUDIENCE = 'casting'
# AuthError Exception
'''
AuthError Exception
A standardized way to communicate... | [
"farahalota@hotmail.com"
] | farahalota@hotmail.com |
705ee15d5c50c3aae068e458114c830421a440fc | efe70f921654fd669d8458d9de3d00ecdbcaad53 | /remote/protocols/irc/services.py | 395a0a243c15bf160a09bd460eeb7b73d1023eee | [] | no_license | xblaster/scrutator | 92c93590f74bd1f1ed71b13c216a6ad24212e84f | eff724d4488bbced528b01f9f82cbdeb5726795b | refs/heads/master | 2016-09-03T07:21:50.888776 | 2009-12-07T12:55:12 | 2009-12-07T12:55:12 | 67,173 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | '''
Created on 1 Dec 2009
@author: wax
'''
from remote.protocols.irc.model import IrcServer, IrcChannel
import ConfigParser, os
import MySQLdb
import MySQLdb.cursors
class IrcServices:
def __init__(self):
config = ConfigParser.ConfigParser()
#config.readfp(open('default.cfg'))
... | [
"xblaster@lo2k.net"
] | xblaster@lo2k.net |
2428c3e3708e0fc2e67361126f0113670c6f5630 | 4609d368e65a361346a02e5c47a5dc2cfe0364a5 | /project/content/apps.py | 24f4ccb82e3354f626f7ae665f197f247f9ced7b | [] | no_license | fahmihidayah/Simple-Django-CMS | 38e84a01aa573eba729b64cd17880c6ed94aabd0 | cc25cf6362ec9e60a2615e4f4cd4e1cece1a07e7 | refs/heads/master | 2023-02-28T13:34:40.138950 | 2021-02-11T08:08:35 | 2021-02-11T08:08:35 | 337,964,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class ContentConfig(AppConfig):
name = 'Content' | [
"f.hidayah@pixilapps.com"
] | f.hidayah@pixilapps.com |
f8e92541ae3277aa329b90bab739a4181e3439c1 | cf8729d340b7164653ce8a3a577a1ab5f806a9dc | /Casa/Casa_automatizada.py | 081cac1f629a690bcab15f81ad54a9bc19d67d4c | [] | no_license | aroldovargas/Simulador-Casa-Automatizada | fe3c52c7263e82b068a525ac719e13b0be26392d | ab8fac4d98a6bf2593c134a35d09e4200941a16a | refs/heads/master | 2020-05-30T10:02:06.929003 | 2019-05-24T18:56:17 | 2019-05-24T18:56:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,036 | py |
# -*- coding: utf-8 -*-
import sys
if sys.platform == 'linux2':
import subprocess
output = subprocess.Popen(
'xrandr | grep "\*" | cut -d" " -f4',
shell=True,
stdout=subprocess.PIPE).communicate()[0]
screenx = int(output.replace('\n', '').split('x')[0])
screeny = int(output.re... | [
"noreply@github.com"
] | aroldovargas.noreply@github.com |
4889678a70051b822eb24ffcd1a1a875749a16bd | d99b6f08e4641a5a1936181c63b94c667fb83a9c | /venv/lib/python2.7/site-packages/imblearn/under_sampling/tests/test_cluster_centroids.py | 81acf3ffadf17e0098016fd1f2a63f50313dc6a5 | [] | no_license | spanlab/spantoolbox | 6c4d48731e2994ce360ed6284eac032ddbff87bc | 45855443397f65d57d77a6296fb09f1df3cba31d | refs/heads/master | 2023-07-29T09:18:36.592056 | 2019-12-17T00:25:28 | 2019-12-17T00:25:28 | 120,956,860 | 2 | 1 | null | 2023-07-06T21:17:02 | 2018-02-09T21:20:00 | Python | UTF-8 | Python | false | false | 7,530 | py | """Test the module cluster centroids."""
from __future__ import print_function
from collections import Counter
import numpy as np
from numpy.testing import (assert_array_almost_equal, assert_array_equal,
assert_equal, assert_raises, assert_warns)
from sklearn.cluster import KMeans
from skle... | [
"spanlab@gmail.com"
] | spanlab@gmail.com |
89a85d61b9daab440ea1ac0abe4fb2d81e4cbb14 | 43db0aedb18f642fb7c9e80e163ce466d733363b | /src/optimisation/optimizers.py | 833970bbb9b95f665368feda4e73991e02ace19d | [] | no_license | Polymere/biorob-semesterproject | 933291a4adb2e62b3e600fabb307e0027c37537a | db464609e3fedbd6fe2ae4df0915c5d7bb6d3f16 | refs/heads/master | 2020-04-24T10:07:12.716983 | 2019-08-14T15:16:49 | 2019-08-14T15:16:49 | 171,882,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,163 | py | #!/usr/bin/env python
""" @package optimizers
Here is a brief description.
This is my detailed description
that is so long that
it spans several lines
"""
import sys
import yaml
import numpy as np
import pandas as pd
import os
import time
from copy import copy
import warnings
warnings.filterwarnings('ignore') # pandas... | [
"paul.prevel@epfl.ch"
] | paul.prevel@epfl.ch |
3b6f84dfa395734f5ee0c39ad591ec38ff6405a8 | 5763a3a0a7ee4e3458767ceb30a12f0e3e02d9ba | /blog/main/migrations/0017_auto_20210417_1517.py | db35fbeb9a7c88b8d3b244f347c56f8d11deeecb | [] | no_license | dnplkv/hw5_Polyakov | df9c77492103d7f83c0e9e6fbb8c00cfbe66e20e | 6db653f9def6868cbad24b97d6ec15ce23e6764a | refs/heads/main | 2023-06-14T10:04:57.764555 | 2021-07-19T17:15:31 | 2021-07-19T17:15:31 | 352,036,112 | 0 | 1 | null | 2021-07-19T17:15:31 | 2021-03-27T09:50:15 | JavaScript | UTF-8 | Python | false | false | 464 | py | # Generated by Django 3.1.7 on 2021-04-17 15:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0016_auto_20210417_1451'),
]
operations = [
migrations.AlterField(
model_name='books',
... | [
"dannypolyakov95@gmail.com"
] | dannypolyakov95@gmail.com |
a72250408c3ed899f1c3e78bd067bfb26db56d99 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ncLp4ZXvz4x4oEHYh_12.py | 569312e16f010b12fd6a44bdf5c65cb240b62bea | [] | 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 | 111 | py |
def sum_of_two(a, b, v):
for i in a:
for j in b:
if i+j == v:
return True
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
aff069f6593040c59948a74d78b4bc9e31ec60bb | f25763b3e3083c308b88b066b791121c3420dcc2 | /models/mnist/generator.py | 1676e125c24fcc3ae4e056de9a4468881dcac984 | [
"MIT"
] | permissive | ultraglorious/wgan | 515d85fc146d244787477a10fcf753ff6da15945 | d8673d95758b232b3dbf4c99e4d14aa32b4cc0ad | refs/heads/main | 2023-07-08T20:47:13.086014 | 2021-08-16T11:34:18 | 2021-08-16T11:34:18 | 394,618,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import tensorflow as tf
from layers import ConvolutionBlock as ConvBlock
def generator(latent_dim: int) -> tf.keras.Model:
"""Initializes WGAN generator"""
ls = 0.2 # leaky relu slope
initializer = tf.random_normal_initializer(0., 0.02)
inputs = tf.keras.layers.Input(shape=(latent_dim,), dtype=tf.d... | [
"e.grono@live.ca"
] | e.grono@live.ca |
bd9c4bccc07687e42b39122cb1fbe980f48099fe | 7fb3867bb6e605c58aeebdebc3ac6a18a11beec8 | /Python/assignment/pes-python-assignments-1x.git/51.py | db4d839aa7d6a29bac1a97ab8df09690fb45a530 | [] | no_license | gaya38/devpy | 93bf6057fc198582bfa96446dc356667f9f0091d | 9624d413222565199240a2f57a9b849563e83d49 | refs/heads/master | 2020-07-15T23:55:46.375979 | 2019-09-01T14:48:03 | 2019-09-01T14:48:03 | 205,675,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | x=raw_input("Enter the program driver as arg or big:")
if(x=='arg'):
a=raw_input("Enter a value:")
e=[]
g=0
for i in range(len(a)):
if (a[i]==" ")or(i==len(a)-1):
e.append(a[g:i+1])
g=i+1
else:
continue
for i in e:
print i
elif(x=='big'):
... | [
"gayathri.ande08@gmail.com"
] | gayathri.ande08@gmail.com |
2d53323c0ba81f90f8b5ae148e1a9c877eda45f7 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/users/mixins.py | 2ba17197bb580fc8979a19b0a3bda49302295b44 | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # coding=UTF8
from apps.data.mixins import ObjectSchemaProcessViewMixin
from apps.data.models import DataObject, Klass
class UserProfileViewMixin(ObjectSchemaProcessViewMixin):
model = DataObject
def initialize_request(self, request, *args, **kwargs):
request = super().initialize_request(request, *ar... | [
"rk@23doors.com"
] | rk@23doors.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.