blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0d550e2fdb493ba6c99d7490c06e07da09bcdde | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/reservoir.pyi | 322d1d38c3d821602e3e08cb5f590e0f85608dd7 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 337 | pyi | from enum import Enum
class Reservoir:
def __init__(self) -> None: ...
def borrow_or_take(self, now, can_borrow): ...
def load_quota(self, quota, TTL, interval) -> None: ...
@property
def quota(self): ...
@property
def TTL(self): ...
class ReservoirDecision(Enum):
TAKE: str
BORROW:... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
9d987c578fd5533a6ec79b97bf8e6020dc51ffdd | ed061360b729e0f3d56b68862ee3bd4dbc4729c1 | /interesting/dp/32. Longest Valid Parentheses.py | 0fcce32c198811483f25ee2abe569462ee45c69a | [] | no_license | qian99/leetcode-question | 14a84003e576a8ee5ba16e3f8f652d00a5f4949b | bab87caf6217bf99e0c36b1cf5fefee80bb77b07 | refs/heads/master | 2021-01-11T20:52:57.068209 | 2018-10-12T01:48:34 | 2018-10-12T01:48:34 | 79,202,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | class Solution(object):
def longestValidParentheses(self, s):
n = len(s)
result = 0
dp = [0 for i in range(n + 1)]
i = 1
while i <= n:
j = i - 1
if s[j] == '(':
dp[i] = 0
elif j > 0:
if s[j - 1] == '(':
... | [
"bakaqian@123u.com"
] | bakaqian@123u.com |
ec1a5719f569715605b75d20d9dea2e9ea1a20ef | eee741a9d6d55357fb597e0cc3379085f47c2c13 | /processData.py | 85071304b5d9fe473ea285664cbd0cd5dac57f28 | [] | no_license | mbstacy/gdal_ok_mesonet_data_process | 6505be783056eeade9664782035c284d76f29e1c | 18fe989560d54cc0fff336462c26897778daeaef | refs/heads/master | 2021-01-10T07:32:55.865328 | 2016-02-23T22:42:48 | 2016-02-23T22:42:48 | 52,396,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,487 | py | #!/usr/bin/env python
'''
Created on Feb 2, 2016
@author: ledapsTwo
'''
from osgeo import gdal,osr
from os import path
from csv import DictReader
import shlex,sys
import pandas as pd
import numpy as np
class raster:
def __init__(self,inFile):
gf = gdal.Open(inFile)
self.raster = gf
se... | [
"mbstacy@gmail.com"
] | mbstacy@gmail.com |
4fe3ec642a231dba1847cf965c868e08f7f03cdf | 2320daecca65d435d78e37f4fd213cd41119a07a | /src/lib/Client/Tools/Systemd.py | e3f6a4169b113dfb5a559301bbe703489ddc3340 | [
"mpich2",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mikemccllstr/bcfg2 | 06538645d12a606aa5558def717dfc24400f6eea | 826f385767ccf9f608fcfbe35e381a9dbc59db4b | refs/heads/master | 2021-01-17T09:52:32.800185 | 2011-10-16T03:06:31 | 2011-10-16T04:41:21 | 2,004,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | # This is the bcfg2 support for systemd
"""This is systemd support."""
import Bcfg2.Client.Tools
import Bcfg2.Client.XML
class Systemd(Bcfg2.Client.Tools.SvcTool):
"""Systemd support for Bcfg2."""
name = 'Systemd'
__execs__ = ['/bin/systemctl']
__handles__ = [('Service', 'systemd')]
__req__ = {'S... | [
"jeff@ocjtech.us"
] | jeff@ocjtech.us |
74603ae44b78d8c4712a09d82fe4f89f48dc5a9a | 2e420d38c709da85426511c4f11ebf1e48d6ce42 | /Database/DatabaseValue.py | 1a309861858d7432308d723b7fdf35a7371e7354 | [] | no_license | NynkevK/miniProjectProg | 50a7ec309dabbfefd30bd6b6135ce5dc6e129254 | 393ad325c8ac1d616a72c802d9a4f675a36519ae | refs/heads/master | 2021-01-13T14:30:32.916039 | 2017-12-10T14:17:27 | 2017-12-10T14:17:27 | 72,853,957 | 0 | 2 | null | 2020-04-24T09:46:06 | 2016-11-04T14:16:05 | Python | UTF-8 | Python | false | false | 217 | py | # Geschreven door Robin
import datetime
class DatabaseValue:
Id = 0
License = ""
Firstname = ""
Lastname = ""
Email = ""
Arrival = ""
Departure = ""
Bill = 0
| [
"noreply@github.com"
] | NynkevK.noreply@github.com |
0505e8092673d4890abc22dce0ecea40a9971c6e | a343666b05d8064e66cba91281eeaec9a1139728 | /CNN_IMDB.py | 1ffc44df4293707a260a58be2ffd9fc03fda31b1 | [] | no_license | AnhPhamFIT/Deeplearning | 57a1507a1771f847be74bff312d952bdf772fb84 | 9c9ee65f9a09012bec7dc24d71d1aa4a036ea230 | refs/heads/master | 2020-12-02T19:49:08.059526 | 2017-07-06T06:18:12 | 2017-07-06T06:18:12 | 96,394,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | '''
import numpy
from keras.datasets import imdb
from matplotlib import pyplot
# load the dataset
(X_train, y_train), (X_test, y_test) = imdb.load_data()
X = numpy.concatenate((X_train, X_test), axis=0)
y = numpy.concatenate((y_train, y_test), axis=0)
# summarize size
print("Training data: ")
print(X.shape)
print(y.sha... | [
"ptanh.fit@gmail.com"
] | ptanh.fit@gmail.com |
ee13787901e1cb2cb22e3ad0a896df200708d570 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations/_ddos_custom_policies_operations.py | 374762f783c3c434a29e76a5bebf00abdd56790d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 20,334 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
3b0e9d753652300a56b3b60e6c050f0d5717337a | b6fa02f758343ec3031787b98e34fcd56b4f0d40 | /app/auth/forms.py | 0c91dd77fb4e0624adfbeff45f8492d55545a73b | [
"MIT"
] | permissive | kmunge/blog | 4e8514416ca3fdc233731897608a0daa3270e9f8 | 73d83b9c4cf9b8c7a1a631d63be77a00ea469f1f | refs/heads/master | 2022-12-10T04:26:37.903251 | 2019-06-04T09:08:16 | 2019-06-04T09:08:16 | 189,951,902 | 1 | 0 | null | 2022-09-16T18:02:46 | 2019-06-03T07:00:23 | Python | UTF-8 | Python | false | false | 1,264 | py | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,BooleanField,SubmitField
from wtforms.validators import Required,Email,EqualTo
from ..models import User
from wtforms import ValidationError
class RegistrationForm(FlaskForm):
email = StringField('Your Email Address',validators=[Require... | [
"orokomunge@gmail.com"
] | orokomunge@gmail.com |
138016f8d6a2dbb02fd72456d8ec41902932b14f | 58bc1c34ccf4804c56b0eb40f05dbeb80e1aa01e | /Curso Python/FuncionesRecursivas/Recursividad.py | 3d8a57fc4e62fba55a262c1b012194c430a895b5 | [] | no_license | CarlosG4rc/CursoPy | fa19b3cd7a8ea79ff6c249581813878c80a3def3 | 8faff0a37f05885be7bdf81564aad0c1f419d6eb | refs/heads/master | 2023-01-01T09:52:02.814611 | 2020-10-26T20:03:04 | 2020-10-26T20:03:04 | 285,904,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def cuenta_atras(num):
num -= 1
if num > 0:
print(num)
cuenta_atras(num)
else:
(print("Boooooom!!!"))
print("Fin de la funcion", num)
cuenta_atras(5)
def factorial(num):
print("Valor inicial ->",num)
if num > 1:
num = num * factorial(num -1)
pri... | [
"noreply@github.com"
] | CarlosG4rc.noreply@github.com |
db38ea1d5adfd8537211137c5b9e2bdacf5cf52f | 12ea3e4c0e35d60736bb3d9aa2ae4cfdb7951679 | /20oct15/parsepdbexample.py | c681d086a5f60621f6441042e3e9049306b21505 | [] | no_license | sstagg/bch5884 | 6b87b844dbd368428933a17ed5b4ffd7fed1d087 | 5b5d5f3ccebc56db0f9b370d6f1152b49099dff7 | refs/heads/master | 2023-01-13T19:51:47.950043 | 2020-11-24T17:27:17 | 2020-11-24T17:27:17 | 290,234,706 | 3 | 15 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #!/usr/bin/env python3
import sys
pdbfilename=sys.argv[1]
f=open(pdbfilename)
lines=f.readlines()
f.close()
records=[]
for line in lines:
x=float(line[30:38])
element=line[76:78].strip()
if element=="C":
mass=12.01
elif element=="N":
mass=14.01
else:
mass=None
records.append([x,element,mass])
print (... | [
"sstagg@mac.com"
] | sstagg@mac.com |
55a7f8d39ad426e5df393667b76874cfa1f88fa0 | 6b4dcde85d83b7cec439ab6017951759b6afd840 | /src/controller/player_controller.py | 3dd8da5250515dca65a49f757edc1a58fb6aa76d | [] | no_license | SirDavidLudwig/Quong | 359577849be3cc57cb908daadb430f385c63888c | 4f7e9818897dbe3b0239f223f5bd7a82ced3a1a6 | refs/heads/master | 2021-01-09T06:01:12.144481 | 2017-04-24T02:28:28 | 2017-04-24T02:28:28 | 80,892,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from . controller import *
import core.quong
import pygame
from core.utils import *
class PlayerController(Controller):
def __init__(self, paddle):
super(PlayerController, self).__init__(paddle)
self.__client = getQuong().getClient()
def onEvent(self, event):
if event.type == pygame.KEYDOWN:
if event.k... | [
"davidludwigii@gmail.com"
] | davidludwigii@gmail.com |
c11e4f3e37a3b5b7c7c5195b4b6bb40bbf957818 | f121f894eacd4632869be7df343c7d63e319ab03 | /UCSB_Python_Mods/rmsd.py | 9796eacf02d7333f858d7a53f6414051c6e1b6e8 | [] | no_license | jeff-wang/JmsScripts | 955bc8436c0092be45c725c818a757cdb6745fd5 | 5cec8112637be7a19c4aac893f612aa8c354b733 | refs/heads/master | 2023-06-01T12:34:33.233127 | 2020-01-09T01:31:46 | 2020-01-09T01:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,179 | py | #!/usr/bin/env python
#LAST MODIFIED: 12-19-08
Usage = """Calculates rmsd between pdb files.
Usage : rmsd.py [OPTIONS] PDBFILE1 PDBFILE2 ...
OR: rmsd.py [OPTIONS] --traj [--avg=n] [--frac=X] REFPDBFILE TRJFILE PRMTOPTILE
OPTIONS : "--first" will only compare the first to all other pdb files
... | [
"dwight.mcgee@gmail.com"
] | dwight.mcgee@gmail.com |
2ac346b17ec1259ea4d8fd11ea85aa3c5131e6e8 | 7edda81b50d243d34cd6ff03ae17398695e5118e | /venv/bin/pip3 | 3cf9ce2a9b5d6bf3534ad9be55a5cab5e5aa01e4 | [] | no_license | TyRolla/CAF2Script | 0e8b3278f489f14d5064d1d58ba46f26273cf8dd | 8005636bc85f145415208ddcd419b2915e73ee52 | refs/heads/master | 2022-12-31T01:24:16.487165 | 2020-10-17T21:53:58 | 2020-10-17T21:53:58 | 304,975,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | #!/Users/tyuehara/PycharmProjects/CAFScript/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"tyuehara@Tys-MacBook-Pro.local"
] | tyuehara@Tys-MacBook-Pro.local | |
84854d9fe6c10d92a0252c98664fb81ff407fd17 | ff93afb0e4df31647381c797c12fb65f4a749cc1 | /vitu/account/account.py | 551bde3a72de645f1b0bbff76e3c089e05ac47ca | [
"Apache-2.0"
] | permissive | LakeSky/vitu | 4d96d1c460d837feeb4b119b24bf97f0bec3ee27 | 1fe60d51ace096c9c26db8f5c9f401dafe2f8b1a | refs/heads/master | 2021-04-07T15:25:32.304503 | 2020-03-11T22:17:34 | 2020-03-11T22:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,094 | py | '''/*---------------------------------------------------------------------------------------------
* Copyright (c) VituTech. All rights reserved.
* Licensed under the Apache License 2.0. See License.txt in the project root for license information.
*------------------------------------------------------------------... | [
"kun.xue@gmail.com"
] | kun.xue@gmail.com |
1f9a1493d3564a0265cdf0674188cf10e8bc3d9f | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /S/SumofSquareNumbers.py | cf292e41b9e81430c4e5ec8bd82b7e683dccd33d | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | ''''
-Medium-
*Two Pointers*
Given a non-negative integer c, decide whether there're two integers a
and b such that a2 + b2 = c.
Example 1:
Input: c = 5
Output: true
Explanation: 1 * 1 + 2 * 2 = 5
Example 2:
Input: c = 3
Output: false
Example 3:
Input: c = 4
Output: true
Example 4:
Input: c = 2
Output: true
... | [
"bssrdf@gmail.com"
] | bssrdf@gmail.com |
e4ca7ab4e69bb201e913b6fc374b71b556c316ba | af2a4bf0d9d69b4d11bf6bcfb6d8ef84e7857e41 | /custom_components/media_player/plex.py | 228e24b745d4dfd3724c9feffe909833fb645d49 | [] | no_license | blinkwise/homeassistant-config | f930d72487aa6b25476c3abf36d7e703d83805ba | d414eb2eaf685e6aee41512064c401c99f9effcf | refs/heads/master | 2020-06-23T06:56:31.022551 | 2017-07-19T19:42:02 | 2017-07-19T19:42:02 | 94,219,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,858 | py | """
Support to interface with the Plex API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.plex/
"""
import json
import logging
import os
from datetime import timedelta
from urllib.parse import urlparse
import requests
import voluptuous as ... | [
"rory.moser@gmail.com"
] | rory.moser@gmail.com |
b7a3d70a976e7c845fe9fc09d9bf302fca00091a | cbd0af707921223221a5a81831155dc4fdfa8084 | /git291-python/objects/mass_pass.py | e67beabd3e041b239f945553c7e81881b431b7fa | [] | no_license | 291dev/python | 492365db1b91c1b016d966fa1ca0aad1f6cfb440 | 46750a091fa5cb2dc4d9d55b6617779a86e6c712 | refs/heads/master | 2022-12-24T13:01:25.186727 | 2020-09-30T01:10:26 | 2020-09-30T01:10:26 | 298,525,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | class Person(object):
kind = 'human'
def __init__(self):
self.words = []
def talk(self):
print('talk')
def add_words(self, word):
self.words.append(word)
@classmethod
def what_is_my_kind(self):
return self.kind
class Car(object):
def run(self):
print('run')
class PersonCar(Car, Perso... | [
"yoshiharu.fukui@ibm.com"
] | yoshiharu.fukui@ibm.com |
aec4535762758f06ac7c4f621312ac9b23538101 | 97d96e5e323e46035441ee78238c57b38f5a8ea4 | /channel/chat_app/admin.py | e8c66503fb52fcc0093e46195a13c6b2196faa12 | [] | no_license | sirakej/channels | 38e6a1a189ba4312118ca06a25fbed06fde0a781 | 89464aad1446da8539b568a684bf20aabdb1c984 | refs/heads/master | 2020-03-26T07:13:20.243292 | 2018-08-14T00:44:56 | 2018-08-14T00:44:56 | 144,642,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.contrib import admin
from .models import Channel
from .models import Post
# Register your models here.
admin.site.register(Channel)
admin.site.register(Post)
| [
"noreply@github.com"
] | sirakej.noreply@github.com |
60a71622737aa6e8a866253cebae37379422f533 | 7d84000f2977def7118b4c93a47b9d71c4ee38f8 | /app/src/utils/log_streamer.py | ad37f010c1610fdbb84800feadcdb0afd9627020 | [] | no_license | tensorci/core | d405d17099987163dfc589711345ce414ace406e | 50d18bb43f73b1d5d47fefad543c2554e87a6520 | refs/heads/master | 2021-03-19T13:27:26.219591 | 2020-12-03T01:14:57 | 2020-12-03T01:14:57 | 110,917,313 | 0 | 0 | null | 2020-12-03T01:15:26 | 2017-11-16T03:20:09 | Python | UTF-8 | Python | false | false | 3,800 | py | import log_formatter
from src import logger, dbi
from pyredis import redis
from src.helpers.definitions import tci_keep_alive
# TODO: This file is disgusting -- make it less disgusting
def should_complete_stream(data, deployment):
# Check if last_entry was specified in the log. Complete the stream if so.
complet... | [
"benwhittle31@gmail.com"
] | benwhittle31@gmail.com |
e1dd18dadc4b80f6d2c18e37f5c8196b2b2ca032 | 0495e5acc5cd58b1a38748868215b9369ab8bfbb | /asteroWorking2WMFShip/polygon.py | e1dba87dc48b879cd03ba67655c04dd57abfddec | [] | no_license | MacMeDan/astroids | 537bdc459ad2bb5153f96c5ef5411e68b70ad104 | 5ccbd882f542e04dc104dfa7d20815ff9ece1feb | refs/heads/master | 2021-01-17T19:52:58.860197 | 2013-12-15T02:18:35 | 2013-12-15T02:18:35 | 15,190,353 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,491 | py | import math
import pygame.draw
from point import Point
import config
class Polygon:
def __init__(self, shape, position, rotation, color, surfaceing):
self.position = position
self.rotation = rotation
self.color = color
self.active = True
self.cache_points = (None, None, None... | [
"pdanielleonard@gmail.com"
] | pdanielleonard@gmail.com |
9db8df813e7136b0ac07b7bfa9473d9701fbf616 | 776d97324adae9d929f90b701e6bf003df041bec | /0x0F-python-object_relational_mapping/4-cities_by_state.py | f3073c7627aa4e521b8aeef60a4670e4e66812f5 | [] | no_license | jblanco75/holbertonschool-higher_level_programming | 6be3284ecd3a8168425cb82d0bee1f9321825a56 | 94b1db9f120e234ec61a6db044113e7f4618d3ef | refs/heads/main | 2023-08-04T04:16:15.821683 | 2021-09-23T00:32:24 | 2021-09-23T00:32:24 | 361,894,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/python3
"""script that lists all cities from the database hbtn_0e_4_usa"""
import sys
import MySQLdb
if __name__ == '__main__':
conn = MySQLdb.connect(host="localhost",
port=3306,
user=sys.argv[1],
passwd=sys.argv[2],
... | [
"jblanco75@gmail.com"
] | jblanco75@gmail.com |
ae2a05e3496bf2f98c31bd079b0241da2f586458 | 12829fc90e0b4d54bdcd92eec13d81eca4763872 | /gibson/tests.py | 5f57c60e1698dc04e92669e1857757b66584ce0d | [
"MIT"
] | permissive | jamesbond007dj/django-models | 056f064e020d05ae10ee33a62e6959c85d5172ee | 5529ee921770b8db091bbe33a7e38087f5592caf | refs/heads/master | 2021-09-23T12:23:50.446739 | 2020-01-15T07:29:37 | 2020-01-15T07:29:37 | 233,948,148 | 0 | 0 | MIT | 2021-09-22T18:27:14 | 2020-01-14T22:26:35 | Python | UTF-8 | Python | false | false | 1,824 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from .models import Gibson
class GibsonTests(TestCase):
def setUp(self):
self.user = get_user_model().objects.create_user(
username='jb',
email='seanmoore013@gmail.com... | [
"ilkerzaimoglu@gmail.com"
] | ilkerzaimoglu@gmail.com |
116d387dd717fabe096b4ea161ad403d2870e88a | 33976fddb32feae0b6b5d38b0a8994490fc4b1db | /src/ar6/constants/gases.py | 4df95e992cbd6ed95181fc2ed1bf4bafd19e54c8 | [
"MIT"
] | permissive | chrisroadmap/ar6 | e72e4bad8d1c1fa2751513dbecddb8508711859c | 2f948c862dbc158182ba47b863395ec1a4aa7998 | refs/heads/main | 2023-04-16T22:57:02.280787 | 2022-09-27T13:31:38 | 2022-09-27T13:31:38 | 305,981,969 | 27 | 20 | MIT | 2022-09-27T13:31:38 | 2020-10-21T10:02:03 | Jupyter Notebook | UTF-8 | Python | false | false | 6,315 | py | """
Gas properties
"""
# Number of bromine atoms
br_atoms = {
'CCl4': 0,
'CFC11': 0,
'CFC113': 0,
'CFC114': 0,
'CFC115': 0,
'CFC12': 0,
'CH2Cl2': 0,
'CH3Br': 1,
'CH3CCl3': 0,
'CH3Cl': 0,
'CHCl3': 0,
'HCFC141b': 0,
'HCFC142b': 0,
'HCFC22': 0,
'Halon1211': 1,
... | [
"chrisroadmap@gmail.com"
] | chrisroadmap@gmail.com |
67d8405dae494c985db55a7991291fe6a81e390a | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/chromite/cbuildbot/autotest_rpc_errors.py | 1ee19f4a5238f93886962b5f9968b1f009275cf6 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 670 | py | # Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Error codes used for the Autotest RPC Client, Proxy, and Server.
This is a copy of scripts/slave-internal/autotest_rpc/autotest_rpc_errors.py
from htt... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
ac3766b055900a07ace3f3a8bd1dbf254696aa9f | afa2996d12a3ee96a8f969db85d19e76044a6738 | /Greedy/16 Goodland Electricity | f340e2781eb2f6a8525b6d74e6cebbc14e46d18d | [
"MIT"
] | permissive | raj713335/HackerRank_Algorithms | 08a37d44ff5d38be007465d88e3807df9a745505 | 7d42364ce59d2755b436f607166c37edcf093904 | refs/heads/main | 2023-08-22T21:26:45.611471 | 2021-10-09T21:03:40 | 2021-10-09T21:03:40 | 374,290,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | #!/bin/python3
"""https://www.hackerrank.com/challenges/pylons/problem"""
import math
import os
import random
import re
import sys
#
# Complete the 'pylons' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. INTEGER k
# 2. INTEGER_ARRAY arr
#
def ... | [
"noreply@github.com"
] | raj713335.noreply@github.com | |
093f1c7e217d53e6170f3cbd036e6d7c263c909d | 60262a70aa339390447a085856052512156b267d | /locators.py | 27c7a3d424158d810ce01546c5917e6b1fe37b72 | [
"MIT"
] | permissive | luisdsantiago/auto_shopper | 2977d94e1ce1bbc2acae5b0df0120a5fff1537c7 | 7c5df6dc6aca70e36abe79daa1952f25d9f00126 | refs/heads/main | 2023-07-27T14:58:58.075317 | 2021-09-12T18:30:11 | 2021-09-12T18:30:11 | 405,237,411 | 1 | 0 | null | 2021-09-11T00:40:41 | 2021-09-10T23:34:54 | Python | UTF-8 | Python | false | false | 326 | py | from selenium.webdriver.common.by import By
class MainPageLocators:
"""A class for main page locators. All main page locators should come here"""
GO_BUTTON = (By.ID, 'submit')
class SearchResultsPageLocators:
"""A class for search results locators. All search results locators should
come here"""
... | [
"ldsantiago88@gmail.com"
] | ldsantiago88@gmail.com |
480d27a5b612049855b51f12f126b608179977c2 | aff72737860c226e56e3910ea0442648ef4d01a4 | /programs/itertr.py | 4bbf3a9e4a45ae3b980930b0b30bc0e36b585674 | [] | no_license | sivaprasadkonduru/Python-Programs | 3db77270e085f785ecd0d9049557395010cfa1cd | aadace30e921f02210398bce20ab48d330a71812 | refs/heads/master | 2022-04-29T15:28:50.357467 | 2022-03-18T18:14:42 | 2022-03-18T18:14:42 | 94,407,324 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | '''
#Iterators:
#1.Iterator is a object which implements the iterator protocol.
#iterator consists 2methods, __iter__ and __next__
__iter__ returns iterator object itself.
__next__ returns the next value from the iterator.If there is no more items to return
then it should rai... | [
"shivapydev@gmail.com"
] | shivapydev@gmail.com |
2592cd0cd2bea747a58634eb2386b2e46bdca291 | a0015a3dc121c8fcdd5d2eadd522ece03b4ceec8 | /docs/cornell CS class/Lesson 29. Coroutines/demos/read2.py | fe3ecc58b16f7d80b45c890599a931e740dcc82a | [
"MIT"
] | permissive | LizzieDeng/kalman_fliter_analysis | fc40d475797dbddba5f9f2dfb224fbf68d77865f | 50e728f32c496c3fcbb8ca3ee00857b999b88d99 | refs/heads/main | 2023-03-03T02:46:19.020078 | 2021-02-05T07:53:10 | 2021-02-05T07:53:10 | 329,243,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,137 | py | """
A module to show off a long-running function as a coroutine.
This module shows another advantage of a coroutine. We can
interleave two functions as they load from a file. There are
reasons we might want to do this when working with large data,
but they are beyond the scope of this course.
Author: Walker M. White
... | [
"dengff@w-ibeda.com"
] | dengff@w-ibeda.com |
8f90747f878c89576c75229672a53f42de5d6cc6 | 3e74384cda370ae442bc020648c596ce90e7f1cf | /flask_appbuilder/tests/test_security_permissions.py | 16c13f2fad47f94ff633805e126483da9af60f23 | [
"BSD-3-Clause"
] | permissive | thesuperzapper/Flask-AppBuilder | 846b34bb32768bd4f821fb4e8b73a09c8ba0d414 | 357c8100e96034c736860737a41c2004aa4e993b | refs/heads/master | 2022-06-23T05:06:17.059006 | 2022-05-25T10:16:23 | 2022-05-25T10:16:23 | 251,502,746 | 0 | 1 | BSD-3-Clause | 2020-03-31T04:46:27 | 2020-03-31T04:46:26 | null | UTF-8 | Python | false | false | 4,942 | py | from flask_appbuilder import SQLA
from flask_appbuilder.tests.base import FABTestCase
from flask_login import AnonymousUserMixin
class SecurityPermissionsTestCase(FABTestCase):
def setUp(self):
from flask import Flask
from flask_appbuilder import AppBuilder
self.app = Flask(__name__)
... | [
"noreply@github.com"
] | thesuperzapper.noreply@github.com |
a42658845c9f20032a391940e548d739fa593468 | c8453f83242cd525a98606f665d9f5d9e84c6335 | /lib/googlecloudsdk/third_party/apis/bigquery/v2/bigquery_v2_messages.py | c9af6411f99770bce94fba3d09d11478fa6e7675 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | paulfoley/GCP-Cloud_SDK | 5188a04d8d80a2709fa3dba799802d57c7eb66a1 | bec7106686e99257cb91a50f2c1b1a374a4fc66f | refs/heads/master | 2021-06-02T09:49:48.309328 | 2017-07-02T18:26:47 | 2017-07-02T18:26:47 | 96,041,222 | 1 | 1 | NOASSERTION | 2020-07-26T22:40:49 | 2017-07-02T18:19:52 | Python | UTF-8 | Python | false | false | 98,916 | py | """Generated message classes for bigquery version v2.
A data platform for customers to create, manage, share and query data.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py... | [
"Nexu@Nexu.local"
] | Nexu@Nexu.local |
46b142b96d6ec205f215bf65fe76cf618722fad6 | 7236d1d4873faa9735fd5e2d4598b211a370f731 | /project/n/projects/projects/ecommapp/users/migrations/0007_myuser_date_join.py | d2f2c4be22f4cc171f14f93f40710f105bb9009e | [] | no_license | Dreambigxz/my_first_django_app | 05f5a5d330d72084489f9306fca9ca232af13999 | 9e21ebcbe63c7394280558d2977ef8a796960e0d | refs/heads/main | 2023-01-03T18:45:20.712074 | 2020-10-23T09:05:47 | 2020-10-23T09:05:47 | 306,180,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Generated by Django 3.0.8 on 2020-09-03 16:55
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20200903_1752'),
]
operations = [
migrations.AddField(
model_name=... | [
"onyemordidaniel@gmail.com"
] | onyemordidaniel@gmail.com |
fe14ddadd2c999acc769a9198b0b5ef3dfa6dab1 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/src/Security/CWE-377/InsecureTemporaryFile.py | 3f2357e0a19b2399eb7180d8bb003938d2610822 | [
"MIT"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 184 | py | from tempfile import mktemp
def write_results(results):
filename = mktemp()
with open(filename, "w+") as f:
f.write(results)
print("Results written to", filename)
| [
"taus@semmle.com"
] | taus@semmle.com |
d50eab1307396bc0e84d299a1bc905d2e2726013 | 1d09a4459ba64f92f75048fecd9e38b10f9e9eda | /单词数量.py | bf99cf89120678d78ca7e8d6827b8a68c66b4cd2 | [] | no_license | kanghanjun/python | e0e3edace5a1c507f5041bbb880730ed94ae25b5 | 205abf5fecce2eea3c1478cb275d7c35bd2ba271 | refs/heads/master | 2021-05-14T16:08:29.107368 | 2018-01-02T13:20:56 | 2018-01-02T13:20:56 | 116,013,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # 初始化 处理 输入的数据
inputstr = input()
inputstr = inputstr.lower()
lst = (inputstr).split(' ')
#使用字典存储,出现的字母的次数
dit = {}
max = 0
maxkey = ""
for item in lst:
if (dit.get(item, 0)):
dit[item] = dit[item] + 1
else:
dit[item] = 1
#每次判断寻找最大值和字母
if (dit[item] > max):
max... | [
"noreply@github.com"
] | kanghanjun.noreply@github.com |
e7b7e42217feeb3f01953b5944a02e89c881750e | 8ef9d7cb0358228eae8a59db54229ef6c565c8bf | /celery_apps/tasks2.py | e9e9e230086eb41828828cd47d60bb8e9790a607 | [] | no_license | puguojingm/celery-learn | 91bba39770b72ca6005dda000f6ae27f6b21fdf1 | 8f0a9538a7a39ca44abaaa148ec36d5c7dfc596c | refs/heads/master | 2022-01-30T23:27:26.651631 | 2019-06-13T15:33:35 | 2019-06-13T15:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from celery_apps import app
import time
@app.task
def multiply(x,y):
print ("multiply",x,y)
time.sleep(3)
return x*y | [
"10129534@qq.com"
] | 10129534@qq.com |
0f6adf9068518e8bc6f8cb156925ad34697c4170 | 043632ae21132223485f480f49863e8f1fa776d5 | /site-packages/robotlibcore.py | c9b7acc9f31ea02c262d6c3e56296367e9b6c036 | [] | no_license | Eswarinisha/bapacho | 4b0da361cf7624c13ae04eda27ef43b6682dc4a7 | 67300307e39a005f077a66c28c9e055001940915 | refs/heads/master | 2023-05-08T13:01:50.521561 | 2021-06-08T11:20:39 | 2021-06-08T11:20:39 | 307,718,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,117 | py | # Copyright 2017- Robot Framework Foundation
#
# 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 ... | [
"nisha@inqadigital.com"
] | nisha@inqadigital.com |
fdd5e59bb7f0d8b1e7d05261aae50d508479adfd | b0740629e6f17c9626315a95f25dd82d2be45a14 | /tradingApp/migrations/0008_cart_gnumber.py | 07b2fbe43308b0c78afb900c6e862d273962bb46 | [] | no_license | helloluoc/tradingsystem | 19cea7c4959424993c15c02a6b0efa814dff5eef | d372c2ee3cdbcdfe4a1cd86edb164dbae876bc8b | refs/heads/master | 2022-12-13T01:27:16.035413 | 2019-06-17T09:49:49 | 2019-06-17T09:49:49 | 141,142,090 | 0 | 1 | null | 2022-12-08T02:16:50 | 2018-07-16T13:25:32 | Python | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-07-04 16:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tradingApp', '0007_auto_20180704_1608'),
]
operations = [
migrations.AddFie... | [
"helloluoc666@gmail.com"
] | helloluoc666@gmail.com |
66105928bd45916298b44a3115b1fea9210a9202 | a3b07b1b616aed0010d9a7b9c781130c41551409 | /majcats/majcat_single/majcat_single/asgi.py | fb304cb28f65f1f35f58e21a66c000865048dbba | [] | no_license | AmeRefrain/majcat | a43c2ca760fbeaf00017c6eee3afc5442800fe80 | 64caa5def271c1ec455e1da3b29af5a9575acc30 | refs/heads/master | 2023-03-29T03:26:34.599538 | 2021-03-31T08:00:46 | 2021-03-31T08:00:46 | 352,010,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for majcat_single 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"amerefrain.jp@gmail.com"
] | amerefrain.jp@gmail.com |
4454142f9c4e8872c8f957ac0c309aecc8018b55 | 206850b00a70e56cbb16f128778479c289f81a66 | /blog/migrations/0001_initial.py | a0494f61a8f1b6215120dd4b246a61674d42c55e | [] | no_license | xsddota/xiao | d00a63a69eddf4bfcc9456f06378b0d54294c36f | 23b5d231927f0fbcb7827df3d4d8f5ee85ad7140 | refs/heads/master | 2020-03-26T05:41:03.715372 | 2018-08-13T12:02:36 | 2018-08-13T12:02:36 | 131,020,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-27 14:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BlogP... | [
"38501292+xsddota@users.noreply.github.com"
] | 38501292+xsddota@users.noreply.github.com |
a83555606a892205a49c7f27d850b79e4d48341c | 375e5bfe9c6e9e2fb962fd58e38c3ee0ec1a29d1 | /Lab3 - Duality/ej4.py | 65eb4c4ded2942f2251cefef48e1853f2cd32cff | [] | no_license | luciabouza/Optimization-theory-and-algorithm | 1cf90395b0c4383e906333a5672d9a3504b75627 | 23333663f1fc5dc8846efd6ed6f3fd2ca76cef44 | refs/heads/main | 2023-05-27T12:28:11.647820 | 2021-06-10T16:32:12 | 2021-06-10T16:32:12 | 375,763,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py |
import cvxpy as cp
import numpy as np
import matplotlib.pyplot as plt
def resolver(d2):
p = cp.Variable(3)
g1 = cp.Variable(1)
g2 = cp.Variable(1)
t = cp.Variable(1)
c1 = g1
c2 = 4 * (g2 - 40)
cost = c1 + t
constraints = [ [1,0,1]@p==g1, g2+[0,1,1]@p==d2, [1,-1,0]@p==10 , [-1,-1,1]@p=... | [
"lucia.bouza@pyxis.com.uy"
] | lucia.bouza@pyxis.com.uy |
c528cf17d4c0b1fcd15cc529cebd10f3ba3b5ec7 | 394d81287d175851334ff2bc78c0dbd471923815 | /chapter2/weather.py | c826fd5a5ab63877dcfb40731b2a73c59688d652 | [
"MIT"
] | permissive | rongpenl/design-patterns-python | b14200b91af017bf08701c1c570059d25efc5c83 | cbe7e6da6ae94604abad256bd807af1642fee915 | refs/heads/master | 2022-12-28T00:00:26.853030 | 2020-09-22T04:30:03 | 2020-09-22T04:30:03 | 297,237,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | # observer pattern
from abc import ABC, abstractmethod
class Observer(ABC):
def __init__(self):
pass
@abstractmethod
def update(self, temperature: float, humidity: float, pressure: float):
pass
class Display(ABC):
def __init__(self):
pass
@abstractmethod
def display... | [
"rongpenglee@gmail.com"
] | rongpenglee@gmail.com |
f3d50b3681586ff978d649daee57b59e52e2ef91 | ea5034be4ef4a58ffeaccb5342754efa47db64a3 | /env/Lib/site-packages/PyInstaller/utils/_gitrevision.py | d8ddc6540d4a70f6310e3f7a3858228ac47d47a3 | [] | no_license | Airjumper/EX1 | 861fdd6b45f14a61eb37141a6b8c88a9b6313020 | 484190c0d3eb92f77136cfd9159c95bae0ebb403 | refs/heads/master | 2023-05-28T12:13:41.227063 | 2023-05-02T04:37:25 | 2023-05-02T04:37:25 | 263,378,611 | 0 | 1 | null | 2020-06-07T14:20:47 | 2020-05-12T15:37:27 | Python | UTF-8 | Python | false | false | 572 | py | #
# The content of this file will be filled in with meaningful data
# when creating an archive using `git archive` or by downloading an
# archive from github, e.g. from github.com/.../archive/develop.zip
#
rev = "253feb7e16" # abbreviated commit hash
commit = "253feb7e16cd3a6a6d3ea2fb80c3491d30671e39" # commit has... | [
"18817456@student.westernsydney.edu.au"
] | 18817456@student.westernsydney.edu.au |
cc30e9d67261942ea1e7ab2d69f8c72d5c1abeb2 | e9cd817d3da30418faaba07d0413bee73beae28d | /comp_204/24_lists.py | b9ef8f46c3fcfc7e5717999c8ef6177c0d73db12 | [] | no_license | pierreTklein/ReviewSessions | b12460c4f7db0c8fc086783d45afedb0769ef1cb | 92b445bfa4a6520fe7e3ce34c3d352f37a5d87a7 | refs/heads/master | 2020-04-10T02:27:58.294803 | 2018-12-07T17:02:28 | 2018-12-07T17:02:28 | 160,744,980 | 0 | 0 | null | 2018-12-07T17:02:30 | 2018-12-06T23:23:51 | Python | UTF-8 | Python | false | false | 192 | py | thisList = [1, 4, 1, 2, 3, 10]
a = thisList.reverse()
b = thisList.sort()
c = sorted(thisList)
d = min(thisList)
e = max(thisList)
print(a)
print(b)
print(c)
print(b is c)
print(d)
print(e)
| [
"pierre.klein@mail.mcgill.ca"
] | pierre.klein@mail.mcgill.ca |
5b25230969a0ac12fc34559b94806650e5289631 | aef287bf41ac5ad2b1f45b3087094103db514489 | /FuncionesAvanzadas/EjecicioComprimir.py | 2c02606cded79cfcbeac711eec92f7d8da021684 | [] | no_license | macantivbl/Python | 1180c3e6d694ecbfb97eefecb0fba8374f9d7d88 | 2e7663a0a5790caf05e8439940b48fbd220000cb | refs/heads/master | 2023-07-07T07:05:46.549667 | 2021-08-17T03:47:41 | 2021-08-17T03:47:41 | 385,390,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | lista = ['a','b','c','b','d','m','n','n']
duplicados = list(set([value for value in lista if lista.count(value)>1 ]))
print(duplicados )
| [
"macantivbl@gmail.com"
] | macantivbl@gmail.com |
3bdab0e8fb8cd020ad4a6db81f0d1e4d49c8d1db | 42bef12a3128fb79676a91d57595ca6abec96544 | /django_orm/Like_Book/apps/like_app/views.py | 318271a27e0b679f9bccd84d300082472d77c26e | [] | no_license | chizakirov/django | c8bea894d355a72977ecfe86192b7b827fb1f3ea | b297b21c38b06d4bc9cd1a248a2ee7626c317cee | refs/heads/master | 2020-04-14T21:50:28.093270 | 2019-01-04T18:48:23 | 2019-01-04T18:48:23 | 164,142,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.shortcuts import render
def index(request):
return render(request,"like_app/index.html")
| [
"nguyen.chi.byu@gmail.com"
] | nguyen.chi.byu@gmail.com |
9d1a437f349da26546e39c27cdd068e8674d9110 | d1b677b4591c0adfc576607a244b565e2c767bbc | /Udacity-ML/titanic_survival_exploration-master_0/titanic_visualizations.py | 6261a1b041bc05c09c34234a68c7c1abb8e08362 | [
"MIT"
] | permissive | quoniammm/happy-machine-learning | 4614a09266fb778047462b2085250b39a14c7854 | ffe3f5f24b4639a67707ba3b41e74601a379acb5 | refs/heads/master | 2021-06-20T01:44:17.051853 | 2017-07-31T02:40:56 | 2017-07-31T02:40:56 | 74,884,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def filter_data(data, condition):
"""
Remove elements that do not match the condition provided.
Takes a data list as input and returns a filtered list.
Conditions should be a list of strings of the following format:
'<field> <... | [
"quoniamy@gmail.com"
] | quoniamy@gmail.com |
0c09ea627fd4040ffbfb1f4ded9b64413584a698 | 9d253bccbf4d2c150df543cc9f40ce0d28a6a7e1 | /python_practice/python_task/tstonglao.py | 87870b2d4dbca56d6c14450b27e3242ccfc5e674 | [] | no_license | suehuijie/hogwarts_sue | 209dac68dd2a79caf632def3dc4dc58e21b13a04 | f89c1ee219e161a3fff31af28a767794e62b6203 | refs/heads/master | 2023-05-03T12:27:58.465878 | 2021-05-26T05:39:53 | 2021-05-26T05:39:53 | 330,535,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | class TongLao:
# 构造方法
def __init__(self, power):
self.hp = 1000
self.power = power
# see_people方法
def see_people(self, name):
if name == "WYZ" or name == "无崖子":
print("师弟!!")
elif name == "李秋水":
print("师弟是我的!!")
elif name == "丁春秋":
... | [
"1063514310@qq.com"
] | 1063514310@qq.com |
02bd4d8c5b7f5ee571bf79d27ec708e3779ed9cd | 075557cfa0cf4520664f08dcadd5c6988016790e | /sendemail.py | 81474e4dd61aecd8509eca44ddb1e06a7b2c6189 | [] | no_license | plt3/basic_selenium_projects | 7135096e5897f2153c5352ec0d68e0cf69b4b79c | 2596b5b96401ad387c376f4b99357dc46911c387 | refs/heads/master | 2022-09-24T22:59:21.124502 | 2020-05-29T16:01:50 | 2020-05-29T16:01:50 | 266,461,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
from secrets import *
def findbyclass(name, driver, keys='click'):
elem = driver.find_element_by_class_na... | [
"pltorigami@gmail.com"
] | pltorigami@gmail.com |
726083e657d4bfe7dfdd3ffc0d4860c40b2161b0 | 98d9305b1717642bcfb842eecd84d63b6eeaf759 | /Funtions/Passing_Information.py | 95f7621fc81d57dd2ebdb67a24a82da35ae5f6f4 | [] | no_license | er-aditi/Learning-Python | 5ceb020f4df8db9e34df78edfaecca3e1854c8a9 | 297eda435ee2e1cee643f94ea4c5de6a82e3c8a7 | refs/heads/master | 2020-03-24T17:22:22.129081 | 2019-06-19T05:47:26 | 2019-06-19T05:47:26 | 142,856,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def greet_user(username):
print("Hello! " + username + ". ")
greet_user('jess')
greet_user('sarah')
| [
"aditijainnoida85@gmail.com"
] | aditijainnoida85@gmail.com |
260813429914a3e96d817d822aba4102fce06946 | 605d7e741244212091b34e518a8abd0c218437c3 | /WebInterface/server/src/user/migrations/0004_auto_20210215_2145.py | 53046c4e677b591a187124be284af52b90d3f033 | [] | no_license | nlpathak/TwitterSentiment | 66671ae41b6681ec2fe6a7040613aef995d2dd59 | 8919a73e9ead147e365e5a9ba556b1ee0867e0a8 | refs/heads/main | 2023-03-24T17:33:39.577975 | 2021-03-26T01:52:04 | 2021-03-26T01:52:04 | 351,629,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.1.6 on 2021-02-15 21:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20210215_2136'),
]
operations = [
migrations.AlterField(
model_name='twitteruser',
name='id',
... | [
"arhanna@ucsd.edu"
] | arhanna@ucsd.edu |
aed9190de126750148813cee49a36b0191fe03cf | e1b09412691d9d375637760f9226e97a9927f108 | /day17 网络编程再试/小测.py | c2a8d129a4144c2cf049d7051243dba1f8e97c09 | [] | no_license | fallencrasher/python-learning | 572988c5d3cb6f97dcefdcdaf27101283756ebc7 | ec712211a4e8895b31212ff750731be60781d0ca | refs/heads/master | 2021-05-20T19:35:07.485620 | 2020-05-18T13:11:45 | 2020-05-18T13:11:45 | 252,392,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | #1、看代码写结果【如果有错误,则标注错误即可,并且假设程序报错可以继续执行】
class Foo(object):
a1 = 1
__a2 = 2
def __init__(self,num):
self.num = num
self.__salary = 1000
def show_data(self):
print(self.num+self.a1)
obj = Foo(666)
print(obj.num) #666
print(obj.a1) #1
#print(obj.__salary) #报错
#print(obj.__a2) #报错
print(Foo.a1) #1
#prin... | [
"fallencrasher"
] | fallencrasher |
af107338dd9af11929b71bfaabf4b14394afe3e3 | 387392395d3b08a9b2980a14ef0a8c69698f02ee | /microblog/app/models.py | f95b03bdab81a53236278fc8c99cefa6a1ba2da1 | [] | no_license | keirsjd01/microblog | 471596f55c52b97e5c21f77d6d9a59bf05f17963 | 54b459042ef0acc4ab65fca427b5f38c1464849b | refs/heads/master | 2021-05-05T00:58:45.677731 | 2018-02-08T12:56:16 | 2018-02-08T12:56:16 | 119,525,103 | 0 | 0 | null | 2018-02-08T12:56:17 | 2018-01-30T11:13:01 | Python | UTF-8 | Python | false | false | 2,159 | py | from werkzeug.security import generate_password_hash, check_password_hash
from datetime import datetime
from app import login, db
from flask_login import UserMixin
from hashlib import md5
@login.user_loader
def load_user(id):
return User.query.get(int(id))
class User(UserMixin, db.Model):
id = db.Column(db.In... | [
"keirsjd01@pudseygrangefield.co.uk"
] | keirsjd01@pudseygrangefield.co.uk |
ba60fe38e13a738a0edfb12fb060eeb0f659882c | 3bd6ae1adf1d723dd8daae733ddbebfbe92938b8 | /leetcode/989.py | 266d07552feede32647d03f5d80de0877b6da50e | [] | no_license | maxwang967/kick-start | ede5bdfca18477bf649be5049f421e9700d6c92c | 5fc90eb3aafa41dced1ef682dcce2a07b558a545 | refs/heads/master | 2023-03-31T00:38:38.584384 | 2021-04-02T06:05:10 | 2021-04-02T06:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | class Solution:
def addToArrayForm(self, A: List[int], K: int) -> List[int]:
result = []
K_array = [int(x) for x in str(K)]
K_n = len(K_array)
A_n = len(A)
carry = 0
border = min(A_n, K_n)
for i in range(border):
cur_K = K_n - 1 - i
cur... | [
"morningstarwang@outlook.com"
] | morningstarwang@outlook.com |
cb34e95e6cd76ea0113438cb6b6c0d0a1dbbca99 | 0053dab54b07d9c3817ba631adcb2f92441be8a4 | /ws/src/drift_agent/rl/handful-of-trials/scripts/mbexp.py | 714fde2de3ad624b2c0fd128617c1777237f725c | [
"MIT"
] | permissive | azeng97/avdrift | 508e89266c438fbe0a7af460b06daf2585d46171 | 613b84d1839a1a78b6c841d17581ddcd83f68f64 | refs/heads/master | 2023-07-25T12:57:26.347903 | 2019-11-16T07:59:15 | 2019-11-16T07:59:15 | 204,614,897 | 0 | 0 | null | 2023-07-06T21:14:26 | 2019-08-27T03:48:14 | Jupyter Notebook | UTF-8 | Python | false | false | 1,763 | py | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import argparse
import pprint
import sys
from dotmap import DotMap
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from dmbrl.misc.MBExp import MBExperiment
from dmbrl.controllers.MPC import MPC... | [
"azeng97@gmail.com"
] | azeng97@gmail.com |
2cb33275754ec783f5f546a411cf0fe226a579eb | f7982a468b6f76dc72c53e7c3644ae4e7e6f2f49 | /pyEX/refdata/ric.py | 6e4ab19987f1f4ec33a268a2b177446c705a78b6 | [
"Apache-2.0"
] | permissive | timkpaine/pyEX | 55002c3718214c6e207976ab3661a47108c6c114 | f678c791d05bc28911e25807241c392a9ee8134f | refs/heads/main | 2023-08-20T00:17:53.162803 | 2022-11-22T02:51:13 | 2022-11-22T02:51:13 | 109,551,372 | 350 | 95 | Apache-2.0 | 2023-09-11T12:26:54 | 2017-11-05T04:21:16 | Python | UTF-8 | Python | false | false | 1,129 | py | # *****************************************************************************
#
# Copyright (c) 2021, the pyEX authors.
#
# This file is part of the pyEX library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps
import pandas a... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
ba1c4757ef1f8b196e08821d7a2d5b70c0bc2c0d | 416f6e33fd290302a00304fafd064906733cc55f | /stock_screening_2020y3q.py | 10bcf28847b5612641a5460579c60404594472cc | [
"Apache-2.0"
] | permissive | jongheeyun/stock_screening | c3b8874502070a66132a7b88e8d723ba07510ebb | b7a0d2a82436e59fe8d4b89d2900c62252dbd46c | refs/heads/master | 2023-02-20T09:15:25.443675 | 2021-01-16T06:11:14 | 2021-01-16T06:11:14 | 299,737,334 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,636 | py | from typing import List, Any, Union
import requests
from bs4 import BeautifulSoup
import pandas as pd
from openpyxl import load_workbook
from openpyxl import Workbook
def create_column():
url = "https://finance.naver.com/item/main.nhn?code=005930" # 삼성전자
res = requests.get(url)
html = BeautifulSoup(res.t... | [
"noreply@github.com"
] | jongheeyun.noreply@github.com |
a3810577a124499e43ca7c70f2fdc9889b8971e0 | 3df1fca973d127b0118d6c4a89940a2f41be75cc | /importpatches.py | c1cc6da556b0c954860afd78c1a80bc5c6cf7fad | [] | no_license | hroncok/importpatches | 182ec91294a55ccb2d610ffd220f3b65a598f602 | e87183e6770f4307cf9452192c4824e6b3a8a5b7 | refs/heads/master | 2023-04-29T23:03:52.911202 | 2020-07-17T19:20:25 | 2020-07-17T19:24:17 | 281,077,112 | 0 | 0 | null | 2020-07-20T09:46:43 | 2020-07-20T09:46:43 | null | UTF-8 | Python | false | false | 12,663 | py | import subprocess
from pathlib import Path
import sys
import shlex
import re
import dataclasses
from textwrap import dedent
import tempfile
import shutil
import click # dnf install python3-click
REPO_KEY = 'importpatches.upstream'
PATCH_NUMBER_RE = re.compile('^(\d+):')
SPECIAL_PATCH_NUMBERS = {
'python-2.7.1-c... | [
"pviktori@redhat.com"
] | pviktori@redhat.com |
fafb5f902128017c9a0e87f966658b6bcc3967fd | 971ac2d9d99d636328b0a31d5f76ce7355cf81ac | /startechbd/startechbd/spiders/startech_laptops.py | 79bb0fb11dd5e3c7e9141012a6f8698b71c2689f | [] | no_license | ST12357/Web_Scraping-Scrapy-Startechbd | 5b303ce3b9496fabb7769e6c9121f9f517be28b6 | e7ae889d746ac7525aa3caf9ed6dbb68b45edf95 | refs/heads/main | 2023-06-12T13:21:21.894362 | 2021-07-09T20:00:24 | 2021-07-09T20:00:24 | 384,383,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | import scrapy
class StartechLaptopsSpider(scrapy.Spider):
name = 'startech_laptops'
allowed_domains = ['https://www.startech.com.bd']
start_urls = ['https://www.startech.com.bd/laptop-notebook/laptop?sort=p.price&order=ASC&limit=90',
'https://www.startech.com.bd/laptop-notebook/laptop?so... | [
"noreply@github.com"
] | ST12357.noreply@github.com |
0f7d8ae5196b70d080e081d05be8478206494a1d | 82cd10c024f284555845f006e518924fed3254c7 | /Day-06[09-10-2021]/EmployeeProject/EmployeeProject/urls.py | 256d1ab7ebea77beebcb3a9ed2b40858b129c6a2 | [] | no_license | AP-Skill-Development-Corporation/APSSDC-Workshop2021 | 61acba18eb55ec2e4bb96ded95d339c73c8ea1ac | fe1f5517f99b17bd0ebcf07c70ee26bd23f262ea | refs/heads/main | 2023-08-12T16:29:53.208949 | 2021-10-16T15:47:22 | 2021-10-16T15:47:22 | 413,299,596 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | """EmployeeProject 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')
Cla... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
c63a4eb123b83fd7c5e71ea9e496a117a9d6ffcc | 6dbb5ae0bcfcdb2895fb1a066fbe14e2ce3f04e4 | /python/html_parse.py | fb09c3fbae045485c40effc1dfc01dc985babfef | [
"Apache-2.0"
] | permissive | kev0960/ModooCode | 8b5ed03eed2dbd9c753bbcf6aeaa704b234cf411 | e8d5d9cf08077e227e0d36939d7977eeef46b6bb | refs/heads/master | 2023-08-31T17:37:29.406419 | 2023-08-27T01:22:19 | 2023-08-27T01:22:19 | 148,594,006 | 54 | 8 | Apache-2.0 | 2023-03-01T23:09:31 | 2018-09-13T06:44:32 | C++ | UTF-8 | Python | false | false | 10,947 | py | from bs4 import BeautifulSoup
import os
from tqdm import tqdm
from html.parser import HTMLParser
class BlogDumpHtmlParser(HTMLParser):
def __init__(self, filename):
super().__init__()
self.in_box = False
self.in_box_with_div = False
self.in_list = False
self.list_type = None
self.in_script ... | [
"kev0960@gmail.com"
] | kev0960@gmail.com |
11dcbbd586bc4a03e5877db9fc54ae3107aa578f | 487a5965d505e0ff5f9b6af73e89baa4495e8247 | /get_ip.py | f1a921f2b1d5d1df04f6033e0f0c27d8635f4432 | [] | no_license | civissmith/scripts | 8e91266cf9f6e99f13123dc9eadefe0568870898 | badb3f53464ca1e99311f1b563c38b326102fbe7 | refs/heads/master | 2021-01-17T10:32:19.496137 | 2018-01-17T12:57:29 | 2018-01-17T12:57:29 | 6,525,570 | 0 | 0 | null | 2012-11-14T18:41:59 | 2012-11-03T23:56:57 | null | UTF-8 | Python | false | false | 5,399 | py | #!/usr/bin/python -B
################################################################################
# @Title: get_ip.py
#
# @Author: Phil Smith
#
# @Date: 17-Aug-2013 9:18 PM
#
# @Project: Motorola Surfboard Hack
#
# @Purpose: Logs into the Motorola Surfboard Router, gets the current WAN IP
# address.
#
# E... | [
"civis.smith@gmail.com"
] | civis.smith@gmail.com |
76102b927b78f7e554f0600c9d4a21795372affd | 39e2d61896ea2f44de8c4d9050a486d5183986fd | /mysite/settings.py | 586cd1b096cf48cecb0979a7bad376e6fbe17ca8 | [] | no_license | Gutimartinez/my-first-blog | b47ed9d03f43b352ba4c90cea560fe72f66dc56c | 15a80c1a4d507763007b3215c0e957a28726b899 | refs/heads/master | 2020-04-07T02:53:55.831813 | 2018-11-17T16:35:57 | 2018-11-17T16:35:57 | 157,994,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.9.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"guti@guti.com"
] | guti@guti.com |
94ab65b6908c161276d618daba1b6975924072fe | 7b710aeaf389bfec81e8e7423ec2aac8632cbc3e | /backend/reduceAirports.py | b610d2155805b0171c7d8f70b8fec2c215ddfc01 | [] | no_license | jasonpul/JetOut | e1b8e30a88b86789ebe194bd66cf3890f6294992 | b7d1a61ba53c76cd8182cb4f7150cd7a42a92ff1 | refs/heads/master | 2022-11-23T23:29:31.112838 | 2020-07-29T12:06:17 | 2020-07-29T12:06:17 | 281,679,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import json
with open('backend/airports.json') as f:
data = json.load(f)
newData = [{'code': i['code'], 'city': i['city']} for i in data]
index = sorted([(city['city'], i) for i, city in enumerate(newData)])
newData = [newData[index[i][1]] for i in range(len(newData))]
newData = newData[28:] + [newData[27],] + ne... | [
"jason.pul.ca@gmail.com"
] | jason.pul.ca@gmail.com |
46b0d0c58218883358493e41caffae0b3d695983 | 7c83af09eb069917d40de0e58fc348fd0b14bb7d | /Outputs/avdss_7_res.py | b13d73bbf03c4df5bfe47d5330a35aba0f8c5a3a | [] | no_license | soujanyaamd/EDA-tool-for-Scheduling-Binding-and-Verilog-file-generation | fd4db24c0e5dd0d51757b511a4638494c9174a73 | 8f31f7fea4ef439720e51e50b0057a938362479a | refs/heads/master | 2020-05-14T09:25:20.086747 | 2019-04-16T20:29:03 | 2019-04-16T20:29:03 | 181,739,741 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
============ RESTART: C:\Users\Soujanya\Desktop\AVD_SS\avdss_7.py ============
SCHEDULING AND BINDING SOLUTION
TIMESLOT 1
operation 1 ----> Add/Sub... | [
"noreply@github.com"
] | soujanyaamd.noreply@github.com |
67c67c45c81ce9055857ab7dd21cd59ef51b000e | a2a0c0b54dd6658ae039ebc834e3cc5ec2dd925b | /orders/models.py | dd3d6f49c37860447a7eb8536d6b28548ce0003d | [] | no_license | GiulianoSoria/Pizza | feaaf38828f099b4282bc9fe3e33bef0b21f10ae | 336068ac60016923efa688102f4cb45b64af4b61 | refs/heads/master | 2021-06-18T10:29:24.472742 | 2019-11-13T20:34:37 | 2019-11-13T20:34:37 | 199,933,574 | 0 | 0 | null | 2019-07-31T23:00:22 | 2019-07-31T21:48:35 | Python | UTF-8 | Python | false | false | 1,272 | py | from django.db import models
# Create your models here.
class Pizza(models.Model):
name = models.CharField(max_length=64)
size = models.CharField(max_length=1)
price = models.FloatField()
def __str__(self):
return f"{self.name} pizza of size {self.size} costs {self.price}"
class Sub(models.Mo... | [
"giuliano.soria@gmail.com"
] | giuliano.soria@gmail.com |
5ba4904c79c11ee96c12103d8f17c226aefa5a8c | 56cac2ee7e7a4e629519964320ceb813e2dd5102 | /App/migrations/0020_courses_whatsapp_group_link.py | 80ab79aef5c6a53bb3317ba99ecb330222f47760 | [] | no_license | LinkCode-Projects/LinkCode-Website | 70ed4f614847779ea5ba05bb0ebbaa6d9f85eece | f6c900b0c53425a36bc669b58c2adc5592ff6c8f | refs/heads/main | 2023-06-26T07:26:07.702031 | 2021-07-31T06:24:28 | 2021-07-31T06:24:28 | 391,266,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.1.1 on 2020-12-24 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0019_auto_20201219_1235'),
]
operations = [
migrations.AddField(
model_name='courses',
name='whatsapp_group_l... | [
"ashutoshkumbhar27@gmail.com"
] | ashutoshkumbhar27@gmail.com |
f112463a98d6d41398620a8de1ed9b90dda3443b | b6bc7e7ad84e388c3f7cb8827032d8da69ecf8c4 | /Morphing/UI_assistant.py | bd07455e233ae8b22a7e8903dc7beeee5f542646 | [] | no_license | XiaoyueDuan/Morphing | 495345b3cec93dbee43d5603ef35852c32020494 | 79ff5029c41b41167fac3d178dd91d945ce0267b | refs/heads/master | 2021-01-19T19:09:55.201133 | 2017-06-01T08:34:55 | 2017-06-01T08:34:55 | 88,403,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | # -*- coding: utf-8 -*-
"""
File Description:
The .py file aims to assist morphingUI.py with more advanced function,
e.g. add events, interact with morphing algorithm
"""
from Morphing import Interface
import numpy as np
class Valid():
"""
Class Description:
The goal of this class... | [
"dxydxyd@163.com"
] | dxydxyd@163.com |
39764d8d79f6697d5e9b2cffeb3f3e9487f9ea0a | 2eee2da886d2574f030b22771e707e32f56cbaed | /chaospy/distributions/collection/chi.py | cb04231c2d16b7f21de4aa90574562d6e927b4fc | [
"MIT"
] | permissive | lblonk/chaospy | 1759f050229d1365802320d9b13f6195ec55a72c | 1759a4307c6134b74ce63ff44973195f1e185f94 | refs/heads/master | 2022-11-12T19:50:15.108219 | 2020-07-03T11:13:42 | 2020-07-03T11:13:42 | 276,879,282 | 0 | 0 | MIT | 2020-07-03T11:03:14 | 2020-07-03T11:03:13 | null | UTF-8 | Python | false | false | 3,779 | py | """Chi distribution."""
import numpy
from scipy import special
from ..baseclass import Dist
from ..operators.addition import Add
class chi(Dist):
"""Chi distribution."""
def __init__(self, df=1):
Dist.__init__(self, df=df)
def _pdf(self, x, df):
return x**(df-1.)*numpy.exp(-x*x*0.5)/(2.... | [
"jonathf@gmail.com"
] | jonathf@gmail.com |
b53fb27016d732c08a7869d38d13162383b30b32 | 1e09bc56bf2904b349df1873e11da3d527437880 | /lecture-27/AdjListGraph.py | 8a03efffe1f2ce76c121133adbb645df489cf2d6 | [] | no_license | codeforcauseorg-archive/DSA-Live-Python-Jun-0621 | f3444f5671cb4985644c7432517477c3585c70fb | e4fe544178d7851c24755242390f39675b99fabe | refs/heads/main | 2023-08-09T08:31:41.449120 | 2021-09-14T16:44:39 | 2021-09-14T16:44:39 | 384,725,085 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | class Vertex:
def __init__(self, value):
self.value = value
self.neighbours = {}
class AdjListGraph:
def __init__(self):
self.vertices = dict()
def add_vertex(self, value):
if value not in self.vertices:
self.vertices[value] = Vertex(value)
def add_edge(se... | [
"anujgargcse@gmail.com"
] | anujgargcse@gmail.com |
03bcb52f8522d03c2c26b48ede99705b3fae114d | b2cab3b5a4780ff2974a4b081ba1f070284e939c | /backend/reports/tests/test_api.py | b2d5ddcd02369153ebda0db8f0b7c9b73bd1dfc0 | [] | no_license | leonardocouy/100aedes | a6535e6c6174e2143afa51ff9b407123859845c2 | 90c81b29fe6cbefe7d3c181bacf6e0dfdb57f889 | refs/heads/master | 2021-03-16T10:29:15.253489 | 2017-01-31T16:18:04 | 2017-01-31T16:18:04 | 65,765,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,849 | py | import json
from django.forms import model_to_dict
from django.urls import reverse
from model_mommy import mommy
from rest_framework import status
from rest_framework.test import APITestCase
from backend.accounts.tests.test_api import get_jwt_token
from ..models import Report
class UserAuthReportApiTest(APITestCase... | [
"contato@leonardocouy.com"
] | contato@leonardocouy.com |
1a5cc4dd4b02297aa61785f8fe17d28cdf7bae2c | 99e494d9ca83ebafdbe6fbebc554ab229edcbacc | /.history/Day 1/Test/Answers/NegativeMarking_20210304211811.py | d220b7261e6beb16198606a036f3688522eaee56 | [] | no_license | Datta2901/CCC | c0364caa1e4937bc7bce68e4847c8d599aef0f59 | 4debb2c1c70df693d0e5f68b5798bd9c7a7ef3dc | refs/heads/master | 2023-04-19T10:05:12.372578 | 2021-04-23T12:50:08 | 2021-04-23T12:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | t = int(input())
for i in range(t):
questions,requiredscore = map(int,input().split())
if questions * 4 < requiredscore:
print(-1)
continue
attempt = (requiredscore/questions) + 3
accuracy = attempt / 7
print(format(accuracy*100,'.2f')
#
# Here Accuracy can be find by usin... | [
"manikanta2901@gmail.com"
] | manikanta2901@gmail.com |
cd3d97d846876037d74f4ccc46eefb915c555830 | 823b69dffc4a6e28b9e4c27ec176f8ce54d2e586 | /args/arg_parser.py | c2cea4c5d26614670271806fddc28b28fb6b4b19 | [] | no_license | potlee/pbt | 1f5af632aa100561da1c284b522a6ca181ea21c1 | 05160eca9f3a557a25d043502f90aca1a7b76b46 | refs/heads/master | 2020-03-25T23:48:47.867151 | 2018-06-23T19:40:16 | 2018-06-23T19:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import argparse
import util
class ArgParser(object):
def __init__(self):
self.parser = argparse.ArgumentParser(description='Population-Based Training')
self.parser.add_argument('--gpu_ids', type=str, default='0',
help='Comma-separated list of GPUs to use.')
... | [
"chutechristopher@gmail.com"
] | chutechristopher@gmail.com |
adc5bbcfc28035977a9e7d0261a34f014180d313 | e11dd6027353f75e1eb58ab71042e51b603e0c8b | /forms.py | c6c46533bda642511f5d9e4902ce37cd0ab946a5 | [] | no_license | noamoss/notifier | d7f2951f5936794fd90a0a429966222a28e77694 | 791083288ecd472429a571b00fe1438c563369cc | refs/heads/master | 2022-10-05T06:34:52.409777 | 2016-07-07T21:28:53 | 2016-07-07T21:28:53 | 53,517,809 | 1 | 1 | null | 2022-09-16T17:45:53 | 2016-03-09T17:35:07 | HTML | UTF-8 | Python | false | false | 2,557 | py | # -*- coding: utf-8 -*-
# projects/forms.py
import json, feedparser
import urllib.request
from urllib.parse import urlparse
from flask_wtf import Form
from urllib.error import URLError
from wtforms import StringField, DateField, IntegerField, \
SelectField, PasswordField
from wtforms.validators import DataRequired,... | [
"noamoss@gmail.com"
] | noamoss@gmail.com |
cf012a2c7444ec2ae46bcb9d28286cdda0ce7b8c | 1868b0b0d55c5337e05ba1959523e4e9a51e626d | /bucket-list.py | c0f1336661fb444efaf04615844b791203c8bb00 | [] | no_license | DheerajJoshi/AWS-Python-boto3 | 394030bf8d577455dd451d7f6f613bc3f63162fa | 10ec1f5f75fabc608a0e7351850753068f4fe00c | refs/heads/master | 2021-06-16T08:36:56.332599 | 2017-05-05T10:43:16 | 2017-05-05T10:43:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #list buckets using list_buckets function
import boto3
#create an s3 client
s3 = boto3.client('s3', aws_access_key_id = 'AKIAI6KLHZTL7BAVG6', aws_secret_access_key = 'Ds9fkJEgvm2+koAHFkz2d8/xOzR8/5tlZAp9To')
#call s3 to list current buckets
response = s3.list_buckets()
# Get a list of all bucket names from the respo... | [
"noreply@github.com"
] | DheerajJoshi.noreply@github.com |
c0593805d9fcc7d217660376fbb2688f706642e2 | 0798277f2706998ab80442ac931579eb47f676e5 | /boundary/property_handler.py | 45635669e8b5a3731f321b2d7a0d6eb87f6a6557 | [
"Apache-2.0"
] | permissive | isabella232/pulse-api-cli | 49ed38b0694ab289802f69ee6df4911cf3378e3f | b01ca65b442eed19faac309c9d62bbc3cb2c098f | refs/heads/master | 2023-03-18T00:23:15.295727 | 2016-05-13T15:44:08 | 2016-05-13T15:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #
# Copyright 2016 BMC Software, Inc.
#
# 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 ... | [
"davidg@boundary.com"
] | davidg@boundary.com |
c3d4a68523f3f80696d083566f8b8dab12579800 | 28b3a96744bab96c002033d67b7e7091e0af7322 | /AdverBrush/venv/Lib/site-packages/appium/webdriver/extensions/performance.py | dc266a1490c19378bccfb7257f1ef19eef8660f2 | [] | no_license | lichenglan/Python-tools | 37759478acab35a48c3368bea3d501772c1093aa | 4f6f42572549480182408dfd45af9f07026bb19f | refs/heads/master | 2020-05-31T06:59:34.100962 | 2019-06-04T08:34:48 | 2019-06-04T08:34:48 | 190,153,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python
# 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 writing, software... | [
"licl@shuzilm.cn"
] | licl@shuzilm.cn |
ee91fc709a5415206b27ceb902754a8eb60d5c7f | 6cb36cf49ea06e32c953c57d84059170c63ba048 | /app/sectors/controllers.py | a92e59e7fbfb06d0afe89dd7b806bb8738ad20b4 | [] | no_license | cohenamitc/SecurityCourseProject | 12a9a28454aa1cf856bf39d332336ada1fc3ef09 | 8fa3872125c368dd17ac814fc0edabca8a1d70b4 | refs/heads/master | 2023-05-10T13:26:27.701688 | 2021-06-01T17:04:01 | 2021-06-01T17:04:01 | 363,397,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Import flask dependencies
from flask import Blueprint, request, render_template, \
flash, g, session, redirect, url_for
from flask_login import login_required
# Import password / encryption helper tools
from werkzeug.security import check_password_hash, generate_password_hash
# Import the database ... | [
"amitcohen@microsoft.com"
] | amitcohen@microsoft.com |
00f065d20644809c36a60a0fbfe0ad0aa3cd6ef9 | 4a0f2cc27cd39b8b8901ade728f3b1dc20c2a2ee | /controller/qt_classes/UbNewDocumentViewDelegate.py | 096e2b7becda90dbfcb58540466702c64771dd6f | [] | no_license | teamlm2/lm2_mgis | 2c016423983a31fcdf15e34508401acf48177f35 | 9144b1234b25665737986995bd1da7492871151c | refs/heads/master | 2021-11-11T23:43:12.647749 | 2021-10-26T07:55:58 | 2021-10-26T07:55:58 | 155,568,182 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | # coding=utf8
__author__ = 'B.Ankhbold'
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from sqlalchemy.exc import SQLAlchemyError
from ...model import SettingsConstants
from ...model.SetOfficialDocument import SetOfficialDocument
from ...utils.FileUtils import FileUtils
from ...utils.PluginUtils import PluginUtil... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
49b4bde9f3ad68bd20580c75ff2a5e15b1dc16d4 | 05b704d274f1589c82f458b2cfeca3922dac7543 | /scripts/multiramp.py | a17903317ca2816d47c5808cc3041bbc55c0e176 | [] | no_license | andreassteinleitner/crazyflieFormation | 7badde5b43da812d6d08d8f293d61f9dc8147e22 | 7e9d594a8507a46be806f563c0413734339fb9ef | refs/heads/master | 2020-04-17T20:53:12.995403 | 2019-04-17T01:45:18 | 2019-04-17T01:45:18 | 166,925,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | # -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2014 Bitcraze AB
#
# Cr... | [
"andreas@steinleitner.net"
] | andreas@steinleitner.net |
911f054802f77dad2a660f46c44d59dec06745c0 | 7454df56509e6bed0e6e710be0773386d3091942 | /game.py | 0d68e641a03949fd3b41ccf35a36e4aa15f2aecf | [] | no_license | bhavana212/python-training | aad89753681c73a89d110b1660f169532c4cb3a4 | c2afb6762f2eda3ea72133c753774de72a063ad3 | refs/heads/master | 2023-09-04T03:43:20.563698 | 2021-10-03T16:35:56 | 2021-10-03T16:35:56 | 411,286,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | p1 = input("enter ")
p2 = input("enter ")
def compare(p1,p2):
if(p1 == p2):
print("draw")
elif p1 == "rock":
if p2 == "scissor":
return("p1 wins")
else:
return ("p2 wins")
elif p1 == "scissor":
if p2 == "paper":
return("p1 wins")
e... | [
"bhavanaparnasala777@gmail.com"
] | bhavanaparnasala777@gmail.com |
f4793c2f926a71e94cc4d319adbfac6291849d24 | fa35b0fd2d0e1a570ba82f6e9b484b012fd1f5b0 | /bop/admin.py | 883581570ad741a447b46f7d76310b616306d9e9 | [] | no_license | RaihanEXE99/DevelopersBook | 97624e8b30b35908f966ecbc8d2bc369bf28439a | 744e63b5a17a2bdb3d59dacaa1906a0872cb93ba | refs/heads/master | 2023-08-17T06:13:21.534751 | 2021-10-04T14:42:36 | 2021-10-04T14:42:36 | 285,777,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from .models import biox,Notification
# # Register your models here.
admin.site.register(biox)
admin.site.register(Notification)
| [
"ZushiBot@users.noreply.github.com"
] | ZushiBot@users.noreply.github.com |
f1107157cde744af19ff94a0b22673dcd7f675e4 | 23ed27302202a734f5b1c24eefcc42a340064134 | /Tareas/Tarea 1/Tarea1.py | dc04549bca807f97bc693d02a58ca633cacbf353 | [] | no_license | SergioGonzalez24/PensameintoComputacionalParaIngenieria | 36cd325a9929ca72f37d4da4660a81ceece1987d | 7761db38e7bb3088aa316046d5957299336dbfc2 | refs/heads/main | 2023-01-05T07:34:03.812978 | 2020-11-02T05:41:36 | 2020-11-02T05:41:36 | 309,269,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | ###Sergio Manuel Gonzalez Vargas
###A01745446
###Tarea 1
#Ejercicio 1
#Escribe un algoritmo para verificar si un precio dado por el usuario es válido o no lo es, para ser válido debe ser un valor positivo.
print("Ejercicio 1")
precio = float(input("Ingrese precio"))
if precio > 0:
print("Valido")
else:
pr... | [
"noreply@github.com"
] | SergioGonzalez24.noreply@github.com |
dc9a84126f4dc2d2e36bdd22635863a4a42193af | cd2c889f1923b433a150cf84769b9374822ef43a | /auth-service/src/auth_app/migrations/0001_initial.py | f90e13dd9715fb04b879361554e75ae17aa8ed56 | [] | no_license | JesuFemi-O/demo-django-microservice | b7c6453d8369ac2ec6844290ddb4155c53c43f00 | ba5d566d17c4c80e313013f51c91530180a8ea4c | refs/heads/master | 2023-06-02T06:22:59.097114 | 2021-06-21T22:51:45 | 2021-06-21T22:51:45 | 379,007,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | # Generated by Django 3.2.4 on 2021-06-21 10:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"ogunwedeemmanuel@gmail.com"
] | ogunwedeemmanuel@gmail.com |
ea36e3acd73f36ccfe19ee2598e91db7300e6d72 | 8685f4a332df175266685ca93d686e925fa83940 | /alog/permute.py | 17c6138ca760b3d0f9fe1c8f626c311f785456a9 | [] | no_license | danghualong/MyAlogrithms | 843917052d32937d6f2caa5b7135cadbcd10c5c9 | 1f7cd5a372ee0489d72f29f8b22992514e7af98b | refs/heads/master | 2022-12-10T11:00:07.038640 | 2021-03-23T11:00:56 | 2021-03-23T11:00:56 | 89,899,050 | 0 | 0 | null | 2022-12-08T08:19:30 | 2017-05-01T05:09:56 | Python | UTF-8 | Python | false | false | 2,014 | py | # 递归实现排列算法
class Solution(object):
def __init__(self):
self.result=[]
# 全排列算法
def permute(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
if(nums==None):
return None
if(len(nums)==1):
return [[num... | [
"dhl_345@qq.com"
] | dhl_345@qq.com |
460a8c855a8c080167902a083a49032ff11e9f57 | 31bd979746cceaecb1c91209177342f13083c86c | /hackerspace/git.py | d5b399b3ee79968e2c63a14bee520b410d8f92e1 | [
"MIT"
] | permissive | shaygover/HackerspaceTemplatePackage | dc5a720a081aec498b61a905793b5a0f025a6876 | 8704e9500e33e7b78497c0f3114bda1412c69a6a | refs/heads/master | 2020-11-25T14:09:05.736071 | 2019-12-19T16:55:31 | 2019-12-19T16:55:31 | 228,707,266 | 0 | 0 | MIT | 2019-12-17T21:47:06 | 2019-12-17T21:47:05 | null | UTF-8 | Python | false | false | 76 | py | def add_issue(error):
print('TO DO: Add error as issue to git repo...')
| [
"marcobartsch@hellopc.local"
] | marcobartsch@hellopc.local |
4ad42cd6418d521ed2f275b7b73aaa4e7036fbea | 964b063c2461aad267ddd991fefaf7ab53b1ca94 | /6-kyu/iq-test/python/solution.py | 2221bc57375308dc79e1d3f085e299509f860057 | [] | no_license | lucasbflopes/codewars-solutions | 26c4e2cd1be19db50cc8c1d9fc117c51c82a2259 | 72ef2c02dde7bd0d5a691e04e3b2a383e892f84b | refs/heads/master | 2022-03-14T01:26:41.816498 | 2019-11-23T17:17:19 | 2019-11-23T17:17:19 | 114,834,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def iq_test(numbers):
arr = [i % 2 == 0 for i in [int(j) for j in numbers.split()]]
if arr.count(True) > 1:
return arr.index(False)+1
else:
return arr.index(True)+1 | [
"LucasBraganca@Lucas-MacBook-Pro.local"
] | LucasBraganca@Lucas-MacBook-Pro.local |
5a0e45a0bad8693ccc51793e4fe0d1a2503bb752 | 7c37cceac4f8d42e8ef76af367ea9862d7f52166 | /T1_Rosales_201810531-7/T1_Rosales_201810531-7.py | c9580d647cd4b2a2953d0969e146f415f85a74b6 | [] | no_license | Godiessssseh/Arqui | 1ea62cf6fc867f52d8020d5a83c00ece835b34c7 | f7122e739906519e27f7c05d42f67d5abec12a85 | refs/heads/main | 2023-06-14T07:51:00.370431 | 2021-07-06T02:57:27 | 2021-07-06T02:57:27 | 383,321,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,966 | py | #Codigos que se deben usar. BCD, Gray, Excess of 3, Johnson, Paridad, PentaBit, Hamming.
#Se aceptan de la forma bcd, gry, ed3, jsn, par, pbt, ham
#Base cualquiera a decimal, decimal a binario.
codigos = ["bcd","gry","ed3","jsn","par","pbt","ham"] #Solo lo usaremos para revisar casos!
bases_posibles = list("012... | [
"noreply@github.com"
] | Godiessssseh.noreply@github.com |
ec88ef12bf7220d9b5f318f6abc8d7d178b9d2a1 | dc210aa0f882a0762ca8b6ef339e7e5842bdb26b | /typeidea/config/models.py | edb190e82a7748c57a8507dd06a89691bcb53f22 | [
"MIT"
] | permissive | liushouchuan13/typeidea | e0821c898e15944ee8aaeb280769f5af44ad2322 | d801f7a9b6b3e9026421cd26b4ef97732345cc81 | refs/heads/master | 2021-04-03T01:53:37.296456 | 2018-03-09T08:55:54 | 2018-03-09T08:55:54 | 103,502,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Link(models.Model):
STATUS_ITEMS = (
(1, '正常'),
(2, '删除'),
)
title = models.CharField(max_length=50, verbose_name='标题... | [
"liushouchuan13@gmail.com"
] | liushouchuan13@gmail.com |
6b6b9d93703d5e9c0504afc1991151ab87a572fe | ef5e55482a431e94860960025e7aed0e08ce8bf5 | /dp/longest_common_subsequence.py | deaf646cb366f69b7e29537316a358fa3d8465dd | [] | no_license | ajitluhach/algorithms | c2ef4392fc73ffb11bf24863251fd4ef8a25d31e | 1e9ed8a5e95f6b1735516461a0aa15ceb78608f2 | refs/heads/master | 2021-03-27T19:37:08.934630 | 2017-08-30T17:46:38 | 2017-08-30T17:46:38 | 89,777,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | def LCS(X, Y):
"""Return the LCS Table of the two substrings X and Y"""
n, m = len(X), len(Y) # length of both the strings
L = [[0]*(m+1) for _ in range(n+1)] # create a n+1*(m+1) table, each = 0
# one column and row more because 0th row is zero, and 0th column is
# also zero, the value for the c... | [
"ajit96singh@gmail.com"
] | ajit96singh@gmail.com |
53e9b9b82e55e37c19a8dc7be229c35791a377af | c8cb8411fac91198026d61c9a2e33d96937dba93 | /Logistic_Regression.py | ae245c253ce9e50600b10257cb1305349d7940cd | [] | no_license | anurag0308/Regression | c10219dd0ea6a100c7394f8c50f53fc1595a3fe6 | ac924b9c965e5451b8a9a3a3893336d4ea01d251 | refs/heads/master | 2020-08-07T12:52:16.279411 | 2019-11-16T07:31:18 | 2019-11-16T07:31:18 | 213,457,567 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 18 22:50:39 2019
@author: Anurag sharma
"""
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from sklearn.preprocessing import MinMaxScaler
traindata1 = pd.read_csv("C:\\Users\\Anurag sharma\\Desktop\\CODE\\ML\\LogisticRegression\\... | [
"noreply@github.com"
] | anurag0308.noreply@github.com |
e72a257dbd1f8b2b02e25b045333f59190c7dede | b756fac12094915d4b4c3b2f88eff0812b3cc0ae | /geekshop/adminapp/views.py | 85ebd6da5d9a413de4e6930042e5784973e97c38 | [] | no_license | GarbGitHub/django-geekshop | 6312c6ba42d702f00277325764d6750a9c81073c | 43937c082d20e32b95b0c73d0a24fcac5aa33923 | refs/heads/master | 2023-08-24T07:58:52.497149 | 2021-10-20T17:48:29 | 2021-10-20T17:48:29 | 370,262,919 | 0 | 1 | null | 2021-10-20T17:48:30 | 2021-05-24T07:19:02 | Python | UTF-8 | Python | false | false | 12,318 | py | from django.contrib.auth.decorators import user_passes_test
from django.db import connection
from django.db.models import F
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.http import HttpResponseRedirect
from django.urls import reverse_lazy
from django.utils.decorators im... | [
"garbich@gmail.com"
] | garbich@gmail.com |
c74d484eaebbb4aa559ed27a741aa2128baf2d04 | 604b7a20dbb48e4c52611e289949aebdbfce2690 | /pages/views.py | 2621fa2b10f1c2139d5b3a4c3dc845859176fc13 | [] | no_license | NargesHme/Newspaper_App | 33bbcaa8b3a09e30890ebe0621953f116d9202df | 14d9f68c2a794ec8cdc6ff90f468d437e5db2ab7 | refs/heads/main | 2023-02-20T20:21:52.808861 | 2021-01-22T00:16:41 | 2021-01-22T00:16:41 | 329,339,190 | 1 | 0 | null | 2021-01-21T23:50:16 | 2021-01-13T14:49:52 | Python | UTF-8 | Python | false | false | 173 | py | from django.shortcuts import render
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
template_name = 'home.html' | [
"hasheminarges76@gmail.com"
] | hasheminarges76@gmail.com |
6db57545a3a673142f62c0c44d4291bc948050c6 | 39f1106d074988a608966ccb8a24a13a9925abb4 | /utils.py | 9e837a61fc596566ecf0abfc87937621658854ff | [
"MIT"
] | permissive | KarlXing/ModulationRL | 59372057275495cd848b98183bb3857474b79155 | bdd7480b70d25326fe19a5af5f39c7a01b90a034 | refs/heads/master | 2020-04-20T10:50:40.208024 | 2019-02-02T07:26:41 | 2019-02-02T07:26:41 | 168,800,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | import torch
import torch.nn as nn
import numpy as np
from envs import VecNormalize
# Get a render function
def get_render_func(venv):
if hasattr(venv, 'envs'):
return venv.envs[0].render
elif hasattr(venv, 'venv'):
return get_render_func(venv.venv)
elif hasattr(venv, 'env'):
retu... | [
"jinweixing1006@gmail.com"
] | jinweixing1006@gmail.com |
116f6963b88edfdb0db9fda927ba4e4947b376fa | 5ec7d0bad8a77c79843a2813f5effcb3a2b7e288 | /lean/models/brokerages/cloud/tradier.py | fd5e10b9f48bced5ac4faae3e74d4fac7886ec50 | [
"Apache-2.0"
] | permissive | xdpknx/lean-cli | aca9b9c9c4e156c9faefcfa8ccdfc20423b510a0 | c1051bd3e8851ae96f6e84f608a7116b1689c9e9 | refs/heads/master | 2023-08-08T02:30:09.827647 | 2021-09-21T21:36:24 | 2021-09-21T21:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache... | [
"jaspervmerle@gmail.com"
] | jaspervmerle@gmail.com |
5e881becf075b1b52eb57fdc637918870d7dc102 | aeee98c73119207ec2c00ec6fc574f0c5667e7d0 | /stage_1.0/sarcasm_detection_v2.py | 352127319dd44241bf65844e87ab7f0c4604e1ea | [] | no_license | jingerzzz/sarcasm-detection | 03e0d3d3f8681ddfee0cb93d63ecdcaed7755acb | d3d07bace4171a329d864ea8dd741bbbf644c7cd | refs/heads/master | 2021-03-31T22:52:45.722700 | 2020-03-18T04:29:09 | 2020-03-18T04:29:09 | 248,137,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | ## v2: Change TfidfVectorizer instance
import pandas as pd
import numpy as np
import random
from io import StringIO
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_selection import chi2
from sklearn.feature_extraction.text import Cou... | [
"jingerjyz@sjtu.edu.cn"
] | jingerjyz@sjtu.edu.cn |
d15d78dd5befb823ae36b970032deb40772ed1b2 | 8940481119114c545c8b01146e3aaa53b4da9150 | /event_two.py | 59f96e7a03113c256d7bed50ccd53d8bd4b6095e | [
"MIT"
] | permissive | Malcolm1998/CS412T1C4 | 837791f02fe45ed124bc572370c242a6797d9466 | 7924b4a3b8227140b4a79454c717c91535faf172 | refs/heads/master | 2020-09-19T23:10:12.844333 | 2019-12-06T06:54:06 | 2019-12-06T06:54:06 | 224,319,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,930 | py | import signal
import rospy
import smach
import smach_ros
import math
import time
import cv2
from math import tanh
from geometry_msgs.msg import Twist
from sensor_msgs.msg import Image
import numpy as np
from sensor_msgs.msg import LaserScan
from sensor_msgs.msg import Joy
from kobuki_msgs.msg import Sound
import traceb... | [
"mimacart@ualberta.ca"
] | mimacart@ualberta.ca |
5be34879011c0f4d0308e93c05824f2a437ec963 | 44b87d9faad99d542914c35410ba7d354d5ba9cd | /1/collection/list/divisible by 8 using compre.py | 857a0b6ada0c2d9dc98bd9180ec1370a09173462 | [] | no_license | append-knowledge/pythondjango | 586292d1c7d0ddace3630f0d77ca53f442667e54 | 0e5dab580e8cc48e9940fb93a71bcd36e8e6a84e | refs/heads/master | 2023-06-24T07:24:53.374998 | 2021-07-13T05:55:25 | 2021-07-13T05:55:25 | 385,247,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | num=[i for i in range(1,1000) if i%8==0]
print(num)
print("length of num is",len(num))
# odd=[i for i in range(1000) if i%2!=0]
# print(odd) | [
"lijojose95@gmail.com"
] | lijojose95@gmail.com |
b91c18f436e31c5115be02df8c6f787bb7876279 | 189b4a297123678100da31ea7fbe6abef5902d60 | /200_mise_en_base/parse_texte.py | 4fc04d9644521c33d7ea5270a4e0a09fc913ebdb | [] | no_license | michelbl/loi | 24c4d32b6caa5c5288c99722c4f38f36eee24c5e | 73d67754b3daad69fd8318ccb7ef18ae39509184 | refs/heads/master | 2020-06-11T08:27:57.763320 | 2017-01-10T15:32:58 | 2017-01-10T15:32:58 | 77,166,025 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,311 | py | import os
import sys
import xml.etree.ElementTree as ElementTree
import collections
from collections import Counter
import psycopg2
racine_legi = '/home/michel/legi_plat/'
racine_jorf = '/home/michel/jorf_plat/'
class FrozenDict(collections.Mapping):
"""Mike Graham http://stackoverflow.com/questions/2703599/wh... | [
"michel.blancard@data.gouv.fr"
] | michel.blancard@data.gouv.fr |
1e22197683ad05ab1e08e3e0579f3d39e930dc88 | 2c0ba020172ff3129576e9698be7d3c9c6688a3c | /blog/models.py | bdde4ddd977f43575f12e73d62c83b3a4efdbf45 | [] | no_license | Cyusa-G/blog-app | 793dcfe2426db3d98a2fed52e76760ae71ae7b5f | 034a564376d56d9f80ebe064dc60a059c7425231 | refs/heads/main | 2023-04-23T06:57:45.904534 | 2021-05-02T15:20:17 | 2021-05-02T15:20:17 | 363,417,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.db import models
from django.urls import reverse
class Post(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey('auth.User',
on_delete=models.CASCADE,
)
body = models.TextField()
def __str__(self):
return self.title
def get_absolute_url... | [
"cyusagedeon@gmail.com"
] | cyusagedeon@gmail.com |
5458918ced7a34110cce74cdfaac172334515069 | 009653f67d9b788281d2b9dd62a7e23628d4b15c | /wget.py | 353a29d7ffc59ca9d1dfda3cebeb547167f7b37e | [] | no_license | swapnilkauthale/Ubuntu-Repository-Updater-for-Cloud | ee92661308bde0cf2aa51f6b9114cb27c8c44281 | 7c2156f0f58ebc0e6207c5921d1f914a5c907892 | refs/heads/master | 2021-04-26T22:24:27.261069 | 2018-03-26T07:17:42 | 2018-03-26T07:17:42 | 124,086,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py |
#*/10 * * * * python /etc/cron.hourly/wget.py
import os,re
path = "/home/swapnil/Desktop/U_Mirror/versions/17/old_MD5/MD5SUMS"
l=[]
with open(path,'r') as f:
for line in f:
for word in line.split():
l.append(word)
old_hash = l[0]
#os.system("wget http://releases.ubuntu.com/17.10/ubuntu-17... | [
"noreply@github.com"
] | swapnilkauthale.noreply@github.com |
87339e4385a890dc9a46c6e5efc4674cb85aefa2 | 4073f351551c2f73c5659cb3038a68360cc5b369 | /Arbetsbok/kap 14/övn 14.1, sid. 36 - söka tal.py | 9b318176e080635b41a000e7aeb4734430c42602 | [
"MIT"
] | permissive | Pharou/programmering1python | b9a5aca72354d3e7e91a5023a621d22a962ecd7c | 9b689027db1f7fbf06925f3094fcb126880453e4 | refs/heads/master | 2022-11-28T06:33:17.295157 | 2020-07-25T11:02:07 | 2020-07-25T11:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | #!/usr/bin/python3.8
# Filnamn: övn 14.1, sid. 36 - söka tal.py
# Sökning
# Programmeringsövningar till kapitel 14
# Programmet slumpar först fram 20 tal mellan 1 och 100 och lagrar alla talen i
# en lista och sedan skrivs listan ut på skärmen. Därefter frågar programmet
# användaren efter ett tal som ska eftersök... | [
"niklas_engvall@hotmail.com"
] | niklas_engvall@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.