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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d209ca7598bd6aad4f97e2d1815b6f5c2498a8a5 | ce6d42c06c23b16d938903da7dd50192500ec4cf | /cogs/CommandeUser.py | b3e5b988f0e2663a9ec46cf7bb006b511813a7bf | [] | no_license | LeigerMax/Discord_MaxBot | edcf4da36b739c252be639d4d107d24ac1e55e42 | 411a281626cff109b9a94904a0ce25eba5b5cb2c | refs/heads/master | 2023-02-03T03:00:53.834654 | 2023-01-22T17:49:06 | 2023-01-22T17:49:06 | 265,028,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import discord
import random
from discord.ext import commands
class CommandeUser(commands.Cog) :
def __init__(self, bot):
self.bot = bot
#Events
@commands.Cog.listener()
async def on_ready(self):
print('Bot is online.')
#Commands
@commands.command()
async def ping(self,ct... | [
"puissantmax12@gmail.com"
] | puissantmax12@gmail.com |
52ecd2311054f37136b87690f02c021ad7a3aea2 | c0da8ad92777ec4379ee743c84361e986a05fd0a | /Girls21.2/Great/great.py | 1437ce80ec6cf250f193fded77c7e632579e8e70 | [] | no_license | EliteGirls/Camp2017 | 2e850994fa25ad330b351a557c0ef218aab2c334 | 7cbf0c9469954e9987b5d9835df5b69b5e82a411 | refs/heads/master | 2021-01-20T07:24:21.482465 | 2017-08-27T09:32:49 | 2017-08-27T09:32:49 | 101,535,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print "hello"
print "love" | [
"noreply@github.com"
] | noreply@github.com |
57bf922011e5da0a0dec90a4b47a9a062044ecf6 | 21a402f4eefa6c89bee81a768132ea68f2f2c564 | /ysib/base/migrations/0009_auto_20210514_1442.py | c93f13627ed24ffe2920b6aef8085d8682f394ec | [] | no_license | erelbi/ERP-MasterDefence | cfe34c68fce945f1cf1b3828213a99a4207da8a2 | 85b4be8156c9a84e2b942ada0fee57ea54904649 | refs/heads/main | 2023-05-31T21:17:06.080508 | 2021-06-27T15:44:59 | 2021-06-27T15:44:59 | 377,301,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Generated by Django 2.2.22 on 2021-05-14 11:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0008_auto_20210510_2309'),
]
operations = [
migrations.RemoveField(
model_name='valf_govde',
name='kayit_tarihi',
... | [
"bilselergun@gmail.com"
] | bilselergun@gmail.com |
72cf3552f43eecb8a3f127352c2a44d056fd0d50 | 7d644f600d477f7f81168bf5487f9c5ec4ff2b59 | /migrations/versions/20190309_12-12-25__only_allow_unique_keys.py | 0543ea081728ec8917905523ff40e30473151066 | [
"MIT"
] | permissive | busy-beaver-dev/busy-beaver | 642ea30de0651b45ddc0461d4432cacf8a75518b | 5e3543f41f189fbe4a50d64e3d6734dc765579b4 | refs/heads/master | 2022-12-11T00:36:55.564575 | 2021-08-28T20:53:32 | 2021-08-28T20:53:32 | 158,856,915 | 60 | 20 | MIT | 2022-12-08T05:15:56 | 2018-11-23T16:40:37 | Python | UTF-8 | Python | false | false | 693 | py | """only allow unique keys in key-value store
Revision ID: 73b592804bfa
Revises: c2aead9ff6d9
Create Date: 2019-03-09 12:12:25.914048
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '73b592804bfa'
down_revision = 'c2aead9ff6d9'
branch_labels = None
depends_on = ... | [
"noreply@github.com"
] | noreply@github.com |
80a623981f626d100a6aa5af3109334571a2a86e | d2df52e147f95a81dcf442ca0d04dd877cd9faf0 | /simplesocial/urls.py | d29f60d34700a9321c2668e4b4bfd6a315efffe3 | [] | no_license | PuneethVP/crm-live | 62ef2c32fab112e777951b8027c7df0d6749e8d1 | 3d78e405515056e009f4a9aeb221e006bb6648f9 | refs/heads/master | 2022-12-10T08:39:23.232682 | 2020-09-02T08:05:38 | 2020-09-02T08:05:38 | 285,344,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | """simplesocial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"puneethv08@gmail.com"
] | puneethv08@gmail.com |
ace88f8009606790b7e10ee4830a679112ca90a7 | 4d7961762c3ded9f19dfb1f69add0e9aa05f3ee9 | /code/le_matriz.py | 012e2ccb520f4a46d442fe39e2d570211d47f69f | [] | no_license | luisavitoria/introducao-curso-basico-python | 1a27e8f5243286d4d201ef569c7ef905266e0f33 | 06efc1f4780320799b77f13a14af2bcf8764d35f | refs/heads/master | 2022-12-29T01:08:54.380026 | 2020-10-20T00:05:00 | 2020-10-20T00:05:00 | 291,143,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | def cria_matriz(num_linhas, num_colunas):
matriz = []
for i in range(num_linhas):
linha = []
for j in range(num_colunas):
valor = int(input("Digite o elemento [" + str(i) + "][" + str(j) + "]: "))
linha.append(valor)
matriz.append(linha)
... | [
"luisa.vitoria@hotmail.com"
] | luisa.vitoria@hotmail.com |
9f96fd3f58ec3d89104032c6ea6e0dae34b42373 | 11510524cdb77baa4c9982be3f4a4801c902cca6 | /game_system/shadowrun/character.py | 0df663bdfd9085228d971824804d6c6844319e31 | [
"BSD-2-Clause"
] | permissive | dwilliams/rpg-character-manager | 0787f9f5747167faa603e17ee114cd678b3d8666 | 23c6905ec4b674be1f1a440282862602a112f1e7 | refs/heads/master | 2023-03-31T00:31:53.869912 | 2020-05-26T15:55:29 | 2020-05-26T15:55:29 | 126,089,088 | 0 | 0 | BSD-2-Clause | 2020-05-26T15:55:31 | 2018-03-20T22:11:26 | Python | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/env python3
### IMPORTS ###
#import logging
from game_system.exceptions import GameSystemMismatchException
from game_system.none.character import Character
from game_system.shadowrun.item import ShadowRunItem
### GLOBALS ###
### FUNCTIONS ###
### CLASSES ###
class ShadowRunCharacter(Character):
gam... | [
"dwilliams@port8080.net"
] | dwilliams@port8080.net |
2b689a5b3c3d0097066a25f9ba2cfac34a59247f | 7b60c68ddda39ef82f5d49404bbcf62cc83e4860 | /crawl/beautifuksoup_css_mu.py | 4289b4574115bb7d8aa6ac2ca49f2c85612e9e95 | [] | no_license | joycejhang/learningml | da802e0ab9cfb6cce89791561870c0078cfaaaf9 | 884ed0541bcb257bb82e77c126ab77c927fe9add | refs/heads/master | 2020-04-22T15:04:58.445844 | 2019-07-04T11:31:03 | 2019-07-04T11:31:03 | 170,466,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 28 11:03:06 2018
@author: Joyce
"""
from bs4 import BeautifulSoup
from urllib.request import urlopen
# if has Chinese, apply decode()
html = urlopen("https://morvanzhou.github.io/static/scraping/list.html").read().decode('utf-8')
#print(html)
soup = Beautif... | [
"noreply@github.com"
] | noreply@github.com |
02b9cc7f10ef5ab94df4b6ec5346e54cdf809652 | d085bb82fd46851aa413f0dbfbdcea7a1fdc463c | /ADODBConn.py | dac33d12f874adfc7e8d1a4847343bac59705958 | [] | no_license | kcolemanbd/General-Database-Scripts | 40fa96bcfdd8da25965ff51fc9ce92d4adecb6e9 | 7a574fcbf07fbb352c23da4a40d45a6ed01a4ca7 | refs/heads/master | 2020-06-11T19:46:12.788599 | 2016-12-05T14:01:54 | 2016-12-05T14:01:54 | 75,626,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | # ADODB-Connection-in-Python
# ADODB Connection written in Python
from System import *
from System.Windows.Forms import * #Used for message boxes during testing
class DataBaseConnect(object):
def get_RSCount(self):
return self._RecordCount
RSCount = property(fget=get_RSCount)
def get_AbsPosition(self):
retur... | [
"noreply@github.com"
] | noreply@github.com |
95df632cc35876fdfd025551b6c0999836875f27 | 9aa629ba31a6cf47d04d26669383c28ed817ea01 | /third_party/icu/icu.gyp | a981d3107a13b967067a9424620478d23b2d521d | [
"Apache-2.0",
"ICU",
"LicenseRef-scancode-unicode"
] | permissive | ckelsel/chromium-4.0.210.0_p26329 | 470e671689e45f2c6ba3c5801e13723d2b83a394 | 378d30c9259f1a39c3cca4345eb99fd651871970 | refs/heads/master | 2020-04-03T09:57:31.675416 | 2018-03-24T05:36:48 | 2018-03-24T05:36:48 | 62,807,608 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,665 | gyp | # Copyright (c) 2009 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.
{
'target_defaults': {
'defines': [
'U_STATIC_IMPLEMENTATION',
],
# TODO(mark): Looks like this is causing the "public" include direc... | [
"ckelsel@hotmail.com"
] | ckelsel@hotmail.com |
c9858d2e9f96f0418fe039a31951eb06a7819869 | fb7fcde692a11c7c3aeb6aa3e2ee820ecc25ff57 | /locationMarker/models.py | 67758569b988d9aee15ae0dc70e2e85be45ff7e5 | [] | no_license | drowsy810301/NTHUFC | f947677ba11c18713e55cfc85de51bec0ab39ec4 | 9fff43b00f9bb5eb5495ae6b5b1d2d6b5f3ae458 | refs/heads/master | 2021-01-10T12:21:24.206841 | 2016-02-03T14:52:47 | 2016-02-03T14:52:47 | 45,533,808 | 0 | 8 | null | 2016-03-22T14:05:07 | 2015-11-04T11:10:09 | JavaScript | UTF-8 | Python | false | false | 508 | py | from django.db import models
# Create your models here.
class Marker(models.Model):
title = models.CharField(max_length=30);
latitude = models.DecimalField(max_digits=18, decimal_places=15);
longitude = models.DecimalField(max_digits=18, decimal_places=15);
def __unicode__ (self):
return self.title;
class DemoP... | [
"tony333ts@gmail.com"
] | tony333ts@gmail.com |
b9ed62f6b1270a07e9c32afe9088fc2ecadc47b7 | ea12aa1ed42fe86c8beb3a00db56604849c32a40 | /01-webotron/webotron/__init__.py | be0332c1bf02c02e71502b4eaa14d1dda3c6426b | [] | no_license | WangYunzhang/automating-aws-with-python | 4e19161e8f7167c449eca80ea1be3d7edbfbfc3d | f5f56ef779030f2723f72cf057b5248c4c97ebf6 | refs/heads/master | 2022-02-06T23:09:14.047152 | 2018-09-16T06:45:24 | 2018-09-16T06:45:24 | 147,093,022 | 0 | 0 | null | 2022-01-21T19:38:19 | 2018-09-02T14:35:15 | Python | UTF-8 | Python | false | false | 30 | py | """Package initial module."""
| [
"wangyz180@foxmail.com"
] | wangyz180@foxmail.com |
2b0ebdec36de11a07828fd4bd34d5b24688b8804 | 330b8a33240a2b883cc2be214bd054a1b0d7e15b | /flatten_list.py | dda0162ed442e51deab601a15b34f378fd910bf0 | [] | no_license | k1xme/leetcode | 808148093de601924d8a41ba4c6b4a0328e36d78 | 87bb962b07f49353ea96b544838c368f2ee0cf56 | refs/heads/master | 2020-03-30T05:15:14.409887 | 2015-10-23T02:26:22 | 2015-10-23T02:26:22 | 35,513,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class ListNode(object):
"""docstring for ListNode"""
def __init__(self, val):
self.val = val
self.next = None
self.opt = None
def flatten_list(l):
dummy = ListNode(0)
dummy.next = l
previous_node = dummy
while previous_node.next:
if previous_node.next.opt:
# Do falltening here.
tmp = previous... | [
"longkexi@gmail.com"
] | longkexi@gmail.com |
2d1579e96154b06fb88b2f5c8bdb55248ce50544 | 2dca6462c43393d40aded8e790ada14f089daeb3 | /ucsmsdk/mometa/mo/MoInvKv.py | 54f1e49fbe9da246d32485c585e988eb299caba8 | [
"Apache-2.0"
] | permissive | seils/ucsmsdk | f8a0cd4d40bfa97d3cdc005b49d6ae1a7a5cad8d | 4e16aac6ed5c3620f67f38e9eb2eb0d13d3a3bb3 | refs/heads/master | 2021-09-06T12:29:00.257407 | 2018-02-06T14:29:21 | 2018-02-06T14:29:21 | 110,891,007 | 0 | 0 | null | 2017-11-15T21:55:01 | 2017-11-15T21:55:00 | null | UTF-8 | Python | false | false | 2,756 | py | """This module contains the general information for MoInvKv ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class MoInvKvConsts:
OWNER_INVENTORY = "inventory"
OWNER_MGMT = "mgmt"
TYPE_IPV4_ADDR = "ipv4-addr"
TYP... | [
"noreply@github.com"
] | noreply@github.com |
57eb43417bd20b75f6c126e37b186c8b79cdad4c | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /openslides_backend/action/actions/theme/create.py | cfc24dfc000b85bd1c397ed32265f40dd3f2792e | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 1,802 | py | from typing import Any, Dict
from ....action.mixins.archived_meeting_check_mixin import CheckForArchivedMeetingMixin
from ....models.models import Theme
from ....permissions.management_levels import OrganizationManagementLevel
from ....shared.util import ONE_ORGANIZATION_ID
from ...generics.create import CreateAction
... | [
"noreply@github.com"
] | noreply@github.com |
4767823cf140275c19c3e7749cb4b64f113496d2 | 6cb8cda6457df6aec3f71756534b6f2dab148f4c | /Python-Stack/Flask_MySQL/friends_create_read/bin/wheel | 090a5d5bbb55533a9c9129e1ad54967352a7c671 | [] | no_license | nadirspatel/codingdojo | 57b5a1c465bd71b941eb4ef092210a4de6e69c56 | b22c5e78de2c391207332a3267f5c5f8ee93bdff | refs/heads/master | 2022-12-25T02:13:56.952125 | 2020-01-07T03:13:52 | 2020-01-07T03:13:52 | 231,863,229 | 0 | 0 | null | 2022-12-10T14:06:33 | 2020-01-05T03:42:30 | Python | UTF-8 | Python | false | false | 293 | #!/Users/codingdojo/Documents/CodingDojo/python-stack/flask_MySQL/friends_create_read/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nadirspatel@gmail.com"
] | nadirspatel@gmail.com | |
4cb2b460d6fc7f782ca70373bfbc121de72a1105 | 755b60852fd6eb4299df455f05dbb5e682b6923b | /async_crawlers/crawler_0_0_1.py | dd7c1f91b7b094daf6156ceefded62382f2c63b4 | [] | no_license | biandour/Python-lessons | d43d7eacf240332bbc8e12a34707737eb764a0b2 | 08fa07b3f86a91233fbef2e9426068271a9ef4eb | refs/heads/master | 2020-03-23T04:37:45.039808 | 2019-01-29T10:02:32 | 2019-01-29T10:02:32 | 141,095,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | import asyncio
import aiohttp
from lxml import etree
import pprint
import re
import json
start_url = 'https://new.qq.com/ch/finance/'
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN,... | [
"biandour@qq.com"
] | biandour@qq.com |
30d86f0a48b91ebfc1679a140bbe068c43f4ffe4 | 5438b4c2e2d47f7e837b8694b00a9f31ba7e3dc5 | /log-files/hsr/Mar-02_06:05:25/train.py | d56c6436e80744a96236a4b98f785f807ff15107 | [] | no_license | himlen1990/rl_test | 4af7aca6b7e94009610a172d2a6b7ae1bd8a0afe | bc9a2a234089b29d930375a145bb0e8071ecf09f | refs/heads/master | 2021-01-25T13:11:17.413357 | 2018-03-02T06:15:33 | 2018-03-02T06:15:33 | 123,536,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,420 | py | #! /usr/bin/env python3
"""
PPO: Proximal Policy Optimization
Written by Patrick Coady (pat-coady.github.io)
PPO uses a loss function and gradient descent to approximate
Trust Region Policy Optimization (TRPO). See these papers for
details:
TRPO / PPO:
https://arxiv.org/pdf/1502.05477.pdf (Schulman et al., 2016)
Di... | [
"himlen1990@gmail.com"
] | himlen1990@gmail.com |
f6779f0a758710ebdf70c583f8c36318b52d34f0 | 9e384fe1434a741cc74477439eae623eb209bdd2 | /IOT_dashboard/try/settings.py | 5f546d5badd30a19228d9d9ff8a90204c2548f6d | [] | no_license | glthrivikram/IOT_dashboard | 15fe308cf95b493662c1ce93c2303b08b9403caf | 28d53a70a5e86da6733118a045c85859b02b942b | refs/heads/master | 2020-11-30T03:38:49.594758 | 2019-12-30T05:51:53 | 2019-12-30T05:51:53 | 230,290,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | """
Django settings for try project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impo... | [
"noreply@github.com"
] | noreply@github.com |
efc7e0e6f4eeae2a0226ec1569a0cea893878697 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/csrc_reply_20210204142902.py | e86cb08dbc1e87888c905e9f2d8605734a986bf1 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : csrc_reply.py
@Time : 2021/02/04 14:14:51
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
# 证监会发行监管部首次公开发行反馈意见爬虫
from bs4 import BeautifulSoup
from urllib.parse... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
1480d3ec74d2456a07a2e37711cfc615b0afee05 | c4817214aed2fd9090fbe30575005a5d7a53834c | /code/cross_val_svm.py | 6e9e459fd6df690b437e9fe3c28f0d132ccc2f39 | [
"MIT"
] | permissive | Rockysed/PSC_classification | 4b43298eba034d6fdcc00aba2a5b62000aed76b9 | 1815b673ac9374d9d2abd08ba0f1f43597316dee | refs/heads/master | 2020-04-27T23:36:07.920141 | 2019-03-10T06:49:45 | 2019-03-10T06:49:45 | 174,782,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 1 14:08:03 2019
@author: rocco
"""
import h5py
from sklearn.ensemble import RandomForestClassifier as RFC
from sklearn.decomposition import PCA
from sklearn import svm
from sklearn.model_selection import train_test_split
from sklearn.model_selection import G... | [
"noreply@github.com"
] | noreply@github.com |
db3e86a824e045824bd23d68cc9fa7e1171705e5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/model/show_evaluation_project_status_response.py | 32b633c65bfa9cdce52440b82e2516ca3572dfae | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,392 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowEvaluationProjectStatusResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7848e41bfb1b480d355fd8e7bef11567895db5db | 5a99a6f23040f31d6bebeb1781b166c9550105b8 | /Narmadiya/migrations/0023_blooddonor.py | af0f92841e18c46a53020729507df39414fda2db | [] | no_license | MAPx-IT-Solutions/Narmadiya-Brahmin-Samaj | 69e3afb1fba66e93381477cb862fc153aa093c79 | e5bc32b2156dc37d1f0181b768bea4d90083d2c2 | refs/heads/master | 2022-11-14T01:08:03.358789 | 2020-06-26T12:29:57 | 2020-06-26T12:29:57 | 275,145,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 2.2.4 on 2020-06-01 18:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Narmadiya', '0022_auto_20200531_2353'),
]
operations = [
migrations.CreateModel(
name='BloodDonor',
fi... | [
"noreply@github.com"
] | noreply@github.com |
00288fcdb08e386f17101b17c3dce8dd593ba98f | 5a17d7e2c6d4a30fbe8ca258e5e72c09d421abac | /quantifyscripts/generateReport.py | 48a3be72596088b0086e7da051ccc6a13b398219 | [] | no_license | wulongict/LWBMatch | b45fe8b9958af66bccaeed875e249e6ae4466b33 | f0172d5e84d3109a79525129fac5b62ef022b08f | refs/heads/master | 2021-01-19T02:28:07.281176 | 2016-09-15T15:16:56 | 2016-09-15T15:16:56 | 47,192,479 | 1 | 1 | null | 2017-08-23T17:55:13 | 2015-12-01T13:51:16 | C++ | UTF-8 | Python | false | false | 9,311 | py | #!/usr/bin/python
# Python 2.7 Required
# Generating several summary files for png and jpg figures
# Input:
# path of all the figures
#
#
# Output:
# Several HTML files, each contains some figures about the alignment result
#
# -----------------------
# Author: L. WU
# Date: Aug. 18, 2016
# ------------------------
... | [
"wulongict@gmail.com"
] | wulongict@gmail.com |
3895a1a1de5a03a4c3886e48d6956cae9eca8af3 | 599f9fa7a482db782e57a990af8f2d90eb05ad88 | /HackerRank/30 Days of Code/More Exceptions.py | b75571b70356ac92368cb75cd389847fdcded50a | [
"MIT"
] | permissive | will-data/Self-Study-WIL | 353d68bae0bacb7c3bc47ef25cf8bffa797f1ca8 | 69d627c65130fcfa23f27f97948a20107bb33394 | refs/heads/master | 2021-05-17T11:26:12.164960 | 2020-07-23T07:59:18 | 2020-07-23T07:59:18 | 250,754,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #Write your code here
class Calculator:
def power(self, n, p):
# This is my first code to raise custom Exception, including a message.
if n < 0 or p < 0:
raise Exception('n and p should be non-negative')
else:
return(n**p)
myCalculator=Calculator()
T=int(input())
for i in ra... | [
"uillee0519@gmail.com"
] | uillee0519@gmail.com |
d23facb8aa301aa21a5529a832694e258dc33e2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_138/ch82_2020_04_11_22_11_44_249634.py | 5db60cc74f33a51436b8f74d6967226febdf2be1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | def primeiras_ocorrencias(string):
dicionario={}
i=0
for a in string:
if a not in dicionario:
dicionario[a]=i
i+=1
else:
i+=1
return dicionario | [
"you@example.com"
] | you@example.com |
2e7c9b3525bfa87a6aabdb81158e2cb030a87cbb | 2f9dd97f4b6f8bf164d8550b46bfe6313dc84c6c | /src/pmr2/bives/view.py | dd8eb581ac9f986ad1333cf04a74064e6054d2fd | [] | no_license | PMR2/pmr2.bives | 89ec960283883e218c9b35455a84ac1ad46e57c0 | d9273df7a8eb97d707ca14eeab6def3a5d01df3f | refs/heads/master | 2021-05-15T02:27:09.348400 | 2020-01-17T01:53:31 | 2020-01-17T01:54:37 | 34,535,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import json
import requests
import zope.component
from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile
from plone.registry.interfaces import IRegistry
from pmr2.z3cform.page import SimplePage
from pmr2.app.workspace.browser.browser import FilePage
from .interfaces import ISettings
registry_prefix ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
8b565ed788ba16d16b1c1e81a6628ccdbffd461b | c2cf4cc33fa4b9b5fc1c5149ba3dba80f8eeee5d | /centroid_method/face_tracker.py | 95d2a0232f353ae17ea5f5684679a519c4654900 | [] | no_license | Masao-Taketani/object_tracking | d44b962c993beefd140b7ef05ecb5dfb573468b4 | d17388946224bcecfed429828f66caa1af7be6e2 | refs/heads/master | 2020-09-10T08:13:51.420719 | 2019-12-10T09:34:23 | 2019-12-10T09:34:23 | 221,698,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from centroid_tracker import CentroidTracker
import imutils
from imutils.video import VideoStream
import numpy as np
import argparse
import time
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--prototxt", default="face_model/deploy.prototxt", \
help="path to Caffe prototxt file")
ap.ad... | [
"taket003@umn.edu"
] | taket003@umn.edu |
3bb7d4477f58359ee45b17f8bad9c91708cb18f6 | 34b34b309c1b1192566b5dc22582cdff100b1f83 | /ch01_overview/09_namedtuples.py | a3e7e12a5012292c9850c9db5916635b5b701fee | [] | no_license | aakashp4/Complete-Python-3-Bootcamp | ef96ed492c14f8e7163ec992afe35f2de6e79972 | fb6c63e53056eaf28e7dd98eaf8240762bb5b5e9 | refs/heads/master | 2020-09-25T03:07:40.215952 | 2020-01-15T21:29:28 | 2020-01-15T21:29:28 | 225,903,535 | 0 | 0 | null | 2020-01-15T20:42:16 | 2019-12-04T15:53:49 | null | UTF-8 | Python | false | false | 482 | py | from collections import namedtuple
Contact = namedtuple('ContactRecord', 'first last age email')
records = [
Contact('John', 'Smith', 43, 'jsbrony@yahoo.com'),
Contact('Ellen', 'James', 32, 'jamestel@google.com'),
Contact('Sally', 'Edwards', 36, 'steclone@yahoo.com'),
Contact('Keith', 'Cr... | [
"noreply@github.com"
] | noreply@github.com |
4fa9d98f45102c48c7469974acd040bd0f2a1178 | b4e7b990fd9ad7c1aab06a938e6ca6f25c600c3d | /EcommerceProject/settings.py | 8f9851fc788bc10b69f089e39e04cf7ba6ad02a4 | [] | no_license | SnehalNivsarkar/E-commerce | 851241ce015bb4ed6fcc4846540c0a1e4956c648 | 7eee74b20e2cdbb235af1881e57952fd42cb6131 | refs/heads/main | 2023-03-01T13:58:16.245263 | 2021-02-02T06:45:05 | 2021-02-02T06:45:05 | 335,168,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | """
Django settings for EcommerceProject project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import... | [
"snehal.nivsarkar1@gmail.com"
] | snehal.nivsarkar1@gmail.com |
686026309c61b8dd1487954fbc1b52de208c5857 | 82d48141590cb1a2bcd22bbce3992523978639f3 | /charges_test.py | 2807f1e43bc75858e44bfbd12d9cbbed20614c6e | [] | no_license | dule8888/Python_code | 2062f24b382def70d2de546ccb5e45ee4f6d97e1 | a0fbfcc690188696876276269c417852ed33ca1c | refs/heads/master | 2020-05-25T00:37:37.396988 | 2018-08-17T21:21:33 | 2018-08-17T21:21:33 | 84,893,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 29 14:37:47 2017
@author: ebay
"""
import csv
import pandas as pd
longlist = []
with open('fedex_charges.csv', 'r') as csvfile:
reader = csv.reader(csvfile)
for lines in reader:
for i in range(1,len(lines),2):
shortlist = []
... | [
"noreply@github.com"
] | noreply@github.com |
fd35c54e1fa82f624c63b4fa96fc49e7a4b26b09 | 9f112cd0aeb1447dee06ded576d99b61701cbdc3 | /ec-backend/src/ad/urls.py | a8546f87a5cd8ac17f23da1a35b3ed6db41309d3 | [] | no_license | ForeverDreamer/embarrassment-cyclopedia | 44e13fbd7210ebc634d0fbab321c0f4598072ff3 | f69bc88a6a8e734cbb3d37ab173f557708653789 | refs/heads/master | 2023-01-10T17:20:44.181077 | 2020-07-15T03:20:27 | 2020-07-15T03:20:27 | 206,903,622 | 0 | 0 | null | 2023-01-07T09:30:23 | 2019-09-07T02:22:09 | JavaScript | UTF-8 | Python | false | false | 251 | py | from django.urls import path
from .views import (
AdInfoListView,
AdInfoDetailView,
)
urlpatterns = [
path('', AdInfoListView.as_view(), name='adinfo-list'),
path('<str:pk>/', AdInfoDetailView.as_view(), name='adinfo-detail'),
]
| [
"499361328@qq.com"
] | 499361328@qq.com |
13dd9249874231898bf13cc8115e6bf9455b9576 | 4780a79893db081b0904fcbcee8a8d1087a21e8c | /app.py | a14230a0ecc1d1b76af346f9091ba03a8c5b252c | [] | no_license | danny742/flask-alpine | 28df9f1545f4dbf629b2c640db4a2a39944d8622 | e3b45dc90c49da566e088c494bccb9bc638230a7 | refs/heads/master | 2020-09-29T21:12:55.765228 | 2019-12-10T13:07:25 | 2019-12-10T13:07:25 | 227,124,437 | 0 | 1 | null | 2019-12-10T13:11:25 | 2019-12-10T13:11:24 | null | UTF-8 | Python | false | false | 172 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello World!'
if __name__ == "__main__":
app.run(host="0.0.0.0", debug=True)
| [
"noreply@github.com"
] | noreply@github.com |
0ded6d45c234db74f6f321fbc2bd2ad4bb3db579 | 48b97b2c97859b5f245ec60cd3733e46c7e0e11b | /sim/riscv-compliance/compare_testvec | 520ce637d3f72cc093c9e70bfa97b073b5f9b42a | [
"BSD-3-Clause"
] | permissive | Wren6991/Hazard2 | 646525c7d9ea47edb794fbdb8a2cdc91ee927dca | 436e6603e9d33ef6ecd82b6ae606b01bd00db5c3 | refs/heads/master | 2023-04-19T22:43:46.727864 | 2021-05-03T21:13:39 | 2021-05-03T21:13:39 | 361,528,321 | 21 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | #!/usr/bin/env python3
import sys
gold = []
model = []
model_bytes = []
in_testdata = False
for l in open(sys.argv[1]):
if l.startswith("Dumping memory"):
in_testdata = True
continue
if in_testdata:
try:
model_bytes.extend(int(x, 16) for x in l.split(" "))
except ValueError:
break
for i in range(len(... | [
"wren6991@gmail.com"
] | wren6991@gmail.com | |
90a6ab7282a59d10429b3465f5fe8fd7719a99c9 | 8deb3cd052fda0d1398543ae37d16963692e254b | /commands.py | 2719b070d39f11a7e9db6da0296bf56990849d60 | [] | no_license | elleonard/lydie_bot | b0ded3592b9d0173efd2309058f3cb859c8fa618 | 61904209e07c42c462dadf9e09e8c2b67f5effae | refs/heads/master | 2022-12-10T19:20:19.827303 | 2021-04-04T12:35:59 | 2021-04-04T12:35:59 | 168,378,587 | 0 | 1 | null | 2022-12-08T01:34:30 | 2019-01-30T16:46:39 | Python | UTF-8 | Python | false | false | 1,043 | py |
class Command():
def __init__(self, text, help):
self.text = text
self.help = help
EVENT_SCHEDULE = Command("イベントいつまで?", "ゲームのイベントがいつまでか教えてあげる")
ORUGA_ITSUKA = Command("何やってんだよ団長", "スーちゃんがなんだかウズウズしてる")
FGO_EVENT = Command("FGOイベント効率", "konさんに聞いてね")
HELP = Command("help", "コマンド一覧を表示するよ")
SPREADSHEET = Comman... | [
"nplusplus538@gmail.com"
] | nplusplus538@gmail.com |
006826376b13a6b1314f8a96be7384d781a7f73b | 9ad901efba572d4daf27686d3d127984e9a77511 | /siliconmeasure/Keithley/keithleyN6700.py | 08212f1c9860efed8400e9d8c9a6cb7ae7dd426f | [
"MIT"
] | permissive | vhulagov/siliconmeasure | 3d3031eab2ff94d1daa7a3520068501a03d25d08 | f286dc331f76d3e890e53d6c0adb3c48341e9165 | refs/heads/main | 2023-04-15T06:50:38.731567 | 2021-05-02T08:21:04 | 2021-05-02T08:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,040 | py | """
Author : SABARI SARAVANAN M
Developed Tool and Version : Python 3.9
Description : General functions for keithleyN6700
Module Name : Keithley general Interface of N6700 source meter
Module Version : 0.0.1
Created ... | [
"noreply@github.com"
] | noreply@github.com |
d9abd4bf6b4179d15ad1005a4a87ad613258b791 | 20e708c38f6bfb6dac423dffe51e44520a1d2dca | /day-84-image-watermarker/model.py | 0e491769e5ef336077e5e558bc54cd9792f0b120 | [] | no_license | sedje/100DaysOfPython | f21fddc4ba067f5ccba0510a14306bfadbf6c738 | 1d05e54b405e36ad5051197f57dcba7a634f428d | refs/heads/master | 2023-04-29T23:48:42.812551 | 2021-05-21T10:21:01 | 2021-05-21T10:21:01 | 312,674,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from PIL import Image
class Model:
def __init__(self):
self.image = None
def get_picture(self):
if self.image:
return self.image
def set_picture(self, picture):
self.image = Image.open(picture)
def get_picture_size(self):
if self.image:
return... | [
"ankovanderziel@gmail.com"
] | ankovanderziel@gmail.com |
52e7c2a8c865ff79c3b246a5ea9cdb282c932941 | cc01f98fd2b219857d16034657f649a277648026 | /Try1/birthday.py | cbf6b7f34f63a2eb7740874dfff766c615774a63 | [] | no_license | ellmarquez/100DaysofCode | 11a1d8de77b04720577e42a68faf10be6352b705 | f7f371ad067bc7359b14ff52217d43d171fce543 | refs/heads/master | 2020-03-10T16:42:31.904326 | 2018-06-03T02:10:41 | 2018-06-03T02:10:41 | 129,480,965 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | birthdays ={'Ell': 'April 1', 'Alice':'Dec 10', 'Jessica':'March 10'}
while True:
print('Enter a name:(blank to quit)')
name = input()
if name=='':
break
if name in birthdays:
print (birthdays[name]+'is the birthday of ' + name)
else:
print('I do not have birthday informatio... | [
"ellstripes@gmail.com"
] | ellstripes@gmail.com |
869b323405bbdd59b5ab7f1446a26a0d12685b03 | c2420cfe8cb1bae1d1b27bc31298f5b036e89e76 | /Assignments/A4/PorterStemmer.py | 593ec835cd8e2e183e45e9c1991174024bf06cf6 | [] | no_license | krishnr/search-engine | 9535290b8b3bdfad341dbb85710bbbb66382dd0b | 7d201b8865e7c308a7522e4fccf63bf129c4ee88 | refs/heads/master | 2021-05-10T14:12:21.578911 | 2018-04-04T07:22:41 | 2018-04-04T07:22:41 | 118,508,667 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,901 | py | #!/usr/bin/env python
"""Porter Stemming Algorithm
This is the Porter stemming algorithm, ported to Python from the
version coded up in ANSI C by the author. It may be be regarded
as canonical, in that it follows the algorithm presented in
Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
no. 3, pp 1... | [
"krishnr@gmail.com"
] | krishnr@gmail.com |
222d727553c87b722439291f5cbe9f4c6e871241 | 4d3b82521f1439e5d90dcbe80e7e355c7f43b781 | /testchild.py | 9371b818d22177723978bf9187627ee1aa777f83 | [] | no_license | solajk/solajk.github.io | 0f24293a96bbf217c692efd4b671e4e9bb612dd8 | 23244084bd54b4917d9b8c09fa5d80a4ce40dcf6 | refs/heads/master | 2023-03-06T15:17:41.018030 | 2021-02-15T00:32:41 | 2021-02-15T00:32:41 | 277,395,286 | 0 | 0 | null | 2021-02-06T20:52:53 | 2020-07-05T22:42:54 | HTML | UTF-8 | Python | false | false | 43 | py | ## adding a new python file
print("test")
| [
"noreply@github.com"
] | noreply@github.com |
2a62e5869776ad409bb536388cb72353bbfce73d | 03376912b360f90a96d9f9683f987634225488e3 | /Python/PE549.py | 09e9f950cb3d98e7ebe0740313831c50a1cb5eb9 | [] | no_license | lenaindelaforetmagique/ProjectEuler | ed27b15d120631b6d3af30ee7e1305f59fdc9afa | 53ce546ed72e6d3f9cfb547ac44c7be457c5b2ec | refs/heads/master | 2021-01-01T20:45:52.260877 | 2018-12-20T16:09:22 | 2018-12-20T16:09:22 | 98,928,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | ##Problem 549
##
##The smallest number m such that 10 divides m! is m=5.
##The smallest number m such that 25 divides m! is m=10.
##
##Let s(n) be the smallest number m such that n divides m!.
##So s(10)=5 and s(25)=10.
##Let S(n) be ∑s(i) for 2 ≤ i ≤ n.
##S(100)=2012.
##
##Find S(10**8).
from arithmetique import *
fr... | [
"morin_xavier@hotmail.fr"
] | morin_xavier@hotmail.fr |
3723d373b6e01ed3b70fe855c56f6893f73a15c3 | 17d0f5379c74be38afb21a61366e13feff03ae24 | /server/models/__init__.py | 33881a54d9b833f4b4647a0a933bdec7a4613280 | [] | no_license | abijith-kp/Emolytics | 3ce2b248a95d13666bae510bc9e6e37d35086f56 | 00e94798ab20621b51f6ce2a058e0dd8dec1cdba | refs/heads/master | 2021-01-10T14:49:29.052538 | 2016-03-12T16:20:16 | 2016-03-12T16:22:13 | 53,741,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from .tweets import Tweet
from .jobs import WorkerJob
__all__ = ['Tweet', 'WorkerJob']
| [
"abijith.akp@gmail.com"
] | abijith.akp@gmail.com |
04a79846ea1074b5dcb0da00711c91dc7b23a895 | a00455b11e49c7304fc25a12086f976e8d1afb3e | /verify/views.py | fc6dacdaa4df96a104db97e029468bedb7e4a260 | [] | no_license | xixi037/VerificationCode | 51306d59a0ef9c77c5c8f043c12260af16ff7b07 | 2f6464a533424654493c2a7e5a7e6167e9b25184 | refs/heads/master | 2021-01-25T14:16:59.347964 | 2018-03-03T09:42:01 | 2018-03-03T09:42:01 | 123,678,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | import datetime
from django.forms import model_to_dict
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
# Create your views here.
from django.urls import reverse
from django.utils.encoding import smart_str
from verify.models import Verify
def todict(source):
target =... | [
"492195925@qq.com"
] | 492195925@qq.com |
a475e84883834a06fcfd8f0fa8af0b8b2d55af00 | a9b7aa7b1e337fc3f667f4f10514023834356077 | /__init__.py | 64551eeefc9b7468de6078031335ce20f90615c6 | [] | no_license | bhumiganit/Line-Split-Tool | ab5188f8e322f1c60079ac23ff89c2374af583e5 | eedc3e8e98d19fe121db453247311374578d0a02 | refs/heads/main | 2023-07-07T07:07:43.642888 | 2021-08-18T14:03:41 | 2021-08-18T14:03:41 | 397,610,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Line_Split_Tool
A QGIS plugin
This Tool splits the line
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-----------------... | [
"noreply@github.com"
] | noreply@github.com |
760d79c5be432579218ffbdbeddd28f6e85a16d8 | 5d7f7fcc9ba0413e03e59fddaff323d6af8ba9c8 | /importkit/utils/registry.py | 9ca2388a0b8537ace0248609f86fe575529fdb51 | [
"MIT"
] | permissive | isabella232/importkit | 3fc539b0e81bd5da76e0c14cfae0fb85dd9aa92e | 72702fd6150ef9b470c986061ff976bc814463c8 | refs/heads/master | 2023-03-19T17:15:18.703866 | 2020-03-02T00:58:37 | 2020-08-08T22:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | ##
# Copyright (c) 2011 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##
import collections
import functools
import weakref
class WeakObjectRegistry(collections.MutableMapping):
"""Weak object mapping class.
Dictionary entries will be discarded once there are no strong references
to ... | [
"elprans@sprymix.com"
] | elprans@sprymix.com |
6bbcdaceb936cd0ca124bad744f65abf542515af | 5b8aec73f8bb7705b2275726d8d9d02a0758aa0d | /main/models.py | c8470490775e2214dc3cef2f15d5e08ab9aed4e7 | [] | no_license | Mohmmad-ow/mysite_2 | c7a2455cc82e184806dc34df0bb52f693bc8e76a | fb65b5d06f596afe1078e53b54ca9aaf50bc4596 | refs/heads/master | 2022-12-07T21:34:56.948296 | 2020-09-05T23:11:01 | 2020-09-05T23:11:01 | 293,126,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from django.db import models
from django.contrib.auth import get_user_model
# Create your models here.
user = get_user_model()
class ToDoList(models.Model):
user = models.ForeignKey(user, default=1, related_name='todolist', on_delete=models.CASCADE)
name = models.CharField(max_length=255)
def _... | [
"noreply@github.com"
] | noreply@github.com |
70b6f7ab540eaa8dcf83f872958f371a9adeaaac | 59da45955862686374e438b5367978856df7c284 | /component_services/metadata_searcher_service/metadata_search_service.py | 85492def977c190d6dd8568d7baf1a6f47ed24ee | [] | no_license | nguyentran0212/IoTSE-prototypes | 04531fb3a8d14d1eaa5eba712c773bd7531fd04d | 3c9dde27cf1818fbf74508520eec3f35778f60f5 | refs/heads/master | 2021-09-20T10:48:47.330873 | 2018-08-08T08:20:46 | 2018-08-08T08:20:46 | 116,230,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 3 13:22:31 2018
@author: nguyentran
"""
from ISEPLib.abstract_services import AbsSearcherService
import ISEPLib.entity as entity
import redis
import pickle
from pymongo import MongoClient
from pprint import pprint
class SearcherService(AbsSearcher... | [
"nguyen.tran@adelaide.edu.au"
] | nguyen.tran@adelaide.edu.au |
5df3dd882e2061aed72b4daeabdc76984732f35b | 518b4cf6e4c99a83ba74fde06d50e24a541dd249 | /modelzoo/models/__init__.py | 3de05bd3d61fac0f025ef84603bc3e58a0bbce27 | [
"Apache-2.0"
] | permissive | avinash-arjavalingam/modelzoo | 874a16b22e7aef2ca923a6666942c88e75f3409b | 284a0ada33c94c3be807049c451cd230a5e96513 | refs/heads/master | 2021-01-03T03:28:33.308972 | 2020-04-23T22:28:09 | 2020-04-23T22:28:09 | 239,903,214 | 0 | 0 | null | 2020-02-12T01:40:20 | 2020-02-12T01:40:19 | null | UTF-8 | Python | false | false | 13 | py | REGISTRY = [] | [
"xmo@berkeley.edu"
] | xmo@berkeley.edu |
9dfeb0a328d15d9455aa51f046ccdb764f5f44c2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_set_eval_order-228.py | a511e83aab6b4ea3a1fa28424a3b776260bdc205 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
def get_b() -> B:
print("Getting B")
return b
def get_one() -> int:
print("Getting 1")
return 1
def get_false() -> bool:
print("Getting False")
return False
a... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8b94a5e9e4b40f5ee6090c9936c2c5efcb11ad34 | fffa5a617741d5758de5cd971a5f41f713b2e938 | /src/reservas/migrations/0003_auto_20200816_0929.py | 85af84a4a899acedae62dcba21f727bc110dfa79 | [] | no_license | overflow/canchas | 633fc6db0682570200a94206f255478583337778 | dc046f42a4d570abd7837490e41062eb43387816 | refs/heads/master | 2022-11-29T07:42:21.967115 | 2020-08-17T03:54:46 | 2020-08-17T03:54:46 | 288,057,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Generated by Django 3.1 on 2020-08-16 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservas', '0002_reserva_cliente'),
]
operations = [
migrations.RenameModel(
old_name='Reservados',
new_name='Reservad... | [
"fiolorlando@gmail.com"
] | fiolorlando@gmail.com |
156d38260734364e09599d002e1d41c6032814f4 | 4a78cc73d515226b74c274444eaf21052819a80e | /program/quadratic_eqn.py | 2955bf5f9f5a758cbf1b9bd872fcb7df3ce07358 | [] | no_license | jai-singhal/test_case_gen | bfb291b3cbbe41b721e5875b0ab0d7c88976ab0f | a2a102d5c4a415a180d35774ae793294f6209c32 | refs/heads/master | 2023-01-30T14:27:48.513266 | 2020-12-15T14:12:36 | 2020-12-15T14:12:36 | 321,667,556 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,405 | py | from model.graph import Graph
from model.chromosome import Chromosome
from model.paths import Paths
from model.path import Path
from math import sqrt
import logging
import logging.handlers
import os
handler = logging.handlers.WatchedFileHandler(os.environ.get("LOGFILE", "logs/quadratic.log"))
formatter = logging.Form... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
eb0ab7afc7e99a8a893a10b0ed66cd5ba41b4f26 | 9312d2cee8895182c727af5a46b0edc9ef8aa547 | /GECCO2016/alifemain.py | 097d2809e51bbf89251918ae3528da9c247cfe50 | [] | no_license | anyaevostinar/mutualism_model | fa2878d67114fb82b92b7387597c9a51c565dd1d | 9a998314086da1a37c4fd73191bb4d426b802a17 | refs/heads/master | 2021-01-22T18:15:38.071784 | 2019-08-16T20:05:22 | 2019-08-16T20:05:22 | 48,124,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,586 | py | #!/usr/bin/env python
import random
import numpy
import sys
class Organism:
'''A class to contain an organism'''
def __init__(self, cellID, genome=[], parent=False, empty=False):
self.age = 0
self.empty = empty
self.ID = cellID
self.fitness = 0
self.genome = genome
self.symbionts = []
... | [
"anyaejo@gmail.com"
] | anyaejo@gmail.com |
ba0af1413a3bd07d81a89c67e4f2acdfec08139d | f0f134676ea06d7a7aff0d7e4ffd1be6ad46e868 | /setup.py | 347e4710de59ea499255047df7caf3e8df1025ee | [
"MIT"
] | permissive | farhadcuber/p2psimulator | 219c450bc687ecca7ea240063213a4014dff8992 | 570f325981209df272e31a904a3ee460222d52f0 | refs/heads/master | 2022-12-23T01:09:28.236737 | 2020-09-28T05:32:54 | 2020-09-28T05:32:54 | 256,421,522 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="p2psimulator", # Replace with your own username
version="0.0.1",
author="Farhad Keramat",
author_email="farhadcuber@gmail.com",
description="A p2p network simulator",
long_description=... | [
"farhadcuber@gmail.com"
] | farhadcuber@gmail.com |
22d5ea0e8a505899401608acb0ea8a241b88051a | 1a87c6f7082f7ab894a1747704b7e0f751a46ba3 | /server/washingtonCrawling/board/sentiment.py | 46a17eed51fa7467678dc9abb9d9e714464bec8d | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | mdls0916/Sentimental_Analysis_on_COVID19_News_Articles | 91448f7f337b5a27769abadd409e9de86355604b | a7d1a8c713a57b5fca1223b5589fdee557f70f97 | refs/heads/master | 2022-11-30T02:57:55.116825 | 2020-08-08T02:10:59 | 2020-08-08T02:10:59 | 285,956,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import pickle
import re
from nltk.corpus import stopwords ##많이 사용하여 감성적인 의미가 미미한 단어를 없애는 부분 ex>the,a, is
import nltk
from nltk.sentiment.vader import SentimentIntensityAnalyzer ### NLTK Sentiment Lib 가져오기
import argparse
conora19_title = []
conora119_content = []
def getSentiment() :
with open... | [
"mdls0916@gmail.com"
] | mdls0916@gmail.com |
a8ecb9756718de6f131b39ec66b0d2116ca8099e | 7eef1a412b397cf3f7e7318a01b9195ab2caeea3 | /mysite/mysite/settings.py | 578dcfadbb23cf20244482c7aee4a6d56b4e8069 | [] | no_license | maverb/e-commerce | 0648652b57ef79fb70a4a17e2520f0b828546c97 | 6ff4ff860c063c8f1fbfee67b3e127ea0d0040a2 | refs/heads/main | 2023-04-23T04:25:15.563146 | 2021-05-10T21:14:18 | 2021-05-10T21:14:18 | 348,480,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"39745672+maverba@users.noreply.github.com"
] | 39745672+maverba@users.noreply.github.com |
f5ef99ad4dab889a9b5fdaf8091b3c798def08d5 | d0ed65058f19e7a58674fe9e1a97f6ce29a94f60 | /shot/shotting/gun.py | 5d895ce4c9fc70369ab0c59d4f85dc1034829e37 | [] | no_license | xietalent/work_code | b260e49e22d004742f88b547ab10169c2111bf7a | 7704f4255a78d83d84149d6b1e5abd859e063cf3 | refs/heads/master | 2020-05-07T12:14:58.722843 | 2019-04-09T10:27:50 | 2019-04-09T10:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from time import sleep
class Gun(object):
def __init__(self,clip):
self.clip = clip
self.nums = 0
def shoot(self):
number =self.clip.get_nums()
if number < 0:
print("您已经没有子弹了,请更换弹夹")
elif number == 0:
self.clip.set_nums(number - 1)
pr... | [
"2235110071@qq.com"
] | 2235110071@qq.com |
920ea6fcb72733b3dc651b11e2dfc535952f181c | abb7debf2b7fda4f75de84be2aac907395e07024 | /tabs/tab2.py | 594f60f07350035e57fc594ae6d4962166da4393 | [] | no_license | pikamegan/WooTech-IPLSaga | 88e068639bb277eb9663ee7928b19af70acc5610 | 0c4f7a43ca3f8676309f64211acbafb413529234 | refs/heads/main | 2023-03-08T03:09:05.679433 | 2021-03-03T12:46:09 | 2021-03-03T12:46:09 | 344,116,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | import dash
import plotly
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import dash_table
import pandas as pd
import plotly.express as px
from dash.dependencies import Input, Output
from app import app
df = pd.read_csv("Clean_Data_with_names.csv")
P... | [
"noreply@github.com"
] | noreply@github.com |
c5d5559b618b0dcdc173de89853fcb37bb74fe83 | d9d7155f84d0ad398d7fd27a77207a2418332075 | /docgen/config/build_env/source/conf.py | 3255203488352d745eb443ec0cd2d20197fa30ab | [
"BSD-3-Clause"
] | permissive | juvenal/cli | 1ce87f239dfabcfa337cfa01c7cd88f24e087d80 | cf06717f8dbe1b2f16d38bc43b239137f67fef16 | refs/heads/master | 2021-06-28T13:13:36.486519 | 2017-09-19T18:53:11 | 2017-09-19T18:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,850 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# cli.freenas.org documentation build configuration file, created by
# sphinx-quickstart on Fri Aug 5 17:06:55 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in t... | [
"piotr@ixsystems.com"
] | piotr@ixsystems.com |
8867137322452d7129810ea42bb441294ce5c87e | 5f4762e305f902337c5700655a0bfbc77466a5a7 | /blogsai/asgi.py | 969e1a16b2dcc93bc199ce9226d2a8ff7415e033 | [] | no_license | aishmash1010/Blogsai-Website | b1556d22f149addf7970157f534027db2d446d40 | 86b9add4d492f1e88fdae8278eaf9c9c4695587f | refs/heads/master | 2021-05-18T04:29:48.814658 | 2020-03-29T18:58:01 | 2020-03-29T18:58:01 | 251,107,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for blogsai project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"aishwarya.s.mashalkar@gmail.com"
] | aishwarya.s.mashalkar@gmail.com |
acdb0487370ffcc2c1574371253a5d841631ff6f | 8eeb1e8d4d4f6cd685c4f2d8fcec284e74b376dd | /mention_network_inference.dir/create_mention_list.py | 78a8ba9700ce7461ac05e5aff1d7f1cda16babe9 | [] | no_license | vishalmaha/TwitterMentionNetworkLinkPrediction | daed7d048d71be903d1948abbfb0032e27f157ca | 5db665558890e7dd58ee6bf50f8b2aa01f2b84d6 | refs/heads/master | 2021-06-10T19:10:08.051818 | 2017-02-05T10:42:14 | 2017-02-05T10:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | import sys,os,re,argparse
verbose=1
def getMentionList(filein,fileout,full_mention):
uid = 0
mid = 0
umention_f = 0
umention_l = 0
mmention_f = 0
mmention_l = 0
u_nmentions = 0
m_nmentions = 0
curdir = 0
counterl = 0
fileout.write('userid,mentionid,firstmention_user,lastmen... | [
"hadrien.hours@eurecom.fr"
] | hadrien.hours@eurecom.fr |
53a9adc8d8f8b4ad2a95b1dc722a4068ce17fa88 | eb739d9c55e974e9288dcdc9248f3dac63180363 | /SPM.py | 34285d5f46a9184282da0d6ea5a4a669e76b478a | [] | no_license | ThisIsBen/LASS-Sequential-Pattern-Mining-for-Consequent-Pattern | 957e8187f87667cf59376d2341af35fb3e286936 | 2e7bdc0493ee8a7c10f02581efd58b8e5f622a56 | refs/heads/master | 2021-01-21T17:14:06.286386 | 2017-06-21T14:59:21 | 2017-06-21T14:59:21 | 91,944,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,449 | py | #!/usr/bin/python3
'''
_msg_monitors = """
air monitors in Tainan City: (id)
airbox
74DA38AF489E
74DA38AF487A
74DA38AF4842
74DA38AF482E
74DA38AF4812
74DA38AF479A
74DA3895E068
74DA3895E04C
74DA3895DFF6
74DA3895C39E
... | [
"noreply@github.com"
] | noreply@github.com |
2961b71d7ad87643abb9fa3f7f8cabc820a85285 | f77154ca57ee041e1ccda1b5706d104705612e18 | /web/bookmarks/account/authentication.py | 5c77f7d0b94b1d00092ab4137c9aff21cd70dc7f | [] | no_license | latewind/PythonSpace | 559e5d20a2d80c32dbff487fb946de2488da57c8 | 4d7b53cb1a50723bb394d235be3eb9318494e89d | refs/heads/master | 2020-12-02T21:16:42.010546 | 2020-06-18T22:58:49 | 2020-06-18T22:58:49 | 96,283,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.contrib.auth.models import User
class OnlyAdminAuthBackend(object):
def authenticate(self, username=None, password=None):
try:
user = User.objects.get(username=username)
if user.check_password(password):
return user
return None
except... | [
"lsqwell@sina.com"
] | lsqwell@sina.com |
f4ba06a76d819bfdd1c8c01f588e073c6cbd8e08 | 44e8cb28b7cfc29f2a4055b8e4876721e1356168 | /Python/Project Euler/6.py | de291ff2aca20de805ce1d81f84914a6eb871942 | [] | no_license | BrianHillman/Practice-problems | 0e055702ec86026af2d194cb1bf8f828b219b997 | 41969a453a67c7bded6875174c1dadec48420b92 | refs/heads/master | 2021-01-11T11:01:26.032466 | 2014-06-26T08:29:43 | 2014-06-26T08:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | '''
Created on Apr 18, 2012
@author: Brian
'''
sumOfSquares = 0
squareOfSums = 0
for x in range(1,101):
sumOfSquares += x**2
for x in range(1,101):
squareOfSums += x
squareOfSums = squareOfSums**2
print squareOfSums-sumOfSquares | [
"brianjhillman@gmail.com"
] | brianjhillman@gmail.com |
2ccd5cf0554a990d9e4793a4c2513b5b10ff69c7 | d979ad4a11be55d4c80afe5e37b5fc142ba4d859 | /CODES/Score.py | ce5d4fb50f7d5b4230b89af298ee58d5f05f044e | [] | no_license | CopotronicRifat/Protein-Structure-Prediction-using-PyRosetta | 105ffa7ad8074419ddea94107142601eed1e6d88 | 4eb0668b32f73dbfe9861b270a20ad23f16b7f75 | refs/heads/master | 2021-05-12T07:54:43.004200 | 2018-03-22T20:37:31 | 2018-03-22T20:37:31 | 117,263,083 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,042 | py | import optparse
from pyrosetta.rosetta import *
from pyrosetta import *
init()
def pose_scoring(pose, display_residues = []):
pymover = PyMOLMover()
# a. this method returns the hard-coded set of weights for the standard
# fullatom ScoreFunction, which is currently called "talaris2013"
fa_scorefxn... | [
"noreply@github.com"
] | noreply@github.com |
2546e39b763ccbbb1261c64dc52b2e08d7bbb98a | 2d34a6033884b22e41588c82ebe657546aef07c7 | /project/blog/models.py | bd36137f7fcbaa6e71aa0e0c0466252f28047d4d | [] | no_license | alifanov/jbm_boilerplate | 73c6c5f394f20a851e860328847d2ac45a174d6f | 7012885dbf1455c2ca2abf849bd36685c4a58286 | refs/heads/master | 2020-04-03T16:18:35.760013 | 2018-11-21T09:48:11 | 2018-11-21T09:48:11 | 155,399,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | from django.db import models
from django.dispatch import receiver
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
class TimeItem(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
a... | [
"lifanov.a.v@gmail.com"
] | lifanov.a.v@gmail.com |
fbb6fd202ebaba4573cd8865d86bb12ea7c635a2 | b0742668ebceaffbf80077bd0d0cbae124d3988e | /test/media_test.py | 7d95659ddce08d60292be0b03e40f9d2a1741333 | [] | no_license | nehashivhare/media-downloader | 4789cd39cd3263e7d6630a311410bd639d86e565 | 48135ce3fcee5229fc867c1e791d8eb1abfdb26a | refs/heads/master | 2022-10-13T15:30:15.164406 | 2020-06-11T14:10:29 | 2020-06-11T14:13:21 | 271,499,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import unittest
from io import StringIO
from unittest import mock
from unittest.mock import MagicMock
from media import Media
class MediaTest(unittest.TestCase):
def setUp(self):
self.media_object = Media()
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
... | [
"nehashivhare@gmail.com"
] | nehashivhare@gmail.com |
0c360ddba429c34b90b83b657b50a0750baf65d9 | dc7a4fec5373cf28a88dff2f194c54cabc28e6ed | /inheritance/exo1.py | dfd7edffb3781b9537b86f3d83408bd8aae0bb3b | [] | no_license | debolina-paul/opp | dba3e20cffb5f3481b043c696833bbfc915ca565 | ff96c5d13019b38556199cace083675e04ebfc51 | refs/heads/main | 2023-02-28T07:11:48.941094 | 2021-01-22T11:26:22 | 2021-01-22T11:26:22 | 331,924,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | class formulaire :
def __init__(self, nom, prenom, naissance):
self.nom = nom.upper()
self.prenom = prenom.upper()
na = str(naissance)
if na.isnumeric():
self.naissance = int(na)
else:
self.naissance = 1900
def age(self):
return 202... | [
"noreply@github.com"
] | noreply@github.com |
12ab92fe92f04ccc4d6b478dc5aed20344aadfb4 | 724adbdf27a6c200a7f76530ac8dccace04aaf1e | /demo/day03/dict_demo.py | be812b3b927fbe53b9058aa870c20622a428f1d8 | [] | no_license | qianxun123/gy-1908 | 5d65b82c3d08515feafc42be65bfb2773f1134c5 | f4f1aaafe5950322056efdeb090052dd54db9314 | refs/heads/master | 2020-07-22T12:50:26.992634 | 2019-09-09T02:52:54 | 2019-09-09T02:52:54 | 207,207,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__title__ = ''
#__author__ = 'cuicl'
#__mtime__ = '2019/9/6'
'''21
key:value
key唯一
'''
# 增
# 初次创建
a = {}
a1 = {'name':'小七','sex':'女'}
# 新增一对数据
a1['age']= 21
a1['high'] = 170
print(a1)
# 删
# 删除key
print(a1.pop('high'))
print(a1)
del a1['sex']
print(a1)
print('---------... | [
"you@1570104760@qq.com"
] | you@1570104760@qq.com |
c2942ba7a95f6aa087d978415020fea3cabd81cb | 2748a33d28e8c708c7bc2bd1704b1c8d0f7ddbed | /day3/hw3pr1.py | 6e6c8b1a64e3061c7775a11d88232a61f1d118de | [] | no_license | EverardoG/HMC-Research | 0689ab9bd4ae1f9391bbd9de84555d2f7d0eae06 | 3f92882747b1bc97e66492b1441ce293422d1e25 | refs/heads/master | 2020-03-23T05:44:40.397481 | 2019-07-01T19:11:31 | 2019-07-01T19:19:51 | 141,163,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,880 | py | #
# hw3pr1.py
#
# lab problem - matplotlib tutorial (and a bit of numpy besides...)
#
# this asks you to work through the first part of the tutorial at
# www.labri.fr/perso/nrougier/teaching/matplotlib/
# + then try the scatter plot, bar plot, and one other kind of "Other plot"
# from that tutorial -- and cr... | [
"everardo.gonzalez@students.olin.edu"
] | everardo.gonzalez@students.olin.edu |
b727cabcd9bd3806c071a7cd260842269b8aba0a | fa7e75212e9f536eed7a78237a5fa9a4021a206b | /MASIR/python/masir/utils/webprivacy_gather.py | 1cc02f6f1aa6fb7dd5e9c09160e708d3db64575e | [] | no_license | kod3r/SMQTK | 3d40730c956220a3d9bb02aef65edc8493bbf527 | c128e8ca38c679ee37901551f4cc021cc43d00e6 | refs/heads/master | 2020-12-03T09:12:41.163643 | 2015-10-19T14:56:55 | 2015-10-19T14:56:55 | 44,916,678 | 1 | 0 | null | 2015-10-25T15:47:35 | 2015-10-25T15:47:35 | null | UTF-8 | Python | false | false | 2,728 | py | # coding=utf-8
import bson
import datetime
import logging
import os
import urllib2
from masir.utils.SimpleBoundingBox import SimpleBoundingBox
def wp_gather_image_and_info(output_dir, db_collection, region_bbox):
"""
Gather the imagery and metadata (as BSON) from the webprivacy database to an
output dir... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
ebb92d7727331db9899f944ce8fcec0036c38394 | 311d37405915af4372ca19c62a654311afdb9b12 | /kindle.py | 7ab3c64f47302d2ea8fcbf55c28ff2305a28b027 | [] | no_license | ypcat/selection2kindle | a4f76c902bbb5c73c32d24cb6960de0aedc92140 | f696587c495eab09aa2330841b1636fce3c5900b | refs/heads/master | 2016-08-05T15:04:20.836976 | 2012-02-08T08:47:32 | 2012-02-08T08:47:32 | 3,385,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #!/usr/bin/python
"""
Dependency: web.py, mod_wsgi for apache(optional)
Add to /etc/apache2/httpd.conf:
WSGIScriptAlias /kindle /home/kindle/cgi-bin/kindle.py
AddType text/html .py
<Directory "/home/kindle/cgi-bin">
Order deny,allow
Allow from all
</Directory>
LimitRequestLine 327... | [
"ypcat@eumacro.csie.org"
] | ypcat@eumacro.csie.org |
3f38d9382cfa771c514b6b1a59373c7bb1dfc641 | 383543e2ab7ef8d110546fcc497a6c6949a08b61 | /publishing_client1.py | 0a3da9564da2652daab2d8de6ae9ec3b924f52c5 | [] | no_license | ParulPreetKaur/MQTT_12-10-2020 | affc43cdebfa1ce66de438912791619c3a83333c | 1b314d4280ba66195716e63b39411c12c2348c01 | refs/heads/master | 2023-01-16T01:41:57.483270 | 2020-11-20T07:03:56 | 2020-11-20T07:03:56 | 303,302,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,968 | py | import time
import paho.mqtt.client as mqtt
import urllib.parse
import requests
from config import api_key
import json
import math
import csv
import random
cname="client1"
connection_status_topic="sensor/connected/"+cname
def on_disconnect(client, userdata, flags, rc=0):
m="DisConnected flags"+"result code "+str... | [
"kaurparulpreet@gmail.com"
] | kaurparulpreet@gmail.com |
6f62c412dffa6b2e43cbfa7cfab27d02a7ab7447 | 8a1bd59c154219d1659b94ec0bcf993ee881f9ad | /eyes/ml/lf.py | adcf4b3618dbff423c6aef124835ef77e97cb884 | [
"MIT"
] | permissive | r05323028/eyes | f4bb109088389cef397f2eecc3abca2fd3a59e31 | 4af213fe760516b1daac608758742862ed848d7f | refs/heads/main | 2023-05-22T13:37:23.194703 | 2022-08-06T04:52:19 | 2022-08-06T04:52:19 | 392,558,472 | 74 | 11 | MIT | 2021-11-20T13:58:39 | 2021-08-04T05:17:30 | Python | UTF-8 | Python | false | false | 1,853 | py | '''Eyes label functions module
'''
import logging
from collections import defaultdict
from typing import Dict, List
from rich.logging import RichHandler
from skweak.base import CombinedAnnotator
from skweak.gazetteers import GazetteerAnnotator, Trie
from sqlalchemy.orm import Session
from eyes.data import Entity
from... | [
"r05323028@ntu.edu.tw"
] | r05323028@ntu.edu.tw |
db223343257debd3254f2e0232322c5ba8f8d72a | 9b28d337d41b83b993b0997aed03390c0cb9549c | /app/formsubmit/__init__.py | 20a25bafbd7a3ae7f90732d95e9044e61ec6bc54 | [] | no_license | KyleEgland/python-flask-examples | c0ee8bbd9131baee5be1acb8b10ae083d351378c | e4278d7352eef0037947bb6cb3eacf30e8f2a6d5 | refs/heads/master | 2023-08-03T17:11:14.134978 | 2023-05-29T02:46:48 | 2023-05-29T02:46:48 | 248,573,252 | 0 | 0 | null | 2023-07-25T21:45:51 | 2020-03-19T18:12:05 | JavaScript | UTF-8 | Python | false | false | 103 | py | from flask import Blueprint
bp = Blueprint('formsubmit', __name__)
from app.formsubmit import routes
| [
"kyle.egland@outlook.com"
] | kyle.egland@outlook.com |
b2aeacc112522eb206951a21001e6b857999839f | 14e6c111673bb2c61f8096ee26d7dd5ed74b1d0d | /django_pages/context.py | 8027d9a2d965c95eef8438eb4e13a94f14c747e8 | [
"BSD-3-Clause"
] | permissive | lunemec/django-pages | bdd17f11c3772185e4011e31e4879396b80a930d | caed40f9275919b81417924550e7bcfdc7c5ffbf | refs/heads/master | 2020-07-02T00:41:25.893107 | 2018-11-11T13:00:30 | 2018-11-11T13:00:30 | 11,526,719 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # -*- encoding: utf-8 -*-
from .language import get_language, get_languages
from .menu import get_main_menuitems, has_other_menu, get_other_menuitems
from .metadata import get_metadata
from .pages import get_index_page
from .site import get_site, get_scripts
def pages(request):
"""
Context processor that add... | [
"lu.nemec@gmail.com"
] | lu.nemec@gmail.com |
29711e2ace3a3bf801b4f0e03b5df8214040ff3c | e40569a0d54a5db9d4430edc76e5f478d30d501b | /gopher-tomcat-deployer.py | c99ddcc83473c9998c9441a7c954bb9c1b724781 | [
"MIT"
] | permissive | pimps/gopher-tomcat-deployer | 426f17fc2470a9361a25e0f734b405c4c0cd438d | 12cd5b27e083fde6cc7ac8c1787b1aa976361923 | refs/heads/master | 2020-04-05T15:47:47.558448 | 2018-11-12T15:48:31 | 2018-11-12T15:48:31 | 156,984,743 | 42 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,668 | py | import zipfile
import binascii
import sys
import getopt
import urllib
import re
import base64
import argparse
def get_args():
parser = argparse.ArgumentParser( prog="gopher-tomcat-deployer.py",
formatter_class=lambda prog: argparse.HelpFormatter(prog,max_help_position=50),
... | [
"noreply@github.com"
] | noreply@github.com |
62fb5c6f1c5adc71fa63161b1e1b3f9277fbc5be | 8c1213dec0be90a1ef3e46f767f626acb22be4b8 | /appointments/apps/appointments/migrations/0001_initial.py | f509655e0d76e3902bf7632a2d72815446d72f49 | [] | no_license | ccunnin8/django | 6d43de7e151f85469f31a0e5da6dc02dfd5101fd | 11f8afb0a787789a24746acf5f1bfe0f4c24e99a | refs/heads/master | 2022-12-12T11:22:04.415053 | 2018-11-13T19:31:00 | 2018-11-13T19:31:00 | 124,255,284 | 0 | 0 | null | 2022-12-08T00:45:36 | 2018-03-07T15:24:56 | Python | UTF-8 | Python | false | false | 989 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-04-18 14:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
opera... | [
"coreyjjc@me.com"
] | coreyjjc@me.com |
85a03948d73fb6da7bb5971e4656c447cd98e5a5 | 0d8c7561415aaf9a0ba5e5b71c6063f05bb57144 | /test/RealtimeIdentification.py | 135abd0e31976dedbf0beb20777d7983e2fdbba7 | [
"MIT"
] | permissive | lee2015new/MTCNN-Tensorflow | 36d1bfb03aa66723eb65cc30daa6196b5cfdebff | 7ccc6fc55f3109343788750769fe1625c19dbd82 | refs/heads/master | 2020-04-14T16:28:05.254739 | 2019-01-11T02:34:47 | 2019-01-11T02:34:47 | 163,952,552 | 0 | 0 | null | 2019-01-03T09:36:36 | 2019-01-03T09:36:36 | null | UTF-8 | Python | false | false | 11,598 | py | import sys
sys.path.append("../")
import tensorflow as tf
import numpy as np
import argparse
import facenet
import os
import sys
import math
import pickle
from scipy import misc
from Detection.MtcnnDetector import MtcnnDetector
from Detection.detector import Detector
from Detection.fcn_detector import FcnDetector
from ... | [
"liwei63@jd.com"
] | liwei63@jd.com |
9ca9a91eb9a12dd2e1f716c4c149371fc439af64 | 584b44d855235f20a66eab6d7680c4d686e9b8fc | /mas_framework/gui_qgl.py | 94a5055dd20c029530ee4cb7443efd079fc5d987 | [] | no_license | dpathania1/DMASF | a06bf4f9ead584b35e8fc719aefeec4c67a03aa3 | 2e4f74584cea5bdc115436b5ee12b17d600d75ff | refs/heads/master | 2021-01-21T00:17:13.801241 | 2015-07-22T01:28:35 | 2015-07-22T01:38:43 | 39,477,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,103 | py | # This class will contain the behaviour of the opengl
# simulation component
# Parent needs to set the following attribs
# glwindowwidth : width of gl window
# glwindowheight : height of gl window
# both attribs will be used in call to glOrtho
# viewX : translation on X axis
# viewY : translation on Y axis
# both att... | [
"deepika.pathania@iamplus.com"
] | deepika.pathania@iamplus.com |
6ce5eedbdd0cb60b66ae4011faba33a1379dd73b | 4284cfe70bc0df802c7e06a9fb592d1a56cca2e4 | /examples/test_client2/test.py | 2f53827d6dce26261e3518631d1ee6f10f62ac63 | [
"MIT"
] | permissive | hblumberg/khan-api | 691c627b56792df8adc39abd7c1b9244de952930 | d4ec48a4a6591ec824d154ceada8849a13810254 | refs/heads/master | 2020-12-24T14:27:38.196519 | 2015-07-22T21:25:38 | 2015-07-22T21:35:53 | 41,285,727 | 0 | 0 | null | 2015-08-24T06:17:38 | 2015-08-24T06:17:38 | null | UTF-8 | Python | false | false | 3,508 | py | """ An interactive script for testing Khan Academy API Authentication.
This is an example of how to use the /api/auth2 authentication flow.
See https://github.com/Khan/khan-api/wiki/Khan-Academy-API-Authentication for
documentation.
"""
import cgi
import rauth
import SimpleHTTPServer
import SocketServer
import time... | [
"hannah@khanacademy.org"
] | hannah@khanacademy.org |
912ecec536756f81e62fe149ad3c824a907c5faa | d6bb1e0dd2f10d2370d0ed90a78700f3b271fbfd | /job_match/admin.py | 6e4c4fd39a7444f90560a5c69e82309c82f073db | [] | no_license | xuefeng-huang/jobMatch | 80ad4294f6ae5e98ccf17cd126997660b8fef140 | 21546d58611d2a8f8c063dd6ea0cee4b911699de | refs/heads/master | 2021-01-01T05:05:12.001507 | 2016-04-26T09:33:03 | 2016-04-26T09:33:03 | 57,006,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from models import Writer, Publication
admin.site.register([Writer, Publication])
| [
"timhxf@gmail.com"
] | timhxf@gmail.com |
e1dee49a14067807a2a659197ce76a63a98252dd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/68/19112/submittedfiles/funcoes.py | ba6a46880a5b2a250478615ce64169b4cf2b8ded | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # -*- coding: utf-8 -*-
from __future__ import division
#Fatorial
def fatorial (m):
m_fat=1
for i in range (2,m+1,1):
m_fat=m_fat * i
return m_fat
#Pi
def calculaPi (m):
soma_pi=0
j=2
for i in range (0,m,1):
if i%2==0:
soma_pi=soma_pi+(4/(j*(j+1)*(j+2)))
else... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d2807766442c8de2ee23a2b0a79a5f75b3617f38 | c98b383eeef0e7c12504270fe92071569fec9736 | /testMe/testone/tests.py | 24714ddf88517e0cfc1a201200d9e36cd5ef85fd | [
"MIT"
] | permissive | MyHiHi/test | 088048117346b81f7c51fadc00cce4d3f21496ac | 0cedfbbfad53021569faef933b9fdff20e897617 | refs/heads/master | 2020-03-09T02:10:03.949154 | 2019-06-12T09:44:42 | 2019-06-12T09:44:42 | 128,533,935 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.test import TestCase
import requests
def get_json(url):
headers = {
"Host": "www.lagou.com",
"Connection": "keep-alive",
"Origin": "https://www.lagou.com",
"X-Anit-Forge-Code": "0",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec... | [
"909535692@qq.com"
] | 909535692@qq.com |
3af5d21dfbc8c28c909581f85bd2e6ec81038d5f | 96184a7d23d7505b274f62f5d3eac9ce95314487 | /trainer/evaluator.py | 18b0742afcff1c1eba1a0951c7ff154c2c22ebc9 | [] | no_license | hanpig1998/DAIL | eb473d9aae94c7857f9374a4269b4e3051072d52 | eabd39a71eee78a424f9f7647d2b2fdc58b7963b | refs/heads/master | 2022-07-08T07:36:41.376712 | 2020-04-08T10:04:36 | 2020-04-08T10:04:36 | 253,805,054 | 0 | 0 | null | 2022-06-22T01:38:54 | 2020-04-07T13:42:47 | Python | UTF-8 | Python | false | false | 12,462 | py | ''' Incremental-Classifier Learning
Authors : Khurram Javed, Muhammad Talha Paracha
Maintainer : Khurram Javed
Lab : TUKL-SEECS R&D Lab
Email : 14besekjaved@seecs.edu.pk '''
import logging
import numpy as np
import torch
import torch.nn.functional as F
from torch.autograd import Variable
from torchnet.meter impo... | [
"hkg16@mails.tsinghua.edu.cn"
] | hkg16@mails.tsinghua.edu.cn |
e9a2e401bb053c6e1fd5418deeb65ef1952a13ce | 28d1e6f66a21ec303bc1baaac597e4b4619c52bc | /scrapper/mail_sender.py | 1b98cfee02d2bb7760081418cda0de4a20f27986 | [] | no_license | bjanik/Scrapping | 429f8d0a27e3e90a081c75e7ce142f5b21a5042d | e5d30e319d9c0a55784b7158cc549ee7e0c3a06d | refs/heads/master | 2023-03-16T12:27:59.206483 | 2021-03-05T15:30:45 | 2021-03-05T15:30:45 | 338,134,198 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import os
import smtplib
import ssl
from dotenv import load_dotenv
from email.mime.text import MIMEText
load_dotenv()
EMAIL = os.getenv('EMAIL')
PASSWORD = os.getenv('PASSWORD')
def send_email():
msg = MIMEText("Poker all time money ranking was updated, check hendonmob.com", 'html')
msg['Subject'] = 'Poker r... | [
"bartlomiej.janik@hotmail.fr"
] | bartlomiej.janik@hotmail.fr |
e18e58f2087dcdc2ec2b67d90bf03e1694885de1 | b5b24b9861f7baf90aae4ef6ae21bf03cbc7939b | /Practice_4Aug2021/application.py | 9d0b36c9cc5d988d80e766b2ee1dc840dab16927 | [] | no_license | KashifaSk/PracticePy | cc52330e73b84e0bcbdc58a0326a7c7ccfbd5fa3 | cafff1fc65ee42f1796c3e7969732d3b87ab67c4 | refs/heads/master | 2023-07-26T14:29:44.197787 | 2021-09-09T07:40:12 | 2021-09-09T07:40:12 | 403,882,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from time import sleep
def is_windows():
sleep(5)
print('Windows')
return True
def get_op_sys():
return 'Windows' if is_windows()==True else 'Linux'
| [
"kashifa.nibras@gmail.com"
] | kashifa.nibras@gmail.com |
3c2e2d353cbbce71f6839c272c8aec8f4b16215a | 76e931912629c37beedf7c9b112b53e7de5babd7 | /3-mouth04/day03/mysite3/bookstore/migrations/0002_auto_20210110_1743.py | 6150a4cd907207df18066c991e6c09691c209a1c | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Generated by Django 2.2.12 on 2021-01-10 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookstore', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='book',
name='market_price',
... | [
"673248932@qq.com"
] | 673248932@qq.com |
8ef952e0b3847c9270fb1dcc56b38268dfd1280e | a90f26442d2707e2bdb90d91b137824a466b87e0 | /plot_resamples.py | 0116cf4e0eb99f21fe15d3bad86d6c6cc8bff249 | [] | no_license | Lathomas42/OverlapCalculations | bf51537df4f237d0f2ddc8fc826fedb024c9b9bf | c355decb8fd751737f4b12d1d00eb804c7a2d990 | refs/heads/master | 2021-01-25T03:54:31.801351 | 2015-07-17T18:08:11 | 2015-07-17T18:08:11 | 39,266,920 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import catmaid
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
c=catmaid.connection.Connection('http://catmaid.hms.harvard.edu','thomas.lo','asdfjkl;',9)
src = catmaid.get_source(c)
n1 = src.get_neuron(325123)
o_g = n1.dgraph
n_g = catmaid.algorithms.morphology.resample_edge... | [
"Thomas.lo@husky.neu.edu"
] | Thomas.lo@husky.neu.edu |
c26f312e05872575fc4b383606975ab2c824e7c8 | 789562a599eb2150c916ac8acce0b65ce536cd98 | /djangoprojects/djangoprojects/firstProject/quoteApp/views.py | 1da5abec5fdfc32852e2717e3c4a6055bf43e398 | [
"MIT"
] | permissive | PacktPublishing/Django-for-Python-Developers | d00ff469eea7a606cdb551305bd2c9db163c23cf | 3befe80d97c77fa8671d39418db7829befff4ad9 | refs/heads/master | 2022-11-06T21:28:08.795743 | 2022-10-28T09:00:44 | 2022-10-28T09:00:44 | 229,254,516 | 4 | 8 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def displayQuote(request):
return HttpResponse("The best investment we can make is in ourself")
| [
"7393253-PactkKavya@users.noreply.gitlab.com"
] | 7393253-PactkKavya@users.noreply.gitlab.com |
0f31be0044104b62a563cf35bef77f66ef440d66 | 9ba93228edcf6f73defcd17b58029c041c74fa2c | /server/pythonCode/getKOSSPI200.py | d8cbd1e3b73fb6e1cf03a64d963db0ee08d87ab4 | [] | no_license | majiajue/StockPredict_With_News | 5f47ccdeebf65bed7854c27208307ca53d8e4b6d | c2b654d79f50b7d0ef7c50030793cbd25a072162 | refs/heads/main | 2023-04-03T01:57:51.956432 | 2021-04-09T14:10:37 | 2021-04-09T14:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from bs4 import BeautifulSoup
import requests
import pandas as pd
def crawling_kospi():
codes = []
names = []
frame = pd.DataFrame()
for i in range(1, 21):
temp = pd.DataFrame()
url = ("https://finance.naver.com/sise/entryJongmok.nhn?&page={}".format(i))
source = requests.get(ur... | [
"ehdrjs5161@gmail.com"
] | ehdrjs5161@gmail.com |
a5730a06cdd677e469370c44373f06213a0c3202 | 1498b25e58c9b8b2d397c092fd6771c88e08b586 | /doc/source/conf.py | dfdc1e8be76270718e6eb214792ba30d2c153c56 | [
"Apache-2.0"
] | permissive | eriknyquist/bfi | 10351af5c19d0a8510afda5d84448ea9c46da0c4 | 7f0f8c6451f7afb3d1b7d02a597f7ae17f5f85d9 | refs/heads/master | 2022-07-06T20:02:25.699654 | 2022-06-05T23:33:01 | 2022-06-05T23:40:10 | 91,935,827 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"eknyquist@gmail.com"
] | eknyquist@gmail.com |
30efcb5485a81d526beb7605a8cdb628f3ab83b3 | 258345561053d794fd738b932b8a468df9f50bab | /commands/refresh.py | b05414e851ae0f171302e2d4de18621e50d0e254 | [] | no_license | jdpls/Servrhe | f3dd12e18b85017763b5242629f67e51d9235f20 | 6b3d89b9a24cf5adc21e4b4bdda0d9104af78aff | refs/heads/master | 2021-01-18T11:08:30.939035 | 2013-05-04T06:21:40 | 2013-05-04T06:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from twisted.internet.defer import inlineCallbacks
config = {
"access": "admin",
"help": ".refresh || .refresh || Refresh show cache",
"reversible": False
}
@inlineCallbacks
def command(self, user, channel, msg):
yield self.factory.refresh_shows()
self.msg(channel, "Show cache refreshed")
| [
"Fugiman47@gmail.com"
] | Fugiman47@gmail.com |
082ca97e0e3d3db0369d19d460798b5ad7554925 | 377518a1e9b4736009dbc997b9c2ebddc0a146bb | /jz30.py | 9f91886f95ae722faa9316aa3a46c8834adaab7d | [] | no_license | Steven5678231/JianzhiOffer | b4575b4048386fca479a5fc74275ac8c35e384c0 | 5434d263d270a0ee108eb2447f2876e5af07067a | refs/heads/main | 2023-03-16T10:32:02.321803 | 2021-03-12T11:27:32 | 2021-03-12T11:27:32 | 329,522,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding:utf-8 -*-
class Solution:
def FindGreatestSumOfSubArray(self, array):
# write code here
f = [0]*len(array)
if len(array) < 1:
return 0
if len(array) < 2:
return array[0]
f = [i for i in array]
for i in range(1, len(array)):
... | [
"53145087+Steven5678231@users.noreply.github.com"
] | 53145087+Steven5678231@users.noreply.github.com |
d348aca8174320a1d59058b5bb76e9b425f38c2d | eed93ecbb01acb180085bed4960a4b2fd4a2322d | /wishbook/models.py | 372decb65cb08595289fd1a8658a2716acd51846 | [] | no_license | srakrn/happyearthday | beb8a52cdc73a19b48143e43154feaacf4ac174a | 0da2fd4ac31db1a7df13f12c78c65db641d13794 | refs/heads/master | 2022-05-17T19:33:00.219871 | 2021-06-10T10:24:22 | 2021-06-10T10:24:22 | 254,112,489 | 0 | 1 | null | 2022-04-22T23:22:12 | 2020-04-08T14:33:55 | Python | UTF-8 | Python | false | false | 560 | py | from django import forms
from django.db import models
# Create your models here.
class Wish(models.Model):
wish_text = models.CharField(verbose_name="ข้อความอวยพร", max_length=240)
wish_owner = models.CharField(verbose_name="ชื่อผู้อวยพร", max_length=50)
shown = models.BooleanField(default=True)
crea... | [
"tanersirakorn@gmail.com"
] | tanersirakorn@gmail.com |
eecdec9c1181e7404b931906cb527d898a6186d9 | d0d24fc8fb994e2f43964c6e3c606aad4cd5b84b | /Visualize_Predictions.py | 51a844f6a63b95b2bf2ef8939b9b67032ee31be1 | [] | no_license | madhavabhyankar/Interest_Rate_Prediction | 641b8784b7c4f187f044f0a4687dd0c1218f0189 | 7339e0ff8e21173ff906b97e835d6691ae13de03 | refs/heads/main | 2023-04-10T21:57:57.318726 | 2021-04-24T15:24:44 | 2021-04-24T15:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # Visualize prediction data
#
#
# This uses 'plotly' and 'chart studios' to create interactive graphs of the interest rate predictions
#
import datetime
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import chart_studio
# Username and api keys need to be obtained from Plotly by registe... | [
"noreply@github.com"
] | noreply@github.com |
4ab8d72cd44be52d94d38853b759cf9746751e60 | d2510c23f64904b778edec87519cfd957afe56a2 | /full-adder.py | 2a8c412636b576966f10e9f6a0c32750967f6461 | [] | no_license | richardmunyao/ieeextreme_code | e9382f93ae2819a76573090bbb3beb4a846dd69b | 5abbf003f6b987dad9193509331fcf8795fd50b6 | refs/heads/master | 2021-01-17T22:04:43.949540 | 2017-03-07T11:00:50 | 2017-03-07T11:00:50 | 84,187,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | #! /usr/bin/env python3
in_line1 = input()
line1 = [f for f in in_line1.split()]
base=int(line1[0])
if base < 2 or base > 62:
exit()
symbols=list(line1[1])
mapper={}
for x in range(base):
mapper[(symbols[x])]=x
zero = [key for key, value in mapper.items() if value == 0][0]
in_param1 = input()
param1=in_... | [
"noreply@github.com"
] | noreply@github.com |
6d5d099a2907453a5c13a6219c0d42b982c456a3 | 480e33f95eec2e471c563d4c0661784c92396368 | /CondTools/Ecal/python/copyTrivial_orcoff_LaserOnly.py | f1755f2e56183685dce9bf8a0127949e8bcbb272 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 2,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
process.EcalTrivialConditionRetriever.laserAPDPNTime1 = cms.untracked.string('0')
process.EcalTrivialConditionRetriever.laserAPDPNTime2 = cms.untracked.string('1')... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
a8143116430fbfe2b31f1a548577aa67668ca369 | aa89cefc5e11a31e6da44964c3b902e4eccd1ef5 | /config.py | 6f43cb58e1fe342d3e9b2f0595879c1c7611b789 | [] | no_license | GradientFox/Hacaton | 37acc5011d460d4bd6c8a9accc61bec87ea457c0 | 75846cea94c1049ce67738f257216ddc5bd93403 | refs/heads/main | 2023-01-11T14:35:43.399439 | 2020-11-14T13:42:15 | 2020-11-14T13:42:15 | 312,565,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | host="192.168.0.109"
port = "5000" | [
"nikitaa.zuev@gmail.com"
] | nikitaa.zuev@gmail.com |
4b3e7420b8de3dc371cd9ed030985a187e3e539a | 7b301070921fef44f24aebe22b5a894de02049f6 | /movie/movie/settings.py | c51832c94ef469a1d754103357dd535b6fa4c946 | [] | no_license | elliottgates/4900_assignment3 | 05fd80c74c6b32225873798b462d802079123fae | d3fd6ab24c8b4fceba916f1a2b5779d50f237503 | refs/heads/main | 2023-08-26T09:00:09.488996 | 2021-11-02T20:55:23 | 2021-11-02T20:55:23 | 423,996,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,283 | py | """
Django settings for movie project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib i... | [
"elliottgates@unomaha.edu"
] | elliottgates@unomaha.edu |
f799a2eed66cae0b8e16a8d2d860d186b2d5139d | 1359e2e752609704141268390b73d9a52c2bd578 | /ncdg.py | 353a39a92f70e302492b783b803400aec0dd30f6 | [] | no_license | arjunsawhney1/search-relevance | f8ae1c0496f7c2252e93709c1d8b3c207c460498 | 4a61efd1d9f647aa5197c6c6daf0ec3c2a06b3dd | refs/heads/main | 2023-08-02T05:18:05.337816 | 2021-10-04T22:05:10 | 2021-10-04T22:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | # Copyright 2016 Krysta M Bouzek
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writi... | [
"arjunsawhney7@gmail.com"
] | arjunsawhney7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.