blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edb0dd2db6e36653e6d52a2316956c6790eed846 | e3fe44de92acb664c65dfc53c4dc7450ea994c81 | /utils/fast_inverse.py | 1ede5e863c4570d8c6bc7af2a213ff1c3677bc66 | [] | no_license | chixma/Visual-Template-Free-Form-Parsing | a723022857b1a9adb641d1f9c9f39564ed65f67f | b05e80f5fbc5b1296ab1e4b968ae206b7e556e4b | refs/heads/master | 2020-07-22T13:27:39.873315 | 2019-09-06T20:42:32 | 2019-09-06T20:42:32 | 207,217,082 | 1 | 0 | null | 2019-09-09T03:33:43 | 2019-09-09T03:33:43 | null | UTF-8 | Python | false | false | 1,420 | py | import numpy as np
import torch
def adjoint(A):
"""compute inverse without division by det; ...xv3xc3 input, or array of matrices assumed"""
AI = np.empty_like(A)
for i in xrange(3):
AI[...,i,:] = np.cross(A[...,i-2,:], A[...,i-1,:])
return AI
def inverse_transpose(A):
"""
efficiently ... | [
"herobd@gmail.com"
] | herobd@gmail.com |
77026452cda18ad85c5e6d02b5d3099f9aa2fe12 | 067be5ec092bc7d54d1a7baa7c1400d5aa6df7fc | /Kim2/Ksamplefun.py | ac3924d3e47194466ea574a024a9f3ce7d8ec471 | [] | no_license | haru105/Masters-projects | 0d7506a21be4f04f0455001e5cb79545aea54667 | e1ab384809a4bd4a3de5759047d36d8cf715a171 | refs/heads/main | 2023-08-26T05:27:13.431747 | 2021-11-12T13:55:07 | 2021-11-12T13:55:07 | 402,170,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,268 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 20 22:55:44 2021
@author: amreethrajan
"""
import sys
import networkx as nx
import matplotlib.pyplot as plt
import random
import networkx.algorithms.graphical as funs
import copy
import binarySearch as bs
class KimG:
def __init__(self,n,de... | [
"noreply@github.com"
] | noreply@github.com |
548341b3609c2e37fb84bdeb89713f9e20cfe4e5 | 160213f69c7e8e7fe3286a18e5844a043f3316c0 | /sirenorder/wsgi.py | 261723f33581245f1e7bf1b53b5857064b50727c | [] | no_license | wecode-bootcamp-korea/siren-order-backend | beb355fa911075a1912e6600ecadfed15b79cf0b | 7d80994190a8cb3b5b97019f6e5a4e693b442f02 | refs/heads/develop | 2022-12-10T09:38:54.748469 | 2019-07-26T07:50:03 | 2019-07-26T07:50:03 | 196,929,298 | 0 | 4 | null | 2022-12-08T05:53:04 | 2019-07-15T05:22:47 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for sirenorder project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"fergith@naver.com"
] | fergith@naver.com |
40723c472ada5bfb1875a6690c1f32bc5eb18c60 | ee193c0df3494673769e107094402a28bfbeba74 | /remove_topics.py | 49749093c06a9e673d5cc0b266c106b56ab9ef08 | [] | no_license | always-akshat/summarization | a41ad675989712def846af32d49ec87a65fe826d | 25f65abfcd2301c4879e8f21e5f5d0e4973aa31c | refs/heads/master | 2020-04-14T09:25:03.713117 | 2014-10-28T05:50:40 | 2014-10-28T05:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | __author__ = 'akshat'
| [
"always.akshat@gmail.com"
] | always.akshat@gmail.com |
71c6916798618aaa9ad552378b8683d49506a7c7 | ac790944937b6e33f84372ce2d16bde55a84e3b9 | /doc_builder/markdown_extractor.py | 171481e2747cbeb70475be84151c354673826557 | [] | no_license | barriebarnes/markacross | 25bcfcddb762e2234d256532d39e043cd32b1c54 | ee5cf45fd5880ae160778a05be2a8982740b5df6 | refs/heads/master | 2020-12-25T14:49:13.892101 | 2016-07-12T08:18:15 | 2016-07-12T08:18:15 | 63,105,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,065 | py | import fileinput
import re
import pprint
class MarkdownExtractor(object):
""" M<<<<<<<<<<<<<<<<<<<<<<<<<
# Class: MarkdownExtractor
Extracts all Markdown from a given file
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>M """
def __init__(self, container):
self.container = container
def extract(self, fi... | [
"barrie.barnes@sainsburys.co.uk"
] | barrie.barnes@sainsburys.co.uk |
77b98aa829530524b65763daa60caaacde33ebbb | 6a0ae86bca2d2ece6c92efd5594c0e3b1777ead7 | /EDBRCommon/python/datasets/summer12_MWp_350_gg_cff.py | 990eb65ae0bde2bdcbdbdfc05e23b0bd86d0be75 | [] | no_license | wangmengmeng/ExoDiBosonResonances | c4b5d277f744e1b1986df9317ac60b46d202a29f | bf5d2e79f59ad25c7a11e7f97552e2bf6a283428 | refs/heads/master | 2016-09-06T14:54:53.245508 | 2014-06-05T15:02:37 | 2014-06-05T15:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,971 | py | import FWCore.ParameterSet.Config as cms
readFiles = cms.untracked.vstring()
source = cms.Source("PoolSource",
noEventSort = cms.untracked.bool(True),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
b083a4b112bddf7fa409807323a683b89426fb47 | 871bd3a9a1cea64b1c61d351dec3e2400a6bc411 | /pymetabolism/tests/test_singletonmixin.py | 135ad064e0a339b3ca95f8849c9613ad9f1cc74d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Midnighter/pymetabolism | 16aac5d2ff37b0b62e885439fddc732990e492d4 | 20773e6b3e722a7c353171211ceedb019b012951 | refs/heads/master | 2020-04-06T06:52:21.763077 | 2012-05-29T10:01:41 | 2012-05-29T10:01:41 | 1,536,961 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,550 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
===============
Singleton Tests
===============
:Authors:
Moritz Emanuel Beber
:Date:
2011-08-02
:Copyright:
Copyright(c) 2011 Jacobs University of Bremen. All rights reserved.
:File:
test_singletonmixin.py
"""
import os
import threading
import time... | [
"m.beber@jacobs-university.de"
] | m.beber@jacobs-university.de |
3fe25f6ea1a150f843cd43ceb8afa5891519991e | d5c5bd81e8328b544beed20cb308b7e9ba79cac1 | /manage.py | f91f5edab547685106f9e0e446d836792c299254 | [] | no_license | yazan-alshekha/django-crud | e8ea364bddf86c174d681e07ce4da22d1f4a182d | 28b8225fa2dbf2cb85254a1eb5e9ffc69e9c8437 | refs/heads/master | 2022-12-16T03:59:08.001231 | 2020-09-25T20:21:24 | 2020-09-25T20:21:24 | 297,794,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'telecommunications_project.settings')
try:
from django.core.management import execute_from_command_l... | [
"yazan.alshekha@outlook.com"
] | yazan.alshekha@outlook.com |
a1963fbee8f38d58fb1e69c02240634325f7240f | a2ffb742fb1396dd14a13aed7e86d05e1a819c1f | /products/migrations/0001_initial.py | 0f6ea958ad244bae07b02bb7d65c18e72380f629 | [] | no_license | Code-Institute-Submissions/mug_shots | ee46c86d02a1fb7eaf7dfdd84131d266ec28d90d | 00918862703253c32ef734c1e9f54d9bfc2c0d34 | refs/heads/master | 2023-01-06T22:44:09.153923 | 2020-10-30T23:34:08 | 2020-10-30T23:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | # Generated by Django 3.1.1 on 2020-09-22 18:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"amy.bru39@gmail.com"
] | amy.bru39@gmail.com |
5bf1c3fcd512c1e389e2f7280476b3433ecf2119 | c1b8ff60ed4d8c70e703f71b7c96a649a75c0cec | /ostPython1/multuple.py | c6e25d4906e5ab8d55c5aa5fce4761928a3d621c | [] | no_license | deepbsd/OST_Python | 836d4fae3d98661a60334f66af5ba3255a0cda5c | b32f83aa1b705a5ad384b73c618f04f7d2622753 | refs/heads/master | 2023-02-14T17:17:28.186060 | 2023-01-31T02:09:05 | 2023-01-31T02:09:05 | 49,534,454 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #!/usr/bin/env python3
#
#
# multiple.py
#
# Lesson 7: String Formatting
#
# by David S. Jackson
# 11/30/2014
#
# OST Python1: Beginning Python
# for Pat Barton, Instructor
#
"""
takes as data a tuple of two-element tuples, such as ((1,1), 2,2), (12,13),
(4,4), (99,98)). This and/o... | [
"deepbsd@yahoo.com"
] | deepbsd@yahoo.com |
1347ece238e08d92a8903165e9b040ea820981c3 | 9531e597cd3f865cc6b6f780498a18281c2413f8 | /user_notifications/views.py | 82f196088698131ef8e60ab25accfb76388764e8 | [] | no_license | dpitkevics/DevNet | 7133b80ce5d56b9c11aa4c500d530faed7cb13f4 | 98ebc3916346e6c2bda79711a3896f7c2a8e2ac8 | refs/heads/master | 2020-04-15T12:04:00.245848 | 2015-09-14T17:45:39 | 2015-09-14T17:45:39 | 41,320,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import json
import redis
from notifications import notify
from django.http import HttpResponse, JsonResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.db.models import Q
from django.db.models.signals import post_save
from django.dispatch import r... | [
"daniels.pitkevics@gmail.com"
] | daniels.pitkevics@gmail.com |
25665b81cb5da57ef38a4f8531be6763ea87272c | a7f68cc4500c85d591265d40599c3e12f07e94b9 | /day-15/part-1/lucas.py | a7b18833af904608dcfaff011f245116f15088c3 | [] | no_license | vidalmaxime/adventofcode-2020 | ff9b19e941e579eed0b590b356c0e161210268fe | 67ed20552f104067c5cd6664777de56ee293f4c1 | refs/heads/master | 2023-02-05T09:44:49.234298 | 2020-12-26T15:41:24 | 2020-12-26T15:41:24 | 316,728,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from tool.runners.python import SubmissionPy
class LucasSubmission(SubmissionPy):
def run(self, s):
# :param s: input in string format
data = [int(x) for x in s.split(',')]
numbers = dict()
numbers = {**numbers, **{data[i]: [i + 1] for i in range(len(data))}}
last = data[-... | [
"lucas.stoffl@tum.de"
] | lucas.stoffl@tum.de |
0cdc5d64c675c8d17b205f04ec8710c1c8b01ace | d8c3981c4be27031f8885e28e242632c5ae34dcb | /k.application.building.blocks/ConfigParser/ConfigParser_read_many.py | 59a79b0d621c6de0016644c2241b3984678b6dd5 | [] | no_license | capricorntb/Python.Standard.Library.By.Example | 94f932b7d0c39ff6c10d772e7a7ea0f26de0bcb2 | a64bda2f8fa25cbd96c657cfe180409c2c9ee58d | refs/heads/master | 2021-04-28T21:47:17.989555 | 2016-08-02T14:03:41 | 2016-08-02T14:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Reading a configuration file.
"""
from ConfigParser import SafeConfigParser
import glob
parser = SafeConfigParser()
candidates = ['does_not_exist.ini', 'also-does-not-exist.ini',
'simple.ini', 'multisection.ini',
]
found = parser.read(can... | [
"Adil.Zhu@Qisda.com"
] | Adil.Zhu@Qisda.com |
924e817f7df665a0dd09849ca931b75d6b22a05f | 8bcceea28f4e4345f4a0f99c3761c31abfb7a94e | /Probabilistic_model/trade_dynamics_prob_clean.py | 7f4bce4575675e158a27dc8119573112348d2ab9 | [] | no_license | jasperverschuur/Food_security_lesotho | c7b1e91da6036c486eb5d1fd88b27f85010ff534 | d3992b681809862a518678e611a1cbcaae257737 | refs/heads/master | 2022-09-08T12:12:30.440836 | 2020-06-01T19:31:20 | 2020-06-01T19:31:20 | 268,612,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,889 | py | #!/usr/bin/env python
import scipy as sc
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
import scipy.stats as stats
import seaborn as sns
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import HuberRegressor,LinearRegression
from sklearn... | [
"noreply@github.com"
] | noreply@github.com |
4d9685bae094c34f6844353f599ed8a19c912a5c | d305e9667f18127e4a1d4d65e5370cf60df30102 | /tests/st/ops/gpu/test_unpack_op.py | 9a0d8cfda90f7c500d8e6fae7395c0f17d50f593 | [
"Apache-2.0",
"MIT",
"Libpng",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Zlib",
"MPL-1.1",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"MPL-1.0",
"GPL-2.0-only",
"MPL-2.0",
"BSL-1.0",
"LicenseRef-scancode-unknow... | permissive | imyzx2017/mindspore_pcl | d8e5bd1f80458538d07ef0a8fc447b552bd87420 | f548c9dae106879d1a83377dd06b10d96427fd2d | refs/heads/master | 2023-01-13T22:28:42.064535 | 2020-11-18T11:15:41 | 2020-11-18T11:15:41 | 313,906,414 | 6 | 1 | Apache-2.0 | 2020-11-18T11:25:08 | 2020-11-18T10:57:26 | null | UTF-8 | Python | false | false | 5,063 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"513344092@qq.com"
] | 513344092@qq.com |
30cb1bd441c9ba73147ce2a690de1ff07a8ab41d | 4144c279f65bf4d0966a3c654f0c1e121339d7c9 | /core/components/game/game_key_press.py | 852c9129c49adb515f8020c2418d33721bd14df5 | [] | no_license | mysty0/pydungeons | 06aa42bf534c48b28399f86179218d2fc554d5ea | 5183b791a4a57843d1f1720b43f203ddb5e76f6f | refs/heads/master | 2022-10-08T22:14:28.600607 | 2019-10-30T17:05:10 | 2019-10-30T17:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import pygame
from core.game_component import GameComponent
from .game_event_manager import GameEventManagerComponent
from core.events.key_pressed import KeyPressedEvent
class GameKeyPressComponent(GameComponent):
def __init__(self):
super().__init__()
self.exec_priority = 1
def game_tick(sel... | [
"maplegend@mail.ru"
] | maplegend@mail.ru |
3d8de22492fa0e73db7e2c8f0a596c46fb7797d6 | f3366f982ac6d5419cea207d7c123b306f4928bc | /U10-8/U10_8.py | ce1b866309807d3d2b4265acb6ba4950fd3b9e43 | [] | no_license | MrWifeRespecter/TECHNOLOGY | 7d8199ee348dcaa679910b586e7f7761e764f2b4 | 0d163d64ae24fdd21ef7db7583753eda689f023c | refs/heads/master | 2023-05-12T00:35:21.908681 | 2021-04-27T10:24:16 | 2021-04-27T10:24:16 | 292,079,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | from math import *
from random import *
def s(x): #bara för att jag inte orkade skriva försök så mycket. Min kod ser mer fancy ut nu dessutom
return(x/försök)
def p(x): #Ibland kan den här skicka iväg antingen 59 eller 61 asterisker. Men det händer inte ofta och det är ett så litet problem så jag skiter i det.
... | [
"viggo034@gmail.com"
] | viggo034@gmail.com |
c125cd6fc695135e666fa60d10742905db16d06e | a0334ac9bc03d5fde52b668529daf5ea88dd4b7b | /15_DJANGO_three/basicforms/basicapp/forms.py | 2bfbe346b09898b044d9cb1973d39df9a46a996b | [] | no_license | m-kashani/Python-and-Django-Full-Stack-Web-Developer-Bootcamp | b9f1cfb2f788d10657d9d4613b3fec6e7a3f19e4 | 2218801cf6efc731908ea858f05c8b56ec3aa793 | refs/heads/master | 2020-05-17T17:51:56.580430 | 2019-04-29T07:27:42 | 2019-04-29T07:27:42 | 183,867,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django import forms
from django.core import validators
class FormName(forms.Form):
name=forms.CharField()
email=forms.EmailField()
verify_email=forms.EmailField(label='enter email again')
text=forms.CharField(widget=forms.Textarea)
def clean(self):
all_clean_data=super().cle... | [
"noreply@github.com"
] | noreply@github.com |
6034daa88e22d195d322297c1c2d0e5fd897e872 | 4106239d770367d28424bc48724f176ad73a4bd5 | /django_basics/settings.py | 88c4326cb4e09d637a52ed455c3657759e3b82d4 | [] | no_license | Hyped-247/django_basics | 323843aaa27263097a24554bd7ea0d2cd7cf32c4 | 6d05a27bd954fee4520c2bfb385f6b833b3346ab | refs/heads/master | 2020-04-16T12:03:59.719641 | 2019-01-13T22:55:00 | 2019-01-13T22:55:00 | 165,563,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | """
Django settings for django_basics project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"mmahjoub@westmont.edu"
] | mmahjoub@westmont.edu |
8759703c894c53be16af893e316195c0e1e4b1d2 | 1e484ace2dbd2883986b6e6eced5fede9fb6f06c | /zh/venv/Scripts/easy_install-script.py | 8a69d059d24124a398abc206532e82a0ac31d972 | [] | no_license | ZiZiJunWu/python_chinese_word | bb96c8a1e880907e2ce8f1f371f6f9e4984b59b2 | 7f6784f6fcefb869cf629cfeb8b3f94c31b3d567 | refs/heads/master | 2020-05-03T02:40:09.706497 | 2019-03-23T16:56:42 | 2019-03-23T16:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!G:\PycharmProjects\zh\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"1280053803@qq.com"
] | 1280053803@qq.com |
b2ee8f80c02ee3702fd9e086b4bde77e3d31854d | 6790915cb130d2c7e770f2ff3f06aac3147fc16e | /home/migrations/0004_updateme.py | 6a8a88eca3b3166c46da1381a167fa1fd93df3b6 | [] | no_license | tommyjamess/shopitng | 7a56a302a076df3dc54508adff3bde68a6b26f6b | b0ed0dd08df4c1af84094a596a8e7e5c63f9207e | refs/heads/master | 2023-07-03T16:25:04.950197 | 2021-08-25T15:24:32 | 2021-08-25T15:24:32 | 390,338,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Generated by Django 3.2.4 on 2021-06-26 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20210622_1135'),
]
operations = [
migrations.CreateModel(
name='UpdateMe',
fields=[
... | [
"meadigun@gmail.com"
] | meadigun@gmail.com |
eca5c7e778194e922ed36993773422734dc629b7 | 08ed5925fad1951a351e86d357d266434c3e671c | /hostscripts/animations/matrix_animation.py | ff05cae97098218d62cbce372a727d29960c948e | [
"MIT"
] | permissive | icve/liv-Ard | 83c5be86d3afb7c1295cd21b1eef5a407a7ff169 | 6930c523322aeb13c6c80d2c19be7a8a1b2c59c2 | refs/heads/master | 2021-01-24T08:21:42.157247 | 2019-08-27T16:35:11 | 2019-08-27T16:35:11 | 93,381,863 | 0 | 0 | null | 2017-07-23T07:09:06 | 2017-06-05T08:23:36 | Python | UTF-8 | Python | false | false | 2,941 | py | from time import localtime
def _get_ring(side=8, ring=0):
seqgen = range(ring, side - ring)
coors = [(ring, x) for x in seqgen] +\
[(x, seqgen[-1]) for x in seqgen[1:]] +\
[(seqgen[-1], x) for x in reversed(seqgen[:-1])] +\
[(x, ring) for x in reversed(seqgen[1:-1])]
return coors
... | [
"ic.ve.cv@gmail.com"
] | ic.ve.cv@gmail.com |
123692f1d83c0d850298be8ebd18dc3df003f4e0 | fb4b70ad38d0fc810cb9ee034c8fb963c079f64b | /easy/Self_Dividing_Numbers.py | 33c51ce1cd72ee84467d7802a1ee8de8713c2bb0 | [] | no_license | ChrisLiu95/Leetcode | 0e14f0a7b7aa557bb2576589da8e73dbeeae8483 | baa3342ebe2600f365b9348455f6342e19866a44 | refs/heads/master | 2021-07-11T12:01:00.249208 | 2018-09-26T21:27:42 | 2018-09-26T21:27:42 | 117,451,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | """
A self-dividing number is a number that is divisible by every digit it contains.
For example, 128 is a self-dividing number because 128 % 1 == 0, 128 % 2 == 0, and 128 % 8 == 0.
Also, a self-dividing number is not allowed to contain the digit zero.
Given a lower and upper number bound, output a list of every pos... | [
"xiangchong95@gmail.com"
] | xiangchong95@gmail.com |
7e408c1b6dd5131c7581e5707518d2f2b4f6ea73 | 398df168b3a29c137e7e512368fbb352d596bef7 | /venv/Scripts/sshtunnel-script.py | 92a7373c99059139cb45e4a1227fde7e3b22c0d2 | [] | no_license | FerasDaoud94/demo | 25bcdda2d1a3e7454fedfd48f05cfcba68479ecd | 0bc92e286773a88d3d6531dc07a0b95903617cc4 | refs/heads/master | 2020-09-07T19:27:03.003102 | 2019-11-11T03:12:14 | 2019-11-11T03:12:14 | 220,891,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!C:\Users\hp\PycharmProjects\TestProj\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'sshtunnel==0.1.5','console_scripts','sshtunnel'
__requires__ = 'sshtunnel==0.1.5'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"ferasdaoud1994@gmail.com"
] | ferasdaoud1994@gmail.com |
e56077f2118675fa8d6e93167ead9674cff11524 | 49ab56af18fd9ae25090e6b07d59cec24da79504 | /osa12-11_suoritukset/test/test_koodi.py | f544d81826648a0327b87aa1f9181ac592a77cf5 | [] | no_license | TomiSar/ProgrammingMOOC2020 | 13031c7c27d574a55537c1c24cd5c216521c8f9a | 4316b7d38cefa50535cf1ed503260a0d9140f36b | refs/heads/master | 2023-02-15T19:33:42.109417 | 2021-01-16T00:22:50 | 2021-01-16T00:22:50 | 322,437,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,494 | py | import unittest
from unittest.mock import patch
from tmc import points, reflect
from tmc.utils import load, load_module, reload_module, get_stdout, check_source, sanitize
from functools import reduce
import os
import os.path
import textwrap
from random import choice, randint
from datetime import date, dateti... | [
"tomppa.sarjamo@gmail.com"
] | tomppa.sarjamo@gmail.com |
f408f0c7692e6b3353b95f90ce51424a9631acfa | 617f4b4a7c12e019e31c8a652fbda6044631dde1 | /venv/Scripts/pip3.8-script.py | 842cd74962252675a3cde8c100d1994327b31ec9 | [] | no_license | sharifahmeeed/opencv_4_videoshow | 7cbe0a41c4d318ac5f1a1bd61847fb4b8e674eb0 | 9d2b076de449121cd9adda04920be0e24a35b21b | refs/heads/master | 2023-07-17T10:35:28.705475 | 2021-09-07T05:30:51 | 2021-09-07T05:30:51 | 403,853,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!C:\Users\SharifAhmed\PycharmProjects\opencv_1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"sharifahmeeed@gmail.com"
] | sharifahmeeed@gmail.com |
59fd525d369e613a5aa523d38e228234a238fefc | 433947a5e18c57628d86ee9182fdba44f5ee6748 | /checkScore.py | 0e3565ae233cb85d0f5b392f778df6394d66406f | [
"MIT"
] | permissive | maturban/cs595-f13 | e4210eed78a3fbdd30a8d56ae66f417620a82461 | ba4f396bfb2412712c9d90d5015f1717e2725477 | refs/heads/master | 2021-01-16T20:35:55.697415 | 2013-12-06T05:17:00 | 2013-12-06T05:17:00 | 12,801,710 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | #!/usr/bin/python
# Mohamed Aturban
import re
import sys
import signal
import urllib2
from bs4 import BeautifulSoup
from time import localtime, strftime, sleep
# Ctrl+C handler
def signal_handler(signal, frame):
print '\n\n See you soon, goodby ... \n'
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
# Chec... | [
"maturban@cs.odu.edu"
] | maturban@cs.odu.edu |
1b06adbfe627e4844b06a78194d193083b1f3a66 | 8d336d773169d502724f59ccaf7d767c08f755cf | /Prediction/views.py | 48a1528348bb17153c85a5b70a2477ec471c1739 | [] | no_license | jawharjoe/Venter_CMS_old | 14120b5a2c882f566fa884b6c6d8ee7cb3f297dd | df24d1af3577c25592a8416508c44b5597144283 | refs/heads/master | 2022-12-12T14:18:08.530860 | 2018-12-03T05:33:50 | 2018-12-03T05:33:50 | 160,137,687 | 0 | 1 | null | 2022-12-08T02:27:44 | 2018-12-03T05:34:13 | JavaScript | UTF-8 | Python | false | false | 8,161 | py | """
Author: Meet Shah, Shivam Sharma
This view will render a simple html form if the request is GET. If request is POST then will collect the
uploaded csv file and save it in appropriate user account.
"""
from django.shortcuts import redirect
from django.contrib.auth.models import Group
from django.shortcuts import r... | [
"jmohd359@gmail.com"
] | jmohd359@gmail.com |
fd91edb1d6fc2d1478993e3ee2f37f4722d90ae6 | 349e9b785f3d26a994441ca9958be9a6f7db3f1b | /client.py | f2bf4e734fd97f4499d1a6358a582f2bb82257b8 | [] | no_license | ivanlukomskiy/MzClient | 5b8ea7a8cde80c8a052b3dd23f2cf4e1c71fed97 | a610245d7cc89099cd39092e44faf6bfc8b86508 | refs/heads/master | 2020-04-22T01:58:06.688989 | 2019-02-10T21:58:01 | 2019-02-10T21:58:01 | 170,031,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | import json
import time
from threading import Thread
import urllib3
from inputs import get_gamepad
# Controller settings
LEFT_THRESHOLD = -3000
RIGHT_THRESHOLD = 3000
LEFT_MAX = -32768
RIGHT_MAX = 32767
INPUT_CODE = 'ABS_RX'
# Rest client settings
REST_CLIENT_MIN_DELAY = 0.2
API_URI = 'http://localhost:8000'
HEADERS... | [
"ilukomskiy@sbdagroup.com"
] | ilukomskiy@sbdagroup.com |
8ef7930362e2bcc35f6de8fe13f6c54c51214967 | dd998c7abbaa1db0af23b2d0f5e5fd6ab9737c20 | /apps/operation/apps.py | 1a5d95bc9581d0801275317e5e70ba7d07100919 | [] | no_license | seymourgao/xuexionline | 5364737023e6c81b899ead193c581e9811f5f205 | 6d9ffaab76582e35be131a5ee281aec2f837cb82 | refs/heads/master | 2020-04-22T14:10:53.344111 | 2019-02-13T03:35:43 | 2019-02-13T03:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #*coding=utf-8
from django.apps import AppConfig
class OperationConfig(AppConfig):
name = 'operation'
verbose_name = "用户操作" | [
"gxlibra@gmail.com"
] | gxlibra@gmail.com |
22fc2fece41e824ec59281e1165ad60501b135c6 | e466ec58c03eb781890420756719bce659963bd8 | /page/__init__.py | a4504d2f88b8c35cd4834aed6cd1fd874c9fbe32 | [] | no_license | CuiDan1/day03_project002 | 0654fe26c164e160d9fe2c08ef73abeb9c8c7afe | 4429ee47e826d030816dedb8df027f1d78ca3e8f | refs/heads/master | 2020-08-27T03:09:04.783160 | 2019-10-24T07:48:15 | 2019-10-24T07:48:15 | 217,228,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | """爱客登录定位信息"""
from selenium.webdriver.common.by import By
app_package = "com.vcooline.aike"
app_activity = '.umanager.LoginActivity'
login_username = By.ID, 'com.vcooline.aike:id/etxt_username'
login_password = By.ID, 'com.vcooline.aike:id/etxt_pwd'
login_btn = By.ID, 'com.vcooline.aike:id/btn_login' | [
"15003125752@163.com"
] | 15003125752@163.com |
f4cefebba561f7e3df125832dd71bfd53f6a98c2 | 64a72c2af381fdfb40cef2583d0dfc80566938d3 | /baxter-ridgeback-kinetic_ws/devel/lib/python2.7/dist-packages/puma_motor_msgs/msg/_Status.py | 504bd856a88b84f3ea3de84393e3e2a8c3928045 | [] | no_license | thibs-sigma/ridgeback-baxter | a3daa2b8425a84c3d75acaec134848215be6f11d | 0bf8ab0df8807ab886644975d63865e5f163dc5a | refs/heads/master | 2020-04-28T16:42:13.902308 | 2019-03-13T14:47:02 | 2019-03-13T14:47:02 | 175,420,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | /home/thib/baxter-ridgeback-kinetic_ws/devel/.private/puma_motor_msgs/lib/python2.7/dist-packages/puma_motor_msgs/msg/_Status.py | [
"thib.hilt31@gmail.com"
] | thib.hilt31@gmail.com |
ef48116a01eb0432df734850331a5bce5d3b179d | 4ef34e4e23087c354a169fbf8e5e368ad388fca9 | /test.py | 6ee49765c5d1752dca427d00a393f151834de9c7 | [] | no_license | asawho/makerlab-arcade | 6a8ab9851a780ec2db6c0b107e582b12d267df3e | 0556ac803b9bc64bb5f6ebef715c3dc25880b5f1 | refs/heads/master | 2020-09-06T18:43:28.469224 | 2019-11-08T17:07:59 | 2019-11-08T17:07:59 | 220,512,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from pynput import keyboard
def on_press(key):
print('Key {} pressed.'.format(key))
def on_release(key):
print('Key {} released.'.format(key))
if str(key) == 'Key.esc':
print('Exiting...')
return False
with keyboard.Listener(
on_press = on_press,
on_release... | [
"asawho@gmail.com"
] | asawho@gmail.com |
edfc9553907b03130a283867636ecc6b1029c1e4 | f08d0b5d0ce94292493111be42eaf6db051c8eb3 | /venv/bin/pyreverse | a644b70b622ad524abba1c54062c1c21cab2daca | [] | no_license | draxlus/CMPT-370_SoftwareDevProject | 999ac7ddd470b40d2df8f338a51f2a661b747922 | f2205456ba5ff3d1cb7d4d65cd65becfabcf8c2c | refs/heads/main | 2023-04-19T07:52:45.986842 | 2021-05-06T19:18:43 | 2021-05-06T19:18:43 | 365,009,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/Users/sherozeajmal/Desktop/cmpt370-project/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"siddhantagrawal777@gmail.com"
] | siddhantagrawal777@gmail.com | |
7a529d56ccc005bfccfb9d8c19c6f483390fffa9 | 46bef3a57cb663991387e02f3cc6c0282bd17496 | /ie/si23tinyyolov2/tflite/Tensor.py | 0cc948eaa14ee73dcd9f9a7202d91d57e2d163ea | [] | no_license | k5iogura/vinosyp | 36964f4c51b9d695d46e19d64a49156eaaac0042 | 1ef35532c6ba392761f73504ed787c074781c400 | refs/heads/master | 2020-04-08T04:27:57.905968 | 2019-09-30T07:34:18 | 2019-09-30T07:34:18 | 159,017,659 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
class Tensor(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsTensor(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Tensor()
... | [
"k5i.ogura.v40@gmail.com"
] | k5i.ogura.v40@gmail.com |
e295a394c5093b40b5ef8d9c312b38e6497a13ba | d30aec224cebbc8a92fb05741e690ef1f75d75e9 | /week10/CodingBat/Logic-2/round_sum.py | beb654679a53c72ad783c3a457d69e459bd0cdfe | [] | no_license | bzzitsme/webdev2019 | ce050bcff78e3848c0cabebf27df582f299394d0 | 6671e3c4e5ab4fa6b94fe51dd2974d830d15f543 | refs/heads/master | 2022-04-30T06:05:31.011700 | 2022-03-15T07:31:57 | 2022-03-15T07:45:42 | 167,218,267 | 1 | 0 | null | 2021-05-09T09:47:58 | 2019-01-23T16:49:26 | HTML | UTF-8 | Python | false | false | 173 | py | def round_sum(a, b, c):
return round10(a) + round10(b) + round10(c)
def round10(num):
r = num % 10
if r >= 5:
return num + 10 - r
else:
return num - r | [
"temirlan.dyussyumbayev"
] | temirlan.dyussyumbayev |
c54e99a0862974e1abc8b7eaf5a168c002dff248 | a5a4cee972e487512275c34f308251e6cc38c2fa | /dev/potential/EamPotential/dev_EamPotential.py | 1587069d5e39deda89368cb54c938837b9a44bfc | [
"MIT"
] | permissive | eragasa/pypospack | 4f54983b33dcd2dce5b602bc243ea8ef22fee86b | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | refs/heads/master | 2021-06-16T09:24:11.633693 | 2019-12-06T16:54:02 | 2019-12-06T16:54:02 | 99,282,824 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import pypospack.potential as potential
symbols = ['Ni']
pot = potential.EamPotential(symbols=symbols)
print('pot.potential_type == {}'.format(\
pot.potential_type))
print('pot.symbols == {}'.format(\
pot.symbols))
print('pot.param_names == {}'.format(\
pot.param_names))
print('pot.is_charge =... | [
"eragasa@ufl.edu"
] | eragasa@ufl.edu |
a4edf3b458e618945adfa9cdeb83ec205d304adf | 5d8d0015ecdb52228945d47c3d25a7ac269d2bc6 | /flaskr/db.py | ee79c5b1b5cf4cbdc726266c5672f4e0aca29ad4 | [
"Zlib"
] | permissive | MergeCommits/354-project-backend | 4bb6d0b9232b526ef5ed5fbf73174ea578a1284b | 97614a1585b66a5d51f5df8ecd778bf3520b830a | refs/heads/main | 2022-11-05T12:13:05.527252 | 2020-06-23T04:26:37 | 2020-06-23T04:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from flask import current_app, g
from flask.cli import with_appcontext
from contextlib import contextmanager
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
def new_session():
if 'db_engine' not in g:
... | [
"guillaume.rochefort.mathieu@gmail.com"
] | guillaume.rochefort.mathieu@gmail.com |
f7fb9482be8574be7d00cdcdac9637ddbef5319f | 2d49b1be783091c064dfda11f481e9d9bdd45d5b | /not-validated-prototype_lst/scripts/unit-tests/unit-tests.py | 74092e4ee32923356f22f5df00244ae6328cf2f4 | [] | no_license | xyt556/espa-land-surface-temperature | 8d93829fd307eba6aa656be86c244697c9abbea5 | 4e12f8a967c7c7641bc351cade01694c3c09726f | refs/heads/master | 2021-01-21T15:03:49.239107 | 2017-06-05T16:06:09 | 2017-06-05T16:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,155 | py | '''
FILE: unit-tests.py
PURPOSE: Provides unit testing for this directory.
PROJECT: Land Satellites Data Systems Science Research and Development
(LSRD) at the USGS EROS
LICENSE: NASA Open Source Agreement 1.3
HISTORY:
Date Reason
---------------- ------------... | [
"rdilley@usgs.gov"
] | rdilley@usgs.gov |
731c94417bf0b8c3ef693e98b8c14512e389ed0c | 115f11050032c09bd561d8e1121d1be0932542f3 | /address_standardizer/settings.py | 10438bb00ed9cd974a2df3f66bf4f5ff93595eda | [
"MIT"
] | permissive | bitjockey42/address_standardizer | 7c619e567c1ea48d3309a9c62ed9093ffc6a2361 | cab196a09664893fb1867a35a9737fdc38771865 | refs/heads/master | 2023-04-26T12:03:40.555573 | 2021-05-05T18:47:03 | 2021-05-05T18:47:03 | 362,680,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import os
HOST = os.getenv("HOST", "0.0.0.0")
PORT = os.getenv("PORT", "8080")
DEBUG = os.getenv("DEBUG", False)
| [
"github@ajulian.me"
] | github@ajulian.me |
c5726f75c757c38f8cbd21289f63e73ea05370c2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/004_Main components/001_Inscription/171_setScaledContents - toClass.py | 338077f7a2d487be688c7007a97764ffd712864a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 522 | py | from PySide import QtCore, QtGui
import sys
class SampleWindow(QtGui.QWidget):
def __init__(self):
super(SampleWindow, self).__init__()
window.setWindowTitle("Класс QLabel")
window.resize(300, 150)
label = QtGui.QLabel()
label.setText("Текст надписи")
label.setFrameStyle(QtGui.QFrame.Box | QtGui.QFrame.P... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
510328e777222074176c906f8c7df287ecbd3b2a | 677dacd01aaa5207f95c3502865fcfc20f37ffb2 | /quik-fix.py | 79e9d06fea7c5733bb1688534b80709988e082f3 | [] | no_license | fehernandez12/QuikFix | 4b25f08c1f9f6c7d68a6d87aedcbb465ba282483 | 7860bbb29b46be326137d5943a9507a0352737c4 | refs/heads/master | 2020-12-23T07:45:47.957668 | 2020-01-30T21:56:28 | 2020-01-30T21:56:28 | 237,087,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | import discord
import time
import os
import sys
import json
from discord.ext import commands
import sqlite3
conn = sqlite3.connect(os.path.join(sys.path[0], 'QuikFix.db'))
db_cursor = conn.cursor()
bot = commands.Bot('.')
@bot.event
async def on_ready():
print('Logged in as: ')
print(bot.user... | [
"noreply@github.com"
] | noreply@github.com |
53c9aed9f7a93c6fe201f4664a845b48f15db2f9 | a81c07a5663d967c432a61d0b4a09de5187be87b | /chrome/installer/mac/signing/pipeline.py | 898c0d4542bb3474d654e71a1e4fd5a1355e3897 | [
"LGPL-2.0-or-later",
"MPL-2.0",
"GPL-2.0-only",
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | Python | false | false | 14,899 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
The pipeline module orchestrates the entire signing process, which includes:
1. Customizing build products for release channels.
2. Code signing t... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a6343b9d83e42c7fc1cccf50d1d7355d6d923be4 | f53a990d400ac3838c2dc06ee17c851c8383063e | /pfile/python_client.py | 2c52d84d7fa5fb51f1e9c984a73df33a30b19880 | [] | no_license | syy1023/c_learning | d9b6e525181bf3d9bbed5c85a11d05e76888fc6c | 1af806f5c8bbb9cd750af5a69766d6937d8418b0 | refs/heads/master | 2021-09-10T07:02:40.378141 | 2018-03-22T02:32:57 | 2018-03-22T02:32:57 | 113,152,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | #coding=utf-8
import socket
s=socket.socket()
host=socket.gethostname()
port=4849
s.connect((host, port))
print s.recv(1024)
s.close()
| [
"2665572581@qq.com"
] | 2665572581@qq.com |
fe60ae9957984e07a9ff679fa218dbd4dd291e63 | 6d1d92d22d94c17645f2accec6361054848f3256 | /ipactory/wsgi.py | e161e43e65ea11aa6ebb1d1c604ab35325b0420a | [] | no_license | jg1021/ipac | 7c7e440fff610c3f7e752956f2dda4d617358b5e | 098211d98a3de1e06a5b5be3a7241e52f16bc96a | refs/heads/master | 2022-12-10T14:19:16.455931 | 2020-09-14T03:40:56 | 2020-09-14T03:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ipactory project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"0607juny@gmail.com"
] | 0607juny@gmail.com |
2e6ecb54b480a398f319df68538b50b978a06dc3 | f34d3948b707e461151ee33296a61fb23a6d3f44 | /month01/day11/day11/day10_exercise/exercise01.py | 2661ccd6399fb82f85eed30d55de03d907cdb447 | [] | no_license | xiao-a-jian/python-study | f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8 | c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3 | refs/heads/master | 2022-06-09T17:44:41.804228 | 2020-05-05T07:48:07 | 2020-05-05T07:48:07 | 256,927,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # 定义函数, 删除列表中相同元素(只保留一个)
# list01 = [6, 54, 65, 677, 6, 65, 6, 65]
# 更节省内存
# def delete_duplicates(list_target):
# for r in range(len(list_target) - 1, 0, -1):
# for c in range(r):
# if list_target[r] == list_target[c]:
# del list_target[r]
# break
#
# # 测试
# lis... | [
"1261247299@qq.com"
] | 1261247299@qq.com |
03b65e6c63a0b4d0b29232e8bff50158051677c9 | db21dffaa21da3bd953567c2a61aab267468e7f0 | /Code Up/[4031] 합과 차.py | cb725139249936b5ca4ee9b79be65923fdc142eb | [] | no_license | BoHye0202/CodingTest | 14a51ab3729154fbeae42029e0b32f872def7535 | 5fae962cdb41935367f17c6317c80ac2fe3cd8b1 | refs/heads/main | 2023-04-26T03:22:54.044215 | 2021-05-26T11:29:19 | 2021-05-26T11:29:19 | 356,518,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | n = int(input())
m = int(input())
print((n+m)//2)
print(n-((n+m)//2))
| [
"0202cjstk@naver.com"
] | 0202cjstk@naver.com |
b0bd240d43ac3b1a59a797702c347075e3592f73 | 7152b9b0295c6b9961bc875fbc581fc9271b4490 | /Day4/wholesale.py | 1673dc265d36b4681aec9d8939eb0752e24d396b | [] | no_license | Vinay-1312/Coder-sWeek-ML | f0c95abe5ac198fbbde48851be2f497fd3efea9c | 94b82c76a62c4766e2b0760173880a56e7a8999f | refs/heads/master | 2022-10-21T09:19:03.629840 | 2020-06-11T08:57:58 | 2020-06-11T08:57:58 | 268,483,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 5 12:58:24 2020
@author: dell
"""
import matplotlib.pyplot as plt
import pandas as pd
data=pd.read_csv("Wholesale.csv")
from sklearn.preprocessing import StandardScaler
sc=StandardScaler()
data=data.drop(["Channel","Region"],axis=1).values
data=sc.fit_trans... | [
"noreply@github.com"
] | noreply@github.com |
d29da2fa6b389a1e61c922b0468ca492e288956d | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/securitycenter/v1p1beta1/resources.py | 204b6a0c852d1fd7a975618ac6a38fa929b91cb3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 2,453 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. 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 requir... | [
"gcloud@google.com"
] | gcloud@google.com |
4cd9fac0659f565ca93a4ac5eb56440c5998707d | b77565a023a88480bb3330b18be929a19775f5dc | /정승호/키로거/solution.py | 570bd7078f7eb72449816e49fd2e0b55166a2674 | [] | no_license | Jeoungseungho/python-coding-study | 5af34bff429e24a93f6af4b0473d793ea2b791ee | 431e02d12d0834c71f423471701a2182f66a3776 | refs/heads/master | 2023-08-11T07:38:09.122123 | 2021-10-06T06:32:44 | 2021-10-06T06:32:44 | 283,200,892 | 20 | 12 | null | 2021-10-06T05:22:50 | 2020-07-28T12:07:21 | Python | UTF-8 | Python | false | false | 591 | py | import sys
input = sys.stdin.readline
N = int(input())
for _ in range(N):
pass_word = input().rstrip()
left_stack = []
right_stack = []
for word in pass_word:
if word == '<':
if left_stack:
right_stack.append(left_stack.pop())
elif word == '>':
... | [
"platoon07@khu.ac.kr"
] | platoon07@khu.ac.kr |
ff5e90060294b08c257176521da92b63632eebf5 | f8f24808ee8317a87669bb27d5e4014afbf1d58f | /BM25/venv/Scripts/rst2html4.py | d4f6f449197853895d9988ab28c5a5fc55386e89 | [] | no_license | c-tel/Information-Retrieval | 4bef96bc8d7bf28f588d820d258dca4a5e6a25d9 | 502befe34f58cf6920283bf568f71dc5bab605d8 | refs/heads/master | 2020-03-18T01:40:58.846629 | 2018-05-20T13:59:44 | 2018-05-20T13:59:44 | 134,154,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #!C:\Users\Админ\PycharmProjects\BM25\venv\Scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms to ... | [
"rorex555@gmail.com"
] | rorex555@gmail.com |
e4deaeba08a07b68f75717301ee3af72f73931c2 | 3a6f8cd866f8ad9d815152d3422706c2948bfd0e | /MainApp/models.py | c44c49a78d6cdae97e47d0a1b0c999dda6e48e8b | [] | no_license | DmitryCheremisov/My_Django | 8365a76aea0b2b1ccde19870f957d3899a6256c9 | 5c6ce0ffc1dd04b34c73029184e81baf928ada4c | refs/heads/master | 2023-01-19T21:10:55.340066 | 2020-11-26T18:19:37 | 2020-11-26T18:19:37 | 316,294,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from django.db import models
# Create your models here.
class Item(models.Model):
name = models.CharField(max_length=100)
brand = models.CharField(max_length=100)
count = models.PositiveIntegerField()
color = models.CharField(max_length=30, default=None, blank=True)
def __str__(self):
return f"... | [
"x-carver@yandex.ru"
] | x-carver@yandex.ru |
7814ae09297328a8ce2e3978ead518dd2fdf7c5a | 3873e47ae77036a17d29ac53504a2609acb836eb | /dippy/core/models/message.py | 6d3e4d6c50bdbe6ae93b2fc7941106f4cf34d0f6 | [
"MIT"
] | permissive | dontbanmeplz/dippy.core | 117f1be6edd2988d9d8429a9ded6182205919afb | 3811f0aa8bc0ae9f9a25c15c4cc054630b3e9710 | refs/heads/main | 2023-04-26T17:31:17.543348 | 2021-05-22T17:17:42 | 2021-05-22T17:17:42 | 369,865,912 | 0 | 0 | MIT | 2021-05-22T17:16:57 | 2021-05-22T17:16:56 | null | UTF-8 | Python | false | false | 2,551 | py | from __future__ import annotations
from datetime import datetime
from dippy.core.enums import (
AllowedMention,
InteractionResponseType,
MessageActivityType,
MessageType,
)
from dippy.core.models.attachment import AttachmentModel
from dippy.core.models.channel import ChannelMentionModel
from dippy.core.... | [
"hi@zech.codes"
] | hi@zech.codes |
96ae58733b73ddbe8b3fe24003c3a503f66c39de | a4d0868cb236d8fc6bbc6cfc5c19c5ba06828120 | /main.py | 85dd6f8991202e9f97216f2003c533c4d52b9e55 | [] | no_license | GunterFritz/cykit | 99312fbe7d457842b4c1f47a57c04d026f58e1d9 | c331b7c4c5677556e27060d06760d6d842d3ceea | refs/heads/master | 2020-05-31T14:40:03.794810 | 2017-11-30T20:46:18 | 2017-11-30T20:46:18 | 94,035,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import sys
from gui.draw import MyView
from PyQt5.QtWidgets import QApplication
if __name__ == '__main__':
app = QApplication(sys.argv)
view = MyView()
view.show()
sys.exit(app.exec_())
| [
"gunter.fritz@web.de"
] | gunter.fritz@web.de |
2ecc7dfe6f8b957a7e99998acd15cba59cc29ea2 | 9dc32feb50562293a59917c56188e2036b21b341 | /sel.py | d99de448d50d0d12268688605d8c663e04d3c1ec | [] | no_license | JJDing-Louis/Chrome-Selenium-Python- | 6180dead8eb6d944f5e1d47719cbbe595e30e93c | b379320c7d06579928d57adc1a75624dd5922d9a | refs/heads/master | 2022-06-21T02:46:36.409149 | 2020-05-09T04:15:11 | 2020-05-09T04:15:16 | 262,457,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from selenium import webdriver
browser = webdriver.Chrome()
use=input("帳號:")
psw=input("密碼")
browser.get('https://www.eyny.com/member.php?mod=logging&action=login')
a=browser.find_element_by_name('username')
a.send_keys(use)
a=browser.find_element_by_name('password')
a.send_keys(psw)
a.submit()
| [
"xujpvuxu2332@gmail.com"
] | xujpvuxu2332@gmail.com |
a519ff280a0a25e5d2ad8a78358df252d8eb37df | 81f171fcf6831a9267072a6348b12c517d9166e1 | /Megatron-DeepSpeed/megatron/mpu/tests/test_cross_entropy.py | 8155e3645c67aefb416087080b14598e42ff0fe5 | [
"Apache-2.0",
"MIT"
] | permissive | MikeGu721/EasyLLM | ae8c6e650e6710d8a6556a53485b05d5708e45dc | 4f18766e3baed3694d7e887999881a5c6b72a24a | refs/heads/main | 2023-07-05T04:32:35.739390 | 2023-07-04T07:03:22 | 2023-07-04T07:03:22 | 625,133,639 | 47 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. 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 re... | [
"437914030@qq.com"
] | 437914030@qq.com |
ddc0b9c1fe3b67c0a5d6fd069262be7facd56757 | 532c5b6bd09b85e337cf568f6535299a773e15a5 | /Livid_DS1_v2/DS1.py | 08a31086ecd0094b54e892baf9419f88a5949836 | [
"MIT"
] | permissive | thomasf/LiveRemoteScripts | ac796744c9694887f7a3c5ac3570630870c09054 | 23bb89fc62fce97fc7e46f6a94623ada1f255294 | refs/heads/master | 2021-01-18T09:27:51.838549 | 2016-03-14T05:12:08 | 2016-03-14T05:12:08 | 24,001,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,395 | py | # by amounra 0216 : http://www.aumhaa.com
# written against Live 9.6 release on 021516
from __future__ import absolute_import, print_function
import Live
import math
import sys
from re import *
from itertools import imap, chain, starmap
from ableton.v2.base import inject, listens, listens_group
from ableton.v2.contro... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
5e835b0217af9cacfda1300a020affd8d3af6e9d | eebced51fe5452c4bdd3332c4c8c85caa73f753c | /temp.py | 9876ec2057147f22db73156f5d516c51ed319e1a | [] | no_license | sobanjawaid26/GFG-algo-ds-practice-with-test-cases | bd0dbc8f6b117ace135799d259d2821e1330d8df | fe5c0355050291fc186df5367d1865c830b57ef8 | refs/heads/master | 2023-07-12T17:18:11.568612 | 2021-09-01T15:09:01 | 2021-09-01T15:09:01 | 401,565,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | # Python program for flattening a Linked List
class Node():
def __init__(self, data):
self.data = data
self.right = None
self.down = None
class LinkedList():
def __init__(self):
# head of list
self.head = None
# Utility function to insert a node at beginning of t... | [
"sobanjawaid26@gmail.com"
] | sobanjawaid26@gmail.com |
2d0ec65add986b7f658df04cd49b363a813c07f9 | e330d9e94780fb83af4d7f0a3bbc7258e921bfdf | /my_app/migrations/0001_initial.py | acecd4a71f7df1d8ce39cb065c9f2a8d48255608 | [] | no_license | Kacper-Hernacki/buy-my-stuff | 9d96c467b45bdafed50db1a046405938d99e2a10 | 9ce287bd9752bdf0c5266fbfe81f2762c2b103d9 | refs/heads/master | 2023-04-24T03:58:25.814950 | 2020-06-04T12:43:26 | 2020-06-04T12:43:26 | 269,356,720 | 0 | 0 | null | 2021-04-20T20:02:50 | 2020-06-04T12:42:47 | Python | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.0.5 on 2020-05-05 16:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(a... | [
"hernackikacper@gmail.com"
] | hernackikacper@gmail.com |
65b1a3b59c48e5efeb1e7f5cdd75370358d4b584 | aebc347ff9a8ad739111f13aa8d4cf9d48a1e4bd | /data/170818/170818_125942_normal_trap_sweep/0027_normal_trap_sweep_E5071C.py | 348f43e7772521a0bba15513497252a31eeb63b7 | [] | no_license | geyang/170422_EonHe_M018V6 | f01a60d3b8a911ba815a0fcc0bf1b6e2aa8f5f17 | ce189e22f99942e46fce84a0dca714888e44bc69 | refs/heads/master | 2021-06-22T21:01:23.257239 | 2017-08-25T09:48:17 | 2017-08-25T09:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,742 | py | from data_cache import dataCacheProxy
from time import sleep, time, strftime
from setup_instruments import fridge, seekat, yoko1, nwa, filament
from resonance_fitting import fit_res_gerwin
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
import os
from shutil import copyfile
import quicktimetrac... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
451aae1af4c66971218e6fb7fdfbf086be63787e | c486035ace9953873d717b1b87f5b7ecf828af7d | /hostapd.py | 9be1924f09d824741fdea2b7396e521491e2d805 | [] | no_license | nickd0/python-wifi-connect | 65256c1402406a0dd809abb4419764be6b3231e9 | 750661909cca839db959ee17bfc1bb0511b55294 | refs/heads/master | 2021-04-12T03:00:08.400436 | 2018-03-14T19:25:05 | 2018-03-14T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | import config
import random
import time
import os
import subprocess as sp
CONF_FILE = '/tmp/hostapd.conf'
process = None
MAX_ATTEMPTS = 5
attempts = 0
def start():
global process
global attempts
if config.hostapd.ssid_randomize:
addon = os.environ['RESIN_DEVICE_NAME_AT_INIT'] if 'RESIN_DEVICE_NA... | [
"nick@farmshelf.com"
] | nick@farmshelf.com |
4c2e0128f87a1e1cd437f60867570b90acb4259e | 714a22e87e5ae6a2b670a10437409100015f171b | /meshzoo/__init__.py | 2e6201faacd3e0de9e0015493737a24f245fd3a2 | [
"MIT"
] | permissive | krober10nd/meshzoo | ce3aa71a8a87a0749df78c6939e7d893a05f91d1 | 5e8b04d81ee5c23887e3d0244273b3d90b2eba9a | refs/heads/master | 2021-02-17T00:04:36.319498 | 2020-02-24T15:52:48 | 2020-02-24T15:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from meshzoo.__about__ import __author__, __author_email__, __version__, __website__
from .cube import cube
from .helpers import create_edges, plot2d, show2d
from .hexagon import hexagon
from .moebius import moebius
from .rectangle import rectangle
from .simple_arrow import simple_arrow
from .simple_shell import simpl... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
89855498cc5ffedc6599b095d035b074719742e2 | 0bed1250a4805866f871d037c1bce3e5c8757101 | /MATH PROB/factorsum.py | 49ad0da6391d712e6d693b28e7c0123975692580 | [] | no_license | Srinjana/CC_practice | 13018f5fd09f8a058e7b634a8626668a0058929a | 01793556c1c73e6c4196a0444e8840b5a0e2ab24 | refs/heads/main | 2023-08-02T05:42:49.016104 | 2021-09-20T15:39:24 | 2021-09-20T15:39:24 | 358,312,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # for a given number from a list of numbers find the factors and add the factors . If the sum of factors is present in the original list, sort the factors in acsending order
# and print them. If sum not in the original list, print -1.
# Author @Srinjana
def findFactorSum(n):
factor = [1]
for i in range (2 ,n+... | [
"srinjanap.official@gmail.com"
] | srinjanap.official@gmail.com |
e1a7eb2527297240c2ea0b1a5148168e97a4f329 | 0041d087b66a665f3c6a267253729026c068944d | /board/admin.py | 2b1d1e75e5009790dfb7c065637ca2db882e8e4c | [] | no_license | Qonrad/tusvri | e0128636de2cca222510c2e5dad5febb45285395 | d8feebf71d514f704d36b31db8637a2796ac932a | refs/heads/master | 2020-03-13T16:56:06.770463 | 2018-04-26T20:39:55 | 2018-04-26T20:39:55 | 126,738,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
# Register your models here.
from .models import Position
admin.site.register(Position) | [
"Conrad@Conrads-MacBook-Pro.local"
] | Conrad@Conrads-MacBook-Pro.local |
219a94a8e0ca3282c8ea199474456ed64cd0b8e2 | 20594b7389f31d960ba16acfe8c4d4787b6c5e7b | /tf_simple_test/keras_mnist/keras_mnist.py | 2cf8dc7ace831e27706286d1ecbb2a816cffe317 | [] | no_license | meton-robean/DeepLearning_proj | 8dee59c54ab06ad0083b74d2e828f84927437232 | 87c1e56fa8e8b9782b9a75f83d0530b9739ad0ef | refs/heads/master | 2018-10-31T05:10:57.078234 | 2018-09-16T02:36:55 | 2018-09-16T02:36:55 | 117,234,457 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py |
'''Trains a simple convnet on the MNIST dataset.
Gets to 99.25% test accuracy after 12 epochs
(there is still a lot of margin for parameter tuning).
16 seconds per epoch on a GRID K520 GPU.
'''
from __future__ import print_function
import keras
import os
from keras.datasets import mnist
from keras.models import Sequ... | [
"meton-robean@qq.com"
] | meton-robean@qq.com |
fdd456ebce30a832b7ebf9ab1907fccf0c09a7d2 | 85ba0cb18acc854d08397bb21c9a3fab143cf938 | /common/__init__.py | cc96600fdf61e299cea76619a4855af4a4f01477 | [] | no_license | WustChuiChui/research | 5eb2006a4febfd8db5a470cd64288fdb990bbc6b | 69156370cc78d90984b7768f87c83b3486ec86b3 | refs/heads/master | 2020-04-18T06:42:13.351765 | 2019-05-30T10:39:52 | 2019-05-30T10:39:52 | 167,333,065 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | #form FCLayer import *
| [
"wangjia8@xiaomi.com"
] | wangjia8@xiaomi.com |
3db27f60c4eb7ce5a20739d242ecf35db354cf90 | c329057d1561b8ffde0cf26677bb932b4c044826 | /py32.py | 25f958ea6850f7c2c14aa2456d3b6012da3874a1 | [] | no_license | kimotot/pe | b3611662110ca8a07b410a8e3d90c412c9decbd3 | 8d12cc64b0f9ad5156e2b1aed0245726acb9a404 | refs/heads/master | 2021-01-19T11:53:17.683814 | 2017-04-03T05:05:09 | 2017-04-03T05:05:09 | 82,271,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | # coding:UTF-8
import copy
import time
def permutations(origin):
''' 与えられたリスト要素の順列を求める関数
引数はリストなど、イテーラブルなもの
戻値は全ての順列を要素としてリストにしたもの
再帰呼び出し関数'''
if len(origin) == 0:
return [[]]
else:
ans = []
for index,header in enumerate(origin):
new_orign = cop... | [
"god4bid@hear.to"
] | god4bid@hear.to |
a07685e2f447328a9c1b2cf82dd3f85c207276ee | cbf31804ad705886979195b36f5c44301ab58785 | /middleware.py | 8802512e20ff5dd4bb135786e0573e2b63e8f514 | [
"MIT"
] | permissive | nxexox/django-get-domain | f9a21fdfb6245bca2e8cb40e16486ee3a4f304be | a3d493f37ad06d0a915ffe359eaebedaee3d096a | refs/heads/master | 2020-12-02T06:37:53.591841 | 2017-07-11T08:02:18 | 2017-07-11T08:02:18 | 96,866,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # -*- coding: utf-8 -*-
"""
Middleware for django.http.request.HttpRequest
"""
from django.utils.deprecation import MiddlewareMixin
from django.urls import reverse_lazy
def get_domain(request, reverse_url=None, *args, **kwargs):
"""
Create domain from django.http.request.HttpRequest.
Optional add interna... | [
"nxexox@gmail.com"
] | nxexox@gmail.com |
7cf52d60ac8b25592fe1eeea129de67bb092c07b | b894d9056a3679930ad3a09a21984a9586cc6719 | /housepwned/pipelines.py | 5fed3687a0431a04531b6327f0f4aabcb0de2adb | [] | no_license | benjumanji/housepwned | 2d2daa786054531adbe692192c81cad5f4f16be5 | 887f34875d285aafbfa38594cd5d39a262d8ac0b | refs/heads/master | 2020-07-04T05:39:45.878024 | 2014-07-23T20:51:45 | 2014-07-23T20:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class HousepwnedPipeline(object):
def process_item(self, item, spider):
return item
| [
"edwards.benj@gmail.com"
] | edwards.benj@gmail.com |
6bc9b11127952bf70d28399bc2102d5fabac2edd | 38fc847f91a3dba5c407f1779513c7dccf04ab12 | /string_dispose_new.py | 126c09831b8fd22c8c549592ceb806a0c3fcf471 | [] | no_license | shanhx2000/Hack_cur | 867173e1550559eacd9755b40a97ab74a31f0a4b | 2ceee838022baff84201142620d9f815c7ca1768 | refs/heads/master | 2020-06-19T10:03:00.430855 | 2019-07-14T02:57:41 | 2019-07-14T02:57:41 | 196,668,960 | 0 | 0 | null | 2019-07-13T17:01:08 | 2019-07-13T02:26:57 | HTML | UTF-8 | Python | false | false | 2,981 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
#with open (file) as f:
# for line in f:
# do something...
import os
import re
import nltk
from nltk.tokenize import word_tokenize
from nltk.stem.wordnet import WordNetLemmatizer
dictionary = {}
force_stopwords = ['、','(',')',... | [
"coned@outlook.com"
] | coned@outlook.com |
48329fba254e4b07d3988292bb905c7739573dfe | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_217/run_cfg.py | 589bc3616bc9bbb96cd7a0726131bdbacc21691c | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
a292d226c79e5613f782f0ea465e9a03c06b0e6d | de725b742e69f38318c04cd44ac970e7135857a5 | /assets/forms.py | 0173d7e2fd8182e88243ee75191332c9c8f1868c | [] | no_license | haochenxiao666/itelftool | e5c0811b48e01d0eeff13d15d33b89960091960a | 8558dce6d97e7443c95513aa1389910c3902043f | refs/heads/master | 2020-04-14T22:55:46.732111 | 2018-10-18T09:00:44 | 2018-10-18T09:00:44 | 164,183,750 | 1 | 0 | null | 2019-01-05T05:05:32 | 2019-01-05T05:05:31 | null | UTF-8 | Python | false | false | 4,458 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from django.forms.widgets import *
from .models import Asset, IDC, HostGroup, Cabinet
'''
class AssetForm(forms.ModelForm):
class Meta:
model = Asset
exclude = ("id",)
widgets = {
'hostname': TextInput(at... | [
"420521738@qq.com"
] | 420521738@qq.com |
49b38f161f8835d372100339e64dd31ffa5f1974 | 2754b704fc1eacf70e0d99f301a7ed31e5376b34 | /Spoton/search/migrations/0005_auto__add_job.py | 80da31315014da5e053095a49c4100211ed98458 | [] | no_license | 2bethere/SPTest | 4e36745232917fe879eb9fe4204f2440941a98b3 | 0d25e92513c7e40a97e3c0fa55c8a3d46a402e50 | refs/heads/master | 2021-01-01T05:41:22.103400 | 2014-08-01T00:09:28 | 2014-08-01T00:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Job'
db.create_table(u'search_job', (
(u'id',... | [
"2bethere@gmail.com"
] | 2bethere@gmail.com |
38aef9c63c4f0620b06efcb7670a3ffe1b1044a4 | a8b0266fabd86ff4c1bc86d99a7b91856634f0ba | /cherrypy/test/test_conn.py | 98775a6259afed0d7c52cf36508f5015f2e42776 | [] | no_license | c3pb/wallhackctl | 5a704bc66a035898ed7d490ad6596257fffdc1e8 | 86e9ce09b32149566e50d7d1a880e6a7a86e4616 | refs/heads/master | 2016-09-06T14:57:31.967997 | 2011-02-16T18:54:36 | 2011-02-16T18:54:36 | 1,375,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,607 | py | """Tests for TCP connection handling, including proper and timely close."""
from cherrypy.test import test
test.prefer_parent_path()
from httplib import HTTPConnection, HTTPSConnection, NotConnected, BadStatusLine
import urllib
import socket
import sys
import time
timeout = 1
import cherrypy
from cher... | [
"matthias@grawinkel.com"
] | matthias@grawinkel.com |
d991e3d10bdb51337597176552296c3f3c534922 | 526176649fc3d37c87c06626a2e8fcb1cc840bf0 | /workshop/design3.py | 11374fab1b3f72e0bb5d5a2356529133a8583d9a | [] | no_license | rames4498/Bootcamps_and_workshops | cd193bb302f4b2ed9037750b07e35f6875415476 | 402ef143be7a52ae71e08cdf8b7f0ff35d502455 | refs/heads/master | 2022-09-22T04:49:10.657585 | 2022-09-13T07:06:36 | 2022-09-13T07:06:36 | 239,116,561 | 9 | 6 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from turtle import *
colors = ['red', 'purple', 'blue', 'green', 'yellow', 'orange']
for x in range(360):
pencolor(colors[x % 6])
width(x / 100 + 1)
forward(x)
left(59)
| [
"noreply@github.com"
] | noreply@github.com |
3ca015b9c9648f6db4d24057a4221f7acb6609ab | 1507348aa7121a1dd8d7af07b9bed6599d493b33 | /details.py | e5aa18850df2a6aa790cc8d6fb4feedbf2fad957 | [
"MIT"
] | permissive | naresh-bachwani/NITH_RESULTS_Portal | f0cc06e9ab36e5e123db9b73ff27fc36d1021ffe | 4748cddcb605ae9820c2a8ca188a7dd5fd029511 | refs/heads/master | 2020-04-11T19:03:41.136576 | 2018-12-16T16:41:40 | 2018-12-16T16:41:40 | 162,020,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # Import required packages
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.core.window import Window
from kivy.uix.listview import ListItemButton
# import dbraw file
from dbraw import *
# type of plot(SGPI OR CGPI)
global plot_type
plot_type=[]
# l... | [
"nbnb76543@gmail.com"
] | nbnb76543@gmail.com |
22851ce7e83e2aef32c5620caf346fae7a63488a | e2f507e0b434120e7f5d4f717540e5df2b1816da | /097-yield-2.py | e7bd0b03ff61e85bbac2470ad044513187273938 | [] | no_license | ash/amazing_python3 | 70984bd32ae325380382b1fe692c4b359ef23395 | 64c98940f8a8da18a8bf56f65cc8c8e09bd00e0c | refs/heads/master | 2021-06-23T14:59:37.005280 | 2021-01-21T06:56:33 | 2021-01-21T06:56:33 | 182,626,874 | 76 | 25 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Using yield
def f():
for i in range(100):
yield i # not "return"
# Why do you need this assignment?
g1 = f() # generator object
g2 = f() # another generator
print(next(g1)) # value from generator 1
print(next(g2)) # from generator 2
print(next(g1)) # again 1
print(next(g2)) # ...
print(next(g1))
print(... | [
"andy@shitov.ru"
] | andy@shitov.ru |
b4f738393d2222e9668e9e7f689cb0733806ef01 | 87dc1f3fc40565138c1e7dc67f1ca7cb84b63464 | /03_Hard/10_Knapsack_Problem/Knapsack_Problem.py | 4151b0f9027ccdcdfa7f6ccba3270994d39e40ac | [] | no_license | CodeInDna/Algo_with_Python | 8424f79fd3051dbc5861ba171ac2b33c76eec8b9 | a238e9e51effe76c530a4e0da7df871e45ec268a | refs/heads/master | 2021-07-25T08:33:42.475255 | 2021-07-20T16:53:48 | 2021-07-20T16:53:48 | 229,921,183 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | # ---------------------------------- PROBLEM 10 (HARD)--------------------------------------#
# Knapsack Problem
# You are given an array of arrays. Each subarray in this array holds two integer values and
# represents an item; the first integer is the item's value, and the second integer is the item's
# weight. You... | [
"ykarelia323@gmail.com"
] | ykarelia323@gmail.com |
1770d51d9366b71a8431fa338d98a9ae24c9472a | 45916bcec19f06e952d8dc5b690c5a40ac6d50d3 | /faculty/urls.py | e4b0c58a82a5a1029fb087bbd4106669218a2706 | [] | no_license | Rohitmotri/jcer-rest-api | 7eec30693bc4229bf5f67b7fefa3a6cdf6b86a89 | 934326ef3cb225953a600eb9544eb0ec3548ab45 | refs/heads/main | 2023-01-06T01:53:56.860843 | 2020-10-28T16:02:29 | 2020-10-28T16:02:29 | 306,625,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from django.urls import path
from faculty.controller.controller import (CreateAdminController,
GetAdminController,
UpdateAdminController,
DeleteAdminController)
urlpatterns = [
path('cre... | [
"rohitarunmotri@gmail.com"
] | rohitarunmotri@gmail.com |
3fb1d9e3ea37cbf120d2ade96202f33e483e029e | c832a78eb1cc4a4c7d5b82d1e3e29af1ceac4091 | /venv/bin/pyrsa-sign | eac0d7802ea70c495c657b75b8007ec3bc4080d3 | [] | no_license | scottwedge/reporting-system | 42b5a48a42251bc290bb474b0bd244ed0ee13ed4 | 59bb703824ca08dfac1550c1e28fc3bc1028e123 | refs/heads/master | 2022-12-25T13:21:04.059774 | 2020-09-24T03:24:39 | 2020-09-24T03:24:39 | 298,155,594 | 0 | 0 | null | 2020-09-24T03:07:57 | 2020-09-24T03:07:56 | null | UTF-8 | Python | false | false | 256 | #!/Users/loctek/Downloads/reporting-system-master/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import sign
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
| [
"zh"
] | zh | |
5fd75c0e6a3071d2c1d75effabeef72c4de692b4 | a580e56c8d2c62278549f91b61721169d1f8569c | /dojoc.py | 64592ff24fa74f357aa9ce0742887ee9807effd6 | [] | no_license | GustavoKatel/dojoc | c96f5e1c3ba02a02f563d765687bada8788faa55 | c829091775555c50a90fbc84b9039b0ff101411f | refs/heads/master | 2020-04-09T07:45:11.798663 | 2013-11-21T18:46:25 | 2013-11-21T18:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | #!/usr/bin/python
# Author: Gustavo Brito (GustavoKatel)
import sys, os, re, subprocess
from dojoc_test import DojoCTest
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
class DojoC:
types = { "%s":"char *", "%d":"int", "%... | [
"gustavobs.katel@gmail.com"
] | gustavobs.katel@gmail.com |
0f4debbac5c41257777ec1da622fbc2f30e437f7 | 81b384655e970623333971ed063d85ebfe940ed5 | /hallo/modules/furry.py | e0c6e24dcdc8f58336a441e2edb56cbd20652d5e | [] | no_license | wirenic/Hallo | c3c8a3f11dd1f03729385f2761e0a6b216c6e1d2 | 68595816fd146c4af35e3f1bc91c58cdc6fa741c | refs/heads/master | 2023-03-18T06:50:14.111226 | 2021-02-26T07:59:33 | 2021-02-26T07:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,300 | py | from hallo.function import Function
from hallo.inc.commons import Commons
class E621(Function):
"""
Returns a random image from e621
"""
def __init__(self):
"""
Constructor
"""
super().__init__()
# Name for use in help listing
self.help_name = "e621"
... | [
"joshua@coales.co.uk"
] | joshua@coales.co.uk |
fd3c08bf7ff6f7e08533bb9129c270b01118af5b | 565c69222d1736f98cf83c1a4e2d88416091c0cf | /tests/test_sort_complex_number.py | 1277de1278615bff19345d2f440b4cf6729cf30d | [] | no_license | lnarasim/250_problems | 466e9ac0a8845eb83c275591992552c4c143645e | 561efe86f06aad8b2ce4b7659323be4d730bde3d | refs/heads/master | 2022-11-05T15:24:31.493816 | 2020-06-04T16:56:46 | 2020-06-04T16:56:46 | 264,413,351 | 0 | 1 | null | 2020-06-04T16:56:48 | 2020-05-16T10:33:28 | Python | UTF-8 | Python | false | false | 1,170 | py | from pyproblems.complex_number_sorter import sort_complex_numbers
import pytest
def test_sort_complex_number():
assert sort_complex_numbers(4+5j, 5+8j,3j,4) == (3j, (4+5j), 4, (5+8j))
assert sort_complex_numbers(1,2,4,5) == (1,2,4,5)
assert sort_complex_numbers(1+4j,2j,4.5 + 3j,5j) == (2j,5j,1+4j,4.5+3j)
... | [
"m.jmsudhan@gmail.com"
] | m.jmsudhan@gmail.com |
2e445e4f56c622f6f5d41a6de407c6c9d92f5b20 | 83b8b30ebb633eecd29ca0a7a20cc43a293c9333 | /tests/basics/subclass_native2_list.py | 9ad0b77ef6dd1c7659097492eec0ebb77099b017 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | adafruit/circuitpython | 430ec895149d1eb814b505db39b4977a35ee88a7 | 506dca71b0cbb7af749bb51f86b01021db5483b3 | refs/heads/main | 2023-08-21T16:30:46.781068 | 2023-08-20T00:39:44 | 2023-08-20T00:39:44 | 66,166,069 | 3,806 | 1,560 | MIT | 2023-09-14T19:23:51 | 2016-08-20T20:10:40 | C | UTF-8 | Python | false | false | 587 | py | class Base1:
def __init__(self, *args):
print("Base1.__init__", args)
class Clist1(Base1, list):
pass
a = Clist1()
print(len(a))
# Not compliant - list assignment should happen in list.__init__, which is not called
# because there's Base1.__init__, but we assign in list.__new__
#a = Clist1([1, 2, 3])
... | [
"pfalcon@users.sourceforge.net"
] | pfalcon@users.sourceforge.net |
70df8c9f735c4c5148e1742989ea63e29fb574e9 | 32f624b68b1f9251321ddee4d40fc00c834c46fa | /ShortMe/src/shortener/models.py | 16e776e6c3d29f0d382fbf58c414c0578c9714b9 | [] | no_license | AnkurDahama/ShortMe | 8a03c2ab533924d34a59c18235740bd61b8ee53b | 165962816452ad8a7b8697157002afff37d5309c | refs/heads/master | 2021-01-23T14:06:42.755734 | 2018-04-11T06:21:38 | 2018-04-11T06:21:38 | 93,242,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
from .utils import code_generator, create_shortcode
class ShortMeManager(models.Manager):
def all(self, *args, **kwargs):
qs_main = super(ShortMeManager, self).all(*args, **kwargs)
qs = qs_main.filter(a... | [
"ankur.dahama@student.tut.fi"
] | ankur.dahama@student.tut.fi |
9ba139bcaa98b5c19be7ed4307c47d44abe13cff | 2db1a0038d26ccb6adc572b536cb5cd401fd7498 | /tryTen/Lib/site-packages/setuptools/py31compat.py | 0f1753a87be81de04522e4b1d674aee34dfb2e8c | [] | no_license | syurk/labpin | e795c557e7d7bcd4ff449cb9a3de32959a8c4968 | 04070dd5ce6c0a32c9ed03765f4f2e39039db411 | refs/heads/master | 2022-12-12T02:23:54.975797 | 2018-11-29T16:03:26 | 2018-11-29T16:03:26 | 159,692,630 | 0 | 1 | null | 2022-11-19T12:15:55 | 2018-11-29T16:04:20 | Python | UTF-8 | Python | false | false | 1,646 | py | import sys
import unittest
__all__ = ['get_config_vars', 'get_path']
try:
# Python 2.7 or >=3.2
from sysconfig import get_config_vars, get_path
except ImportError:
from distutils.sysconfig import get_config_vars, get_python_lib
def get_path(name):
if name not in ('platlib', 'purelib'):
... | [
"syurk738@students.bju.edu"
] | syurk738@students.bju.edu |
8131876bb62c14f5294f1792f0da4b600f2e059c | f2983a63e3e402f55c33d8d634453467fff4201b | /src/thomfx/util/graph.py | 77555d084b9c2394258164b043574c680738f9f4 | [] | no_license | ThomPuiman/thomfx-trader | af748e2334bfaca5ac61eceecfa4503411077a0f | 5e22140bc06635f2f9e9e1468af8cbb384d977b8 | refs/heads/master | 2021-01-22T07:47:24.753830 | 2017-02-13T17:13:10 | 2017-02-13T17:13:10 | 81,850,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from abc import ABCMeta, abstractmethod
class GraphAbstract:
@abstractmethod
def retrieve_data(self, instrument): pass
# @abstractmethod
# def draw(self): pass
| [
"TPuiman@vccp.com"
] | TPuiman@vccp.com |
480042958ddbf7fdce1f8de076f6e2e1849f75b3 | 1280843d603d367e589277fac54f571c0cb3a1e6 | /ML0101_Kmeans_clustering.py | 8aab80792065cd91806ab8813a3d3b4e89c6595d | [] | no_license | m-mgh/Project_DataScience | 8afa6b4fd61959e73a37862ecc927150b95cdabc | d674446d8615c45e309e95ad9e611892ea41ddc3 | refs/heads/master | 2023-01-03T19:07:31.169800 | 2020-10-28T02:18:05 | 2020-10-28T02:18:05 | 280,716,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 23:12:13 2020
@author: Mercedeh_Mgh
"""
import random
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.datasets.samples_generator import make_blobs
#creating our own random data set
#first we need ... | [
"13066023+m-mgh@users.noreply.github.com"
] | 13066023+m-mgh@users.noreply.github.com |
2d6a5abed2c76cfec59eb17ce5607c81c9fe669b | 0d22b1231fc1d66b0bcbda463a723dc44e1cd628 | /lesson_002/04_my_family.py | a1e7a012016ba479f00f52bf374c8691a6705209 | [] | no_license | Vladis90/pythonProject | 03133c59a77d2bbf1c20321f19fd8fbd970d4d2c | e3a306034e20fd7985b3e28b951c249306b4f5ee | refs/heads/master | 2023-08-19T19:50:32.046744 | 2021-10-29T16:01:35 | 2021-10-29T16:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # -*- coding: utf-8 -*-
# Создайте списки:
# моя семья (минимум 3 элемента, есть еще дедушки и бабушки, если что)
from typing import List, Tuple, Union
my_family = ['father', 'mother', 'son']
# список списков приблизителного роста членов вашей семьи
my_family_height = ['father', 183], ['mother', 165], ['son', 95]
... | [
"aa@gmail.com"
] | aa@gmail.com |
035d6ecea6b4ccc576382efc05661c81a944fa2d | 51000f5031cca82d77951bc22f6c6f1813ac2b7c | /notebook/utils.py | b1ae3b6503a0231e329c9a2e01e5c411ff6ec1f9 | [
"BSD-3-Clause"
] | permissive | EduServer/jupyter_notebook | c6b77f7d98e5c6f36b4b0ed27dcbce8b04e27d7c | 48a229dd3018ec80d82452f542b7e72f948dc6ce | refs/heads/master | 2020-04-28T04:29:19.450403 | 2019-03-12T02:33:45 | 2019-03-12T02:33:45 | 174,981,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,420 | py | """Notebook related utilities"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import ctypes
import errno
import os
import stat
import sys
from distutils.version import LooseVersion
try:
from inspect import isawaitable
... | [
"1067741@mochiwang.com"
] | 1067741@mochiwang.com |
90c673e500897ed1e29191a096b9044e21532118 | 9af3dc963bf937b9320261eb74874661d97caa40 | /client.py | 8c27c1a8f741c22df535d6072988de2fe2728e63 | [] | no_license | Camp-Butterfly/backendAPI | 85ee68345908dbf199e2b8cc4b476fe49aca7215 | bf9ca3cb687ef050d5dca10a3ec77787bdeb13c2 | refs/heads/locally-working | 2022-12-10T17:12:39.521402 | 2019-12-17T20:36:18 | 2019-12-17T20:36:18 | 228,474,526 | 0 | 0 | null | 2022-12-08T03:19:07 | 2019-12-16T20:57:19 | Python | UTF-8 | Python | false | false | 2,718 | py | from flask import Flask
from flask import request
from flask_cors import CORS
from flask_cors import cross_origin
#from gevent.pywsgi import WSGIServer
import grpc
import numpy as np
import requests
import tensorflow as tf
import os
import base64
import io
import PIL
import json
from tensorflow_serving.apis import pr... | [
"stephenjk@optonline.net"
] | stephenjk@optonline.net |
9f78758a5c032c4e90b6e5b71d8bb083e3f2a227 | d6c62ea503b9cd12f94036afd58e40743dabedd9 | /relief.py | 92b9675987b5ddca4b7a914b45d4006466302c14 | [] | no_license | better0123/reliefF-example | d2a9cc63a893d9863e9e4a15b01a4c630f27d584 | 8ab1df0ba77d4d978a4086d3e9c690d70011dfe6 | refs/heads/master | 2022-02-19T16:16:37.224842 | 2019-07-29T10:42:56 | 2019-07-29T10:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from ReliefF import ReliefF
import numpy as np
from sklearn import datasets
import pandas as pd
#example of 2 class problem
data = np.array([[9,2,2],[5,1,0],[9,3,2],[8,3,1],[6,0,0]])
target = np.array([0,0,1,1,1])
fs = ReliefF(n_neighbors=1, n_features_to_keep=2)
X_train = fs.fit_transform(data, target)
pr... | [
"noreply@github.com"
] | noreply@github.com |
357a3f80b42be32bab6b22b6cf20867bf994258b | f26521284741a1f730e2d52de7426807247e08b6 | /Python/From comment to code/main.py | 2bdaedd8e5de364f363e71f1890a5162d37eb455 | [
"MIT"
] | permissive | drtierney/hyperskill-problems | 0e6fe8ca418d1af700a5a1b1b2eed1f1f07b8e9e | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | refs/heads/main | 2021-10-25T07:02:50.838216 | 2021-10-16T19:08:49 | 2021-10-16T19:08:49 | 253,045,232 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | # prints "ok" without quotes
print("ok")
| [
"d.r.tierney@hotmail.co.uk"
] | d.r.tierney@hotmail.co.uk |
2831bc7d419bce7512e1ece5bc5f1630473b2e42 | ec6d2cdd96be805a4a011b14aa042d05bc41eb91 | /odd_occurencies_in_array.py | 62d362033d16aba361940b20095909bfa8999e2b | [] | no_license | evrenesat/codility_answers | 9538121f791f0a2594bacd1c0123f1dbe7831e34 | a031e93841d23c47763c24d3efbbf55de14aa799 | refs/heads/master | 2021-01-17T17:27:49.005627 | 2016-08-15T07:47:46 | 2016-08-15T07:47:46 | 65,673,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # -*- coding: utf-8 -*-
"""
A non-empty zero-indexed array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired.
For example, in array A such that:
A[... | [
"sleytr@gmail.com"
] | sleytr@gmail.com |
d8e06bb45fd1f90be90bb45e0c0cc52f227b3187 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-eps/huaweicloudsdkeps/v1/model/link.py | a9a92750cec83aea4939f5cad6e9fa7a51be5167 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,044 | py | # coding: utf-8
import pprint
import re
import six
class Link:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fd394c02d2b2cee07e518e829a25fca4ea11bebb | 39ac12bf42f5137562ed12f63fc3c4ff455501cc | /python-advanced/Shallow-deep-copying/shallow-deep-copy.py | de69542e4b605e0b3fc2d52d3ff8e0ff43d8309a | [] | no_license | tiwariutkarsh422/python-advanced | f4f545bac120e143c8f77d566bcda13065c36085 | 1567a727deb561a2a7446550dd619718ad5b779f | refs/heads/master | 2022-10-31T22:53:53.667154 | 2020-06-04T13:47:34 | 2020-06-04T13:47:34 | 267,061,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import copy
original_list = [2, 4 ,['ada lovelace'], 1965, [7,8,9], [11, 12, 13]]
''' Shallow copies can be created using factory function such as list(), dict() etc.
However shallow copies only create references to the child object present in the original lists.'''
shallow_copy_list = list(original_list)
print... | [
"noreply@github.com"
] | noreply@github.com |
4273bdd56e2e81b01ff48d2a502388a369e79b17 | e3f7f42caec6b37095d6d2462fb1b0e557d30422 | /server/test/test_tasks.py | 37ffe2f8c16a1393a94b0c6b10c53d7152a444df | [] | no_license | CUBRID/cubrid-manager-server-9.3.0 | 8a6a3aa0a096e74110108d67976bb644c2f47ae8 | 707f164e60b084eee6c72658b8bdb4dd5e6a890e | refs/heads/develop | 2021-07-07T10:03:25.331737 | 2021-04-05T05:00:59 | 2021-04-05T05:00:59 | 233,765,494 | 0 | 4 | null | 2021-04-05T05:00:59 | 2020-01-14T05:43:18 | C++ | UTF-8 | Python | false | false | 3,546 | py | #! /usr/bin/env python
import httplib,urllib
import json
import struct
import os, sys
def findport():
cubrid = os.environ.get("CUBRID")
conf = cubrid + "/conf/cm_httpd.conf"
cwm_find = False;
cf = open(conf, "r")
for line in cf:
idx = line.find("cwm.cubrid.org")
if idx > 0:
... | [
"hwnam@cubrid.com"
] | hwnam@cubrid.com |
5a66a6cfa1ee27858fb8d075bb59744127503cf4 | a64a465700bbae8443ff3b38c45e6f37b89e2f59 | /overview/admin.py | a3e0735ba663daf92b009f7e9db2c312af3c3c7e | [] | no_license | Bencbabcock/4dafuture-website | 8debcdc8bf9bd8dab7407b976bced1fe7b7213bc | 73206b916699d9a1398e6af95036477c7fdeb236 | refs/heads/main | 2023-03-12T15:35:41.297864 | 2021-03-05T16:00:46 | 2021-03-05T16:00:46 | 344,527,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.contrib import admin
from .models import Announcement
# Register your models here.
admin.site.register(Announcement)
| [
"bencbabcock01"
] | bencbabcock01 |
26e2176af4f3535cb88f8d4a8b4e890c0adf5c2a | 883c09284c28311371561b7b14a0494396d010a8 | /symkala_env/lib/python2.7/site-packages/tinys3/util.py | 3c95a282f80031d25c511eab72b12f45f73ab7fe | [
"Apache-2.0"
] | permissive | bopopescu/symkalaResearch | dd2e5c799aed2bef89c213fac9a84b7858b68ed4 | 5c2bc918f8f4598ed92e0ba482a77acca25ba3ba | refs/heads/master | 2022-09-30T15:18:58.028066 | 2019-12-03T00:17:30 | 2019-12-03T00:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import os
class LenWrapperStream(object):
"""
A simple class to wrap a stream and provide length capability
for streams like cStringIO
We do it because requests will try to fallback to chuncked transfer if
it can't extract the len attribute of the object it gets, and S3 doesn't
support chu... | [
"will@tulcolabs.com"
] | will@tulcolabs.com |
34a1e201add585aa04483afc9282d5dd3ebcab53 | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Linked List/148.Sort List.py | df0485a4e3990534fe5b2bb38f8196871282c2ac | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | # coding=utf-8
'''
Sort a linked list in O(n log n) time using constant space complexity.
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
归并排序,最佳时间复杂度O(n log n) 最坏的时间复杂度O(n log n)
由于题目对时间复杂度和空间复杂度要求比较高,所以查看了各种解法,最好的解法就是归并排序,... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.