blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
215c25ff82445f20287bdd8bbd15f05641fd6053 | 1201e90015f2e068fe6ee9fb2540687578847ae8 | /hostel/docs/views.py | c1c47819f01ce59b9d779d248751fb0c9940a89d | [
"Apache-2.0"
] | permissive | sincere32/hostel | ad33f814bc9f5614d5202dc431615fadfb776bdd | 34408e969cedde247b9121934cd531f224ddb1ae | refs/heads/master | 2023-01-02T04:54:58.063968 | 2020-10-21T15:04:15 | 2020-10-21T15:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,920 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required, permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect, reverse
import hostel.common.helper_functions as h
from hostel.clients.models import Client
fr... | [
"phylocko@mail.ru"
] | phylocko@mail.ru |
5730b69a0802e196a75c473d7b494b184765e4a9 | 20952210ba89eac3e7d74a8a4c35eef48037c659 | /eventex/subscriptions/tests/test_admin.py | 33e893e5549911f60d871cb733fd6d11f5a3025b | [] | no_license | cpatrickalves/eventex | 181491f6ec978597704cc66dbc8f897cb3f9869b | dd8233ef6d9a6b3278d2388d254d8f512c3c0819 | refs/heads/master | 2020-09-28T05:53:16.635145 | 2017-01-16T18:17:04 | 2017-01-16T18:17:04 | 67,431,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | from unittest.mock import Mock
from django.test import TestCase
from eventex.subscriptions.admin import SubscriptionModelAdmin, Subscription, admin
class SubscriptionModelAdminTest(TestCase):
def setUp(self):
# Prepara o BD
Subscription.objects.create(name='Patrick alves', cpf='123456789... | [
"cpatrickalves@gmail.com"
] | cpatrickalves@gmail.com |
b56b95773ecf1e085ce8d479c4276dc62671e7b1 | 5d77027f93fe251388bfc52d6da553a7f23cafa6 | /umm-python/app/domain/composite_solution_map.py | 35d93302bb202be074b3e1dc66929b7eab7b14fc | [
"Apache-2.0"
] | permissive | suomitek/cubeai | d86e1d57fec4cb30ac5de38f613d1d0de9bd2808 | cc4c0f5f445a552d239910da63944307c1f06e37 | refs/heads/master | 2022-12-08T13:12:57.279914 | 2020-08-29T18:12:40 | 2020-08-29T18:12:40 | 291,183,681 | 0 | 0 | Apache-2.0 | 2020-08-29T02:11:57 | 2020-08-29T02:11:56 | null | UTF-8 | Python | false | false | 272 | py | class CompositeSolutionMap:
def __init__(self):
self.id = None
self.parentUuid = None
self.childUuid = None
def from_record(self, record):
self.id = record[0]
self.parentUuid = record[1]
self.childUuid = record[2]
| [
"huolongshe@126.com"
] | huolongshe@126.com |
b6d0c2267d52b5f791315417a324c2657e86e1db | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-dataform/samples/generated_samples/dataform_v1beta1_generated_dataform_list_workflow_invocations_async.py | dde7ff28eefb1bca3666f553e8ef38cb254977af | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,967 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
cec1ff8ea345d786e98431b3d65d0e89ae236165 | 5cbf2ddb902eb7fb0da3c8b91de768d0848c06be | /pages/pages_project/urls.py | cb52bf5d771a4354bc949b2e398f5dbf824970f3 | [] | no_license | conectis360/django-begginer2.0 | 60b031594ba4f9c359916e3912518bc1e2a3335c | 429d352084787d7dd0aca4fd310c75478e497852 | refs/heads/master | 2022-04-26T18:57:53.591800 | 2019-08-17T05:02:28 | 2019-08-17T05:02:28 | 202,827,107 | 0 | 0 | null | 2022-04-22T22:19:24 | 2019-08-17T02:50:36 | Python | UTF-8 | Python | false | false | 829 | py | """pages_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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'... | [
"noreply@github.com"
] | noreply@github.com |
d608a0cf8b8a9c849b83ab55e2264e12e37f0771 | f8a010ac8a9f9689b22d18f50a3e23d5d695b0e1 | /Modeling/FitSeqPredModel.py | fcd4e4d709f422b2fb3120cce5f4dabcff0b0948 | [] | no_license | janesunflower/SpatioTemporalPredictiveModeling | 79cb81931075165e32d131d3e00681adcdea6785 | f28a481550ca54b79ebc124ca77adfcf4ec28b7f | refs/heads/master | 2020-03-22T19:08:55.835039 | 2017-08-09T22:02:48 | 2017-08-09T22:02:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,671 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed May 10 09:43:54 2017
@author: xiaomuliu
"""
import numpy as np
#from sklearn import preprocessing
from sklearn.pipeline import Pipeline
from sklearn import preprocessing
#NOTE: scikit learn v0.18 changed 'cross_validation' module and 'grid_search' modu... | [
"xiaomuliu@gmail.com"
] | xiaomuliu@gmail.com |
fdc0f41cf2ed69d4d148067fd373352e36deb85e | a1e94de283e5fbb5d7546cf3673101f6df4aee21 | /python/tf_seg_model.py | b88f1faec83677ef7b7a653b26cb3b8354d80508 | [] | no_license | gongxijun/tfqieci | 81a35eb53e928b409459fbbb99083b69cc54eb01 | ae9abb200427382b0c3ef09d8eef0ecc1c5538a3 | refs/heads/master | 2020-04-16T17:31:27.238862 | 2019-01-15T04:41:23 | 2019-01-15T04:41:23 | 165,778,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
----------------------------------
Version : ??
File Name : tf_seg_model.py
Description :
Author : xijun1
Email : xijun1@staff.weibo.com
Date : 2018/11/13
-----------------------------------
Change Activiy : 2018/11/13
--------------... | [
"1005267096@qq.com"
] | 1005267096@qq.com |
e33d27a85a6cb1e15658fad8e903d6c2f9211338 | fd3750f3830329b10ef20e3b24272cbdbd3b025f | /servidor1.py | 50d682394dfd8d8c4809f8178ec3eab4d6ec63d3 | [] | no_license | AlvaroCS1023/Cliente-Servidor | 208f94d0c8b772ac9a12f63dc8e10d3b64ef957c | 7527b427f2041974c5c271aa6277ec7aac277994 | refs/heads/main | 2023-01-24T19:50:53.147026 | 2020-12-01T06:05:43 | 2020-12-01T06:05:43 | 317,441,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | import socket
import threading
import sys
import pickle
class Servidor():
"""docstring for Servidor"""
def _init_(self, host="localhost", port=9000):
self.clientes = []
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.bind((str(host), int(port)))
self.sock.listen(10)
self.sock.setb... | [
"noreply@github.com"
] | noreply@github.com |
1ca728aa0a5257ab2f309ad100c10869fffcc888 | f272656b91e70f0e514009d70d566dcb390bc277 | /ozgun_liste.py | 172bdc9e796f305b747145f43ed0102e18354f3e | [] | no_license | mfarukoz/8.hafta_odevler-Fonksiyonlar | 65a7024e847b828629add3e4c3d81559099cb3ae | 1046062340f40dbb4db314c016d2b8423fee8b7d | refs/heads/master | 2020-06-29T13:36:41.096497 | 2019-08-09T01:16:07 | 2019-08-09T01:16:07 | 200,552,385 | 0 | 0 | null | 2019-08-04T23:38:43 | 2019-08-04T23:38:43 | null | UTF-8 | Python | false | false | 293 | py | # coding=utf-8
def ozgun_liste(*arg):
#fonksiyon ismi ve sınırsız parametre tanımlama
liste=set(arg)
#tupel'i set'e dnusturme(tekrarlı elemanlar otomatikman alınmamıs olacak
return print(list(liste))
#return ile sonucun listeye donusturulup ekrana yazdırılması
| [
"51508821+mfarukoz@users.noreply.github.com"
] | 51508821+mfarukoz@users.noreply.github.com |
f928e54f0dac7709a51fa243d1d8ea979e3bc8fd | 188f5f04e4c904213727872ea9a2e3f772d9b3af | /constant_variable_example/1509906484_constant_variable_example.py | adfb3d001f0144a65995ca2c54c02ec8ee73eb2e | [] | no_license | KatarzynaSzlachetka/Individual_project | 43b2379de96a19bc1bde34cc386928bd61700094 | 722dc6d7bd882558b50d7d0837a7f53c7b4709a6 | refs/heads/master | 2021-09-04T06:37:47.141300 | 2018-01-16T20:02:37 | 2018-01-16T20:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def constant(a,b):
c = "mut"
a = 8.393460901275843
if a<b:
b = 1.7542498485112656
else:
return 9.268545497053575
if c == "mut":
return False
constant(6,1) | [
"kasia.haja@gmail.com"
] | kasia.haja@gmail.com |
460a5f4a032121c254f1e60a432315653fa13d15 | 10aa9f2d34080a61e26afabde4fd9a6c0a269fed | /ticketbot.py | 6e0fb8db840041148f3849755054ff495397ab0a | [] | no_license | chetan1728/ticketbot.py2 | cc8e8283ccfac7fa1331707fe1caa4254d93ec4f | 3129838a1e8a54dbc1f700a224b2849b25d8dee1 | refs/heads/master | 2020-04-13T13:36:45.365785 | 2018-12-27T02:47:40 | 2018-12-27T02:47:40 | 163,236,316 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 40,060 | py | import discord
from discord.ext.commands import Bot
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
import asyncio
import platform
import colorsys
import random
import os
import time
from discord.voice_client import VoiceClient
from discord import Game, Embed, Color, Status, Chann... | [
"noreply@github.com"
] | noreply@github.com |
e0e558727efb272b2f35cc42380b49cd5cb301c2 | 7dd2bac7616b295e0a95538007879595051c8f5c | /DocParser/docparser.py | 5819382f43936e594bb4d91ca2f52294c25ef5f5 | [
"MIT"
] | permissive | mrchocoborider/smallprojects | 40a2b6c338b8a0174d1188e3670ae368fda63441 | 2335484e1644a8d9ec76e62f1c3b8c6b1d9db93a | refs/heads/master | 2021-05-04T20:25:03.533585 | 2019-01-29T04:58:22 | 2019-01-29T04:58:22 | 119,809,625 | 0 | 0 | MIT | 2019-01-29T04:58:23 | 2018-02-01T08:57:37 | Python | UTF-8 | Python | false | false | 6,349 | py | import re
import docx
from docx.shared import Pt
import copy
import sys
reg = re.compile(r'[a-zA-Z]+')
#This was written specifically to help my fiancee who had huge documents of text in
#Chinese with English translation, but wanted to remove empty lines, change English font size to 11
#and also change the order of E... | [
"mrchocoborider@gmail.com"
] | mrchocoborider@gmail.com |
d0421b44a25e1116f523a219dbfed2dc534f5518 | f5485d955fa942711f337286a86f05374ea58a72 | /migrations/versions/cbe0f844650d_.py | 95626d4f1467e756a549807f7e637093f64f7ef7 | [] | no_license | bingfengjiyu/flask_demo | f6245d7e8696b3bc492ed3f922948bd01319be30 | 3feef9fcee6e3c8f8fae46fb0fb5f5a8bdb82f4d | refs/heads/master | 2020-03-24T11:04:03.012486 | 2018-07-28T12:16:01 | 2018-07-28T12:16:01 | 142,674,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | """empty message
Revision ID: cbe0f844650d
Revises:
Create Date: 2018-07-07 12:10:18.303153
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cbe0f844650d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
3d63334af90eb146e2448b01450835ace0a19062 | 037969c85708a1964490a6445a5d616c362000e1 | /py-misc/prepare_categories.py | f5ed2d69a466f469cc3b7e8fdd40c43a0d582649 | [
"MIT"
] | permissive | thehemen/dc-contest-2021-r2 | a2e6fe76097b28325137439e606edbca3715a1bd | 601ec2dbdf410f91b573e9ad9aee6188b588ec6a | refs/heads/main | 2023-09-03T08:19:27.475523 | 2021-05-02T15:01:57 | 2021-05-02T15:01:57 | 429,071,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,804 | py | import sys
import json
import pprint
import random
import argparse
from PySide6 import QtCore, QtWidgets, QtGui
from PySide6.QtCore import Qt as qt
from data_record import DataRecord
def fix_by_newline(s, threshold=110):
s_new = ''
for line in s.split('\n'):
for i in range(len(line) // threshold + 1)... | [
"hemen4815@gmail.com"
] | hemen4815@gmail.com |
dd103ca7787849a3bf82828cff7fb9713f864637 | 1ac3359142adf0f508f1f526e90d4d5ac917ebda | /scripts/evaluation_script.py | 4da0ce576fbd14c3b3a3a80951b1afe2cf2519d9 | [] | no_license | yasminsarkhosh/fyp2021p04g04 | 6cc5b11a796ddc6d5df3e200f677aa8e58655d7e | cbc0290b091ccd400fb4c27b81111e0ced31668b | refs/heads/main | 2023-06-29T11:01:34.287728 | 2021-06-06T17:38:20 | 2021-06-06T17:38:20 | 362,124,047 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,670 | py | # usage: evaluaton_script.py [-h] [--tweeteval_path TWEETEVAL_PATH]
# [--predictions_path PREDICTIONS_PATH] [--task TASK]
# optional arguments:
# -h, --help: show this help message and exit
# --tweeteval_path: Path to TweetEval dataset
# --predictions_path: Path to predictions files
# ... | [
"78597237+yasminsarkhosh@users.noreply.github.com"
] | 78597237+yasminsarkhosh@users.noreply.github.com |
49a688770364efb8e0684b72da81da98ad348e05 | c53770c8e3012fa78b1c2c98ce68b192cc432f0c | /crypto-exploitation/padding-oracle-attack/POCs/oracle-demo-all-blocks.py | b45017efafd5e11f284758d4f6d41067c0d85263 | [] | no_license | 1m6h0st/exploitation-training | 2cf100be50f37aa0f71adae8ea6acf1af197a447 | 0375284ec19b19dd278ab344e6a3031c94608303 | refs/heads/master | 2023-08-20T17:03:52.727037 | 2021-04-05T15:37:46 | 2021-04-05T15:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,553 | py |
"""
In this demo, we demonstrate a Padding Oracle Attacking, guessing the the plaintext from the ciphertext.
For decrypting the very first block, we also need the IV, which in this demo assume that we have it
"""
import random
from copy import copy
from Crypto.Cipher import AES
from Crypto.Util import Padding
BLOCK... | [
"chalkiadakisn@gmail.com"
] | chalkiadakisn@gmail.com |
66084b78d97cf842d8272e1d96df1f910dffd84d | 07df38b4ab8733c12611397b8de7b9d51015351b | /bienesmuebles/views.py | d52ed2aa57074af35ad3ff70293ba949f57d58af | [] | no_license | bitia1/nuevo | f60bf4985617924d398e9961d97e832f0c2955dc | 24d700f6ad866facd4b390925e8246a6b6f14645 | refs/heads/master | 2020-03-21T08:42:33.801157 | 2018-06-23T00:49:47 | 2018-06-23T00:49:47 | 138,360,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.views.generic import View
from .forms import MuebleForm
# Create your views here.
def homeview(request):
return render(request, 'homeBM.html')
class ArtuculoView(View):
''' OrganizacionEstudio '''
form_class= ... | [
"janaiprincipal@gmail.com"
] | janaiprincipal@gmail.com |
e8fcc78c1879609c22a8e380e5cb5530520e3343 | c724a87ccb758398ac333577c637ed6ae9419efb | /DataMining/group_project/main.py | 83463d5d78062c8d40ef8bb6c026e490965079dd | [] | no_license | Inkozi/School | 9b33028cd2b6d5dffafc652fd4866b77130fed50 | e3a878e4f00b9066c2ae9432d7030d3ca3692b12 | refs/heads/master | 2021-10-23T23:28:37.057769 | 2018-03-25T02:07:55 | 2018-03-25T02:07:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py |
import Statistics
import numpy as np
import pandas as pd
import operator
import copy
def writeToFile(df,s):
subs = ['COCAINE_REF', 'ETHANOL_REF', 'HEROINE_REF', 'METHAMPHETAMINE_REF', 'MORPHINE_REF', 'NICOTINE_REF']
for i in range(len(s.pValues)):
f = open(subs[i], 'w+')
for j in range(len(s.pValues[i])):
... | [
"noreply@github.com"
] | noreply@github.com |
ac9cb79b3dcf49071e853fea387f1c293579dd72 | 22ad9f0e83cbbe8dc8382d701a6c744a3219b98b | /ls8/cpu.py | 207f1649d52e573c09756de2d07747541ac1da70 | [] | no_license | Jrive204/Sprint-Challenge--Computer-Architecture | cd9feabb80d86abc077ee764bec0cc1df178d948 | 9a3dd803b85c32b9b36cee5390fc536d6630cc73 | refs/heads/master | 2022-11-05T18:43:31.244393 | 2020-06-19T17:40:06 | 2020-06-19T17:40:06 | 273,552,685 | 0 | 0 | null | 2020-06-19T17:38:44 | 2020-06-19T17:38:43 | null | UTF-8 | Python | false | false | 8,365 | py | """CPU functionality."""
import sys
import re
# instance = {
# "LDI": 0b10000010, # Sets the Value of a reg to an int
# "HLT": 0b00000001, # halts the program, "ends it"/"stops it"
# "PRN": 0b01000111, # Prints the value at the next reg
# "MUL": 0b10100010, # multiply reg at +1 with reg at +2
# }
... | [
"jrivera6869@gmail.com"
] | jrivera6869@gmail.com |
7570a7e69cff44f1cc225814c4f9dba828edaecb | 0ba78125ea7ee061511f7dab58bbf2b9284c7fec | /formsfive/tests/forms.py | 8e6a539e422af2c55c1dd3845631648ccd3df517 | [
"BSD-3-Clause"
] | permissive | iamjstates/django-formsfive | 2f8deab8aff736a67fb19edd1e0a5878e1fc1e6f | 6eab78ef921724a2be5ce3e8aceb82e4f49d3ff1 | refs/heads/master | 2021-01-13T02:29:59.727273 | 2012-07-19T20:00:53 | 2012-07-19T20:00:53 | 2,867,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
from django.utils.translation import ugettext_lazy as _
from formsfive.tests.models import Todo
import formsfive as forms
class TodoForm(forms.HTML5ModelForm):
body = forms.CharField(label=_(u'Post or Story Body'), placeholder=_(u'listed'), required=True)
sample = forms.IntegerField(max=... | [
"jstates@based.ca"
] | jstates@based.ca |
0105ae6a0f432e906d8c0f3a428f8f6209277bd8 | d5cfc0b983e3f3304dd465eda010c7549e33bcf5 | /enneagram/skeleton.py | 87723fce65645dca2cc33a1d5c0575278c012218 | [] | no_license | jmhossler/enneagram | b83a034099fc064b32274147e396f355b06b0e65 | de39c6d1588db6e0110e81c82e75c6b80ba0b957 | refs/heads/master | 2023-04-01T16:54:47.902439 | 2020-10-29T03:59:53 | 2020-11-27T08:56:30 | 62,271,349 | 1 | 0 | null | 2023-03-16T06:50:31 | 2016-06-30T02:03:12 | Python | UTF-8 | Python | false | false | 2,871 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a skeleton file that can serve as a starting point for a Python
console script. To run this script uncomment the following line in the
entry_points section in setup.cfg:
console_scripts =
fibonacci = enneagram.skeleton:run
Then run `python setup.py in... | [
"john.m.hossler@gmail.com"
] | john.m.hossler@gmail.com |
11321f1540a39b69acdb058cfd8d55e5558bdb84 | 21b2614a048da03f860710399a9c871f1eb2052e | /classes/Guest.py | 3f5d4526c07df5b13abc83b48ecb563f489c9a7c | [] | no_license | Naydire007/codeclan_caraoke | 72e88b1d5f2df29337b41ade852e24c644ba8121 | 9832059c09f9b930f18e3b77ea57ddffefdc51f3 | refs/heads/main | 2023-06-04T19:48:55.882883 | 2021-06-28T02:46:16 | 2021-06-28T02:46:16 | 380,885,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | class Guest:
def __init__(self,name,wallet,favorite_song):
self.name = name
self.wallet = wallet
favorite_song = favorite_song
def pay_entry(self,amount):
self.wallet -= amount
| [
"stephania.l.e@gmail.com"
] | stephania.l.e@gmail.com |
fa0b4aecc20679a3ec3655aa71d64f4b62bbf0f4 | 6afd2c59870217ec93d539f812ddfc70c13d5d3a | /src/apps/calificacion/models.py | 6ac811ff70282daa27bb0e9d774213785c0d59f5 | [] | no_license | heraldmatias/acajef | f03972f09121a05d09e4ca3d6f407d4bf2920ad2 | 0a47a565110dcc60f79fd7c9e62472c6acf8c38c | refs/heads/master | 2021-01-25T12:07:23.878398 | 2012-04-16T06:49:22 | 2012-04-16T06:49:22 | 2,861,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from django.db import models
from curso.models import CursoDocente
from boleta.models import Boleta
from campus.models import AlumnoCampus
class Nota(models.Model):
curso_docente = models.ForeignKey(CursoDocente)
alumno_campus = models.ForeignKey(AlumnoCampus)
nota = models.IntegerField('Nota')... | [
"themiseck.rock@gmail.com"
] | themiseck.rock@gmail.com |
331941ba245a3efd4bff501824095597344e2597 | 8b808179d023896c520996abe1e6eae35da1673f | /data/mapper.py | d3b5565403db9308b363ac6e905c7e9832e7b5a2 | [
"MIT"
] | permissive | emily-barnes/Barnes_E_DataViz | 4d7fa3bfb18bf60247472d3a32e707967ecfe7f7 | 4e6cdffde1772964ac173b444b68e03198daa9b1 | refs/heads/main | 2023-02-01T15:21:33.517214 | 2020-12-20T04:42:49 | 2020-12-20T04:42:49 | 320,649,778 | 0 | 0 | MIT | 2020-12-20T04:41:58 | 2020-12-11T18:13:21 | HTML | UTF-8 | Python | false | false | 326 | py | import matplotlib.pyplot as plt
years = [1924, 1936, 1952, 1964, 1976, 1988, 1998, 2002, 2010, 2014]
medals =[9, 13, 17, 7, 3, 6, 49, 76, 93, 90]
plt.plot(years, medals, linewidth=3.0)
plt.ylabel("Total Medals Awarded")
plt.xlabel("Years")
plt.title("Total Medals Won by Canada Over the Years" , pad="20")
plt.sh... | [
"emilybarnes@Emilys-MacBook-Pro.local"
] | emilybarnes@Emilys-MacBook-Pro.local |
9c77d1de75a3f39cbe795c825a8d1208e277e1fe | c8b3454cee3ac3107cbd50665db49e1ce5edbe22 | /schedules/migrations/0002_auto_20190622_0958.py | d76818f0df4623a361356f02573fbb7ff46dd669 | [] | no_license | FerchoGD/Gestion-Monitorias | e1d631f31390b724366badc30b726193af208670 | 0f85e595268ef9dd358fdc3c2b73ee7498f197a8 | refs/heads/master | 2020-03-27T01:56:17.000965 | 2019-08-20T00:56:23 | 2019-08-20T00:56:23 | 145,755,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 2.2.2 on 2019-06-22 14:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedules', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='timeslot',
name='day',
... | [
"ferchogir@gmail.com"
] | ferchogir@gmail.com |
d29b8d8c7da8d36517a6fa5b1025972204040926 | 84576eeaa849b622735f8310bec2857885608cf8 | /game/test_client_message_handler.py | 93b5600933378e39be58924e213f7454d64e696e | [] | no_license | Escario/arduino-milestag | 2c334a43594c639bade48ede41ab75ab9e89df93 | 56c9ea23f31360a642d22e773847dd886de8d30e | refs/heads/master | 2020-03-20T18:32:41.217270 | 2018-05-28T21:06:53 | 2018-05-28T21:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | "Test how the client handles messages from the server"
from client import Client, Main
import proto
def noop():
"No op function for use as a stub"
pass
def test_ping(mocker):
"Test handling of PING message"
mocker.patch.object(Client, '_openConnection', autospec=True)
client_obj = Client(mocker.M... | [
"andrew@als-bi.com"
] | andrew@als-bi.com |
2afd63762f350a46cd3d44a1180b6360ef64572a | 30aba5246cd3c0fb5fe3299cfffd301e4b51db3b | /importData.py | fb15296ccd9d923b55c36088ef227df6b8e9e085 | [] | no_license | Brisk-Rui/SpectraReconstruction | bb0b67e6637075186234c20392188d70702acfe4 | a40265c8138267f9cfa4ac541fffdf60497668b3 | refs/heads/main | 2023-07-29T03:14:08.879811 | 2021-08-31T07:50:20 | 2021-08-31T07:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,452 | py | """
SPECTRA PROCESSING
Copyright (C) 2020 Josef Brandt, University of Gothenborg.
<josef.brandt@gu.se>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | [
"josef.brandt@gu.se"
] | josef.brandt@gu.se |
02b8c59f8dd6c7884da2b597847a776eb586f9c6 | 330cb5350c330887fef9f5a1c9381b60e2e9204b | /todo/test_forms.py | 870dcbcdc5722d9f34beb65db05ab457ab8cfaf6 | [] | no_license | nealbrophy/CI_hello-django_new | c62b098aaf5f0de538719ac715cf8fbc85631b4b | 61498d5710898ad87bd69c6f32f334db99e58899 | refs/heads/master | 2023-08-12T10:31:43.522740 | 2021-06-11T15:05:53 | 2021-06-11T15:05:53 | 267,389,249 | 0 | 0 | null | 2021-09-22T19:07:30 | 2020-05-27T17:54:20 | HTML | UTF-8 | Python | false | false | 626 | py | from django.test import TestCase
from .forms import ItemForm
class TestItemForm(TestCase):
def test_item_name_is_required(self):
form = ItemForm({'name': ''})
self.assertFalse(form.is_valid())
self.assertIn('name', form.errors.keys())
self.assertEqual(form.errors['name'][0], 'This ... | [
"nbrophy@pm.me"
] | nbrophy@pm.me |
f91c694e6c4343a359d8011596dbf65dddee08e7 | 0f5fadb3b735ff8de20f6c068a2cc52a018c5f4b | /Solicitud/models.py | 74acca60d0c98219f3b790791769cf1d9ba55d7b | [] | no_license | NoelChaparro/Siobicx | 193c8ed92f905f46f645f5caaa82f0bea31bd608 | 0d655de3ad6d2c7e3f245ff09d4ea25deb706b7d | refs/heads/master | 2021-01-15T23:50:41.930456 | 2014-12-10T20:05:06 | 2014-12-10T20:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,305 | py | #encoding:utf-8
from ConexosAgropecuarios.models import Persona
from Programas.models import Programa
from django.db import models
# Create your models here.
class Solicitud(models.Model): #Clase que genera el modelo para gestionar la solicitud de aseguramiento del socio en la base de datos.
DECLARACION_SOLIC... | [
"sidia.jaquez@gmail.com"
] | sidia.jaquez@gmail.com |
c97200edd3289bc742f4771a37ae118ebe0817da | 18aca150e55480c15aa49bbcc2e18f1a2d1c91ff | /polls/views.py | 2851477e79ae56689b8ea120c9ce38beeaa5b170 | [] | no_license | CassioSalvador/Django2.0Tutorial | 86bf00c871be96d434f39e735914fcb0f91f5188 | 50e1771af4eda3a7870756062fed8a9bd9d9e17a | refs/heads/master | 2021-05-10T10:00:36.102985 | 2018-01-25T17:36:23 | 2018-01-25T17:36:23 | 118,945,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from .models import Choice, Question
# Create your views here.
class IndexView(generic.ListView):
te... | [
"cassiosalvador90@gmail.com"
] | cassiosalvador90@gmail.com |
533876a381911e6ccb0850999d0c0075332f05f4 | c3711aa405fb1ad731888ed9b041ef7d287833c8 | /app.py | 36da1a19e02dadd105c0f1a6b67718189ed14a56 | [] | no_license | kims99/VTM_site | d5e2b30fe6fdef9dee1035b222dcc52ada561755 | 264696fd7523b26195d75eded5ea94b35adda92f | refs/heads/master | 2021-07-14T09:54:54.216815 | 2020-02-18T18:26:04 | 2020-02-18T18:26:04 | 241,269,907 | 0 | 0 | null | 2021-03-20T02:55:31 | 2020-02-18T04:13:13 | HTML | UTF-8 | Python | false | false | 1,274 | py | from flask import Flask
from flask import render_template, request
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html', pageTitle='Flask Server Home Page')
@app.route('/about')
def about():
return render_template('about.html', pageTitle='About VTM')
@app.route('/kim', met... | [
"kimberly-souravong@uiowa.edu"
] | kimberly-souravong@uiowa.edu |
a9b443fd0f2e781a1c90b3b0906673a657fdb5ff | b4776512598925029ed2784a016f748955318bea | /tests/api_tests/test_api_language.py | 0c921cd2c60f1804ed2f5df6ad80453222219b9c | [
"Apache-2.0"
] | permissive | kvtb/dedoc | e95f1b3968c2c1f8cad5a3e015af33c725b7348f | 34e4f7011cdcc58bcf37ec90ef07c4841d43b841 | refs/heads/master | 2023-06-16T19:05:56.134453 | 2021-07-15T15:11:58 | 2021-07-15T15:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | from tests.api_tests.abstrac_api_test import AbstractTestApiDocReader
class TestApiDocReader(AbstractTestApiDocReader):
def test_en_doc(self):
file_name = "english_doc.doc"
result = self._send_request(file_name, dict(language="eng", structure_type="tree"))
content = result["content"]
... | [
"kozlov-ilya@ispras.ru"
] | kozlov-ilya@ispras.ru |
5d59554ebd3eeeb3cc7d1a44287dc99666250f1d | 2388cf1916978e4356061182c89226e69546b64f | /mt9001_driver/scripts/runAndShow.py | 7d3754a2400354c4f3747c7e90823662b71a93ae | [] | no_license | cnping/BBBcam | dcf1e225e8ee535136c0588d4f4bc8e6a4389cfa | ef94222a1ea79fd31ed442f329df2c3566bbbc48 | refs/heads/10bit | 2021-01-18T08:53:10.261389 | 2016-02-18T02:11:00 | 2016-02-18T02:11:00 | 52,163,465 | 0 | 1 | null | 2016-02-20T16:40:18 | 2016-02-20T16:40:18 | null | UTF-8 | Python | false | false | 470 | py | import os
import numpy as np
import sys
from matplotlib import cm
prefix = sys.argv[1]
name= prefix + 'sum.dat'
def main(prefix):
arr =np.reshape(np.fromfile(name, dtype = 'uint32'), (1024, 1280))
#plt.imshow(arr, interpolation='none')
plt.imshow(arr, interpolation='none', cmap = cm.Greys_r)
plt.save... | [
"debian@beaglebone.(none)"
] | debian@beaglebone.(none) |
8c8ebf1b96236c4c10d7bab4940997e6a9ff6d30 | 3fe31c7f38a785d71d51917020c3022bdd466937 | /cpxButtons.py | 33a2f2f4a8472604ef5809bd5324132c1b7361d1 | [] | no_license | mkiser71/python | 8191b063527288d2626f116a08b0414c02de36c2 | f485fcfd2f569683acc002cf4ae5a16167d64460 | refs/heads/main | 2023-04-28T19:50:28.083607 | 2021-05-21T12:00:49 | 2021-05-21T12:00:49 | 338,573,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from adafruit_circuitplayground.express import cpx
while True:
if cpx.button_a:
cpx.pixels[2] = (255, 0, 0)
elif cpx.button_b:
cpx.pixels[7] = (0, 255, 0)
else:
cpx.pixels.fill((0, 0, 0))
| [
"noreply@github.com"
] | noreply@github.com |
56de5b85ec3189cb5b85c474e96d22a39866e6e9 | 5496f2f8e1e92387fd113d255fc9f484765281b1 | /PK/kri6_semoga fix.py | efdfb331cdcf8799fb3c133aebbc6ee201960e7e | [] | no_license | TRUI-GLADIATOS/latihan | 01035f8dfc0bba660906693c98f6cf5b90069c7a | 6ec5b98f8b14882d4c15ce9973aa85d29a820483 | refs/heads/master | 2021-07-21T18:39:40.128194 | 2021-07-11T15:38:12 | 2021-07-11T15:38:12 | 157,535,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | import cv2
import numpy as np
import serial
from time import sleep
import time
#oii ser = serial.Serial("/dev/OpenCM9.04", 9600) # Open port with baud rate
# data = 0
def B():
cap = cv2.VideoCapture(0)
# Set camera resolution
cap.set(3, 480) # 3,480
cap.set(4, 320) # 4,320
_, frame = cap.read()
... | [
"armeliaramand@gmail.com"
] | armeliaramand@gmail.com |
3cdb1a1be34179b6668f1e9da47a1e17c6f87961 | 5df755b8dc70c128138c1e6e304a15a8f4d392a1 | /ch2/06_pr_02_remainder_of_two.py | 60528a59cd2f2a529c75308f78df3116ccd978dd | [] | no_license | atharv4git/pyLearn | bff2c2212aefce8832e94bf7caf19bdd0fd4de8d | d768b23f3f81798892d5caa0ed40ef66565a7ecb | refs/heads/main | 2023-06-29T07:24:30.533661 | 2021-07-30T11:28:55 | 2021-07-30T11:28:55 | 391,033,742 | 0 | 0 | null | 2021-07-30T11:28:56 | 2021-07-30T11:03:07 | null | UTF-8 | Python | false | false | 104 | py | a = input("Enter a number:")
a = int(a)
print("The remainder when" , a , "is devided by 2 is" , a%2) | [
"noreply@github.com"
] | noreply@github.com |
ee130f7ff914a89d881715663eba4f61cc90bcfb | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/core/framework/tensor_pb2.py | 9adcb52c8c3ea21bdcdcb2006d01b4c3f6a19493 | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | /home/co/.cache/bazel/_bazel_co/2e35bede1f3fd334ff5ab28da2fc1540/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/core/framework/tensor_pb2.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
c3f930a57f742244a509c73f88c22f23c4c54e86 | 53e1cfd01f4fb6ff6160b5292c471a3d77a48660 | /python/PyMOTW-2.0.1/PyMOTW/asyncore/asyncore_http_client.py | 1dc2f6ad29a731144b7d470a057f592bef0002d7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | MarkTseng/mySampleCode | 446df156c14c04519fbfdad933ef3e04fb1d4e04 | e3c4c8589b634dc2b26681b5c2c704a39665a280 | refs/heads/master | 2022-06-04T08:28:49.317400 | 2020-06-12T07:23:32 | 2020-06-12T07:23:32 | 7,599,118 | 10 | 10 | null | 2022-05-14T00:31:27 | 2013-01-14T05:45:34 | C | UTF-8 | Python | false | false | 2,145 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2009 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
import asyncore
import logging
import socket
from cStringIO import StringIO
import urlparse
class HttpClient(asyncore.dispatcher):
def __init__(self, url):
... | [
"mark.tseng@realtek.com"
] | mark.tseng@realtek.com |
a0a19a07d37174229a775fc5ab451b3a3396a995 | d9e0585e57b482d91e8af7514e683e2488e23381 | /padinfo/view/series_scroll.py | 8d6a99de4701c691fb50fc7dd9820cae2b135354 | [
"MIT"
] | permissive | TrendingTechnology/pad-cogs | d08abb8da8bf2763a4091a29139168d8c1d2333a | b913a4e16a6473b8b53fae4bda564bedcc82c876 | refs/heads/master | 2023-08-11T01:10:22.088761 | 2021-09-19T00:41:43 | 2021-09-19T00:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,190 | py | from typing import TYPE_CHECKING, List
from discordmenu.embed.base import Box
from discordmenu.embed.components import EmbedMain, EmbedField
from discordmenu.embed.text import BoldText
from discordmenu.embed.view import EmbedView
from tsutils.emoji import char_to_emoji
from tsutils.menu.footers import embed_footer_wit... | [
"noreply@github.com"
] | noreply@github.com |
7ae7198fa354aec4c1775a03d319da0d45d323ea | 0f07107b016d2aee64788966b9f0d322ac46b998 | /moya/testprojects/scratch/blog/py/test.py | 2b109b36a4486a66034ed4b3c5ad99d295a37b25 | [
"MIT"
] | permissive | fkztw/moya | 35f48cdc5d5723b04c671947099b0b1af1c7cc7a | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | refs/heads/master | 2023-08-09T09:20:21.968908 | 2019-02-03T18:18:54 | 2019-02-03T18:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from __future__ import print_function
import moya
@moya.expose.macro("test")
def test():
print("Success! :-)")
return 10
| [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
ab16cc2ec6de6847a7b06e4883b4b8156aea149b | 228b0a0073884ae5e8c1035998e6a8cb9e4a4917 | /1. Strings/StringsInPython.py | bd0051dffaf116a3bfe8c8bb5974e4bd8e8a4606 | [] | no_license | geekysid/Python-Basics | dd4a6a9a4aae97377182c93b445313af41393995 | 7cc0a7ad55fdd7633a2d5b806a916af097428f66 | refs/heads/master | 2022-04-03T13:03:34.958479 | 2020-01-31T15:32:56 | 2020-01-31T15:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,489 | py | # Author: Siddhant Shah
# Descp: Understanding and working with strings
# In Python we can use strings as below
myName = "Siddhant"
print(myName)
# We can place string literals in between single quotes (') or in between double quotes (").
# If we start a string using single quote then it must end with singl... | [
"siddhant.shah.86@gmail.com"
] | siddhant.shah.86@gmail.com |
c15d4b3566815e61f9fc93ba6b974c34f358c170 | e2ad93398194942c13c27b25aa868eda4ff4f46c | /sponsortracker/download.py | 987305d12d281d57363d875f7b84883ec45f917e | [] | no_license | Auzzy/bfig-sponsor-tracker | ab2fbcf6ba562f977263b5f91c3aca756e037302 | cff466de6797ea276130335bdc368c706eed583d | refs/heads/master | 2023-06-01T04:41:26.082120 | 2023-05-11T11:52:11 | 2023-05-11T11:52:11 | 25,780,177 | 0 | 0 | null | 2023-05-11T11:52:12 | 2014-10-26T16:14:46 | Python | UTF-8 | Python | false | false | 2,989 | py | import collections
import os
import shutil
import tempfile
from enum import Enum
from os.path import exists, expanduser, join, splitext
from sqlalchemy import or_
from sponsortracker import model, uploads
from sponsortracker.data import AssetType, Level
ZIPNAME = "sponsortracker-assets"
def all(level=None):
re... | [
"metalnut4@netscape.net"
] | metalnut4@netscape.net |
ecec82f7d6a458418140579021abfe8fd06af04d | d5934c0624095112533201ca748e035cf33e19c1 | /CodeWars.py | cf1e344b5cb120c23316d6af8e874e87e7799ead | [] | no_license | waithope/codewars | b5bbb81193cb1b98830024c16b2470c5b0d070c9 | 315d9dca4e0163b03409a2d806ce0f809353a991 | refs/heads/master | 2020-03-14T15:49:17.211859 | 2018-05-10T04:30:40 | 2018-05-10T04:30:40 | 131,684,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,745 | py |
# 0123456789
# 0##########
# 1## ##
# 2# # # #
# 3# # # #
# 4# ## #
# 5# ## #
# 6# # # #
# 7# # # #
# 8## ##
# 9##########
# rowCount = 10
# columnCount = 10
# for i in range(rowCount):
# for j in range(columnCount):
# if i == 0 or i == rowCount - 1 or j == 0 or \
# j == c... | [
"yunqiang.gan@gmail.com"
] | yunqiang.gan@gmail.com |
360da2be75d373e79cf00b85bd0f99c57c87e8a5 | 64dfe7e6a139044799a6a54dfc2ba04c09479c8d | /Machine Learning/linear regression/linear_regression.py | ab3a3db2beffa82628962ffa843e02c5eb9dd684 | [] | no_license | chierqj/ML-and-Image | 9a1c9956eb90e41b06b0114012c4813dfcf8c9e1 | 92adc3530167ac1478808770f19baf81a18a086a | refs/heads/master | 2021-10-24T05:38:48.266694 | 2019-03-22T11:38:31 | 2019-03-22T11:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | import numpy as np
import matplotlib.pyplot as plt
# load data
def loadDataSet(fileName):
numFeat = len(open(fileName).readline().split('\t')) - 1 # get number of fields
dataMat = []
labelMat = []
fr = open(fileName)
for line in fr.readlines():
lineArr = []
curLine = line.strip().... | [
"1152591772@qq.com"
] | 1152591772@qq.com |
0e9fc8acc9e665f358306e77d53a34064d1e86ec | 7d02f1f6b38284d647caa77d148505b8d8f89fb4 | /flask/loinc_service.py | f8c2a259211c9137439086a8778c032a49e279cf | [] | no_license | sfogo/rest-ways | 22e79ac621538028da8e0b81443d5bd3fb2459d3 | bfd7a6f0aa4d83a9077584ef74f29618c1b32045 | refs/heads/master | 2020-12-25T15:18:05.532394 | 2016-09-17T23:34:23 | 2016-09-17T23:34:23 | 66,242,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | #!/usr/bin/python3
import sql_service as service
# =====================
# LoincException
# =====================
class LoincException(Exception):
def __init__(self,code,status,message):
Exception.__init__(self,message)
self.code=code
self.status=status
def __str__():
return '{... | [
"o@gorostis.net"
] | o@gorostis.net |
64ec01ba21f64787427bb5e89548b171ba75b077 | dd777c86d22e229841a324adae0c9064a4d59307 | /search_engine_project/settings.py | 6634c7e0725a316a2a41550f99b85303eb4ff3c3 | [] | no_license | JisunParkRea/search-engine | bcec97218f3fec00b6352e6415929464051f4aa3 | 34a1355ec445ce916b96058fd382478b897cb43e | refs/heads/master | 2022-11-09T21:44:55.089291 | 2020-06-13T14:41:33 | 2020-06-13T14:41:33 | 271,531,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,650 | py | """
Django settings for search_engine_project project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""... | [
"fpdldk912@gmail.com"
] | fpdldk912@gmail.com |
c49f884ff1e502534a0cbabe7633c2134b201d34 | b391498124fdcaef989bf3ebafffb0df43e3e07f | /pygccxml-0.8.2/unittests/declarations_cache_tester.py | 10112018fdfee5e022b785ec191dc8df82e502cb | [
"BSL-1.0"
] | permissive | glehmann/WrapITK-unstable | 9a0dd9d387ecd59c9439465dcc32cca552e14576 | 402fc668f1f3c3dd57d0751a61efa3b1625d238b | refs/heads/master | 2021-01-10T22:02:04.715926 | 2008-05-25T16:53:07 | 2008-05-25T16:53:07 | 3,272,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,319 | py | # Copyright 2004 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os, sys, unittest, os.path
import autoconfig
import pygccxml.parser
from pygccxml.parser.config import config_t
from... | [
"gaetan.lehmann@jouy.inra.fr"
] | gaetan.lehmann@jouy.inra.fr |
047c1ebd782e80a602689965078bb65de47b133a | c2d23f201924972e32695e2ae848710836cd3e4d | /0x04-python-more_data_structures/9-multiply_by_2.py | 11b45fde03bb8ed0ec68816cf13fb15725c6e8e2 | [] | no_license | oangel26/holbertonschool-higher_level_programming-1 | 8e19ccf01d3933af1248d830d3f02ff8dd7870f2 | a49808576ad0b422c10f204f316bd921f9bc1597 | refs/heads/main | 2023-06-29T13:15:47.430077 | 2021-08-04T00:06:34 | 2021-08-04T00:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/usr/bin/python3
def multiply_by_2(a_dictionary):
result = {}
for k, v in a_dictionary.items():
result[k] = v * 2
return result
| [
"2159@holbertonschool.com"
] | 2159@holbertonschool.com |
9c14abf2141c645825bb3572f94ff19a61281d45 | 698ad822ff616b86e88784ec4fce08b42c46e870 | /torch/_dynamo/allowed_functions.py | 67daafc5adac78651457c01de7096eb20617b562 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | puppup420247-org/pytorch | 6fa244b817ace397e97e85c553bd315093ef4533 | 090fce2547ac96730f99877085a7477097c4ad97 | refs/heads/master | 2023-07-21T03:54:26.234286 | 2022-11-12T05:59:55 | 2022-11-12T05:59:55 | 188,915,637 | 1 | 1 | NOASSERTION | 2023-07-20T11:42:38 | 2019-05-27T22:20:25 | C++ | UTF-8 | Python | false | false | 8,428 | py | import builtins
import collections
import copy
import functools
import inspect
import itertools
import math
import operator
import types
import warnings
from typing import Dict, Optional, Set
import numpy
import torch
from torch.fx._symbolic_trace import is_fx_tracing
from . import config
from .utils import is_safe_... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
41f0af239f27689911e24f4c57d69fae46c3a7c8 | 5dd841ec5b6e4b9a474b67d1f62843297d8b9073 | /frameworkutils/baseutils.py | 325cba9a25b866c19987568a879e9afa62afb9d5 | [] | no_license | Evading77/all_auto_testing | 9bf6036600d5cbc9285da182f1bb5cbb19473e50 | 627f5867d483dda2acc08192a6f140cdf27a5f36 | refs/heads/master | 2022-11-29T17:56:55.002675 | 2020-08-04T04:57:42 | 2020-08-04T04:57:42 | 284,881,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py |
# 数据驱动运行
import inspect
from frameworkutils import logger
def getfunc(obj, method):
"""
反射获取函数和参数列表
:param obj: 对象
:param method: 方法名
:return:
"""
try:
func = getattr(obj, method)
except Exception as e:
return None
arg = inspect.getfullargspec(func).__str__()
... | [
"eva_ding77@126.com"
] | eva_ding77@126.com |
72c66855914d9adbb005f2d70feed5876d242f5d | a2a23feb46da7f30d9910878fcbd3146bfb51696 | /simutool/scVI/scvi_imputation.py | 85eb457ae42bffb194bd1bbdd290bc5455d72dbe | [
"MIT"
] | permissive | JunLiuLab/SIMPLEs2020 | 7e9a9b552b0501cc2fe5035584fdc85c10b1b1fd | 90e6aa1e254b81fd81f2211b3fdfb552270d76fe | refs/heads/master | 2022-11-21T20:38:50.044833 | 2020-07-24T18:06:59 | 2020-07-24T18:06:59 | 274,720,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | import argparse
import torch
import numpy as np
import pandas as pd
from pyprojroot import here
from pathlib import PosixPath
from scvi.dataset import CsvDataset
from scvi.models import VAE
from scvi import set_seed
from scvi.inference import UnsupervisedTrainer, load_posterior
# * commons
set_seed(0)
# ** data
nce... | [
"zsp07@tsinghua.org.cn"
] | zsp07@tsinghua.org.cn |
ad668f9d86edc435d70bd9c77ada6322c24bcda5 | eef0fbd71a3f8f1a3e4bd8a6e9527f220bb52b36 | /RoundF/p2.py | 721fd50578fb07187af393686e724d4543a01e56 | [] | no_license | azanbinzahid/google-kickstart-2020 | c609eb9ae7737abc6686b069999a58d6c589d452 | ab8aa5e28a696372192bbb8557ba8dadd76f0f38 | refs/heads/master | 2022-12-28T16:29:12.158826 | 2020-10-18T15:21:03 | 2020-10-18T15:21:03 | 298,944,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import math
T = int(input())
for c in range(T):
N, K = map(int, input().split())
time = []
for n in range(N):
S, E = map(int, input().split())
time.append([S,E])
time.sort(key=lambda x: x[0])
robotCount = 0
robotCurrent = time[0][0]
for t in time:
... | [
"noreply@github.com"
] | noreply@github.com |
25be6302bd9150151560453a17906af226789f01 | 904b0d81152649ccd3349f94f88e7b89a7b5c76a | /scripts/main/xicombNS_DA02.py | e2f17c6818b725c4127a2e6be411fb79ee8c98bd | [
"BSD-3-Clause"
] | permissive | desihub/LSS | ec33538a0e7280ad1c6b257368cc009ed4b39cbb | 5645461929172d327ed30389d76e7e887043c9bf | refs/heads/main | 2023-08-18T23:17:13.123605 | 2023-08-18T20:08:22 | 2023-08-18T20:08:22 | 36,753,969 | 14 | 28 | BSD-3-Clause | 2023-09-13T18:37:35 | 2015-06-02T18:42:51 | Jupyter Notebook | UTF-8 | Python | false | false | 1,710 | py | #!/usr/bin/env python
# coding: utf-8
import os
import argparse
import logging
import numpy as np
from astropy.table import Table, vstack
from matplotlib import pyplot as plt
from pycorr import TwoPointCorrelationFunction, TwoPointEstimator, KMeansSubsampler, utils, setup_logging
njack = '60'
trs = ['ELG_LOPnotqso'... | [
"ashley.jacob.ross@gmail.com"
] | ashley.jacob.ross@gmail.com |
1268bbb90ae4972ef8895f051afd048acf92532e | 712729bfe3125fc149309b2436729f6cfd13b82b | /while/walking.py | fd4986df1f9348c1dd4354432253c3a4868429c7 | [] | no_license | borko81/basic_python_solvess | 61d29270fed7cccbac0e7654936d29811eb62a26 | 858ec7a520ee3df006e67c352dc198b783e8433e | refs/heads/master | 2022-12-29T04:18:26.441928 | 2020-07-17T08:04:47 | 2020-07-17T08:04:47 | 278,708,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | goal = 10000
total_steps = 0
while True:
step = input()
if step == 'Going home':
step = int(input())
total_steps += step
break
else:
total_steps += int(step)
if total_steps >= goal:
break
if total_steps >= goal:
print(f"Goal reached! Good ... | [
"noreply@github.com"
] | noreply@github.com |
cc7c49501e786cd44d771aaabe8b71a5c0506d1f | 46a27b193308641d6029a11361a8d52389a2a405 | /upstream_extract.py | fdddc4e69972af6d37d468693b680a914b46760a | [] | no_license | ahtmatrix/bioinformatics-scripts | 702c28e6717f78f982b6572db248f2041118b988 | dd3762f7b5c8bbf9ec64a9faa861036342a54392 | refs/heads/master | 2022-11-29T06:52:29.556297 | 2020-08-15T23:20:41 | 2020-08-15T23:20:41 | 68,765,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | import sys
import os
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeature import SeqFeature, FeatureLocation
from Bio import pairwise2
import warnings
from Bio import BiopythonWarning
# Usage
# python SeqExtract.py [number of bases upstream to cut]
# to combine multiple .gbk files into 1 gbk
... | [
"alan.han.tu+c9@gmail.com"
] | alan.han.tu+c9@gmail.com |
32e57294391a73d29a78726cd72289198fc7ad3b | 1a25b59f0b459e90505cca5e7bf0764928c66aa7 | /src/simulator/dstructures/binning.py | 39597c70186f59cb9cd5c62fe3a0de77c88b071a | [
"MIT"
] | permissive | hd818/htc-cache-system-simulator | ca104c201ed76e964a44f8a3a3ebc4ab7a5b0b60 | ee502db3f1c2b99ffe05ee609a18069b583798da | refs/heads/master | 2023-03-23T03:23:41.352685 | 2020-12-10T18:58:45 | 2020-12-10T18:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,329 | py | import abc
import itertools
from typing import Callable, cast, Generic, Iterable, Iterator, List, Mapping, Set, Tuple, TypeVar
from .sorted import SortedDefaultDict
# TODO: Binner could also handle floats (numbers, limits)
class Binner(abc.ABC):
@property
@abc.abstractmethod
def bounded(self) -> bool:
raise No... | [
"paul@skopnik.me"
] | paul@skopnik.me |
89494d606152fc377c552c22f50b2423e447ab6e | c9b562e31618417aa727d8f3da16604cc79e7cb1 | /tajna.py | 4238899752735dd56165b4eb3c0abbbea63cc7ea | [] | no_license | AlexKohanim/ICPC | 6922a9929a665b9ee8442f1e2355b8a0546c77ad | f22eaa63a1ac6cae6857e442c776f1b59542ed92 | refs/heads/master | 2022-01-27T07:49:19.480130 | 2022-01-18T05:39:58 | 2022-01-18T05:39:58 | 159,398,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | #!/usr/bin/env python3
message = input()
val = len(message)
factors = [(i, val // i) for i in range(1, int(val**0.5)+1) if val % i == 0]
i,j = factors[-1]
#print(i,j)
k = 0
l = 0
while l < val:
if k >= val:
k = (k+1) % val
print(message[k], end="")
l += 1
k += i
print() | [
"alexkohanim@gmail.com"
] | alexkohanim@gmail.com |
98495503813fe7144d1b3df53d36140cbd69d039 | 55822b50e88d0627776864ed43325eec5d03d957 | /playGame.py | 8e94f04973064bf3fc3226180bcd315cc28c230e | [] | no_license | badman27/MTG-Game-Python-Final-Project | 83a2092f60a2ab1e6a129364bf89a3ea2bdf0eaa | 8590677c7a18da640b32abc91c6c743d1094045a | refs/heads/master | 2020-04-09T21:20:45.120286 | 2018-12-14T20:21:18 | 2018-12-14T20:21:18 | 160,599,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import gameBoard
import playerLib
import buildDecks
import cardEffects
from urllib import request
board = gameBoard.Board()
player1 = playerLib.Player("Player1")
computer = playerLib.Player("Computer")
player1.initialDraw()
computer.initialDraw()
board.displayLife(player1)
board.displayLife(computer)
board.drawImage... | [
"30854558+badman27@users.noreply.github.com"
] | 30854558+badman27@users.noreply.github.com |
5c08f2fcba52da2a82e6bd84da49a9d6dedfab31 | c32f2e1f3d9c1e556f58c7876abcf7943b7f8f9f | /envs/pybulletenvs.py | f47e70a83d9002859d335f141c98ee9f1dd42aba | [] | no_license | matthewlujp/drl_in_handful_of_trials | 00d2f265777e8cf1cb26e12cca25257c8c2a0d4a | aed77881eb76bafc2f880f7d90116cb0696254e2 | refs/heads/master | 2022-11-05T11:31:26.463080 | 2020-06-21T04:12:39 | 2020-06-21T04:12:39 | 273,715,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import gym
import pybullet_envs
# Environments in pybullet
PYBULLET_ENVS = ["CartPoleBulletEnv", "CartPoleContinuousBulletEnv", "MinitaurBulletEnv", "MinitaurBulletDuckEnv", "RacecarGymEnv", "KukaGymEnv", "KukaCamGymEnv", "KukaDiverseObjectEnv"]
PYBULLET_ENVS_DEEPMIMIC = ["HumanoidDeepMimicBackflipBulletEnv", "Humano... | [
"matthewlujp@gmail.com"
] | matthewlujp@gmail.com |
4d64347ffa03e103de068e66bc946d0999ccfce2 | 436051d199fcc323a422b7fea377f43c01004366 | /helpers/labml_helpers/metrics/simple_state.py | 2a6575141ce8871da42ebc4cbb7b596e62453fdb | [
"MIT"
] | permissive | xet7/labml | 29d411b94f1d6b9ff03c6033f510cea443d38248 | 7f3918ca7de8cb21cf6dcc9d127a6ea64c0aebb9 | refs/heads/master | 2023-08-18T10:03:13.142430 | 2021-07-18T11:11:42 | 2021-07-18T11:11:42 | 387,184,226 | 0 | 0 | MIT | 2023-08-11T20:01:39 | 2021-07-18T13:36:49 | null | UTF-8 | Python | false | false | 813 | py | from typing import Generic, TypeVar, Optional
from . import StateModule
T = TypeVar('T')
class SimpleState(Generic[T]):
state: Optional[T]
def __init__(self):
self.state = None
def get(self) -> T:
return self.state
def set(self, data: T):
self.state = data
def reset(s... | [
"vpjayasiri@gmail.com"
] | vpjayasiri@gmail.com |
11d173e2e009317f099e646a9d101c71ae82a9b9 | 519b4cf7623c40e0280c435246b6cde46853ecc1 | /project/holviapp/utils.py | d731848e8107fe128a56275bbd33d4b1a41ef18a | [
"MIT"
] | permissive | HelsinkiHacklab/asylum | a3fe492f76145c922125949c41acce6e8d4beec4 | 6fcf71fb5c7bb894322039144e814b9edc07d5bb | refs/heads/hhl_changes | 2023-02-16T18:54:17.277017 | 2021-08-13T17:59:46 | 2021-09-13T17:45:45 | 47,038,401 | 1 | 1 | MIT | 2023-02-03T13:22:48 | 2015-11-28T20:28:58 | Python | UTF-8 | Python | false | false | 2,574 | py | # -*- coding: utf-8 -*-
import holviapi
import holvirc
from django.conf import settings
CONNECTION_SINGLETON = None
def apikey_configured():
"""Check if we have apikey"""
return bool(settings.HOLVI_POOL) and bool(settings.HOLVI_APIKEY)
def userauth_configured():
"""Check if we have username/password"""... | [
"eero.afheurlin@iki.fi"
] | eero.afheurlin@iki.fi |
8fd04813872bbf94e8bd5b6b62e9db65d869052c | 63d6ca49d6f919daa87d098e70fd0fccbb6d84cf | /environments/environments.py | 6756536a30f327c50113dff0f458ca5b41ecd5bd | [
"MIT"
] | permissive | vpj/reproduceRL | dac2bde9986647e1c4b0b09c7021ffda2b2e5998 | 2db00b4d1f6c9c88029a7f06458f4b93e1b72a8d | refs/heads/main | 2023-07-13T15:22:49.040609 | 2021-08-15T05:21:49 | 2021-08-15T05:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,091 | py | import numpy as np
import random
import os
import sys
file_dir = os.path.dirname(__file__)
sys.path.append(file_dir)
try:
import roboschool
except ImportError:
print('Running without using roboschool')
from terminations import choose_model
#This file provide environments to interact with, consider actions as ... | [
"yangchenpan@Yangchens-MacBook-Pro-2.local"
] | yangchenpan@Yangchens-MacBook-Pro-2.local |
413a04b1b20c53420cc7512c3aa19b0036de4ad8 | 826c8c24b03a345c6bd293b08e44a5a435a40c6c | /7月租.py | d8f0c280ff1497a66f5ceb8730ef8aa2a332b2bd | [] | no_license | Asterisk0224/python20 | 4e47a05d7d299e2b5d7277ca465e2959ac6288ad | de16b385249c7dc690bb66265a0984f5d928e321 | refs/heads/main | 2023-04-16T13:45:01.087508 | 2021-05-03T08:56:54 | 2021-05-03T08:56:54 | 363,868,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | a=int(input("輸入月租類型"))
b=int(input("通話秒數"))
if a == 186:
if b *0.09 <= 186:
print(round(b*0.09*0.9))
else:
print(round(b*0.09*0.8))
elif a == 386:
if b *0.08 <= 386:
print(round(b*0.08*0.8))
else:
print(round(b*0.08*0.7))
elif a == 586:
if b *0.07 <= 586:
p... | [
"Asterisk0224@gmail.com"
] | Asterisk0224@gmail.com |
3d88c5133c882da1c4cccc6b1b0ca1a5eb0f8501 | fe00d59cb37c0e6f8d1886a510573c55dae5df3a | /Scripts/data_population_scripts/populating_items.py | eb2ee846c0e46be8bfa8b8519253076807bc21d9 | [
"MIT"
] | permissive | AbhinavS99/OnlineShop | 76980ee5bb346b3dc74ea58c1d99788e4f4e38c6 | 47ea8bbb03aade88bccc4218b3f583181f1118f0 | refs/heads/main | 2023-03-01T14:23:18.676272 | 2021-02-05T22:21:06 | 2021-02-05T22:21:06 | 336,397,631 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import mysql.connector as sql
db = sql.connect(
host="localhost",
user = "root",
passwd = "himraj18",
database = "project67"
)
#populating items using this code
attributes=[]
attributes.append([1005,"Travel Bag","American Tourister","Bags",1525.00,15,'2020-03-01',None])
attributes.append([1006,"Coca Cola","Coca Co... | [
"noreply@github.com"
] | noreply@github.com |
fe8087783d56301fddb861866779ab604a5e83f6 | 4e5cdffa14c8404d836dc9f034cbbf34a86c7503 | /src/api/urls.py | 9113ef4c4d5780858faf92eee0a13749d97d0775 | [] | no_license | gtdata/publish_data_alpha | da1cf013a5b2c7290d0af7a48d43adc90e301f3f | f1a9753daac7fbe8cc5bed5f30b8601c781449ab | refs/heads/master | 2021-01-20T03:03:36.303264 | 2017-04-18T11:49:29 | 2017-04-18T11:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django.conf.urls import url, include
from rest_framework import routers
import api.views as v
import api.api_def as a
urlpatterns = [
url(r'locations$', v.gazeteer_lookup, name='gazeteer_lookup'),
url(r'^datasets$', v.dataset_lookup, name='dataset_lookup'),
url(r'^status', v.StatusEndpoint.as_view()... | [
"ross@servercode.co.uk"
] | ross@servercode.co.uk |
fd4f34bd37a1850cebf63349ded69eb7dacdc2d9 | 12b54eef11d2e2e3147915c707c825c37e5ee544 | /env/bin/mako-render | 46ce75f9faf4e3e4fe9a61fd02e1e9d099f78ab3 | [] | no_license | EugeneKalentev/bfg-test | a23f39323ed34cbd5f1a2687b9811f7568211c1f | c7888402f1c580fd00a94c3d1c129b13200ee3c2 | refs/heads/master | 2020-04-23T11:25:55.221355 | 2019-02-23T11:04:08 | 2019-02-23T11:04:08 | 171,136,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/eugenekalentev/Documents/Code/bfg_test/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"EugeneKalentev@gmail.com"
] | EugeneKalentev@gmail.com | |
34c86687e3422730fe1c5f01255a0144f790b97e | 95ad4e4c6c57ce42d0b17c42623d3a042e6f8269 | /doc/conf.py | 2334998b25b434a9008fbae2cfe867919707f5fc | [
"Apache-2.0"
] | permissive | zhaobin74/cosima-cookbook | e35c19726b35acc7644dffddd7185b1d1d3f2146 | ffd8a2cd0aa4131816119487137f5c8bd664a50e | refs/heads/master | 2021-01-02T09:06:51.915465 | 2017-08-10T15:51:36 | 2017-08-10T15:51:36 | 99,145,230 | 0 | 0 | null | 2017-08-02T17:46:06 | 2017-08-02T17:46:05 | null | UTF-8 | Python | false | false | 5,413 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# cosima documentation build configuration file, created by
# sphinx-quickstart on Mon May 29 02:03:50 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"jmunroe@mun.ca"
] | jmunroe@mun.ca |
ed33a50324b7e3a5eecebca1a2b58fcd87538545 | 97fde6e1ee2c63d4359a005a8a17db87559dd3eb | /api/models.py | 44c72a280c9cf023ae7be9d686aecd138860d6d2 | [] | no_license | Bibin22/Book_project | 6f6d0cce452e0298d16676425eeb2f77e915c3e5 | 9884363927e6b3b559d43a6ead584f1741b54370 | refs/heads/master | 2023-03-31T21:36:02.594431 | 2021-03-24T07:15:46 | 2021-03-24T07:15:46 | 350,402,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.db import models
# Create your models here.
class Book(models.Model):
book_name = models.CharField(max_length=120, unique=100)
price = models.IntegerField()
pages = models.IntegerField()
author = models.CharField(max_length=100)
def __str__(self):
return self.book_name | [
"bibinjoy82@gmail.com"
] | bibinjoy82@gmail.com |
648c96dc4e0b5288371503c57fbba9f47aad8f9b | 10cf8b015b4635f42738a3ef72b7ded225bf3ca2 | /vortexasdk/version_utils.py | 599c9d0e1e2e0355b6a33f24a575847f371afdf1 | [
"Apache-2.0"
] | permissive | minjeonglim/python-sdk | ac93237d9088b121a2389ab31943f680990e0eaa | 097948194e91a760f4c788eb33838d9f1a4402e7 | refs/heads/master | 2023-02-11T22:00:05.598784 | 2021-01-07T16:32:54 | 2021-01-07T16:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import json
from urllib.request import urlopen
from distutils.version import StrictVersion
from vortexasdk import __name__ as sdk_pkg_name
from vortexasdk.version import __version__
def get_latest_sdk_version() -> str:
"""Retrieves the latest SDK version from PyPI."""
url = f"https://pypi.python.org/pypi/{sdk... | [
"kitburgess"
] | kitburgess |
31da41a52c69e784f51eed56ad158f668b43f91e | 14f027326e17da2aff631b932835184f4791bde7 | /apps/home/migrations/0003_user_is_staff.py | f8bf99be80c43d4eb5594e018ef9da590eb8090a | [] | no_license | mohbadar/mohe-eform | d7f377e26c58f744946f58f2d3029cb99becd992 | 7590116ac238e798ba20967eb55f18099bf04d85 | refs/heads/master | 2022-11-09T19:23:14.356586 | 2020-06-29T05:49:34 | 2020-06-29T05:49:34 | 274,160,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.7 on 2020-06-29 05:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20200629_0944'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_staff',
... | [
"mohammadbadarhashimi@gmail.com"
] | mohammadbadarhashimi@gmail.com |
91a64805557e29b680b1300121cddd217db78eef | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/aam/aam_authentication_portal_logon_fail.py | 60ee400259987e360a04045658049f18c4e87e9f | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 8,059 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class FailMsgCfg(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param fail_font_custom: {"description": "Specify custom font", "format": "string-rlx", "minLength": 1, "maxLength": 63, "not": "fail-face", "type": "stri... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
c9564de1d32f486071f2b000dcece402f183afbd | d5a551f64cf8cc639bffb17c33601c60244ad9c8 | /cogs/filter.py | 58632997c02ef870432d87792f6af078af480daf | [] | no_license | IAmJSD/6thBot | 413dae1a306fd08978ebba0920c6b5dad258c96b | c566816d036a0e0b8bed11bcfba857e50b85c2b9 | refs/heads/master | 2023-06-11T11:04:22.401997 | 2020-04-29T19:27:39 | 2020-04-29T19:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,889 | py | from discord.ext import commands
from discord import Member, Guild, Message, NotFound, TextChannel, Embed, Role
from asyncio import sleep
from util.timeformatter import highest_denom
from typing import Union
class Filter(commands.Cog):
def __init__(self, bot):
self.bot = bot
def get_filter_time(self,... | [
"keegan.rimmington@gmail.com"
] | keegan.rimmington@gmail.com |
b830c5da546adf700dc6f5bf2e732a222d1e10e7 | 14f217c46834fc2fd40b516e189094aa0c0de2f6 | /Model Development/Linear Regression/predict.py | 1304da67b9422a1657ec36b2f2c889702e74d44b | [] | no_license | Sumyak-Jain/Data-Analysis | bb3cdb4f6bac37481abe26d79b1f9a30f70e711c | fb18f0608c121ab6f2d0853de9eae0d4e335876b | refs/heads/master | 2022-11-13T13:02:24.531152 | 2020-07-10T21:04:35 | 2020-07-10T21:04:35 | 193,383,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # We will predict car price using highway-mpg by making a linear regression model
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
url = 'https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/DA0101EN/automobileEDA.csv'
... | [
"noreply@github.com"
] | noreply@github.com |
ee7a0f9a8194a37125dfa7ce2701c7f6b1da5b7c | b226ab6d84f76707b961b268e9b0fd9b6309c630 | /image/image-corr4.py | c66de7aabe66d983211e7a36b236e25495c33417 | [] | no_license | brycekelleher/pythondev | 5f68aa2ec49f30e1019994db708694702edd157e | a505298d517bb3fe37bb4cfe594662d1cc9f8f50 | refs/heads/master | 2020-09-12T21:32:08.449270 | 2016-09-09T01:48:38 | 2016-09-09T01:48:38 | 67,559,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | from scipy import signal
from scipy import misc
import numpy as np
import matplotlib.pyplot as plt
import Image
from skimage.feature import match_template
from scipy.ndimage import generic_filter
im = Image.open("outfb31_render31-hw-broken.bmp").convert("L")
data = np.array(im.getdata(), dtype='float32')
data = data.r... | [
"bryce_kelleher@hotmail.com"
] | bryce_kelleher@hotmail.com |
3c47a1aef5e90399748239f82621812402b29976 | ff5bdeba3c451a8eeaf5caa6782ffa862c32986a | /measure-of-geometric-mean/index.py | 5a4d46f17d21331390b7876806ed6eddb147eca5 | [] | no_license | gregogalante/python-exercises | 65e02267f9409ba19d9484ce260c71b8136d04d0 | fd254ab5e7a0d049d20678a2a3f4759f01169970 | refs/heads/master | 2021-09-05T14:04:18.050713 | 2018-01-28T15:03:28 | 2018-01-28T15:03:28 | 115,612,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import numpy
results = [1, 1, 2, 4, 2, 3, 5, 5, 3, 1, 2, 4, 5, 1, 2, 2, 1, 5, 4, 4, 3, 3, 3, 5]
num_items = len(results)
product = 1
for result in results:
product *= result
geometric_mean = product**(1./num_items)
print 'the geometric mean is:', geometric_mean | [
"gregogalante@gmail.com"
] | gregogalante@gmail.com |
7511e9b2c84e342591484e8f5d44c2fc8b232f67 | 183f17993cefb4aea696d949219d7a98e85eeb73 | /aes.py | 1879d435070d08ba012a3bb0a62f1b4a01305c6e | [] | no_license | putte/PIN-Memory | 7a561f4df098f0e448484edbf7a334a4a0a3449b | d541738b4cc4d62fa25d61e77b5912e61ecb178d | refs/heads/master | 2016-09-16T00:26:37.699931 | 2011-07-22T21:33:53 | 2011-07-22T21:33:53 | 2,090,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,066 | py | #!/usr/bin/python
#
# AES - Advanced Encryption Standard
#
# Copyright (c) 2007 Josh Davis ( http://www.josh-davis.org ),
# Laurent Haan ( http://www.progressive-coding.com )
#
# Licensed under the MIT License ( http://www.opensource.org/licenses/mit-license.php ):
#
import math
class AES:
#
# S... | [
"patrik.sandenvik@gmail.com"
] | patrik.sandenvik@gmail.com |
626b6c86aaba310b53452ab321b0ff06147b5b84 | fac7b312d36edaec6b08a8e2378c5826ef8e98ef | /python-scripts/geokit_py/cvat/main.py | 210e4148d9abadc9ae6943679e407c9e33719dc1 | [] | no_license | developmentseed/geokit | f8a23c5e7862ca86a497cf9f64ad5b71fc95a9a0 | 00169304afae3a10ad327f2b76ed43430f0b53a9 | refs/heads/develop | 2023-07-19T11:46:06.637119 | 2023-04-05T18:46:30 | 2023-04-05T18:46:30 | 118,031,551 | 32 | 2 | null | 2023-08-31T14:34:27 | 2018-01-18T20:00:37 | Python | UTF-8 | Python | false | false | 4,201 | py | """
Script for cvat module
Author: @developmentseed
"""
import click
@click.group(chain=True)
def cli():
"""An Awesome doc."""
# click.echo(click.style("========= CVAT =============", fg="green"))
pass
@cli.command("intersectionbox")
@click.option(
"--in_file", required=True, type=str, help="Path t... | [
"fmjg21@gmail.com"
] | fmjg21@gmail.com |
de46df2be6af9a35d357df2cea39df16a0a578d4 | 6ee84906510c5b1664706a7f1e3c0725b721e18b | /src/ebml.py | 31d172cef5bf16b0f7889fd9597ad6862b4ce794 | [] | no_license | mt-hayashida/ebml | 6848ed9f4bf95461c044d87543606c2ea097e594 | 2bd15705d61fe2df2f13b7d1a234781572eb308e | refs/heads/master | 2020-12-15T07:44:04.773875 | 2015-02-14T17:15:53 | 2015-02-14T17:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,310 | py | # Imports
import re, sys, math, struct, datetime;
version_info = ( 1 , 0 );
# Multi versioning
if (sys.version_info[0] == 3):
# Version 3
def py_2or3_byte_to_int(value):
return value;
def py_2or3_int_to_byte(value):
return bytes([ value ]);
def py_2or3_intlist_to_bytes(value):
return bytes(value);
def py_... | [
"nutbread@users.noreply.github.com"
] | nutbread@users.noreply.github.com |
16e4e3747b49d106c8dd5f34903412691fc14364 | e6db63065fa37d68245072034b484efe8224dc1d | /tests/test_furl.py | c2bf3b0f02f5cf3b1b3dc333e9766b245b1439ac | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | realitee/furl | 1096c2a5b9ec0de1831d0c590fa7b2da5a97cd84 | e774a48ec857fa9a24a92f28acea256aa429353c | refs/heads/master | 2020-12-25T13:23:57.126047 | 2012-10-13T02:46:23 | 2012-10-13T02:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,925 | py | #
# furl: URL manipulation made simple.
#
# Arthur Grunseid
# grunseid.com
# grunseid@gmail.com
#
# License: Build Amazing Things (Unlicense)
import urllib
import unittest
import urlparse
import warnings
from itertools import izip
from abc import ABCMeta, abstractmethod
try:
from collections import OrderedDict as od... | [
"rleeroy@gmail.com"
] | rleeroy@gmail.com |
8b6e1e356ae27b2dc78266d986e81f9a3b47123f | 98710e1b64d2eb527efbffa7f1b3d846cce6024c | /20180801-daguan-nlp-classification/model/lr_tfidf_traintest_feature.py | 89efb82eaf5ac37fbbc9e737c6c55157675b818c | [] | no_license | SheldonWong/competition | bf6f8904cfd89d4649249e453f46f45f0a988604 | 3894c7ec5f9fca35d37702b5402dac9b7b1e04c4 | refs/heads/master | 2020-03-30T07:13:32.702321 | 2018-09-30T09:22:25 | 2018-09-30T09:22:25 | 150,924,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.metrics import classification_report
from sklearn import svm
from sklearn.cali... | [
"sheldonwong@sheldonwongdeMacBook-Pro.local"
] | sheldonwong@sheldonwongdeMacBook-Pro.local |
bea22b6380e1f80d8d293727e249b8f9779d9fc8 | bf8ba111da414391c9bfc218579ec2d220865764 | /fiterp/fiterp/fiterp/doctype/leave_application_fiterp/test_leave_application_fiterp.py | 259ed56e02b1d6058f04b5c1f70f4da293992390 | [
"MIT"
] | permissive | AbrahamMan/fiterp | e0f76c59a3d31ebf38ce957612cec44d16fe6213 | a0ae1cc4f7b848dbbf51c870319e0aade4b92170 | refs/heads/master | 2021-04-27T19:39:08.494755 | 2018-01-28T11:10:13 | 2018-01-28T11:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, ITKMITL and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestLeaveApplicationfiterp(unittest.TestCase):
pass
| [
"nop_itkmitl@hotmail.com"
] | nop_itkmitl@hotmail.com |
e1de656ba854ec86201e55c1fead133e35c7c2ec | 38e5c33200e2fe87cc39a53a2fe19a807ebeca2c | /manage.py | 044b5ba9512a1c8ff405cf17fb472998e6494abf | [] | no_license | Hitmantejas/Todo-Django | 623157466b808881cc4cdba69ba73db899ca6550 | 8648be091abc0ddb9fd277e03a25550e360aaeea | refs/heads/master | 2023-03-03T19:41:57.187086 | 2021-02-07T07:49:16 | 2021-02-07T07:49:16 | 336,728,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | 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', 'justdoit.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"tejasbhorde86198@gmail.com"
] | tejasbhorde86198@gmail.com |
2c12a85637d4448821f4e08fab01976870d8fdca | b3330bd3365767b89afb9c432f4deb722b39ac1c | /python/sort/selection_sort/selection_sort_10.py | d0142c054e2de0f2b0945ab15e296cef179f94f5 | [] | no_license | hguochen/algorithms | 944df332d5b39220bd59cbd62dc74b12e335fb9e | 703e71a5cd9e002d800340df879ed475a404d092 | refs/heads/master | 2022-02-27T12:11:10.607042 | 2022-02-18T21:04:00 | 2022-02-18T21:04:00 | 13,767,503 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # selection sort
def selection_sort(array):
"""
Divides the array into unsorted and sorted sublist. Left sublist contains
list of sorted elements, right sublist contains list of unsorted elements.
Find the least element in unsorted list and put in sorted list.
"""
# traverse the array
fo... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
5e882ab6a9df428646946d956286a2353bf597e6 | 2d382086ead32a2de90855fb02662771d7d92c7c | /all_files/migrations/0001_initial.py | 81f3677616ce3d3523a8363974caabad63a4e006 | [] | no_license | accprojects/project | b92f9ebb1ce09ee3d7dc3b77e5c1e7376d6055b2 | 56f51c9581da2c3e8805123c7cdc1652fbfac78b | refs/heads/master | 2021-05-12T19:23:15.617975 | 2018-02-13T11:38:52 | 2018-02-13T11:38:52 | 117,091,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-11 12:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"lianatagirova598@gmail.com"
] | lianatagirova598@gmail.com |
6be743b4b02d6eb6d7f62aab46ff57260ffa042b | f92dfdebb4bf6bc108f51783333520c35afa66da | /api-web/src/www/application/management/commands/publish_rabbitmq_genome_gene.py | 23f7465ee4e41b1adf971b243ae030a6a568b6ea | [] | no_license | duytran92-cse/nas-genodata | 4d8659a135913d226842ff6a013324714ead0458 | 80c88f42145f729c5862a5293012e71548182e1d | refs/heads/master | 2022-11-13T17:24:03.769605 | 2020-06-14T18:59:36 | 2020-06-14T18:59:36 | 272,264,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import json, pika, os
from application.models import *
from urad_api import registry
from urad_api_standard.commands import Command as BaseCommand
from django.conf import settings
import json
from application.modules.gene import components as gene_components
from django.db import connection
class Command(BaseCommand)... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
4f7296681cdfba9a427661da990e966abc246734 | ce8d7f8171da70b75b805f2ba5b2dfaeed651c9b | /geopy.py | 31f7ec0757edea1530872f3c706b0334a5752853 | [] | no_license | DesPenny/Everythingbackpacker | 5798ebd827c095f0aea48b1a5efa9e1191f8d0a0 | 8c45242de8aa41f00d77d95057d9daa0a61c41f3 | refs/heads/master | 2016-09-06T21:53:25.982409 | 2014-05-01T12:30:37 | 2014-05-01T12:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from geopy import geocoders
g = geocoders.GoogleV3()
def find():
print 'What would you like to search?'
query = raw_input()
place, (lat, lng) = g.geocode(query)
return place | [
"despenny@gmail.com"
] | despenny@gmail.com |
e6495c54678fa25589ed821affe20e0b079fbc0a | d5b3011dcc61ea661d395747a4ecac2fc850e667 | /checkout/migrations/0003_order_user_profile.py | f77fa66947ef7054025fbbe925f0b8c909849972 | [] | no_license | Code-Institute-Submissions/learning-management-system-ms4 | d4f544f357351d45fd9dd471774d160cfde7d9a9 | 172738a1a8e37113a40f93a8ed230dae83b1ca93 | refs/heads/master | 2022-11-09T08:56:05.253560 | 2020-06-22T01:08:32 | 2020-06-22T01:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Generated by Django 3.0.6 on 2020-06-12 09:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
('checkout', '0002_auto_20200612_0951'),
]
operations = [
migrations.Ad... | [
"bogdan@onis.studio"
] | bogdan@onis.studio |
05d19c9a1a2febd779681ba4ce0cd85888d449d4 | 783a97b257ec086d6c7e2109840f1ad91f8e52bf | /scraper/src/config/config_validator.py | f432d0d299c047068b9d3b7fd3fbad2aa75bbfab | [
"MIT"
] | permissive | thefrenchmatt/docs-scraper | 949af243655201c865bc7f64cb906c7b597953a6 | 70665daafaea6dfefc48de3ca107c2a97cc9fc0d | refs/heads/master | 2022-07-05T03:34:20.627595 | 2020-05-14T12:05:59 | 2020-05-14T12:05:59 | 267,131,268 | 1 | 0 | NOASSERTION | 2020-05-26T19:17:39 | 2020-05-26T19:17:38 | null | UTF-8 | Python | false | false | 2,824 | py |
class ConfigValidator:
config = None
def __init__(self, config):
self.config = config
def validate(self):
"""Check for all needed parameters in config"""
if not self.config.index_uid:
raise ValueError('index_uid is not defined')
# Start_urls is mandatory
... | [
"clementine@meilisearch.com"
] | clementine@meilisearch.com |
a43e6873d5770d466c0143a8d8e3abdff3975ac4 | 4bc19f4dd098ebedcb6ee78af0ae12cb633671fe | /static/views.py | 608e8568b487fbee9eb1251fbf226fbe6d45ec5b | [] | no_license | StanislavKraev/rekvizitka | 958ab0e002335613a724fb14a8e4123f49954446 | ac1f30e7bb2e987b3b0bda4c2a8feda4d3f5497f | refs/heads/master | 2021-01-01T05:44:56.372748 | 2016-04-27T19:20:26 | 2016-04-27T19:20:26 | 57,240,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.http import Http404
from django.shortcuts import render_to_response
from rek.static.models import StaticPage
from django.template.context import RequestContext
def render(request, page_alias=''):
page = StaticPage.objects.get(alias=page_alias, enabled=True)
if not page:
raise Http40... | [
"kraevst@yandex.ru"
] | kraevst@yandex.ru |
0ade196c2880c7c5454d81108adc3086b4ced438 | c7bd791903d36d5ee5e828cd90939e3358b5845a | /contacts/migrations/0001_initial.py | a972d5ff6aacc21aa3e2cf7fb92ed4c8be41ba86 | [] | no_license | Saxena611/bp_real_estate | b638ac477fcf8e44dccfb5d58473c83efa94e5cb | e2ce50678894f6f542864c525b9d8fcdb91f8669 | refs/heads/master | 2023-06-12T05:03:37.845739 | 2021-07-11T06:03:50 | 2021-07-11T06:03:50 | 330,562,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.0.3 on 2021-03-21 06:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', m... | [
"Animesh.Saxena@amdocs.com"
] | Animesh.Saxena@amdocs.com |
08a41f586570d5ba0baa10410a977b1169ac947f | 4be9a5bdb8e051001b78c8f127ccc1a7f85c14e7 | /mapping/migrations/0033_auto_20170129_0939.py | 90fce4536a94b43eded5f95299f301669aa5c874 | [] | no_license | quentin-david/heimdall | f72a85606e7ab53683df2023ef5eaba762198211 | 84a429ee52e1891bc2ee4eb07a084dff209c789c | refs/heads/master | 2021-01-21T10:26:28.895663 | 2017-07-21T19:19:46 | 2017-07-21T19:19:46 | 83,432,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-29 09:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mapping', '0032_servicewebserver_reverse_proxy'),
]
operations = [
migratio... | [
"david@hemdgsa01.local.lan"
] | david@hemdgsa01.local.lan |
12e0297f0e01b59d69ca42308b250e49c4b45112 | ec1b50134c1d8b7af7374dfdbec876a0c3e9d211 | /6.0001/string.py | 767f2d972b1344a10d00129904f916c95ced4f9a | [] | no_license | Leeboyd/learnPython | 1876d3a5126cb30938a044847a99093512dd88cc | 7fc8938a702ca32a6912490c5c8aa49561f8123e | refs/heads/master | 2023-02-20T03:12:35.529317 | 2022-06-16T23:41:35 | 2022-07-05T03:39:32 | 147,643,970 | 1 | 0 | null | 2023-02-10T22:46:18 | 2018-09-06T08:42:40 | Python | UTF-8 | Python | false | false | 196 | py | s = "abcdefgh"
for index in range(len(s)):
if s[index] == 'i' or s[index] == 'u':
print("There is an i or u")
for char in s:
if char == 'i' or char == 'h':
print("There is an i or h") | [
"jobboy19890101@gmail.com"
] | jobboy19890101@gmail.com |
1a029ae138c31e24a7f6c8323cce780ea4cc4c45 | 209622dae7003dfec237123a8d4645f97e000df6 | /venv/bin/pyreverse | 22abef7cf37e49af31aee031b7d0ea9780fe04af | [] | no_license | vasughatole/promolta | f50d9ced2e07ff05beae1611cc6c52b49956ee17 | 947a91bc55d9dbd853fde011957df2fb9cc30705 | refs/heads/master | 2020-04-17T19:47:01.759322 | 2019-01-21T21:14:02 | 2019-01-21T21:14:02 | 166,878,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/vasu/python/promolta/venv/bin/python
# -*- 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())
| [
"vasu@moneytap.com"
] | vasu@moneytap.com | |
07d1801bc21bc3ce1f36e57d68f11e9aea47ae54 | f85fbab0cffaa54a136e0938715414383a4eea1f | /Challenge_climate_analysis.py | 4dc0330bdef972cf47b3e48416d2d98207c99eea | [] | no_license | varshajha28/Surfs_Up | 54bd59b9ba867573e974ce74f1bfafa6632c0fd4 | 31ff636167031c20d6de69398d142f02c0a78c73 | refs/heads/master | 2021-03-03T07:22:43.393395 | 2020-03-14T22:02:21 | 2020-03-14T22:02:21 | 245,942,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | # Add dependancies
%matplotlib inline
from matplotlib import style
style.use('fivethirtyeight')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import datetime as dt
# Python SQL toolkit and Object Relational Mapper
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy... | [
"varsha.jha@gmail.com"
] | varsha.jha@gmail.com |
2db11fc713334d1c4d17ecf444cf9726e26cc5dd | 055cf8aeec011f67580bf92a83d94ee6919648cd | /migrations/versions/ad28a44f93c4_initial_migration.py | 18999b6182f1570c2b30ca638cbdbed3b8a6a43e | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | RisperAkinyi/BlogPost | df82c8fec558425ca1bbce65aa90464176aefb87 | f8ee4c887fceae8e70410b66a12bc5680cf26044 | refs/heads/master | 2022-09-30T19:09:27.969983 | 2019-08-13T07:36:26 | 2019-08-13T07:36:26 | 201,879,164 | 0 | 0 | MIT | 2022-09-16T18:07:44 | 2019-08-12T07:22:39 | Python | UTF-8 | Python | false | false | 2,128 | py | """Initial Migration
Revision ID: ad28a44f93c4
Revises:
Create Date: 2019-08-09 11:05:50.912878
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad28a44f93c4'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"email@example.com"
] | email@example.com |
bb5ab0eba71a2dc209d64e6c93ae9e1d690a3bab | 7c1abd2ec952d022342098990d4ee2382bd18266 | /tests/test_01.py | 6a34cdac5b44ae9e2caa6699102c5839ed98f80d | [
"MIT"
] | permissive | evestidor/svc-stock-price-simulator | 7679177bc06a6e230478cf383b718afb108120cc | 2ddfb504933959c19f8bd2b7d295b117c10fe27a | refs/heads/master | 2022-05-07T19:48:36.449467 | 2019-07-03T15:27:11 | 2019-07-03T15:27:11 | 192,607,658 | 0 | 0 | MIT | 2022-04-22T21:46:32 | 2019-06-18T20:24:01 | Python | UTF-8 | Python | false | false | 71 | py |
class TestDummy:
def test_assert_true(self):
assert True
| [
"tiagoliradsantos@gmail.com"
] | tiagoliradsantos@gmail.com |
9a98b7f2a056ef505360b11f8b6ffb23274a9882 | d6d2773e7466b31da5ed9e7103d5eb9909db1223 | /web/sales_app/apps/stations/migrations/0002_auto_20170717_2015.py | 3bc58a2cad8a9bae6483af3e326e06df869aafeb | [
"MIT"
] | permissive | iabok/sales-tracker | bee3f0a18ca565a8da2ce356c6842f6af486367c | 7ef2e68f0b0393b983375d092b8469ca88f6b5ce | refs/heads/master | 2021-06-22T00:09:16.723616 | 2017-08-21T23:30:57 | 2017-08-21T23:30:57 | 92,953,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-17 20:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('stations', '0001_initial'),
]
o... | [
"abokisaac@gmail.com"
] | abokisaac@gmail.com |
e2a4d4248d4f5b48e5c69c52e0dad41e541340ba | 33cfcb4561e7320ae0e893fbe774c7eb0a2effe8 | /eg15.01.py | c94d345080db1688fdbb1a237e7fd737f5e8db93 | [] | no_license | Jueee/aByteOfPython | 9c8bc01f0707daef29e52467db0c3f5a94747119 | ae1a4a4b181612463ccdcd0d89c961f22f7ece20 | refs/heads/master | 2021-05-31T14:26:00.790823 | 2016-02-17T05:41:20 | 2016-02-17T05:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | #!/usr/bin/python
# Filename: list_comprehension.py
# 通过列表综合,可以从一个已有的列表导出一个新的列表。
listone = [2, 3, 4]
listtwo = [2*i for i in listone if i > 2]
print(listtwo)
# 在函数中接收元组和列表
# 当要使函数接收元组或字典形式的参数的时候,有一种特殊的方法,它分别使用*和**前缀。
# 这种方法在函数需要获取可变数量的参数的时候特别有用。
# 由于在args变量前有*前缀,所有多余的函数参数都会作为一个元组存储在args中。
# 如果使用的是**前缀,多余的参数则会被认为是一个... | [
"hellojue @foxmail.com"
] | hellojue @foxmail.com |
3d0e56a951a0a89f5feb4223a746a737089a3ea2 | 6fc2feac7ec07870afc927983cb5b048af1f6566 | /src/monju_no_chie/admin.py | 2fa6e5f53d12c868dd20b772492651f03aa9d62e | [] | no_license | SpaceMagical/SpaceMagical | fd2f114e4df89eeb71c6fb5900010eca8746ebfc | e3b4e5eb1f91fd8145d397b9bd4018d5f99ca8df | refs/heads/master | 2021-06-11T02:42:43.704128 | 2016-12-03T16:13:33 | 2016-12-03T16:13:33 | 74,037,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.contrib import admin
from .models import MonjuNoChie
class MonjuNoChieAdmin(admin.ModelAdmin):
class Meta:
model = MonjuNoChie
admin.site.register(MonjuNoChie, MonjuNoChieAdmin)
| [
"hirotoaoki1349@gmail.com"
] | hirotoaoki1349@gmail.com |
71bac15afe4dcfaa41d8dd9a2894a3b9ff0f5e83 | 5503712ed14239e48b5dc2fb66e38250f1c14320 | /accounts/migrations/0002_auto_20200506_2119.py | 20372336adb7672ab88f189debfe85514eb19dfe | [] | no_license | Aexki/sajas-hotel_management | ee8238e8f3a13a0e061a9951df7244014d948902 | f0ac71378153ce97c1588ecef3857fcde3cd4035 | refs/heads/master | 2022-07-03T03:36:34.818041 | 2020-05-09T15:53:43 | 2020-05-09T15:53:43 | 262,008,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 3.0.5 on 2020-05-06 15:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='cabservice',
name='completed',
... | [
"50047387+Aexki@users.noreply.github.com"
] | 50047387+Aexki@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.